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
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #ifndef COMMON_EXPRESSION_VARIABLEEXPRESSION_H_ #define COMMON_EXPRESSION_VARIABLEEXPRESSION_H_ #include "common/expression/Expression.h" namespace nebula { class VariableExpression final : public Expression { public: explicit VariableExpression(std::string* var) : Expression(Kind::kVar) { var_.reset(var); } const std::string& var() const { return *var_.get(); } const Value& eval(ExpressionContext& ctx) override; bool operator==(const Expression& rhs) const override { UNUSED(rhs); return false; } std::string toString() const override; private: void writeTo(Encoder& encoder) const override { UNUSED(encoder); } void resetFrom(Decoder& decoder) override { UNUSED(decoder); } std::unique_ptr<std::string> var_; }; /* * VersionedVariableExpression is designed for getting the historical results * of a variable. */ class VersionedVariableExpression final : public Expression { public: VersionedVariableExpression(std::string* var, Expression* version) : Expression(Kind::kVersionedVar) { var_.reset(var); version_.reset(version); } const std::string& var() const { return *var_.get(); } const Value& eval(ExpressionContext& ctx) override; bool operator==(const Expression& rhs) const override { UNUSED(rhs); return false; } std::string toString() const override; private: void writeTo(Encoder& encoder) const override { UNUSED(encoder); } void resetFrom(Decoder& decoder) override { UNUSED(decoder); } std::unique_ptr<std::string> var_; // 0 means the latest, -1 the previous one, and so on. // 1 means the eldest, 2 the second elder one, and so on. std::unique_ptr<Expression> version_; }; } // namespace nebula #endif
30.51
67
(translation_unit) "/* Copyright (c) 2020 vesoft inc. All rights reserved.\n *\n * This source code is licensed under Apache 2.0 License,\n * attached with Common Clause Condition 1.0, found in the LICENSES directory.\n */\n\n#ifndef COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n#define COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n\n#include "common/expression/Expression.h"\n\nnamespace nebula {\nclass VariableExpression final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }\n\n void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }\n\n std::unique_ptr<std::string> var_;\n};\n\n/*\n * VersionedVariableExpression is designed for getting the historical results\n * of a variable.\n */\nclass VersionedVariableExpression final : public Expression {\npublic:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }\n\n void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }\n\n std::unique_ptr<std::string> var_;\n // 0 means the latest, -1 the previous one, and so on.\n // 1 means the eldest, 2 the second elder one, and so on.\n std::unique_ptr<Expression> version_;\n};\n} // namespace nebula\n#endif\n" (comment) "/* Copyright (c) 2020 vesoft inc. All rights reserved.\n *\n * This source code is licensed under Apache 2.0 License,\n * attached with Common Clause Condition 1.0, found in the LICENSES directory.\n */" (preproc_ifdef) "#ifndef COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n#define COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n\n#include "common/expression/Expression.h"\n\nnamespace nebula {\nclass VariableExpression final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }\n\n void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }\n\n std::unique_ptr<std::string> var_;\n};\n\n/*\n * VersionedVariableExpression is designed for getting the historical results\n * of a variable.\n */\nclass VersionedVariableExpression final : public Expression {\npublic:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }\n\n void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }\n\n std::unique_ptr<std::string> var_;\n // 0 means the latest, -1 the previous one, and so on.\n // 1 means the eldest, 2 the second elder one, and so on.\n std::unique_ptr<Expression> version_;\n};\n} // namespace nebula\n#endif" (#ifndef) "#ifndef" (identifier) "COMMON_EXPRESSION_VARIABLEEXPRESSION_H_" (preproc_def) "#define COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n" (#define) "#define" (identifier) "COMMON_EXPRESSION_VARIABLEEXPRESSION_H_" (preproc_include) "#include "common/expression/Expression.h"\n" (#include) "#include" (string_literal) ""common/expression/Expression.h"" (") """ (string_content) "common/expression/Expression.h" (") """ (function_definition) "namespace nebula {\nclass VariableExpression final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }" (type_identifier) "namespace" (identifier) "nebula" (compound_statement) "{\nclass VariableExpression final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }" ({) "{" (declaration) "class VariableExpression" (type_identifier) "class" (identifier) "VariableExpression" (;) "" (labeled_statement) "final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }" (statement_identifier) "final" (:) ":" (ERROR) "public Expression" (type_identifier) "public" (identifier) "Expression" (compound_statement) "{\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }" ({) "{" (labeled_statement) "public:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }" (statement_identifier) "public" (:) ":" (ERROR) "explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar)" (type_identifier) "explicit" (function_declarator) "VariableExpression(std::string* var)\n : Expression(Kind::kVar)" (identifier) "VariableExpression" (parameter_list) "(std::string* var)" (() "(" (parameter_declaration) "std::string* var" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (pointer_declarator) "* var" (*) "*" (identifier) "var" ()) ")" (ERROR) ":" (:) ":" (call_expression) "Expression(Kind::kVar)" (identifier) "Expression" (argument_list) "(Kind::kVar)" (() "(" (identifier) "Kind" (ERROR) "::kVar" (:) ":" (:) ":" (identifier) "kVar" ()) ")" (compound_statement) "{\n var_.reset(var);\n }" ({) "{" (expression_statement) "var_.reset(var);" (call_expression) "var_.reset(var)" (field_expression) "var_.reset" (identifier) "var_" (.) "." (field_identifier) "reset" (argument_list) "(var)" (() "(" (identifier) "var" ()) ")" (;) ";" (}) "}" (declaration) "const std::string& var() const {\n return *var_.get();" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string& var() const {\n return" (:) ":" (:) ":" (identifier) "string" (&) "&" (function_declarator) "var()" (identifier) "var" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" ({) "{" (return) "return" (pointer_declarator) "*var_.get()" (*) "*" (ERROR) "var_." (identifier) "var_" (.) "." (function_declarator) "get()" (identifier) "get" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (ERROR) "const Value" (type_qualifier) "const" (const) "const" (type_identifier) "Value" (expression_statement) "& eval(ExpressionContext& ctx) override;" (pointer_expression) "& eval(ExpressionContext& ctx)" (&) "&" (call_expression) "eval(ExpressionContext& ctx)" (identifier) "eval" (argument_list) "(ExpressionContext& ctx)" (() "(" (binary_expression) "ExpressionContext& ctx" (identifier) "ExpressionContext" (&) "&" (identifier) "ctx" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (ERROR) "bool operator==(const Expression& rhs) const override" (primitive_type) "bool" (identifier) "operator" (==) "==" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "Expression" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (type_qualifier) "const" (const) "const" (type_identifier) "override" (compound_statement) "{\n UNUSED(rhs);\n return false;\n }" ({) "{" (expression_statement) "UNUSED(rhs);" (call_expression) "UNUSED(rhs)" (identifier) "UNUSED" (argument_list) "(rhs)" (() "(" (identifier) "rhs" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (labeled_statement) "std::string toString() const override;" (statement_identifier) "std" (:) ":" (ERROR) ":string toString() const override" (:) ":" (type_identifier) "string" (function_declarator) "toString() const override" (identifier) "toString" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);" (statement_identifier) "private" (:) ":" (declaration) "void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);" (primitive_type) "void" (ERROR) "writeTo(Encoder& encoder) const override {" (function_declarator) "writeTo(Encoder& encoder) const override" (identifier) "writeTo" (parameter_list) "(Encoder& encoder)" (() "(" (parameter_declaration) "Encoder& encoder" (type_identifier) "Encoder" (ERROR) "&" (&) "&" (identifier) "encoder" ()) ")" (identifier) "const" (identifier) "override" ({) "{" (function_declarator) "UNUSED(encoder)" (identifier) "UNUSED" (parameter_list) "(encoder)" (() "(" (parameter_declaration) "encoder" (type_identifier) "encoder" ()) ")" (;) ";" (}) "}" (function_definition) "void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }" (primitive_type) "void" (function_declarator) "resetFrom(Decoder& decoder) override" (identifier) "resetFrom" (parameter_list) "(Decoder& decoder)" (() "(" (parameter_declaration) "Decoder& decoder" (type_identifier) "Decoder" (ERROR) "&" (&) "&" (identifier) "decoder" ()) ")" (identifier) "override" (compound_statement) "{\n UNUSED(decoder);\n }" ({) "{" (expression_statement) "UNUSED(decoder);" (call_expression) "UNUSED(decoder)" (identifier) "UNUSED" (argument_list) "(decoder)" (() "(" (identifier) "decoder" ()) ")" (;) ";" (}) "}" (labeled_statement) "std::unique_ptr<std::string> var_;" (statement_identifier) "std" (ERROR) "::unique_ptr<std:" (:) ":" (:) ":" (binary_expression) "unique_ptr<std" (identifier) "unique_ptr" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> var_;" (binary_expression) "string> var_" (identifier) "string" (>) ">" (identifier) "var_" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (comment) "/*\n * VersionedVariableExpression is designed for getting the historical results\n * of a variable.\n */" (declaration) "class VersionedVariableExpression" (type_identifier) "class" (identifier) "VersionedVariableExpression" (;) "" (labeled_statement) "final : public Expression {\npublic:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }\n\n const std::string& var() const {\n return *var_.get();\n }" (statement_identifier) "final" (:) ":" (ERROR) "public Expression" (type_identifier) "public" (identifier) "Expression" (compound_statement) "{\npublic:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }\n\n const std::string& var() const {\n return *var_.get();\n }" ({) "{" (labeled_statement) "public:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }" (statement_identifier) "public" (:) ":" (labeled_statement) "VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }" (statement_identifier) "VersionedVariableExpression" (ERROR) "(std::string* var, Expression* version)" (() "(" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (comma_expression) "string* var, Expression* version" (binary_expression) "string* var" (identifier) "string" (*) "*" (identifier) "var" (,) "," (binary_expression) "Expression* version" (identifier) "Expression" (*) "*" (identifier) "version" ()) ")" (:) ":" (ERROR) "Expression(Kind::kVersionedVar)" (macro_type_specifier) "Expression(Kind::kVersionedVar)" (identifier) "Expression" (() "(" (ERROR) "Kind::" (type_descriptor) "Kind" (type_identifier) "Kind" (:) ":" (:) ":" (type_descriptor) "kVersionedVar" (type_identifier) "kVersionedVar" ()) ")" (compound_statement) "{\n var_.reset(var);\n version_.reset(version);\n }" ({) "{" (expression_statement) "var_.reset(var);" (call_expression) "var_.reset(var)" (field_expression) "var_.reset" (identifier) "var_" (.) "." (field_identifier) "reset" (argument_list) "(var)" (() "(" (identifier) "var" ()) ")" (;) ";" (expression_statement) "version_.reset(version);" (call_expression) "version_.reset(version)" (field_expression) "version_.reset" (identifier) "version_" (.) "." (field_identifier) "reset" (argument_list) "(version)" (() "(" (identifier) "version" ()) ")" (;) ";" (}) "}" (declaration) "const std::string& var() const {\n return *var_.get();" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string& var() const {\n return" (:) ":" (:) ":" (identifier) "string" (&) "&" (function_declarator) "var()" (identifier) "var" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" ({) "{" (return) "return" (pointer_declarator) "*var_.get()" (*) "*" (ERROR) "var_." (identifier) "var_" (.) "." (function_declarator) "get()" (identifier) "get" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (ERROR) "const Value" (type_qualifier) "const" (const) "const" (type_identifier) "Value" (expression_statement) "& eval(ExpressionContext& ctx) override;" (pointer_expression) "& eval(ExpressionContext& ctx)" (&) "&" (call_expression) "eval(ExpressionContext& ctx)" (identifier) "eval" (argument_list) "(ExpressionContext& ctx)" (() "(" (binary_expression) "ExpressionContext& ctx" (identifier) "ExpressionContext" (&) "&" (identifier) "ctx" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (ERROR) "bool operator==(const Expression& rhs) const override" (primitive_type) "bool" (identifier) "operator" (==) "==" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "Expression" (pointer_expression) "& rhs" (&) "&" (identifier) "rhs" ()) ")" (type_qualifier) "const" (const) "const" (type_identifier) "override" (compound_statement) "{\n UNUSED(rhs);\n return false;\n }" ({) "{" (expression_statement) "UNUSED(rhs);" (call_expression) "UNUSED(rhs)" (identifier) "UNUSED" (argument_list) "(rhs)" (() "(" (identifier) "rhs" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (labeled_statement) "std::string toString() const override;" (statement_identifier) "std" (:) ":" (ERROR) ":string toString() const override" (:) ":" (type_identifier) "string" (function_declarator) "toString() const override" (identifier) "toString" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "private:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }" (statement_identifier) "private" (:) ":" (ERROR) "void writeTo(Encoder& encoder) const override" (primitive_type) "void" (function_declarator) "writeTo(Encoder& encoder) const override" (identifier) "writeTo" (parameter_list) "(Encoder& encoder)" (() "(" (parameter_declaration) "Encoder& encoder" (type_identifier) "Encoder" (ERROR) "&" (&) "&" (identifier) "encoder" ()) ")" (identifier) "const" (identifier) "override" (compound_statement) "{\n UNUSED(encoder);\n }" ({) "{" (expression_statement) "UNUSED(encoder);" (call_expression) "UNUSED(encoder)" (identifier) "UNUSED" (argument_list) "(encoder)" (() "(" (identifier) "encoder" ()) ")" (;) ";" (}) "}" (function_definition) "void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }" (primitive_type) "void" (function_declarator) "resetFrom(Decoder& decoder) override" (identifier) "resetFrom" (parameter_list) "(Decoder& decoder)" (() "(" (parameter_declaration) "Decoder& decoder" (type_identifier) "Decoder" (ERROR) "&" (&) "&" (identifier) "decoder" ()) ")" (identifier) "override" (compound_statement) "{\n UNUSED(decoder);\n }" ({) "{" (expression_statement) "UNUSED(decoder);" (call_expression) "UNUSED(decoder)" (identifier) "UNUSED" (argument_list) "(decoder)" (() "(" (identifier) "decoder" ()) ")" (;) ";" (}) "}" (labeled_statement) "std::unique_ptr<std::string> var_;" (statement_identifier) "std" (ERROR) "::unique_ptr<std:" (:) ":" (:) ":" (binary_expression) "unique_ptr<std" (identifier) "unique_ptr" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> var_;" (binary_expression) "string> var_" (identifier) "string" (>) ">" (identifier) "var_" (;) ";" (comment) "// 0 means the latest, -1 the previous one, and so on." (comment) "// 1 means the eldest, 2 the second elder one, and so on." (labeled_statement) "std::unique_ptr<Expression> version_;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "unique_ptr<Expression> version_;" (binary_expression) "unique_ptr<Expression> version_" (binary_expression) "unique_ptr<Expression" (identifier) "unique_ptr" (<) "<" (identifier) "Expression" (>) ">" (identifier) "version_" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "}" (}) "}" (comment) "// namespace nebula" (#endif) "#endif"
503
33
{"language": "c", "success": true, "metadata": {"lines": 67, "avg_line_length": 30.51, "nodes": 260, "errors": 0, "source_hash": "806e2a194facc7d3a4c6568df82acd3dfc2bcf6220aa277c956ed4766d90e85d", "categorized_nodes": 172}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n#define COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n\n#include \"common/expression/Expression.h\"\n\nnamespace nebula {\nclass VariableExpression final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }\n\n void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }\n\n std::unique_ptr<std::string> var_;\n};\n\n/*\n * VersionedVariableExpression is designed for getting the historical results\n * of a variable.\n */\nclass VersionedVariableExpression final : public Expression {\npublic:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }\n\n void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }\n\n std::unique_ptr<std::string> var_;\n // 0 means the latest, -1 the previous one, and so on.\n // 1 means the eldest, 2 the second elder one, and so on.\n std::unique_ptr<Expression> version_;\n};\n} // namespace nebula\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 103, 116, 127, 129, 179, 190, 204, 212, 226, 239, 250, 259], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 84, "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": "COMMON_EXPRESSION_VARIABLEEXPRESSION_H_", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 47}}, {"id": 3, "type": "preproc_def", "text": "#define COMMON_EXPRESSION_VARIABLEEXPRESSION_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": "COMMON_EXPRESSION_VARIABLEEXPRESSION_H_", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 47}}, {"id": 6, "type": "preproc_include", "text": "#include \"common/expression/Expression.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"common/expression/Expression.h\"", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 41}}, {"id": 9, "type": "function_definition", "text": "namespace nebula {\nclass VariableExpression final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }", "parent": 0, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 35, "column": 5}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 9}}, {"id": 11, "type": "identifier", "text": "nebula", "parent": 9, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 16}}, {"id": 12, "type": "declaration", "text": "class VariableExpression", "parent": 9, "children": [13], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 24}}, {"id": 13, "type": "identifier", "text": "VariableExpression", "parent": 12, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 24}}, {"id": 14, "type": "labeled_statement", "text": "final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }", "parent": 9, "children": [15, 16], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 21, "column": 5}}, {"id": 15, "type": "statement_identifier", "text": "final", "parent": 14, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 30}}, {"id": 16, "type": "ERROR", "text": "public Expression", "parent": 14, "children": [17], "start_point": {"row": 12, "column": 33}, "end_point": {"row": 12, "column": 50}}, {"id": 17, "type": "identifier", "text": "Expression", "parent": 16, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 50}}, {"id": 18, "type": "labeled_statement", "text": "public:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }", "parent": 14, "children": [19], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 17, "column": 5}}, {"id": 19, "type": "ERROR", "text": "explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar)", "parent": 18, "children": [20, 21], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 15, "column": 32}}, {"id": 20, "type": "type_identifier", "text": "explicit", "parent": 19, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 12}}, {"id": 21, "type": "function_declarator", "text": "VariableExpression(std::string* var)\n : Expression(Kind::kVar)", "parent": 19, "children": [22, 23, 30], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 15, "column": 32}}, {"id": 22, "type": "identifier", "text": "VariableExpression", "parent": 21, "children": [], "start_point": {"row": 14, "column": 13}, "end_point": {"row": 14, "column": 31}}, {"id": 23, "type": "parameter_list", "text": "(std::string* var)", "parent": 21, "children": [24], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 49}}, {"id": 24, "type": "parameter_declaration", "text": "std::string* var", "parent": 23, "children": [25, 26, 28], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 48}}, {"id": 25, "type": "type_identifier", "text": "std", "parent": 24, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 35}}, {"id": 26, "type": "ERROR", "text": "::string", "parent": 24, "children": [27], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 43}}, {"id": 27, "type": "identifier", "text": "string", "parent": 26, "children": [], "start_point": {"row": 14, "column": 37}, "end_point": {"row": 14, "column": 43}}, {"id": 28, "type": "pointer_declarator", "text": "* var", "parent": 24, "children": [29], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 48}}, {"id": 29, "type": "*", "text": "*", "parent": 28, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 44}}, {"id": 30, "type": "call_expression", "text": "Expression(Kind::kVar)", "parent": 21, "children": [31, 32], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 32}}, {"id": 31, "type": "identifier", "text": "Expression", "parent": 30, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 20}}, {"id": 32, "type": "argument_list", "text": "(Kind::kVar)", "parent": 30, "children": [33, 34], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 32}}, {"id": 33, "type": "identifier", "text": "Kind", "parent": 32, "children": [], "start_point": {"row": 15, "column": 21}, "end_point": {"row": 15, "column": 25}}, {"id": 34, "type": "ERROR", "text": "::kVar", "parent": 32, "children": [35], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 31}}, {"id": 35, "type": "identifier", "text": "kVar", "parent": 34, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 31}}, {"id": 36, "type": "call_expression", "text": "var_.reset(var)", "parent": 18, "children": [37, 40], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 23}}, {"id": 37, "type": "field_expression", "text": "var_.reset", "parent": 36, "children": [38, 39], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 18}}, {"id": 38, "type": "identifier", "text": "var_", "parent": 37, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 12}}, {"id": 39, "type": "field_identifier", "text": "reset", "parent": 37, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 18}}, {"id": 40, "type": "argument_list", "text": "(var)", "parent": 36, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 23}}, {"id": 41, "type": "declaration", "text": "const std::string& var() const {\n return *var_.get();", "parent": 14, "children": [42, 43, 47], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 20, "column": 27}}, {"id": 42, "type": "type_identifier", "text": "std", "parent": 41, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 13}}, {"id": 43, "type": "ERROR", "text": "::string& var() const {\n return", "parent": 41, "children": [44, 45], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 44, "type": "identifier", "text": "string", "parent": 43, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 21}}, {"id": 45, "type": "function_declarator", "text": "var()", "parent": 43, "children": [46], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 28}}, {"id": 46, "type": "parameter_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 28}}, {"id": 47, "type": "pointer_declarator", "text": "*var_.get()", "parent": 41, "children": [48, 49, 51], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 26}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 16}}, {"id": 49, "type": "ERROR", "text": "var_.", "parent": 47, "children": [50], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 21}}, {"id": 50, "type": "identifier", "text": "var_", "parent": 49, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 20}}, {"id": 51, "type": "function_declarator", "text": "get()", "parent": 47, "children": [52, 53], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 26}}, {"id": 52, "type": "identifier", "text": "get", "parent": 51, "children": [], "start_point": {"row": 20, "column": 21}, "end_point": {"row": 20, "column": 24}}, {"id": 53, "type": "parameter_list", "text": "()", "parent": 51, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 26}}, {"id": 54, "type": "ERROR", "text": "const Value", "parent": 9, "children": [55], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 15}}, {"id": 55, "type": "type_identifier", "text": "Value", "parent": 54, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 15}}, {"id": 56, "type": "pointer_expression", "text": "& eval(ExpressionContext& ctx)", "parent": 9, "children": [57], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 45}}, {"id": 57, "type": "call_expression", "text": "eval(ExpressionContext& ctx)", "parent": 56, "children": [58, 59], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 45}}, {"id": 58, "type": "identifier", "text": "eval", "parent": 57, "children": [], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 21}}, {"id": 59, "type": "argument_list", "text": "(ExpressionContext& ctx)", "parent": 57, "children": [60], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 45}}, {"id": 60, "type": "binary_expression", "text": "ExpressionContext& ctx", "parent": 59, "children": [61, 62], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 44}}, {"id": 61, "type": "identifier", "text": "ExpressionContext", "parent": 60, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 39}}, {"id": 62, "type": "identifier", "text": "ctx", "parent": 60, "children": [], "start_point": {"row": 23, "column": 41}, "end_point": {"row": 23, "column": 44}}, {"id": 63, "type": "ERROR", "text": "override", "parent": 9, "children": [64], "start_point": {"row": 23, "column": 46}, "end_point": {"row": 23, "column": 54}}, {"id": 64, "type": "identifier", "text": "override", "parent": 63, "children": [], "start_point": {"row": 23, "column": 46}, "end_point": {"row": 23, "column": 54}}, {"id": 65, "type": "ERROR", "text": "bool operator==(const Expression& rhs) const override", "parent": 9, "children": [66, 67, 68, 69, 70, 72], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 57}}, {"id": 66, "type": "primitive_type", "text": "bool", "parent": 65, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 67, "type": "identifier", "text": "operator", "parent": 65, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 17}}, {"id": 68, "type": "==", "text": "==", "parent": 65, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 19}}, {"id": 69, "type": "type_identifier", "text": "Expression", "parent": 65, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 36}}, {"id": 70, "type": "pointer_expression", "text": "& rhs", "parent": 65, "children": [71], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 41}}, {"id": 71, "type": "identifier", "text": "rhs", "parent": 70, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 41}}, {"id": 72, "type": "type_identifier", "text": "override", "parent": 65, "children": [], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 57}}, {"id": 73, "type": "call_expression", "text": "UNUSED(rhs)", "parent": 9, "children": [74, 75], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 74, "type": "identifier", "text": "UNUSED", "parent": 73, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 14}}, {"id": 75, "type": "argument_list", "text": "(rhs)", "parent": 73, "children": [76], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 19}}, {"id": 76, "type": "identifier", "text": "rhs", "parent": 75, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 18}}, {"id": 77, "type": "return_statement", "text": "return false;", "parent": 9, "children": [78], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 21}}, {"id": 78, "type": "false", "text": "false", "parent": 77, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 20}}, {"id": 79, "type": "labeled_statement", "text": "std::string toString() const override;", "parent": 9, "children": [80, 81], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 42}}, {"id": 80, "type": "statement_identifier", "text": "std", "parent": 79, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 7}}, {"id": 81, "type": "ERROR", "text": ":string toString() const override", "parent": 79, "children": [82, 83], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 41}}, {"id": 82, "type": "type_identifier", "text": "string", "parent": 81, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 15}}, {"id": 83, "type": "function_declarator", "text": "toString() const override", "parent": 81, "children": [84, 85, 86], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 41}}, {"id": 84, "type": "identifier", "text": "toString", "parent": 83, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 24}}, {"id": 85, "type": "parameter_list", "text": "()", "parent": 83, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 26}}, {"id": 86, "type": "identifier", "text": "override", "parent": 83, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 41}}, {"id": 87, "type": "labeled_statement", "text": "private:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);", "parent": 9, "children": [88], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 34, "column": 24}}, {"id": 88, "type": "declaration", "text": "void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);", "parent": 87, "children": [89, 90, 98], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 34, "column": 24}}, {"id": 89, "type": "primitive_type", "text": "void", "parent": 88, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 8}}, {"id": 90, "type": "ERROR", "text": "writeTo(Encoder& encoder) const override {", "parent": 88, "children": [91], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 51}}, {"id": 91, "type": "function_declarator", "text": "writeTo(Encoder& encoder) const override", "parent": 90, "children": [92, 93, 97], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 49}}, {"id": 92, "type": "identifier", "text": "writeTo", "parent": 91, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 16}}, {"id": 93, "type": "parameter_list", "text": "(Encoder& encoder)", "parent": 91, "children": [94], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 34}}, {"id": 94, "type": "parameter_declaration", "text": "Encoder& encoder", "parent": 93, "children": [95, 96], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 33}}, {"id": 95, "type": "type_identifier", "text": "Encoder", "parent": 94, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 24}}, {"id": 96, "type": "identifier", "text": "encoder", "parent": 94, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 33}}, {"id": 97, "type": "identifier", "text": "override", "parent": 91, "children": [], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 49}}, {"id": 98, "type": "function_declarator", "text": "UNUSED(encoder)", "parent": 88, "children": [99, 100], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 23}}, {"id": 99, "type": "identifier", "text": "UNUSED", "parent": 98, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 14}}, {"id": 100, "type": "parameter_list", "text": "(encoder)", "parent": 98, "children": [101], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 23}}, {"id": 101, "type": "parameter_declaration", "text": "encoder", "parent": 100, "children": [102], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 22}}, {"id": 102, "type": "type_identifier", "text": "encoder", "parent": 101, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 22}}, {"id": 103, "type": "function_definition", "text": "void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }", "parent": 0, "children": [104, 105], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 39, "column": 5}}, {"id": 104, "type": "primitive_type", "text": "void", "parent": 103, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 8}}, {"id": 105, "type": "function_declarator", "text": "resetFrom(Decoder& decoder) override", "parent": 103, "children": [106, 107, 111], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 45}}, {"id": 106, "type": "identifier", "text": "resetFrom", "parent": 105, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 18}}, {"id": 107, "type": "parameter_list", "text": "(Decoder& decoder)", "parent": 105, "children": [108], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 36}}, {"id": 108, "type": "parameter_declaration", "text": "Decoder& decoder", "parent": 107, "children": [109, 110], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 35}}, {"id": 109, "type": "type_identifier", "text": "Decoder", "parent": 108, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 26}}, {"id": 110, "type": "identifier", "text": "decoder", "parent": 108, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 35}}, {"id": 111, "type": "identifier", "text": "override", "parent": 105, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 45}}, {"id": 112, "type": "call_expression", "text": "UNUSED(decoder)", "parent": 103, "children": [113, 114], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 23}}, {"id": 113, "type": "identifier", "text": "UNUSED", "parent": 112, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 14}}, {"id": 114, "type": "argument_list", "text": "(decoder)", "parent": 112, "children": [115], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 23}}, {"id": 115, "type": "identifier", "text": "decoder", "parent": 114, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 22}}, {"id": 116, "type": "labeled_statement", "text": "std::unique_ptr<std::string> var_;", "parent": 0, "children": [117, 118], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 54}}, {"id": 117, "type": "statement_identifier", "text": "std", "parent": 116, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 118, "type": "ERROR", "text": "::unique_ptr<std:", "parent": 116, "children": [119], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 24}}, {"id": 119, "type": "binary_expression", "text": "unique_ptr<std", "parent": 118, "children": [120, 121, 122], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 23}}, {"id": 120, "type": "identifier", "text": "unique_ptr", "parent": 119, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 19}}, {"id": 121, "type": "<", "text": "<", "parent": 119, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 20}}, {"id": 122, "type": "identifier", "text": "std", "parent": 119, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 23}}, {"id": 123, "type": "binary_expression", "text": "string> var_", "parent": 116, "children": [124, 125, 126], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 53}}, {"id": 124, "type": "identifier", "text": "string", "parent": 123, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 31}}, {"id": 125, "type": ">", "text": ">", "parent": 123, "children": [], "start_point": {"row": 41, "column": 31}, "end_point": {"row": 41, "column": 32}}, {"id": 126, "type": "identifier", "text": "var_", "parent": 123, "children": [], "start_point": {"row": 41, "column": 49}, "end_point": {"row": 41, "column": 53}}, {"id": 127, "type": "declaration", "text": "class VersionedVariableExpression", "parent": 0, "children": [128], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 33}}, {"id": 128, "type": "identifier", "text": "VersionedVariableExpression", "parent": 127, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 33}}, {"id": 129, "type": "labeled_statement", "text": "final : public Expression {\npublic:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }\n\n const std::string& var() const {\n return *var_.get();\n }", "parent": 0, "children": [130, 131], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 58, "column": 5}}, {"id": 130, "type": "statement_identifier", "text": "final", "parent": 129, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 39}}, {"id": 131, "type": "ERROR", "text": "public Expression", "parent": 129, "children": [132], "start_point": {"row": 48, "column": 42}, "end_point": {"row": 48, "column": 59}}, {"id": 132, "type": "identifier", "text": "Expression", "parent": 131, "children": [], "start_point": {"row": 48, "column": 49}, "end_point": {"row": 48, "column": 59}}, {"id": 133, "type": "labeled_statement", "text": "public:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }", "parent": 129, "children": [134], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 54, "column": 5}}, {"id": 134, "type": "labeled_statement", "text": "VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }", "parent": 133, "children": [135, 136, 147], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 54, "column": 5}}, {"id": 135, "type": "statement_identifier", "text": "VersionedVariableExpression", "parent": 134, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 31}}, {"id": 136, "type": "ERROR", "text": "(std::string* var, Expression* version)", "parent": 134, "children": [137, 139], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 70}}, {"id": 137, "type": "type_descriptor", "text": "std", "parent": 136, "children": [138], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 35}}, {"id": 138, "type": "type_identifier", "text": "std", "parent": 137, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 35}}, {"id": 139, "type": "comma_expression", "text": "string* var, Expression* version", "parent": 136, "children": [140, 143], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 69}}, {"id": 140, "type": "binary_expression", "text": "string* var", "parent": 139, "children": [141, 142], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 48}}, {"id": 141, "type": "identifier", "text": "string", "parent": 140, "children": [], "start_point": {"row": 50, "column": 37}, "end_point": {"row": 50, "column": 43}}, {"id": 142, "type": "*", "text": "*", "parent": 140, "children": [], "start_point": {"row": 50, "column": 43}, "end_point": {"row": 50, "column": 44}}, {"id": 143, "type": "binary_expression", "text": "Expression* version", "parent": 139, "children": [144, 145, 146], "start_point": {"row": 50, "column": 50}, "end_point": {"row": 50, "column": 69}}, {"id": 144, "type": "identifier", "text": "Expression", "parent": 143, "children": [], "start_point": {"row": 50, "column": 50}, "end_point": {"row": 50, "column": 60}}, {"id": 145, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 50, "column": 60}, "end_point": {"row": 50, "column": 61}}, {"id": 146, "type": "identifier", "text": "version", "parent": 143, "children": [], "start_point": {"row": 50, "column": 62}, "end_point": {"row": 50, "column": 69}}, {"id": 147, "type": "ERROR", "text": "Expression(Kind::kVersionedVar)", "parent": 134, "children": [148], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 41}}, {"id": 148, "type": "macro_type_specifier", "text": "Expression(Kind::kVersionedVar)", "parent": 147, "children": [149, 150, 153], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 41}}, {"id": 149, "type": "identifier", "text": "Expression", "parent": 148, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 20}}, {"id": 150, "type": "ERROR", "text": "Kind::", "parent": 148, "children": [151], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 27}}, {"id": 151, "type": "type_descriptor", "text": "Kind", "parent": 150, "children": [152], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 25}}, {"id": 152, "type": "type_identifier", "text": "Kind", "parent": 151, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 25}}, {"id": 153, "type": "type_descriptor", "text": "kVersionedVar", "parent": 148, "children": [154], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 40}}, {"id": 154, "type": "type_identifier", "text": "kVersionedVar", "parent": 153, "children": [], "start_point": {"row": 51, "column": 27}, "end_point": {"row": 51, "column": 40}}, {"id": 155, "type": "call_expression", "text": "var_.reset(var)", "parent": 134, "children": [156, 159], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 23}}, {"id": 156, "type": "field_expression", "text": "var_.reset", "parent": 155, "children": [157, 158], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 18}}, {"id": 157, "type": "identifier", "text": "var_", "parent": 156, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 12}}, {"id": 158, "type": "field_identifier", "text": "reset", "parent": 156, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 18}}, {"id": 159, "type": "argument_list", "text": "(var)", "parent": 155, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 23}}, {"id": 160, "type": "call_expression", "text": "version_.reset(version)", "parent": 134, "children": [161, 164], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 31}}, {"id": 161, "type": "field_expression", "text": "version_.reset", "parent": 160, "children": [162, 163], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 22}}, {"id": 162, "type": "identifier", "text": "version_", "parent": 161, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 16}}, {"id": 163, "type": "field_identifier", "text": "reset", "parent": 161, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 22}}, {"id": 164, "type": "argument_list", "text": "(version)", "parent": 160, "children": [165], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 31}}, {"id": 165, "type": "identifier", "text": "version", "parent": 164, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 30}}, {"id": 166, "type": "declaration", "text": "const std::string& var() const {\n return *var_.get();", "parent": 129, "children": [167, 168, 172], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 57, "column": 27}}, {"id": 167, "type": "type_identifier", "text": "std", "parent": 166, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 13}}, {"id": 168, "type": "ERROR", "text": "::string& var() const {\n return", "parent": 166, "children": [169, 170], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 169, "type": "identifier", "text": "string", "parent": 168, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 21}}, {"id": 170, "type": "function_declarator", "text": "var()", "parent": 168, "children": [171], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 56, "column": 28}}, {"id": 171, "type": "parameter_list", "text": "()", "parent": 170, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 28}}, {"id": 172, "type": "pointer_declarator", "text": "*var_.get()", "parent": 166, "children": [173, 174, 176], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 26}}, {"id": 173, "type": "*", "text": "*", "parent": 172, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 16}}, {"id": 174, "type": "ERROR", "text": "var_.", "parent": 172, "children": [175], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 21}}, {"id": 175, "type": "identifier", "text": "var_", "parent": 174, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 20}}, {"id": 176, "type": "function_declarator", "text": "get()", "parent": 172, "children": [177, 178], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 26}}, {"id": 177, "type": "identifier", "text": "get", "parent": 176, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 24}}, {"id": 178, "type": "parameter_list", "text": "()", "parent": 176, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 26}}, {"id": 179, "type": "ERROR", "text": "const Value", "parent": 0, "children": [180], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 15}}, {"id": 180, "type": "type_identifier", "text": "Value", "parent": 179, "children": [], "start_point": {"row": 60, "column": 10}, "end_point": {"row": 60, "column": 15}}, {"id": 181, "type": "pointer_expression", "text": "& eval(ExpressionContext& ctx)", "parent": 0, "children": [182], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 45}}, {"id": 182, "type": "call_expression", "text": "eval(ExpressionContext& ctx)", "parent": 181, "children": [183, 184], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 45}}, {"id": 183, "type": "identifier", "text": "eval", "parent": 182, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 21}}, {"id": 184, "type": "argument_list", "text": "(ExpressionContext& ctx)", "parent": 182, "children": [185], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 45}}, {"id": 185, "type": "binary_expression", "text": "ExpressionContext& ctx", "parent": 184, "children": [186, 187], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 44}}, {"id": 186, "type": "identifier", "text": "ExpressionContext", "parent": 185, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 39}}, {"id": 187, "type": "identifier", "text": "ctx", "parent": 185, "children": [], "start_point": {"row": 60, "column": 41}, "end_point": {"row": 60, "column": 44}}, {"id": 188, "type": "ERROR", "text": "override", "parent": 0, "children": [189], "start_point": {"row": 60, "column": 46}, "end_point": {"row": 60, "column": 54}}, {"id": 189, "type": "identifier", "text": "override", "parent": 188, "children": [], "start_point": {"row": 60, "column": 46}, "end_point": {"row": 60, "column": 54}}, {"id": 190, "type": "ERROR", "text": "bool operator==(const Expression& rhs) const override", "parent": 0, "children": [191, 192, 193, 194, 195, 197], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 57}}, {"id": 191, "type": "primitive_type", "text": "bool", "parent": 190, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 8}}, {"id": 192, "type": "identifier", "text": "operator", "parent": 190, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 17}}, {"id": 193, "type": "==", "text": "==", "parent": 190, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 19}}, {"id": 194, "type": "type_identifier", "text": "Expression", "parent": 190, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 36}}, {"id": 195, "type": "pointer_expression", "text": "& rhs", "parent": 190, "children": [196], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 41}}, {"id": 196, "type": "identifier", "text": "rhs", "parent": 195, "children": [], "start_point": {"row": 62, "column": 38}, "end_point": {"row": 62, "column": 41}}, {"id": 197, "type": "type_identifier", "text": "override", "parent": 190, "children": [], "start_point": {"row": 62, "column": 49}, "end_point": {"row": 62, "column": 57}}, {"id": 198, "type": "call_expression", "text": "UNUSED(rhs)", "parent": 0, "children": [199, 200], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 19}}, {"id": 199, "type": "identifier", "text": "UNUSED", "parent": 198, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 14}}, {"id": 200, "type": "argument_list", "text": "(rhs)", "parent": 198, "children": [201], "start_point": {"row": 63, "column": 14}, "end_point": {"row": 63, "column": 19}}, {"id": 201, "type": "identifier", "text": "rhs", "parent": 200, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 18}}, {"id": 202, "type": "return_statement", "text": "return false;", "parent": 0, "children": [203], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 21}}, {"id": 203, "type": "false", "text": "false", "parent": 202, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 20}}, {"id": 204, "type": "labeled_statement", "text": "std::string toString() const override;", "parent": 0, "children": [205, 206], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 42}}, {"id": 205, "type": "statement_identifier", "text": "std", "parent": 204, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 7}}, {"id": 206, "type": "ERROR", "text": ":string toString() const override", "parent": 204, "children": [207, 208], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 41}}, {"id": 207, "type": "type_identifier", "text": "string", "parent": 206, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 15}}, {"id": 208, "type": "function_declarator", "text": "toString() const override", "parent": 206, "children": [209, 210, 211], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 41}}, {"id": 209, "type": "identifier", "text": "toString", "parent": 208, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 24}}, {"id": 210, "type": "parameter_list", "text": "()", "parent": 208, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 26}}, {"id": 211, "type": "identifier", "text": "override", "parent": 208, "children": [], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 41}}, {"id": 212, "type": "labeled_statement", "text": "private:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }", "parent": 0, "children": [213], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 72, "column": 5}}, {"id": 213, "type": "ERROR", "text": "void writeTo(Encoder& encoder) const override", "parent": 212, "children": [214, 215], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 49}}, {"id": 214, "type": "primitive_type", "text": "void", "parent": 213, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 8}}, {"id": 215, "type": "function_declarator", "text": "writeTo(Encoder& encoder) const override", "parent": 213, "children": [216, 217, 221], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 49}}, {"id": 216, "type": "identifier", "text": "writeTo", "parent": 215, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 16}}, {"id": 217, "type": "parameter_list", "text": "(Encoder& encoder)", "parent": 215, "children": [218], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 34}}, {"id": 218, "type": "parameter_declaration", "text": "Encoder& encoder", "parent": 217, "children": [219, 220], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 33}}, {"id": 219, "type": "type_identifier", "text": "Encoder", "parent": 218, "children": [], "start_point": {"row": 70, "column": 17}, "end_point": {"row": 70, "column": 24}}, {"id": 220, "type": "identifier", "text": "encoder", "parent": 218, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 33}}, {"id": 221, "type": "identifier", "text": "override", "parent": 215, "children": [], "start_point": {"row": 70, "column": 41}, "end_point": {"row": 70, "column": 49}}, {"id": 222, "type": "call_expression", "text": "UNUSED(encoder)", "parent": 212, "children": [223, 224], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 23}}, {"id": 223, "type": "identifier", "text": "UNUSED", "parent": 222, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 14}}, {"id": 224, "type": "argument_list", "text": "(encoder)", "parent": 222, "children": [225], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 23}}, {"id": 225, "type": "identifier", "text": "encoder", "parent": 224, "children": [], "start_point": {"row": 71, "column": 15}, "end_point": {"row": 71, "column": 22}}, {"id": 226, "type": "function_definition", "text": "void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }", "parent": 0, "children": [227, 228], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 76, "column": 5}}, {"id": 227, "type": "primitive_type", "text": "void", "parent": 226, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 8}}, {"id": 228, "type": "function_declarator", "text": "resetFrom(Decoder& decoder) override", "parent": 226, "children": [229, 230, 234], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 45}}, {"id": 229, "type": "identifier", "text": "resetFrom", "parent": 228, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 18}}, {"id": 230, "type": "parameter_list", "text": "(Decoder& decoder)", "parent": 228, "children": [231], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 36}}, {"id": 231, "type": "parameter_declaration", "text": "Decoder& decoder", "parent": 230, "children": [232, 233], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 35}}, {"id": 232, "type": "type_identifier", "text": "Decoder", "parent": 231, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 26}}, {"id": 233, "type": "identifier", "text": "decoder", "parent": 231, "children": [], "start_point": {"row": 74, "column": 28}, "end_point": {"row": 74, "column": 35}}, {"id": 234, "type": "identifier", "text": "override", "parent": 228, "children": [], "start_point": {"row": 74, "column": 37}, "end_point": {"row": 74, "column": 45}}, {"id": 235, "type": "call_expression", "text": "UNUSED(decoder)", "parent": 226, "children": [236, 237], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 23}}, {"id": 236, "type": "identifier", "text": "UNUSED", "parent": 235, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 14}}, {"id": 237, "type": "argument_list", "text": "(decoder)", "parent": 235, "children": [238], "start_point": {"row": 75, "column": 14}, "end_point": {"row": 75, "column": 23}}, {"id": 238, "type": "identifier", "text": "decoder", "parent": 237, "children": [], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 22}}, {"id": 239, "type": "labeled_statement", "text": "std::unique_ptr<std::string> var_;", "parent": 0, "children": [240, 241], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 54}}, {"id": 240, "type": "statement_identifier", "text": "std", "parent": 239, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 7}}, {"id": 241, "type": "ERROR", "text": "::unique_ptr<std:", "parent": 239, "children": [242], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 24}}, {"id": 242, "type": "binary_expression", "text": "unique_ptr<std", "parent": 241, "children": [243, 244, 245], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 23}}, {"id": 243, "type": "identifier", "text": "unique_ptr", "parent": 242, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 19}}, {"id": 244, "type": "<", "text": "<", "parent": 242, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 20}}, {"id": 245, "type": "identifier", "text": "std", "parent": 242, "children": [], "start_point": {"row": 78, "column": 20}, "end_point": {"row": 78, "column": 23}}, {"id": 246, "type": "binary_expression", "text": "string> var_", "parent": 239, "children": [247, 248, 249], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 53}}, {"id": 247, "type": "identifier", "text": "string", "parent": 246, "children": [], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 31}}, {"id": 248, "type": ">", "text": ">", "parent": 246, "children": [], "start_point": {"row": 78, "column": 31}, "end_point": {"row": 78, "column": 32}}, {"id": 249, "type": "identifier", "text": "var_", "parent": 246, "children": [], "start_point": {"row": 78, "column": 49}, "end_point": {"row": 78, "column": 53}}, {"id": 250, "type": "labeled_statement", "text": "std::unique_ptr<Expression> version_;", "parent": 0, "children": [251], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 58}}, {"id": 251, "type": "statement_identifier", "text": "std", "parent": 250, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 7}}, {"id": 252, "type": "binary_expression", "text": "unique_ptr<Expression> version_", "parent": 250, "children": [253, 257, 258], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 57}}, {"id": 253, "type": "binary_expression", "text": "unique_ptr<Expression", "parent": 252, "children": [254, 255, 256], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 30}}, {"id": 254, "type": "identifier", "text": "unique_ptr", "parent": 253, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 19}}, {"id": 255, "type": "<", "text": "<", "parent": 253, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 20}}, {"id": 256, "type": "identifier", "text": "Expression", "parent": 253, "children": [], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 30}}, {"id": 257, "type": ">", "text": ">", "parent": 252, "children": [], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 31}}, {"id": 258, "type": "identifier", "text": "version_", "parent": 252, "children": [], "start_point": {"row": 81, "column": 49}, "end_point": {"row": 81, "column": 57}}, {"id": 259, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 84, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 21, 45, 51, 83, 91, 98, 103, 105, 170, 176, 208, 215, 226, 228], "variables": [12, 24, 41, 88, 94, 101, 108, 127, 166, 218, 231], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [30, 36, 37, 56, 57, 60, 70, 73, 112, 119, 123, 139, 140, 143, 155, 156, 160, 161, 181, 182, 185, 195, 198, 222, 235, 242, 246, 252, 253], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 15, 17, 20, 22, 25, 27, 31, 33, 35, 38, 39, 42, 44, 50, 52, 55, 58, 61, 62, 64, 67, 69, 71, 72, 74, 76, 80, 82, 84, 86, 92, 95, 96, 97, 99, 102, 106, 109, 110, 111, 113, 115, 117, 120, 122, 124, 126, 128, 130, 132, 135, 138, 141, 144, 146, 148, 149, 152, 154, 157, 158, 162, 163, 165, 167, 169, 175, 177, 180, 183, 186, 187, 189, 192, 194, 196, 197, 199, 201, 205, 207, 209, 211, 216, 219, 220, 221, 223, 225, 229, 232, 233, 234, 236, 238, 240, 243, 245, 247, 249, 251, 254, 256, 258, 259], "returns": [77, 202], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "VariableExpression", "text_snippet": "namespace nebula {\nclass VariableExpression final : public Expression {\npublic:\n explicit Variabl"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "VariableExpression(std::string* var)\n : Expression(Kind::kVar)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "var()"}, {"node_id": 51, "universal_type": "function", "name": "unknown", "text_snippet": "get()"}, {"node_id": 83, "universal_type": "function", "name": "unknown", "text_snippet": "toString() const override"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "writeTo(Encoder& encoder) const override"}, {"node_id": 98, "universal_type": "function", "name": "unknown", "text_snippet": "UNUSED(encoder)"}, {"node_id": 103, "universal_type": "function", "name": "resetFrom", "text_snippet": "void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }"}, {"node_id": 105, "universal_type": "function", "name": "unknown", "text_snippet": "resetFrom(Decoder& decoder) override"}, {"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "var()"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "get()"}, {"node_id": 208, "universal_type": "function", "name": "unknown", "text_snippet": "toString() const override"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "writeTo(Encoder& encoder) const override"}, {"node_id": 226, "universal_type": "function", "name": "resetFrom", "text_snippet": "void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }"}, {"node_id": 228, "universal_type": "function", "name": "unknown", "text_snippet": "resetFrom(Decoder& decoder) override"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"common/expression/Expression.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/* Copyright (c) 2020 vesoft inc. All rights reserved.\n *\n * This source code is licensed under Apache 2.0 License,\n * attached with Common Clause Condition 1.0, found in the LICENSES directory.\n */\n\n#ifndef COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n#define COMMON_EXPRESSION_VARIABLEEXPRESSION_H_\n\n#include \"common/expression/Expression.h\"\n\nnamespace nebula {\nclass VariableExpression final : public Expression {\npublic:\n explicit VariableExpression(std::string* var)\n : Expression(Kind::kVar) {\n var_.reset(var);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }\n\n void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }\n\n std::unique_ptr<std::string> var_;\n};\n\n/*\n * VersionedVariableExpression is designed for getting the historical results\n * of a variable.\n */\nclass VersionedVariableExpression final : public Expression {\npublic:\n VersionedVariableExpression(std::string* var, Expression* version)\n : Expression(Kind::kVersionedVar) {\n var_.reset(var);\n version_.reset(version);\n }\n\n const std::string& var() const {\n return *var_.get();\n }\n\n const Value& eval(ExpressionContext& ctx) override;\n\n bool operator==(const Expression& rhs) const override {\n UNUSED(rhs);\n return false;\n }\n\n std::string toString() const override;\n\nprivate:\n void writeTo(Encoder& encoder) const override {\n UNUSED(encoder);\n }\n\n void resetFrom(Decoder& decoder) override {\n UNUSED(decoder);\n }\n\n std::unique_ptr<std::string> var_;\n // 0 means the latest, -1 the previous one, and so on.\n // 1 means the eldest, 2 the second elder one, and so on.\n std::unique_ptr<Expression> version_;\n};\n} // namespace nebula\n#endif\n"}
80,300
c
// taken (and modified) from riscv-pk. See LICENSE.riscv-pk #ifndef _RISCV_UART_H #if defined(QEMU_UART) || defined(SHAKTI_UART) #define _RISCV_UART_H #include <stdint.h> namespace pk { void uart_putchar(uint8_t ch); int uart_getchar(); void init_uart(); } #endif #endif
22.58
12
(translation_unit) "// taken (and modified) from riscv-pk. See LICENSE.riscv-pk\n\n#ifndef _RISCV_UART_H\n#if defined(QEMU_UART) || defined(SHAKTI_UART)\n#define _RISCV_UART_H\n\n#include <stdint.h>\n\nnamespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}\n\n#endif\n#endif\n" (comment) "// taken (and modified) from riscv-pk. See LICENSE.riscv-pk" (preproc_ifdef) "#ifndef _RISCV_UART_H\n#if defined(QEMU_UART) || defined(SHAKTI_UART)\n#define _RISCV_UART_H\n\n#include <stdint.h>\n\nnamespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}\n\n#endif\n#endif" (#ifndef) "#ifndef" (identifier) "_RISCV_UART_H" (preproc_if) "#if defined(QEMU_UART) || defined(SHAKTI_UART)\n#define _RISCV_UART_H\n\n#include <stdint.h>\n\nnamespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}\n\n#endif" (#if) "#if" (binary_expression) "defined(QEMU_UART) || defined(SHAKTI_UART)" (preproc_defined) "defined(QEMU_UART)" (defined) "defined" (() "(" (identifier) "QEMU_UART" ()) ")" (||) "||" (preproc_defined) "defined(SHAKTI_UART)" (defined) "defined" (() "(" (identifier) "SHAKTI_UART" ()) ")" ( ) "\n" (preproc_def) "#define _RISCV_UART_H\n" (#define) "#define" (identifier) "_RISCV_UART_H" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (function_definition) "namespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}" (type_identifier) "namespace" (identifier) "pk" (compound_statement) "{\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}" ({) "{" (declaration) "void uart_putchar(uint8_t ch);" (primitive_type) "void" (function_declarator) "uart_putchar(uint8_t ch)" (identifier) "uart_putchar" (parameter_list) "(uint8_t ch)" (() "(" (parameter_declaration) "uint8_t ch" (primitive_type) "uint8_t" (identifier) "ch" ()) ")" (;) ";" (declaration) "int uart_getchar();" (primitive_type) "int" (function_declarator) "uart_getchar()" (identifier) "uart_getchar" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void init_uart();" (primitive_type) "void" (function_declarator) "init_uart()" (identifier) "init_uart" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (#endif) "#endif" (#endif) "#endif"
61
0
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 22.58, "nodes": 43, "errors": 0, "source_hash": "d56ad54cb48c188ecebbd86df6bd40d97617542214d234ab7005b7197ad56205", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _RISCV_UART_H\n#if defined(QEMU_UART) || defined(SHAKTI_UART)\n#define _RISCV_UART_H\n\n#include <stdint.h>\n\nnamespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}\n\n#endif\n#endif", "parent": null, "children": [1, 2, 3, 42], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 15, "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": "_RISCV_UART_H", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 21}}, {"id": 3, "type": "preproc_if", "text": "#if defined(QEMU_UART) || defined(SHAKTI_UART)\n#define _RISCV_UART_H\n\n#include <stdint.h>\n\nnamespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}\n\n#endif", "parent": 0, "children": [4, 5, 13, 14, 17, 20, 41], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 4, "type": "#if", "text": "#if", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 3}}, {"id": 5, "type": "binary_expression", "text": "defined(QEMU_UART) || defined(SHAKTI_UART)", "parent": 3, "children": [6, 9, 10], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 46}}, {"id": 6, "type": "preproc_defined", "text": "defined(QEMU_UART)", "parent": 5, "children": [7, 8], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 22}}, {"id": 7, "type": "defined", "text": "defined", "parent": 6, "children": [], "start_point": {"row": 3, "column": 4}, "end_point": {"row": 3, "column": 11}}, {"id": 8, "type": "identifier", "text": "QEMU_UART", "parent": 6, "children": [], "start_point": {"row": 3, "column": 12}, "end_point": {"row": 3, "column": 21}}, {"id": 9, "type": "||", "text": "||", "parent": 5, "children": [], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 25}}, {"id": 10, "type": "preproc_defined", "text": "defined(SHAKTI_UART)", "parent": 5, "children": [11, 12], "start_point": {"row": 3, "column": 26}, "end_point": {"row": 3, "column": 46}}, {"id": 11, "type": "defined", "text": "defined", "parent": 10, "children": [], "start_point": {"row": 3, "column": 26}, "end_point": {"row": 3, "column": 33}}, {"id": 12, "type": "identifier", "text": "SHAKTI_UART", "parent": 10, "children": [], "start_point": {"row": 3, "column": 34}, "end_point": {"row": 3, "column": 45}}, {"id": 13, "type": "\n", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 3, "column": 46}, "end_point": {"row": 4, "column": 0}}, {"id": 14, "type": "preproc_def", "text": "#define _RISCV_UART_H\n", "parent": 3, "children": [15, 16], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 15, "type": "#define", "text": "#define", "parent": 14, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 16, "type": "identifier", "text": "_RISCV_UART_H", "parent": 14, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 21}}, {"id": 17, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": 3, "children": [18, 19], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 18, "type": "#include", "text": "#include", "parent": 17, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 19, "type": "system_lib_string", "text": "<stdint.h>", "parent": 17, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 20, "type": "function_definition", "text": "namespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}", "parent": 3, "children": [21, 22], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 21, "type": "type_identifier", "text": "namespace", "parent": 20, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 22, "type": "identifier", "text": "pk", "parent": 20, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 12}}, {"id": 23, "type": "declaration", "text": "void uart_putchar(uint8_t ch);", "parent": 20, "children": [24, 25], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 34}}, {"id": 24, "type": "primitive_type", "text": "void", "parent": 23, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 8}}, {"id": 25, "type": "function_declarator", "text": "uart_putchar(uint8_t ch)", "parent": 23, "children": [26, 27], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 33}}, {"id": 26, "type": "identifier", "text": "uart_putchar", "parent": 25, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 21}}, {"id": 27, "type": "parameter_list", "text": "(uint8_t ch)", "parent": 25, "children": [28], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 33}}, {"id": 28, "type": "parameter_declaration", "text": "uint8_t ch", "parent": 27, "children": [29, 30], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 32}}, {"id": 29, "type": "primitive_type", "text": "uint8_t", "parent": 28, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 29}}, {"id": 30, "type": "identifier", "text": "ch", "parent": 28, "children": [], "start_point": {"row": 9, "column": 30}, "end_point": {"row": 9, "column": 32}}, {"id": 31, "type": "declaration", "text": "int uart_getchar();", "parent": 20, "children": [32, 33], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 23}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 7}}, {"id": 33, "type": "function_declarator", "text": "uart_getchar()", "parent": 31, "children": [34, 35], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 22}}, {"id": 34, "type": "identifier", "text": "uart_getchar", "parent": 33, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 20}}, {"id": 35, "type": "parameter_list", "text": "()", "parent": 33, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 22}}, {"id": 36, "type": "declaration", "text": "void init_uart();", "parent": 20, "children": [37, 38], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 21}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 8}}, {"id": 38, "type": "function_declarator", "text": "init_uart()", "parent": 36, "children": [39, 40], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 20}}, {"id": 39, "type": "identifier", "text": "init_uart", "parent": 38, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 18}}, {"id": 40, "type": "parameter_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 11, "column": 18}, "end_point": {"row": 11, "column": 20}}, {"id": 41, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 42, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 6}}]}, "node_categories": {"declarations": {"functions": [20, 25, 33, 38], "variables": [23, 28, 31, 36], "classes": [], "imports": [17, 18], "modules": [], "enums": []}, "statements": {"expressions": [5], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 3, 4, 8, 12, 16, 21, 22, 26, 30, 34, 39, 41, 42], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [19], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "uart_putchar", "text_snippet": "namespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "uart_putchar(uint8_t ch)"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "uart_getchar()"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "init_uart()"}], "class_declarations": [], "import_statements": [{"node_id": 17, "text": "#include <stdint.h>\n"}, {"node_id": 18, "text": "#include"}]}, "original_source_code": "// taken (and modified) from riscv-pk. See LICENSE.riscv-pk\n\n#ifndef _RISCV_UART_H\n#if defined(QEMU_UART) || defined(SHAKTI_UART)\n#define _RISCV_UART_H\n\n#include <stdint.h>\n\nnamespace pk {\n void uart_putchar(uint8_t ch);\n int uart_getchar();\n void init_uart();\n}\n\n#endif\n#endif\n"}
80,301
c
//uart initialization (for REAL) and communication #include "types.h" #include "mmu.h" #include "memlayout.h" #include "uart.h" extern inline void mmio_write(unsigned int reg, unsigned int data); extern inline unsigned int mmio_read(unsigned int reg); /* * countサイクル待つ * ループを最適化しない * 00000030 <__delay_16>: * 30: e2533001 subs r3, r3, #1 * 34: 1afffffd bne 30 <__delay_16> */ static void delay(int count) { asm volatile("__delay_%=: subs %[count], %[count], #1; bne __delay_%=\n" : : [count]"r"(count) : "cc"); } void uart_init() { // Disable UART0. mmio_write(UART0_CR, 0x00000000); // Flash the transmit FIFO mmio_write(UART0_LCRH, 0x00000000); // Setup the GPIO pin 14 && 15. // Disable pull up/down for all GPIO pins & delay for 150 cycles. mmio_write(GPPUD, 0x00000000); delay(150); // Disable pull up/down for pin 14,15 & delay for 150 cycles. mmio_write(GPPUDCLK0, (1 << 14) | (1 << 15)); delay(150); // Write 0 to GPPUD to make it take effect. ? mmio_write(GPPUD, 0x00000000); // Write 0 to GPPUDCLK0 to make it take effect. ? mmio_write(GPPUDCLK0, 0x00000000); // Clear pending interrupts. ? mmio_write(UART0_ICR, 0xFFFF); // Set integer & fractional part of baud rate. ? // Divider = UART_CLOCK/(16 * Baud) // Fraction part register = (Fractional part * 64) + 0.5 // UART_CLOCK = 3000000; Baud = 115200. // Divider = 3000000/(16 * 115200) = 1.627 = ~1. // Fractional part register = (.627 * 64) + 0.5 = 40.6 = ~40. mmio_write(UART0_IBRD, 1); mmio_write(UART0_FBRD, 40); // Enable FIFO & 8 bit data transmissio (1 stop bit, no parity). mmio_write(UART0_LCRH, (1 << 4) | (1 << 5) | (1 << 6)); // Mask all interrupts. ? mmio_write(UART0_IMSC, (1 << 1) | (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7) | (1 << 8) | (1 << 9) | (1 << 10)); // Enable UART0, receive & transfer part of UART. mmio_write(UART0_CR, (1 << 0) | (1 << 8) | (1 << 9)); } /* * Transmit a byte via UART0. * uint8_t Byte: byte to send. */ void uart_putc(char byte) { // wait for UART to become ready to transmit while (1) { if (!(mmio_read(UART0_FR) & (1 << 5))) { break; } } mmio_write(UART0ADDR, byte); } /* * print a string to the UART one character at a time * const char *str: 0-terminated string */ void uart_puts(char *str) { while (*str) { uart_putc(*str++); } }
27.45
83
(translation_unit) "//uart initialization (for REAL) and communication\n\n#include "types.h"\n#include "mmu.h"\n#include "memlayout.h"\n#include "uart.h"\n\nextern inline void mmio_write(unsigned int reg, unsigned int data);\nextern inline unsigned int mmio_read(unsigned int reg);\n\n/*\n * countサイクル待つ\n * ループを最適化しない\n * 00000030 <__delay_16>:\n * 30: e2533001 subs r3, r3, #1\n * 34: 1afffffd bne 30 <__delay_16>\n */\nstatic void delay(int count) {\n asm volatile("__delay_%=: subs %[count], %[count], #1; bne __delay_%=\n"\n : : [count]"r"(count) : "cc");\n}\n\nvoid uart_init() {\n // Disable UART0.\n mmio_write(UART0_CR, 0x00000000);\n\n // Flash the transmit FIFO\n mmio_write(UART0_LCRH, 0x00000000);\n\n // Setup the GPIO pin 14 && 15. \n // Disable pull up/down for all GPIO pins & delay for 150 cycles.\n mmio_write(GPPUD, 0x00000000);\n delay(150);\n \n // Disable pull up/down for pin 14,15 & delay for 150 cycles.\n mmio_write(GPPUDCLK0, (1 << 14) | (1 << 15));\n delay(150);\n\n // Write 0 to GPPUD to make it take effect. ?\n mmio_write(GPPUD, 0x00000000);\n\n // Write 0 to GPPUDCLK0 to make it take effect. ?\n mmio_write(GPPUDCLK0, 0x00000000);\n \n // Clear pending interrupts. ?\n mmio_write(UART0_ICR, 0xFFFF);\n \n // Set integer & fractional part of baud rate. ?\n // Divider = UART_CLOCK/(16 * Baud)\n // Fraction part register = (Fractional part * 64) + 0.5\n // UART_CLOCK = 3000000; Baud = 115200.\n \n // Divider = 3000000/(16 * 115200) = 1.627 = ~1.\n // Fractional part register = (.627 * 64) + 0.5 = 40.6 = ~40.\n mmio_write(UART0_IBRD, 1);\n mmio_write(UART0_FBRD, 40);\n \n // Enable FIFO & 8 bit data transmissio (1 stop bit, no parity).\n mmio_write(UART0_LCRH, (1 << 4) | (1 << 5) | (1 << 6));\n \n // Mask all interrupts. ?\n mmio_write(UART0_IMSC, (1 << 1) | (1 << 4) | (1 << 5) |\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n \n // Enable UART0, receive & transfer part of UART.\n mmio_write(UART0_CR, (1 << 0) | (1 << 8) | (1 << 9));\n}\n\n/*\n * Transmit a byte via UART0.\n * uint8_t Byte: byte to send.\n */\nvoid uart_putc(char byte) {\n // wait for UART to become ready to transmit\n while (1) {\n if (!(mmio_read(UART0_FR) & (1 << 5))) {\n break;\n }\n }\n mmio_write(UART0ADDR, byte);\n}\n \n/*\n * print a string to the UART one character at a time\n * const char *str: 0-terminated string\n */\nvoid uart_puts(char *str) {\n while (*str) {\n uart_putc(*str++);\n }\n}\n \n \n" (comment) "//uart initialization (for REAL) and communication" (preproc_include) "#include "types.h"\n" (#include) "#include" (string_literal) ""types.h"" (") """ (string_content) "types.h" (") """ (preproc_include) "#include "mmu.h"\n" (#include) "#include" (string_literal) ""mmu.h"" (") """ (string_content) "mmu.h" (") """ (preproc_include) "#include "memlayout.h"\n" (#include) "#include" (string_literal) ""memlayout.h"" (") """ (string_content) "memlayout.h" (") """ (preproc_include) "#include "uart.h"\n" (#include) "#include" (string_literal) ""uart.h"" (") """ (string_content) "uart.h" (") """ (declaration) "extern inline void mmio_write(unsigned int reg, unsigned int data);" (storage_class_specifier) "extern" (extern) "extern" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "mmio_write(unsigned int reg, unsigned int data)" (identifier) "mmio_write" (parameter_list) "(unsigned int reg, unsigned int data)" (() "(" (parameter_declaration) "unsigned int reg" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "reg" (,) "," (parameter_declaration) "unsigned int data" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "data" ()) ")" (;) ";" (declaration) "extern inline unsigned int mmio_read(unsigned int reg);" (storage_class_specifier) "extern" (extern) "extern" (storage_class_specifier) "inline" (inline) "inline" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "mmio_read(unsigned int reg)" (identifier) "mmio_read" (parameter_list) "(unsigned int reg)" (() "(" (parameter_declaration) "unsigned int reg" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "reg" ()) ")" (;) ";" (comment) "/*\n * countサイクル待つ\n * ループを最適化しない\n * 00000030 <__delay_16>:\n * 30: e2533001 subs r3, r3, #1\n * 34: 1afffffd bne 30 <__delay_16>\n */\nstatic void delay(int count) {\n" (function_definition) "asm volatile("__delay_%=: subs %[count], %[count], #1; bne __delay_%=\n"\n : : [count]"r"(count) : "cc");\n}\n\nvoid uart_init() {\n // Disable" (storage_class_specifier) "asm vo" (static) "asm vo" (primitive_type) "atil" (function_declarator) "("__delay_%=: su" (identifier) "("__d" (parameter_list) "elay_%=: su" (() "e" (parameter_declaration) "lay_%=: s" (primitive_type) "lay" (identifier) "%=: s" ()) "u" (compound_statement) "s %[count], %[count], #1; bne __delay_%=\n"\n : : [count]"r"(count) : "cc");\n}\n\nvoid uart_init() {\n // Disable" ({) "s" (expression_statement) "[count], %[count], #1; bne __delay_%=\n"\n : : [count]"r"(count) : "cc");\n}\n\nvoid uart_init() {\n // Disab" (gnu_asm_expression) "[count], %[count], #1; bne __delay_%=\n"\n : : [count]"r"(count) : "cc");\n}\n\nvoid uart_init() {\n // Disa" (asm) "[co" (gnu_asm_qualifier) "nt], %[c" (volatile) "nt], %[c" (() "o" (string_literal) "unt], #1; bne __delay_%=\n"\n : : [count]"r"(count) : " (") "u" (string_content) "nt], #1; bne __delay_%=\n"\n : : [count]"r"(count)" (escape_sequence) " :" (") " " (gnu_asm_output_operand_list) "\n" (:) "\n" (gnu_asm_input_operand_list) "void uart_init() {\n" (:) "v" (gnu_asm_input_operand) "id uart_init() {\n" ([) "i" (identifier) "d uar" (]) "t" (string_literal) "_in" (") "_" (string_content) "i" (") "n" (() "i" (identifier) "t() {" ()) "\n" (gnu_asm_clobber_list) "// Dis" (:) "/" (string_literal) " Dis" (") " " (string_content) "Di" (") "s" ()) "a" (;) "b" (}) "e" (function_definition) "ART0.\n mmio_write(UART0_CR, 0x00000000);\n\n // Flash the transmit FIFO\n mmio_write(UART0_LCRH, 0x00000000);\n\n // Setup the GPIO pin 14 && 15. \n // Disable pull up/down for all GPIO pins & delay for 150 cycles.\n mmio_write(GPPUD, 0x00000000);\n delay(150);\n \n // Disable pull up/down for pin 14,15 & delay for 150 cycles.\n mmio_write(GPPUDCLK0, (1 << 14) | (1 << 15));\n delay(150);\n\n // Write 0 to GPPUD to make it take effect. ?\n mmio_write(GPPUD, 0x00000000);\n\n // Write 0 to GPPUDCLK0 to make it take effect. ?\n mmio_write(GPPUDCLK0, 0x00000000);\n \n // Clear pending interrupts. ?\n mmio_write(UART0_ICR, 0xFFFF);\n \n // Set integer & fractional part of baud rate. ?\n // Divider = UART_CLOCK/(16 * Baud)\n // Fraction part register = (Fractional part * 64) + 0.5\n // UART_CLOCK = 3000000; Baud = 115200.\n \n // Divider = 3000000/(16 * 115200) = 1.627 = ~1.\n // Fractional part register = (.627 * 64) + 0.5 = 40.6 = ~40.\n mmio_write(UART0_IBRD, 1);\n mmio_write(UART0_FBRD, 40);\n \n // Enable FIFO & 8 bit data transmissio (1 stop bit, no parity).\n mmio_write(UART0_LCRH, (1 << 4) | (1 << 5) | (1 << 6));\n \n // Mask all interrupts. ?\n mmio_write(UART0_IMSC, (1 << 1) | (1 << 4) | (1 << 5) |\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n \n // Enable UART0, receive & transfer part of UART.\n mmio_write(UART0_CR, (1 << 0) | (1 << 8) | (1 << 9));\n}\n\n/*\n * Transmit a byte via UART" (primitive_type) "ART0" (function_declarator) "\n mmio_writ" (identifier) "\n mmio_wr" (parameter_list) "it" (() "i" ()) "t" (compound_statement) "(UART0_CR, 0x00000000);\n\n // Flash the transmit FIFO\n mmio_write(UART0_LCRH, 0x00000000);\n\n // Setup the GPIO pin 14 && 15. \n // Disable pull up/down for all GPIO pins & delay for 150 cycles.\n mmio_write(GPPUD, 0x00000000);\n delay(150);\n \n // Disable pull up/down for pin 14,15 & delay for 150 cycles.\n mmio_write(GPPUDCLK0, (1 << 14) | (1 << 15));\n delay(150);\n\n // Write 0 to GPPUD to make it take effect. ?\n mmio_write(GPPUD, 0x00000000);\n\n // Write 0 to GPPUDCLK0 to make it take effect. ?\n mmio_write(GPPUDCLK0, 0x00000000);\n \n // Clear pending interrupts. ?\n mmio_write(UART0_ICR, 0xFFFF);\n \n // Set integer & fractional part of baud rate. ?\n // Divider = UART_CLOCK/(16 * Baud)\n // Fraction part register = (Fractional part * 64) + 0.5\n // UART_CLOCK = 3000000; Baud = 115200.\n \n // Divider = 3000000/(16 * 115200) = 1.627 = ~1.\n // Fractional part register = (.627 * 64) + 0.5 = 40.6 = ~40.\n mmio_write(UART0_IBRD, 1);\n mmio_write(UART0_FBRD, 40);\n \n // Enable FIFO & 8 bit data transmissio (1 stop bit, no parity).\n mmio_write(UART0_LCRH, (1 << 4) | (1 << 5) | (1 << 6));\n \n // Mask all interrupts. ?\n mmio_write(UART0_IMSC, (1 << 1) | (1 << 4) | (1 << 5) |\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n \n // Enable UART0, receive & transfer part of UART.\n mmio_write(UART0_CR, (1 << 0) | (1 << 8) | (1 << 9));\n}\n\n/*\n * Transmit a byte via UART" ({) "(" (comment) "RT0_CR, 0x0000000" (expression_statement) ";\n\n // Flash the transmit FIFO\n m" (call_expression) ";\n\n // Flash the transmit FIFO\n " (identifier) ";\n\n // Fla" (argument_list) "sh the transmit FIFO\n " (() "s" (identifier) "h the tr" (,) "a" (number_literal) "smit FIFO\n" ()) " " (;) "m" (comment) "_write(UART0_LCRH, 0x00000" (expression_statement) "0);\n\n // Setup the GPIO pin 14 && 1" (call_expression) "0);\n\n // Setup the GPIO pin 14 && " (identifier) "0);\n\n // S" (argument_list) "etup the GPIO pin 14 && " (() "e" (identifier) "tup the GP" (,) "I" (number_literal) " pin 14 &&" ()) " " (;) "1" (comment) "\n // Disable pull up/down for al" (comment) "GPIO pins & delay for 150 cycles.\n mmio_write(GPPUD, 0x00000000);" (expression_statement) "delay(150);\n \n // Disable pull" (call_expression) "delay(150);\n \n // Disable pul" (identifier) "delay(150)" (argument_list) ";\n \n // Disable pul" (() ";" (identifier) "\n \n /" (,) "/" (number_literal) "Disable pu" ()) "l" (;) "l" (expression_statement) "p/down for " (call_expression) "p/down for" (identifier) "p/dow" (argument_list) "n for" (() "n" (number_literal) " fo" ()) "r" (;) " " (comment) "14,15 & delay for 150 cycles.\n mmio_write(GPPUDCLK0, (1 << 14" (expression_statement) "| (1 << 15));\n delay(150);\n\n // Write 0 to G" (call_expression) "| (1 << 15));\n delay(150);\n\n // Write 0 to " (identifier) "| (1 << 15" (argument_list) "));\n delay(150);\n\n // Write 0 to " (() ")" (identifier) ");\n delay" (,) "(" (binary_expression) "50);\n\n // Write 0 to" (parenthesized_expression) "50);\n\n /" (() "5" (binary_expression) "0);\n\n " (number_literal) "0" (<<) ";\n" (number_literal) " " ()) "/" (|) " " (parenthesized_expression) "rite 0 to" (() "r" (binary_expression) "ite 0 t" (number_literal) "i" (<<) "e " (number_literal) " t" ()) "o" ()) " " (;) "G" (expression_statement) "UD to make " (call_expression) "UD to make" (identifier) "UD to" (argument_list) " make" (() " " (number_literal) "mak" ()) "e" (;) " " (comment) "ake effect. ?\n mmio_write(GPPUD, 0x00000000);" (expression_statement) " // Write 0 to GPPUDCLK0 to ma" (call_expression) " // Write 0 to GPPUDCLK0 to m" (identifier) " // Write " (argument_list) "0 to GPPUDCLK0 to m" (() "0" (identifier) " to G" (,) "P" (number_literal) "UDCLK0 to " ()) "m" (;) "a" (comment) "it take effect. ?\n mmio_write(GPPUDCLK0, 0x000000" (expression_statement) ");\n \n // Clear pending interrupts." (call_expression) ");\n \n // Clear pending interrupts" (identifier) ");\n \n // C" (argument_list) "lear pending interrupts" (() "l" (identifier) "ear pendi" (,) "n" (number_literal) " interrupt" ()) "s" (;) "." (comment) "mmio_write(UART0_ICR, 0xFFFF);" (expression_statement) "\n // Set integer & fractional " (call_expression) "\n // Set integer & fractional" (identifier) "\n // Set i" (argument_list) "nteger & fractional" (() "n" (identifier) "teger & f" (,) "r" (number_literal) "ctiona" ()) "l" (;) " " (comment) " of baud rate. ?\n // Divider = UART_CLOCK/(16 * " (comment) "ud)\n // Fraction part register = (F" (comment) "ctional part * 64) + 0.5\n // UART_CLOCK = 3000000; Baud " (comment) "115200.\n \n // Divider = 3000000/(16 * 1" (comment) "0) = 1.627 = ~1.\n // Fractional part register = " (comment) "627 * 64) + 0.5 = 40.6 = ~40.\n mmio_write(UART0_IBRD, 1);\n mm" (expression_statement) "_write(UART0_FBRD, 40);\n \n" (call_expression) "_write(UART0_FBRD, 40);\n " (identifier) "_write(UAR" (argument_list) "T0_FBRD, 40);\n " (() "T" (identifier) "0_FBRD, 40" (,) ")" (number_literal) "\n" ()) " " (;) "\n" (expression_statement) "/ Enable FIFO & 8 bit data " (call_expression) "/ Enable FIFO & 8 bit data" (identifier) "/ Enable F" (argument_list) "IFO & 8 bit data" (() "I" (identifier) "FO & 8 bit" (,) " " (number_literal) "at" ()) "a" (;) " " (comment) "smissio (1 stop bit, no parity).\n mmio_write(UART0_LCRH, (1 << 4" (expression_statement) "| (1 << 5) | (1 << 6));\n \n // Mask all interrupts. ?\n m" (call_expression) "| (1 << 5) | (1 << 6));\n \n // Mask all interrupts. ?\n " (identifier) "| (1 << 5)" (argument_list) " | (1 << 6));\n \n // Mask all interrupts. ?\n " (() " " (identifier) "| (1 << 6)" (,) ")" (binary_expression) "\n \n // Mask all interrupts. ?\n" (binary_expression) "\n \n // Mask all int" (parenthesized_expression) "\n \n // M" (() "\n" (binary_expression) " \n // " (number_literal) " " (<<) " /" (number_literal) " " ()) "M" (|) "s" (parenthesized_expression) " all int" (() " " (binary_expression) "all in" (number_literal) "a" (<<) "l " (number_literal) "n" ()) "t" (|) "r" (parenthesized_expression) "upts. ?\n" (() "u" (binary_expression) "pts. ?" (number_literal) "p" (<<) "s." (number_literal) "?" ()) "\n" ()) " " (;) "m" (comment) "write(UART0_IMSC, (1 << 1" (expression_statement) "| (1 << 4) | (1 << 5) |\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n \n // Enable UART0, receive & t" (call_expression) "| (1 << 4) | (1 << 5) |\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n \n // Enable UART0, receive & " (identifier) "| (1 << 4)" (argument_list) " | (1 << 5) |\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n \n // Enable UART0, receive & " (() " " (identifier) "| (1 << 5)" (,) " " (binary_expression) "\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n \n // Enable UART0, receive &" (binary_expression) "\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n \n // Enable UART" (binary_expression) "\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1 << 10));\n " (binary_expression) "\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1 << 9) | (1" (binary_expression) "\n (1 << 6) | (1 << 7) | (1 << 8) |\n (1" (binary_expression) "\n (1 << 6) | (1 << 7) | (1" (binary_expression) "\n (1 << 6) | (1" (parenthesized_expression) "\n (1" (() "\n" (binary_expression) " (" (number_literal) " " (<<) " " (number_literal) "(" ()) "1" (|) "<" (parenthesized_expression) " 6) | (1" (() " " (binary_expression) "6) | (" (number_literal) "6" (<<) " |" (number_literal) "(" ()) "1" (|) "<" (parenthesized_expression) " 7) | (1" (() " " (binary_expression) "7) | (" (number_literal) "7" (<<) " |" (number_literal) "(" ()) "1" (|) "<" (parenthesized_expression) "\n (1" (() "\n" (binary_expression) " (" (number_literal) " " (<<) " " (number_literal) "(" ()) "1" (|) "<" (parenthesized_expression) " 9) | (1" (() " " (binary_expression) "9) | (" (number_literal) "9" (<<) " |" (number_literal) "(" ()) "1" (|) "<" (parenthesized_expression) " 10));\n " (() " " (binary_expression) "10));\n" (number_literal) "1" (<<) "))" (number_literal) "\n" ()) " " (|) " " (parenthesized_expression) "ble UART" (() "b" (binary_expression) "le UAR" (number_literal) "l" (<<) " U" (number_literal) "R" ()) "T" (|) "," (parenthesized_expression) "receive &" (() "r" (binary_expression) "eceive " (number_literal) "e" (<<) "ei" (number_literal) "e " ()) "&" ()) " " (;) "t" (comment) "fer part of UART.\n mmio_write(UART0_CR, (1 << 0) " (expression_statement) "(1 << 8) | (1 << 9));\n}\n\n/*\n * Transmit a byte via UA" (call_expression) "(1 << 8) | (1 << 9));\n}\n\n/*\n * Transmit a byte via U" (identifier) "(1 << 8) |" (argument_list) " (1 << 9));\n}\n\n/*\n * Transmit a byte via U" (() " " (identifier) "(1 << 9)" (,) ")" (binary_expression) "\n}\n\n/*\n * Transmit a byte via " (binary_expression) "\n}\n\n/*\n * Transmit " (parenthesized_expression) "\n}\n\n/*\n " (() "\n" (binary_expression) "}\n\n/*\n" (number_literal) "}" (<<) "\n/" (number_literal) "\n" ()) " " (|) " " (parenthesized_expression) "ransmit " (() "r" (binary_expression) "ansmit" (number_literal) "a" (<<) "sm" (number_literal) "t" ()) " " (|) " " (parenthesized_expression) "yte via " (() "y" (binary_expression) "te via" (number_literal) "t" (<<) " v" (number_literal) "a" ()) " " ()) "U" (;) "A" (}) "T" (comment) "\n * uint8_t Byte: byte to send.\n */\nvoid uart_putc(char byte) {\n //" (function_definition) "wait for UART to become ready to transmit\n while (1) {\n if (!(mmio_read(UART0_FR) & (1 << 5))) {\n break;\n }\n }\n mmio_write(UART0ADDR, byte);\n}\n \n/*\n * print a string to the U" (primitive_type) "wait" (function_declarator) "for UART to become r" (identifier) "for UART " (parameter_list) "to become r" (() "t" (parameter_declaration) "o become " (primitive_type) "o be" (identifier) "ome " ()) "r" (compound_statement) "ady to transmit\n while (1) {\n if (!(mmio_read(UART0_FR) & (1 << 5))) {\n break;\n }\n }\n mmio_write(UART0ADDR, byte);\n}\n \n/*\n * print a string to the U" ({) "a" (comment) " to transmit\n while (1) {\n if (!(mmio_read(" (while_statement) "RT0_FR) & (1 << 5))) {\n break;\n }\n }\n mmio_write(UART0ADDR, byte);\n}" (while) "RT0_F" (parenthesized_expression) ") &" (() ")" (number_literal) " " ()) "&" (compound_statement) "(1 << 5))) {\n break;\n }\n }\n mmio_write(UART0ADDR, byte);\n}" ({) "(" (if_statement) "< 5))) {\n break;\n }\n }\n mmio_write(UART0ADDR, byte)" (if) "< " (parenthesized_expression) "))) {\n break;\n }\n }\n mmio_write(" (() ")" (unary_expression) ")) {\n break;\n }\n }\n mmio_write" (!) ")" (parenthesized_expression) ") {\n break;\n }\n }\n mmio_write" (() ")" (binary_expression) " {\n break;\n }\n }\n mmio_writ" (call_expression) " {\n break;\n }\n }" (identifier) " {\n bre" (argument_list) "ak;\n }\n }" (() "a" (identifier) "k;\n }\n " ()) "}" (&) " " (parenthesized_expression) "mio_writ" (() "m" (binary_expression) "io_wri" (number_literal) "i" (<<) "_w" (number_literal) "i" ()) "t" ()) "e" ()) "(" (compound_statement) "ART0ADDR, byte)" ({) "A" (break_statement) "DDR, b" (break) "DDR, " (;) "b" (}) ")" (}) "}" (expression_statement) "\n/*\n * print a string to the" (call_expression) "\n/*\n * print a string to th" (identifier) "\n/*\n * pri" (argument_list) "nt a string to th" (() "n" (identifier) "t a strin" (,) "g" (identifier) "to t" ()) "h" (;) "e" (}) "U" (comment) " one character at a time\n * const char *str: 0-terminated string\n */\nvoid uart_puts(char *str) {\n wh" (function_definition) "le (*str) {\n uart_putc(*str++);\n }\n}\n \n \n" (primitive_type) "le (" (function_declarator) "str) {\n uart_putc(*" (identifier) "str) {\n " (parameter_list) "uart_putc(*" (() "u" (parameter_declaration) "art_putc(" (primitive_type) "art_" (pointer_declarator) "utc(" (*) "u" (identifier) "tc(" ()) "*" (compound_statement) "tr++);\n }\n}\n \n \n" ({) "t" (while_statement) "+);\n }\n}\n \n \n" (while) "+);\n " (parenthesized_expression) "\n}\n \n " (() "\n" (pointer_expression) "}\n \n" (*) "}" (identifier) "\n \n" ()) " " (compound_statement) "" ({) "" (expression_statement) "" (call_expression) "" (identifier) "" (argument_list) "" (() "" (pointer_expression) "" (*) "" (update_expression) "" (identifier) "" (++) "" ()) "" (;) "" (}) "" (}) ""
517
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 27.45, "nodes": 282, "errors": 0, "source_hash": "d463ca7370e69a1c9f18f964d289551bd3a50cd2778b2ac82c05984959505f51", "categorized_nodes": 202}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"types.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"types.h\"", "parent": 0, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include \"mmu.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"mmu.h\"", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include \"memlayout.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"memlayout.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include \"uart.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": "\"uart.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 12, "type": "declaration", "text": "extern inline void mmio_write(unsigned int reg, unsigned int data);", "parent": null, "children": [13, 15, 17, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 67}}, {"id": 13, "type": "storage_class_specifier", "text": "extern", "parent": 12, "children": [14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 14, "type": "extern", "text": "extern", "parent": 13, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 15, "type": "storage_class_specifier", "text": "inline", "parent": 12, "children": [16], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 13}}, {"id": 16, "type": "inline", "text": "inline", "parent": 15, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 13}}, {"id": 17, "type": "primitive_type", "text": "void", "parent": 12, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 18}}, {"id": 18, "type": "function_declarator", "text": "mmio_write(unsigned int reg, unsigned int data)", "parent": 12, "children": [19, 20], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 66}}, {"id": 19, "type": "identifier", "text": "mmio_write", "parent": 18, "children": [], "start_point": {"row": 7, "column": 19}, "end_point": {"row": 7, "column": 29}}, {"id": 20, "type": "parameter_list", "text": "(unsigned int reg, unsigned int data)", "parent": 18, "children": [21, 26], "start_point": {"row": 7, "column": 29}, "end_point": {"row": 7, "column": 66}}, {"id": 21, "type": "parameter_declaration", "text": "unsigned int reg", "parent": 20, "children": [22, 25], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 46}}, {"id": 22, "type": "sized_type_specifier", "text": "unsigned int", "parent": 21, "children": [23, 24], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 42}}, {"id": 23, "type": "unsigned", "text": "unsigned", "parent": 22, "children": [], "start_point": {"row": 7, "column": 30}, "end_point": {"row": 7, "column": 38}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 22, "children": [], "start_point": {"row": 7, "column": 39}, "end_point": {"row": 7, "column": 42}}, {"id": 25, "type": "identifier", "text": "reg", "parent": 21, "children": [], "start_point": {"row": 7, "column": 43}, "end_point": {"row": 7, "column": 46}}, {"id": 26, "type": "parameter_declaration", "text": "unsigned int data", "parent": 20, "children": [27, 30], "start_point": {"row": 7, "column": 48}, "end_point": {"row": 7, "column": 65}}, {"id": 27, "type": "sized_type_specifier", "text": "unsigned int", "parent": 26, "children": [28, 29], "start_point": {"row": 7, "column": 48}, "end_point": {"row": 7, "column": 60}}, {"id": 28, "type": "unsigned", "text": "unsigned", "parent": 27, "children": [], "start_point": {"row": 7, "column": 48}, "end_point": {"row": 7, "column": 56}}, {"id": 29, "type": "primitive_type", "text": "int", "parent": 27, "children": [], "start_point": {"row": 7, "column": 57}, "end_point": {"row": 7, "column": 60}}, {"id": 30, "type": "identifier", "text": "data", "parent": 26, "children": [], "start_point": {"row": 7, "column": 61}, "end_point": {"row": 7, "column": 65}}, {"id": 31, "type": "declaration", "text": "extern inline unsigned int mmio_read(unsigned int reg);", "parent": null, "children": [32, 34, 36, 39], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 55}}, {"id": 32, "type": "storage_class_specifier", "text": "extern", "parent": 31, "children": [33], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 33, "type": "extern", "text": "extern", "parent": 32, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 34, "type": "storage_class_specifier", "text": "inline", "parent": 31, "children": [35], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 13}}, {"id": 35, "type": "inline", "text": "inline", "parent": 34, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 13}}, {"id": 36, "type": "sized_type_specifier", "text": "unsigned int", "parent": 31, "children": [37, 38], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 26}}, {"id": 37, "type": "unsigned", "text": "unsigned", "parent": 36, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 22}}, {"id": 38, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 26}}, {"id": 39, "type": "function_declarator", "text": "mmio_read(unsigned int reg)", "parent": 31, "children": [40, 41], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 54}}, {"id": 40, "type": "identifier", "text": "mmio_read", "parent": 39, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 36}}, {"id": 41, "type": "parameter_list", "text": "(unsigned int reg)", "parent": 39, "children": [42], "start_point": {"row": 8, "column": 36}, "end_point": {"row": 8, "column": 54}}, {"id": 42, "type": "parameter_declaration", "text": "unsigned int reg", "parent": 41, "children": [43, 46], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 53}}, {"id": 43, "type": "sized_type_specifier", "text": "unsigned int", "parent": 42, "children": [44, 45], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 49}}, {"id": 44, "type": "unsigned", "text": "unsigned", "parent": 43, "children": [], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 45}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 8, "column": 46}, "end_point": {"row": 8, "column": 49}}, {"id": 46, "type": "identifier", "text": "reg", "parent": 42, "children": [], "start_point": {"row": 8, "column": 50}, "end_point": {"row": 8, "column": 53}}, {"id": 47, "type": "function_definition", "text": "asm volatile(\"__delay_%=: subs %[count], %[count], #1; bne __delay_%=\\n\"\n\t\t : : [count]\"r\"(count) : \"cc\");\n}\n\nvoid uart_init() {\n\t// Disable", "parent": null, "children": [48, 49, 50], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 48, "type": "storage_class_specifier", "text": "asm vo", "parent": 47, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 49, "type": "primitive_type", "text": "atil", "parent": 47, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 11}}, {"id": 50, "type": "function_declarator", "text": "(\"__delay_%=: su", "parent": 47, "children": [51, 52], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 28}}, {"id": 51, "type": "identifier", "text": "(\"__d", "parent": 50, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 17}}, {"id": 52, "type": "parameter_list", "text": "elay_%=: su", "parent": 50, "children": [53], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 28}}, {"id": 53, "type": "parameter_declaration", "text": "lay_%=: s", "parent": 52, "children": [54, 55], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 27}}, {"id": 54, "type": "primitive_type", "text": "lay", "parent": 53, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 21}}, {"id": 55, "type": "identifier", "text": "%=: s", "parent": 53, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 27}}, {"id": 56, "type": "gnu_asm_expression", "text": "[count], %[count], #1; bne __delay_%=\\n\"\n\t\t : : [count]\"r\"(count) : \"cc\");\n}\n\nvoid uart_init() {\n\t// Disa", "parent": 47, "children": [57, 58, 60, 61, 62, 67], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 19, "column": 36}}, {"id": 57, "type": "asm", "text": "[co", "parent": 56, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 4}}, {"id": 58, "type": "gnu_asm_qualifier", "text": "nt], %[c", "parent": 56, "children": [59], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 13}}, {"id": 59, "type": "volatile", "text": "nt], %[c", "parent": 58, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 13}}, {"id": 60, "type": "string_literal", "text": "unt], #1; bne __delay_%=\\n\"\n\t\t : : [count]\"r\"(count) : ", "parent": 56, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 73}}, {"id": 61, "type": "gnu_asm_output_operand_list", "text": "\n", "parent": 56, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 8}}, {"id": 62, "type": "gnu_asm_input_operand_list", "text": "void uart_init() {\n", "parent": 56, "children": [63], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 28}}, {"id": 63, "type": "gnu_asm_input_operand", "text": "id uart_init() {\n", "parent": 62, "children": [64, 65, 66], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 28}}, {"id": 64, "type": "identifier", "text": "d uar", "parent": 63, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 17}}, {"id": 65, "type": "string_literal", "text": "_in", "parent": 63, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 21}}, {"id": 66, "type": "identifier", "text": "t() {", "parent": 63, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 27}}, {"id": 67, "type": "gnu_asm_clobber_list", "text": "// Dis", "parent": 56, "children": [68], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 35}}, {"id": 68, "type": "string_literal", "text": " Dis", "parent": 67, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 35}}, {"id": 69, "type": "function_definition", "text": "ART0.\n\tmmio_write(UART0_CR, 0x00000000);\n\n\t// Flash the transmit FIFO\n\tmmio_write(UART0_LCRH, 0x00000000);\n\n\t// Setup the GPIO pin 14 && 15. \n\t// Disable pull up/down for all GPIO pins & delay for 150 cycles.\n\tmmio_write(GPPUD, 0x00000000);\n\tdelay(150);\n \n\t// Disable pull up/down for pin 14,15 & delay for 150 cycles.\n\tmmio_write(GPPUDCLK0, (1 << 14) | (1 << 15));\n\tdelay(150);\n\n \t// Write 0 to GPPUD to make it take effect. ?\n\tmmio_write(GPPUD, 0x00000000);\n\n\t// Write 0 to GPPUDCLK0 to make it take effect. ?\n\tmmio_write(GPPUDCLK0, 0x00000000);\n \n\t// Clear pending interrupts. ?\n\tmmio_write(UART0_ICR, 0xFFFF);\n \n\t// Set integer & fractional part of baud rate. ?\n\t// Divider = UART_CLOCK/(16 * Baud)\n\t// Fraction part register = (Fractional part * 64) + 0.5\n\t// UART_CLOCK = 3000000; Baud = 115200.\n \n\t// Divider = 3000000/(16 * 115200) = 1.627 = ~1.\n\t// Fractional part register = (.627 * 64) + 0.5 = 40.6 = ~40.\n\tmmio_write(UART0_IBRD, 1);\n\tmmio_write(UART0_FBRD, 40);\n \n\t// Enable FIFO & 8 bit data transmissio (1 stop bit, no parity).\n\tmmio_write(UART0_LCRH, (1 << 4) | (1 << 5) | (1 << 6));\n \n\t// Mask all interrupts. ?\n\tmmio_write(UART0_IMSC, (1 << 1) | (1 << 4) | (1 << 5) |\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1 << 9) | (1 << 10));\n \n\t// Enable UART0, receive & transfer part of UART.\n\tmmio_write(UART0_CR, (1 << 0) | (1 << 8) | (1 << 9));\n}\n\n/*\n * Transmit a byte via UART", "parent": null, "children": [70, 71], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 70, "type": "primitive_type", "text": "ART0", "parent": 69, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 4}}, {"id": 71, "type": "function_declarator", "text": "\n\tmmio_writ", "parent": 69, "children": [72, 73], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 16}}, {"id": 72, "type": "identifier", "text": "\n\tmmio_wr", "parent": 71, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 14}}, {"id": 73, "type": "parameter_list", "text": "it", "parent": 71, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 16}}, {"id": 74, "type": "call_expression", "text": ";\n\n\t// Flash the transmit FIFO\n\t", "parent": 69, "children": [75, 76], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 33}}, {"id": 75, "type": "identifier", "text": ";\n\n\t// Fla", "parent": 74, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 11}}, {"id": 76, "type": "argument_list", "text": "sh the transmit FIFO\n\t", "parent": 74, "children": [77, 78], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 33}}, {"id": 77, "type": "identifier", "text": "h the tr", "parent": 76, "children": [], "start_point": {"row": 24, "column": 12}, "end_point": {"row": 24, "column": 20}}, {"id": 78, "type": "number_literal", "text": "smit FIFO\n", "parent": 76, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 32}}, {"id": 79, "type": "call_expression", "text": "0);\n\n\t// Setup the GPIO pin 14 && ", "parent": 69, "children": [80, 81], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 35}}, {"id": 80, "type": "identifier", "text": "0);\n\n\t// S", "parent": 79, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 11}}, {"id": 81, "type": "argument_list", "text": "etup the GPIO pin 14 && ", "parent": 79, "children": [82, 83], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 35}}, {"id": 82, "type": "identifier", "text": "tup the GP", "parent": 81, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 22}}, {"id": 83, "type": "number_literal", "text": " pin 14 &&", "parent": 81, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 34}}, {"id": 84, "type": "call_expression", "text": "delay(150);\n \n\t// Disable pul", "parent": 69, "children": [85, 86], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 30}}, {"id": 85, "type": "identifier", "text": "delay(150)", "parent": 84, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 11}}, {"id": 86, "type": "argument_list", "text": ";\n \n\t// Disable pul", "parent": 84, "children": [87, 88], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 30}}, {"id": 87, "type": "identifier", "text": "\n \n\t/", "parent": 86, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 17}}, {"id": 88, "type": "number_literal", "text": "Disable pu", "parent": 86, "children": [], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 29}}, {"id": 89, "type": "call_expression", "text": "p/down for", "parent": 69, "children": [90, 91], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 11}}, {"id": 90, "type": "identifier", "text": "p/dow", "parent": 89, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 6}}, {"id": 91, "type": "argument_list", "text": "n for", "parent": 89, "children": [92], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 11}}, {"id": 92, "type": "number_literal", "text": " fo", "parent": 91, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 10}}, {"id": 93, "type": "call_expression", "text": "| (1 << 15));\n\tdelay(150);\n\n \t// Write 0 to ", "parent": 69, "children": [94, 95], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 45}}, {"id": 94, "type": "identifier", "text": "| (1 << 15", "parent": 93, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 11}}, {"id": 95, "type": "argument_list", "text": "));\n\tdelay(150);\n\n \t// Write 0 to ", "parent": 93, "children": [96, 97], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 45}}, {"id": 96, "type": "identifier", "text": ");\n\tdelay", "parent": 95, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 21}}, {"id": 97, "type": "binary_expression", "text": "50);\n\n \t// Write 0 to", "parent": 95, "children": [98, 102, 103], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 44}}, {"id": 98, "type": "parenthesized_expression", "text": "50);\n\n \t/", "parent": 97, "children": [99], "start_point": {"row": 35, "column": 23}, "end_point": {"row": 35, "column": 32}}, {"id": 99, "type": "binary_expression", "text": "0);\n\n \t", "parent": 98, "children": [100, 101], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 31}}, {"id": 100, "type": "number_literal", "text": "0", "parent": 99, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 25}}, {"id": 101, "type": "number_literal", "text": " \t", "parent": 99, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 31}}, {"id": 102, "type": "|", "text": " ", "parent": 97, "children": [], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 34}}, {"id": 103, "type": "parenthesized_expression", "text": "rite 0 to", "parent": 97, "children": [104], "start_point": {"row": 35, "column": 35}, "end_point": {"row": 35, "column": 44}}, {"id": 104, "type": "binary_expression", "text": "ite 0 t", "parent": 103, "children": [105, 106, 107], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 43}}, {"id": 105, "type": "number_literal", "text": "i", "parent": 104, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 37}}, {"id": 106, "type": "<<", "text": "e ", "parent": 104, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 40}}, {"id": 107, "type": "number_literal", "text": " t", "parent": 104, "children": [], "start_point": {"row": 35, "column": 41}, "end_point": {"row": 35, "column": 43}}, {"id": 108, "type": "call_expression", "text": "UD to make", "parent": 69, "children": [109, 110], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 11}}, {"id": 109, "type": "identifier", "text": "UD to", "parent": 108, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 6}}, {"id": 110, "type": "argument_list", "text": " make", "parent": 108, "children": [111], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 11}}, {"id": 111, "type": "number_literal", "text": "mak", "parent": 110, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 10}}, {"id": 112, "type": "call_expression", "text": "\t// Write 0 to GPPUDCLK0 to m", "parent": 69, "children": [113, 114], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 30}}, {"id": 113, "type": "identifier", "text": "\t// Write ", "parent": 112, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 11}}, {"id": 114, "type": "argument_list", "text": "0 to GPPUDCLK0 to m", "parent": 112, "children": [115, 116], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 30}}, {"id": 115, "type": "identifier", "text": " to G", "parent": 114, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 17}}, {"id": 116, "type": "number_literal", "text": "UDCLK0 to ", "parent": 114, "children": [], "start_point": {"row": 39, "column": 19}, "end_point": {"row": 39, "column": 29}}, {"id": 117, "type": "call_expression", "text": ");\n \n\t// Clear pending interrupts", "parent": 69, "children": [118, 119], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 34}}, {"id": 118, "type": "identifier", "text": ");\n \n\t// C", "parent": 117, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 11}}, {"id": 119, "type": "argument_list", "text": "lear pending interrupts", "parent": 117, "children": [120, 121], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 34}}, {"id": 120, "type": "identifier", "text": "ear pendi", "parent": 119, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 21}}, {"id": 121, "type": "number_literal", "text": " interrupt", "parent": 119, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 33}}, {"id": 122, "type": "call_expression", "text": "\n\t// Set integer & fractional", "parent": 69, "children": [123, 124], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 30}}, {"id": 123, "type": "identifier", "text": "\n\t// Set i", "parent": 122, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 11}}, {"id": 124, "type": "argument_list", "text": "nteger & fractional", "parent": 122, "children": [125, 126], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 30}}, {"id": 125, "type": "identifier", "text": "teger & f", "parent": 124, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 21}}, {"id": 126, "type": "number_literal", "text": "ctiona", "parent": 124, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 29}}, {"id": 127, "type": "call_expression", "text": "_write(UART0_FBRD, 40);\n ", "parent": 69, "children": [128, 129], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 26}}, {"id": 128, "type": "identifier", "text": "_write(UAR", "parent": 127, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 11}}, {"id": 129, "type": "argument_list", "text": "T0_FBRD, 40);\n ", "parent": 127, "children": [130, 131], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 26}}, {"id": 130, "type": "identifier", "text": "0_FBRD, 40", "parent": 129, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 22}}, {"id": 131, "type": "number_literal", "text": "\n", "parent": 129, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 25}}, {"id": 132, "type": "call_expression", "text": "/ Enable FIFO & 8 bit data", "parent": 69, "children": [133, 134], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 27}}, {"id": 133, "type": "identifier", "text": "/ Enable F", "parent": 132, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 11}}, {"id": 134, "type": "argument_list", "text": "IFO & 8 bit data", "parent": 132, "children": [135, 136], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 27}}, {"id": 135, "type": "identifier", "text": "FO & 8 bit", "parent": 134, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 22}}, {"id": 136, "type": "number_literal", "text": "at", "parent": 134, "children": [], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 26}}, {"id": 137, "type": "call_expression", "text": "| (1 << 5) | (1 << 6));\n \n\t// Mask all interrupts. ?\n\t", "parent": 69, "children": [138, 139], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 55}}, {"id": 138, "type": "identifier", "text": "| (1 << 5)", "parent": 137, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 11}}, {"id": 139, "type": "argument_list", "text": " | (1 << 6));\n \n\t// Mask all interrupts. ?\n\t", "parent": 137, "children": [140, 141], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 55}}, {"id": 140, "type": "identifier", "text": "| (1 << 6)", "parent": 139, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 22}}, {"id": 141, "type": "binary_expression", "text": "\n \n\t// Mask all interrupts. ?\n", "parent": 139, "children": [142, 154, 155], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 54}}, {"id": 142, "type": "binary_expression", "text": "\n \n\t// Mask all int", "parent": 141, "children": [143, 148, 149], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 43}}, {"id": 143, "type": "parenthesized_expression", "text": "\n \n\t// M", "parent": 142, "children": [144], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 32}}, {"id": 144, "type": "binary_expression", "text": " \n\t// ", "parent": 143, "children": [145, 146, 147], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 31}}, {"id": 145, "type": "number_literal", "text": " ", "parent": 144, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 26}}, {"id": 146, "type": "<<", "text": "\t/", "parent": 144, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 29}}, {"id": 147, "type": "number_literal", "text": " ", "parent": 144, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 31}}, {"id": 148, "type": "|", "text": "s", "parent": 142, "children": [], "start_point": {"row": 58, "column": 33}, "end_point": {"row": 58, "column": 34}}, {"id": 149, "type": "parenthesized_expression", "text": " all int", "parent": 142, "children": [150], "start_point": {"row": 58, "column": 35}, "end_point": {"row": 58, "column": 43}}, {"id": 150, "type": "binary_expression", "text": "all in", "parent": 149, "children": [151, 152, 153], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 42}}, {"id": 151, "type": "number_literal", "text": "a", "parent": 150, "children": [], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 37}}, {"id": 152, "type": "<<", "text": "l ", "parent": 150, "children": [], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 40}}, {"id": 153, "type": "number_literal", "text": "n", "parent": 150, "children": [], "start_point": {"row": 58, "column": 41}, "end_point": {"row": 58, "column": 42}}, {"id": 154, "type": "|", "text": "r", "parent": 141, "children": [], "start_point": {"row": 58, "column": 44}, "end_point": {"row": 58, "column": 45}}, {"id": 155, "type": "parenthesized_expression", "text": "upts. ?\n", "parent": 141, "children": [156], "start_point": {"row": 58, "column": 46}, "end_point": {"row": 58, "column": 54}}, {"id": 156, "type": "binary_expression", "text": "pts. ?", "parent": 155, "children": [157, 158, 159], "start_point": {"row": 58, "column": 47}, "end_point": {"row": 58, "column": 53}}, {"id": 157, "type": "number_literal", "text": "p", "parent": 156, "children": [], "start_point": {"row": 58, "column": 47}, "end_point": {"row": 58, "column": 48}}, {"id": 158, "type": "<<", "text": "s.", "parent": 156, "children": [], "start_point": {"row": 58, "column": 49}, "end_point": {"row": 58, "column": 51}}, {"id": 159, "type": "number_literal", "text": "?", "parent": 156, "children": [], "start_point": {"row": 58, "column": 52}, "end_point": {"row": 58, "column": 53}}, {"id": 160, "type": "call_expression", "text": "| (1 << 4) | (1 << 5) |\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1 << 9) | (1 << 10));\n \n\t// Enable UART0, receive & ", "parent": 69, "children": [161, 162], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 63, "column": 26}}, {"id": 161, "type": "identifier", "text": "| (1 << 4)", "parent": 160, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 11}}, {"id": 162, "type": "argument_list", "text": " | (1 << 5) |\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1 << 9) | (1 << 10));\n \n\t// Enable UART0, receive & ", "parent": 160, "children": [163, 164], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 63, "column": 26}}, {"id": 163, "type": "identifier", "text": "| (1 << 5)", "parent": 162, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 22}}, {"id": 164, "type": "binary_expression", "text": "\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1 << 9) | (1 << 10));\n \n\t// Enable UART0, receive &", "parent": 162, "children": [165, 202], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 63, "column": 25}}, {"id": 165, "type": "binary_expression", "text": "\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1 << 9) | (1 << 10));\n \n\t// Enable UART", "parent": 164, "children": [166, 196, 197], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 63, "column": 13}}, {"id": 166, "type": "binary_expression", "text": "\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1 << 9) | (1 << 10));\n ", "parent": 165, "children": [167, 190, 191], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 62, "column": 35}}, {"id": 167, "type": "binary_expression", "text": "\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1 << 9) | (1", "parent": 166, "children": [168, 186, 187], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 62, "column": 24}}, {"id": 168, "type": "binary_expression", "text": "\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1", "parent": 167, "children": [169, 182, 183], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 62, "column": 13}}, {"id": 169, "type": "binary_expression", "text": "\n\t\t (1 << 6) | (1 << 7) | (1", "parent": 168, "children": [170, 178, 179], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 54}}, {"id": 170, "type": "binary_expression", "text": "\n\t\t (1 << 6) | (1", "parent": 169, "children": [171, 174, 175], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 43}}, {"id": 171, "type": "parenthesized_expression", "text": "\n\t\t (1", "parent": 170, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 32}}, {"id": 172, "type": "number_literal", "text": "\t", "parent": 171, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 26}}, {"id": 173, "type": "<<", "text": " ", "parent": 171, "children": [], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 29}}, {"id": 174, "type": "|", "text": "<", "parent": 170, "children": [], "start_point": {"row": 61, "column": 33}, "end_point": {"row": 61, "column": 34}}, {"id": 175, "type": "parenthesized_expression", "text": " 6) | (1", "parent": 170, "children": [176], "start_point": {"row": 61, "column": 35}, "end_point": {"row": 61, "column": 43}}, {"id": 176, "type": "binary_expression", "text": "6) | (", "parent": 175, "children": [177], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 42}}, {"id": 177, "type": "number_literal", "text": "6", "parent": 176, "children": [], "start_point": {"row": 61, "column": 36}, "end_point": {"row": 61, "column": 37}}, {"id": 178, "type": "|", "text": "<", "parent": 169, "children": [], "start_point": {"row": 61, "column": 44}, "end_point": {"row": 61, "column": 45}}, {"id": 179, "type": "parenthesized_expression", "text": " 7) | (1", "parent": 169, "children": [180], "start_point": {"row": 61, "column": 46}, "end_point": {"row": 61, "column": 54}}, {"id": 180, "type": "binary_expression", "text": "7) | (", "parent": 179, "children": [181], "start_point": {"row": 61, "column": 47}, "end_point": {"row": 61, "column": 53}}, {"id": 181, "type": "number_literal", "text": "7", "parent": 180, "children": [], "start_point": {"row": 61, "column": 47}, "end_point": {"row": 61, "column": 48}}, {"id": 182, "type": "|", "text": "<", "parent": 168, "children": [], "start_point": {"row": 61, "column": 55}, "end_point": {"row": 61, "column": 56}}, {"id": 183, "type": "parenthesized_expression", "text": "\n\t\t (1", "parent": 168, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 13}}, {"id": 184, "type": "number_literal", "text": "\t", "parent": 183, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 7}}, {"id": 185, "type": "<<", "text": " ", "parent": 183, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 10}}, {"id": 186, "type": "|", "text": "<", "parent": 167, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 15}}, {"id": 187, "type": "parenthesized_expression", "text": " 9) | (1", "parent": 167, "children": [188], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 24}}, {"id": 188, "type": "binary_expression", "text": "9) | (", "parent": 187, "children": [189], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 23}}, {"id": 189, "type": "number_literal", "text": "9", "parent": 188, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 190, "type": "|", "text": "<", "parent": 166, "children": [], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 26}}, {"id": 191, "type": "parenthesized_expression", "text": " 10));\n ", "parent": 166, "children": [192], "start_point": {"row": 62, "column": 27}, "end_point": {"row": 62, "column": 35}}, {"id": 192, "type": "binary_expression", "text": "10));\n", "parent": 191, "children": [193, 194, 195], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 34}}, {"id": 193, "type": "number_literal", "text": "1", "parent": 192, "children": [], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 29}}, {"id": 194, "type": "<<", "text": "))", "parent": 192, "children": [], "start_point": {"row": 62, "column": 30}, "end_point": {"row": 62, "column": 32}}, {"id": 195, "type": "number_literal", "text": "\n", "parent": 192, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 34}}, {"id": 196, "type": "|", "text": "\t", "parent": 165, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 37}}, {"id": 197, "type": "parenthesized_expression", "text": "ble UART", "parent": 165, "children": [198], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 13}}, {"id": 198, "type": "binary_expression", "text": "le UAR", "parent": 197, "children": [199, 200, 201], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 12}}, {"id": 199, "type": "number_literal", "text": "l", "parent": 198, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 7}}, {"id": 200, "type": "<<", "text": " U", "parent": 198, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 10}}, {"id": 201, "type": "number_literal", "text": "R", "parent": 198, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 12}}, {"id": 202, "type": "parenthesized_expression", "text": "receive &", "parent": 164, "children": [203], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 25}}, {"id": 203, "type": "binary_expression", "text": "eceive ", "parent": 202, "children": [204, 205, 206], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 24}}, {"id": 204, "type": "number_literal", "text": "e", "parent": 203, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 18}}, {"id": 205, "type": "<<", "text": "ei", "parent": 203, "children": [], "start_point": {"row": 63, "column": 19}, "end_point": {"row": 63, "column": 21}}, {"id": 206, "type": "number_literal", "text": "e ", "parent": 203, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 24}}, {"id": 207, "type": "call_expression", "text": "(1 << 8) | (1 << 9));\n}\n\n/*\n * Transmit a byte via U", "parent": 69, "children": [208, 209], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 53}}, {"id": 208, "type": "identifier", "text": "(1 << 8) |", "parent": 207, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 11}}, {"id": 209, "type": "argument_list", "text": " (1 << 9));\n}\n\n/*\n * Transmit a byte via U", "parent": 207, "children": [210, 211], "start_point": {"row": 66, "column": 11}, "end_point": {"row": 66, "column": 53}}, {"id": 210, "type": "identifier", "text": "(1 << 9)", "parent": 209, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 20}}, {"id": 211, "type": "binary_expression", "text": "\n}\n\n/*\n * Transmit a byte via ", "parent": 209, "children": [212, 223, 224], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 52}}, {"id": 212, "type": "binary_expression", "text": "\n}\n\n/*\n * Transmit ", "parent": 211, "children": [213, 217, 218], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 41}}, {"id": 213, "type": "parenthesized_expression", "text": "\n}\n\n/*\n ", "parent": 212, "children": [214], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 30}}, {"id": 214, "type": "binary_expression", "text": "}\n\n/*\n", "parent": 213, "children": [215, 216], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 29}}, {"id": 215, "type": "<<", "text": "\n/", "parent": 214, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 27}}, {"id": 216, "type": "number_literal", "text": "\n", "parent": 214, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 29}}, {"id": 217, "type": "|", "text": " ", "parent": 212, "children": [], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 32}}, {"id": 218, "type": "parenthesized_expression", "text": "ransmit ", "parent": 212, "children": [219], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 41}}, {"id": 219, "type": "binary_expression", "text": "ansmit", "parent": 218, "children": [220, 221, 222], "start_point": {"row": 66, "column": 34}, "end_point": {"row": 66, "column": 40}}, {"id": 220, "type": "number_literal", "text": "a", "parent": 219, "children": [], "start_point": {"row": 66, "column": 34}, "end_point": {"row": 66, "column": 35}}, {"id": 221, "type": "<<", "text": "sm", "parent": 219, "children": [], "start_point": {"row": 66, "column": 36}, "end_point": {"row": 66, "column": 38}}, {"id": 222, "type": "number_literal", "text": "t", "parent": 219, "children": [], "start_point": {"row": 66, "column": 39}, "end_point": {"row": 66, "column": 40}}, {"id": 223, "type": "|", "text": " ", "parent": 211, "children": [], "start_point": {"row": 66, "column": 42}, "end_point": {"row": 66, "column": 43}}, {"id": 224, "type": "parenthesized_expression", "text": "yte via ", "parent": 211, "children": [225], "start_point": {"row": 66, "column": 44}, "end_point": {"row": 66, "column": 52}}, {"id": 225, "type": "binary_expression", "text": "te via", "parent": 224, "children": [226, 227, 228], "start_point": {"row": 66, "column": 45}, "end_point": {"row": 66, "column": 51}}, {"id": 226, "type": "number_literal", "text": "t", "parent": 225, "children": [], "start_point": {"row": 66, "column": 45}, "end_point": {"row": 66, "column": 46}}, {"id": 227, "type": "<<", "text": " v", "parent": 225, "children": [], "start_point": {"row": 66, "column": 47}, "end_point": {"row": 66, "column": 49}}, {"id": 228, "type": "number_literal", "text": "a", "parent": 225, "children": [], "start_point": {"row": 66, "column": 50}, "end_point": {"row": 66, "column": 51}}, {"id": 229, "type": "function_definition", "text": "wait for UART to become ready to transmit\n\twhile (1) {\n\t\tif (!(mmio_read(UART0_FR) & (1 << 5))) {\n\t\t\tbreak;\n\t\t}\n\t}\n\tmmio_write(UART0ADDR, byte);\n}\n \n/*\n * print a string to the U", "parent": null, "children": [230, 231], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 81, "column": 1}}, {"id": 230, "type": "primitive_type", "text": "wait", "parent": 229, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 4}}, {"id": 231, "type": "function_declarator", "text": "for UART to become r", "parent": 229, "children": [232, 233], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 25}}, {"id": 232, "type": "identifier", "text": "for UART ", "parent": 231, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 14}}, {"id": 233, "type": "parameter_list", "text": "to become r", "parent": 231, "children": [234], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 25}}, {"id": 234, "type": "parameter_declaration", "text": "o become ", "parent": 233, "children": [235, 236], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 24}}, {"id": 235, "type": "primitive_type", "text": "o be", "parent": 234, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 19}}, {"id": 236, "type": "identifier", "text": "ome ", "parent": 234, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 24}}, {"id": 237, "type": "while_statement", "text": "RT0_FR) & (1 << 5))) {\n\t\t\tbreak;\n\t\t}\n\t}\n\tmmio_write(UART0ADDR, byte);\n}", "parent": 229, "children": [238], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 79, "column": 2}}, {"id": 238, "type": "parenthesized_expression", "text": ") &", "parent": 237, "children": [239], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 10}}, {"id": 239, "type": "number_literal", "text": " ", "parent": 238, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 9}}, {"id": 240, "type": "if_statement", "text": "< 5))) {\n\t\t\tbreak;\n\t\t}\n\t}\n\tmmio_write(UART0ADDR, byte)", "parent": 237, "children": [241], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 78, "column": 3}}, {"id": 241, "type": "parenthesized_expression", "text": "))) {\n\t\t\tbreak;\n\t\t}\n\t}\n\tmmio_write(", "parent": 240, "children": [242], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 40}}, {"id": 242, "type": "unary_expression", "text": ")) {\n\t\t\tbreak;\n\t\t}\n\t}\n\tmmio_write", "parent": 241, "children": [243], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 39}}, {"id": 243, "type": "parenthesized_expression", "text": ") {\n\t\t\tbreak;\n\t\t}\n\t}\n\tmmio_write", "parent": 242, "children": [244], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 39}}, {"id": 244, "type": "binary_expression", "text": " {\n\t\t\tbreak;\n\t\t}\n\t}\n\tmmio_writ", "parent": 243, "children": [245, 249, 250], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 38}}, {"id": 245, "type": "call_expression", "text": " {\n\t\t\tbreak;\n\t\t}\n\t}", "parent": 244, "children": [246, 247], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 27}}, {"id": 246, "type": "identifier", "text": " {\n\t\t\tbre", "parent": 245, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 17}}, {"id": 247, "type": "argument_list", "text": "ak;\n\t\t}\n\t}", "parent": 245, "children": [248], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 27}}, {"id": 248, "type": "identifier", "text": "k;\n\t\t}\n\t", "parent": 247, "children": [], "start_point": {"row": 76, "column": 18}, "end_point": {"row": 76, "column": 26}}, {"id": 249, "type": "&", "text": "\t", "parent": 244, "children": [], "start_point": {"row": 76, "column": 28}, "end_point": {"row": 76, "column": 29}}, {"id": 250, "type": "parenthesized_expression", "text": "mio_writ", "parent": 244, "children": [251], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 38}}, {"id": 251, "type": "binary_expression", "text": "io_wri", "parent": 250, "children": [252, 253, 254], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 37}}, {"id": 252, "type": "number_literal", "text": "i", "parent": 251, "children": [], "start_point": {"row": 76, "column": 31}, "end_point": {"row": 76, "column": 32}}, {"id": 253, "type": "<<", "text": "_w", "parent": 251, "children": [], "start_point": {"row": 76, "column": 33}, "end_point": {"row": 76, "column": 35}}, {"id": 254, "type": "number_literal", "text": "i", "parent": 251, "children": [], "start_point": {"row": 76, "column": 36}, "end_point": {"row": 76, "column": 37}}, {"id": 255, "type": "break_statement", "text": "DDR, b", "parent": 240, "children": [256], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 9}}, {"id": 256, "type": "break", "text": "DDR, ", "parent": 255, "children": [], "start_point": {"row": 77, "column": 3}, "end_point": {"row": 77, "column": 8}}, {"id": 257, "type": "call_expression", "text": "\n/*\n * print a string to th", "parent": 229, "children": [258, 259], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 28}}, {"id": 258, "type": "identifier", "text": "\n/*\n * pri", "parent": 257, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 11}}, {"id": 259, "type": "argument_list", "text": "nt a string to th", "parent": 257, "children": [260, 261], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 28}}, {"id": 260, "type": "identifier", "text": "t a strin", "parent": 259, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 21}}, {"id": 261, "type": "identifier", "text": "to t", "parent": 259, "children": [], "start_point": {"row": 80, "column": 23}, "end_point": {"row": 80, "column": 27}}, {"id": 262, "type": "function_definition", "text": "le (*str) {\n\t\tuart_putc(*str++);\n\t}\n}\n \n\t\n", "parent": null, "children": [263, 264], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 91, "column": 1}}, {"id": 263, "type": "primitive_type", "text": "le (", "parent": 262, "children": [], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 87, "column": 4}}, {"id": 264, "type": "function_declarator", "text": "str) {\n\t\tuart_putc(*", "parent": 262, "children": [265, 266], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 25}}, {"id": 265, "type": "identifier", "text": "str) {\n\t\t", "parent": 264, "children": [], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 14}}, {"id": 266, "type": "parameter_list", "text": "uart_putc(*", "parent": 264, "children": [267], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 25}}, {"id": 267, "type": "parameter_declaration", "text": "art_putc(", "parent": 266, "children": [268, 269], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 24}}, {"id": 268, "type": "primitive_type", "text": "art_", "parent": 267, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 19}}, {"id": 269, "type": "pointer_declarator", "text": "utc(", "parent": 267, "children": [270, 271], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 24}}, {"id": 270, "type": "*", "text": "u", "parent": 269, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 21}}, {"id": 271, "type": "identifier", "text": "tc(", "parent": 269, "children": [], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 24}}, {"id": 272, "type": "while_statement", "text": "+);\n\t}\n}\n \n\t\n", "parent": 262, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 90, "column": 2}}, {"id": 273, "type": "identifier", "text": "\n \n", "parent": 272, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 12}}, {"id": 274, "type": "call_expression", "text": "", "parent": 272, "children": [275, 276], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 19}}, {"id": 275, "type": "identifier", "text": "", "parent": 274, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 11}}, {"id": 276, "type": "argument_list", "text": "", "parent": 274, "children": [277], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 19}}, {"id": 277, "type": "pointer_expression", "text": "", "parent": 276, "children": [278, 279], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 18}}, {"id": 278, "type": "*", "text": "", "parent": 277, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 13}}, {"id": 279, "type": "update_expression", "text": "", "parent": 277, "children": [280, 281], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 18}}, {"id": 280, "type": "identifier", "text": "", "parent": 279, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 16}}, {"id": 281, "type": "++", "text": "", "parent": 279, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 18}}]}, "node_categories": {"declarations": {"functions": [18, 39, 47, 50, 69, 71, 229, 231, 262, 264], "variables": [12, 21, 26, 31, 42, 53, 234, 267], "classes": [13, 15, 32, 34, 48], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [56, 74, 79, 84, 89, 93, 97, 98, 99, 103, 104, 108, 112, 117, 122, 127, 132, 137, 141, 142, 143, 144, 149, 150, 155, 156, 160, 164, 165, 166, 167, 168, 169, 170, 171, 175, 176, 179, 180, 183, 187, 188, 191, 192, 197, 198, 202, 203, 207, 211, 212, 213, 214, 218, 219, 224, 225, 238, 241, 242, 243, 244, 245, 250, 251, 257, 274, 277, 279], "assignments": [], "loops": [237, 272], "conditionals": [19, 22, 25, 27, 30, 36, 40, 43, 46, 51, 55, 58, 64, 66, 72, 75, 77, 80, 82, 85, 87, 90, 94, 96, 109, 113, 115, 118, 120, 123, 125, 128, 130, 133, 135, 138, 140, 161, 163, 208, 210, 232, 236, 240, 246, 248, 258, 260, 261, 265, 271, 273, 275, 280], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 60, 65, 68, 78, 83, 88, 92, 100, 101, 105, 107, 111, 116, 121, 126, 131, 136, 145, 147, 151, 153, 157, 159, 172, 177, 181, 184, 189, 193, 195, 199, 201, 204, 206, 216, 220, 222, 226, 228, 239, 252, 254], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "reg,", "text_snippet": "mmio_write(unsigned int reg, unsigned int data)"}, {"node_id": 39, "universal_type": "function", "name": "reg)", "text_snippet": "mmio_read(unsigned int reg)"}, {"node_id": 47, "universal_type": "function", "name": "uart_init", "text_snippet": "asm volatile(\"__delay_%=: subs %[count], %[count], #1; bne __delay_%=\\n\"\n\t\t : : [count]\"r\"(count"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "(\"__delay_%=: su"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "ART0.\n\tmmio_write(UART0_CR, 0x00000000);\n\n\t// Flash the transmit FIFO\n\tmmio_write(UART0_LCRH, 0x0000"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "\n\tmmio_writ"}, {"node_id": 229, "universal_type": "function", "name": "to", "text_snippet": "wait for UART to become ready to transmit\n\twhile (1) {\n\t\tif (!(mmio_read(UART0_FR) & (1 << 5))) {\n\t\t"}, {"node_id": 231, "universal_type": "function", "name": "unknown", "text_snippet": "for UART to become r"}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "le (*str) {\n\t\tuart_putc(*str++);\n\t}\n}\n \n\t\n"}, {"node_id": 264, "universal_type": "function", "name": "unknown", "text_snippet": "str) {\n\t\tuart_putc(*"}], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 34, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "asm vo"}], "import_statements": [{"node_id": 0, "text": "#include \"types.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"mmu.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"memlayout.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"uart.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "//uart initialization (for REAL) and communication\n\n#include \"types.h\"\n#include \"mmu.h\"\n#include \"memlayout.h\"\n#include \"uart.h\"\n\nextern inline void mmio_write(unsigned int reg, unsigned int data);\nextern inline unsigned int mmio_read(unsigned int reg);\n\n/*\n * count\u30b5\u30a4\u30af\u30eb\u5f85\u3064\n * \u30eb\u30fc\u30d7\u3092\u6700\u9069\u5316\u3057\u306a\u3044\n * 00000030 <__delay_16>:\n * 30: e2533001 subs r3, r3, #1\n * 34: 1afffffd bne 30 <__delay_16>\n */\nstatic void delay(int count) {\n\tasm volatile(\"__delay_%=: subs %[count], %[count], #1; bne __delay_%=\\n\"\n\t\t : : [count]\"r\"(count) : \"cc\");\n}\n\nvoid uart_init() {\n\t// Disable UART0.\n\tmmio_write(UART0_CR, 0x00000000);\n\n\t// Flash the transmit FIFO\n\tmmio_write(UART0_LCRH, 0x00000000);\n\n\t// Setup the GPIO pin 14 && 15. \n\t// Disable pull up/down for all GPIO pins & delay for 150 cycles.\n\tmmio_write(GPPUD, 0x00000000);\n\tdelay(150);\n \n\t// Disable pull up/down for pin 14,15 & delay for 150 cycles.\n\tmmio_write(GPPUDCLK0, (1 << 14) | (1 << 15));\n\tdelay(150);\n\n \t// Write 0 to GPPUD to make it take effect. ?\n\tmmio_write(GPPUD, 0x00000000);\n\n\t// Write 0 to GPPUDCLK0 to make it take effect. ?\n\tmmio_write(GPPUDCLK0, 0x00000000);\n \n\t// Clear pending interrupts. ?\n\tmmio_write(UART0_ICR, 0xFFFF);\n \n\t// Set integer & fractional part of baud rate. ?\n\t// Divider = UART_CLOCK/(16 * Baud)\n\t// Fraction part register = (Fractional part * 64) + 0.5\n\t// UART_CLOCK = 3000000; Baud = 115200.\n \n\t// Divider = 3000000/(16 * 115200) = 1.627 = ~1.\n\t// Fractional part register = (.627 * 64) + 0.5 = 40.6 = ~40.\n\tmmio_write(UART0_IBRD, 1);\n\tmmio_write(UART0_FBRD, 40);\n \n\t// Enable FIFO & 8 bit data transmissio (1 stop bit, no parity).\n\tmmio_write(UART0_LCRH, (1 << 4) | (1 << 5) | (1 << 6));\n \n\t// Mask all interrupts. ?\n\tmmio_write(UART0_IMSC, (1 << 1) | (1 << 4) | (1 << 5) |\n\t\t (1 << 6) | (1 << 7) | (1 << 8) |\n\t\t (1 << 9) | (1 << 10));\n \n\t// Enable UART0, receive & transfer part of UART.\n\tmmio_write(UART0_CR, (1 << 0) | (1 << 8) | (1 << 9));\n}\n\n/*\n * Transmit a byte via UART0.\n * uint8_t Byte: byte to send.\n */\nvoid uart_putc(char byte) {\n\t// wait for UART to become ready to transmit\n\twhile (1) {\n\t\tif (!(mmio_read(UART0_FR) & (1 << 5))) {\n\t\t\tbreak;\n\t\t}\n\t}\n\tmmio_write(UART0ADDR, byte);\n}\n \n/*\n * print a string to the UART one character at a time\n * const char *str: 0-terminated string\n */\nvoid uart_puts(char *str) {\n\twhile (*str) {\n\t\tuart_putc(*str++);\n\t}\n}\n \n\t\n"}
80,302
c
/* * Copyright(c) 2012-2018 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause-Clear */ #ifndef __OCF_ENV_HEADERS_H__ #define __OCF_ENV_HEADERS_H__ #include <stdint.h> #include <stdbool.h> #include <stddef.h> #endif /* __OCF_ENV_HEADERS_H__ */
24.4
10
(translation_unit) "/*\n * Copyright(c) 2012-2018 Intel Corporation\n * SPDX-License-Identifier: BSD-3-Clause-Clear\n */\n\n#ifndef __OCF_ENV_HEADERS_H__\n#define __OCF_ENV_HEADERS_H__\n\n#include <stdint.h>\n#include <stdbool.h>\n#include <stddef.h>\n\n#endif /* __OCF_ENV_HEADERS_H__ */\n" (comment) "/*\n * Copyright(c) 2012-2018 Intel Corporation\n * SPDX-License-Identifier: BSD-3-Clause-Clear\n */" (preproc_ifdef) "#ifndef __OCF_ENV_HEADERS_H__\n#define __OCF_ENV_HEADERS_H__\n\n#include <stdint.h>\n#include <stdbool.h>\n#include <stddef.h>\n\n#endif" (#ifndef) "#ifndef" (identifier) "__OCF_ENV_HEADERS_H__" (preproc_def) "#define __OCF_ENV_HEADERS_H__\n" (#define) "#define" (identifier) "__OCF_ENV_HEADERS_H__" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include <stddef.h>\n" (#include) "#include" (system_lib_string) "<stddef.h>" (#endif) "#endif" (comment) "/* __OCF_ENV_HEADERS_H__ */"
19
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 24.4, "nodes": 16, "errors": 0, "source_hash": "5e6b9978c0f28e1f4bcb54e6f332724098cc398eddec7c512e0f5da253b0ae4c", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __OCF_ENV_HEADERS_H__\n#define __OCF_ENV_HEADERS_H__\n\n#include <stdint.h>\n#include <stdbool.h>\n#include <stddef.h>\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 2, "type": "identifier", "text": "__OCF_ENV_HEADERS_H__", "parent": 0, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define __OCF_ENV_HEADERS_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 5, "type": "identifier", "text": "__OCF_ENV_HEADERS_H__", "parent": 3, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 29}}, {"id": 6, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stdint.h>", "parent": 6, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <stdbool.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdbool.h>", "parent": 9, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include <stddef.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": "<stddef.h>", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 19}}, {"id": 15, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 15], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stdint.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 <stddef.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*\n * Copyright(c) 2012-2018 Intel Corporation\n * SPDX-License-Identifier: BSD-3-Clause-Clear\n */\n\n#ifndef __OCF_ENV_HEADERS_H__\n#define __OCF_ENV_HEADERS_H__\n\n#include <stdint.h>\n#include <stdbool.h>\n#include <stddef.h>\n\n#endif /* __OCF_ENV_HEADERS_H__ */\n"}
80,303
c
// // HSLiveModel.h // FunkyFMHome // // Created by 胡晟 on 2017/7/31. // Copyright © 2017年 funkyHS. All rights reserved. // #import <Foundation/Foundation.h> @interface HSLiveModel : NSObject @property (nonatomic, copy) NSString *chatId; @property (nonatomic, copy, getter=adImgURL) NSString *coverPath; @property (nonatomic, copy) NSString *endTs; @property (nonatomic, copy) NSString *id; @property (nonatomic, copy) NSString *name; @property (nonatomic, copy) NSString *onlineCount; @property (nonatomic, copy) NSString *playCount; @property (nonatomic, copy) NSString *scheduleId; @property (nonatomic, copy) NSString *shortDescription; @property (nonatomic, copy) NSString *startTs; @property (nonatomic, copy) NSString *status; @property (nonatomic, copy) void(^clickBlock)(); @end
33.91
23
(translation_unit) "//\n// HSLiveModel.h\n// FunkyFMHome\n//\n// Created by 胡晟 on 2017/7/31.\n// Copyright © 2017年 funkyHS. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface HSLiveModel : NSObject\n\n\n@property (nonatomic, copy) NSString *chatId;\n@property (nonatomic, copy, getter=adImgURL) NSString *coverPath;\n@property (nonatomic, copy) NSString *endTs;\n@property (nonatomic, copy) NSString *id;\n@property (nonatomic, copy) NSString *name;\n@property (nonatomic, copy) NSString *onlineCount;\n@property (nonatomic, copy) NSString *playCount;\n@property (nonatomic, copy) NSString *scheduleId;\n@property (nonatomic, copy) NSString *shortDescription;\n@property (nonatomic, copy) NSString *startTs;\n@property (nonatomic, copy) NSString *status;\n\n@property (nonatomic, copy) void(^clickBlock)();\n\n@end\n" (comment) "//" (comment) "// HSLiveModel.h" (comment) "// FunkyFMHome" (comment) "//" (comment) "// Created by 胡晟 on 2017/7/31.\n// " (comment) "Copyright © 2017年 funkyHS. All rights reserved.\n//\n\n#i" (comment) "po" (preproc_call) " <Foundation/Foundation.h>\n\n@inter" (preproc_directive) " <Found" (preproc_arg) "tion/Foundation.h>\n\n@inte" (ERROR) "ace HSLiveModel : NSObject\n\n\n@property (nonatomic, copy) NSString *chatId;\n@property (nonatomic, copy, getter=adImgURL) NSString *coverPath;\n@property (nonatomic, copy) NSString *endTs;\n@property (nonatomic, copy) NSString *id;\n@property (nonatomic, copy) NSString *name;\n@property (nonatomic, copy) NSString *onlineCount;\n@property (nonatomic, copy) NSString *playCount;\n@property (nonatomic, copy) NSString *scheduleId;\n@property (nonatomic, copy) NSString *shortDescription;\n@property (nonatomic, copy) NSString *startTs;\n@property (nonatomic, copy) NSString *status;\n\n@property (nonatomic, copy) void(^clickBlock)();\n\n@end\n" (ERROR) "a" (type_identifier) "ce HSLive" (function_declarator) "odel : NSObject\n\n\n@property (nonatomic, copy) NSStr" (identifier) "odel : NSOb" (ERROR) "ect\n\n\n@property (nonat" (:) "e" (identifier) "t\n\n\n@pro" (ERROR) "t" (identifier) "y (nonat" (parameter_list) "mic, copy) NSStr" (() "m" (identifier) "ic, copy)" (,) " " (identifier) "NSSt" ()) "r" (declaration) "g *chatId;\n@prope" (type_identifier) "g *chatI" (pointer_declarator) ";\n@prop" (*) ";" (identifier) "\n@prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy, getter=adImgURL) NSString *coverPath;\n@prope" (macro_type_specifier) "y (nonatomic, copy, getter=adImgURL) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy," (type_identifier) "ic, copy," (ERROR) " getter=adImgURL) NSSt" (,) " " (identifier) "ette" (,) "r" (identifier) "adImgU" (=) "R" (identifier) "L) NSSt" ()) "r" (ERROR) "g *cover" (identifier) "g *cover" (pointer_declarator) "ath;\n@prop" (*) "a" (identifier) "th;\n@prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *endTs;\n@prope" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *endTs" (identifier) "g *endTs" (pointer_declarator) "\n@prop" (*) "\n" (identifier) "@prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *id;\n@prope" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *id;\n@" (identifier) "g *id;\n@" (pointer_declarator) "rop" (*) "r" (identifier) "op" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *name;\n@prope" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *name;" (identifier) "g *name;" (pointer_declarator) "@prop" (*) "@" (identifier) "prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *onlineCount;\n@prope" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *onlin" (identifier) "g *onlin" (pointer_declarator) "Count;\n@prop" (*) "C" (identifier) "ount;\n@prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *playCount;\n@prope" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *playC" (identifier) "g *playC" (pointer_declarator) "unt;\n@prop" (*) "u" (identifier) "nt;\n@prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *scheduleId;\n@prope" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *sched" (identifier) "g *sched" (pointer_declarator) "leId;\n@prop" (*) "l" (identifier) "eId;\n@prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *shortDescription;\n@prope" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *short" (identifier) "g *short" (pointer_declarator) "escription;\n@prop" (*) "e" (identifier) "scription;\n@prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *startTs;\n@prope" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *start" (identifier) "g *start" (pointer_declarator) "s;\n@prop" (*) "s" (identifier) ";\n@prop" (;) "e" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) NSString *status;\n\n@prop" (macro_type_specifier) "y (nonatomic, copy) NSStr" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " NSSt" (,) " " (identifier) "NSSt" ()) "r" (ERROR) "g *statu" (identifier) "g *statu" (pointer_declarator) ";\n\n@pro" (*) ";" (identifier) "\n\n@pro" (;) "p" (ERROR) "t" (ERROR) "t" (declaration) "y (nonatomic, copy) void(^clickBlock)();\n\n@end\n" (macro_type_specifier) "y (nonatomic, copy) void(^" (identifier) "y (nonat" (() "m" (type_descriptor) "ic, copy)" (type_identifier) "ic, copy)" (ERROR) " void(" (,) " " (identifier) "oid(" ()) "^" (function_declarator) "lickBlock)();\n\n@end" (function_declarator) "lickBlock)();\n\n@e" (identifier) "lick" (parameter_list) "Block)();\n\n@e" (() "B" (ERROR) "l" (^) "l" (parameter_declaration) "ock)();\n\n@" (type_identifier) "ock)();\n\n@" ()) "e" (parameter_list) "nd" (() "n" ()) "d" (;) "\n" (ERROR) "" (ERROR) "" (identifier) ""
246
50
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 33.91, "nodes": 182, "errors": 0, "source_hash": "57aed1d9644836d0819bde8591ba91afb18bc570a584aa76f3c3e3ca10c94f3d", "categorized_nodes": 94}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundation/Foundation.h>\n\n@inter", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": " <Found", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "tion/Foundation.h>\n\n@inte", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 3, "type": "ERROR", "text": "ace HSLiveModel : NSObject\n\n\n@property (nonatomic, copy) NSString *chatId;\n@property (nonatomic, copy, getter=adImgURL) NSString *coverPath;\n@property (nonatomic, copy) NSString *endTs;\n@property (nonatomic, copy) NSString *id;\n@property (nonatomic, copy) NSString *name;\n@property (nonatomic, copy) NSString *onlineCount;\n@property (nonatomic, copy) NSString *playCount;\n@property (nonatomic, copy) NSString *scheduleId;\n@property (nonatomic, copy) NSString *shortDescription;\n@property (nonatomic, copy) NSString *startTs;\n@property (nonatomic, copy) NSString *status;\n\n@property (nonatomic, copy) void(^clickBlock)();\n\n@end\n", "parent": null, "children": [4, 5, 6, 15, 19, 21, 36, 38, 50, 52, 64, 66, 78, 80, 92, 94, 106, 108, 120, 122, 134, 136, 148, 150, 161, 163, 179, 181], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 27, "column": 4}}, {"id": 4, "type": "ERROR", "text": "a", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "ce HSLive", "parent": 3, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 6, "type": "function_declarator", "text": "odel : NSObject\n\n\n@property (nonatomic, copy) NSStr", "parent": 3, "children": [7, 8, 12], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 13, "column": 27}}, {"id": 7, "type": "identifier", "text": "odel : NSOb", "parent": 6, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 22}}, {"id": 8, "type": "ERROR", "text": "ect\n\n\n@property (nonat", "parent": 6, "children": [9, 10, 11], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 13, "column": 9}}, {"id": 9, "type": "identifier", "text": "t\n\n\n@pro", "parent": 8, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 33}}, {"id": 10, "type": "ERROR", "text": "t", "parent": 8, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 11, "type": "identifier", "text": "y (nonat", "parent": 8, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 9}}, {"id": 12, "type": "parameter_list", "text": "mic, copy) NSStr", "parent": 6, "children": [13, 14], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 27}}, {"id": 13, "type": "identifier", "text": "ic, copy)", "parent": 12, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 14, "type": "identifier", "text": "NSSt", "parent": 12, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 26}}, {"id": 15, "type": "declaration", "text": "g *chatId;\n@prope", "parent": 3, "children": [16, 17], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 46}}, {"id": 16, "type": "type_identifier", "text": "g *chatI", "parent": 15, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 37}}, {"id": 17, "type": "pointer_declarator", "text": ";\n@prop", "parent": 15, "children": [18], "start_point": {"row": 13, "column": 38}, "end_point": {"row": 13, "column": 45}}, {"id": 18, "type": "identifier", "text": "\n@prop", "parent": 17, "children": [], "start_point": {"row": 13, "column": 39}, "end_point": {"row": 13, "column": 45}}, {"id": 19, "type": "ERROR", "text": "t", "parent": 3, "children": [20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 20, "type": "ERROR", "text": "t", "parent": 19, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 21, "type": "declaration", "text": "y (nonatomic, copy, getter=adImgURL) NSString *coverPath;\n@prope", "parent": 3, "children": [22, 31, 33], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 66}}, {"id": 22, "type": "macro_type_specifier", "text": "y (nonatomic, copy, getter=adImgURL) NSStr", "parent": 21, "children": [23, 24, 26], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 44}}, {"id": 23, "type": "identifier", "text": "y (nonat", "parent": 22, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 24, "type": "type_descriptor", "text": "ic, copy,", "parent": 22, "children": [25], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 25, "type": "type_identifier", "text": "ic, copy,", "parent": 24, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 20}}, {"id": 26, "type": "ERROR", "text": " getter=adImgURL) NSSt", "parent": 22, "children": [27, 28, 29, 30], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 43}}, {"id": 27, "type": "identifier", "text": "ette", "parent": 26, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 26}}, {"id": 28, "type": "identifier", "text": "adImgU", "parent": 26, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 34}}, {"id": 29, "type": "=", "text": "R", "parent": 26, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 35}}, {"id": 30, "type": "identifier", "text": "L) NSSt", "parent": 26, "children": [], "start_point": {"row": 14, "column": 35}, "end_point": {"row": 14, "column": 43}}, {"id": 31, "type": "ERROR", "text": "g *cover", "parent": 21, "children": [32], "start_point": {"row": 14, "column": 46}, "end_point": {"row": 14, "column": 54}}, {"id": 32, "type": "identifier", "text": "g *cover", "parent": 31, "children": [], "start_point": {"row": 14, "column": 46}, "end_point": {"row": 14, "column": 54}}, {"id": 33, "type": "pointer_declarator", "text": "ath;\n@prop", "parent": 21, "children": [34, 35], "start_point": {"row": 14, "column": 55}, "end_point": {"row": 14, "column": 65}}, {"id": 34, "type": "*", "text": "a", "parent": 33, "children": [], "start_point": {"row": 14, "column": 55}, "end_point": {"row": 14, "column": 56}}, {"id": 35, "type": "identifier", "text": "th;\n@prop", "parent": 33, "children": [], "start_point": {"row": 14, "column": 56}, "end_point": {"row": 14, "column": 65}}, {"id": 36, "type": "ERROR", "text": "t", "parent": 3, "children": [37], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 37, "type": "ERROR", "text": "t", "parent": 36, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 38, "type": "declaration", "text": "y (nonatomic, copy) NSString *endTs;\n@prope", "parent": 3, "children": [39, 45, 47], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 45}}, {"id": 39, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 38, "children": [40, 41, 43], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 27}}, {"id": 40, "type": "identifier", "text": "y (nonat", "parent": 39, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 41, "type": "type_descriptor", "text": "ic, copy)", "parent": 39, "children": [42], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 42, "type": "type_identifier", "text": "ic, copy)", "parent": 41, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 43, "type": "ERROR", "text": " NSSt", "parent": 39, "children": [44], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 26}}, {"id": 44, "type": "identifier", "text": "NSSt", "parent": 43, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 26}}, {"id": 45, "type": "ERROR", "text": "g *endTs", "parent": 38, "children": [46], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 37}}, {"id": 46, "type": "identifier", "text": "g *endTs", "parent": 45, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 37}}, {"id": 47, "type": "pointer_declarator", "text": "\n@prop", "parent": 38, "children": [48, 49], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 44}}, {"id": 48, "type": "*", "text": "\n", "parent": 47, "children": [], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 39}}, {"id": 49, "type": "identifier", "text": "@prop", "parent": 47, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 44}}, {"id": 50, "type": "ERROR", "text": "t", "parent": 3, "children": [51], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 51, "type": "ERROR", "text": "t", "parent": 50, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 52, "type": "declaration", "text": "y (nonatomic, copy) NSString *id;\n@prope", "parent": 3, "children": [53, 59, 61], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 42}}, {"id": 53, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 52, "children": [54, 55, 57], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 27}}, {"id": 54, "type": "identifier", "text": "y (nonat", "parent": 53, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 55, "type": "type_descriptor", "text": "ic, copy)", "parent": 53, "children": [56], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 56, "type": "type_identifier", "text": "ic, copy)", "parent": 55, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 20}}, {"id": 57, "type": "ERROR", "text": " NSSt", "parent": 53, "children": [58], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 26}}, {"id": 58, "type": "identifier", "text": "NSSt", "parent": 57, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 26}}, {"id": 59, "type": "ERROR", "text": "g *id;\n@", "parent": 52, "children": [60], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 37}}, {"id": 60, "type": "identifier", "text": "g *id;\n@", "parent": 59, "children": [], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 37}}, {"id": 61, "type": "pointer_declarator", "text": "rop", "parent": 52, "children": [62, 63], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 41}}, {"id": 62, "type": "*", "text": "r", "parent": 61, "children": [], "start_point": {"row": 16, "column": 38}, "end_point": {"row": 16, "column": 39}}, {"id": 63, "type": "identifier", "text": "op", "parent": 61, "children": [], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 41}}, {"id": 64, "type": "ERROR", "text": "t", "parent": 3, "children": [65], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 65, "type": "ERROR", "text": "t", "parent": 64, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 66, "type": "declaration", "text": "y (nonatomic, copy) NSString *name;\n@prope", "parent": 3, "children": [67, 73, 75], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 44}}, {"id": 67, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 66, "children": [68, 69, 71], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 27}}, {"id": 68, "type": "identifier", "text": "y (nonat", "parent": 67, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 69, "type": "type_descriptor", "text": "ic, copy)", "parent": 67, "children": [70], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 70, "type": "type_identifier", "text": "ic, copy)", "parent": 69, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 20}}, {"id": 71, "type": "ERROR", "text": " NSSt", "parent": 67, "children": [72], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 26}}, {"id": 72, "type": "identifier", "text": "NSSt", "parent": 71, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 26}}, {"id": 73, "type": "ERROR", "text": "g *name;", "parent": 66, "children": [74], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 37}}, {"id": 74, "type": "identifier", "text": "g *name;", "parent": 73, "children": [], "start_point": {"row": 17, "column": 29}, "end_point": {"row": 17, "column": 37}}, {"id": 75, "type": "pointer_declarator", "text": "@prop", "parent": 66, "children": [76, 77], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 43}}, {"id": 76, "type": "*", "text": "@", "parent": 75, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 39}}, {"id": 77, "type": "identifier", "text": "prop", "parent": 75, "children": [], "start_point": {"row": 17, "column": 39}, "end_point": {"row": 17, "column": 43}}, {"id": 78, "type": "ERROR", "text": "t", "parent": 3, "children": [79], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 79, "type": "ERROR", "text": "t", "parent": 78, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 80, "type": "declaration", "text": "y (nonatomic, copy) NSString *onlineCount;\n@prope", "parent": 3, "children": [81, 87, 89], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 51}}, {"id": 81, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 80, "children": [82, 83, 85], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 27}}, {"id": 82, "type": "identifier", "text": "y (nonat", "parent": 81, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 83, "type": "type_descriptor", "text": "ic, copy)", "parent": 81, "children": [84], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 20}}, {"id": 84, "type": "type_identifier", "text": "ic, copy)", "parent": 83, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 20}}, {"id": 85, "type": "ERROR", "text": " NSSt", "parent": 81, "children": [86], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 26}}, {"id": 86, "type": "identifier", "text": "NSSt", "parent": 85, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 26}}, {"id": 87, "type": "ERROR", "text": "g *onlin", "parent": 80, "children": [88], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 37}}, {"id": 88, "type": "identifier", "text": "g *onlin", "parent": 87, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 37}}, {"id": 89, "type": "pointer_declarator", "text": "Count;\n@prop", "parent": 80, "children": [90, 91], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 50}}, {"id": 90, "type": "*", "text": "C", "parent": 89, "children": [], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 39}}, {"id": 91, "type": "identifier", "text": "ount;\n@prop", "parent": 89, "children": [], "start_point": {"row": 18, "column": 39}, "end_point": {"row": 18, "column": 50}}, {"id": 92, "type": "ERROR", "text": "t", "parent": 3, "children": [93], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 93, "type": "ERROR", "text": "t", "parent": 92, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 94, "type": "declaration", "text": "y (nonatomic, copy) NSString *playCount;\n@prope", "parent": 3, "children": [95, 101, 103], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 49}}, {"id": 95, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 94, "children": [96, 97, 99], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 27}}, {"id": 96, "type": "identifier", "text": "y (nonat", "parent": 95, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 9}}, {"id": 97, "type": "type_descriptor", "text": "ic, copy)", "parent": 95, "children": [98], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 20}}, {"id": 98, "type": "type_identifier", "text": "ic, copy)", "parent": 97, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 20}}, {"id": 99, "type": "ERROR", "text": " NSSt", "parent": 95, "children": [100], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 26}}, {"id": 100, "type": "identifier", "text": "NSSt", "parent": 99, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 26}}, {"id": 101, "type": "ERROR", "text": "g *playC", "parent": 94, "children": [102], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 37}}, {"id": 102, "type": "identifier", "text": "g *playC", "parent": 101, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 19, "column": 37}}, {"id": 103, "type": "pointer_declarator", "text": "unt;\n@prop", "parent": 94, "children": [104, 105], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 48}}, {"id": 104, "type": "*", "text": "u", "parent": 103, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 39}}, {"id": 105, "type": "identifier", "text": "nt;\n@prop", "parent": 103, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 48}}, {"id": 106, "type": "ERROR", "text": "t", "parent": 3, "children": [107], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 107, "type": "ERROR", "text": "t", "parent": 106, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 108, "type": "declaration", "text": "y (nonatomic, copy) NSString *scheduleId;\n@prope", "parent": 3, "children": [109, 115, 117], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 50}}, {"id": 109, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 108, "children": [110, 111, 113], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 27}}, {"id": 110, "type": "identifier", "text": "y (nonat", "parent": 109, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 111, "type": "type_descriptor", "text": "ic, copy)", "parent": 109, "children": [112], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 20}}, {"id": 112, "type": "type_identifier", "text": "ic, copy)", "parent": 111, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 20}}, {"id": 113, "type": "ERROR", "text": " NSSt", "parent": 109, "children": [114], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 26}}, {"id": 114, "type": "identifier", "text": "NSSt", "parent": 113, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 26}}, {"id": 115, "type": "ERROR", "text": "g *sched", "parent": 108, "children": [116], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 37}}, {"id": 116, "type": "identifier", "text": "g *sched", "parent": 115, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 37}}, {"id": 117, "type": "pointer_declarator", "text": "leId;\n@prop", "parent": 108, "children": [118, 119], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 49}}, {"id": 118, "type": "*", "text": "l", "parent": 117, "children": [], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 39}}, {"id": 119, "type": "identifier", "text": "eId;\n@prop", "parent": 117, "children": [], "start_point": {"row": 20, "column": 39}, "end_point": {"row": 20, "column": 49}}, {"id": 120, "type": "ERROR", "text": "t", "parent": 3, "children": [121], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 121, "type": "ERROR", "text": "t", "parent": 120, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 122, "type": "declaration", "text": "y (nonatomic, copy) NSString *shortDescription;\n@prope", "parent": 3, "children": [123, 129, 131], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 56}}, {"id": 123, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 122, "children": [124, 125, 127], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 27}}, {"id": 124, "type": "identifier", "text": "y (nonat", "parent": 123, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 125, "type": "type_descriptor", "text": "ic, copy)", "parent": 123, "children": [126], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 20}}, {"id": 126, "type": "type_identifier", "text": "ic, copy)", "parent": 125, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 20}}, {"id": 127, "type": "ERROR", "text": " NSSt", "parent": 123, "children": [128], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 26}}, {"id": 128, "type": "identifier", "text": "NSSt", "parent": 127, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 26}}, {"id": 129, "type": "ERROR", "text": "g *short", "parent": 122, "children": [130], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 37}}, {"id": 130, "type": "identifier", "text": "g *short", "parent": 129, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 37}}, {"id": 131, "type": "pointer_declarator", "text": "escription;\n@prop", "parent": 122, "children": [132, 133], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 55}}, {"id": 132, "type": "*", "text": "e", "parent": 131, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 39}}, {"id": 133, "type": "identifier", "text": "scription;\n@prop", "parent": 131, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 55}}, {"id": 134, "type": "ERROR", "text": "t", "parent": 3, "children": [135], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 135, "type": "ERROR", "text": "t", "parent": 134, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 136, "type": "declaration", "text": "y (nonatomic, copy) NSString *startTs;\n@prope", "parent": 3, "children": [137, 143, 145], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 47}}, {"id": 137, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 136, "children": [138, 139, 141], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 27}}, {"id": 138, "type": "identifier", "text": "y (nonat", "parent": 137, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 139, "type": "type_descriptor", "text": "ic, copy)", "parent": 137, "children": [140], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 20}}, {"id": 140, "type": "type_identifier", "text": "ic, copy)", "parent": 139, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 20}}, {"id": 141, "type": "ERROR", "text": " NSSt", "parent": 137, "children": [142], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 26}}, {"id": 142, "type": "identifier", "text": "NSSt", "parent": 141, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 26}}, {"id": 143, "type": "ERROR", "text": "g *start", "parent": 136, "children": [144], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 37}}, {"id": 144, "type": "identifier", "text": "g *start", "parent": 143, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 37}}, {"id": 145, "type": "pointer_declarator", "text": "s;\n@prop", "parent": 136, "children": [146, 147], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 46}}, {"id": 146, "type": "*", "text": "s", "parent": 145, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 39}}, {"id": 147, "type": "identifier", "text": ";\n@prop", "parent": 145, "children": [], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 46}}, {"id": 148, "type": "ERROR", "text": "t", "parent": 3, "children": [149], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 149, "type": "ERROR", "text": "t", "parent": 148, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 150, "type": "declaration", "text": "y (nonatomic, copy) NSString *status;\n\n@prop", "parent": 3, "children": [151, 157, 159], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 46}}, {"id": 151, "type": "macro_type_specifier", "text": "y (nonatomic, copy) NSStr", "parent": 150, "children": [152, 153, 155], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 27}}, {"id": 152, "type": "identifier", "text": "y (nonat", "parent": 151, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 153, "type": "type_descriptor", "text": "ic, copy)", "parent": 151, "children": [154], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 20}}, {"id": 154, "type": "type_identifier", "text": "ic, copy)", "parent": 153, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 20}}, {"id": 155, "type": "ERROR", "text": " NSSt", "parent": 151, "children": [156], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 26}}, {"id": 156, "type": "identifier", "text": "NSSt", "parent": 155, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 26}}, {"id": 157, "type": "ERROR", "text": "g *statu", "parent": 150, "children": [158], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 37}}, {"id": 158, "type": "identifier", "text": "g *statu", "parent": 157, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 37}}, {"id": 159, "type": "pointer_declarator", "text": ";\n\n@pro", "parent": 150, "children": [160], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 45}}, {"id": 160, "type": "identifier", "text": "\n\n@pro", "parent": 159, "children": [], "start_point": {"row": 23, "column": 39}, "end_point": {"row": 23, "column": 45}}, {"id": 161, "type": "ERROR", "text": "t", "parent": 3, "children": [162], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 162, "type": "ERROR", "text": "t", "parent": 161, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 163, "type": "declaration", "text": "y (nonatomic, copy) void(^clickBlock)();\n\n@end\n", "parent": 3, "children": [164, 170], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 48}}, {"id": 164, "type": "macro_type_specifier", "text": "y (nonatomic, copy) void(^", "parent": 163, "children": [165, 166, 168], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 27}}, {"id": 165, "type": "identifier", "text": "y (nonat", "parent": 164, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 166, "type": "type_descriptor", "text": "ic, copy)", "parent": 164, "children": [167], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 20}}, {"id": 167, "type": "type_identifier", "text": "ic, copy)", "parent": 166, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 20}}, {"id": 168, "type": "ERROR", "text": " void(", "parent": 164, "children": [169], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 26}}, {"id": 169, "type": "identifier", "text": "oid(", "parent": 168, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 26}}, {"id": 170, "type": "function_declarator", "text": "lickBlock)();\n\n@end", "parent": 163, "children": [171, 178], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 47}}, {"id": 171, "type": "function_declarator", "text": "lickBlock)();\n\n@e", "parent": 170, "children": [172, 173], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 45}}, {"id": 172, "type": "identifier", "text": "lick", "parent": 171, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 32}}, {"id": 173, "type": "parameter_list", "text": "Block)();\n\n@e", "parent": 171, "children": [174, 176], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 45}}, {"id": 174, "type": "ERROR", "text": "l", "parent": 173, "children": [175], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 34}}, {"id": 175, "type": "^", "text": "l", "parent": 174, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 34}}, {"id": 176, "type": "parameter_declaration", "text": "ock)();\n\n@", "parent": 173, "children": [177], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 44}}, {"id": 177, "type": "type_identifier", "text": "ock)();\n\n@", "parent": 176, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 44}}, {"id": 178, "type": "parameter_list", "text": "nd", "parent": 170, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 47}}, {"id": 179, "type": "ERROR", "text": "", "parent": 3, "children": [180], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 180, "type": "ERROR", "text": "", "parent": 179, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 181, "type": "identifier", "text": "", "parent": 3, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 4}}]}, "node_categories": {"declarations": {"functions": [6, 170, 171], "variables": [15, 21, 38, 52, 66, 80, 94, 108, 122, 136, 150, 163, 176], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 9, 11, 13, 14, 16, 18, 22, 23, 25, 27, 28, 30, 32, 35, 39, 40, 42, 44, 46, 49, 53, 54, 56, 58, 60, 63, 67, 68, 70, 72, 74, 77, 81, 82, 84, 86, 88, 91, 95, 96, 98, 100, 102, 105, 109, 110, 112, 114, 116, 119, 123, 124, 126, 128, 130, 133, 137, 138, 140, 142, 144, 147, 151, 152, 154, 156, 158, 160, 164, 165, 167, 169, 172, 177, 181], "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": "odel : NSObject\n\n\n@property (nonatomic, copy) NSStr"}, {"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "lickBlock)();\n\n@end"}, {"node_id": 171, "universal_type": "function", "name": "unknown", "text_snippet": "lickBlock)();\n\n@e"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// HSLiveModel.h\n// FunkyFMHome\n//\n// Created by \u80e1\u665f on 2017/7/31.\n// Copyright \u00a9 2017\u5e74 funkyHS. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface HSLiveModel : NSObject\n\n\n@property (nonatomic, copy) NSString *chatId;\n@property (nonatomic, copy, getter=adImgURL) NSString *coverPath;\n@property (nonatomic, copy) NSString *endTs;\n@property (nonatomic, copy) NSString *id;\n@property (nonatomic, copy) NSString *name;\n@property (nonatomic, copy) NSString *onlineCount;\n@property (nonatomic, copy) NSString *playCount;\n@property (nonatomic, copy) NSString *scheduleId;\n@property (nonatomic, copy) NSString *shortDescription;\n@property (nonatomic, copy) NSString *startTs;\n@property (nonatomic, copy) NSString *status;\n\n@property (nonatomic, copy) void(^clickBlock)();\n\n@end\n"}
80,304
c
#pragma once #include <glhimmel-computed/glhimmel-computed_api.h> #include <glhimmel-base/julianday.h> namespace glHimmel { class GLHIMMEL_COMPUTED_API Earth { public: static long double orbitEccentricity(const JulianDay t); static long double apparentAngularSunDiameter(const JulianDay t); static long double apparentAngularMoonDiameter(const JulianDay t); static long double longitudeNutation(const JulianDay t); static long double obliquityNutation(const JulianDay t); static long double meanObliquity(const JulianDay t); static long double trueObliquity(const JulianDay t); static long double atmosphericRefraction(const long double altitude); static long double viewDistanceWithinAtmosphere( const long double y /* height component of the view direction on ground into the sky */ , const bool refractionCorrected = false); static long double meanRadius(); static long double atmosphereThickness(); // if its density were uniform... static long double atmosphereThicknessNonUniform(); static long double apparentMagnitudeLimit(); }; } // namespace glHimmel
42.42
26
(translation_unit) "ragma once\n\n#include <glhimmel-computed/glhimmel-computed_api.h>\n#include <glhimmel-base/julianday.h>\n\n\nnamespace glHimmel\n{\n\nclass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n static long double apparentAngularSunDiameter(const JulianDay t);\n static long double apparentAngularMoonDiameter(const JulianDay t);\n\n static long double longitudeNutation(const JulianDay t);\n static long double obliquityNutation(const JulianDay t);\n\n static long double meanObliquity(const JulianDay t);\n static long double trueObliquity(const JulianDay t);\n\n static long double atmosphericRefraction(const long double altitude);\n\n static long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n static long double meanRadius();\n static long double atmosphereThickness(); // if its density were uniform...\n static long double atmosphereThicknessNonUniform();\n\n static long double apparentMagnitudeLimit();\n};\n\n} // namespace glHimmel\n" (preproc_call) "ragma once\n\n#" (preproc_directive) "ragma o" (preproc_arg) "ce\n\n" (preproc_include) "nclude <glhimmel-computed/glhimmel-computed_api.h>\n#i" (#include) "nclude <" (system_lib_string) "lhimmel-computed/glhimmel-computed_api.h>\n#" (preproc_include) "nclude <glhimmel-base/julianday.h>\n\n\n" (#include) "nclude <" (system_lib_string) "lhimmel-base/julianday.h>\n\n" (function_definition) "mespace glHimmel\n{\n\nclass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n static long double apparentAngularSunDiameter(const JulianDay t);\n static long double apparentAngularMoonDiameter(const JulianDay t);\n\n static long double longitudeNutation(const JulianDay t);\n static long double obliquityNutation(const JulianDay t);\n\n static long double meanObliquity(const JulianDay t);\n static long double trueObliquity(const JulianDay t);\n\n static long double atmosphericRefraction(const long double altitude);\n\n static long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n static long double meanRadius();\n static long double atmosphereThickness(); // if its density were uniform...\n static long double atmosphereThicknessNonUniform();\n\n static long double apparentMagnitudeLimit();\n};\n\n} /" (type_identifier) "mespace g" (identifier) "Himmel\n{" (compound_statement) "\nclass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n static long double apparentAngularSunDiameter(const JulianDay t);\n static long double apparentAngularMoonDiameter(const JulianDay t);\n\n static long double longitudeNutation(const JulianDay t);\n static long double obliquityNutation(const JulianDay t);\n\n static long double meanObliquity(const JulianDay t);\n static long double trueObliquity(const JulianDay t);\n\n static long double atmosphericRefraction(const long double altitude);\n\n static long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n static long double meanRadius();\n static long double atmosphereThickness(); // if its density were uniform...\n static long double atmosphereThicknessNonUniform();\n\n static long double apparentMagnitudeLimit();\n};\n\n} /" ({) "\n" (function_definition) "ass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n static long double apparentAngularSunDiameter(const JulianDay t);\n static long double apparentAngularMoonDiameter(const JulianDay t);\n\n static long double longitudeNutation(const JulianDay t);\n static long double obliquityNutation(const JulianDay t);\n\n static long double meanObliquity(const JulianDay t);\n static long double trueObliquity(const JulianDay t);\n\n static long double atmosphericRefraction(const long double altitude);\n\n static long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n static long double meanRadius();\n static long double atmosphereThickness(); // if its density were uniform...\n static long double atmosphereThicknessNonUniform();\n\n static long double apparentMagnitudeLimit();\n};\n" (type_identifier) "ass G" (identifier) "HIMMEL_COMPUTED_API E" (ERROR) "rth\n{" (identifier) "rth\n{" (compound_statement) "public:\n\n static long double orbitEccentricity(const JulianDay t);\n\n static long double apparentAngularSunDiameter(const JulianDay t);\n static long double apparentAngularMoonDiameter(const JulianDay t);\n\n static long double longitudeNutation(const JulianDay t);\n static long double obliquityNutation(const JulianDay t);\n\n static long double meanObliquity(const JulianDay t);\n static long double trueObliquity(const JulianDay t);\n\n static long double atmosphericRefraction(const long double altitude);\n\n static long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n static long double meanRadius();\n static long double atmosphereThickness(); // if its density were uniform...\n static long double atmosphereThicknessNonUniform();\n\n static long double apparentMagnitudeLimit();\n};\n" ({) "p" (labeled_statement) "blic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n" (statement_identifier) "blic:\n" (:) "\n" (declaration) "atic long double orbitEccentricity(const JulianDay t);\n\n" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double o" (long) "ng d" (primitive_type) "uble o" (function_declarator) "bitEccentricity(const JulianDay t);\n" (identifier) "bitEccentricity(c" (parameter_list) "onst JulianDay t);\n" (() "o" (parameter_declaration) "nst JulianDay t);" (type_qualifier) "nst J" (const) "nst J" (type_identifier) "lianDay t" (identifier) ";" ()) "\n" (;) "\n" (declaration) "atic long double apparentAngularSunDiameter(const JulianDay t);\n " (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double a" (long) "ng d" (primitive_type) "uble a" (function_declarator) "parentAngularSunDiameter(const JulianDay t);\n" (identifier) "parentAngularSunDiameter(c" (parameter_list) "onst JulianDay t);\n" (() "o" (parameter_declaration) "nst JulianDay t);" (type_qualifier) "nst J" (const) "nst J" (type_identifier) "lianDay t" (identifier) ";" ()) "\n" (;) " " (declaration) "atic long double apparentAngularMoonDiameter(const JulianDay t);\n\n" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double a" (long) "ng d" (primitive_type) "uble a" (function_declarator) "parentAngularMoonDiameter(const JulianDay t);\n" (identifier) "parentAngularMoonDiameter(c" (parameter_list) "onst JulianDay t);\n" (() "o" (parameter_declaration) "nst JulianDay t);" (type_qualifier) "nst J" (const) "nst J" (type_identifier) "lianDay t" (identifier) ";" ()) "\n" (;) "\n" (declaration) "atic long double longitudeNutation(const JulianDay t);\n " (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double l" (long) "ng d" (primitive_type) "uble l" (function_declarator) "ngitudeNutation(const JulianDay t);\n" (identifier) "ngitudeNutation(c" (parameter_list) "onst JulianDay t);\n" (() "o" (parameter_declaration) "nst JulianDay t);" (type_qualifier) "nst J" (const) "nst J" (type_identifier) "lianDay t" (identifier) ";" ()) "\n" (;) " " (declaration) "atic long double obliquityNutation(const JulianDay t);\n\n" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double o" (long) "ng d" (primitive_type) "uble o" (function_declarator) "liquityNutation(const JulianDay t);\n" (identifier) "liquityNutation(c" (parameter_list) "onst JulianDay t);\n" (() "o" (parameter_declaration) "nst JulianDay t);" (type_qualifier) "nst J" (const) "nst J" (type_identifier) "lianDay t" (identifier) ";" ()) "\n" (;) "\n" (declaration) "atic long double meanObliquity(const JulianDay t);\n " (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double m" (long) "ng d" (primitive_type) "uble m" (function_declarator) "anObliquity(const JulianDay t);\n" (identifier) "anObliquity(c" (parameter_list) "onst JulianDay t);\n" (() "o" (parameter_declaration) "nst JulianDay t);" (type_qualifier) "nst J" (const) "nst J" (type_identifier) "lianDay t" (identifier) ";" ()) "\n" (;) " " (declaration) "atic long double trueObliquity(const JulianDay t);\n\n" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double t" (long) "ng d" (primitive_type) "uble t" (function_declarator) "ueObliquity(const JulianDay t);\n" (identifier) "ueObliquity(c" (parameter_list) "onst JulianDay t);\n" (() "o" (parameter_declaration) "nst JulianDay t);" (type_qualifier) "nst J" (const) "nst J" (type_identifier) "lianDay t" (identifier) ";" ()) "\n" (;) "\n" (declaration) "atic long double atmosphericRefraction(const long double altitude);\n\n" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double a" (long) "ng d" (primitive_type) "uble a" (function_declarator) "mosphericRefraction(const long double altitude);\n" (identifier) "mosphericRefraction(c" (parameter_list) "onst long double altitude);\n" (() "o" (parameter_declaration) "nst long double altitude);" (type_qualifier) "nst l" (const) "nst l" (sized_type_specifier) "ng double a" (long) "ng d" (primitive_type) "uble a" (identifier) "titude);" ()) "\n" (;) "\n" (declaration) "atic long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double v" (long) "ng d" (primitive_type) "uble v" (init_declarator) "ewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);" (function_declarator) "ewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected =" (identifier) "ewDistanceWithinAtmosphere(\n" (parameter_list) " const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected =" (() " " (parameter_declaration) "nst long double y /" (type_qualifier) "nst l" (const) "nst l" (sized_type_specifier) "ng double y" (long) "ng d" (primitive_type) "uble y" (identifier) "/" (comment) " height component of the view direction on ground into the sky */\n " (,) " " (parameter_declaration) "nst bool refractionCorrected =" (type_qualifier) "nst b" (const) "nst b" (primitive_type) "ol r" (identifier) "fractionCorrected =" ()) "" (=) "f" (false) "lse);" (ERROR) "\n" ()) "\n" (;) "\n" (declaration) "atic long double meanRadius();\n " (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double m" (long) "ng d" (primitive_type) "uble m" (function_declarator) "anRadius();\n" (identifier) "anRadius()" (parameter_list) ";\n" (() ";" ()) "\n" (;) " " (declaration) "atic long double atmosphereThickness(); /" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double a" (long) "ng d" (primitive_type) "uble a" (function_declarator) "mosphereThickness(); " (identifier) "mosphereThickness()" (parameter_list) "; " (() ";" ()) " " (;) "/" (comment) " if its density were uniform...\n " (declaration) "atic long double atmosphereThicknessNonUniform();\n\n" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double a" (long) "ng d" (primitive_type) "uble a" (function_declarator) "mosphereThicknessNonUniform();\n" (identifier) "mosphereThicknessNonUniform()" (parameter_list) ";\n" (() ";" ()) "\n" (;) "\n" (declaration) "atic long double apparentMagnitudeLimit();\n}" (storage_class_specifier) "atic l" (static) "atic l" (sized_type_specifier) "ng double a" (long) "ng d" (primitive_type) "uble a" (function_declarator) "parentMagnitudeLimit();\n" (identifier) "parentMagnitudeLimit()" (parameter_list) ";\n" (() ";" ()) "\n" (;) "}" (}) "\n" (expression_statement) "\n" (;) "\n" (}) "/" (comment) " namespace glHimmel\n"
248
2
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 42.42, "nodes": 160, "errors": 0, "source_hash": "9254ca901159001c2a0e788655dafadb8c8957366f4afba5fc874def3d06cb8b", "categorized_nodes": 112}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\n\n#", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ragma o", "parent": 0, "children": [], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 10}}, {"id": 2, "type": "preproc_arg", "text": "ce\n\n", "parent": 0, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_include", "text": "nclude <glhimmel-computed/glhimmel-computed_api.h>\n#i", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#include", "text": "nclude <", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "lhimmel-computed/glhimmel-computed_api.h>\n#", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 52}}, {"id": 6, "type": "preproc_include", "text": "nclude <glhimmel-base/julianday.h>\n\n\n", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "nclude <", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "lhimmel-base/julianday.h>\n\n", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 36}}, {"id": 9, "type": "function_definition", "text": "mespace glHimmel\n{\n\nclass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n static long double apparentAngularSunDiameter(const JulianDay t);\n static long double apparentAngularMoonDiameter(const JulianDay t);\n\n static long double longitudeNutation(const JulianDay t);\n static long double obliquityNutation(const JulianDay t);\n\n static long double meanObliquity(const JulianDay t);\n static long double trueObliquity(const JulianDay t);\n\n static long double atmosphericRefraction(const long double altitude);\n\n static long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n static long double meanRadius();\n static long double atmosphereThickness(); // if its density were uniform...\n static long double atmosphereThicknessNonUniform();\n\n static long double apparentMagnitudeLimit();\n};\n\n} /", "parent": null, "children": [10, 11], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "mespace g", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 9}}, {"id": 11, "type": "identifier", "text": "Himmel\n{", "parent": 9, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 18}}, {"id": 12, "type": "function_definition", "text": "ass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n static long double apparentAngularSunDiameter(const JulianDay t);\n static long double apparentAngularMoonDiameter(const JulianDay t);\n\n static long double longitudeNutation(const JulianDay t);\n static long double obliquityNutation(const JulianDay t);\n\n static long double meanObliquity(const JulianDay t);\n static long double trueObliquity(const JulianDay t);\n\n static long double atmosphericRefraction(const long double altitude);\n\n static long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n static long double meanRadius();\n static long double atmosphereThickness(); // if its density were uniform...\n static long double atmosphereThicknessNonUniform();\n\n static long double apparentMagnitudeLimit();\n};\n", "parent": 9, "children": [13, 14, 15], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 13, "type": "type_identifier", "text": "ass G", "parent": 12, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 14, "type": "identifier", "text": "HIMMEL_COMPUTED_API E", "parent": 12, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 27}}, {"id": 15, "type": "ERROR", "text": "rth\n{", "parent": 12, "children": [16], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 33}}, {"id": 16, "type": "identifier", "text": "rth\n{", "parent": 15, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 33}}, {"id": 17, "type": "labeled_statement", "text": "blic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n", "parent": 12, "children": [18, 19], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 60}}, {"id": 18, "type": "statement_identifier", "text": "blic:\n", "parent": 17, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 19, "type": "declaration", "text": "atic long double orbitEccentricity(const JulianDay t);\n\n", "parent": 17, "children": [20, 21, 24], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 60}}, {"id": 20, "type": "storage_class_specifier", "text": "atic l", "parent": 19, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 21, "type": "sized_type_specifier", "text": "ng double o", "parent": 19, "children": [22, 23], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 22}}, {"id": 22, "type": "long", "text": "ng d", "parent": 21, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 15}}, {"id": 23, "type": "primitive_type", "text": "uble o", "parent": 21, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 22}}, {"id": 24, "type": "function_declarator", "text": "bitEccentricity(const JulianDay t);\n", "parent": 19, "children": [25, 26], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 59}}, {"id": 25, "type": "identifier", "text": "bitEccentricity(c", "parent": 24, "children": [], "start_point": {"row": 13, "column": 23}, "end_point": {"row": 13, "column": 40}}, {"id": 26, "type": "parameter_list", "text": "onst JulianDay t);\n", "parent": 24, "children": [27], "start_point": {"row": 13, "column": 40}, "end_point": {"row": 13, "column": 59}}, {"id": 27, "type": "parameter_declaration", "text": "nst JulianDay t);", "parent": 26, "children": [28, 29], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 58}}, {"id": 28, "type": "type_qualifier", "text": "nst J", "parent": 27, "children": [], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 46}}, {"id": 29, "type": "type_identifier", "text": "lianDay t", "parent": 27, "children": [], "start_point": {"row": 13, "column": 47}, "end_point": {"row": 13, "column": 56}}, {"id": 30, "type": "declaration", "text": "atic long double apparentAngularSunDiameter(const JulianDay t);\n ", "parent": 12, "children": [31, 32, 35], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 69}}, {"id": 31, "type": "storage_class_specifier", "text": "atic l", "parent": 30, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 32, "type": "sized_type_specifier", "text": "ng double a", "parent": 30, "children": [33, 34], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 22}}, {"id": 33, "type": "long", "text": "ng d", "parent": 32, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 15}}, {"id": 34, "type": "primitive_type", "text": "uble a", "parent": 32, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 22}}, {"id": 35, "type": "function_declarator", "text": "parentAngularSunDiameter(const JulianDay t);\n", "parent": 30, "children": [36, 37], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 68}}, {"id": 36, "type": "identifier", "text": "parentAngularSunDiameter(c", "parent": 35, "children": [], "start_point": {"row": 15, "column": 23}, "end_point": {"row": 15, "column": 49}}, {"id": 37, "type": "parameter_list", "text": "onst JulianDay t);\n", "parent": 35, "children": [38], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 68}}, {"id": 38, "type": "parameter_declaration", "text": "nst JulianDay t);", "parent": 37, "children": [39, 40], "start_point": {"row": 15, "column": 50}, "end_point": {"row": 15, "column": 67}}, {"id": 39, "type": "type_qualifier", "text": "nst J", "parent": 38, "children": [], "start_point": {"row": 15, "column": 50}, "end_point": {"row": 15, "column": 55}}, {"id": 40, "type": "type_identifier", "text": "lianDay t", "parent": 38, "children": [], "start_point": {"row": 15, "column": 56}, "end_point": {"row": 15, "column": 65}}, {"id": 41, "type": "declaration", "text": "atic long double apparentAngularMoonDiameter(const JulianDay t);\n\n", "parent": 12, "children": [42, 43, 46], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 70}}, {"id": 42, "type": "storage_class_specifier", "text": "atic l", "parent": 41, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 43, "type": "sized_type_specifier", "text": "ng double a", "parent": 41, "children": [44, 45], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 22}}, {"id": 44, "type": "long", "text": "ng d", "parent": 43, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 15}}, {"id": 45, "type": "primitive_type", "text": "uble a", "parent": 43, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 22}}, {"id": 46, "type": "function_declarator", "text": "parentAngularMoonDiameter(const JulianDay t);\n", "parent": 41, "children": [47, 48], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 69}}, {"id": 47, "type": "identifier", "text": "parentAngularMoonDiameter(c", "parent": 46, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 50}}, {"id": 48, "type": "parameter_list", "text": "onst JulianDay t);\n", "parent": 46, "children": [49], "start_point": {"row": 16, "column": 50}, "end_point": {"row": 16, "column": 69}}, {"id": 49, "type": "parameter_declaration", "text": "nst JulianDay t);", "parent": 48, "children": [50, 51], "start_point": {"row": 16, "column": 51}, "end_point": {"row": 16, "column": 68}}, {"id": 50, "type": "type_qualifier", "text": "nst J", "parent": 49, "children": [], "start_point": {"row": 16, "column": 51}, "end_point": {"row": 16, "column": 56}}, {"id": 51, "type": "type_identifier", "text": "lianDay t", "parent": 49, "children": [], "start_point": {"row": 16, "column": 57}, "end_point": {"row": 16, "column": 66}}, {"id": 52, "type": "declaration", "text": "atic long double longitudeNutation(const JulianDay t);\n ", "parent": 12, "children": [53, 54, 57], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 60}}, {"id": 53, "type": "storage_class_specifier", "text": "atic l", "parent": 52, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 10}}, {"id": 54, "type": "sized_type_specifier", "text": "ng double l", "parent": 52, "children": [55, 56], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 22}}, {"id": 55, "type": "long", "text": "ng d", "parent": 54, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 15}}, {"id": 56, "type": "primitive_type", "text": "uble l", "parent": 54, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 22}}, {"id": 57, "type": "function_declarator", "text": "ngitudeNutation(const JulianDay t);\n", "parent": 52, "children": [58, 59], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 59}}, {"id": 58, "type": "identifier", "text": "ngitudeNutation(c", "parent": 57, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 40}}, {"id": 59, "type": "parameter_list", "text": "onst JulianDay t);\n", "parent": 57, "children": [60], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 59}}, {"id": 60, "type": "parameter_declaration", "text": "nst JulianDay t);", "parent": 59, "children": [61, 62], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 58}}, {"id": 61, "type": "type_qualifier", "text": "nst J", "parent": 60, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 46}}, {"id": 62, "type": "type_identifier", "text": "lianDay t", "parent": 60, "children": [], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 56}}, {"id": 63, "type": "declaration", "text": "atic long double obliquityNutation(const JulianDay t);\n\n", "parent": 12, "children": [64, 65, 68], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 60}}, {"id": 64, "type": "storage_class_specifier", "text": "atic l", "parent": 63, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 10}}, {"id": 65, "type": "sized_type_specifier", "text": "ng double o", "parent": 63, "children": [66, 67], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 22}}, {"id": 66, "type": "long", "text": "ng d", "parent": 65, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 15}}, {"id": 67, "type": "primitive_type", "text": "uble o", "parent": 65, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 22}}, {"id": 68, "type": "function_declarator", "text": "liquityNutation(const JulianDay t);\n", "parent": 63, "children": [69, 70], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 59}}, {"id": 69, "type": "identifier", "text": "liquityNutation(c", "parent": 68, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 40}}, {"id": 70, "type": "parameter_list", "text": "onst JulianDay t);\n", "parent": 68, "children": [71], "start_point": {"row": 19, "column": 40}, "end_point": {"row": 19, "column": 59}}, {"id": 71, "type": "parameter_declaration", "text": "nst JulianDay t);", "parent": 70, "children": [72, 73], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 58}}, {"id": 72, "type": "type_qualifier", "text": "nst J", "parent": 71, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 46}}, {"id": 73, "type": "type_identifier", "text": "lianDay t", "parent": 71, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 56}}, {"id": 74, "type": "declaration", "text": "atic long double meanObliquity(const JulianDay t);\n ", "parent": 12, "children": [75, 76, 79], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 56}}, {"id": 75, "type": "storage_class_specifier", "text": "atic l", "parent": 74, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 10}}, {"id": 76, "type": "sized_type_specifier", "text": "ng double m", "parent": 74, "children": [77, 78], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 22}}, {"id": 77, "type": "long", "text": "ng d", "parent": 76, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 15}}, {"id": 78, "type": "primitive_type", "text": "uble m", "parent": 76, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 22}}, {"id": 79, "type": "function_declarator", "text": "anObliquity(const JulianDay t);\n", "parent": 74, "children": [80, 81], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 55}}, {"id": 80, "type": "identifier", "text": "anObliquity(c", "parent": 79, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 36}}, {"id": 81, "type": "parameter_list", "text": "onst JulianDay t);\n", "parent": 79, "children": [82], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 55}}, {"id": 82, "type": "parameter_declaration", "text": "nst JulianDay t);", "parent": 81, "children": [83, 84], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 54}}, {"id": 83, "type": "type_qualifier", "text": "nst J", "parent": 82, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 42}}, {"id": 84, "type": "type_identifier", "text": "lianDay t", "parent": 82, "children": [], "start_point": {"row": 21, "column": 43}, "end_point": {"row": 21, "column": 52}}, {"id": 85, "type": "declaration", "text": "atic long double trueObliquity(const JulianDay t);\n\n", "parent": 12, "children": [86, 87, 90], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 56}}, {"id": 86, "type": "storage_class_specifier", "text": "atic l", "parent": 85, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 87, "type": "sized_type_specifier", "text": "ng double t", "parent": 85, "children": [88, 89], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 22}}, {"id": 88, "type": "long", "text": "ng d", "parent": 87, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 15}}, {"id": 89, "type": "primitive_type", "text": "uble t", "parent": 87, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 22}}, {"id": 90, "type": "function_declarator", "text": "ueObliquity(const JulianDay t);\n", "parent": 85, "children": [91, 92], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 55}}, {"id": 91, "type": "identifier", "text": "ueObliquity(c", "parent": 90, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 36}}, {"id": 92, "type": "parameter_list", "text": "onst JulianDay t);\n", "parent": 90, "children": [93], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 55}}, {"id": 93, "type": "parameter_declaration", "text": "nst JulianDay t);", "parent": 92, "children": [94, 95], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 54}}, {"id": 94, "type": "type_qualifier", "text": "nst J", "parent": 93, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 42}}, {"id": 95, "type": "type_identifier", "text": "lianDay t", "parent": 93, "children": [], "start_point": {"row": 22, "column": 43}, "end_point": {"row": 22, "column": 52}}, {"id": 96, "type": "declaration", "text": "atic long double atmosphericRefraction(const long double altitude);\n\n", "parent": 12, "children": [97, 98, 101], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 73}}, {"id": 97, "type": "storage_class_specifier", "text": "atic l", "parent": 96, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 10}}, {"id": 98, "type": "sized_type_specifier", "text": "ng double a", "parent": 96, "children": [99, 100], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 22}}, {"id": 99, "type": "long", "text": "ng d", "parent": 98, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 15}}, {"id": 100, "type": "primitive_type", "text": "uble a", "parent": 98, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 22}}, {"id": 101, "type": "function_declarator", "text": "mosphericRefraction(const long double altitude);\n", "parent": 96, "children": [102, 103], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 72}}, {"id": 102, "type": "identifier", "text": "mosphericRefraction(c", "parent": 101, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 44}}, {"id": 103, "type": "parameter_list", "text": "onst long double altitude);\n", "parent": 101, "children": [104], "start_point": {"row": 24, "column": 44}, "end_point": {"row": 24, "column": 72}}, {"id": 104, "type": "parameter_declaration", "text": "nst long double altitude);", "parent": 103, "children": [105, 106, 109], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 71}}, {"id": 105, "type": "type_qualifier", "text": "nst l", "parent": 104, "children": [], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 50}}, {"id": 106, "type": "sized_type_specifier", "text": "ng double a", "parent": 104, "children": [107, 108], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 62}}, {"id": 107, "type": "long", "text": "ng d", "parent": 106, "children": [], "start_point": {"row": 24, "column": 51}, "end_point": {"row": 24, "column": 55}}, {"id": 108, "type": "primitive_type", "text": "uble a", "parent": 106, "children": [], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 62}}, {"id": 109, "type": "identifier", "text": "titude);", "parent": 104, "children": [], "start_point": {"row": 24, "column": 63}, "end_point": {"row": 24, "column": 71}}, {"id": 110, "type": "declaration", "text": "atic long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n", "parent": 12, "children": [111, 112, 115, 131], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 28, "column": 48}}, {"id": 111, "type": "storage_class_specifier", "text": "atic l", "parent": 110, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 10}}, {"id": 112, "type": "sized_type_specifier", "text": "ng double v", "parent": 110, "children": [113, 114], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 22}}, {"id": 113, "type": "long", "text": "ng d", "parent": 112, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 15}}, {"id": 114, "type": "primitive_type", "text": "uble v", "parent": 112, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 22}}, {"id": 115, "type": "init_declarator", "text": "ewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);", "parent": 110, "children": [116, 129, 130], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 28, "column": 46}}, {"id": 116, "type": "function_declarator", "text": "ewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected =", "parent": 115, "children": [117, 118], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 28, "column": 38}}, {"id": 117, "type": "identifier", "text": "ewDistanceWithinAtmosphere(\n", "parent": 116, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 51}}, {"id": 118, "type": "parameter_list", "text": " const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected =", "parent": 116, "children": [119, 125], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 28, "column": 38}}, {"id": 119, "type": "parameter_declaration", "text": "nst long double y /", "parent": 118, "children": [120, 121, 124], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 27}}, {"id": 120, "type": "type_qualifier", "text": "nst l", "parent": 119, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 13}}, {"id": 121, "type": "sized_type_specifier", "text": "ng double y", "parent": 119, "children": [122, 123], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 25}}, {"id": 122, "type": "long", "text": "ng d", "parent": 121, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 18}}, {"id": 123, "type": "primitive_type", "text": "uble y", "parent": 121, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 25}}, {"id": 124, "type": "identifier", "text": "/", "parent": 119, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 27}}, {"id": 125, "type": "parameter_declaration", "text": "nst bool refractionCorrected =", "parent": 118, "children": [126, 127, 128], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 38}}, {"id": 126, "type": "type_qualifier", "text": "nst b", "parent": 125, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 13}}, {"id": 127, "type": "primitive_type", "text": "ol r", "parent": 125, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 18}}, {"id": 128, "type": "identifier", "text": "fractionCorrected =", "parent": 125, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 38}}, {"id": 129, "type": "=", "text": "f", "parent": 115, "children": [], "start_point": {"row": 28, "column": 39}, "end_point": {"row": 28, "column": 40}}, {"id": 130, "type": "false", "text": "lse);", "parent": 115, "children": [], "start_point": {"row": 28, "column": 41}, "end_point": {"row": 28, "column": 46}}, {"id": 131, "type": "ERROR", "text": "\n", "parent": 110, "children": [], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 47}}, {"id": 132, "type": "declaration", "text": "atic long double meanRadius();\n ", "parent": 12, "children": [133, 134, 137], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 36}}, {"id": 133, "type": "storage_class_specifier", "text": "atic l", "parent": 132, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 10}}, {"id": 134, "type": "sized_type_specifier", "text": "ng double m", "parent": 132, "children": [135, 136], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 22}}, {"id": 135, "type": "long", "text": "ng d", "parent": 134, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 15}}, {"id": 136, "type": "primitive_type", "text": "uble m", "parent": 134, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 22}}, {"id": 137, "type": "function_declarator", "text": "anRadius();\n", "parent": 132, "children": [138], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 35}}, {"id": 138, "type": "identifier", "text": "anRadius()", "parent": 137, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 33}}, {"id": 139, "type": "declaration", "text": "atic long double atmosphereThickness(); /", "parent": 12, "children": [140, 141, 144], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 45}}, {"id": 140, "type": "storage_class_specifier", "text": "atic l", "parent": 139, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 141, "type": "sized_type_specifier", "text": "ng double a", "parent": 139, "children": [142, 143], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 22}}, {"id": 142, "type": "long", "text": "ng d", "parent": 141, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 15}}, {"id": 143, "type": "primitive_type", "text": "uble a", "parent": 141, "children": [], "start_point": {"row": 31, "column": 16}, "end_point": {"row": 31, "column": 22}}, {"id": 144, "type": "function_declarator", "text": "mosphereThickness(); ", "parent": 139, "children": [145], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 44}}, {"id": 145, "type": "identifier", "text": "mosphereThickness()", "parent": 144, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 42}}, {"id": 146, "type": "declaration", "text": "atic long double atmosphereThicknessNonUniform();\n\n", "parent": 12, "children": [147, 148, 151], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 55}}, {"id": 147, "type": "storage_class_specifier", "text": "atic l", "parent": 146, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 10}}, {"id": 148, "type": "sized_type_specifier", "text": "ng double a", "parent": 146, "children": [149, 150], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 22}}, {"id": 149, "type": "long", "text": "ng d", "parent": 148, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 15}}, {"id": 150, "type": "primitive_type", "text": "uble a", "parent": 148, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 22}}, {"id": 151, "type": "function_declarator", "text": "mosphereThicknessNonUniform();\n", "parent": 146, "children": [152], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 54}}, {"id": 152, "type": "identifier", "text": "mosphereThicknessNonUniform()", "parent": 151, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 52}}, {"id": 153, "type": "declaration", "text": "atic long double apparentMagnitudeLimit();\n}", "parent": 12, "children": [154, 155, 158], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 48}}, {"id": 154, "type": "storage_class_specifier", "text": "atic l", "parent": 153, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 155, "type": "sized_type_specifier", "text": "ng double a", "parent": 153, "children": [156, 157], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 22}}, {"id": 156, "type": "long", "text": "ng d", "parent": 155, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 15}}, {"id": 157, "type": "primitive_type", "text": "uble a", "parent": 155, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 22}}, {"id": 158, "type": "function_declarator", "text": "parentMagnitudeLimit();\n", "parent": 153, "children": [159], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 47}}, {"id": 159, "type": "identifier", "text": "parentMagnitudeLimit()", "parent": 158, "children": [], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 45}}]}, "node_categories": {"declarations": {"functions": [9, 12, 24, 35, 46, 57, 68, 79, 90, 101, 116, 137, 144, 151, 158], "variables": [19, 27, 30, 38, 41, 49, 52, 60, 63, 71, 74, 82, 85, 93, 96, 104, 110, 119, 125, 132, 139, 146, 153], "classes": [20, 31, 42, 53, 64, 75, 86, 97, 111, 133, 140, 147, 154], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 14, 16, 18, 21, 25, 28, 29, 32, 36, 39, 40, 43, 47, 50, 51, 54, 58, 61, 62, 65, 69, 72, 73, 76, 80, 83, 84, 87, 91, 94, 95, 98, 102, 105, 106, 109, 112, 117, 120, 121, 124, 126, 128, 134, 138, 141, 145, 148, 152, 155, 159], "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": "GLHIMMEL_COMPUTED_API", "text_snippet": "mespace glHimmel\n{\n\nclass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentr"}, {"node_id": 12, "universal_type": "function", "name": "refractionCorrected", "text_snippet": "ass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentricity(const JulianDay "}, {"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "bitEccentricity(const JulianDay t);\n"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "parentAngularSunDiameter(const JulianDay t);\n"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "parentAngularMoonDiameter(const JulianDay t);\n"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "ngitudeNutation(const JulianDay t);\n"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "liquityNutation(const JulianDay t);\n"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "anObliquity(const JulianDay t);\n"}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "ueObliquity(const JulianDay t);\n"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "mosphericRefraction(const long double altitude);\n"}, {"node_id": 116, "universal_type": "function", "name": "refractionCorrected", "text_snippet": "ewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on"}, {"node_id": 137, "universal_type": "function", "name": "unknown", "text_snippet": "anRadius();\n"}, {"node_id": 144, "universal_type": "function", "name": "unknown", "text_snippet": "mosphereThickness(); "}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "mosphereThicknessNonUniform();\n"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "parentMagnitudeLimit();\n"}], "class_declarations": [{"node_id": 20, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 31, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 42, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 53, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 64, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 75, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 86, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 97, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 111, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 133, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 140, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 147, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}, {"node_id": 154, "universal_type": "class", "name": "unknown", "text_snippet": "atic l"}], "import_statements": [{"node_id": 3, "text": "nclude <glhimmel-computed/glhimmel-computed_api.h>\n#i"}, {"node_id": 4, "text": "nclude <"}, {"node_id": 6, "text": "nclude <glhimmel-base/julianday.h>\n\n\n"}, {"node_id": 7, "text": "nclude <"}]}, "original_source_code": "\ufeff#pragma once\n\n#include <glhimmel-computed/glhimmel-computed_api.h>\n#include <glhimmel-base/julianday.h>\n\n\nnamespace glHimmel\n{\n\nclass GLHIMMEL_COMPUTED_API Earth\n{\npublic:\n\n static long double orbitEccentricity(const JulianDay t);\n\n static long double apparentAngularSunDiameter(const JulianDay t);\n static long double apparentAngularMoonDiameter(const JulianDay t);\n\n static long double longitudeNutation(const JulianDay t);\n static long double obliquityNutation(const JulianDay t);\n\n static long double meanObliquity(const JulianDay t);\n static long double trueObliquity(const JulianDay t);\n\n static long double atmosphericRefraction(const long double altitude);\n\n static long double viewDistanceWithinAtmosphere(\n const long double y /* height component of the view direction on ground into the sky */\n , const bool refractionCorrected = false);\n\n static long double meanRadius();\n static long double atmosphereThickness(); // if its density were uniform...\n static long double atmosphereThicknessNonUniform();\n\n static long double apparentMagnitudeLimit();\n};\n\n} // namespace glHimmel\n"}
80,305
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <SAObjects/SABaseCommand.h> #import "SAIntentGroupSetMapLocation.h" #import "SAServerBoundCommand.h" @class NSNumber, NSString, SAIntentGroupProtobufMessage; @interface SAIntentGroupUpdateIntentSlot : SABaseCommand <SAServerBoundCommand, SAIntentGroupSetMapLocation> { } + (id)updateIntentSlotWithDictionary:(id)arg1 context:(id)arg2; + (id)updateIntentSlot; - (BOOL)requiresResponse; @property(retain, nonatomic) SAIntentGroupProtobufMessage *location; @property(copy, nonatomic) NSString *jsonEncodedIntentSlotResolutionResult; @property(copy, nonatomic) NSString *intentTypeName; @property(copy, nonatomic) NSNumber *intentSlotValueIndex; @property(retain, nonatomic) SAIntentGroupProtobufMessage *intentSlotResolutionResult; @property(copy, nonatomic) NSString *intentSlotKeyPath; - (id)encodedClassName; - (id)groupIdentifier; // Remaining properties @property(copy, nonatomic) NSString *aceId; // @dynamic aceId; @property(readonly, copy) NSString *debugDescription; @property(readonly, copy) NSString *description; @property(readonly) unsigned long long hash; @property(copy, nonatomic) NSString *refId; // @dynamic refId; @property(readonly) Class superclass; @end
41.35
31
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import <SAObjects/SABaseCommand.h>\n\n#import "SAIntentGroupSetMapLocation.h"\n#import "SAServerBoundCommand.h"\n\n@class NSNumber, NSString, SAIntentGroupProtobufMessage;\n\n@interface SAIntentGroupUpdateIntentSlot : SABaseCommand <SAServerBoundCommand, SAIntentGroupSetMapLocation>\n{\n}\n\n+ (id)updateIntentSlotWithDictionary:(id)arg1 context:(id)arg2;\n+ (id)updateIntentSlot;\n- (BOOL)requiresResponse;\n@property(retain, nonatomic) SAIntentGroupProtobufMessage *location;\n@property(copy, nonatomic) NSString *jsonEncodedIntentSlotResolutionResult;\n@property(copy, nonatomic) NSString *intentTypeName;\n@property(copy, nonatomic) NSNumber *intentSlotValueIndex;\n@property(retain, nonatomic) SAIntentGroupProtobufMessage *intentSlotResolutionResult;\n@property(copy, nonatomic) NSString *intentSlotKeyPath;\n- (id)encodedClassName;\n- (id)groupIdentifier;\n\n// Remaining properties\n@property(copy, nonatomic) NSString *aceId; // @dynamic aceId;\n@property(readonly, copy) NSString *debugDescription;\n@property(readonly, copy) NSString *description;\n@property(readonly) unsigned long long hash;\n@property(copy, nonatomic) NSString *refId; // @dynamic refId;\n@property(readonly) Class superclass;\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 <SAObjects/SABaseCommand.h>\n" (preproc_directive) "#import" (preproc_arg) "<SAObjects/SABaseCommand.h>" (preproc_call) "#import "SAIntentGroupSetMapLocation.h"\n" (preproc_directive) "#import" (preproc_arg) ""SAIntentGroupSetMapLocation.h"" (preproc_call) "#import "SAServerBoundCommand.h"\n" (preproc_directive) "#import" (preproc_arg) ""SAServerBoundCommand.h"" (ERROR) "@" (ERROR) "@" (declaration) "class NSNumber, NSString, SAIntentGroupProtobufMessage;" (type_identifier) "class" (identifier) "NSNumber" (,) "," (identifier) "NSString" (,) "," (identifier) "SAIntentGroupProtobufMessage" (;) ";" (ERROR) "@interface SAIntentGroupUpdateIntentSlot : SABaseCommand <SAServerBoundCommand, SAIntentGroupSetMapLocation>" (ERROR) "@" (type_identifier) "interface" (identifier) "SAIntentGroupUpdateIntentSlot" (ERROR) ": SABaseCommand <SAServerBoundCommand" (:) ":" (identifier) "SABaseCommand" (<) "<" (identifier) "SAServerBoundCommand" (,) "," (identifier) "SAIntentGroupSetMapLocation" (>) ">" (compound_statement) "{\n}" ({) "{" (}) "}" (ERROR) "+ (id)updateIntentSlotWithDictionary:(id)" (unary_expression) "+ (id)updateIntentSlotWithDictionary" (+) "+" (cast_expression) "(id)updateIntentSlotWithDictionary" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "updateIntentSlotWithDictionary" (:) ":" (() "(" (identifier) "id" ()) ")" (declaration) "arg1 context:(id)arg2;" (type_identifier) "arg1" (identifier) "context" (ERROR) ":(id)arg2" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (;) ";" (expression_statement) "+ (id)updateIntentSlot;" (unary_expression) "+ (id)updateIntentSlot" (+) "+" (cast_expression) "(id)updateIntentSlot" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "updateIntentSlot" (;) ";" (expression_statement) "- (BOOL)requiresResponse;" (unary_expression) "- (BOOL)requiresResponse" (-) "-" (cast_expression) "(BOOL)requiresResponse" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "requiresResponse" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(retain, nonatomic)" (call_expression) "property(retain, nonatomic)" (identifier) "property" (argument_list) "(retain, nonatomic)" (() "(" (identifier) "retain" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "SAIntentGroupProtobufMessage *location;" (type_identifier) "SAIntentGroupProtobufMessage" (pointer_declarator) "*location" (*) "*" (identifier) "location" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(copy, nonatomic)" (call_expression) "property(copy, nonatomic)" (identifier) "property" (argument_list) "(copy, nonatomic)" (() "(" (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *jsonEncodedIntentSlotResolutionResult;" (type_identifier) "NSString" (pointer_declarator) "*jsonEncodedIntentSlotResolutionResult" (*) "*" (identifier) "jsonEncodedIntentSlotResolutionResult" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(copy, nonatomic)" (call_expression) "property(copy, nonatomic)" (identifier) "property" (argument_list) "(copy, nonatomic)" (() "(" (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *intentTypeName;" (type_identifier) "NSString" (pointer_declarator) "*intentTypeName" (*) "*" (identifier) "intentTypeName" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(copy, nonatomic)" (call_expression) "property(copy, nonatomic)" (identifier) "property" (argument_list) "(copy, nonatomic)" (() "(" (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSNumber *intentSlotValueIndex;" (type_identifier) "NSNumber" (pointer_declarator) "*intentSlotValueIndex" (*) "*" (identifier) "intentSlotValueIndex" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(retain, nonatomic)" (call_expression) "property(retain, nonatomic)" (identifier) "property" (argument_list) "(retain, nonatomic)" (() "(" (identifier) "retain" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "SAIntentGroupProtobufMessage *intentSlotResolutionResult;" (type_identifier) "SAIntentGroupProtobufMessage" (pointer_declarator) "*intentSlotResolutionResult" (*) "*" (identifier) "intentSlotResolutionResult" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(copy, nonatomic)" (call_expression) "property(copy, nonatomic)" (identifier) "property" (argument_list) "(copy, nonatomic)" (() "(" (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *intentSlotKeyPath;" (type_identifier) "NSString" (pointer_declarator) "*intentSlotKeyPath" (*) "*" (identifier) "intentSlotKeyPath" (;) ";" (expression_statement) "- (id)encodedClassName;" (unary_expression) "- (id)encodedClassName" (-) "-" (cast_expression) "(id)encodedClassName" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "encodedClassName" (;) ";" (expression_statement) "- (id)groupIdentifier;" (unary_expression) "- (id)groupIdentifier" (-) "-" (cast_expression) "(id)groupIdentifier" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "groupIdentifier" (;) ";" (comment) "// Remaining properties" (ERROR) "@" (ERROR) "@" (expression_statement) "property(copy, nonatomic)" (call_expression) "property(copy, nonatomic)" (identifier) "property" (argument_list) "(copy, nonatomic)" (() "(" (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *aceId;" (type_identifier) "NSString" (pointer_declarator) "*aceId" (*) "*" (identifier) "aceId" (;) ";" (comment) "// @dynamic aceId;" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, copy)" (call_expression) "property(readonly, copy)" (identifier) "property" (argument_list) "(readonly, copy)" (() "(" (identifier) "readonly" (,) "," (identifier) "copy" ()) ")" (;) "" (declaration) "NSString *debugDescription;" (type_identifier) "NSString" (pointer_declarator) "*debugDescription" (*) "*" (identifier) "debugDescription" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(readonly, copy)" (call_expression) "property(readonly, copy)" (identifier) "property" (argument_list) "(readonly, copy)" (() "(" (identifier) "readonly" (,) "," (identifier) "copy" ()) ")" (;) "" (declaration) "NSString *description;" (type_identifier) "NSString" (pointer_declarator) "*description" (*) "*" (identifier) "description" (;) ";" (ERROR) "@property(readonly) unsigned long" (ERROR) "@" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (identifier) "unsigned" (identifier) "long" (declaration) "long hash;" (sized_type_specifier) "long" (long) "long" (identifier) "hash" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property(copy, nonatomic)" (call_expression) "property(copy, nonatomic)" (identifier) "property" (argument_list) "(copy, nonatomic)" (() "(" (identifier) "copy" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString *refId;" (type_identifier) "NSString" (pointer_declarator) "*refId" (*) "*" (identifier) "refId" (;) ";" (comment) "// @dynamic refId;" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) Class superclass;" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "Class" (identifier) "Class" (identifier) "superclass" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
319
34
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 41.35, "nodes": 207, "errors": 0, "source_hash": "f290d51d6240d564a40a5801e6261bf8eede70fa6c57e5f6d78a8901835e9e83", "categorized_nodes": 122}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <SAObjects/SABaseCommand.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": "<SAObjects/SABaseCommand.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 35}}, {"id": 3, "type": "preproc_call", "text": "#import \"SAIntentGroupSetMapLocation.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "#import", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "\"SAIntentGroupSetMapLocation.h\"", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 39}}, {"id": 6, "type": "preproc_call", "text": "#import \"SAServerBoundCommand.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#import", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "\"SAServerBoundCommand.h\"", "parent": 6, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 32}}, {"id": 9, "type": "ERROR", "text": "@", "parent": null, "children": [10], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 10, "type": "ERROR", "text": "@", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 1}}, {"id": 11, "type": "declaration", "text": "class NSNumber, NSString, SAIntentGroupProtobufMessage;", "parent": null, "children": [12, 13, 14], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 56}}, {"id": 12, "type": "identifier", "text": "NSNumber", "parent": 11, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 15}}, {"id": 13, "type": "identifier", "text": "NSString", "parent": 11, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 25}}, {"id": 14, "type": "identifier", "text": "SAIntentGroupProtobufMessage", "parent": 11, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 55}}, {"id": 15, "type": "ERROR", "text": "@interface SAIntentGroupUpdateIntentSlot : SABaseCommand <SAServerBoundCommand, SAIntentGroupSetMapLocation>", "parent": null, "children": [16, 17, 18, 19, 23, 24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 108}}, {"id": 16, "type": "ERROR", "text": "@", "parent": 15, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 17, "type": "type_identifier", "text": "interface", "parent": 15, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 18, "type": "identifier", "text": "SAIntentGroupUpdateIntentSlot", "parent": 15, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 40}}, {"id": 19, "type": "ERROR", "text": ": SABaseCommand <SAServerBoundCommand", "parent": 15, "children": [20, 21, 22], "start_point": {"row": 13, "column": 41}, "end_point": {"row": 13, "column": 78}}, {"id": 20, "type": "identifier", "text": "SABaseCommand", "parent": 19, "children": [], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 56}}, {"id": 21, "type": "<", "text": "<", "parent": 19, "children": [], "start_point": {"row": 13, "column": 57}, "end_point": {"row": 13, "column": 58}}, {"id": 22, "type": "identifier", "text": "SAServerBoundCommand", "parent": 19, "children": [], "start_point": {"row": 13, "column": 58}, "end_point": {"row": 13, "column": 78}}, {"id": 23, "type": "identifier", "text": "SAIntentGroupSetMapLocation", "parent": 15, "children": [], "start_point": {"row": 13, "column": 80}, "end_point": {"row": 13, "column": 107}}, {"id": 24, "type": ">", "text": ">", "parent": 15, "children": [], "start_point": {"row": 13, "column": 107}, "end_point": {"row": 13, "column": 108}}, {"id": 25, "type": "ERROR", "text": "+ (id)updateIntentSlotWithDictionary:(id)", "parent": null, "children": [26, 32], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 41}}, {"id": 26, "type": "unary_expression", "text": "+ (id)updateIntentSlotWithDictionary", "parent": 25, "children": [27, 28], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 36}}, {"id": 27, "type": "+", "text": "+", "parent": 26, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 28, "type": "cast_expression", "text": "(id)updateIntentSlotWithDictionary", "parent": 26, "children": [29, 31], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 36}}, {"id": 29, "type": "type_descriptor", "text": "id", "parent": 28, "children": [30], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 30, "type": "type_identifier", "text": "id", "parent": 29, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 5}}, {"id": 31, "type": "identifier", "text": "updateIntentSlotWithDictionary", "parent": 28, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 36}}, {"id": 32, "type": "identifier", "text": "id", "parent": 25, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 40}}, {"id": 33, "type": "declaration", "text": "arg1 context:(id)arg2;", "parent": null, "children": [34, 35, 36], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 63}}, {"id": 34, "type": "type_identifier", "text": "arg1", "parent": 33, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 45}}, {"id": 35, "type": "identifier", "text": "context", "parent": 33, "children": [], "start_point": {"row": 17, "column": 46}, "end_point": {"row": 17, "column": 53}}, {"id": 36, "type": "ERROR", "text": ":(id)arg2", "parent": 33, "children": [37, 38], "start_point": {"row": 17, "column": 53}, "end_point": {"row": 17, "column": 62}}, {"id": 37, "type": "identifier", "text": "id", "parent": 36, "children": [], "start_point": {"row": 17, "column": 55}, "end_point": {"row": 17, "column": 57}}, {"id": 38, "type": "identifier", "text": "arg2", "parent": 36, "children": [], "start_point": {"row": 17, "column": 58}, "end_point": {"row": 17, "column": 62}}, {"id": 39, "type": "unary_expression", "text": "+ (id)updateIntentSlot", "parent": null, "children": [40, 41], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 22}}, {"id": 40, "type": "+", "text": "+", "parent": 39, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 41, "type": "cast_expression", "text": "(id)updateIntentSlot", "parent": 39, "children": [42, 44], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 22}}, {"id": 42, "type": "type_descriptor", "text": "id", "parent": 41, "children": [43], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 43, "type": "type_identifier", "text": "id", "parent": 42, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 44, "type": "identifier", "text": "updateIntentSlot", "parent": 41, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 22}}, {"id": 45, "type": "unary_expression", "text": "- (BOOL)requiresResponse", "parent": null, "children": [46, 47], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 24}}, {"id": 46, "type": "-", "text": "-", "parent": 45, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 47, "type": "cast_expression", "text": "(BOOL)requiresResponse", "parent": 45, "children": [48, 50], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 24}}, {"id": 48, "type": "type_descriptor", "text": "BOOL", "parent": 47, "children": [49], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 49, "type": "type_identifier", "text": "BOOL", "parent": 48, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 50, "type": "identifier", "text": "requiresResponse", "parent": 47, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 24}}, {"id": 51, "type": "ERROR", "text": "@", "parent": null, "children": [52], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 52, "type": "ERROR", "text": "@", "parent": 51, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 53, "type": "call_expression", "text": "property(retain, nonatomic)", "parent": null, "children": [54, 55], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 28}}, {"id": 54, "type": "identifier", "text": "property", "parent": 53, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 9}}, {"id": 55, "type": "argument_list", "text": "(retain, nonatomic)", "parent": 53, "children": [56, 57], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 28}}, {"id": 56, "type": "identifier", "text": "retain", "parent": 55, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 16}}, {"id": 57, "type": "identifier", "text": "nonatomic", "parent": 55, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 27}}, {"id": 58, "type": "declaration", "text": "SAIntentGroupProtobufMessage *location;", "parent": null, "children": [59, 60], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 68}}, {"id": 59, "type": "type_identifier", "text": "SAIntentGroupProtobufMessage", "parent": 58, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 57}}, {"id": 60, "type": "pointer_declarator", "text": "*location", "parent": 58, "children": [61, 62], "start_point": {"row": 20, "column": 58}, "end_point": {"row": 20, "column": 67}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 20, "column": 58}, "end_point": {"row": 20, "column": 59}}, {"id": 62, "type": "identifier", "text": "location", "parent": 60, "children": [], "start_point": {"row": 20, "column": 59}, "end_point": {"row": 20, "column": 67}}, {"id": 63, "type": "ERROR", "text": "@", "parent": null, "children": [64], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 64, "type": "ERROR", "text": "@", "parent": 63, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 65, "type": "call_expression", "text": "property(copy, nonatomic)", "parent": null, "children": [66, 67], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 26}}, {"id": 66, "type": "identifier", "text": "property", "parent": 65, "children": [], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 9}}, {"id": 67, "type": "argument_list", "text": "(copy, nonatomic)", "parent": 65, "children": [68, 69], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 26}}, {"id": 68, "type": "identifier", "text": "copy", "parent": 67, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 14}}, {"id": 69, "type": "identifier", "text": "nonatomic", "parent": 67, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 25}}, {"id": 70, "type": "declaration", "text": "NSString *jsonEncodedIntentSlotResolutionResult;", "parent": null, "children": [71, 72], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 75}}, {"id": 71, "type": "type_identifier", "text": "NSString", "parent": 70, "children": [], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 35}}, {"id": 72, "type": "pointer_declarator", "text": "*jsonEncodedIntentSlotResolutionResult", "parent": 70, "children": [73, 74], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 74}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 37}}, {"id": 74, "type": "identifier", "text": "jsonEncodedIntentSlotResolutionResult", "parent": 72, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 74}}, {"id": 75, "type": "ERROR", "text": "@", "parent": null, "children": [76], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 76, "type": "ERROR", "text": "@", "parent": 75, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 1}}, {"id": 77, "type": "call_expression", "text": "property(copy, nonatomic)", "parent": null, "children": [78, 79], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 26}}, {"id": 78, "type": "identifier", "text": "property", "parent": 77, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 9}}, {"id": 79, "type": "argument_list", "text": "(copy, nonatomic)", "parent": 77, "children": [80, 81], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 26}}, {"id": 80, "type": "identifier", "text": "copy", "parent": 79, "children": [], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 14}}, {"id": 81, "type": "identifier", "text": "nonatomic", "parent": 79, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 25}}, {"id": 82, "type": "declaration", "text": "NSString *intentTypeName;", "parent": null, "children": [83, 84], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 52}}, {"id": 83, "type": "type_identifier", "text": "NSString", "parent": 82, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 22, "column": 35}}, {"id": 84, "type": "pointer_declarator", "text": "*intentTypeName", "parent": 82, "children": [85, 86], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 51}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 22, "column": 36}, "end_point": {"row": 22, "column": 37}}, {"id": 86, "type": "identifier", "text": "intentTypeName", "parent": 84, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 51}}, {"id": 87, "type": "ERROR", "text": "@", "parent": null, "children": [88], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 88, "type": "ERROR", "text": "@", "parent": 87, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 89, "type": "call_expression", "text": "property(copy, nonatomic)", "parent": null, "children": [90, 91], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 26}}, {"id": 90, "type": "identifier", "text": "property", "parent": 89, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 91, "type": "argument_list", "text": "(copy, nonatomic)", "parent": 89, "children": [92, 93], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 26}}, {"id": 92, "type": "identifier", "text": "copy", "parent": 91, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 14}}, {"id": 93, "type": "identifier", "text": "nonatomic", "parent": 91, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 25}}, {"id": 94, "type": "declaration", "text": "NSNumber *intentSlotValueIndex;", "parent": null, "children": [95, 96], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 58}}, {"id": 95, "type": "type_identifier", "text": "NSNumber", "parent": 94, "children": [], "start_point": {"row": 23, "column": 27}, "end_point": {"row": 23, "column": 35}}, {"id": 96, "type": "pointer_declarator", "text": "*intentSlotValueIndex", "parent": 94, "children": [97, 98], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 57}}, {"id": 97, "type": "*", "text": "*", "parent": 96, "children": [], "start_point": {"row": 23, "column": 36}, "end_point": {"row": 23, "column": 37}}, {"id": 98, "type": "identifier", "text": "intentSlotValueIndex", "parent": 96, "children": [], "start_point": {"row": 23, "column": 37}, "end_point": {"row": 23, "column": 57}}, {"id": 99, "type": "ERROR", "text": "@", "parent": null, "children": [100], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 100, "type": "ERROR", "text": "@", "parent": 99, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 101, "type": "call_expression", "text": "property(retain, nonatomic)", "parent": null, "children": [102, 103], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 28}}, {"id": 102, "type": "identifier", "text": "property", "parent": 101, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 103, "type": "argument_list", "text": "(retain, nonatomic)", "parent": 101, "children": [104, 105], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 28}}, {"id": 104, "type": "identifier", "text": "retain", "parent": 103, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 16}}, {"id": 105, "type": "identifier", "text": "nonatomic", "parent": 103, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 27}}, {"id": 106, "type": "declaration", "text": "SAIntentGroupProtobufMessage *intentSlotResolutionResult;", "parent": null, "children": [107, 108], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 86}}, {"id": 107, "type": "type_identifier", "text": "SAIntentGroupProtobufMessage", "parent": 106, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 57}}, {"id": 108, "type": "pointer_declarator", "text": "*intentSlotResolutionResult", "parent": 106, "children": [109, 110], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 85}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 24, "column": 58}, "end_point": {"row": 24, "column": 59}}, {"id": 110, "type": "identifier", "text": "intentSlotResolutionResult", "parent": 108, "children": [], "start_point": {"row": 24, "column": 59}, "end_point": {"row": 24, "column": 85}}, {"id": 111, "type": "ERROR", "text": "@", "parent": null, "children": [112], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 112, "type": "ERROR", "text": "@", "parent": 111, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 113, "type": "call_expression", "text": "property(copy, nonatomic)", "parent": null, "children": [114, 115], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 26}}, {"id": 114, "type": "identifier", "text": "property", "parent": 113, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 115, "type": "argument_list", "text": "(copy, nonatomic)", "parent": 113, "children": [116, 117], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 26}}, {"id": 116, "type": "identifier", "text": "copy", "parent": 115, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 14}}, {"id": 117, "type": "identifier", "text": "nonatomic", "parent": 115, "children": [], "start_point": {"row": 25, "column": 16}, "end_point": {"row": 25, "column": 25}}, {"id": 118, "type": "declaration", "text": "NSString *intentSlotKeyPath;", "parent": null, "children": [119, 120], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 55}}, {"id": 119, "type": "type_identifier", "text": "NSString", "parent": 118, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 35}}, {"id": 120, "type": "pointer_declarator", "text": "*intentSlotKeyPath", "parent": 118, "children": [121, 122], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 54}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 37}}, {"id": 122, "type": "identifier", "text": "intentSlotKeyPath", "parent": 120, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 54}}, {"id": 123, "type": "unary_expression", "text": "- (id)encodedClassName", "parent": null, "children": [124, 125], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 22}}, {"id": 124, "type": "-", "text": "-", "parent": 123, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 125, "type": "cast_expression", "text": "(id)encodedClassName", "parent": 123, "children": [126, 128], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 22}}, {"id": 126, "type": "type_descriptor", "text": "id", "parent": 125, "children": [127], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 127, "type": "type_identifier", "text": "id", "parent": 126, "children": [], "start_point": {"row": 26, "column": 3}, "end_point": {"row": 26, "column": 5}}, {"id": 128, "type": "identifier", "text": "encodedClassName", "parent": 125, "children": [], "start_point": {"row": 26, "column": 6}, "end_point": {"row": 26, "column": 22}}, {"id": 129, "type": "unary_expression", "text": "- (id)groupIdentifier", "parent": null, "children": [130, 131], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 21}}, {"id": 130, "type": "-", "text": "-", "parent": 129, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 131, "type": "cast_expression", "text": "(id)groupIdentifier", "parent": 129, "children": [132, 134], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 21}}, {"id": 132, "type": "type_descriptor", "text": "id", "parent": 131, "children": [133], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 133, "type": "type_identifier", "text": "id", "parent": 132, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 5}}, {"id": 134, "type": "identifier", "text": "groupIdentifier", "parent": 131, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 21}}, {"id": 135, "type": "ERROR", "text": "@", "parent": null, "children": [136], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 136, "type": "ERROR", "text": "@", "parent": 135, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 137, "type": "call_expression", "text": "property(copy, nonatomic)", "parent": null, "children": [138, 139], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 26}}, {"id": 138, "type": "identifier", "text": "property", "parent": 137, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 9}}, {"id": 139, "type": "argument_list", "text": "(copy, nonatomic)", "parent": 137, "children": [140, 141], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 26}}, {"id": 140, "type": "identifier", "text": "copy", "parent": 139, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 14}}, {"id": 141, "type": "identifier", "text": "nonatomic", "parent": 139, "children": [], "start_point": {"row": 30, "column": 16}, "end_point": {"row": 30, "column": 25}}, {"id": 142, "type": "declaration", "text": "NSString *aceId;", "parent": null, "children": [143, 144], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 43}}, {"id": 143, "type": "type_identifier", "text": "NSString", "parent": 142, "children": [], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 35}}, {"id": 144, "type": "pointer_declarator", "text": "*aceId", "parent": 142, "children": [145, 146], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 42}}, {"id": 145, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 37}}, {"id": 146, "type": "identifier", "text": "aceId", "parent": 144, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 42}}, {"id": 147, "type": "ERROR", "text": "@", "parent": null, "children": [148], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 148, "type": "ERROR", "text": "@", "parent": 147, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 149, "type": "call_expression", "text": "property(readonly, copy)", "parent": null, "children": [150, 151], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 25}}, {"id": 150, "type": "identifier", "text": "property", "parent": 149, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 9}}, {"id": 151, "type": "argument_list", "text": "(readonly, copy)", "parent": 149, "children": [152, 153], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 25}}, {"id": 152, "type": "identifier", "text": "readonly", "parent": 151, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 18}}, {"id": 153, "type": "identifier", "text": "copy", "parent": 151, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 24}}, {"id": 154, "type": "declaration", "text": "NSString *debugDescription;", "parent": null, "children": [155, 156], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 53}}, {"id": 155, "type": "type_identifier", "text": "NSString", "parent": 154, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 34}}, {"id": 156, "type": "pointer_declarator", "text": "*debugDescription", "parent": 154, "children": [157, 158], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 52}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 36}}, {"id": 158, "type": "identifier", "text": "debugDescription", "parent": 156, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 52}}, {"id": 159, "type": "ERROR", "text": "@", "parent": null, "children": [160], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 160, "type": "ERROR", "text": "@", "parent": 159, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 161, "type": "call_expression", "text": "property(readonly, copy)", "parent": null, "children": [162, 163], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 25}}, {"id": 162, "type": "identifier", "text": "property", "parent": 161, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 9}}, {"id": 163, "type": "argument_list", "text": "(readonly, copy)", "parent": 161, "children": [164, 165], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 25}}, {"id": 164, "type": "identifier", "text": "readonly", "parent": 163, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 18}}, {"id": 165, "type": "identifier", "text": "copy", "parent": 163, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 24}}, {"id": 166, "type": "declaration", "text": "NSString *description;", "parent": null, "children": [167, 168], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 48}}, {"id": 167, "type": "type_identifier", "text": "NSString", "parent": 166, "children": [], "start_point": {"row": 32, "column": 26}, "end_point": {"row": 32, "column": 34}}, {"id": 168, "type": "pointer_declarator", "text": "*description", "parent": 166, "children": [169, 170], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 47}}, {"id": 169, "type": "*", "text": "*", "parent": 168, "children": [], "start_point": {"row": 32, "column": 35}, "end_point": {"row": 32, "column": 36}}, {"id": 170, "type": "identifier", "text": "description", "parent": 168, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 47}}, {"id": 171, "type": "ERROR", "text": "@property(readonly) unsigned long", "parent": null, "children": [172, 173, 177, 178], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 33}}, {"id": 172, "type": "ERROR", "text": "@", "parent": 171, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 173, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 171, "children": [174, 175], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 19}}, {"id": 174, "type": "identifier", "text": "property", "parent": 173, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 175, "type": "type_descriptor", "text": "readonly", "parent": 173, "children": [176], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 18}}, {"id": 176, "type": "type_identifier", "text": "readonly", "parent": 175, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 18}}, {"id": 177, "type": "identifier", "text": "unsigned", "parent": 171, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 28}}, {"id": 178, "type": "identifier", "text": "long", "parent": 171, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 33}}, {"id": 179, "type": "declaration", "text": "long hash;", "parent": null, "children": [180, 182], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 44}}, {"id": 180, "type": "sized_type_specifier", "text": "long", "parent": 179, "children": [181], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 38}}, {"id": 181, "type": "long", "text": "long", "parent": 180, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 38}}, {"id": 182, "type": "identifier", "text": "hash", "parent": 179, "children": [], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 43}}, {"id": 183, "type": "ERROR", "text": "@", "parent": null, "children": [184], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 184, "type": "ERROR", "text": "@", "parent": 183, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 185, "type": "call_expression", "text": "property(copy, nonatomic)", "parent": null, "children": [186, 187], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 26}}, {"id": 186, "type": "identifier", "text": "property", "parent": 185, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 9}}, {"id": 187, "type": "argument_list", "text": "(copy, nonatomic)", "parent": 185, "children": [188, 189], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 26}}, {"id": 188, "type": "identifier", "text": "copy", "parent": 187, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 14}}, {"id": 189, "type": "identifier", "text": "nonatomic", "parent": 187, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 25}}, {"id": 190, "type": "declaration", "text": "NSString *refId;", "parent": null, "children": [191, 192], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 43}}, {"id": 191, "type": "type_identifier", "text": "NSString", "parent": 190, "children": [], "start_point": {"row": 34, "column": 27}, "end_point": {"row": 34, "column": 35}}, {"id": 192, "type": "pointer_declarator", "text": "*refId", "parent": 190, "children": [193, 194], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 42}}, {"id": 193, "type": "*", "text": "*", "parent": 192, "children": [], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 37}}, {"id": 194, "type": "identifier", "text": "refId", "parent": 192, "children": [], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 42}}, {"id": 195, "type": "ERROR", "text": "@", "parent": null, "children": [196], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 196, "type": "ERROR", "text": "@", "parent": 195, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 197, "type": "declaration", "text": "property(readonly) Class superclass;", "parent": null, "children": [198, 202, 204], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 37}}, {"id": 198, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 197, "children": [199, 200], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 19}}, {"id": 199, "type": "identifier", "text": "property", "parent": 198, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 200, "type": "type_descriptor", "text": "readonly", "parent": 198, "children": [201], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 18}}, {"id": 201, "type": "type_identifier", "text": "readonly", "parent": 200, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 18}}, {"id": 202, "type": "ERROR", "text": "Class", "parent": 197, "children": [203], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 25}}, {"id": 203, "type": "identifier", "text": "Class", "parent": 202, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 25}}, {"id": 204, "type": "identifier", "text": "superclass", "parent": 197, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 36}}, {"id": 205, "type": "ERROR", "text": "@", "parent": null, "children": [206], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 206, "type": "ERROR", "text": "@", "parent": 205, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [11, 33, 58, 70, 82, 94, 106, 118, 142, 154, 166, 179, 190, 197], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [26, 28, 39, 41, 45, 47, 53, 65, 77, 89, 101, 113, 123, 125, 129, 131, 137, 149, 161, 185], "assignments": [], "loops": [], "conditionals": [12, 13, 14, 17, 18, 20, 22, 23, 30, 31, 32, 34, 35, 37, 38, 43, 44, 49, 50, 54, 56, 57, 59, 62, 66, 68, 69, 71, 74, 78, 80, 81, 83, 86, 90, 92, 93, 95, 98, 102, 104, 105, 107, 110, 114, 116, 117, 119, 122, 127, 128, 133, 134, 138, 140, 141, 143, 146, 150, 152, 153, 155, 158, 162, 164, 165, 167, 170, 173, 174, 176, 177, 178, 180, 182, 186, 188, 189, 191, 194, 198, 199, 201, 203, 204], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3, 6], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "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 <SAObjects/SABaseCommand.h>\n\n#import \"SAIntentGroupSetMapLocation.h\"\n#import \"SAServerBoundCommand.h\"\n\n@class NSNumber, NSString, SAIntentGroupProtobufMessage;\n\n@interface SAIntentGroupUpdateIntentSlot : SABaseCommand <SAServerBoundCommand, SAIntentGroupSetMapLocation>\n{\n}\n\n+ (id)updateIntentSlotWithDictionary:(id)arg1 context:(id)arg2;\n+ (id)updateIntentSlot;\n- (BOOL)requiresResponse;\n@property(retain, nonatomic) SAIntentGroupProtobufMessage *location;\n@property(copy, nonatomic) NSString *jsonEncodedIntentSlotResolutionResult;\n@property(copy, nonatomic) NSString *intentTypeName;\n@property(copy, nonatomic) NSNumber *intentSlotValueIndex;\n@property(retain, nonatomic) SAIntentGroupProtobufMessage *intentSlotResolutionResult;\n@property(copy, nonatomic) NSString *intentSlotKeyPath;\n- (id)encodedClassName;\n- (id)groupIdentifier;\n\n// Remaining properties\n@property(copy, nonatomic) NSString *aceId; // @dynamic aceId;\n@property(readonly, copy) NSString *debugDescription;\n@property(readonly, copy) NSString *description;\n@property(readonly) unsigned long long hash;\n@property(copy, nonatomic) NSString *refId; // @dynamic refId;\n@property(readonly) Class superclass;\n\n@end\n\n"}
80,306
c
// // ABSecrect.h // ABFoundation // // Created by qp on 2021/3/18. // Copyright © 2021 abteam. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN typedef enum : NSUInteger { ABSecrectTypeAES, ABSecrectTypeRSA, ABSecrectTypeDES, } ABSecrectType; @interface ABSecrect : NSObject + (ABSecrect *)shared; /** Returns an encrypted NSData using AES. @param key A key length of 16, 24 or 32 (128, 192 or 256bits). @param iv An initialization vector length of 16(128bits). Pass nil when you don't want to use iv. @return An NSData encrypted, or nil if an error occurs. */ - (NSData *)decryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv; /** Returns an decrypted NSData using AES. @param key A key length of 16, 24 or 32 (128, 192 or 256bits). @param iv An initialization vector length of 16(128bits). Pass nil when you don't want to use iv. @return An NSData decrypted, or nil if an error occurs. */ - (NSData *)encryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv; - (NSString *)decryptAESDataString:(NSString *)string key:(NSString *)key iv:(NSString *)iv; @end NS_ASSUME_NONNULL_END
28.71
41
(translation_unit) "//\n// ABSecrect.h\n// ABFoundation\n//\n// Created by qp on 2021/3/18.\n// Copyright © 2021 abteam. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef enum : NSUInteger {\n ABSecrectTypeAES,\n ABSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;\n\n@interface ABSecrect : NSObject\n+ (ABSecrect *)shared;\n/**\n Returns an encrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData encrypted, or nil if an error occurs.\n */\n- (NSData *)decryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv;\n\n/**\n Returns an decrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData decrypted, or nil if an error occurs.\n */\n- (NSData *)encryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv;\n- (NSString *)decryptAESDataString:(NSString *)string key:(NSString *)key iv:(NSString *)iv;\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// ABSecrect.h" (comment) "// ABFoundation" (comment) "//" (comment) "// Created by qp on 2021/3/18." (comment) "// Copyright © 2021 abteam. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <Foundation/Foundation.h>\n\n" (preproc_directive) "import " (preproc_arg) "Foundation/Foundation.h>\n" (ERROR) "S_ASSUME_NONNULL_BEGIN\n\ntypedef enum : NSUInteger {\n ABSecrectTypeAES,\n ABSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;\n\n@interface ABSecrect : NSObject\n+ (ABSecrect *)shared;\n/**\n Returns an encrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData encrypted, or nil if an error occurs.\n */\n- (NSData *)decryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv;\n\n/**\n Returns an decrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData decrypted, or nil if an error occurs.\n */\n- (NSData *)encryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv;\n- (NSString *)decryptAESDataString:(NSString *)string key:(NSString *)key iv:(NSString *)iv;\n@end\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "S_ASSUME_NONNULL_BEGIN\n" (ERROR) "ypedef enum : " (identifier) "ypedef " (identifier) "num " (:) " " (identifier) "SUInteger " ({) "\n" (expression_statement) "BSecrectTypeAES,\n ABSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;\n" (comma_expression) "BSecrectTypeAES,\n ABSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;" (identifier) "BSecrectTypeAES," (,) "\n" (comma_expression) "BSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;" (identifier) "BSecrectTypeRSA," (,) "\n" (comma_expression) "BSecrectTypeDES,\n} ABSecrectType;" (identifier) "BSecrectTypeDES," (,) "\n" (ERROR) " " (}) " " (identifier) "BSecrectType;" (;) "\n" (ERROR) "interface ABSecrect : NSObject\n" (ERROR) "i" (type_identifier) "nterface " (identifier) "BSecrect " (:) " " (identifier) "SObject\n" (expression_statement) " (ABSecrect *)shared;\n" (unary_expression) " (ABSecrect *)shared;" (+) " " (cast_expression) "ABSecrect *)shared;" (() "A" (type_descriptor) "BSecrect *)" (type_identifier) "BSecrect " (abstract_pointer_declarator) ")" (*) ")" ()) "s" (identifier) "hared;" (;) "\n" (comment) "**\n Returns an encrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData encrypted, or nil if an error occurs.\n */\n" (expression_statement) " (NSData *)decryptAESData:(NSData *)data " (binary_expression) " (NSData *)decryptAESData:(NSData *)data " (unary_expression) " (NSData *)decryptAESData:" (-) " " (cast_expression) "NSData *)decryptAESData:" (() "N" (type_descriptor) "SData *)" (type_identifier) "SData " (abstract_pointer_declarator) ")" (*) ")" ()) "d" (identifier) "ecryptAESData:" (ERROR) "(NSData " (:) "(" (() "N" (identifier) "SData " (*) ")" (ERROR) "d" ()) "d" (identifier) "ata " (;) "" (labeled_statement) "ey:(NSData *)key " (statement_identifier) "ey:" (:) "(" (expression_statement) "NSData *)key " (cast_expression) "NSData *)key " (() "N" (type_descriptor) "SData *)" (type_identifier) "SData " (abstract_pointer_declarator) ")" (*) ")" ()) "k" (identifier) "ey " (;) "" (labeled_statement) "v:(NSData *)iv;\n" (statement_identifier) "v:" (:) "(" (expression_statement) "NSData *)iv;\n" (cast_expression) "NSData *)iv;" (() "N" (type_descriptor) "SData *)" (type_identifier) "SData " (abstract_pointer_declarator) ")" (*) ")" ()) "i" (identifier) "v;" (;) "\n" (comment) "**\n Returns an decrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData decrypted, or nil if an error occurs.\n */\n" (expression_statement) " (NSData *)encryptAESData:(NSData *)data " (binary_expression) " (NSData *)encryptAESData:(NSData *)data " (unary_expression) " (NSData *)encryptAESData:" (-) " " (cast_expression) "NSData *)encryptAESData:" (() "N" (type_descriptor) "SData *)" (type_identifier) "SData " (abstract_pointer_declarator) ")" (*) ")" ()) "e" (identifier) "ncryptAESData:" (ERROR) "(NSData " (:) "(" (() "N" (identifier) "SData " (*) ")" (ERROR) "d" ()) "d" (identifier) "ata " (;) "" (labeled_statement) "ey:(NSData *)key " (statement_identifier) "ey:" (:) "(" (expression_statement) "NSData *)key " (cast_expression) "NSData *)key " (() "N" (type_descriptor) "SData *)" (type_identifier) "SData " (abstract_pointer_declarator) ")" (*) ")" ()) "k" (identifier) "ey " (;) "" (labeled_statement) "v:(NSData *)iv;\n" (statement_identifier) "v:" (:) "(" (expression_statement) "NSData *)iv;\n" (cast_expression) "NSData *)iv;" (() "N" (type_descriptor) "SData *)" (type_identifier) "SData " (abstract_pointer_declarator) ")" (*) ")" ()) "i" (identifier) "v;" (;) "\n" (expression_statement) " (NSString *)decryptAESDataString:(NSString *)string " (binary_expression) " (NSString *)decryptAESDataString:(NSString *)string " (unary_expression) " (NSString *)decryptAESDataString:" (-) " " (cast_expression) "NSString *)decryptAESDataString:" (() "N" (type_descriptor) "SString *)" (type_identifier) "SString " (abstract_pointer_declarator) ")" (*) ")" ()) "d" (identifier) "ecryptAESDataString:" (ERROR) "(NSString " (:) "(" (() "N" (identifier) "SString " (*) ")" (ERROR) "s" ()) "s" (identifier) "tring " (;) "" (labeled_statement) "ey:(NSString *)key " (statement_identifier) "ey:" (:) "(" (expression_statement) "NSString *)key " (cast_expression) "NSString *)key " (() "N" (type_descriptor) "SString *)" (type_identifier) "SString " (abstract_pointer_declarator) ")" (*) ")" ()) "k" (identifier) "ey " (;) "" (labeled_statement) "v:(NSString *)iv;\n" (statement_identifier) "v:" (:) "(" (expression_statement) "NSString *)iv;\n" (cast_expression) "NSString *)iv;" (() "N" (type_descriptor) "SString *)" (type_identifier) "SString " (abstract_pointer_declarator) ")" (*) ")" ()) "i" (identifier) "v;" (;) "\n" (ERROR) "e" (ERROR) "e" (type_identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n"
198
13
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 28.71, "nodes": 100, "errors": 0, "source_hash": "18184764b24eb60ee641150e472722728899eabc12cf41d129ecf5e86ec06d0b", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <Foundation/Foundation.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "Foundation/Foundation.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 33}}, {"id": 2, "type": "ERROR", "text": "S_ASSUME_NONNULL_BEGIN\n\ntypedef enum : NSUInteger {\n ABSecrectTypeAES,\n ABSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;\n\n@interface ABSecrect : NSObject\n+ (ABSecrect *)shared;\n/**\n Returns an encrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData encrypted, or nil if an error occurs.\n */\n- (NSData *)decryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv;\n\n/**\n Returns an decrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData decrypted, or nil if an error occurs.\n */\n- (NSData *)encryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv;\n- (NSString *)decryptAESDataString:(NSString *)string key:(NSString *)key iv:(NSString *)iv;\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [3, 4, 7, 16, 38, 44, 61, 67, 84, 90, 96, 98, 99], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 46, "column": 21}}, {"id": 3, "type": "type_identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": 2, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 4, "type": "ERROR", "text": "ypedef enum : ", "parent": 2, "children": [5, 6], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 14}}, {"id": 5, "type": "identifier", "text": "ypedef ", "parent": 4, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 6, "type": "identifier", "text": "num ", "parent": 4, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 12}}, {"id": 7, "type": "identifier", "text": "SUInteger ", "parent": 2, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 25}}, {"id": 8, "type": "comma_expression", "text": "BSecrectTypeAES,\n ABSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;", "parent": 2, "children": [9, 10], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 16, "column": 15}}, {"id": 9, "type": "identifier", "text": "BSecrectTypeAES,", "parent": 8, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 20}}, {"id": 10, "type": "comma_expression", "text": "BSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;", "parent": 8, "children": [11, 12], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 16, "column": 15}}, {"id": 11, "type": "identifier", "text": "BSecrectTypeRSA,", "parent": 10, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 20}}, {"id": 12, "type": "comma_expression", "text": "BSecrectTypeDES,\n} ABSecrectType;", "parent": 10, "children": [13, 14, 15], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 16, "column": 15}}, {"id": 13, "type": "identifier", "text": "BSecrectTypeDES,", "parent": 12, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 20}}, {"id": 14, "type": "ERROR", "text": " ", "parent": 12, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 15, "type": "identifier", "text": "BSecrectType;", "parent": 12, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 15}}, {"id": 16, "type": "ERROR", "text": "interface ABSecrect : NSObject\n", "parent": 2, "children": [17, 18, 19, 20], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 31}}, {"id": 17, "type": "ERROR", "text": "i", "parent": 16, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 18, "type": "type_identifier", "text": "nterface ", "parent": 16, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 19, "type": "identifier", "text": "BSecrect ", "parent": 16, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 20}}, {"id": 20, "type": "identifier", "text": "SObject\n", "parent": 16, "children": [], "start_point": {"row": 18, "column": 23}, "end_point": {"row": 18, "column": 31}}, {"id": 21, "type": "unary_expression", "text": " (ABSecrect *)shared;", "parent": 2, "children": [22, 23], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 21}}, {"id": 22, "type": "+", "text": " ", "parent": 21, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 23, "type": "cast_expression", "text": "ABSecrect *)shared;", "parent": 21, "children": [24, 26], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 21}}, {"id": 24, "type": "type_descriptor", "text": "BSecrect *)", "parent": 23, "children": [25], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 14}}, {"id": 25, "type": "type_identifier", "text": "BSecrect ", "parent": 24, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 12}}, {"id": 26, "type": "identifier", "text": "hared;", "parent": 23, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 21}}, {"id": 27, "type": "binary_expression", "text": " (NSData *)decryptAESData:(NSData *)data ", "parent": 2, "children": [28, 34, 36, 37], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 41}}, {"id": 28, "type": "unary_expression", "text": " (NSData *)decryptAESData:", "parent": 27, "children": [29, 30], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 26}}, {"id": 29, "type": "-", "text": " ", "parent": 28, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 30, "type": "cast_expression", "text": "NSData *)decryptAESData:", "parent": 28, "children": [31, 33], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 26}}, {"id": 31, "type": "type_descriptor", "text": "SData *)", "parent": 30, "children": [32], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 11}}, {"id": 32, "type": "type_identifier", "text": "SData ", "parent": 31, "children": [], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 9}}, {"id": 33, "type": "identifier", "text": "ecryptAESData:", "parent": 30, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 26}}, {"id": 34, "type": "ERROR", "text": "(NSData ", "parent": 27, "children": [35], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 34}}, {"id": 35, "type": "identifier", "text": "SData ", "parent": 34, "children": [], "start_point": {"row": 30, "column": 28}, "end_point": {"row": 30, "column": 34}}, {"id": 36, "type": "ERROR", "text": "d", "parent": 27, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 37}}, {"id": 37, "type": "identifier", "text": "ata ", "parent": 27, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 41}}, {"id": 38, "type": "labeled_statement", "text": "ey:(NSData *)key ", "parent": 2, "children": [39], "start_point": {"row": 30, "column": 42}, "end_point": {"row": 30, "column": 59}}, {"id": 39, "type": "statement_identifier", "text": "ey:", "parent": 38, "children": [], "start_point": {"row": 30, "column": 42}, "end_point": {"row": 30, "column": 45}}, {"id": 40, "type": "cast_expression", "text": "NSData *)key ", "parent": 38, "children": [41, 43], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 30, "column": 59}}, {"id": 41, "type": "type_descriptor", "text": "SData *)", "parent": 40, "children": [42], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 55}}, {"id": 42, "type": "type_identifier", "text": "SData ", "parent": 41, "children": [], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 53}}, {"id": 43, "type": "identifier", "text": "ey ", "parent": 40, "children": [], "start_point": {"row": 30, "column": 56}, "end_point": {"row": 30, "column": 59}}, {"id": 44, "type": "labeled_statement", "text": "v:(NSData *)iv;\n", "parent": 2, "children": [45], "start_point": {"row": 30, "column": 60}, "end_point": {"row": 30, "column": 76}}, {"id": 45, "type": "statement_identifier", "text": "v:", "parent": 44, "children": [], "start_point": {"row": 30, "column": 60}, "end_point": {"row": 30, "column": 62}}, {"id": 46, "type": "cast_expression", "text": "NSData *)iv;", "parent": 44, "children": [47, 49], "start_point": {"row": 30, "column": 63}, "end_point": {"row": 30, "column": 75}}, {"id": 47, "type": "type_descriptor", "text": "SData *)", "parent": 46, "children": [48], "start_point": {"row": 30, "column": 64}, "end_point": {"row": 30, "column": 72}}, {"id": 48, "type": "type_identifier", "text": "SData ", "parent": 47, "children": [], "start_point": {"row": 30, "column": 64}, "end_point": {"row": 30, "column": 70}}, {"id": 49, "type": "identifier", "text": "v;", "parent": 46, "children": [], "start_point": {"row": 30, "column": 73}, "end_point": {"row": 30, "column": 75}}, {"id": 50, "type": "binary_expression", "text": " (NSData *)encryptAESData:(NSData *)data ", "parent": 2, "children": [51, 57, 59, 60], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 41}}, {"id": 51, "type": "unary_expression", "text": " (NSData *)encryptAESData:", "parent": 50, "children": [52, 53], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 26}}, {"id": 52, "type": "-", "text": " ", "parent": 51, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 53, "type": "cast_expression", "text": "NSData *)encryptAESData:", "parent": 51, "children": [54, 56], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 26}}, {"id": 54, "type": "type_descriptor", "text": "SData *)", "parent": 53, "children": [55], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 11}}, {"id": 55, "type": "type_identifier", "text": "SData ", "parent": 54, "children": [], "start_point": {"row": 42, "column": 3}, "end_point": {"row": 42, "column": 9}}, {"id": 56, "type": "identifier", "text": "ncryptAESData:", "parent": 53, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 26}}, {"id": 57, "type": "ERROR", "text": "(NSData ", "parent": 50, "children": [58], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 34}}, {"id": 58, "type": "identifier", "text": "SData ", "parent": 57, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 34}}, {"id": 59, "type": "ERROR", "text": "d", "parent": 50, "children": [], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 42, "column": 37}}, {"id": 60, "type": "identifier", "text": "ata ", "parent": 50, "children": [], "start_point": {"row": 42, "column": 37}, "end_point": {"row": 42, "column": 41}}, {"id": 61, "type": "labeled_statement", "text": "ey:(NSData *)key ", "parent": 2, "children": [62], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 59}}, {"id": 62, "type": "statement_identifier", "text": "ey:", "parent": 61, "children": [], "start_point": {"row": 42, "column": 42}, "end_point": {"row": 42, "column": 45}}, {"id": 63, "type": "cast_expression", "text": "NSData *)key ", "parent": 61, "children": [64, 66], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 59}}, {"id": 64, "type": "type_descriptor", "text": "SData *)", "parent": 63, "children": [65], "start_point": {"row": 42, "column": 47}, "end_point": {"row": 42, "column": 55}}, {"id": 65, "type": "type_identifier", "text": "SData ", "parent": 64, "children": [], "start_point": {"row": 42, "column": 47}, "end_point": {"row": 42, "column": 53}}, {"id": 66, "type": "identifier", "text": "ey ", "parent": 63, "children": [], "start_point": {"row": 42, "column": 56}, "end_point": {"row": 42, "column": 59}}, {"id": 67, "type": "labeled_statement", "text": "v:(NSData *)iv;\n", "parent": 2, "children": [68], "start_point": {"row": 42, "column": 60}, "end_point": {"row": 42, "column": 76}}, {"id": 68, "type": "statement_identifier", "text": "v:", "parent": 67, "children": [], "start_point": {"row": 42, "column": 60}, "end_point": {"row": 42, "column": 62}}, {"id": 69, "type": "cast_expression", "text": "NSData *)iv;", "parent": 67, "children": [70, 72], "start_point": {"row": 42, "column": 63}, "end_point": {"row": 42, "column": 75}}, {"id": 70, "type": "type_descriptor", "text": "SData *)", "parent": 69, "children": [71], "start_point": {"row": 42, "column": 64}, "end_point": {"row": 42, "column": 72}}, {"id": 71, "type": "type_identifier", "text": "SData ", "parent": 70, "children": [], "start_point": {"row": 42, "column": 64}, "end_point": {"row": 42, "column": 70}}, {"id": 72, "type": "identifier", "text": "v;", "parent": 69, "children": [], "start_point": {"row": 42, "column": 73}, "end_point": {"row": 42, "column": 75}}, {"id": 73, "type": "binary_expression", "text": " (NSString *)decryptAESDataString:(NSString *)string ", "parent": 2, "children": [74, 80, 82, 83], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 53}}, {"id": 74, "type": "unary_expression", "text": " (NSString *)decryptAESDataString:", "parent": 73, "children": [75, 76], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 34}}, {"id": 75, "type": "-", "text": " ", "parent": 74, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 76, "type": "cast_expression", "text": "NSString *)decryptAESDataString:", "parent": 74, "children": [77, 79], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 34}}, {"id": 77, "type": "type_descriptor", "text": "SString *)", "parent": 76, "children": [78], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 13}}, {"id": 78, "type": "type_identifier", "text": "SString ", "parent": 77, "children": [], "start_point": {"row": 43, "column": 3}, "end_point": {"row": 43, "column": 11}}, {"id": 79, "type": "identifier", "text": "ecryptAESDataString:", "parent": 76, "children": [], "start_point": {"row": 43, "column": 14}, "end_point": {"row": 43, "column": 34}}, {"id": 80, "type": "ERROR", "text": "(NSString ", "parent": 73, "children": [81], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 44}}, {"id": 81, "type": "identifier", "text": "SString ", "parent": 80, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 44}}, {"id": 82, "type": "ERROR", "text": "s", "parent": 73, "children": [], "start_point": {"row": 43, "column": 46}, "end_point": {"row": 43, "column": 47}}, {"id": 83, "type": "identifier", "text": "tring ", "parent": 73, "children": [], "start_point": {"row": 43, "column": 47}, "end_point": {"row": 43, "column": 53}}, {"id": 84, "type": "labeled_statement", "text": "ey:(NSString *)key ", "parent": 2, "children": [85], "start_point": {"row": 43, "column": 54}, "end_point": {"row": 43, "column": 73}}, {"id": 85, "type": "statement_identifier", "text": "ey:", "parent": 84, "children": [], "start_point": {"row": 43, "column": 54}, "end_point": {"row": 43, "column": 57}}, {"id": 86, "type": "cast_expression", "text": "NSString *)key ", "parent": 84, "children": [87, 89], "start_point": {"row": 43, "column": 58}, "end_point": {"row": 43, "column": 73}}, {"id": 87, "type": "type_descriptor", "text": "SString *)", "parent": 86, "children": [88], "start_point": {"row": 43, "column": 59}, "end_point": {"row": 43, "column": 69}}, {"id": 88, "type": "type_identifier", "text": "SString ", "parent": 87, "children": [], "start_point": {"row": 43, "column": 59}, "end_point": {"row": 43, "column": 67}}, {"id": 89, "type": "identifier", "text": "ey ", "parent": 86, "children": [], "start_point": {"row": 43, "column": 70}, "end_point": {"row": 43, "column": 73}}, {"id": 90, "type": "labeled_statement", "text": "v:(NSString *)iv;\n", "parent": 2, "children": [91], "start_point": {"row": 43, "column": 74}, "end_point": {"row": 43, "column": 92}}, {"id": 91, "type": "statement_identifier", "text": "v:", "parent": 90, "children": [], "start_point": {"row": 43, "column": 74}, "end_point": {"row": 43, "column": 76}}, {"id": 92, "type": "cast_expression", "text": "NSString *)iv;", "parent": 90, "children": [93, 95], "start_point": {"row": 43, "column": 77}, "end_point": {"row": 43, "column": 91}}, {"id": 93, "type": "type_descriptor", "text": "SString *)", "parent": 92, "children": [94], "start_point": {"row": 43, "column": 78}, "end_point": {"row": 43, "column": 88}}, {"id": 94, "type": "type_identifier", "text": "SString ", "parent": 93, "children": [], "start_point": {"row": 43, "column": 78}, "end_point": {"row": 43, "column": 86}}, {"id": 95, "type": "identifier", "text": "v;", "parent": 92, "children": [], "start_point": {"row": 43, "column": 89}, "end_point": {"row": 43, "column": 91}}, {"id": 96, "type": "ERROR", "text": "e", "parent": 2, "children": [97], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 97, "type": "ERROR", "text": "e", "parent": 96, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 98, "type": "type_identifier", "text": "nd\n", "parent": 2, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 4}}, {"id": 99, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 2, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [8, 10, 12, 21, 23, 27, 28, 30, 40, 46, 50, 51, 53, 63, 69, 73, 74, 76, 86, 92], "assignments": [], "loops": [], "conditionals": [3, 5, 6, 7, 9, 11, 13, 15, 18, 19, 20, 25, 26, 32, 33, 35, 37, 39, 42, 43, 45, 48, 49, 55, 56, 58, 60, 62, 65, 66, 68, 71, 72, 78, 79, 81, 83, 85, 88, 89, 91, 94, 95, 98, 99], "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// ABSecrect.h\n// ABFoundation\n//\n// Created by qp on 2021/3/18.\n// Copyright \u00a9 2021 abteam. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\ntypedef enum : NSUInteger {\n ABSecrectTypeAES,\n ABSecrectTypeRSA,\n ABSecrectTypeDES,\n} ABSecrectType;\n\n@interface ABSecrect : NSObject\n+ (ABSecrect *)shared;\n/**\n Returns an encrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData encrypted, or nil if an error occurs.\n */\n- (NSData *)decryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv;\n\n/**\n Returns an decrypted NSData using AES.\n \n @param key A key length of 16, 24 or 32 (128, 192 or 256bits).\n \n @param iv An initialization vector length of 16(128bits).\n Pass nil when you don't want to use iv.\n \n @return An NSData decrypted, or nil if an error occurs.\n */\n- (NSData *)encryptAESData:(NSData *)data key:(NSData *)key iv:(NSData *)iv;\n- (NSString *)decryptAESDataString:(NSString *)string key:(NSString *)key iv:(NSString *)iv;\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,307
c
/** ********************************************************************* ********************************************************************* */ #include <stdint.h> #include <stdbool.h> #include <string.h> #include "sglib.h" #include "bus.h" #include "sgstring.h" #include "uart_at89c51.h" #include "cpu_mcs51.h" #include "serial.h" #include "signode.h" #define REG_SCON (0x98) #define SCON_RI (1 << 0) #define SCON_TI (1 << 1) #define SCON_RB8 (1 << 2) #define SCON_TB8 (1 << 3) #define SCON_REN (1 << 4) #define SCON_SM2 (1 << 5) #define SCON_SM1 (1 << 6) #define SCON_FESM0 (1 << 7) #define REG_SADEN (0xb9) #define REG_SADDR (0xa9) #define REG_SBUF (0x99) #define REG_PCON (0x87) #define PCON_IDL (1 << 0) #define PCON_PD (1 << 1) #define PCON_GF0 (1 << 2) #define PCON_GF1 (1 << 3) #define PCON_POF (1 << 4) #define PCON_SMOD0 (1 << 6) #define PCON_SMOD1 (1 << 7) typedef struct AT89C51_Uart { bool nineBit; uint8_t regSCON; uint8_t SM; uint8_t regSADEN; uint16_t regTXBUF; uint16_t regRXBUF; uint8_t regPCON; UartPort *backend; SigNode *sigIrq; } AT89C51Uart; static void update_interrupt(AT89C51Uart * ua) { if (ua->regSCON & (SCON_RI | SCON_TI)) { SigNode_Set(ua->sigIrq, SIG_LOW); } else { SigNode_Set(ua->sigIrq, SIG_OPEN); } } static void serial_input(void *eventData, UartChar c) { AT89C51Uart *ua = eventData; #if 0 static CycleCounter_t last; fprintf(stderr,"Input 0x%x at %ld\n",c,CyclesToMicroseconds(CycleCounter_Get() - last)); last = CycleCounter_Get(); #endif ua->regRXBUF = c; if (c & 0x100) { ua->regSCON = ua->regSCON | SCON_RB8; } else { ua->regSCON = ua->regSCON & ~SCON_RB8; } if (ua->regSCON & SCON_RI) { /* Is there any loss detection ? */ } ua->regSCON |= SCON_RI; update_interrupt(ua); } static bool serial_output(void *eventData, UartChar * c) { AT89C51Uart *ua = eventData; *c = ua->regTXBUF; if (ua->nineBit) { if (ua->regSCON & SCON_TB8) { *c |= 0x100; } } SerialDevice_StopTx(ua->backend); ua->regSCON |= SCON_TI; update_interrupt(ua); return true; } /** *********************************************************** * Register SCON * Bit 0: RI Receive Interrupt (Is this setable ?) * Bit 1: TI Transmit Interrupt (Is this setable ?) * Bit 2: RB8 Bit 8 of receive Buffer (9 Bit mode) * Bit 3: TB8 Bit 8 of transmit Buffer (9 Bit mode) * Bit 4: REN Reception enable * Bit 5: SM2 Serial Port mode * Bit 6: SM1 * Bit 7: FESM0 Framing error *********************************************************** */ static uint8_t scon_read(void *eventData, uint8_t addr) { AT89C51Uart *ua = eventData; return ua->regSCON; } static void scon_write(void *eventData, uint8_t addr, uint8_t value) { AT89C51Uart *ua = eventData; UartCmd cmd; uint8_t diff; uint8_t bits; uint8_t msk = SCON_RI | SCON_TI; uint8_t clrmsk = ~((ua->regSCON & msk) ^ msk); value = value & clrmsk; diff = ua->regSCON ^ value; ua->regSCON = value; //fprintf(stderr,"now %02x\n",ua->regSCON); update_interrupt(ua); if ((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)) { if (ua->regPCON & PCON_SMOD0) { ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1); } else { ua->SM = value & (SCON_FESM0 | SCON_SM1); } switch (ua->SM) { default: case 0: bits = 8; ua->nineBit = false; break; case SCON_SM1: bits = 8; ua->nineBit = false; break; case SCON_FESM0: bits = 9; ua->nineBit = true; break; case SCON_FESM0 | SCON_SM1: bits = 9; ua->nineBit = true; break; } //fprintf(stderr,"Bits :%u\n",bits); //sleep(1); cmd.opcode = UART_OPC_SET_CSIZE; cmd.arg = bits; SerialDevice_Cmd(ua->backend, &cmd); cmd.opcode = UART_OPC_SET_BAUDRATE; cmd.arg = 9600; SerialDevice_Cmd(ua->backend, &cmd); } if (value & SCON_REN) { SerialDevice_StartRx(ua->backend); } else { SerialDevice_StopRx(ua->backend); } } static uint8_t saden_read(void *eventData, uint8_t addr) { return 0; } static void saden_write(void *eventData, uint8_t addr, uint8_t value) { } static uint8_t saddr_read(void *eventData, uint8_t addr) { return 0; } static void saddr_write(void *eventData, uint8_t addr, uint8_t value) { } static uint8_t sbuf_read(void *eventData, uint8_t addr) { AT89C51Uart *ua = eventData; //fprintf(stderr, "Read RXBUF %02x\n", ua->regRXBUF); return ua->regRXBUF; } static void sbuf_write(void *eventData, uint8_t addr, uint8_t value) { AT89C51Uart *ua = eventData; ua->regTXBUF = value; fprintf(stderr, "Write sbuf: 0x%02x\n",value); SerialDevice_StartTx(ua->backend); } static uint8_t pcon_read(void *eventData, uint8_t addr) { AT89C51Uart *ua = eventData; return ua->regPCON; } static void pcon_write(void *eventData, uint8_t addr, uint8_t value) { AT89C51Uart *ua = eventData; ua->regPCON = value; fprintf(stderr, "Warning regPCON not implemented\n"); } void AT89C51Uart_New(const char *name) { AT89C51Uart *ua; ua = sg_new(AT89C51Uart); ua->backend = Uart_New(name, serial_input, serial_output, NULL, ua); ua->sigIrq = SigNode_New("%s.irq", name); ua->SM = 0xff; MCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua); MCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua); MCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua); MCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua); MCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua); }
23.38
223
(translation_unit) "/**\n *********************************************************************\n *********************************************************************\n */\n#include <stdint.h>\n#include <stdbool.h>\n#include <string.h>\n#include "sglib.h"\n#include "bus.h"\n#include "sgstring.h"\n#include "uart_at89c51.h"\n#include "cpu_mcs51.h"\n#include "serial.h"\n#include "signode.h"\n\n#define REG_SCON (0x98)\n#define SCON_RI (1 << 0)\n#define SCON_TI (1 << 1)\n#define SCON_RB8 (1 << 2)\n#define SCON_TB8 (1 << 3)\n#define SCON_REN (1 << 4)\n#define SCON_SM2 (1 << 5)\n#define SCON_SM1 (1 << 6)\n#define SCON_FESM0 (1 << 7)\n\n#define REG_SADEN (0xb9)\n#define REG_SADDR (0xa9)\n#define REG_SBUF (0x99)\n#define REG_PCON (0x87)\n#define PCON_IDL (1 << 0)\n#define PCON_PD (1 << 1)\n#define PCON_GF0 (1 << 2)\n#define PCON_GF1 (1 << 3)\n#define PCON_POF (1 << 4)\n#define PCON_SMOD0 (1 << 6)\n#define PCON_SMOD1 (1 << 7)\n\ntypedef struct AT89C51_Uart {\n bool nineBit;\n uint8_t regSCON;\n uint8_t SM;\n uint8_t regSADEN;\n uint16_t regTXBUF;\n uint16_t regRXBUF;\n uint8_t regPCON;\n UartPort *backend;\n SigNode *sigIrq;\n} AT89C51Uart;\n\nstatic void\nupdate_interrupt(AT89C51Uart * ua)\n{\n if (ua->regSCON & (SCON_RI | SCON_TI)) {\n SigNode_Set(ua->sigIrq, SIG_LOW);\n } else {\n SigNode_Set(ua->sigIrq, SIG_OPEN);\n }\n}\n\nstatic void\nserial_input(void *eventData, UartChar c)\n{\n AT89C51Uart *ua = eventData;\n#if 0\n static CycleCounter_t last;\n fprintf(stderr,"Input 0x%x at %ld\n",c,CyclesToMicroseconds(CycleCounter_Get() - last));\n last = CycleCounter_Get();\n#endif\n ua->regRXBUF = c;\n if (c & 0x100) {\n ua->regSCON = ua->regSCON | SCON_RB8;\n } else {\n ua->regSCON = ua->regSCON & ~SCON_RB8;\n }\n if (ua->regSCON & SCON_RI) {\n /* Is there any loss detection ? */\n }\n ua->regSCON |= SCON_RI;\n update_interrupt(ua);\n}\n\nstatic bool\nserial_output(void *eventData, UartChar * c)\n{\n AT89C51Uart *ua = eventData;\n *c = ua->regTXBUF;\n if (ua->nineBit) {\n if (ua->regSCON & SCON_TB8) {\n *c |= 0x100;\n }\n }\n SerialDevice_StopTx(ua->backend);\n ua->regSCON |= SCON_TI;\n update_interrupt(ua);\n return true;\n}\n\n/**\n ***********************************************************\n * Register SCON\n * Bit 0: RI Receive Interrupt (Is this setable ?)\n * Bit 1: TI Transmit Interrupt (Is this setable ?)\n * Bit 2: RB8 Bit 8 of receive Buffer (9 Bit mode) \n * Bit 3: TB8 Bit 8 of transmit Buffer (9 Bit mode)\n * Bit 4: REN Reception enable \n * Bit 5: SM2 Serial Port mode\n * Bit 6: SM1\n * Bit 7: FESM0 Framing error\n ***********************************************************\n */\nstatic uint8_t\nscon_read(void *eventData, uint8_t addr)\n{\n AT89C51Uart *ua = eventData;\n return ua->regSCON;\n}\n\nstatic void\nscon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n AT89C51Uart *ua = eventData;\n UartCmd cmd;\n uint8_t diff;\n uint8_t bits;\n uint8_t msk = SCON_RI | SCON_TI;\n uint8_t clrmsk = ~((ua->regSCON & msk) ^ msk);\n value = value & clrmsk;\n diff = ua->regSCON ^ value;\n ua->regSCON = value;\n //fprintf(stderr,"now %02x\n",ua->regSCON);\n update_interrupt(ua);\n if ((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)) {\n if (ua->regPCON & PCON_SMOD0) {\n ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n } else {\n ua->SM = value & (SCON_FESM0 | SCON_SM1);\n }\n switch (ua->SM) {\n default:\n case 0:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_SM1:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_FESM0:\n bits = 9;\n ua->nineBit = true;\n break;\n case SCON_FESM0 | SCON_SM1:\n bits = 9;\n ua->nineBit = true;\n break;\n\n }\n //fprintf(stderr,"Bits :%u\n",bits);\n //sleep(1);\n cmd.opcode = UART_OPC_SET_CSIZE;\n cmd.arg = bits;\n SerialDevice_Cmd(ua->backend, &cmd);\n cmd.opcode = UART_OPC_SET_BAUDRATE;\n cmd.arg = 9600;\n SerialDevice_Cmd(ua->backend, &cmd);\n }\n if (value & SCON_REN) {\n SerialDevice_StartRx(ua->backend);\n } else {\n SerialDevice_StopRx(ua->backend);\n }\n}\n\nstatic uint8_t\nsaden_read(void *eventData, uint8_t addr)\n{\n return 0;\n}\n\nstatic void\nsaden_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}\n\nstatic uint8_t\nsaddr_read(void *eventData, uint8_t addr)\n{\n return 0;\n}\n\nstatic void\nsaddr_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}\n\nstatic uint8_t\nsbuf_read(void *eventData, uint8_t addr)\n{\n AT89C51Uart *ua = eventData;\n //fprintf(stderr, "Read RXBUF %02x\n", ua->regRXBUF);\n return ua->regRXBUF;\n}\n\nstatic void\nsbuf_write(void *eventData, uint8_t addr, uint8_t value)\n{\n AT89C51Uart *ua = eventData;\n ua->regTXBUF = value;\n fprintf(stderr, "Write sbuf: 0x%02x\n",value);\n SerialDevice_StartTx(ua->backend);\n}\n\nstatic uint8_t\npcon_read(void *eventData, uint8_t addr)\n{\n AT89C51Uart *ua = eventData;\n return ua->regPCON;\n}\n\nstatic void\npcon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n AT89C51Uart *ua = eventData;\n ua->regPCON = value;\n fprintf(stderr, "Warning regPCON not implemented\n");\n}\n\nvoid\nAT89C51Uart_New(const char *name)\n{\n AT89C51Uart *ua;\n ua = sg_new(AT89C51Uart);\n ua->backend = Uart_New(name, serial_input, serial_output, NULL, ua);\n ua->sigIrq = SigNode_New("%s.irq", name);\n ua->SM = 0xff;\n MCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua);\n MCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua);\n MCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua);\n MCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua);\n MCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua);\n}\n" (comment) "/**\n *********************************************************************\n *********************************************************************\n */" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <stdbool.h>\n" (#include) "#include" (system_lib_string) "<stdbool.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include "sglib.h"\n" (#include) "#include" (string_literal) ""sglib.h"" (") """ (string_content) "sglib.h" (") """ (preproc_include) "#include "bus.h"\n" (#include) "#include" (string_literal) ""bus.h"" (") """ (string_content) "bus.h" (") """ (preproc_include) "#include "sgstring.h"\n" (#include) "#include" (string_literal) ""sgstring.h"" (") """ (string_content) "sgstring.h" (") """ (preproc_include) "#include "uart_at89c51.h"\n" (#include) "#include" (string_literal) ""uart_at89c51.h"" (") """ (string_content) "uart_at89c51.h" (") """ (preproc_include) "#include "cpu_mcs51.h"\n" (#include) "#include" (string_literal) ""cpu_mcs51.h"" (") """ (string_content) "cpu_mcs51.h" (") """ (preproc_include) "#include "serial.h"\n" (#include) "#include" (string_literal) ""serial.h"" (") """ (string_content) "serial.h" (") """ (preproc_include) "#include "signode.h"\n" (#include) "#include" (string_literal) ""signode.h"" (") """ (string_content) "signode.h" (") """ (preproc_def) "#define REG_SCON (0x98)\n" (#define) "#define" (identifier) "REG_SCON" (preproc_arg) "(0x98)" (preproc_def) "#define SCON_RI (1 << 0)\n" (#define) "#define" (identifier) "SCON_RI" (preproc_arg) "(1 << 0)" (preproc_def) "#define SCON_TI (1 << 1)\n" (#define) "#define" (identifier) "SCON_TI" (preproc_arg) "(1 << 1)" (preproc_def) "#define SCON_RB8 (1 << 2)\n" (#define) "#define" (identifier) "SCON_RB8" (preproc_arg) "(1 << 2)" (preproc_def) "#define SCON_TB8 (1 << 3)\n" (#define) "#define" (identifier) "SCON_TB8" (preproc_arg) "(1 << 3)" (preproc_def) "#define SCON_REN (1 << 4)\n" (#define) "#define" (identifier) "SCON_REN" (preproc_arg) "(1 << 4)" (preproc_def) "#define SCON_SM2 (1 << 5)\n" (#define) "#define" (identifier) "SCON_SM2" (preproc_arg) "(1 << 5)" (preproc_def) "#define SCON_SM1 (1 << 6)\n" (#define) "#define" (identifier) "SCON_SM1" (preproc_arg) "(1 << 6)" (preproc_def) "#define SCON_FESM0 (1 << 7)\n" (#define) "#define" (identifier) "SCON_FESM0" (preproc_arg) "(1 << 7)" (preproc_def) "#define REG_SADEN (0xb9)\n" (#define) "#define" (identifier) "REG_SADEN" (preproc_arg) "(0xb9)" (preproc_def) "#define REG_SADDR (0xa9)\n" (#define) "#define" (identifier) "REG_SADDR" (preproc_arg) "(0xa9)" (preproc_def) "#define REG_SBUF (0x99)\n" (#define) "#define" (identifier) "REG_SBUF" (preproc_arg) "(0x99)" (preproc_def) "#define REG_PCON (0x87)\n" (#define) "#define" (identifier) "REG_PCON" (preproc_arg) "(0x87)" (preproc_def) "#define PCON_IDL (1 << 0)\n" (#define) "#define" (identifier) "PCON_IDL" (preproc_arg) "(1 << 0)" (preproc_def) "#define PCON_PD (1 << 1)\n" (#define) "#define" (identifier) "PCON_PD" (preproc_arg) "(1 << 1)" (preproc_def) "#define PCON_GF0 (1 << 2)\n" (#define) "#define" (identifier) "PCON_GF0" (preproc_arg) "(1 << 2)" (preproc_def) "#define PCON_GF1 (1 << 3)\n" (#define) "#define" (identifier) "PCON_GF1" (preproc_arg) "(1 << 3)" (preproc_def) "#define PCON_POF (1 << 4)\n" (#define) "#define" (identifier) "PCON_POF" (preproc_arg) "(1 << 4)" (preproc_def) "#define PCON_SMOD0 (1 << 6)\n" (#define) "#define" (identifier) "PCON_SMOD0" (preproc_arg) "(1 << 6)" (preproc_def) "#define PCON_SMOD1 (1 << 7)\n" (#define) "#define" (identifier) "PCON_SMOD1" (preproc_arg) "(1 << 7)" (type_definition) "typedef struct AT89C51_Uart {\n bool nineBit;\n uint8_t regSCON;\n uint8_t SM;\n uint8_t regSADEN;\n uint16_t regTXBUF;\n uint16_t regRXBUF;\n uint8_t regPCON;\n UartPort *backend;\n SigNode *sigIrq;\n} AT89C51Uart;" (typedef) "typedef" (struct_specifier) "struct AT89C51_Uart {\n bool nineBit;\n uint8_t regSCON;\n uint8_t SM;\n uint8_t regSADEN;\n uint16_t regTXBUF;\n uint16_t regRXBUF;\n uint8_t regPCON;\n UartPort *backend;\n SigNode *sigIrq;\n}" (struct) "struct" (type_identifier) "AT89C51_Uart" (field_declaration_list) "{\n bool nineBit;\n uint8_t regSCON;\n uint8_t SM;\n uint8_t regSADEN;\n uint16_t regTXBUF;\n uint16_t regRXBUF;\n uint8_t regPCON;\n UartPort *backend;\n SigNode *sigIrq;\n}" ({) "{" (field_declaration) "bool nineBit;" (primitive_type) "bool" (field_identifier) "nineBit" (;) ";" (field_declaration) "uint8_t regSCON;" (primitive_type) "uint8_t" (field_identifier) "regSCON" (;) ";" (field_declaration) "uint8_t SM;" (primitive_type) "uint8_t" (field_identifier) "SM" (;) ";" (field_declaration) "uint8_t regSADEN;" (primitive_type) "uint8_t" (field_identifier) "regSADEN" (;) ";" (field_declaration) "uint16_t regTXBUF;" (primitive_type) "uint16_t" (field_identifier) "regTXBUF" (;) ";" (field_declaration) "uint16_t regRXBUF;" (primitive_type) "uint16_t" (field_identifier) "regRXBUF" (;) ";" (field_declaration) "uint8_t regPCON;" (primitive_type) "uint8_t" (field_identifier) "regPCON" (;) ";" (field_declaration) "UartPort *backend;" (type_identifier) "UartPort" (pointer_declarator) "*backend" (*) "*" (field_identifier) "backend" (;) ";" (field_declaration) "SigNode *sigIrq;" (type_identifier) "SigNode" (pointer_declarator) "*sigIrq" (*) "*" (field_identifier) "sigIrq" (;) ";" (}) "}" (type_identifier) "AT89C51Uart" (;) ";" (function_definition) "static void\nupdate_interrupt(AT89C51Uart * ua)\n{\n if (ua->regSCON & (SCON_RI | SCON_TI)) {\n SigNode_Set(ua->sigIrq, SIG_LOW);\n } else {\n SigNode_Set(ua->sigIrq, SIG_OPEN);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "update_interrupt(AT89C51Uart * ua)" (identifier) "update_interrupt" (parameter_list) "(AT89C51Uart * ua)" (() "(" (parameter_declaration) "AT89C51Uart * ua" (type_identifier) "AT89C51Uart" (pointer_declarator) "* ua" (*) "*" (identifier) "ua" ()) ")" (compound_statement) "{\n if (ua->regSCON & (SCON_RI | SCON_TI)) {\n SigNode_Set(ua->sigIrq, SIG_LOW);\n } else {\n SigNode_Set(ua->sigIrq, SIG_OPEN);\n }\n}" ({) "{" (if_statement) "if (ua->regSCON & (SCON_RI | SCON_TI)) {\n SigNode_Set(ua->sigIrq, SIG_LOW);\n } else {\n SigNode_Set(ua->sigIrq, SIG_OPEN);\n }" (if) "if" (parenthesized_expression) "(ua->regSCON & (SCON_RI | SCON_TI))" (() "(" (binary_expression) "ua->regSCON & (SCON_RI | SCON_TI)" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (&) "&" (parenthesized_expression) "(SCON_RI | SCON_TI)" (() "(" (binary_expression) "SCON_RI | SCON_TI" (identifier) "SCON_RI" (|) "|" (identifier) "SCON_TI" ()) ")" ()) ")" (compound_statement) "{\n SigNode_Set(ua->sigIrq, SIG_LOW);\n }" ({) "{" (expression_statement) "SigNode_Set(ua->sigIrq, SIG_LOW);" (call_expression) "SigNode_Set(ua->sigIrq, SIG_LOW)" (identifier) "SigNode_Set" (argument_list) "(ua->sigIrq, SIG_LOW)" (() "(" (field_expression) "ua->sigIrq" (identifier) "ua" (->) "->" (field_identifier) "sigIrq" (,) "," (identifier) "SIG_LOW" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n SigNode_Set(ua->sigIrq, SIG_OPEN);\n }" (else) "else" (compound_statement) "{\n SigNode_Set(ua->sigIrq, SIG_OPEN);\n }" ({) "{" (expression_statement) "SigNode_Set(ua->sigIrq, SIG_OPEN);" (call_expression) "SigNode_Set(ua->sigIrq, SIG_OPEN)" (identifier) "SigNode_Set" (argument_list) "(ua->sigIrq, SIG_OPEN)" (() "(" (field_expression) "ua->sigIrq" (identifier) "ua" (->) "->" (field_identifier) "sigIrq" (,) "," (identifier) "SIG_OPEN" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "static void\nserial_input(void *eventData, UartChar c)\n{\n AT89C51Uart *ua = eventData;\n#if 0\n static CycleCounter_t last;\n fprintf(stderr,"Input 0x%x at %ld\n",c,CyclesToMicroseconds(CycleCounter_Get() - last));\n last = CycleCounter_Get();\n#endif\n ua->regRXBUF = c;\n if (c & 0x100) {\n ua->regSCON = ua->regSCON | SCON_RB8;\n } else {\n ua->regSCON = ua->regSCON & ~SCON_RB8;\n }\n if (ua->regSCON & SCON_RI) {\n /* Is there any loss detection ? */\n }\n ua->regSCON |= SCON_RI;\n update_interrupt(ua);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "serial_input(void *eventData, UartChar c)" (identifier) "serial_input" (parameter_list) "(void *eventData, UartChar c)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "UartChar c" (type_identifier) "UartChar" (identifier) "c" ()) ")" (compound_statement) "{\n AT89C51Uart *ua = eventData;\n#if 0\n static CycleCounter_t last;\n fprintf(stderr,"Input 0x%x at %ld\n",c,CyclesToMicroseconds(CycleCounter_Get() - last));\n last = CycleCounter_Get();\n#endif\n ua->regRXBUF = c;\n if (c & 0x100) {\n ua->regSCON = ua->regSCON | SCON_RB8;\n } else {\n ua->regSCON = ua->regSCON & ~SCON_RB8;\n }\n if (ua->regSCON & SCON_RI) {\n /* Is there any loss detection ? */\n }\n ua->regSCON |= SCON_RI;\n update_interrupt(ua);\n}" ({) "{" (declaration) "AT89C51Uart *ua = eventData;" (type_identifier) "AT89C51Uart" (init_declarator) "*ua = eventData" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (=) "=" (identifier) "eventData" (;) ";" (preproc_if) "#if 0\n static CycleCounter_t last;\n fprintf(stderr,"Input 0x%x at %ld\n",c,CyclesToMicroseconds(CycleCounter_Get() - last));\n last = CycleCounter_Get();\n#endif" (#if) "#if" (number_literal) "0" ( ) "\n" (declaration) "static CycleCounter_t last;" (storage_class_specifier) "static" (static) "static" (type_identifier) "CycleCounter_t" (identifier) "last" (;) ";" (expression_statement) "fprintf(stderr,"Input 0x%x at %ld\n",c,CyclesToMicroseconds(CycleCounter_Get() - last));" (call_expression) "fprintf(stderr,"Input 0x%x at %ld\n",c,CyclesToMicroseconds(CycleCounter_Get() - last))" (identifier) "fprintf" (argument_list) "(stderr,"Input 0x%x at %ld\n",c,CyclesToMicroseconds(CycleCounter_Get() - last))" (() "(" (identifier) "stderr" (,) "," (string_literal) ""Input 0x%x at %ld\n"" (") """ (string_content) "Input 0x%x at %ld" (escape_sequence) "\n" (") """ (,) "," (identifier) "c" (,) "," (call_expression) "CyclesToMicroseconds(CycleCounter_Get() - last)" (identifier) "CyclesToMicroseconds" (argument_list) "(CycleCounter_Get() - last)" (() "(" (binary_expression) "CycleCounter_Get() - last" (call_expression) "CycleCounter_Get()" (identifier) "CycleCounter_Get" (argument_list) "()" (() "(" ()) ")" (-) "-" (identifier) "last" ()) ")" ()) ")" (;) ";" (expression_statement) "last = CycleCounter_Get();" (assignment_expression) "last = CycleCounter_Get()" (identifier) "last" (=) "=" (call_expression) "CycleCounter_Get()" (identifier) "CycleCounter_Get" (argument_list) "()" (() "(" ()) ")" (;) ";" (#endif) "#endif" (expression_statement) "ua->regRXBUF = c;" (assignment_expression) "ua->regRXBUF = c" (field_expression) "ua->regRXBUF" (identifier) "ua" (->) "->" (field_identifier) "regRXBUF" (=) "=" (identifier) "c" (;) ";" (if_statement) "if (c & 0x100) {\n ua->regSCON = ua->regSCON | SCON_RB8;\n } else {\n ua->regSCON = ua->regSCON & ~SCON_RB8;\n }" (if) "if" (parenthesized_expression) "(c & 0x100)" (() "(" (binary_expression) "c & 0x100" (identifier) "c" (&) "&" (number_literal) "0x100" ()) ")" (compound_statement) "{\n ua->regSCON = ua->regSCON | SCON_RB8;\n }" ({) "{" (expression_statement) "ua->regSCON = ua->regSCON | SCON_RB8;" (assignment_expression) "ua->regSCON = ua->regSCON | SCON_RB8" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (=) "=" (binary_expression) "ua->regSCON | SCON_RB8" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (|) "|" (identifier) "SCON_RB8" (;) ";" (}) "}" (else_clause) "else {\n ua->regSCON = ua->regSCON & ~SCON_RB8;\n }" (else) "else" (compound_statement) "{\n ua->regSCON = ua->regSCON & ~SCON_RB8;\n }" ({) "{" (expression_statement) "ua->regSCON = ua->regSCON & ~SCON_RB8;" (assignment_expression) "ua->regSCON = ua->regSCON & ~SCON_RB8" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (=) "=" (binary_expression) "ua->regSCON & ~SCON_RB8" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (&) "&" (unary_expression) "~SCON_RB8" (~) "~" (identifier) "SCON_RB8" (;) ";" (}) "}" (if_statement) "if (ua->regSCON & SCON_RI) {\n /* Is there any loss detection ? */\n }" (if) "if" (parenthesized_expression) "(ua->regSCON & SCON_RI)" (() "(" (binary_expression) "ua->regSCON & SCON_RI" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (&) "&" (identifier) "SCON_RI" ()) ")" (compound_statement) "{\n /* Is there any loss detection ? */\n }" ({) "{" (comment) "/* Is there any loss detection ? */" (}) "}" (expression_statement) "ua->regSCON |= SCON_RI;" (assignment_expression) "ua->regSCON |= SCON_RI" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (|=) "|=" (identifier) "SCON_RI" (;) ";" (expression_statement) "update_interrupt(ua);" (call_expression) "update_interrupt(ua)" (identifier) "update_interrupt" (argument_list) "(ua)" (() "(" (identifier) "ua" ()) ")" (;) ";" (}) "}" (function_definition) "static bool\nserial_output(void *eventData, UartChar * c)\n{\n AT89C51Uart *ua = eventData;\n *c = ua->regTXBUF;\n if (ua->nineBit) {\n if (ua->regSCON & SCON_TB8) {\n *c |= 0x100;\n }\n }\n SerialDevice_StopTx(ua->backend);\n ua->regSCON |= SCON_TI;\n update_interrupt(ua);\n return true;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "serial_output(void *eventData, UartChar * c)" (identifier) "serial_output" (parameter_list) "(void *eventData, UartChar * c)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "UartChar * c" (type_identifier) "UartChar" (pointer_declarator) "* c" (*) "*" (identifier) "c" ()) ")" (compound_statement) "{\n AT89C51Uart *ua = eventData;\n *c = ua->regTXBUF;\n if (ua->nineBit) {\n if (ua->regSCON & SCON_TB8) {\n *c |= 0x100;\n }\n }\n SerialDevice_StopTx(ua->backend);\n ua->regSCON |= SCON_TI;\n update_interrupt(ua);\n return true;\n}" ({) "{" (declaration) "AT89C51Uart *ua = eventData;" (type_identifier) "AT89C51Uart" (init_declarator) "*ua = eventData" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (=) "=" (identifier) "eventData" (;) ";" (expression_statement) "*c = ua->regTXBUF;" (assignment_expression) "*c = ua->regTXBUF" (pointer_expression) "*c" (*) "*" (identifier) "c" (=) "=" (field_expression) "ua->regTXBUF" (identifier) "ua" (->) "->" (field_identifier) "regTXBUF" (;) ";" (if_statement) "if (ua->nineBit) {\n if (ua->regSCON & SCON_TB8) {\n *c |= 0x100;\n }\n }" (if) "if" (parenthesized_expression) "(ua->nineBit)" (() "(" (field_expression) "ua->nineBit" (identifier) "ua" (->) "->" (field_identifier) "nineBit" ()) ")" (compound_statement) "{\n if (ua->regSCON & SCON_TB8) {\n *c |= 0x100;\n }\n }" ({) "{" (if_statement) "if (ua->regSCON & SCON_TB8) {\n *c |= 0x100;\n }" (if) "if" (parenthesized_expression) "(ua->regSCON & SCON_TB8)" (() "(" (binary_expression) "ua->regSCON & SCON_TB8" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (&) "&" (identifier) "SCON_TB8" ()) ")" (compound_statement) "{\n *c |= 0x100;\n }" ({) "{" (expression_statement) "*c |= 0x100;" (assignment_expression) "*c |= 0x100" (pointer_expression) "*c" (*) "*" (identifier) "c" (|=) "|=" (number_literal) "0x100" (;) ";" (}) "}" (}) "}" (expression_statement) "SerialDevice_StopTx(ua->backend);" (call_expression) "SerialDevice_StopTx(ua->backend)" (identifier) "SerialDevice_StopTx" (argument_list) "(ua->backend)" (() "(" (field_expression) "ua->backend" (identifier) "ua" (->) "->" (field_identifier) "backend" ()) ")" (;) ";" (expression_statement) "ua->regSCON |= SCON_TI;" (assignment_expression) "ua->regSCON |= SCON_TI" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (|=) "|=" (identifier) "SCON_TI" (;) ";" (expression_statement) "update_interrupt(ua);" (call_expression) "update_interrupt(ua)" (identifier) "update_interrupt" (argument_list) "(ua)" (() "(" (identifier) "ua" ()) ")" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (comment) "/**\n ***********************************************************\n * Register SCON\n * Bit 0: RI Receive Interrupt (Is this setable ?)\n * Bit 1: TI Transmit Interrupt (Is this setable ?)\n * Bit 2: RB8 Bit 8 of receive Buffer (9 Bit mode) \n * Bit 3: TB8 Bit 8 of transmit Buffer (9 Bit mode)\n * Bit 4: REN Reception enable \n * Bit 5: SM2 Serial Port mode\n * Bit 6: SM1\n * Bit 7: FESM0 Framing error\n ***********************************************************\n */" (function_definition) "static uint8_t\nscon_read(void *eventData, uint8_t addr)\n{\n AT89C51Uart *ua = eventData;\n return ua->regSCON;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint8_t" (function_declarator) "scon_read(void *eventData, uint8_t addr)" (identifier) "scon_read" (parameter_list) "(void *eventData, uint8_t addr)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" ()) ")" (compound_statement) "{\n AT89C51Uart *ua = eventData;\n return ua->regSCON;\n}" ({) "{" (declaration) "AT89C51Uart *ua = eventData;" (type_identifier) "AT89C51Uart" (init_declarator) "*ua = eventData" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (=) "=" (identifier) "eventData" (;) ";" (return_statement) "return ua->regSCON;" (return) "return" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (;) ";" (}) "}" (function_definition) "static void\nscon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n AT89C51Uart *ua = eventData;\n UartCmd cmd;\n uint8_t diff;\n uint8_t bits;\n uint8_t msk = SCON_RI | SCON_TI;\n uint8_t clrmsk = ~((ua->regSCON & msk) ^ msk);\n value = value & clrmsk;\n diff = ua->regSCON ^ value;\n ua->regSCON = value;\n //fprintf(stderr,"now %02x\n",ua->regSCON);\n update_interrupt(ua);\n if ((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)) {\n if (ua->regPCON & PCON_SMOD0) {\n ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n } else {\n ua->SM = value & (SCON_FESM0 | SCON_SM1);\n }\n switch (ua->SM) {\n default:\n case 0:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_SM1:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_FESM0:\n bits = 9;\n ua->nineBit = true;\n break;\n case SCON_FESM0 | SCON_SM1:\n bits = 9;\n ua->nineBit = true;\n break;\n\n }\n //fprintf(stderr,"Bits :%u\n",bits);\n //sleep(1);\n cmd.opcode = UART_OPC_SET_CSIZE;\n cmd.arg = bits;\n SerialDevice_Cmd(ua->backend, &cmd);\n cmd.opcode = UART_OPC_SET_BAUDRATE;\n cmd.arg = 9600;\n SerialDevice_Cmd(ua->backend, &cmd);\n }\n if (value & SCON_REN) {\n SerialDevice_StartRx(ua->backend);\n } else {\n SerialDevice_StopRx(ua->backend);\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "scon_write(void *eventData, uint8_t addr, uint8_t value)" (identifier) "scon_write" (parameter_list) "(void *eventData, uint8_t addr, uint8_t value)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" (,) "," (parameter_declaration) "uint8_t value" (primitive_type) "uint8_t" (identifier) "value" ()) ")" (compound_statement) "{\n AT89C51Uart *ua = eventData;\n UartCmd cmd;\n uint8_t diff;\n uint8_t bits;\n uint8_t msk = SCON_RI | SCON_TI;\n uint8_t clrmsk = ~((ua->regSCON & msk) ^ msk);\n value = value & clrmsk;\n diff = ua->regSCON ^ value;\n ua->regSCON = value;\n //fprintf(stderr,"now %02x\n",ua->regSCON);\n update_interrupt(ua);\n if ((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)) {\n if (ua->regPCON & PCON_SMOD0) {\n ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n } else {\n ua->SM = value & (SCON_FESM0 | SCON_SM1);\n }\n switch (ua->SM) {\n default:\n case 0:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_SM1:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_FESM0:\n bits = 9;\n ua->nineBit = true;\n break;\n case SCON_FESM0 | SCON_SM1:\n bits = 9;\n ua->nineBit = true;\n break;\n\n }\n //fprintf(stderr,"Bits :%u\n",bits);\n //sleep(1);\n cmd.opcode = UART_OPC_SET_CSIZE;\n cmd.arg = bits;\n SerialDevice_Cmd(ua->backend, &cmd);\n cmd.opcode = UART_OPC_SET_BAUDRATE;\n cmd.arg = 9600;\n SerialDevice_Cmd(ua->backend, &cmd);\n }\n if (value & SCON_REN) {\n SerialDevice_StartRx(ua->backend);\n } else {\n SerialDevice_StopRx(ua->backend);\n }\n}" ({) "{" (declaration) "AT89C51Uart *ua = eventData;" (type_identifier) "AT89C51Uart" (init_declarator) "*ua = eventData" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (=) "=" (identifier) "eventData" (;) ";" (declaration) "UartCmd cmd;" (type_identifier) "UartCmd" (identifier) "cmd" (;) ";" (declaration) "uint8_t diff;" (primitive_type) "uint8_t" (identifier) "diff" (;) ";" (declaration) "uint8_t bits;" (primitive_type) "uint8_t" (identifier) "bits" (;) ";" (declaration) "uint8_t msk = SCON_RI | SCON_TI;" (primitive_type) "uint8_t" (init_declarator) "msk = SCON_RI | SCON_TI" (identifier) "msk" (=) "=" (binary_expression) "SCON_RI | SCON_TI" (identifier) "SCON_RI" (|) "|" (identifier) "SCON_TI" (;) ";" (declaration) "uint8_t clrmsk = ~((ua->regSCON & msk) ^ msk);" (primitive_type) "uint8_t" (init_declarator) "clrmsk = ~((ua->regSCON & msk) ^ msk)" (identifier) "clrmsk" (=) "=" (unary_expression) "~((ua->regSCON & msk) ^ msk)" (~) "~" (parenthesized_expression) "((ua->regSCON & msk) ^ msk)" (() "(" (binary_expression) "(ua->regSCON & msk) ^ msk" (parenthesized_expression) "(ua->regSCON & msk)" (() "(" (binary_expression) "ua->regSCON & msk" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (&) "&" (identifier) "msk" ()) ")" (^) "^" (identifier) "msk" ()) ")" (;) ";" (expression_statement) "value = value & clrmsk;" (assignment_expression) "value = value & clrmsk" (identifier) "value" (=) "=" (binary_expression) "value & clrmsk" (identifier) "value" (&) "&" (identifier) "clrmsk" (;) ";" (expression_statement) "diff = ua->regSCON ^ value;" (assignment_expression) "diff = ua->regSCON ^ value" (identifier) "diff" (=) "=" (binary_expression) "ua->regSCON ^ value" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (^) "^" (identifier) "value" (;) ";" (expression_statement) "ua->regSCON = value;" (assignment_expression) "ua->regSCON = value" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (=) "=" (identifier) "value" (;) ";" (comment) "//fprintf(stderr,"now %02x\n",ua->regSCON);" (expression_statement) "update_interrupt(ua);" (call_expression) "update_interrupt(ua)" (identifier) "update_interrupt" (argument_list) "(ua)" (() "(" (identifier) "ua" ()) ")" (;) ";" (if_statement) "if ((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)) {\n if (ua->regPCON & PCON_SMOD0) {\n ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n } else {\n ua->SM = value & (SCON_FESM0 | SCON_SM1);\n }\n switch (ua->SM) {\n default:\n case 0:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_SM1:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_FESM0:\n bits = 9;\n ua->nineBit = true;\n break;\n case SCON_FESM0 | SCON_SM1:\n bits = 9;\n ua->nineBit = true;\n break;\n\n }\n //fprintf(stderr,"Bits :%u\n",bits);\n //sleep(1);\n cmd.opcode = UART_OPC_SET_CSIZE;\n cmd.arg = bits;\n SerialDevice_Cmd(ua->backend, &cmd);\n cmd.opcode = UART_OPC_SET_BAUDRATE;\n cmd.arg = 9600;\n SerialDevice_Cmd(ua->backend, &cmd);\n }" (if) "if" (parenthesized_expression) "((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff))" (() "(" (binary_expression) "(diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)" (parenthesized_expression) "(diff & (SCON_FESM0 | SCON_SM1))" (() "(" (binary_expression) "diff & (SCON_FESM0 | SCON_SM1)" (identifier) "diff" (&) "&" (parenthesized_expression) "(SCON_FESM0 | SCON_SM1)" (() "(" (binary_expression) "SCON_FESM0 | SCON_SM1" (identifier) "SCON_FESM0" (|) "|" (identifier) "SCON_SM1" ()) ")" ()) ")" (||) "||" (parenthesized_expression) "(ua->SM == 0xff)" (() "(" (binary_expression) "ua->SM == 0xff" (field_expression) "ua->SM" (identifier) "ua" (->) "->" (field_identifier) "SM" (==) "==" (number_literal) "0xff" ()) ")" ()) ")" (compound_statement) "{\n if (ua->regPCON & PCON_SMOD0) {\n ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n } else {\n ua->SM = value & (SCON_FESM0 | SCON_SM1);\n }\n switch (ua->SM) {\n default:\n case 0:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_SM1:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_FESM0:\n bits = 9;\n ua->nineBit = true;\n break;\n case SCON_FESM0 | SCON_SM1:\n bits = 9;\n ua->nineBit = true;\n break;\n\n }\n //fprintf(stderr,"Bits :%u\n",bits);\n //sleep(1);\n cmd.opcode = UART_OPC_SET_CSIZE;\n cmd.arg = bits;\n SerialDevice_Cmd(ua->backend, &cmd);\n cmd.opcode = UART_OPC_SET_BAUDRATE;\n cmd.arg = 9600;\n SerialDevice_Cmd(ua->backend, &cmd);\n }" ({) "{" (if_statement) "if (ua->regPCON & PCON_SMOD0) {\n ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n } else {\n ua->SM = value & (SCON_FESM0 | SCON_SM1);\n }" (if) "if" (parenthesized_expression) "(ua->regPCON & PCON_SMOD0)" (() "(" (binary_expression) "ua->regPCON & PCON_SMOD0" (field_expression) "ua->regPCON" (identifier) "ua" (->) "->" (field_identifier) "regPCON" (&) "&" (identifier) "PCON_SMOD0" ()) ")" (compound_statement) "{\n ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n }" ({) "{" (expression_statement) "ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);" (assignment_expression) "ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1)" (field_expression) "ua->SM" (identifier) "ua" (->) "->" (field_identifier) "SM" (=) "=" (binary_expression) "(ua->regSCON & SCON_FESM0) | (value & SCON_SM1)" (parenthesized_expression) "(ua->regSCON & SCON_FESM0)" (() "(" (binary_expression) "ua->regSCON & SCON_FESM0" (field_expression) "ua->regSCON" (identifier) "ua" (->) "->" (field_identifier) "regSCON" (&) "&" (identifier) "SCON_FESM0" ()) ")" (|) "|" (parenthesized_expression) "(value & SCON_SM1)" (() "(" (binary_expression) "value & SCON_SM1" (identifier) "value" (&) "&" (identifier) "SCON_SM1" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n ua->SM = value & (SCON_FESM0 | SCON_SM1);\n }" (else) "else" (compound_statement) "{\n ua->SM = value & (SCON_FESM0 | SCON_SM1);\n }" ({) "{" (expression_statement) "ua->SM = value & (SCON_FESM0 | SCON_SM1);" (assignment_expression) "ua->SM = value & (SCON_FESM0 | SCON_SM1)" (field_expression) "ua->SM" (identifier) "ua" (->) "->" (field_identifier) "SM" (=) "=" (binary_expression) "value & (SCON_FESM0 | SCON_SM1)" (identifier) "value" (&) "&" (parenthesized_expression) "(SCON_FESM0 | SCON_SM1)" (() "(" (binary_expression) "SCON_FESM0 | SCON_SM1" (identifier) "SCON_FESM0" (|) "|" (identifier) "SCON_SM1" ()) ")" (;) ";" (}) "}" (switch_statement) "switch (ua->SM) {\n default:\n case 0:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_SM1:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_FESM0:\n bits = 9;\n ua->nineBit = true;\n break;\n case SCON_FESM0 | SCON_SM1:\n bits = 9;\n ua->nineBit = true;\n break;\n\n }" (switch) "switch" (parenthesized_expression) "(ua->SM)" (() "(" (field_expression) "ua->SM" (identifier) "ua" (->) "->" (field_identifier) "SM" ()) ")" (compound_statement) "{\n default:\n case 0:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_SM1:\n bits = 8;\n ua->nineBit = false;\n break;\n case SCON_FESM0:\n bits = 9;\n ua->nineBit = true;\n break;\n case SCON_FESM0 | SCON_SM1:\n bits = 9;\n ua->nineBit = true;\n break;\n\n }" ({) "{" (case_statement) "default:" (default) "default" (:) ":" (case_statement) "case 0:\n bits = 8;\n ua->nineBit = false;\n break;" (case) "case" (number_literal) "0" (:) ":" (expression_statement) "bits = 8;" (assignment_expression) "bits = 8" (identifier) "bits" (=) "=" (number_literal) "8" (;) ";" (expression_statement) "ua->nineBit = false;" (assignment_expression) "ua->nineBit = false" (field_expression) "ua->nineBit" (identifier) "ua" (->) "->" (field_identifier) "nineBit" (=) "=" (false) "false" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case SCON_SM1:\n bits = 8;\n ua->nineBit = false;\n break;" (case) "case" (identifier) "SCON_SM1" (:) ":" (expression_statement) "bits = 8;" (assignment_expression) "bits = 8" (identifier) "bits" (=) "=" (number_literal) "8" (;) ";" (expression_statement) "ua->nineBit = false;" (assignment_expression) "ua->nineBit = false" (field_expression) "ua->nineBit" (identifier) "ua" (->) "->" (field_identifier) "nineBit" (=) "=" (false) "false" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case SCON_FESM0:\n bits = 9;\n ua->nineBit = true;\n break;" (case) "case" (identifier) "SCON_FESM0" (:) ":" (expression_statement) "bits = 9;" (assignment_expression) "bits = 9" (identifier) "bits" (=) "=" (number_literal) "9" (;) ";" (expression_statement) "ua->nineBit = true;" (assignment_expression) "ua->nineBit = true" (field_expression) "ua->nineBit" (identifier) "ua" (->) "->" (field_identifier) "nineBit" (=) "=" (true) "true" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case SCON_FESM0 | SCON_SM1:\n bits = 9;\n ua->nineBit = true;\n break;" (case) "case" (binary_expression) "SCON_FESM0 | SCON_SM1" (identifier) "SCON_FESM0" (|) "|" (identifier) "SCON_SM1" (:) ":" (expression_statement) "bits = 9;" (assignment_expression) "bits = 9" (identifier) "bits" (=) "=" (number_literal) "9" (;) ";" (expression_statement) "ua->nineBit = true;" (assignment_expression) "ua->nineBit = true" (field_expression) "ua->nineBit" (identifier) "ua" (->) "->" (field_identifier) "nineBit" (=) "=" (true) "true" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (comment) "//fprintf(stderr,"Bits :%u\n",bits);" (comment) "//sleep(1);" (expression_statement) "cmd.opcode = UART_OPC_SET_CSIZE;" (assignment_expression) "cmd.opcode = UART_OPC_SET_CSIZE" (field_expression) "cmd.opcode" (identifier) "cmd" (.) "." (field_identifier) "opcode" (=) "=" (identifier) "UART_OPC_SET_CSIZE" (;) ";" (expression_statement) "cmd.arg = bits;" (assignment_expression) "cmd.arg = bits" (field_expression) "cmd.arg" (identifier) "cmd" (.) "." (field_identifier) "arg" (=) "=" (identifier) "bits" (;) ";" (expression_statement) "SerialDevice_Cmd(ua->backend, &cmd);" (call_expression) "SerialDevice_Cmd(ua->backend, &cmd)" (identifier) "SerialDevice_Cmd" (argument_list) "(ua->backend, &cmd)" (() "(" (field_expression) "ua->backend" (identifier) "ua" (->) "->" (field_identifier) "backend" (,) "," (pointer_expression) "&cmd" (&) "&" (identifier) "cmd" ()) ")" (;) ";" (expression_statement) "cmd.opcode = UART_OPC_SET_BAUDRATE;" (assignment_expression) "cmd.opcode = UART_OPC_SET_BAUDRATE" (field_expression) "cmd.opcode" (identifier) "cmd" (.) "." (field_identifier) "opcode" (=) "=" (identifier) "UART_OPC_SET_BAUDRATE" (;) ";" (expression_statement) "cmd.arg = 9600;" (assignment_expression) "cmd.arg = 9600" (field_expression) "cmd.arg" (identifier) "cmd" (.) "." (field_identifier) "arg" (=) "=" (number_literal) "9600" (;) ";" (expression_statement) "SerialDevice_Cmd(ua->backend, &cmd);" (call_expression) "SerialDevice_Cmd(ua->backend, &cmd)" (identifier) "SerialDevice_Cmd" (argument_list) "(ua->backend, &cmd)" (() "(" (field_expression) "ua->backend" (identifier) "ua" (->) "->" (field_identifier) "backend" (,) "," (pointer_expression) "&cmd" (&) "&" (identifier) "cmd" ()) ")" (;) ";" (}) "}" (if_statement) "if (value & SCON_REN) {\n SerialDevice_StartRx(ua->backend);\n } else {\n SerialDevice_StopRx(ua->backend);\n }" (if) "if" (parenthesized_expression) "(value & SCON_REN)" (() "(" (binary_expression) "value & SCON_REN" (identifier) "value" (&) "&" (identifier) "SCON_REN" ()) ")" (compound_statement) "{\n SerialDevice_StartRx(ua->backend);\n }" ({) "{" (expression_statement) "SerialDevice_StartRx(ua->backend);" (call_expression) "SerialDevice_StartRx(ua->backend)" (identifier) "SerialDevice_StartRx" (argument_list) "(ua->backend)" (() "(" (field_expression) "ua->backend" (identifier) "ua" (->) "->" (field_identifier) "backend" ()) ")" (;) ";" (}) "}" (else_clause) "else {\n SerialDevice_StopRx(ua->backend);\n }" (else) "else" (compound_statement) "{\n SerialDevice_StopRx(ua->backend);\n }" ({) "{" (expression_statement) "SerialDevice_StopRx(ua->backend);" (call_expression) "SerialDevice_StopRx(ua->backend)" (identifier) "SerialDevice_StopRx" (argument_list) "(ua->backend)" (() "(" (field_expression) "ua->backend" (identifier) "ua" (->) "->" (field_identifier) "backend" ()) ")" (;) ";" (}) "}" (}) "}" (function_definition) "static uint8_t\nsaden_read(void *eventData, uint8_t addr)\n{\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint8_t" (function_declarator) "saden_read(void *eventData, uint8_t addr)" (identifier) "saden_read" (parameter_list) "(void *eventData, uint8_t addr)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static void\nsaden_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "saden_write(void *eventData, uint8_t addr, uint8_t value)" (identifier) "saden_write" (parameter_list) "(void *eventData, uint8_t addr, uint8_t value)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" (,) "," (parameter_declaration) "uint8_t value" (primitive_type) "uint8_t" (identifier) "value" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static uint8_t\nsaddr_read(void *eventData, uint8_t addr)\n{\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint8_t" (function_declarator) "saddr_read(void *eventData, uint8_t addr)" (identifier) "saddr_read" (parameter_list) "(void *eventData, uint8_t addr)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static void\nsaddr_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "saddr_write(void *eventData, uint8_t addr, uint8_t value)" (identifier) "saddr_write" (parameter_list) "(void *eventData, uint8_t addr, uint8_t value)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" (,) "," (parameter_declaration) "uint8_t value" (primitive_type) "uint8_t" (identifier) "value" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static uint8_t\nsbuf_read(void *eventData, uint8_t addr)\n{\n AT89C51Uart *ua = eventData;\n //fprintf(stderr, "Read RXBUF %02x\n", ua->regRXBUF);\n return ua->regRXBUF;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint8_t" (function_declarator) "sbuf_read(void *eventData, uint8_t addr)" (identifier) "sbuf_read" (parameter_list) "(void *eventData, uint8_t addr)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" ()) ")" (compound_statement) "{\n AT89C51Uart *ua = eventData;\n //fprintf(stderr, "Read RXBUF %02x\n", ua->regRXBUF);\n return ua->regRXBUF;\n}" ({) "{" (declaration) "AT89C51Uart *ua = eventData;" (type_identifier) "AT89C51Uart" (init_declarator) "*ua = eventData" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (=) "=" (identifier) "eventData" (;) ";" (comment) "//fprintf(stderr, "Read RXBUF %02x\n", ua->regRXBUF);" (return_statement) "return ua->regRXBUF;" (return) "return" (field_expression) "ua->regRXBUF" (identifier) "ua" (->) "->" (field_identifier) "regRXBUF" (;) ";" (}) "}" (function_definition) "static void\nsbuf_write(void *eventData, uint8_t addr, uint8_t value)\n{\n AT89C51Uart *ua = eventData;\n ua->regTXBUF = value;\n fprintf(stderr, "Write sbuf: 0x%02x\n",value);\n SerialDevice_StartTx(ua->backend);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "sbuf_write(void *eventData, uint8_t addr, uint8_t value)" (identifier) "sbuf_write" (parameter_list) "(void *eventData, uint8_t addr, uint8_t value)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" (,) "," (parameter_declaration) "uint8_t value" (primitive_type) "uint8_t" (identifier) "value" ()) ")" (compound_statement) "{\n AT89C51Uart *ua = eventData;\n ua->regTXBUF = value;\n fprintf(stderr, "Write sbuf: 0x%02x\n",value);\n SerialDevice_StartTx(ua->backend);\n}" ({) "{" (declaration) "AT89C51Uart *ua = eventData;" (type_identifier) "AT89C51Uart" (init_declarator) "*ua = eventData" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (=) "=" (identifier) "eventData" (;) ";" (expression_statement) "ua->regTXBUF = value;" (assignment_expression) "ua->regTXBUF = value" (field_expression) "ua->regTXBUF" (identifier) "ua" (->) "->" (field_identifier) "regTXBUF" (=) "=" (identifier) "value" (;) ";" (expression_statement) "fprintf(stderr, "Write sbuf: 0x%02x\n",value);" (call_expression) "fprintf(stderr, "Write sbuf: 0x%02x\n",value)" (identifier) "fprintf" (argument_list) "(stderr, "Write sbuf: 0x%02x\n",value)" (() "(" (identifier) "stderr" (,) "," (string_literal) ""Write sbuf: 0x%02x\n"" (") """ (string_content) "Write sbuf: 0x%02x" (escape_sequence) "\n" (") """ (,) "," (identifier) "value" ()) ")" (;) ";" (expression_statement) "SerialDevice_StartTx(ua->backend);" (call_expression) "SerialDevice_StartTx(ua->backend)" (identifier) "SerialDevice_StartTx" (argument_list) "(ua->backend)" (() "(" (field_expression) "ua->backend" (identifier) "ua" (->) "->" (field_identifier) "backend" ()) ")" (;) ";" (}) "}" (function_definition) "static uint8_t\npcon_read(void *eventData, uint8_t addr)\n{\n AT89C51Uart *ua = eventData;\n return ua->regPCON;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "uint8_t" (function_declarator) "pcon_read(void *eventData, uint8_t addr)" (identifier) "pcon_read" (parameter_list) "(void *eventData, uint8_t addr)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" ()) ")" (compound_statement) "{\n AT89C51Uart *ua = eventData;\n return ua->regPCON;\n}" ({) "{" (declaration) "AT89C51Uart *ua = eventData;" (type_identifier) "AT89C51Uart" (init_declarator) "*ua = eventData" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (=) "=" (identifier) "eventData" (;) ";" (return_statement) "return ua->regPCON;" (return) "return" (field_expression) "ua->regPCON" (identifier) "ua" (->) "->" (field_identifier) "regPCON" (;) ";" (}) "}" (function_definition) "static void\npcon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n AT89C51Uart *ua = eventData;\n ua->regPCON = value;\n fprintf(stderr, "Warning regPCON not implemented\n");\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "pcon_write(void *eventData, uint8_t addr, uint8_t value)" (identifier) "pcon_write" (parameter_list) "(void *eventData, uint8_t addr, uint8_t value)" (() "(" (parameter_declaration) "void *eventData" (primitive_type) "void" (pointer_declarator) "*eventData" (*) "*" (identifier) "eventData" (,) "," (parameter_declaration) "uint8_t addr" (primitive_type) "uint8_t" (identifier) "addr" (,) "," (parameter_declaration) "uint8_t value" (primitive_type) "uint8_t" (identifier) "value" ()) ")" (compound_statement) "{\n AT89C51Uart *ua = eventData;\n ua->regPCON = value;\n fprintf(stderr, "Warning regPCON not implemented\n");\n}" ({) "{" (declaration) "AT89C51Uart *ua = eventData;" (type_identifier) "AT89C51Uart" (init_declarator) "*ua = eventData" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (=) "=" (identifier) "eventData" (;) ";" (expression_statement) "ua->regPCON = value;" (assignment_expression) "ua->regPCON = value" (field_expression) "ua->regPCON" (identifier) "ua" (->) "->" (field_identifier) "regPCON" (=) "=" (identifier) "value" (;) ";" (expression_statement) "fprintf(stderr, "Warning regPCON not implemented\n");" (call_expression) "fprintf(stderr, "Warning regPCON not implemented\n")" (identifier) "fprintf" (argument_list) "(stderr, "Warning regPCON not implemented\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""Warning regPCON not implemented\n"" (") """ (string_content) "Warning regPCON not implemented" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (function_definition) "void\nAT89C51Uart_New(const char *name)\n{\n AT89C51Uart *ua;\n ua = sg_new(AT89C51Uart);\n ua->backend = Uart_New(name, serial_input, serial_output, NULL, ua);\n ua->sigIrq = SigNode_New("%s.irq", name);\n ua->SM = 0xff;\n MCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua);\n MCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua);\n MCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua);\n MCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua);\n MCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua);\n}" (primitive_type) "void" (function_declarator) "AT89C51Uart_New(const char *name)" (identifier) "AT89C51Uart_New" (parameter_list) "(const char *name)" (() "(" (parameter_declaration) "const char *name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (compound_statement) "{\n AT89C51Uart *ua;\n ua = sg_new(AT89C51Uart);\n ua->backend = Uart_New(name, serial_input, serial_output, NULL, ua);\n ua->sigIrq = SigNode_New("%s.irq", name);\n ua->SM = 0xff;\n MCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua);\n MCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua);\n MCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua);\n MCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua);\n MCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua);\n}" ({) "{" (declaration) "AT89C51Uart *ua;" (type_identifier) "AT89C51Uart" (pointer_declarator) "*ua" (*) "*" (identifier) "ua" (;) ";" (expression_statement) "ua = sg_new(AT89C51Uart);" (assignment_expression) "ua = sg_new(AT89C51Uart)" (identifier) "ua" (=) "=" (call_expression) "sg_new(AT89C51Uart)" (identifier) "sg_new" (argument_list) "(AT89C51Uart)" (() "(" (identifier) "AT89C51Uart" ()) ")" (;) ";" (expression_statement) "ua->backend = Uart_New(name, serial_input, serial_output, NULL, ua);" (assignment_expression) "ua->backend = Uart_New(name, serial_input, serial_output, NULL, ua)" (field_expression) "ua->backend" (identifier) "ua" (->) "->" (field_identifier) "backend" (=) "=" (call_expression) "Uart_New(name, serial_input, serial_output, NULL, ua)" (identifier) "Uart_New" (argument_list) "(name, serial_input, serial_output, NULL, ua)" (() "(" (identifier) "name" (,) "," (identifier) "serial_input" (,) "," (identifier) "serial_output" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "ua" ()) ")" (;) ";" (expression_statement) "ua->sigIrq = SigNode_New("%s.irq", name);" (assignment_expression) "ua->sigIrq = SigNode_New("%s.irq", name)" (field_expression) "ua->sigIrq" (identifier) "ua" (->) "->" (field_identifier) "sigIrq" (=) "=" (call_expression) "SigNode_New("%s.irq", name)" (identifier) "SigNode_New" (argument_list) "("%s.irq", name)" (() "(" (string_literal) ""%s.irq"" (") """ (string_content) "%s.irq" (") """ (,) "," (identifier) "name" ()) ")" (;) ";" (expression_statement) "ua->SM = 0xff;" (assignment_expression) "ua->SM = 0xff" (field_expression) "ua->SM" (identifier) "ua" (->) "->" (field_identifier) "SM" (=) "=" (number_literal) "0xff" (;) ";" (expression_statement) "MCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua);" (call_expression) "MCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua)" (identifier) "MCS51_RegisterSFR" (argument_list) "(REG_SCON, scon_read, NULL, scon_write, ua)" (() "(" (identifier) "REG_SCON" (,) "," (identifier) "scon_read" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "scon_write" (,) "," (identifier) "ua" ()) ")" (;) ";" (expression_statement) "MCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua);" (call_expression) "MCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua)" (identifier) "MCS51_RegisterSFR" (argument_list) "(REG_SADEN, saden_read, NULL, saden_write, ua)" (() "(" (identifier) "REG_SADEN" (,) "," (identifier) "saden_read" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "saden_write" (,) "," (identifier) "ua" ()) ")" (;) ";" (expression_statement) "MCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua);" (call_expression) "MCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua)" (identifier) "MCS51_RegisterSFR" (argument_list) "(REG_SADDR, saddr_read, NULL, saddr_write, ua)" (() "(" (identifier) "REG_SADDR" (,) "," (identifier) "saddr_read" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "saddr_write" (,) "," (identifier) "ua" ()) ")" (;) ";" (expression_statement) "MCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua);" (call_expression) "MCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua)" (identifier) "MCS51_RegisterSFR" (argument_list) "(REG_SBUF, sbuf_read, NULL, sbuf_write, ua)" (() "(" (identifier) "REG_SBUF" (,) "," (identifier) "sbuf_read" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "sbuf_write" (,) "," (identifier) "ua" ()) ")" (;) ";" (expression_statement) "MCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua);" (call_expression) "MCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua)" (identifier) "MCS51_RegisterSFR" (argument_list) "(REG_PCON, pcon_read, NULL, pcon_write, ua)" (() "(" (identifier) "REG_PCON" (,) "," (identifier) "pcon_read" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "pcon_write" (,) "," (identifier) "ua" ()) ")" (;) ";" (}) "}"
1,474
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 23.38, "nodes": 928, "errors": 0, "source_hash": "880635b3593a90f0896ffe6adc6676f24e1419217291e2c67aa0a8ee2bda1878", "categorized_nodes": 629}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdint.h>", "parent": 0, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdbool.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": "<stdbool.h>", "parent": 3, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include <string.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": "system_lib_string", "text": "<string.h>", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"sglib.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": "\"sglib.h\"", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include \"bus.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": "\"bus.h\"", "parent": 12, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 16}}, {"id": 15, "type": "preproc_include", "text": "#include \"sgstring.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"sgstring.h\"", "parent": 15, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 21}}, {"id": 18, "type": "preproc_include", "text": "#include \"uart_at89c51.h\"\n", "parent": null, "children": [19, 20], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"uart_at89c51.h\"", "parent": 18, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 25}}, {"id": 21, "type": "preproc_include", "text": "#include \"cpu_mcs51.h\"\n", "parent": null, "children": [22, 23], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 23, "type": "string_literal", "text": "\"cpu_mcs51.h\"", "parent": 21, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 22}}, {"id": 24, "type": "preproc_include", "text": "#include \"serial.h\"\n", "parent": null, "children": [25, 26], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"serial.h\"", "parent": 24, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 19}}, {"id": 27, "type": "preproc_include", "text": "#include \"signode.h\"\n", "parent": null, "children": [28, 29], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"signode.h\"", "parent": 27, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 20}}, {"id": 30, "type": "preproc_def", "text": "#define REG_SCON\t(0x98)\n", "parent": null, "children": [31, 32, 33], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 32, "type": "identifier", "text": "REG_SCON", "parent": 30, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 16}}, {"id": 33, "type": "preproc_arg", "text": "(0x98)", "parent": 30, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 23}}, {"id": 34, "type": "preproc_def", "text": "#define\t\tSCON_RI\t\t(1 << 0)\n", "parent": null, "children": [35, 36, 37], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 35, "type": "#define", "text": "#define", "parent": 34, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 36, "type": "identifier", "text": "SCON_RI", "parent": 34, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 16}}, {"id": 37, "type": "preproc_arg", "text": "(1 << 0)", "parent": 34, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 26}}, {"id": 38, "type": "preproc_def", "text": "#define\t\tSCON_TI\t\t(1 << 1)\n", "parent": null, "children": [39, 40, 41], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 39, "type": "#define", "text": "#define", "parent": 38, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 40, "type": "identifier", "text": "SCON_TI", "parent": 38, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 16}}, {"id": 41, "type": "preproc_arg", "text": "(1 << 1)", "parent": 38, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 26}}, {"id": 42, "type": "preproc_def", "text": "#define \tSCON_RB8\t(1 << 2)\n", "parent": null, "children": [43, 44, 45], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 43, "type": "#define", "text": "#define", "parent": 42, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 44, "type": "identifier", "text": "SCON_RB8", "parent": 42, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 17}}, {"id": 45, "type": "preproc_arg", "text": "(1 << 2)", "parent": 42, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 26}}, {"id": 46, "type": "preproc_def", "text": "#define\t\tSCON_TB8\t(1 << 3)\n", "parent": null, "children": [47, 48, 49], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 47, "type": "#define", "text": "#define", "parent": 46, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 48, "type": "identifier", "text": "SCON_TB8", "parent": 46, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 49, "type": "preproc_arg", "text": "(1 << 3)", "parent": 46, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 26}}, {"id": 50, "type": "preproc_def", "text": "#define\t\tSCON_REN\t(1 << 4)\n", "parent": null, "children": [51, 52, 53], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 51, "type": "#define", "text": "#define", "parent": 50, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 52, "type": "identifier", "text": "SCON_REN", "parent": 50, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 17}}, {"id": 53, "type": "preproc_arg", "text": "(1 << 4)", "parent": 50, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 26}}, {"id": 54, "type": "preproc_def", "text": "#define\t\tSCON_SM2\t(1 << 5)\n", "parent": null, "children": [55, 56, 57], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 56, "type": "identifier", "text": "SCON_SM2", "parent": 54, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 17}}, {"id": 57, "type": "preproc_arg", "text": "(1 << 5)", "parent": 54, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 26}}, {"id": 58, "type": "preproc_def", "text": "#define\t\tSCON_SM1\t(1 << 6)\n", "parent": null, "children": [59, 60, 61], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 60, "type": "identifier", "text": "SCON_SM1", "parent": 58, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 17}}, {"id": 61, "type": "preproc_arg", "text": "(1 << 6)", "parent": 58, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 26}}, {"id": 62, "type": "preproc_def", "text": "#define\t\tSCON_FESM0\t(1 << 7)\n", "parent": null, "children": [63, 64, 65], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 64, "type": "identifier", "text": "SCON_FESM0", "parent": 62, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 19}}, {"id": 65, "type": "preproc_arg", "text": "(1 << 7)", "parent": 62, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 28}}, {"id": 66, "type": "preproc_def", "text": "#define\tREG_SADEN\t(0xb9)\n", "parent": null, "children": [67, 68, 69], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 67, "type": "#define", "text": "#define", "parent": 66, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 68, "type": "identifier", "text": "REG_SADEN", "parent": 66, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 17}}, {"id": 69, "type": "preproc_arg", "text": "(0xb9)", "parent": 66, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 24}}, {"id": 70, "type": "preproc_def", "text": "#define REG_SADDR\t(0xa9)\n", "parent": null, "children": [71, 72, 73], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 72, "type": "identifier", "text": "REG_SADDR", "parent": 70, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 17}}, {"id": 73, "type": "preproc_arg", "text": "(0xa9)", "parent": 70, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 24}}, {"id": 74, "type": "preproc_def", "text": "#define\tREG_SBUF\t(0x99)\n", "parent": null, "children": [75, 76, 77], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 75, "type": "#define", "text": "#define", "parent": 74, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 76, "type": "identifier", "text": "REG_SBUF", "parent": 74, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 16}}, {"id": 77, "type": "preproc_arg", "text": "(0x99)", "parent": 74, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 23}}, {"id": 78, "type": "preproc_def", "text": "#define\tREG_PCON\t(0x87)\n", "parent": null, "children": [79, 80, 81], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 79, "type": "#define", "text": "#define", "parent": 78, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 80, "type": "identifier", "text": "REG_PCON", "parent": 78, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 16}}, {"id": 81, "type": "preproc_arg", "text": "(0x87)", "parent": 78, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 23}}, {"id": 82, "type": "preproc_def", "text": "#define \tPCON_IDL\t(1 << 0)\n", "parent": null, "children": [83, 84, 85], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 83, "type": "#define", "text": "#define", "parent": 82, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 84, "type": "identifier", "text": "PCON_IDL", "parent": 82, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 17}}, {"id": 85, "type": "preproc_arg", "text": "(1 << 0)", "parent": 82, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 26}}, {"id": 86, "type": "preproc_def", "text": "#define \tPCON_PD\t\t(1 << 1)\n", "parent": null, "children": [87, 88, 89], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 87, "type": "#define", "text": "#define", "parent": 86, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 88, "type": "identifier", "text": "PCON_PD", "parent": 86, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 16}}, {"id": 89, "type": "preproc_arg", "text": "(1 << 1)", "parent": 86, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 26}}, {"id": 90, "type": "preproc_def", "text": "#define \tPCON_GF0\t(1 << 2)\n", "parent": null, "children": [91, 92, 93], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 91, "type": "#define", "text": "#define", "parent": 90, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 92, "type": "identifier", "text": "PCON_GF0", "parent": 90, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 17}}, {"id": 93, "type": "preproc_arg", "text": "(1 << 2)", "parent": 90, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 26}}, {"id": 94, "type": "preproc_def", "text": "#define\t\tPCON_GF1\t(1 << 3)\n", "parent": null, "children": [95, 96, 97], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 95, "type": "#define", "text": "#define", "parent": 94, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 96, "type": "identifier", "text": "PCON_GF1", "parent": 94, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 17}}, {"id": 97, "type": "preproc_arg", "text": "(1 << 3)", "parent": 94, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 26}}, {"id": 98, "type": "preproc_def", "text": "#define\t\tPCON_POF\t(1 << 4)\n", "parent": null, "children": [99, 100, 101], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 99, "type": "#define", "text": "#define", "parent": 98, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 100, "type": "identifier", "text": "PCON_POF", "parent": 98, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 17}}, {"id": 101, "type": "preproc_arg", "text": "(1 << 4)", "parent": 98, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 26}}, {"id": 102, "type": "preproc_def", "text": "#define\t\tPCON_SMOD0\t(1 << 6)\n", "parent": null, "children": [103, 104, 105], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 103, "type": "#define", "text": "#define", "parent": 102, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 104, "type": "identifier", "text": "PCON_SMOD0", "parent": 102, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 19}}, {"id": 105, "type": "preproc_arg", "text": "(1 << 6)", "parent": 102, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 28}}, {"id": 106, "type": "preproc_def", "text": "#define\t\tPCON_SMOD1\t(1 << 7)\n", "parent": null, "children": [107, 108, 109], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 107, "type": "#define", "text": "#define", "parent": 106, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 108, "type": "identifier", "text": "PCON_SMOD1", "parent": 106, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 19}}, {"id": 109, "type": "preproc_arg", "text": "(1 << 7)", "parent": 106, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 28}}, {"id": 110, "type": "type_definition", "text": "typedef struct AT89C51_Uart {\n\tbool nineBit;\n\tuint8_t regSCON;\n\tuint8_t SM;\n\tuint8_t regSADEN;\n\tuint16_t regTXBUF;\n\tuint16_t regRXBUF;\n\tuint8_t regPCON;\n\tUartPort *backend;\n\tSigNode *sigIrq;\n} AT89C51Uart;", "parent": null, "children": [111, 112, 146], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 47, "column": 14}}, {"id": 111, "type": "typedef", "text": "typedef", "parent": 110, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 112, "type": "struct_specifier", "text": "struct AT89C51_Uart {\n\tbool nineBit;\n\tuint8_t regSCON;\n\tuint8_t SM;\n\tuint8_t regSADEN;\n\tuint16_t regTXBUF;\n\tuint16_t regRXBUF;\n\tuint8_t regPCON;\n\tUartPort *backend;\n\tSigNode *sigIrq;\n}", "parent": 110, "children": [113, 114], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 47, "column": 1}}, {"id": 113, "type": "struct", "text": "struct", "parent": 112, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 114, "type": "type_identifier", "text": "AT89C51_Uart", "parent": 112, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 27}}, {"id": 115, "type": "field_declaration", "text": "bool nineBit;", "parent": 112, "children": [116, 117], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 14}}, {"id": 116, "type": "primitive_type", "text": "bool", "parent": 115, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 5}}, {"id": 117, "type": "field_identifier", "text": "nineBit", "parent": 115, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 13}}, {"id": 118, "type": "field_declaration", "text": "uint8_t regSCON;", "parent": 112, "children": [119, 120], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 17}}, {"id": 119, "type": "primitive_type", "text": "uint8_t", "parent": 118, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 8}}, {"id": 120, "type": "field_identifier", "text": "regSCON", "parent": 118, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 16}}, {"id": 121, "type": "field_declaration", "text": "uint8_t SM;", "parent": 112, "children": [122, 123], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 12}}, {"id": 122, "type": "primitive_type", "text": "uint8_t", "parent": 121, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 8}}, {"id": 123, "type": "field_identifier", "text": "SM", "parent": 121, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 11}}, {"id": 124, "type": "field_declaration", "text": "uint8_t regSADEN;", "parent": 112, "children": [125, 126], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 18}}, {"id": 125, "type": "primitive_type", "text": "uint8_t", "parent": 124, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 8}}, {"id": 126, "type": "field_identifier", "text": "regSADEN", "parent": 124, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 17}}, {"id": 127, "type": "field_declaration", "text": "uint16_t regTXBUF;", "parent": 112, "children": [128, 129], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 19}}, {"id": 128, "type": "primitive_type", "text": "uint16_t", "parent": 127, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 9}}, {"id": 129, "type": "field_identifier", "text": "regTXBUF", "parent": 127, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 18}}, {"id": 130, "type": "field_declaration", "text": "uint16_t regRXBUF;", "parent": 112, "children": [131, 132], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 19}}, {"id": 131, "type": "primitive_type", "text": "uint16_t", "parent": 130, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 9}}, {"id": 132, "type": "field_identifier", "text": "regRXBUF", "parent": 130, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 18}}, {"id": 133, "type": "field_declaration", "text": "uint8_t regPCON;", "parent": 112, "children": [134, 135], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 17}}, {"id": 134, "type": "primitive_type", "text": "uint8_t", "parent": 133, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 135, "type": "field_identifier", "text": "regPCON", "parent": 133, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 16}}, {"id": 136, "type": "field_declaration", "text": "UartPort *backend;", "parent": 112, "children": [137, 138], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 19}}, {"id": 137, "type": "type_identifier", "text": "UartPort", "parent": 136, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 9}}, {"id": 138, "type": "pointer_declarator", "text": "*backend", "parent": 136, "children": [139, 140], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 18}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 11}}, {"id": 140, "type": "field_identifier", "text": "backend", "parent": 138, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 18}}, {"id": 141, "type": "field_declaration", "text": "SigNode *sigIrq;", "parent": 112, "children": [142, 143], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 17}}, {"id": 142, "type": "type_identifier", "text": "SigNode", "parent": 141, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 8}}, {"id": 143, "type": "pointer_declarator", "text": "*sigIrq", "parent": 141, "children": [144, 145], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 16}}, {"id": 144, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 10}}, {"id": 145, "type": "field_identifier", "text": "sigIrq", "parent": 143, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 16}}, {"id": 146, "type": "type_identifier", "text": "AT89C51Uart", "parent": 110, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 13}}, {"id": 147, "type": "function_definition", "text": "static void\nupdate_interrupt(AT89C51Uart * ua)\n{\n\tif (ua->regSCON & (SCON_RI | SCON_TI)) {\n\t\tSigNode_Set(ua->sigIrq, SIG_LOW);\n\t} else {\n\t\tSigNode_Set(ua->sigIrq, SIG_OPEN);\n\t}\n}", "parent": null, "children": [148, 149], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 57, "column": 1}}, {"id": 148, "type": "primitive_type", "text": "void", "parent": 147, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 11}}, {"id": 149, "type": "function_declarator", "text": "update_interrupt(AT89C51Uart * ua)", "parent": 147, "children": [150, 151], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 34}}, {"id": 150, "type": "identifier", "text": "update_interrupt", "parent": 149, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 16}}, {"id": 151, "type": "parameter_list", "text": "(AT89C51Uart * ua)", "parent": 149, "children": [152], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 34}}, {"id": 152, "type": "parameter_declaration", "text": "AT89C51Uart * ua", "parent": 151, "children": [153, 154], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 33}}, {"id": 153, "type": "type_identifier", "text": "AT89C51Uart", "parent": 152, "children": [], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 50, "column": 28}}, {"id": 154, "type": "pointer_declarator", "text": "* ua", "parent": 152, "children": [155, 156], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 33}}, {"id": 155, "type": "*", "text": "*", "parent": 154, "children": [], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 30}}, {"id": 156, "type": "identifier", "text": "ua", "parent": 154, "children": [], "start_point": {"row": 50, "column": 31}, "end_point": {"row": 50, "column": 33}}, {"id": 157, "type": "if_statement", "text": "if (ua->regSCON & (SCON_RI | SCON_TI)) {\n\t\tSigNode_Set(ua->sigIrq, SIG_LOW);\n\t} else {\n\t\tSigNode_Set(ua->sigIrq, SIG_OPEN);\n\t}", "parent": 147, "children": [158, 174], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 56, "column": 2}}, {"id": 158, "type": "parenthesized_expression", "text": "(ua->regSCON & (SCON_RI | SCON_TI))", "parent": 157, "children": [159], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 39}}, {"id": 159, "type": "binary_expression", "text": "ua->regSCON & (SCON_RI | SCON_TI)", "parent": 158, "children": [160, 163], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 38}}, {"id": 160, "type": "field_expression", "text": "ua->regSCON", "parent": 159, "children": [161, 162], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 16}}, {"id": 161, "type": "identifier", "text": "ua", "parent": 160, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 7}}, {"id": 162, "type": "field_identifier", "text": "regSCON", "parent": 160, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 16}}, {"id": 163, "type": "parenthesized_expression", "text": "(SCON_RI | SCON_TI)", "parent": 159, "children": [164], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 38}}, {"id": 164, "type": "binary_expression", "text": "SCON_RI | SCON_TI", "parent": 163, "children": [165, 166], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 37}}, {"id": 165, "type": "identifier", "text": "SCON_RI", "parent": 164, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 27}}, {"id": 166, "type": "identifier", "text": "SCON_TI", "parent": 164, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 37}}, {"id": 167, "type": "call_expression", "text": "SigNode_Set(ua->sigIrq, SIG_LOW)", "parent": 157, "children": [168, 169], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 34}}, {"id": 168, "type": "identifier", "text": "SigNode_Set", "parent": 167, "children": [], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 53, "column": 13}}, {"id": 169, "type": "argument_list", "text": "(ua->sigIrq, SIG_LOW)", "parent": 167, "children": [170, 173], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 34}}, {"id": 170, "type": "field_expression", "text": "ua->sigIrq", "parent": 169, "children": [171, 172], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 24}}, {"id": 171, "type": "identifier", "text": "ua", "parent": 170, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 16}}, {"id": 172, "type": "field_identifier", "text": "sigIrq", "parent": 170, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 24}}, {"id": 173, "type": "identifier", "text": "SIG_LOW", "parent": 169, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 33}}, {"id": 174, "type": "else_clause", "text": "else {\n\t\tSigNode_Set(ua->sigIrq, SIG_OPEN);\n\t}", "parent": 157, "children": [], "start_point": {"row": 54, "column": 3}, "end_point": {"row": 56, "column": 2}}, {"id": 175, "type": "call_expression", "text": "SigNode_Set(ua->sigIrq, SIG_OPEN)", "parent": 174, "children": [176, 177], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 35}}, {"id": 176, "type": "identifier", "text": "SigNode_Set", "parent": 175, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 13}}, {"id": 177, "type": "argument_list", "text": "(ua->sigIrq, SIG_OPEN)", "parent": 175, "children": [178, 181], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 35}}, {"id": 178, "type": "field_expression", "text": "ua->sigIrq", "parent": 177, "children": [179, 180], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 24}}, {"id": 179, "type": "identifier", "text": "ua", "parent": 178, "children": [], "start_point": {"row": 55, "column": 14}, "end_point": {"row": 55, "column": 16}}, {"id": 180, "type": "field_identifier", "text": "sigIrq", "parent": 178, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 24}}, {"id": 181, "type": "identifier", "text": "SIG_OPEN", "parent": 177, "children": [], "start_point": {"row": 55, "column": 26}, "end_point": {"row": 55, "column": 34}}, {"id": 182, "type": "function_definition", "text": "static void\nserial_input(void *eventData, UartChar c)\n{\n\tAT89C51Uart *ua = eventData;\n#if 0\n\tstatic CycleCounter_t last;\n\tfprintf(stderr,\"Input 0x%x at %ld\\n\",c,CyclesToMicroseconds(CycleCounter_Get() - last));\n\tlast = CycleCounter_Get();\n#endif\n\tua->regRXBUF = c;\n\tif (c & 0x100) {\n\t\tua->regSCON = ua->regSCON | SCON_RB8;\n\t} else {\n\t\tua->regSCON = ua->regSCON & ~SCON_RB8;\n\t}\n\tif (ua->regSCON & SCON_RI) {\n\t\t/* Is there any loss detection ? */\n\t}\n\tua->regSCON |= SCON_RI;\n\tupdate_interrupt(ua);\n}", "parent": null, "children": [183, 184], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 79, "column": 1}}, {"id": 183, "type": "primitive_type", "text": "void", "parent": 182, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 11}}, {"id": 184, "type": "function_declarator", "text": "serial_input(void *eventData, UartChar c)", "parent": 182, "children": [185, 186], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 41}}, {"id": 185, "type": "identifier", "text": "serial_input", "parent": 184, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 12}}, {"id": 186, "type": "parameter_list", "text": "(void *eventData, UartChar c)", "parent": 184, "children": [187, 192], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 41}}, {"id": 187, "type": "parameter_declaration", "text": "void *eventData", "parent": 186, "children": [188, 189], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 28}}, {"id": 188, "type": "primitive_type", "text": "void", "parent": 187, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 17}}, {"id": 189, "type": "pointer_declarator", "text": "*eventData", "parent": 187, "children": [190, 191], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 28}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 19}}, {"id": 191, "type": "identifier", "text": "eventData", "parent": 189, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 28}}, {"id": 192, "type": "parameter_declaration", "text": "UartChar c", "parent": 186, "children": [193, 194], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 40}}, {"id": 193, "type": "type_identifier", "text": "UartChar", "parent": 192, "children": [], "start_point": {"row": 60, "column": 30}, "end_point": {"row": 60, "column": 38}}, {"id": 194, "type": "identifier", "text": "c", "parent": 192, "children": [], "start_point": {"row": 60, "column": 39}, "end_point": {"row": 60, "column": 40}}, {"id": 195, "type": "declaration", "text": "AT89C51Uart *ua = eventData;", "parent": 182, "children": [196, 197], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 29}}, {"id": 196, "type": "type_identifier", "text": "AT89C51Uart", "parent": 195, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 12}}, {"id": 197, "type": "init_declarator", "text": "*ua = eventData", "parent": 195, "children": [198, 201, 202], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 28}}, {"id": 198, "type": "pointer_declarator", "text": "*ua", "parent": 197, "children": [199, 200], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 16}}, {"id": 199, "type": "*", "text": "*", "parent": 198, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 14}}, {"id": 200, "type": "identifier", "text": "ua", "parent": 198, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 16}}, {"id": 201, "type": "=", "text": "=", "parent": 197, "children": [], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 18}}, {"id": 202, "type": "identifier", "text": "eventData", "parent": 197, "children": [], "start_point": {"row": 62, "column": 19}, "end_point": {"row": 62, "column": 28}}, {"id": 203, "type": "preproc_if", "text": "#if 0\n\tstatic CycleCounter_t last;\n\tfprintf(stderr,\"Input 0x%x at %ld\\n\",c,CyclesToMicroseconds(CycleCounter_Get() - last));\n\tlast = CycleCounter_Get();\n#endif", "parent": 182, "children": [204, 205, 206, 207, 232], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 204, "type": "#if", "text": "#if", "parent": 203, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 3}}, {"id": 205, "type": "number_literal", "text": "0", "parent": 203, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 5}}, {"id": 206, "type": "\n", "text": "\n", "parent": 203, "children": [], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 64, "column": 0}}, {"id": 207, "type": "declaration", "text": "static CycleCounter_t last;", "parent": 203, "children": [208, 209], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 28}}, {"id": 208, "type": "type_identifier", "text": "CycleCounter_t", "parent": 207, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 22}}, {"id": 209, "type": "identifier", "text": "last", "parent": 207, "children": [], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 27}}, {"id": 210, "type": "call_expression", "text": "fprintf(stderr,\"Input 0x%x at %ld\\n\",c,CyclesToMicroseconds(CycleCounter_Get() - last))", "parent": 203, "children": [211, 212], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 88}}, {"id": 211, "type": "identifier", "text": "fprintf", "parent": 210, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 8}}, {"id": 212, "type": "argument_list", "text": "(stderr,\"Input 0x%x at %ld\\n\",c,CyclesToMicroseconds(CycleCounter_Get() - last))", "parent": 210, "children": [213, 214, 216, 217], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 88}}, {"id": 213, "type": "identifier", "text": "stderr", "parent": 212, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 15}}, {"id": 214, "type": "string_literal", "text": "\"Input 0x%x at %ld\\n\"", "parent": 212, "children": [215], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 37}}, {"id": 215, "type": "escape_sequence", "text": "\\n", "parent": 214, "children": [], "start_point": {"row": 65, "column": 34}, "end_point": {"row": 65, "column": 36}}, {"id": 216, "type": "identifier", "text": "c", "parent": 212, "children": [], "start_point": {"row": 65, "column": 38}, "end_point": {"row": 65, "column": 39}}, {"id": 217, "type": "call_expression", "text": "CyclesToMicroseconds(CycleCounter_Get() - last)", "parent": 212, "children": [218, 219], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 87}}, {"id": 218, "type": "identifier", "text": "CyclesToMicroseconds", "parent": 217, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 60}}, {"id": 219, "type": "argument_list", "text": "(CycleCounter_Get() - last)", "parent": 217, "children": [220], "start_point": {"row": 65, "column": 60}, "end_point": {"row": 65, "column": 87}}, {"id": 220, "type": "binary_expression", "text": "CycleCounter_Get() - last", "parent": 219, "children": [221, 224, 225], "start_point": {"row": 65, "column": 61}, "end_point": {"row": 65, "column": 86}}, {"id": 221, "type": "call_expression", "text": "CycleCounter_Get()", "parent": 220, "children": [222, 223], "start_point": {"row": 65, "column": 61}, "end_point": {"row": 65, "column": 79}}, {"id": 222, "type": "identifier", "text": "CycleCounter_Get", "parent": 221, "children": [], "start_point": {"row": 65, "column": 61}, "end_point": {"row": 65, "column": 77}}, {"id": 223, "type": "argument_list", "text": "()", "parent": 221, "children": [], "start_point": {"row": 65, "column": 77}, "end_point": {"row": 65, "column": 79}}, {"id": 224, "type": "-", "text": "-", "parent": 220, "children": [], "start_point": {"row": 65, "column": 80}, "end_point": {"row": 65, "column": 81}}, {"id": 225, "type": "identifier", "text": "last", "parent": 220, "children": [], "start_point": {"row": 65, "column": 82}, "end_point": {"row": 65, "column": 86}}, {"id": 226, "type": "assignment_expression", "text": "last = CycleCounter_Get()", "parent": 203, "children": [227, 228, 229], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 26}}, {"id": 227, "type": "identifier", "text": "last", "parent": 226, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 5}}, {"id": 228, "type": "=", "text": "=", "parent": 226, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 7}}, {"id": 229, "type": "call_expression", "text": "CycleCounter_Get()", "parent": 226, "children": [230, 231], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 26}}, {"id": 230, "type": "identifier", "text": "CycleCounter_Get", "parent": 229, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 24}}, {"id": 231, "type": "argument_list", "text": "()", "parent": 229, "children": [], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 26}}, {"id": 232, "type": "#endif", "text": "#endif", "parent": 203, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 6}}, {"id": 233, "type": "assignment_expression", "text": "ua->regRXBUF = c", "parent": 182, "children": [234, 237, 238], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 17}}, {"id": 234, "type": "field_expression", "text": "ua->regRXBUF", "parent": 233, "children": [235, 236], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 13}}, {"id": 235, "type": "identifier", "text": "ua", "parent": 234, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 3}}, {"id": 236, "type": "field_identifier", "text": "regRXBUF", "parent": 234, "children": [], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 13}}, {"id": 237, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 15}}, {"id": 238, "type": "identifier", "text": "c", "parent": 233, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 17}}, {"id": 239, "type": "if_statement", "text": "if (c & 0x100) {\n\t\tua->regSCON = ua->regSCON | SCON_RB8;\n\t} else {\n\t\tua->regSCON = ua->regSCON & ~SCON_RB8;\n\t}", "parent": 182, "children": [240, 254], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 73, "column": 2}}, {"id": 240, "type": "parenthesized_expression", "text": "(c & 0x100)", "parent": 239, "children": [241], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 15}}, {"id": 241, "type": "binary_expression", "text": "c & 0x100", "parent": 240, "children": [242, 243], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 14}}, {"id": 242, "type": "identifier", "text": "c", "parent": 241, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 6}}, {"id": 243, "type": "number_literal", "text": "0x100", "parent": 241, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 14}}, {"id": 244, "type": "assignment_expression", "text": "ua->regSCON = ua->regSCON | SCON_RB8", "parent": 239, "children": [245, 248, 249], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 38}}, {"id": 245, "type": "field_expression", "text": "ua->regSCON", "parent": 244, "children": [246, 247], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 13}}, {"id": 246, "type": "identifier", "text": "ua", "parent": 245, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 4}}, {"id": 247, "type": "field_identifier", "text": "regSCON", "parent": 245, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 13}}, {"id": 248, "type": "=", "text": "=", "parent": 244, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 15}}, {"id": 249, "type": "binary_expression", "text": "ua->regSCON | SCON_RB8", "parent": 244, "children": [250, 253], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 38}}, {"id": 250, "type": "field_expression", "text": "ua->regSCON", "parent": 249, "children": [251, 252], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 27}}, {"id": 251, "type": "identifier", "text": "ua", "parent": 250, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 18}}, {"id": 252, "type": "field_identifier", "text": "regSCON", "parent": 250, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 27}}, {"id": 253, "type": "identifier", "text": "SCON_RB8", "parent": 249, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 38}}, {"id": 254, "type": "else_clause", "text": "else {\n\t\tua->regSCON = ua->regSCON & ~SCON_RB8;\n\t}", "parent": 239, "children": [], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 73, "column": 2}}, {"id": 255, "type": "assignment_expression", "text": "ua->regSCON = ua->regSCON & ~SCON_RB8", "parent": 254, "children": [256, 259, 260], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 39}}, {"id": 256, "type": "field_expression", "text": "ua->regSCON", "parent": 255, "children": [257, 258], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 13}}, {"id": 257, "type": "identifier", "text": "ua", "parent": 256, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 4}}, {"id": 258, "type": "field_identifier", "text": "regSCON", "parent": 256, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 13}}, {"id": 259, "type": "=", "text": "=", "parent": 255, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 15}}, {"id": 260, "type": "binary_expression", "text": "ua->regSCON & ~SCON_RB8", "parent": 255, "children": [261, 264], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 39}}, {"id": 261, "type": "field_expression", "text": "ua->regSCON", "parent": 260, "children": [262, 263], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 27}}, {"id": 262, "type": "identifier", "text": "ua", "parent": 261, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 18}}, {"id": 263, "type": "field_identifier", "text": "regSCON", "parent": 261, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 72, "column": 27}}, {"id": 264, "type": "unary_expression", "text": "~SCON_RB8", "parent": 260, "children": [265, 266], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 39}}, {"id": 265, "type": "~", "text": "~", "parent": 264, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 31}}, {"id": 266, "type": "identifier", "text": "SCON_RB8", "parent": 264, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 39}}, {"id": 267, "type": "if_statement", "text": "if (ua->regSCON & SCON_RI) {\n\t\t/* Is there any loss detection ? */\n\t}", "parent": 182, "children": [268], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 76, "column": 2}}, {"id": 268, "type": "parenthesized_expression", "text": "(ua->regSCON & SCON_RI)", "parent": 267, "children": [269], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 27}}, {"id": 269, "type": "binary_expression", "text": "ua->regSCON & SCON_RI", "parent": 268, "children": [270, 273], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 26}}, {"id": 270, "type": "field_expression", "text": "ua->regSCON", "parent": 269, "children": [271, 272], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 16}}, {"id": 271, "type": "identifier", "text": "ua", "parent": 270, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 7}}, {"id": 272, "type": "field_identifier", "text": "regSCON", "parent": 270, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 16}}, {"id": 273, "type": "identifier", "text": "SCON_RI", "parent": 269, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 26}}, {"id": 274, "type": "assignment_expression", "text": "ua->regSCON |= SCON_RI", "parent": 182, "children": [275, 278, 279], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 23}}, {"id": 275, "type": "field_expression", "text": "ua->regSCON", "parent": 274, "children": [276, 277], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 12}}, {"id": 276, "type": "identifier", "text": "ua", "parent": 275, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 3}}, {"id": 277, "type": "field_identifier", "text": "regSCON", "parent": 275, "children": [], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 12}}, {"id": 278, "type": "|=", "text": "|=", "parent": 274, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 15}}, {"id": 279, "type": "identifier", "text": "SCON_RI", "parent": 274, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 23}}, {"id": 280, "type": "call_expression", "text": "update_interrupt(ua)", "parent": 182, "children": [281, 282], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 21}}, {"id": 281, "type": "identifier", "text": "update_interrupt", "parent": 280, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 17}}, {"id": 282, "type": "argument_list", "text": "(ua)", "parent": 280, "children": [283], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 21}}, {"id": 283, "type": "identifier", "text": "ua", "parent": 282, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 20}}, {"id": 284, "type": "function_definition", "text": "static bool\nserial_output(void *eventData, UartChar * c)\n{\n\tAT89C51Uart *ua = eventData;\n\t*c = ua->regTXBUF;\n\tif (ua->nineBit) {\n\t\tif (ua->regSCON & SCON_TB8) {\n\t\t\t*c |= 0x100;\n\t\t}\n\t}\n\tSerialDevice_StopTx(ua->backend);\n\tua->regSCON |= SCON_TI;\n\tupdate_interrupt(ua);\n\treturn true;\n}", "parent": null, "children": [285, 286], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 95, "column": 1}}, {"id": 285, "type": "primitive_type", "text": "bool", "parent": 284, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 11}}, {"id": 286, "type": "function_declarator", "text": "serial_output(void *eventData, UartChar * c)", "parent": 284, "children": [287, 288], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 44}}, {"id": 287, "type": "identifier", "text": "serial_output", "parent": 286, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 13}}, {"id": 288, "type": "parameter_list", "text": "(void *eventData, UartChar * c)", "parent": 286, "children": [289, 294], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 44}}, {"id": 289, "type": "parameter_declaration", "text": "void *eventData", "parent": 288, "children": [290, 291], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 29}}, {"id": 290, "type": "primitive_type", "text": "void", "parent": 289, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 18}}, {"id": 291, "type": "pointer_declarator", "text": "*eventData", "parent": 289, "children": [292, 293], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 29}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 20}}, {"id": 293, "type": "identifier", "text": "eventData", "parent": 291, "children": [], "start_point": {"row": 82, "column": 20}, "end_point": {"row": 82, "column": 29}}, {"id": 294, "type": "parameter_declaration", "text": "UartChar * c", "parent": 288, "children": [295, 296], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 43}}, {"id": 295, "type": "type_identifier", "text": "UartChar", "parent": 294, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 39}}, {"id": 296, "type": "pointer_declarator", "text": "* c", "parent": 294, "children": [297, 298], "start_point": {"row": 82, "column": 40}, "end_point": {"row": 82, "column": 43}}, {"id": 297, "type": "*", "text": "*", "parent": 296, "children": [], "start_point": {"row": 82, "column": 40}, "end_point": {"row": 82, "column": 41}}, {"id": 298, "type": "identifier", "text": "c", "parent": 296, "children": [], "start_point": {"row": 82, "column": 42}, "end_point": {"row": 82, "column": 43}}, {"id": 299, "type": "declaration", "text": "AT89C51Uart *ua = eventData;", "parent": 284, "children": [300, 301], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 29}}, {"id": 300, "type": "type_identifier", "text": "AT89C51Uart", "parent": 299, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 12}}, {"id": 301, "type": "init_declarator", "text": "*ua = eventData", "parent": 299, "children": [302, 305, 306], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 28}}, {"id": 302, "type": "pointer_declarator", "text": "*ua", "parent": 301, "children": [303, 304], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 16}}, {"id": 303, "type": "*", "text": "*", "parent": 302, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 14}}, {"id": 304, "type": "identifier", "text": "ua", "parent": 302, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 16}}, {"id": 305, "type": "=", "text": "=", "parent": 301, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 18}}, {"id": 306, "type": "identifier", "text": "eventData", "parent": 301, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 28}}, {"id": 307, "type": "assignment_expression", "text": "*c = ua->regTXBUF", "parent": 284, "children": [308, 311, 312], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 18}}, {"id": 308, "type": "pointer_expression", "text": "*c", "parent": 307, "children": [309, 310], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 3}}, {"id": 309, "type": "*", "text": "*", "parent": 308, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 2}}, {"id": 310, "type": "identifier", "text": "c", "parent": 308, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 3}}, {"id": 311, "type": "=", "text": "=", "parent": 307, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 5}}, {"id": 312, "type": "field_expression", "text": "ua->regTXBUF", "parent": 307, "children": [313, 314], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 18}}, {"id": 313, "type": "identifier", "text": "ua", "parent": 312, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 8}}, {"id": 314, "type": "field_identifier", "text": "regTXBUF", "parent": 312, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 18}}, {"id": 315, "type": "if_statement", "text": "if (ua->nineBit) {\n\t\tif (ua->regSCON & SCON_TB8) {\n\t\t\t*c |= 0x100;\n\t\t}\n\t}", "parent": 284, "children": [316], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 90, "column": 2}}, {"id": 316, "type": "parenthesized_expression", "text": "(ua->nineBit)", "parent": 315, "children": [317], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 17}}, {"id": 317, "type": "field_expression", "text": "ua->nineBit", "parent": 316, "children": [318, 319], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 16}}, {"id": 318, "type": "identifier", "text": "ua", "parent": 317, "children": [], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 7}}, {"id": 319, "type": "field_identifier", "text": "nineBit", "parent": 317, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 16}}, {"id": 320, "type": "if_statement", "text": "if (ua->regSCON & SCON_TB8) {\n\t\t\t*c |= 0x100;\n\t\t}", "parent": 315, "children": [321], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 89, "column": 3}}, {"id": 321, "type": "parenthesized_expression", "text": "(ua->regSCON & SCON_TB8)", "parent": 320, "children": [322], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 29}}, {"id": 322, "type": "binary_expression", "text": "ua->regSCON & SCON_TB8", "parent": 321, "children": [323, 326], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 28}}, {"id": 323, "type": "field_expression", "text": "ua->regSCON", "parent": 322, "children": [324, 325], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 17}}, {"id": 324, "type": "identifier", "text": "ua", "parent": 323, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 8}}, {"id": 325, "type": "field_identifier", "text": "regSCON", "parent": 323, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 17}}, {"id": 326, "type": "identifier", "text": "SCON_TB8", "parent": 322, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 28}}, {"id": 327, "type": "assignment_expression", "text": "*c |= 0x100", "parent": 320, "children": [328, 331, 332], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 14}}, {"id": 328, "type": "pointer_expression", "text": "*c", "parent": 327, "children": [329, 330], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 5}}, {"id": 329, "type": "*", "text": "*", "parent": 328, "children": [], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 88, "column": 4}}, {"id": 330, "type": "identifier", "text": "c", "parent": 328, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 331, "type": "|=", "text": "|=", "parent": 327, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 8}}, {"id": 332, "type": "number_literal", "text": "0x100", "parent": 327, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 14}}, {"id": 333, "type": "call_expression", "text": "SerialDevice_StopTx(ua->backend)", "parent": 284, "children": [334, 335], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 33}}, {"id": 334, "type": "identifier", "text": "SerialDevice_StopTx", "parent": 333, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 20}}, {"id": 335, "type": "argument_list", "text": "(ua->backend)", "parent": 333, "children": [336], "start_point": {"row": 91, "column": 20}, "end_point": {"row": 91, "column": 33}}, {"id": 336, "type": "field_expression", "text": "ua->backend", "parent": 335, "children": [337, 338], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 32}}, {"id": 337, "type": "identifier", "text": "ua", "parent": 336, "children": [], "start_point": {"row": 91, "column": 21}, "end_point": {"row": 91, "column": 23}}, {"id": 338, "type": "field_identifier", "text": "backend", "parent": 336, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 32}}, {"id": 339, "type": "assignment_expression", "text": "ua->regSCON |= SCON_TI", "parent": 284, "children": [340, 343, 344], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 23}}, {"id": 340, "type": "field_expression", "text": "ua->regSCON", "parent": 339, "children": [341, 342], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 12}}, {"id": 341, "type": "identifier", "text": "ua", "parent": 340, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 3}}, {"id": 342, "type": "field_identifier", "text": "regSCON", "parent": 340, "children": [], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 12}}, {"id": 343, "type": "|=", "text": "|=", "parent": 339, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 15}}, {"id": 344, "type": "identifier", "text": "SCON_TI", "parent": 339, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 23}}, {"id": 345, "type": "call_expression", "text": "update_interrupt(ua)", "parent": 284, "children": [346, 347], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 21}}, {"id": 346, "type": "identifier", "text": "update_interrupt", "parent": 345, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 17}}, {"id": 347, "type": "argument_list", "text": "(ua)", "parent": 345, "children": [348], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 21}}, {"id": 348, "type": "identifier", "text": "ua", "parent": 347, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 20}}, {"id": 349, "type": "return_statement", "text": "return true;", "parent": 284, "children": [350], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 13}}, {"id": 350, "type": "true", "text": "true", "parent": 349, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 12}}, {"id": 351, "type": "function_definition", "text": "static uint8_t\nscon_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\treturn ua->regSCON;\n}", "parent": null, "children": [352, 353], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 115, "column": 1}}, {"id": 352, "type": "primitive_type", "text": "uint8_t", "parent": 351, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 14}}, {"id": 353, "type": "function_declarator", "text": "scon_read(void *eventData, uint8_t addr)", "parent": 351, "children": [354, 355], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 40}}, {"id": 354, "type": "identifier", "text": "scon_read", "parent": 353, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 9}}, {"id": 355, "type": "parameter_list", "text": "(void *eventData, uint8_t addr)", "parent": 353, "children": [356, 361], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 40}}, {"id": 356, "type": "parameter_declaration", "text": "void *eventData", "parent": 355, "children": [357, 358], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 25}}, {"id": 357, "type": "primitive_type", "text": "void", "parent": 356, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 14}}, {"id": 358, "type": "pointer_declarator", "text": "*eventData", "parent": 356, "children": [359, 360], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 25}}, {"id": 359, "type": "*", "text": "*", "parent": 358, "children": [], "start_point": {"row": 111, "column": 15}, "end_point": {"row": 111, "column": 16}}, {"id": 360, "type": "identifier", "text": "eventData", "parent": 358, "children": [], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 25}}, {"id": 361, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 355, "children": [362, 363], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 39}}, {"id": 362, "type": "primitive_type", "text": "uint8_t", "parent": 361, "children": [], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 34}}, {"id": 363, "type": "identifier", "text": "addr", "parent": 361, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 39}}, {"id": 364, "type": "declaration", "text": "AT89C51Uart *ua = eventData;", "parent": 351, "children": [365, 366], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 29}}, {"id": 365, "type": "type_identifier", "text": "AT89C51Uart", "parent": 364, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 12}}, {"id": 366, "type": "init_declarator", "text": "*ua = eventData", "parent": 364, "children": [367, 370, 371], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 28}}, {"id": 367, "type": "pointer_declarator", "text": "*ua", "parent": 366, "children": [368, 369], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 16}}, {"id": 368, "type": "*", "text": "*", "parent": 367, "children": [], "start_point": {"row": 113, "column": 13}, "end_point": {"row": 113, "column": 14}}, {"id": 369, "type": "identifier", "text": "ua", "parent": 367, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 16}}, {"id": 370, "type": "=", "text": "=", "parent": 366, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 18}}, {"id": 371, "type": "identifier", "text": "eventData", "parent": 366, "children": [], "start_point": {"row": 113, "column": 19}, "end_point": {"row": 113, "column": 28}}, {"id": 372, "type": "return_statement", "text": "return ua->regSCON;", "parent": 351, "children": [373], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 20}}, {"id": 373, "type": "field_expression", "text": "ua->regSCON", "parent": 372, "children": [374, 375], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 19}}, {"id": 374, "type": "identifier", "text": "ua", "parent": 373, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 10}}, {"id": 375, "type": "field_identifier", "text": "regSCON", "parent": 373, "children": [], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 19}}, {"id": 376, "type": "function_definition", "text": "static void\nscon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;\n\tUartCmd cmd;\n\tuint8_t diff;\n\tuint8_t bits;\n\tuint8_t msk = SCON_RI | SCON_TI;\n\tuint8_t clrmsk = ~((ua->regSCON & msk) ^ msk);\n\tvalue = value & clrmsk;\n\tdiff = ua->regSCON ^ value;\n\tua->regSCON = value;\n\t//fprintf(stderr,\"now %02x\\n\",ua->regSCON);\n\tupdate_interrupt(ua);\n\tif ((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)) {\n\t\tif (ua->regPCON & PCON_SMOD0) {\n\t\t\tua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n\t\t} else {\n\t\t\tua->SM = value & (SCON_FESM0 | SCON_SM1);\n\t\t}\n\t\tswitch (ua->SM) {\n\t\t default:\n\t\t case 0:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;\n\t\t case SCON_SM1:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;\n\t\t case SCON_FESM0:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;\n\t\t case SCON_FESM0 | SCON_SM1:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;\n\n\t\t}\n\t\t//fprintf(stderr,\"Bits :%u\\n\",bits);\n\t\t//sleep(1);\n\t\tcmd.opcode = UART_OPC_SET_CSIZE;\n\t\tcmd.arg = bits;\n\t\tSerialDevice_Cmd(ua->backend, &cmd);\n\t\tcmd.opcode = UART_OPC_SET_BAUDRATE;\n\t\tcmd.arg = 9600;\n\t\tSerialDevice_Cmd(ua->backend, &cmd);\n\t}\n\tif (value & SCON_REN) {\n\t\tSerialDevice_StartRx(ua->backend);\n\t} else {\n\t\tSerialDevice_StopRx(ua->backend);\n\t}\n}", "parent": null, "children": [377, 378], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 377, "type": "primitive_type", "text": "void", "parent": 376, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 11}}, {"id": 378, "type": "function_declarator", "text": "scon_write(void *eventData, uint8_t addr, uint8_t value)", "parent": 376, "children": [379, 380], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 56}}, {"id": 379, "type": "identifier", "text": "scon_write", "parent": 378, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 10}}, {"id": 380, "type": "parameter_list", "text": "(void *eventData, uint8_t addr, uint8_t value)", "parent": 378, "children": [381, 386, 389], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 56}}, {"id": 381, "type": "parameter_declaration", "text": "void *eventData", "parent": 380, "children": [382, 383], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 26}}, {"id": 382, "type": "primitive_type", "text": "void", "parent": 381, "children": [], "start_point": {"row": 118, "column": 11}, "end_point": {"row": 118, "column": 15}}, {"id": 383, "type": "pointer_declarator", "text": "*eventData", "parent": 381, "children": [384, 385], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 26}}, {"id": 384, "type": "*", "text": "*", "parent": 383, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 17}}, {"id": 385, "type": "identifier", "text": "eventData", "parent": 383, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 26}}, {"id": 386, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 380, "children": [387, 388], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 40}}, {"id": 387, "type": "primitive_type", "text": "uint8_t", "parent": 386, "children": [], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 35}}, {"id": 388, "type": "identifier", "text": "addr", "parent": 386, "children": [], "start_point": {"row": 118, "column": 36}, "end_point": {"row": 118, "column": 40}}, {"id": 389, "type": "parameter_declaration", "text": "uint8_t value", "parent": 380, "children": [390, 391], "start_point": {"row": 118, "column": 42}, "end_point": {"row": 118, "column": 55}}, {"id": 390, "type": "primitive_type", "text": "uint8_t", "parent": 389, "children": [], "start_point": {"row": 118, "column": 42}, "end_point": {"row": 118, "column": 49}}, {"id": 391, "type": "identifier", "text": "value", "parent": 389, "children": [], "start_point": {"row": 118, "column": 50}, "end_point": {"row": 118, "column": 55}}, {"id": 392, "type": "declaration", "text": "AT89C51Uart *ua = eventData;", "parent": 376, "children": [393, 394], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 29}}, {"id": 393, "type": "type_identifier", "text": "AT89C51Uart", "parent": 392, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 12}}, {"id": 394, "type": "init_declarator", "text": "*ua = eventData", "parent": 392, "children": [395, 398, 399], "start_point": {"row": 120, "column": 13}, "end_point": {"row": 120, "column": 28}}, {"id": 395, "type": "pointer_declarator", "text": "*ua", "parent": 394, "children": [396, 397], "start_point": {"row": 120, "column": 13}, "end_point": {"row": 120, "column": 16}}, {"id": 396, "type": "*", "text": "*", "parent": 395, "children": [], "start_point": {"row": 120, "column": 13}, "end_point": {"row": 120, "column": 14}}, {"id": 397, "type": "identifier", "text": "ua", "parent": 395, "children": [], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 16}}, {"id": 398, "type": "=", "text": "=", "parent": 394, "children": [], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 18}}, {"id": 399, "type": "identifier", "text": "eventData", "parent": 394, "children": [], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 28}}, {"id": 400, "type": "declaration", "text": "UartCmd cmd;", "parent": 376, "children": [401, 402], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 13}}, {"id": 401, "type": "type_identifier", "text": "UartCmd", "parent": 400, "children": [], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 121, "column": 8}}, {"id": 402, "type": "identifier", "text": "cmd", "parent": 400, "children": [], "start_point": {"row": 121, "column": 9}, "end_point": {"row": 121, "column": 12}}, {"id": 403, "type": "declaration", "text": "uint8_t diff;", "parent": 376, "children": [404, 405], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 14}}, {"id": 404, "type": "primitive_type", "text": "uint8_t", "parent": 403, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 8}}, {"id": 405, "type": "identifier", "text": "diff", "parent": 403, "children": [], "start_point": {"row": 122, "column": 9}, "end_point": {"row": 122, "column": 13}}, {"id": 406, "type": "declaration", "text": "uint8_t bits;", "parent": 376, "children": [407, 408], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 14}}, {"id": 407, "type": "primitive_type", "text": "uint8_t", "parent": 406, "children": [], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 123, "column": 8}}, {"id": 408, "type": "identifier", "text": "bits", "parent": 406, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 13}}, {"id": 409, "type": "declaration", "text": "uint8_t msk = SCON_RI | SCON_TI;", "parent": 376, "children": [410, 411], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 33}}, {"id": 410, "type": "primitive_type", "text": "uint8_t", "parent": 409, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 8}}, {"id": 411, "type": "init_declarator", "text": "msk = SCON_RI | SCON_TI", "parent": 409, "children": [412, 413, 414], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 32}}, {"id": 412, "type": "identifier", "text": "msk", "parent": 411, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 12}}, {"id": 413, "type": "=", "text": "=", "parent": 411, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 14}}, {"id": 414, "type": "binary_expression", "text": "SCON_RI | SCON_TI", "parent": 411, "children": [415, 416], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 32}}, {"id": 415, "type": "identifier", "text": "SCON_RI", "parent": 414, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 22}}, {"id": 416, "type": "identifier", "text": "SCON_TI", "parent": 414, "children": [], "start_point": {"row": 124, "column": 25}, "end_point": {"row": 124, "column": 32}}, {"id": 417, "type": "declaration", "text": "uint8_t clrmsk = ~((ua->regSCON & msk) ^ msk);", "parent": 376, "children": [418, 419], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 47}}, {"id": 418, "type": "primitive_type", "text": "uint8_t", "parent": 417, "children": [], "start_point": {"row": 125, "column": 1}, "end_point": {"row": 125, "column": 8}}, {"id": 419, "type": "init_declarator", "text": "clrmsk = ~((ua->regSCON & msk) ^ msk)", "parent": 417, "children": [420, 421, 422], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 46}}, {"id": 420, "type": "identifier", "text": "clrmsk", "parent": 419, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 15}}, {"id": 421, "type": "=", "text": "=", "parent": 419, "children": [], "start_point": {"row": 125, "column": 16}, "end_point": {"row": 125, "column": 17}}, {"id": 422, "type": "unary_expression", "text": "~((ua->regSCON & msk) ^ msk)", "parent": 419, "children": [423, 424], "start_point": {"row": 125, "column": 18}, "end_point": {"row": 125, "column": 46}}, {"id": 423, "type": "~", "text": "~", "parent": 422, "children": [], "start_point": {"row": 125, "column": 18}, "end_point": {"row": 125, "column": 19}}, {"id": 424, "type": "parenthesized_expression", "text": "((ua->regSCON & msk) ^ msk)", "parent": 422, "children": [425], "start_point": {"row": 125, "column": 19}, "end_point": {"row": 125, "column": 46}}, {"id": 425, "type": "binary_expression", "text": "(ua->regSCON & msk) ^ msk", "parent": 424, "children": [426, 432, 433], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 45}}, {"id": 426, "type": "parenthesized_expression", "text": "(ua->regSCON & msk)", "parent": 425, "children": [427], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 39}}, {"id": 427, "type": "binary_expression", "text": "ua->regSCON & msk", "parent": 426, "children": [428, 431], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 38}}, {"id": 428, "type": "field_expression", "text": "ua->regSCON", "parent": 427, "children": [429, 430], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 32}}, {"id": 429, "type": "identifier", "text": "ua", "parent": 428, "children": [], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 23}}, {"id": 430, "type": "field_identifier", "text": "regSCON", "parent": 428, "children": [], "start_point": {"row": 125, "column": 25}, "end_point": {"row": 125, "column": 32}}, {"id": 431, "type": "identifier", "text": "msk", "parent": 427, "children": [], "start_point": {"row": 125, "column": 35}, "end_point": {"row": 125, "column": 38}}, {"id": 432, "type": "^", "text": "^", "parent": 425, "children": [], "start_point": {"row": 125, "column": 40}, "end_point": {"row": 125, "column": 41}}, {"id": 433, "type": "identifier", "text": "msk", "parent": 425, "children": [], "start_point": {"row": 125, "column": 42}, "end_point": {"row": 125, "column": 45}}, {"id": 434, "type": "assignment_expression", "text": "value = value & clrmsk", "parent": 376, "children": [435, 436, 437], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 23}}, {"id": 435, "type": "identifier", "text": "value", "parent": 434, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 6}}, {"id": 436, "type": "=", "text": "=", "parent": 434, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 8}}, {"id": 437, "type": "binary_expression", "text": "value & clrmsk", "parent": 434, "children": [438, 439], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 23}}, {"id": 438, "type": "identifier", "text": "value", "parent": 437, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 14}}, {"id": 439, "type": "identifier", "text": "clrmsk", "parent": 437, "children": [], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 23}}, {"id": 440, "type": "assignment_expression", "text": "diff = ua->regSCON ^ value", "parent": 376, "children": [441, 442, 443], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 27}}, {"id": 441, "type": "identifier", "text": "diff", "parent": 440, "children": [], "start_point": {"row": 127, "column": 1}, "end_point": {"row": 127, "column": 5}}, {"id": 442, "type": "=", "text": "=", "parent": 440, "children": [], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 7}}, {"id": 443, "type": "binary_expression", "text": "ua->regSCON ^ value", "parent": 440, "children": [444, 447, 448], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 27}}, {"id": 444, "type": "field_expression", "text": "ua->regSCON", "parent": 443, "children": [445, 446], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 19}}, {"id": 445, "type": "identifier", "text": "ua", "parent": 444, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 10}}, {"id": 446, "type": "field_identifier", "text": "regSCON", "parent": 444, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 19}}, {"id": 447, "type": "^", "text": "^", "parent": 443, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 21}}, {"id": 448, "type": "identifier", "text": "value", "parent": 443, "children": [], "start_point": {"row": 127, "column": 22}, "end_point": {"row": 127, "column": 27}}, {"id": 449, "type": "assignment_expression", "text": "ua->regSCON = value", "parent": 376, "children": [450, 453, 454], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 20}}, {"id": 450, "type": "field_expression", "text": "ua->regSCON", "parent": 449, "children": [451, 452], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 12}}, {"id": 451, "type": "identifier", "text": "ua", "parent": 450, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 3}}, {"id": 452, "type": "field_identifier", "text": "regSCON", "parent": 450, "children": [], "start_point": {"row": 128, "column": 5}, "end_point": {"row": 128, "column": 12}}, {"id": 453, "type": "=", "text": "=", "parent": 449, "children": [], "start_point": {"row": 128, "column": 13}, "end_point": {"row": 128, "column": 14}}, {"id": 454, "type": "identifier", "text": "value", "parent": 449, "children": [], "start_point": {"row": 128, "column": 15}, "end_point": {"row": 128, "column": 20}}, {"id": 455, "type": "call_expression", "text": "update_interrupt(ua)", "parent": 376, "children": [456, 457], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 21}}, {"id": 456, "type": "identifier", "text": "update_interrupt", "parent": 455, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 17}}, {"id": 457, "type": "argument_list", "text": "(ua)", "parent": 455, "children": [458], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 21}}, {"id": 458, "type": "identifier", "text": "ua", "parent": 457, "children": [], "start_point": {"row": 130, "column": 18}, "end_point": {"row": 130, "column": 20}}, {"id": 459, "type": "if_statement", "text": "if ((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)) {\n\t\tif (ua->regPCON & PCON_SMOD0) {\n\t\t\tua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n\t\t} else {\n\t\t\tua->SM = value & (SCON_FESM0 | SCON_SM1);\n\t\t}\n\t\tswitch (ua->SM) {\n\t\t default:\n\t\t case 0:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;\n\t\t case SCON_SM1:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;\n\t\t case SCON_FESM0:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;\n\t\t case SCON_FESM0 | SCON_SM1:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;\n\n\t\t}\n\t\t//fprintf(stderr,\"Bits :%u\\n\",bits);\n\t\t//sleep(1);\n\t\tcmd.opcode = UART_OPC_SET_CSIZE;\n\t\tcmd.arg = bits;\n\t\tSerialDevice_Cmd(ua->backend, &cmd);\n\t\tcmd.opcode = UART_OPC_SET_BAUDRATE;\n\t\tcmd.arg = 9600;\n\t\tSerialDevice_Cmd(ua->backend, &cmd);\n\t}", "parent": 376, "children": [460], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 165, "column": 2}}, {"id": 460, "type": "parenthesized_expression", "text": "((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff))", "parent": 459, "children": [461], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 58}}, {"id": 461, "type": "binary_expression", "text": "(diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)", "parent": 460, "children": [462, 469, 470], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 57}}, {"id": 462, "type": "parenthesized_expression", "text": "(diff & (SCON_FESM0 | SCON_SM1))", "parent": 461, "children": [463], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 37}}, {"id": 463, "type": "binary_expression", "text": "diff & (SCON_FESM0 | SCON_SM1)", "parent": 462, "children": [464, 465], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 36}}, {"id": 464, "type": "identifier", "text": "diff", "parent": 463, "children": [], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 10}}, {"id": 465, "type": "parenthesized_expression", "text": "(SCON_FESM0 | SCON_SM1)", "parent": 463, "children": [466], "start_point": {"row": 131, "column": 13}, "end_point": {"row": 131, "column": 36}}, {"id": 466, "type": "binary_expression", "text": "SCON_FESM0 | SCON_SM1", "parent": 465, "children": [467, 468], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 35}}, {"id": 467, "type": "identifier", "text": "SCON_FESM0", "parent": 466, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 24}}, {"id": 468, "type": "identifier", "text": "SCON_SM1", "parent": 466, "children": [], "start_point": {"row": 131, "column": 27}, "end_point": {"row": 131, "column": 35}}, {"id": 469, "type": "||", "text": "||", "parent": 461, "children": [], "start_point": {"row": 131, "column": 38}, "end_point": {"row": 131, "column": 40}}, {"id": 470, "type": "parenthesized_expression", "text": "(ua->SM == 0xff)", "parent": 461, "children": [471], "start_point": {"row": 131, "column": 41}, "end_point": {"row": 131, "column": 57}}, {"id": 471, "type": "binary_expression", "text": "ua->SM == 0xff", "parent": 470, "children": [472, 475, 476], "start_point": {"row": 131, "column": 42}, "end_point": {"row": 131, "column": 56}}, {"id": 472, "type": "field_expression", "text": "ua->SM", "parent": 471, "children": [473, 474], "start_point": {"row": 131, "column": 42}, "end_point": {"row": 131, "column": 48}}, {"id": 473, "type": "identifier", "text": "ua", "parent": 472, "children": [], "start_point": {"row": 131, "column": 42}, "end_point": {"row": 131, "column": 44}}, {"id": 474, "type": "field_identifier", "text": "SM", "parent": 472, "children": [], "start_point": {"row": 131, "column": 46}, "end_point": {"row": 131, "column": 48}}, {"id": 475, "type": "==", "text": "==", "parent": 471, "children": [], "start_point": {"row": 131, "column": 49}, "end_point": {"row": 131, "column": 51}}, {"id": 476, "type": "number_literal", "text": "0xff", "parent": 471, "children": [], "start_point": {"row": 131, "column": 52}, "end_point": {"row": 131, "column": 56}}, {"id": 477, "type": "if_statement", "text": "if (ua->regPCON & PCON_SMOD0) {\n\t\t\tua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n\t\t} else {\n\t\t\tua->SM = value & (SCON_FESM0 | SCON_SM1);\n\t\t}", "parent": 459, "children": [478, 500], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 136, "column": 3}}, {"id": 478, "type": "parenthesized_expression", "text": "(ua->regPCON & PCON_SMOD0)", "parent": 477, "children": [479], "start_point": {"row": 132, "column": 5}, "end_point": {"row": 132, "column": 31}}, {"id": 479, "type": "binary_expression", "text": "ua->regPCON & PCON_SMOD0", "parent": 478, "children": [480, 483], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 30}}, {"id": 480, "type": "field_expression", "text": "ua->regPCON", "parent": 479, "children": [481, 482], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 17}}, {"id": 481, "type": "identifier", "text": "ua", "parent": 480, "children": [], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 8}}, {"id": 482, "type": "field_identifier", "text": "regPCON", "parent": 480, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 17}}, {"id": 483, "type": "identifier", "text": "PCON_SMOD0", "parent": 479, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 30}}, {"id": 484, "type": "assignment_expression", "text": "ua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1)", "parent": 477, "children": [485, 488, 489], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 59}}, {"id": 485, "type": "field_expression", "text": "ua->SM", "parent": 484, "children": [486, 487], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 9}}, {"id": 486, "type": "identifier", "text": "ua", "parent": 485, "children": [], "start_point": {"row": 133, "column": 3}, "end_point": {"row": 133, "column": 5}}, {"id": 487, "type": "field_identifier", "text": "SM", "parent": 485, "children": [], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 9}}, {"id": 488, "type": "=", "text": "=", "parent": 484, "children": [], "start_point": {"row": 133, "column": 10}, "end_point": {"row": 133, "column": 11}}, {"id": 489, "type": "binary_expression", "text": "(ua->regSCON & SCON_FESM0) | (value & SCON_SM1)", "parent": 484, "children": [490, 496], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 59}}, {"id": 490, "type": "parenthesized_expression", "text": "(ua->regSCON & SCON_FESM0)", "parent": 489, "children": [491], "start_point": {"row": 133, "column": 12}, "end_point": {"row": 133, "column": 38}}, {"id": 491, "type": "binary_expression", "text": "ua->regSCON & SCON_FESM0", "parent": 490, "children": [492, 495], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 37}}, {"id": 492, "type": "field_expression", "text": "ua->regSCON", "parent": 491, "children": [493, 494], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 24}}, {"id": 493, "type": "identifier", "text": "ua", "parent": 492, "children": [], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 15}}, {"id": 494, "type": "field_identifier", "text": "regSCON", "parent": 492, "children": [], "start_point": {"row": 133, "column": 17}, "end_point": {"row": 133, "column": 24}}, {"id": 495, "type": "identifier", "text": "SCON_FESM0", "parent": 491, "children": [], "start_point": {"row": 133, "column": 27}, "end_point": {"row": 133, "column": 37}}, {"id": 496, "type": "parenthesized_expression", "text": "(value & SCON_SM1)", "parent": 489, "children": [497], "start_point": {"row": 133, "column": 41}, "end_point": {"row": 133, "column": 59}}, {"id": 497, "type": "binary_expression", "text": "value & SCON_SM1", "parent": 496, "children": [498, 499], "start_point": {"row": 133, "column": 42}, "end_point": {"row": 133, "column": 58}}, {"id": 498, "type": "identifier", "text": "value", "parent": 497, "children": [], "start_point": {"row": 133, "column": 42}, "end_point": {"row": 133, "column": 47}}, {"id": 499, "type": "identifier", "text": "SCON_SM1", "parent": 497, "children": [], "start_point": {"row": 133, "column": 50}, "end_point": {"row": 133, "column": 58}}, {"id": 500, "type": "else_clause", "text": "else {\n\t\t\tua->SM = value & (SCON_FESM0 | SCON_SM1);\n\t\t}", "parent": 477, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 136, "column": 3}}, {"id": 501, "type": "assignment_expression", "text": "ua->SM = value & (SCON_FESM0 | SCON_SM1)", "parent": 500, "children": [502, 505, 506], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 43}}, {"id": 502, "type": "field_expression", "text": "ua->SM", "parent": 501, "children": [503, 504], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 9}}, {"id": 503, "type": "identifier", "text": "ua", "parent": 502, "children": [], "start_point": {"row": 135, "column": 3}, "end_point": {"row": 135, "column": 5}}, {"id": 504, "type": "field_identifier", "text": "SM", "parent": 502, "children": [], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 9}}, {"id": 505, "type": "=", "text": "=", "parent": 501, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 11}}, {"id": 506, "type": "binary_expression", "text": "value & (SCON_FESM0 | SCON_SM1)", "parent": 501, "children": [507, 508], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 43}}, {"id": 507, "type": "identifier", "text": "value", "parent": 506, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 17}}, {"id": 508, "type": "parenthesized_expression", "text": "(SCON_FESM0 | SCON_SM1)", "parent": 506, "children": [509], "start_point": {"row": 135, "column": 20}, "end_point": {"row": 135, "column": 43}}, {"id": 509, "type": "binary_expression", "text": "SCON_FESM0 | SCON_SM1", "parent": 508, "children": [510, 511], "start_point": {"row": 135, "column": 21}, "end_point": {"row": 135, "column": 42}}, {"id": 510, "type": "identifier", "text": "SCON_FESM0", "parent": 509, "children": [], "start_point": {"row": 135, "column": 21}, "end_point": {"row": 135, "column": 31}}, {"id": 511, "type": "identifier", "text": "SCON_SM1", "parent": 509, "children": [], "start_point": {"row": 135, "column": 34}, "end_point": {"row": 135, "column": 42}}, {"id": 512, "type": "switch_statement", "text": "switch (ua->SM) {\n\t\t default:\n\t\t case 0:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;\n\t\t case SCON_SM1:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;\n\t\t case SCON_FESM0:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;\n\t\t case SCON_FESM0 | SCON_SM1:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;\n\n\t\t}", "parent": 459, "children": [513, 514], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 156, "column": 3}}, {"id": 513, "type": "switch", "text": "switch", "parent": 512, "children": [], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 8}}, {"id": 514, "type": "parenthesized_expression", "text": "(ua->SM)", "parent": 512, "children": [515], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 17}}, {"id": 515, "type": "field_expression", "text": "ua->SM", "parent": 514, "children": [516, 517], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 16}}, {"id": 516, "type": "identifier", "text": "ua", "parent": 515, "children": [], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 12}}, {"id": 517, "type": "field_identifier", "text": "SM", "parent": 515, "children": [], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 16}}, {"id": 518, "type": "case_statement", "text": "default:", "parent": 512, "children": [519], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 14}}, {"id": 519, "type": "default", "text": "default", "parent": 518, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 13}}, {"id": 520, "type": "case_statement", "text": "case 0:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;", "parent": 512, "children": [521, 522, 533], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 142, "column": 13}}, {"id": 521, "type": "case", "text": "case", "parent": 520, "children": [], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 10}}, {"id": 522, "type": "number_literal", "text": "0", "parent": 520, "children": [], "start_point": {"row": 139, "column": 11}, "end_point": {"row": 139, "column": 12}}, {"id": 523, "type": "assignment_expression", "text": "bits = 8", "parent": 520, "children": [524, 525, 526], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 15}}, {"id": 524, "type": "identifier", "text": "bits", "parent": 523, "children": [], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 11}}, {"id": 525, "type": "=", "text": "=", "parent": 523, "children": [], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 13}}, {"id": 526, "type": "number_literal", "text": "8", "parent": 523, "children": [], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 15}}, {"id": 527, "type": "assignment_expression", "text": "ua->nineBit = false", "parent": 520, "children": [528, 531, 532], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 23}}, {"id": 528, "type": "field_expression", "text": "ua->nineBit", "parent": 527, "children": [529, 530], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 15}}, {"id": 529, "type": "identifier", "text": "ua", "parent": 528, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 6}}, {"id": 530, "type": "field_identifier", "text": "nineBit", "parent": 528, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 15}}, {"id": 531, "type": "=", "text": "=", "parent": 527, "children": [], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 17}}, {"id": 532, "type": "false", "text": "false", "parent": 527, "children": [], "start_point": {"row": 141, "column": 18}, "end_point": {"row": 141, "column": 23}}, {"id": 533, "type": "break_statement", "text": "break;", "parent": 520, "children": [534], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 13}}, {"id": 534, "type": "break", "text": "break", "parent": 533, "children": [], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 12}}, {"id": 535, "type": "case_statement", "text": "case SCON_SM1:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;", "parent": 512, "children": [536, 537, 548], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 146, "column": 13}}, {"id": 536, "type": "case", "text": "case", "parent": 535, "children": [], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 10}}, {"id": 537, "type": "identifier", "text": "SCON_SM1", "parent": 535, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 19}}, {"id": 538, "type": "assignment_expression", "text": "bits = 8", "parent": 535, "children": [539, 540, 541], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 15}}, {"id": 539, "type": "identifier", "text": "bits", "parent": 538, "children": [], "start_point": {"row": 144, "column": 7}, "end_point": {"row": 144, "column": 11}}, {"id": 540, "type": "=", "text": "=", "parent": 538, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 13}}, {"id": 541, "type": "number_literal", "text": "8", "parent": 538, "children": [], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 15}}, {"id": 542, "type": "assignment_expression", "text": "ua->nineBit = false", "parent": 535, "children": [543, 546, 547], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 23}}, {"id": 543, "type": "field_expression", "text": "ua->nineBit", "parent": 542, "children": [544, 545], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 15}}, {"id": 544, "type": "identifier", "text": "ua", "parent": 543, "children": [], "start_point": {"row": 145, "column": 4}, "end_point": {"row": 145, "column": 6}}, {"id": 545, "type": "field_identifier", "text": "nineBit", "parent": 543, "children": [], "start_point": {"row": 145, "column": 8}, "end_point": {"row": 145, "column": 15}}, {"id": 546, "type": "=", "text": "=", "parent": 542, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 17}}, {"id": 547, "type": "false", "text": "false", "parent": 542, "children": [], "start_point": {"row": 145, "column": 18}, "end_point": {"row": 145, "column": 23}}, {"id": 548, "type": "break_statement", "text": "break;", "parent": 535, "children": [549], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 13}}, {"id": 549, "type": "break", "text": "break", "parent": 548, "children": [], "start_point": {"row": 146, "column": 7}, "end_point": {"row": 146, "column": 12}}, {"id": 550, "type": "case_statement", "text": "case SCON_FESM0:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;", "parent": 512, "children": [551, 552, 563], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 150, "column": 13}}, {"id": 551, "type": "case", "text": "case", "parent": 550, "children": [], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 147, "column": 10}}, {"id": 552, "type": "identifier", "text": "SCON_FESM0", "parent": 550, "children": [], "start_point": {"row": 147, "column": 11}, "end_point": {"row": 147, "column": 21}}, {"id": 553, "type": "assignment_expression", "text": "bits = 9", "parent": 550, "children": [554, 555, 556], "start_point": {"row": 148, "column": 7}, "end_point": {"row": 148, "column": 15}}, {"id": 554, "type": "identifier", "text": "bits", "parent": 553, "children": [], "start_point": {"row": 148, "column": 7}, "end_point": {"row": 148, "column": 11}}, {"id": 555, "type": "=", "text": "=", "parent": 553, "children": [], "start_point": {"row": 148, "column": 12}, "end_point": {"row": 148, "column": 13}}, {"id": 556, "type": "number_literal", "text": "9", "parent": 553, "children": [], "start_point": {"row": 148, "column": 14}, "end_point": {"row": 148, "column": 15}}, {"id": 557, "type": "assignment_expression", "text": "ua->nineBit = true", "parent": 550, "children": [558, 561, 562], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 22}}, {"id": 558, "type": "field_expression", "text": "ua->nineBit", "parent": 557, "children": [559, 560], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 15}}, {"id": 559, "type": "identifier", "text": "ua", "parent": 558, "children": [], "start_point": {"row": 149, "column": 4}, "end_point": {"row": 149, "column": 6}}, {"id": 560, "type": "field_identifier", "text": "nineBit", "parent": 558, "children": [], "start_point": {"row": 149, "column": 8}, "end_point": {"row": 149, "column": 15}}, {"id": 561, "type": "=", "text": "=", "parent": 557, "children": [], "start_point": {"row": 149, "column": 16}, "end_point": {"row": 149, "column": 17}}, {"id": 562, "type": "true", "text": "true", "parent": 557, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 22}}, {"id": 563, "type": "break_statement", "text": "break;", "parent": 550, "children": [564], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 13}}, {"id": 564, "type": "break", "text": "break", "parent": 563, "children": [], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 12}}, {"id": 565, "type": "case_statement", "text": "case SCON_FESM0 | SCON_SM1:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;", "parent": 512, "children": [566, 567, 580], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 154, "column": 13}}, {"id": 566, "type": "case", "text": "case", "parent": 565, "children": [], "start_point": {"row": 151, "column": 6}, "end_point": {"row": 151, "column": 10}}, {"id": 567, "type": "binary_expression", "text": "SCON_FESM0 | SCON_SM1", "parent": 565, "children": [568, 569], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 32}}, {"id": 568, "type": "identifier", "text": "SCON_FESM0", "parent": 567, "children": [], "start_point": {"row": 151, "column": 11}, "end_point": {"row": 151, "column": 21}}, {"id": 569, "type": "identifier", "text": "SCON_SM1", "parent": 567, "children": [], "start_point": {"row": 151, "column": 24}, "end_point": {"row": 151, "column": 32}}, {"id": 570, "type": "assignment_expression", "text": "bits = 9", "parent": 565, "children": [571, 572, 573], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 15}}, {"id": 571, "type": "identifier", "text": "bits", "parent": 570, "children": [], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 11}}, {"id": 572, "type": "=", "text": "=", "parent": 570, "children": [], "start_point": {"row": 152, "column": 12}, "end_point": {"row": 152, "column": 13}}, {"id": 573, "type": "number_literal", "text": "9", "parent": 570, "children": [], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 15}}, {"id": 574, "type": "assignment_expression", "text": "ua->nineBit = true", "parent": 565, "children": [575, 578, 579], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 22}}, {"id": 575, "type": "field_expression", "text": "ua->nineBit", "parent": 574, "children": [576, 577], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 15}}, {"id": 576, "type": "identifier", "text": "ua", "parent": 575, "children": [], "start_point": {"row": 153, "column": 4}, "end_point": {"row": 153, "column": 6}}, {"id": 577, "type": "field_identifier", "text": "nineBit", "parent": 575, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 15}}, {"id": 578, "type": "=", "text": "=", "parent": 574, "children": [], "start_point": {"row": 153, "column": 16}, "end_point": {"row": 153, "column": 17}}, {"id": 579, "type": "true", "text": "true", "parent": 574, "children": [], "start_point": {"row": 153, "column": 18}, "end_point": {"row": 153, "column": 22}}, {"id": 580, "type": "break_statement", "text": "break;", "parent": 565, "children": [581], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 13}}, {"id": 581, "type": "break", "text": "break", "parent": 580, "children": [], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 12}}, {"id": 582, "type": "assignment_expression", "text": "cmd.opcode = UART_OPC_SET_CSIZE", "parent": 459, "children": [583, 586, 587], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 33}}, {"id": 583, "type": "field_expression", "text": "cmd.opcode", "parent": 582, "children": [584, 585], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 12}}, {"id": 584, "type": "identifier", "text": "cmd", "parent": 583, "children": [], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 5}}, {"id": 585, "type": "field_identifier", "text": "opcode", "parent": 583, "children": [], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 12}}, {"id": 586, "type": "=", "text": "=", "parent": 582, "children": [], "start_point": {"row": 159, "column": 13}, "end_point": {"row": 159, "column": 14}}, {"id": 587, "type": "identifier", "text": "UART_OPC_SET_CSIZE", "parent": 582, "children": [], "start_point": {"row": 159, "column": 15}, "end_point": {"row": 159, "column": 33}}, {"id": 588, "type": "assignment_expression", "text": "cmd.arg = bits", "parent": 459, "children": [589, 592, 593], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 16}}, {"id": 589, "type": "field_expression", "text": "cmd.arg", "parent": 588, "children": [590, 591], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 9}}, {"id": 590, "type": "identifier", "text": "cmd", "parent": 589, "children": [], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 160, "column": 5}}, {"id": 591, "type": "field_identifier", "text": "arg", "parent": 589, "children": [], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 9}}, {"id": 592, "type": "=", "text": "=", "parent": 588, "children": [], "start_point": {"row": 160, "column": 10}, "end_point": {"row": 160, "column": 11}}, {"id": 593, "type": "identifier", "text": "bits", "parent": 588, "children": [], "start_point": {"row": 160, "column": 12}, "end_point": {"row": 160, "column": 16}}, {"id": 594, "type": "call_expression", "text": "SerialDevice_Cmd(ua->backend, &cmd)", "parent": 459, "children": [595, 596], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 37}}, {"id": 595, "type": "identifier", "text": "SerialDevice_Cmd", "parent": 594, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 18}}, {"id": 596, "type": "argument_list", "text": "(ua->backend, &cmd)", "parent": 594, "children": [597, 600], "start_point": {"row": 161, "column": 18}, "end_point": {"row": 161, "column": 37}}, {"id": 597, "type": "field_expression", "text": "ua->backend", "parent": 596, "children": [598, 599], "start_point": {"row": 161, "column": 19}, "end_point": {"row": 161, "column": 30}}, {"id": 598, "type": "identifier", "text": "ua", "parent": 597, "children": [], "start_point": {"row": 161, "column": 19}, "end_point": {"row": 161, "column": 21}}, {"id": 599, "type": "field_identifier", "text": "backend", "parent": 597, "children": [], "start_point": {"row": 161, "column": 23}, "end_point": {"row": 161, "column": 30}}, {"id": 600, "type": "pointer_expression", "text": "&cmd", "parent": 596, "children": [601], "start_point": {"row": 161, "column": 32}, "end_point": {"row": 161, "column": 36}}, {"id": 601, "type": "identifier", "text": "cmd", "parent": 600, "children": [], "start_point": {"row": 161, "column": 33}, "end_point": {"row": 161, "column": 36}}, {"id": 602, "type": "assignment_expression", "text": "cmd.opcode = UART_OPC_SET_BAUDRATE", "parent": 459, "children": [603, 606, 607], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 36}}, {"id": 603, "type": "field_expression", "text": "cmd.opcode", "parent": 602, "children": [604, 605], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 12}}, {"id": 604, "type": "identifier", "text": "cmd", "parent": 603, "children": [], "start_point": {"row": 162, "column": 2}, "end_point": {"row": 162, "column": 5}}, {"id": 605, "type": "field_identifier", "text": "opcode", "parent": 603, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 12}}, {"id": 606, "type": "=", "text": "=", "parent": 602, "children": [], "start_point": {"row": 162, "column": 13}, "end_point": {"row": 162, "column": 14}}, {"id": 607, "type": "identifier", "text": "UART_OPC_SET_BAUDRATE", "parent": 602, "children": [], "start_point": {"row": 162, "column": 15}, "end_point": {"row": 162, "column": 36}}, {"id": 608, "type": "assignment_expression", "text": "cmd.arg = 9600", "parent": 459, "children": [609, 612, 613], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 16}}, {"id": 609, "type": "field_expression", "text": "cmd.arg", "parent": 608, "children": [610, 611], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 9}}, {"id": 610, "type": "identifier", "text": "cmd", "parent": 609, "children": [], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 5}}, {"id": 611, "type": "field_identifier", "text": "arg", "parent": 609, "children": [], "start_point": {"row": 163, "column": 6}, "end_point": {"row": 163, "column": 9}}, {"id": 612, "type": "=", "text": "=", "parent": 608, "children": [], "start_point": {"row": 163, "column": 10}, "end_point": {"row": 163, "column": 11}}, {"id": 613, "type": "number_literal", "text": "9600", "parent": 608, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 16}}, {"id": 614, "type": "call_expression", "text": "SerialDevice_Cmd(ua->backend, &cmd)", "parent": 459, "children": [615, 616], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 37}}, {"id": 615, "type": "identifier", "text": "SerialDevice_Cmd", "parent": 614, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 18}}, {"id": 616, "type": "argument_list", "text": "(ua->backend, &cmd)", "parent": 614, "children": [617, 620], "start_point": {"row": 164, "column": 18}, "end_point": {"row": 164, "column": 37}}, {"id": 617, "type": "field_expression", "text": "ua->backend", "parent": 616, "children": [618, 619], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 30}}, {"id": 618, "type": "identifier", "text": "ua", "parent": 617, "children": [], "start_point": {"row": 164, "column": 19}, "end_point": {"row": 164, "column": 21}}, {"id": 619, "type": "field_identifier", "text": "backend", "parent": 617, "children": [], "start_point": {"row": 164, "column": 23}, "end_point": {"row": 164, "column": 30}}, {"id": 620, "type": "pointer_expression", "text": "&cmd", "parent": 616, "children": [621], "start_point": {"row": 164, "column": 32}, "end_point": {"row": 164, "column": 36}}, {"id": 621, "type": "identifier", "text": "cmd", "parent": 620, "children": [], "start_point": {"row": 164, "column": 33}, "end_point": {"row": 164, "column": 36}}, {"id": 622, "type": "if_statement", "text": "if (value & SCON_REN) {\n\t\tSerialDevice_StartRx(ua->backend);\n\t} else {\n\t\tSerialDevice_StopRx(ua->backend);\n\t}", "parent": 376, "children": [623, 633], "start_point": {"row": 166, "column": 1}, "end_point": {"row": 170, "column": 2}}, {"id": 623, "type": "parenthesized_expression", "text": "(value & SCON_REN)", "parent": 622, "children": [624], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 22}}, {"id": 624, "type": "binary_expression", "text": "value & SCON_REN", "parent": 623, "children": [625, 626], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 21}}, {"id": 625, "type": "identifier", "text": "value", "parent": 624, "children": [], "start_point": {"row": 166, "column": 5}, "end_point": {"row": 166, "column": 10}}, {"id": 626, "type": "identifier", "text": "SCON_REN", "parent": 624, "children": [], "start_point": {"row": 166, "column": 13}, "end_point": {"row": 166, "column": 21}}, {"id": 627, "type": "call_expression", "text": "SerialDevice_StartRx(ua->backend)", "parent": 622, "children": [628, 629], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 35}}, {"id": 628, "type": "identifier", "text": "SerialDevice_StartRx", "parent": 627, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 22}}, {"id": 629, "type": "argument_list", "text": "(ua->backend)", "parent": 627, "children": [630], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 35}}, {"id": 630, "type": "field_expression", "text": "ua->backend", "parent": 629, "children": [631, 632], "start_point": {"row": 167, "column": 23}, "end_point": {"row": 167, "column": 34}}, {"id": 631, "type": "identifier", "text": "ua", "parent": 630, "children": [], "start_point": {"row": 167, "column": 23}, "end_point": {"row": 167, "column": 25}}, {"id": 632, "type": "field_identifier", "text": "backend", "parent": 630, "children": [], "start_point": {"row": 167, "column": 27}, "end_point": {"row": 167, "column": 34}}, {"id": 633, "type": "else_clause", "text": "else {\n\t\tSerialDevice_StopRx(ua->backend);\n\t}", "parent": 622, "children": [], "start_point": {"row": 168, "column": 3}, "end_point": {"row": 170, "column": 2}}, {"id": 634, "type": "call_expression", "text": "SerialDevice_StopRx(ua->backend)", "parent": 633, "children": [635, 636], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 34}}, {"id": 635, "type": "identifier", "text": "SerialDevice_StopRx", "parent": 634, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 21}}, {"id": 636, "type": "argument_list", "text": "(ua->backend)", "parent": 634, "children": [637], "start_point": {"row": 169, "column": 21}, "end_point": {"row": 169, "column": 34}}, {"id": 637, "type": "field_expression", "text": "ua->backend", "parent": 636, "children": [638, 639], "start_point": {"row": 169, "column": 22}, "end_point": {"row": 169, "column": 33}}, {"id": 638, "type": "identifier", "text": "ua", "parent": 637, "children": [], "start_point": {"row": 169, "column": 22}, "end_point": {"row": 169, "column": 24}}, {"id": 639, "type": "field_identifier", "text": "backend", "parent": 637, "children": [], "start_point": {"row": 169, "column": 26}, "end_point": {"row": 169, "column": 33}}, {"id": 640, "type": "function_definition", "text": "static uint8_t\nsaden_read(void *eventData, uint8_t addr)\n{\n\treturn 0;\n}", "parent": null, "children": [641, 642], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 177, "column": 1}}, {"id": 641, "type": "primitive_type", "text": "uint8_t", "parent": 640, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 14}}, {"id": 642, "type": "function_declarator", "text": "saden_read(void *eventData, uint8_t addr)", "parent": 640, "children": [643, 644], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 41}}, {"id": 643, "type": "identifier", "text": "saden_read", "parent": 642, "children": [], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 10}}, {"id": 644, "type": "parameter_list", "text": "(void *eventData, uint8_t addr)", "parent": 642, "children": [645, 650], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 41}}, {"id": 645, "type": "parameter_declaration", "text": "void *eventData", "parent": 644, "children": [646, 647], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 26}}, {"id": 646, "type": "primitive_type", "text": "void", "parent": 645, "children": [], "start_point": {"row": 174, "column": 11}, "end_point": {"row": 174, "column": 15}}, {"id": 647, "type": "pointer_declarator", "text": "*eventData", "parent": 645, "children": [648, 649], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 26}}, {"id": 648, "type": "*", "text": "*", "parent": 647, "children": [], "start_point": {"row": 174, "column": 16}, "end_point": {"row": 174, "column": 17}}, {"id": 649, "type": "identifier", "text": "eventData", "parent": 647, "children": [], "start_point": {"row": 174, "column": 17}, "end_point": {"row": 174, "column": 26}}, {"id": 650, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 644, "children": [651, 652], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 40}}, {"id": 651, "type": "primitive_type", "text": "uint8_t", "parent": 650, "children": [], "start_point": {"row": 174, "column": 28}, "end_point": {"row": 174, "column": 35}}, {"id": 652, "type": "identifier", "text": "addr", "parent": 650, "children": [], "start_point": {"row": 174, "column": 36}, "end_point": {"row": 174, "column": 40}}, {"id": 653, "type": "return_statement", "text": "return 0;", "parent": 640, "children": [654], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 10}}, {"id": 654, "type": "number_literal", "text": "0", "parent": 653, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 9}}, {"id": 655, "type": "function_definition", "text": "static void\nsaden_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}", "parent": null, "children": [656, 657], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 182, "column": 1}}, {"id": 656, "type": "primitive_type", "text": "void", "parent": 655, "children": [], "start_point": {"row": 179, "column": 7}, "end_point": {"row": 179, "column": 11}}, {"id": 657, "type": "function_declarator", "text": "saden_write(void *eventData, uint8_t addr, uint8_t value)", "parent": 655, "children": [658, 659], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 180, "column": 57}}, {"id": 658, "type": "identifier", "text": "saden_write", "parent": 657, "children": [], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 180, "column": 11}}, {"id": 659, "type": "parameter_list", "text": "(void *eventData, uint8_t addr, uint8_t value)", "parent": 657, "children": [660, 665, 668], "start_point": {"row": 180, "column": 11}, "end_point": {"row": 180, "column": 57}}, {"id": 660, "type": "parameter_declaration", "text": "void *eventData", "parent": 659, "children": [661, 662], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 27}}, {"id": 661, "type": "primitive_type", "text": "void", "parent": 660, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 16}}, {"id": 662, "type": "pointer_declarator", "text": "*eventData", "parent": 660, "children": [663, 664], "start_point": {"row": 180, "column": 17}, "end_point": {"row": 180, "column": 27}}, {"id": 663, "type": "*", "text": "*", "parent": 662, "children": [], "start_point": {"row": 180, "column": 17}, "end_point": {"row": 180, "column": 18}}, {"id": 664, "type": "identifier", "text": "eventData", "parent": 662, "children": [], "start_point": {"row": 180, "column": 18}, "end_point": {"row": 180, "column": 27}}, {"id": 665, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 659, "children": [666, 667], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 41}}, {"id": 666, "type": "primitive_type", "text": "uint8_t", "parent": 665, "children": [], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 36}}, {"id": 667, "type": "identifier", "text": "addr", "parent": 665, "children": [], "start_point": {"row": 180, "column": 37}, "end_point": {"row": 180, "column": 41}}, {"id": 668, "type": "parameter_declaration", "text": "uint8_t value", "parent": 659, "children": [669, 670], "start_point": {"row": 180, "column": 43}, "end_point": {"row": 180, "column": 56}}, {"id": 669, "type": "primitive_type", "text": "uint8_t", "parent": 668, "children": [], "start_point": {"row": 180, "column": 43}, "end_point": {"row": 180, "column": 50}}, {"id": 670, "type": "identifier", "text": "value", "parent": 668, "children": [], "start_point": {"row": 180, "column": 51}, "end_point": {"row": 180, "column": 56}}, {"id": 671, "type": "function_definition", "text": "static uint8_t\nsaddr_read(void *eventData, uint8_t addr)\n{\n\treturn 0;\n}", "parent": null, "children": [672, 673], "start_point": {"row": 184, "column": 0}, "end_point": {"row": 188, "column": 1}}, {"id": 672, "type": "primitive_type", "text": "uint8_t", "parent": 671, "children": [], "start_point": {"row": 184, "column": 7}, "end_point": {"row": 184, "column": 14}}, {"id": 673, "type": "function_declarator", "text": "saddr_read(void *eventData, uint8_t addr)", "parent": 671, "children": [674, 675], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 185, "column": 41}}, {"id": 674, "type": "identifier", "text": "saddr_read", "parent": 673, "children": [], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 185, "column": 10}}, {"id": 675, "type": "parameter_list", "text": "(void *eventData, uint8_t addr)", "parent": 673, "children": [676, 681], "start_point": {"row": 185, "column": 10}, "end_point": {"row": 185, "column": 41}}, {"id": 676, "type": "parameter_declaration", "text": "void *eventData", "parent": 675, "children": [677, 678], "start_point": {"row": 185, "column": 11}, "end_point": {"row": 185, "column": 26}}, {"id": 677, "type": "primitive_type", "text": "void", "parent": 676, "children": [], "start_point": {"row": 185, "column": 11}, "end_point": {"row": 185, "column": 15}}, {"id": 678, "type": "pointer_declarator", "text": "*eventData", "parent": 676, "children": [679, 680], "start_point": {"row": 185, "column": 16}, "end_point": {"row": 185, "column": 26}}, {"id": 679, "type": "*", "text": "*", "parent": 678, "children": [], "start_point": {"row": 185, "column": 16}, "end_point": {"row": 185, "column": 17}}, {"id": 680, "type": "identifier", "text": "eventData", "parent": 678, "children": [], "start_point": {"row": 185, "column": 17}, "end_point": {"row": 185, "column": 26}}, {"id": 681, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 675, "children": [682, 683], "start_point": {"row": 185, "column": 28}, "end_point": {"row": 185, "column": 40}}, {"id": 682, "type": "primitive_type", "text": "uint8_t", "parent": 681, "children": [], "start_point": {"row": 185, "column": 28}, "end_point": {"row": 185, "column": 35}}, {"id": 683, "type": "identifier", "text": "addr", "parent": 681, "children": [], "start_point": {"row": 185, "column": 36}, "end_point": {"row": 185, "column": 40}}, {"id": 684, "type": "return_statement", "text": "return 0;", "parent": 671, "children": [685], "start_point": {"row": 187, "column": 1}, "end_point": {"row": 187, "column": 10}}, {"id": 685, "type": "number_literal", "text": "0", "parent": 684, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 9}}, {"id": 686, "type": "function_definition", "text": "static void\nsaddr_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}", "parent": null, "children": [687, 688], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 193, "column": 1}}, {"id": 687, "type": "primitive_type", "text": "void", "parent": 686, "children": [], "start_point": {"row": 190, "column": 7}, "end_point": {"row": 190, "column": 11}}, {"id": 688, "type": "function_declarator", "text": "saddr_write(void *eventData, uint8_t addr, uint8_t value)", "parent": 686, "children": [689, 690], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 57}}, {"id": 689, "type": "identifier", "text": "saddr_write", "parent": 688, "children": [], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 11}}, {"id": 690, "type": "parameter_list", "text": "(void *eventData, uint8_t addr, uint8_t value)", "parent": 688, "children": [691, 696, 699], "start_point": {"row": 191, "column": 11}, "end_point": {"row": 191, "column": 57}}, {"id": 691, "type": "parameter_declaration", "text": "void *eventData", "parent": 690, "children": [692, 693], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 27}}, {"id": 692, "type": "primitive_type", "text": "void", "parent": 691, "children": [], "start_point": {"row": 191, "column": 12}, "end_point": {"row": 191, "column": 16}}, {"id": 693, "type": "pointer_declarator", "text": "*eventData", "parent": 691, "children": [694, 695], "start_point": {"row": 191, "column": 17}, "end_point": {"row": 191, "column": 27}}, {"id": 694, "type": "*", "text": "*", "parent": 693, "children": [], "start_point": {"row": 191, "column": 17}, "end_point": {"row": 191, "column": 18}}, {"id": 695, "type": "identifier", "text": "eventData", "parent": 693, "children": [], "start_point": {"row": 191, "column": 18}, "end_point": {"row": 191, "column": 27}}, {"id": 696, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 690, "children": [697, 698], "start_point": {"row": 191, "column": 29}, "end_point": {"row": 191, "column": 41}}, {"id": 697, "type": "primitive_type", "text": "uint8_t", "parent": 696, "children": [], "start_point": {"row": 191, "column": 29}, "end_point": {"row": 191, "column": 36}}, {"id": 698, "type": "identifier", "text": "addr", "parent": 696, "children": [], "start_point": {"row": 191, "column": 37}, "end_point": {"row": 191, "column": 41}}, {"id": 699, "type": "parameter_declaration", "text": "uint8_t value", "parent": 690, "children": [700, 701], "start_point": {"row": 191, "column": 43}, "end_point": {"row": 191, "column": 56}}, {"id": 700, "type": "primitive_type", "text": "uint8_t", "parent": 699, "children": [], "start_point": {"row": 191, "column": 43}, "end_point": {"row": 191, "column": 50}}, {"id": 701, "type": "identifier", "text": "value", "parent": 699, "children": [], "start_point": {"row": 191, "column": 51}, "end_point": {"row": 191, "column": 56}}, {"id": 702, "type": "function_definition", "text": "static uint8_t\nsbuf_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\t//fprintf(stderr, \"Read RXBUF %02x\\n\", ua->regRXBUF);\n\treturn ua->regRXBUF;\n}", "parent": null, "children": [703, 704], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 201, "column": 1}}, {"id": 703, "type": "primitive_type", "text": "uint8_t", "parent": 702, "children": [], "start_point": {"row": 195, "column": 7}, "end_point": {"row": 195, "column": 14}}, {"id": 704, "type": "function_declarator", "text": "sbuf_read(void *eventData, uint8_t addr)", "parent": 702, "children": [705, 706], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 40}}, {"id": 705, "type": "identifier", "text": "sbuf_read", "parent": 704, "children": [], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 9}}, {"id": 706, "type": "parameter_list", "text": "(void *eventData, uint8_t addr)", "parent": 704, "children": [707, 712], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 40}}, {"id": 707, "type": "parameter_declaration", "text": "void *eventData", "parent": 706, "children": [708, 709], "start_point": {"row": 196, "column": 10}, "end_point": {"row": 196, "column": 25}}, {"id": 708, "type": "primitive_type", "text": "void", "parent": 707, "children": [], "start_point": {"row": 196, "column": 10}, "end_point": {"row": 196, "column": 14}}, {"id": 709, "type": "pointer_declarator", "text": "*eventData", "parent": 707, "children": [710, 711], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 25}}, {"id": 710, "type": "*", "text": "*", "parent": 709, "children": [], "start_point": {"row": 196, "column": 15}, "end_point": {"row": 196, "column": 16}}, {"id": 711, "type": "identifier", "text": "eventData", "parent": 709, "children": [], "start_point": {"row": 196, "column": 16}, "end_point": {"row": 196, "column": 25}}, {"id": 712, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 706, "children": [713, 714], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 39}}, {"id": 713, "type": "primitive_type", "text": "uint8_t", "parent": 712, "children": [], "start_point": {"row": 196, "column": 27}, "end_point": {"row": 196, "column": 34}}, {"id": 714, "type": "identifier", "text": "addr", "parent": 712, "children": [], "start_point": {"row": 196, "column": 35}, "end_point": {"row": 196, "column": 39}}, {"id": 715, "type": "declaration", "text": "AT89C51Uart *ua = eventData;", "parent": 702, "children": [716, 717], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 29}}, {"id": 716, "type": "type_identifier", "text": "AT89C51Uart", "parent": 715, "children": [], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 12}}, {"id": 717, "type": "init_declarator", "text": "*ua = eventData", "parent": 715, "children": [718, 721, 722], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 28}}, {"id": 718, "type": "pointer_declarator", "text": "*ua", "parent": 717, "children": [719, 720], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 16}}, {"id": 719, "type": "*", "text": "*", "parent": 718, "children": [], "start_point": {"row": 198, "column": 13}, "end_point": {"row": 198, "column": 14}}, {"id": 720, "type": "identifier", "text": "ua", "parent": 718, "children": [], "start_point": {"row": 198, "column": 14}, "end_point": {"row": 198, "column": 16}}, {"id": 721, "type": "=", "text": "=", "parent": 717, "children": [], "start_point": {"row": 198, "column": 17}, "end_point": {"row": 198, "column": 18}}, {"id": 722, "type": "identifier", "text": "eventData", "parent": 717, "children": [], "start_point": {"row": 198, "column": 19}, "end_point": {"row": 198, "column": 28}}, {"id": 723, "type": "return_statement", "text": "return ua->regRXBUF;", "parent": 702, "children": [724], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 200, "column": 21}}, {"id": 724, "type": "field_expression", "text": "ua->regRXBUF", "parent": 723, "children": [725, 726], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 20}}, {"id": 725, "type": "identifier", "text": "ua", "parent": 724, "children": [], "start_point": {"row": 200, "column": 8}, "end_point": {"row": 200, "column": 10}}, {"id": 726, "type": "field_identifier", "text": "regRXBUF", "parent": 724, "children": [], "start_point": {"row": 200, "column": 12}, "end_point": {"row": 200, "column": 20}}, {"id": 727, "type": "function_definition", "text": "static void\nsbuf_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;\n\tua->regTXBUF = value;\n\tfprintf(stderr, \"Write sbuf: 0x%02x\\n\",value);\n\tSerialDevice_StartTx(ua->backend);\n}", "parent": null, "children": [728, 729], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 210, "column": 1}}, {"id": 728, "type": "primitive_type", "text": "void", "parent": 727, "children": [], "start_point": {"row": 203, "column": 7}, "end_point": {"row": 203, "column": 11}}, {"id": 729, "type": "function_declarator", "text": "sbuf_write(void *eventData, uint8_t addr, uint8_t value)", "parent": 727, "children": [730, 731], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 204, "column": 56}}, {"id": 730, "type": "identifier", "text": "sbuf_write", "parent": 729, "children": [], "start_point": {"row": 204, "column": 0}, "end_point": {"row": 204, "column": 10}}, {"id": 731, "type": "parameter_list", "text": "(void *eventData, uint8_t addr, uint8_t value)", "parent": 729, "children": [732, 737, 740], "start_point": {"row": 204, "column": 10}, "end_point": {"row": 204, "column": 56}}, {"id": 732, "type": "parameter_declaration", "text": "void *eventData", "parent": 731, "children": [733, 734], "start_point": {"row": 204, "column": 11}, "end_point": {"row": 204, "column": 26}}, {"id": 733, "type": "primitive_type", "text": "void", "parent": 732, "children": [], "start_point": {"row": 204, "column": 11}, "end_point": {"row": 204, "column": 15}}, {"id": 734, "type": "pointer_declarator", "text": "*eventData", "parent": 732, "children": [735, 736], "start_point": {"row": 204, "column": 16}, "end_point": {"row": 204, "column": 26}}, {"id": 735, "type": "*", "text": "*", "parent": 734, "children": [], "start_point": {"row": 204, "column": 16}, "end_point": {"row": 204, "column": 17}}, {"id": 736, "type": "identifier", "text": "eventData", "parent": 734, "children": [], "start_point": {"row": 204, "column": 17}, "end_point": {"row": 204, "column": 26}}, {"id": 737, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 731, "children": [738, 739], "start_point": {"row": 204, "column": 28}, "end_point": {"row": 204, "column": 40}}, {"id": 738, "type": "primitive_type", "text": "uint8_t", "parent": 737, "children": [], "start_point": {"row": 204, "column": 28}, "end_point": {"row": 204, "column": 35}}, {"id": 739, "type": "identifier", "text": "addr", "parent": 737, "children": [], "start_point": {"row": 204, "column": 36}, "end_point": {"row": 204, "column": 40}}, {"id": 740, "type": "parameter_declaration", "text": "uint8_t value", "parent": 731, "children": [741, 742], "start_point": {"row": 204, "column": 42}, "end_point": {"row": 204, "column": 55}}, {"id": 741, "type": "primitive_type", "text": "uint8_t", "parent": 740, "children": [], "start_point": {"row": 204, "column": 42}, "end_point": {"row": 204, "column": 49}}, {"id": 742, "type": "identifier", "text": "value", "parent": 740, "children": [], "start_point": {"row": 204, "column": 50}, "end_point": {"row": 204, "column": 55}}, {"id": 743, "type": "declaration", "text": "AT89C51Uart *ua = eventData;", "parent": 727, "children": [744, 745], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 29}}, {"id": 744, "type": "type_identifier", "text": "AT89C51Uart", "parent": 743, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 12}}, {"id": 745, "type": "init_declarator", "text": "*ua = eventData", "parent": 743, "children": [746, 749, 750], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 28}}, {"id": 746, "type": "pointer_declarator", "text": "*ua", "parent": 745, "children": [747, 748], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 16}}, {"id": 747, "type": "*", "text": "*", "parent": 746, "children": [], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 14}}, {"id": 748, "type": "identifier", "text": "ua", "parent": 746, "children": [], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 16}}, {"id": 749, "type": "=", "text": "=", "parent": 745, "children": [], "start_point": {"row": 206, "column": 17}, "end_point": {"row": 206, "column": 18}}, {"id": 750, "type": "identifier", "text": "eventData", "parent": 745, "children": [], "start_point": {"row": 206, "column": 19}, "end_point": {"row": 206, "column": 28}}, {"id": 751, "type": "assignment_expression", "text": "ua->regTXBUF = value", "parent": 727, "children": [752, 755, 756], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 21}}, {"id": 752, "type": "field_expression", "text": "ua->regTXBUF", "parent": 751, "children": [753, 754], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 13}}, {"id": 753, "type": "identifier", "text": "ua", "parent": 752, "children": [], "start_point": {"row": 207, "column": 1}, "end_point": {"row": 207, "column": 3}}, {"id": 754, "type": "field_identifier", "text": "regTXBUF", "parent": 752, "children": [], "start_point": {"row": 207, "column": 5}, "end_point": {"row": 207, "column": 13}}, {"id": 755, "type": "=", "text": "=", "parent": 751, "children": [], "start_point": {"row": 207, "column": 14}, "end_point": {"row": 207, "column": 15}}, {"id": 756, "type": "identifier", "text": "value", "parent": 751, "children": [], "start_point": {"row": 207, "column": 16}, "end_point": {"row": 207, "column": 21}}, {"id": 757, "type": "call_expression", "text": "fprintf(stderr, \"Write sbuf: 0x%02x\\n\",value)", "parent": 727, "children": [758, 759], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 46}}, {"id": 758, "type": "identifier", "text": "fprintf", "parent": 757, "children": [], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 8}}, {"id": 759, "type": "argument_list", "text": "(stderr, \"Write sbuf: 0x%02x\\n\",value)", "parent": 757, "children": [760, 761, 763], "start_point": {"row": 208, "column": 8}, "end_point": {"row": 208, "column": 46}}, {"id": 760, "type": "identifier", "text": "stderr", "parent": 759, "children": [], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 15}}, {"id": 761, "type": "string_literal", "text": "\"Write sbuf: 0x%02x\\n\"", "parent": 759, "children": [762], "start_point": {"row": 208, "column": 17}, "end_point": {"row": 208, "column": 39}}, {"id": 762, "type": "escape_sequence", "text": "\\n", "parent": 761, "children": [], "start_point": {"row": 208, "column": 36}, "end_point": {"row": 208, "column": 38}}, {"id": 763, "type": "identifier", "text": "value", "parent": 759, "children": [], "start_point": {"row": 208, "column": 40}, "end_point": {"row": 208, "column": 45}}, {"id": 764, "type": "call_expression", "text": "SerialDevice_StartTx(ua->backend)", "parent": 727, "children": [765, 766], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 34}}, {"id": 765, "type": "identifier", "text": "SerialDevice_StartTx", "parent": 764, "children": [], "start_point": {"row": 209, "column": 1}, "end_point": {"row": 209, "column": 21}}, {"id": 766, "type": "argument_list", "text": "(ua->backend)", "parent": 764, "children": [767], "start_point": {"row": 209, "column": 21}, "end_point": {"row": 209, "column": 34}}, {"id": 767, "type": "field_expression", "text": "ua->backend", "parent": 766, "children": [768, 769], "start_point": {"row": 209, "column": 22}, "end_point": {"row": 209, "column": 33}}, {"id": 768, "type": "identifier", "text": "ua", "parent": 767, "children": [], "start_point": {"row": 209, "column": 22}, "end_point": {"row": 209, "column": 24}}, {"id": 769, "type": "field_identifier", "text": "backend", "parent": 767, "children": [], "start_point": {"row": 209, "column": 26}, "end_point": {"row": 209, "column": 33}}, {"id": 770, "type": "function_definition", "text": "static uint8_t\npcon_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\treturn ua->regPCON;\n}", "parent": null, "children": [771, 772], "start_point": {"row": 212, "column": 0}, "end_point": {"row": 217, "column": 1}}, {"id": 771, "type": "primitive_type", "text": "uint8_t", "parent": 770, "children": [], "start_point": {"row": 212, "column": 7}, "end_point": {"row": 212, "column": 14}}, {"id": 772, "type": "function_declarator", "text": "pcon_read(void *eventData, uint8_t addr)", "parent": 770, "children": [773, 774], "start_point": {"row": 213, "column": 0}, "end_point": {"row": 213, "column": 40}}, {"id": 773, "type": "identifier", "text": "pcon_read", "parent": 772, "children": [], "start_point": {"row": 213, "column": 0}, "end_point": {"row": 213, "column": 9}}, {"id": 774, "type": "parameter_list", "text": "(void *eventData, uint8_t addr)", "parent": 772, "children": [775, 780], "start_point": {"row": 213, "column": 9}, "end_point": {"row": 213, "column": 40}}, {"id": 775, "type": "parameter_declaration", "text": "void *eventData", "parent": 774, "children": [776, 777], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 25}}, {"id": 776, "type": "primitive_type", "text": "void", "parent": 775, "children": [], "start_point": {"row": 213, "column": 10}, "end_point": {"row": 213, "column": 14}}, {"id": 777, "type": "pointer_declarator", "text": "*eventData", "parent": 775, "children": [778, 779], "start_point": {"row": 213, "column": 15}, "end_point": {"row": 213, "column": 25}}, {"id": 778, "type": "*", "text": "*", "parent": 777, "children": [], "start_point": {"row": 213, "column": 15}, "end_point": {"row": 213, "column": 16}}, {"id": 779, "type": "identifier", "text": "eventData", "parent": 777, "children": [], "start_point": {"row": 213, "column": 16}, "end_point": {"row": 213, "column": 25}}, {"id": 780, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 774, "children": [781, 782], "start_point": {"row": 213, "column": 27}, "end_point": {"row": 213, "column": 39}}, {"id": 781, "type": "primitive_type", "text": "uint8_t", "parent": 780, "children": [], "start_point": {"row": 213, "column": 27}, "end_point": {"row": 213, "column": 34}}, {"id": 782, "type": "identifier", "text": "addr", "parent": 780, "children": [], "start_point": {"row": 213, "column": 35}, "end_point": {"row": 213, "column": 39}}, {"id": 783, "type": "declaration", "text": "AT89C51Uart *ua = eventData;", "parent": 770, "children": [784, 785], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 29}}, {"id": 784, "type": "type_identifier", "text": "AT89C51Uart", "parent": 783, "children": [], "start_point": {"row": 215, "column": 1}, "end_point": {"row": 215, "column": 12}}, {"id": 785, "type": "init_declarator", "text": "*ua = eventData", "parent": 783, "children": [786, 789, 790], "start_point": {"row": 215, "column": 13}, "end_point": {"row": 215, "column": 28}}, {"id": 786, "type": "pointer_declarator", "text": "*ua", "parent": 785, "children": [787, 788], "start_point": {"row": 215, "column": 13}, "end_point": {"row": 215, "column": 16}}, {"id": 787, "type": "*", "text": "*", "parent": 786, "children": [], "start_point": {"row": 215, "column": 13}, "end_point": {"row": 215, "column": 14}}, {"id": 788, "type": "identifier", "text": "ua", "parent": 786, "children": [], "start_point": {"row": 215, "column": 14}, "end_point": {"row": 215, "column": 16}}, {"id": 789, "type": "=", "text": "=", "parent": 785, "children": [], "start_point": {"row": 215, "column": 17}, "end_point": {"row": 215, "column": 18}}, {"id": 790, "type": "identifier", "text": "eventData", "parent": 785, "children": [], "start_point": {"row": 215, "column": 19}, "end_point": {"row": 215, "column": 28}}, {"id": 791, "type": "return_statement", "text": "return ua->regPCON;", "parent": 770, "children": [792], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 20}}, {"id": 792, "type": "field_expression", "text": "ua->regPCON", "parent": 791, "children": [793, 794], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 19}}, {"id": 793, "type": "identifier", "text": "ua", "parent": 792, "children": [], "start_point": {"row": 216, "column": 8}, "end_point": {"row": 216, "column": 10}}, {"id": 794, "type": "field_identifier", "text": "regPCON", "parent": 792, "children": [], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 19}}, {"id": 795, "type": "function_definition", "text": "static void\npcon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;\n\tua->regPCON = value;\n\tfprintf(stderr, \"Warning regPCON not implemented\\n\");\n}", "parent": null, "children": [796, 797], "start_point": {"row": 219, "column": 0}, "end_point": {"row": 225, "column": 1}}, {"id": 796, "type": "primitive_type", "text": "void", "parent": 795, "children": [], "start_point": {"row": 219, "column": 7}, "end_point": {"row": 219, "column": 11}}, {"id": 797, "type": "function_declarator", "text": "pcon_write(void *eventData, uint8_t addr, uint8_t value)", "parent": 795, "children": [798, 799], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 56}}, {"id": 798, "type": "identifier", "text": "pcon_write", "parent": 797, "children": [], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 220, "column": 10}}, {"id": 799, "type": "parameter_list", "text": "(void *eventData, uint8_t addr, uint8_t value)", "parent": 797, "children": [800, 805, 808], "start_point": {"row": 220, "column": 10}, "end_point": {"row": 220, "column": 56}}, {"id": 800, "type": "parameter_declaration", "text": "void *eventData", "parent": 799, "children": [801, 802], "start_point": {"row": 220, "column": 11}, "end_point": {"row": 220, "column": 26}}, {"id": 801, "type": "primitive_type", "text": "void", "parent": 800, "children": [], "start_point": {"row": 220, "column": 11}, "end_point": {"row": 220, "column": 15}}, {"id": 802, "type": "pointer_declarator", "text": "*eventData", "parent": 800, "children": [803, 804], "start_point": {"row": 220, "column": 16}, "end_point": {"row": 220, "column": 26}}, {"id": 803, "type": "*", "text": "*", "parent": 802, "children": [], "start_point": {"row": 220, "column": 16}, "end_point": {"row": 220, "column": 17}}, {"id": 804, "type": "identifier", "text": "eventData", "parent": 802, "children": [], "start_point": {"row": 220, "column": 17}, "end_point": {"row": 220, "column": 26}}, {"id": 805, "type": "parameter_declaration", "text": "uint8_t addr", "parent": 799, "children": [806, 807], "start_point": {"row": 220, "column": 28}, "end_point": {"row": 220, "column": 40}}, {"id": 806, "type": "primitive_type", "text": "uint8_t", "parent": 805, "children": [], "start_point": {"row": 220, "column": 28}, "end_point": {"row": 220, "column": 35}}, {"id": 807, "type": "identifier", "text": "addr", "parent": 805, "children": [], "start_point": {"row": 220, "column": 36}, "end_point": {"row": 220, "column": 40}}, {"id": 808, "type": "parameter_declaration", "text": "uint8_t value", "parent": 799, "children": [809, 810], "start_point": {"row": 220, "column": 42}, "end_point": {"row": 220, "column": 55}}, {"id": 809, "type": "primitive_type", "text": "uint8_t", "parent": 808, "children": [], "start_point": {"row": 220, "column": 42}, "end_point": {"row": 220, "column": 49}}, {"id": 810, "type": "identifier", "text": "value", "parent": 808, "children": [], "start_point": {"row": 220, "column": 50}, "end_point": {"row": 220, "column": 55}}, {"id": 811, "type": "declaration", "text": "AT89C51Uart *ua = eventData;", "parent": 795, "children": [812, 813], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 29}}, {"id": 812, "type": "type_identifier", "text": "AT89C51Uart", "parent": 811, "children": [], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 12}}, {"id": 813, "type": "init_declarator", "text": "*ua = eventData", "parent": 811, "children": [814, 817, 818], "start_point": {"row": 222, "column": 13}, "end_point": {"row": 222, "column": 28}}, {"id": 814, "type": "pointer_declarator", "text": "*ua", "parent": 813, "children": [815, 816], "start_point": {"row": 222, "column": 13}, "end_point": {"row": 222, "column": 16}}, {"id": 815, "type": "*", "text": "*", "parent": 814, "children": [], "start_point": {"row": 222, "column": 13}, "end_point": {"row": 222, "column": 14}}, {"id": 816, "type": "identifier", "text": "ua", "parent": 814, "children": [], "start_point": {"row": 222, "column": 14}, "end_point": {"row": 222, "column": 16}}, {"id": 817, "type": "=", "text": "=", "parent": 813, "children": [], "start_point": {"row": 222, "column": 17}, "end_point": {"row": 222, "column": 18}}, {"id": 818, "type": "identifier", "text": "eventData", "parent": 813, "children": [], "start_point": {"row": 222, "column": 19}, "end_point": {"row": 222, "column": 28}}, {"id": 819, "type": "assignment_expression", "text": "ua->regPCON = value", "parent": 795, "children": [820, 823, 824], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 20}}, {"id": 820, "type": "field_expression", "text": "ua->regPCON", "parent": 819, "children": [821, 822], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 12}}, {"id": 821, "type": "identifier", "text": "ua", "parent": 820, "children": [], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 3}}, {"id": 822, "type": "field_identifier", "text": "regPCON", "parent": 820, "children": [], "start_point": {"row": 223, "column": 5}, "end_point": {"row": 223, "column": 12}}, {"id": 823, "type": "=", "text": "=", "parent": 819, "children": [], "start_point": {"row": 223, "column": 13}, "end_point": {"row": 223, "column": 14}}, {"id": 824, "type": "identifier", "text": "value", "parent": 819, "children": [], "start_point": {"row": 223, "column": 15}, "end_point": {"row": 223, "column": 20}}, {"id": 825, "type": "call_expression", "text": "fprintf(stderr, \"Warning regPCON not implemented\\n\")", "parent": 795, "children": [826, 827], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 53}}, {"id": 826, "type": "identifier", "text": "fprintf", "parent": 825, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 8}}, {"id": 827, "type": "argument_list", "text": "(stderr, \"Warning regPCON not implemented\\n\")", "parent": 825, "children": [828, 829], "start_point": {"row": 224, "column": 8}, "end_point": {"row": 224, "column": 53}}, {"id": 828, "type": "identifier", "text": "stderr", "parent": 827, "children": [], "start_point": {"row": 224, "column": 9}, "end_point": {"row": 224, "column": 15}}, {"id": 829, "type": "string_literal", "text": "\"Warning regPCON not implemented\\n\"", "parent": 827, "children": [830], "start_point": {"row": 224, "column": 17}, "end_point": {"row": 224, "column": 52}}, {"id": 830, "type": "escape_sequence", "text": "\\n", "parent": 829, "children": [], "start_point": {"row": 224, "column": 49}, "end_point": {"row": 224, "column": 51}}, {"id": 831, "type": "function_definition", "text": "void\nAT89C51Uart_New(const char *name)\n{\n\tAT89C51Uart *ua;\n\tua = sg_new(AT89C51Uart);\n\tua->backend = Uart_New(name, serial_input, serial_output, NULL, ua);\n\tua->sigIrq = SigNode_New(\"%s.irq\", name);\n\tua->SM = 0xff;\n\tMCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua);\n\tMCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua);\n\tMCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua);\n\tMCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua);\n\tMCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua);\n}", "parent": null, "children": [832, 833], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 240, "column": 1}}, {"id": 832, "type": "primitive_type", "text": "void", "parent": 831, "children": [], "start_point": {"row": 227, "column": 0}, "end_point": {"row": 227, "column": 4}}, {"id": 833, "type": "function_declarator", "text": "AT89C51Uart_New(const char *name)", "parent": 831, "children": [834, 835], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 33}}, {"id": 834, "type": "identifier", "text": "AT89C51Uart_New", "parent": 833, "children": [], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 15}}, {"id": 835, "type": "parameter_list", "text": "(const char *name)", "parent": 833, "children": [836], "start_point": {"row": 228, "column": 15}, "end_point": {"row": 228, "column": 33}}, {"id": 836, "type": "parameter_declaration", "text": "const char *name", "parent": 835, "children": [837, 838], "start_point": {"row": 228, "column": 16}, "end_point": {"row": 228, "column": 32}}, {"id": 837, "type": "primitive_type", "text": "char", "parent": 836, "children": [], "start_point": {"row": 228, "column": 22}, "end_point": {"row": 228, "column": 26}}, {"id": 838, "type": "pointer_declarator", "text": "*name", "parent": 836, "children": [839, 840], "start_point": {"row": 228, "column": 27}, "end_point": {"row": 228, "column": 32}}, {"id": 839, "type": "*", "text": "*", "parent": 838, "children": [], "start_point": {"row": 228, "column": 27}, "end_point": {"row": 228, "column": 28}}, {"id": 840, "type": "identifier", "text": "name", "parent": 838, "children": [], "start_point": {"row": 228, "column": 28}, "end_point": {"row": 228, "column": 32}}, {"id": 841, "type": "declaration", "text": "AT89C51Uart *ua;", "parent": 831, "children": [842, 843], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 17}}, {"id": 842, "type": "type_identifier", "text": "AT89C51Uart", "parent": 841, "children": [], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 12}}, {"id": 843, "type": "pointer_declarator", "text": "*ua", "parent": 841, "children": [844, 845], "start_point": {"row": 230, "column": 13}, "end_point": {"row": 230, "column": 16}}, {"id": 844, "type": "*", "text": "*", "parent": 843, "children": [], "start_point": {"row": 230, "column": 13}, "end_point": {"row": 230, "column": 14}}, {"id": 845, "type": "identifier", "text": "ua", "parent": 843, "children": [], "start_point": {"row": 230, "column": 14}, "end_point": {"row": 230, "column": 16}}, {"id": 846, "type": "assignment_expression", "text": "ua = sg_new(AT89C51Uart)", "parent": 831, "children": [847, 848, 849], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 25}}, {"id": 847, "type": "identifier", "text": "ua", "parent": 846, "children": [], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 3}}, {"id": 848, "type": "=", "text": "=", "parent": 846, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 5}}, {"id": 849, "type": "call_expression", "text": "sg_new(AT89C51Uart)", "parent": 846, "children": [850, 851], "start_point": {"row": 231, "column": 6}, "end_point": {"row": 231, "column": 25}}, {"id": 850, "type": "identifier", "text": "sg_new", "parent": 849, "children": [], "start_point": {"row": 231, "column": 6}, "end_point": {"row": 231, "column": 12}}, {"id": 851, "type": "argument_list", "text": "(AT89C51Uart)", "parent": 849, "children": [852], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 25}}, {"id": 852, "type": "identifier", "text": "AT89C51Uart", "parent": 851, "children": [], "start_point": {"row": 231, "column": 13}, "end_point": {"row": 231, "column": 24}}, {"id": 853, "type": "assignment_expression", "text": "ua->backend = Uart_New(name, serial_input, serial_output, NULL, ua)", "parent": 831, "children": [854, 857, 858], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 68}}, {"id": 854, "type": "field_expression", "text": "ua->backend", "parent": 853, "children": [855, 856], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 12}}, {"id": 855, "type": "identifier", "text": "ua", "parent": 854, "children": [], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 3}}, {"id": 856, "type": "field_identifier", "text": "backend", "parent": 854, "children": [], "start_point": {"row": 232, "column": 5}, "end_point": {"row": 232, "column": 12}}, {"id": 857, "type": "=", "text": "=", "parent": 853, "children": [], "start_point": {"row": 232, "column": 13}, "end_point": {"row": 232, "column": 14}}, {"id": 858, "type": "call_expression", "text": "Uart_New(name, serial_input, serial_output, NULL, ua)", "parent": 853, "children": [859, 860], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 68}}, {"id": 859, "type": "identifier", "text": "Uart_New", "parent": 858, "children": [], "start_point": {"row": 232, "column": 15}, "end_point": {"row": 232, "column": 23}}, {"id": 860, "type": "argument_list", "text": "(name, serial_input, serial_output, NULL, ua)", "parent": 858, "children": [861, 862, 863, 864, 866], "start_point": {"row": 232, "column": 23}, "end_point": {"row": 232, "column": 68}}, {"id": 861, "type": "identifier", "text": "name", "parent": 860, "children": [], "start_point": {"row": 232, "column": 24}, "end_point": {"row": 232, "column": 28}}, {"id": 862, "type": "identifier", "text": "serial_input", "parent": 860, "children": [], "start_point": {"row": 232, "column": 30}, "end_point": {"row": 232, "column": 42}}, {"id": 863, "type": "identifier", "text": "serial_output", "parent": 860, "children": [], "start_point": {"row": 232, "column": 44}, "end_point": {"row": 232, "column": 57}}, {"id": 864, "type": "null", "text": "NULL", "parent": 860, "children": [865], "start_point": {"row": 232, "column": 59}, "end_point": {"row": 232, "column": 63}}, {"id": 865, "type": "NULL", "text": "NULL", "parent": 864, "children": [], "start_point": {"row": 232, "column": 59}, "end_point": {"row": 232, "column": 63}}, {"id": 866, "type": "identifier", "text": "ua", "parent": 860, "children": [], "start_point": {"row": 232, "column": 65}, "end_point": {"row": 232, "column": 67}}, {"id": 867, "type": "assignment_expression", "text": "ua->sigIrq = SigNode_New(\"%s.irq\", name)", "parent": 831, "children": [868, 871, 872], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 41}}, {"id": 868, "type": "field_expression", "text": "ua->sigIrq", "parent": 867, "children": [869, 870], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 11}}, {"id": 869, "type": "identifier", "text": "ua", "parent": 868, "children": [], "start_point": {"row": 233, "column": 1}, "end_point": {"row": 233, "column": 3}}, {"id": 870, "type": "field_identifier", "text": "sigIrq", "parent": 868, "children": [], "start_point": {"row": 233, "column": 5}, "end_point": {"row": 233, "column": 11}}, {"id": 871, "type": "=", "text": "=", "parent": 867, "children": [], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 13}}, {"id": 872, "type": "call_expression", "text": "SigNode_New(\"%s.irq\", name)", "parent": 867, "children": [873, 874], "start_point": {"row": 233, "column": 14}, "end_point": {"row": 233, "column": 41}}, {"id": 873, "type": "identifier", "text": "SigNode_New", "parent": 872, "children": [], "start_point": {"row": 233, "column": 14}, "end_point": {"row": 233, "column": 25}}, {"id": 874, "type": "argument_list", "text": "(\"%s.irq\", name)", "parent": 872, "children": [875, 876], "start_point": {"row": 233, "column": 25}, "end_point": {"row": 233, "column": 41}}, {"id": 875, "type": "string_literal", "text": "\"%s.irq\"", "parent": 874, "children": [], "start_point": {"row": 233, "column": 26}, "end_point": {"row": 233, "column": 34}}, {"id": 876, "type": "identifier", "text": "name", "parent": 874, "children": [], "start_point": {"row": 233, "column": 36}, "end_point": {"row": 233, "column": 40}}, {"id": 877, "type": "assignment_expression", "text": "ua->SM = 0xff", "parent": 831, "children": [878, 881, 882], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 14}}, {"id": 878, "type": "field_expression", "text": "ua->SM", "parent": 877, "children": [879, 880], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 7}}, {"id": 879, "type": "identifier", "text": "ua", "parent": 878, "children": [], "start_point": {"row": 234, "column": 1}, "end_point": {"row": 234, "column": 3}}, {"id": 880, "type": "field_identifier", "text": "SM", "parent": 878, "children": [], "start_point": {"row": 234, "column": 5}, "end_point": {"row": 234, "column": 7}}, {"id": 881, "type": "=", "text": "=", "parent": 877, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 9}}, {"id": 882, "type": "number_literal", "text": "0xff", "parent": 877, "children": [], "start_point": {"row": 234, "column": 10}, "end_point": {"row": 234, "column": 14}}, {"id": 883, "type": "call_expression", "text": "MCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua)", "parent": 831, "children": [884, 885], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 61}}, {"id": 884, "type": "identifier", "text": "MCS51_RegisterSFR", "parent": 883, "children": [], "start_point": {"row": 235, "column": 1}, "end_point": {"row": 235, "column": 18}}, {"id": 885, "type": "argument_list", "text": "(REG_SCON, scon_read, NULL, scon_write, ua)", "parent": 883, "children": [886, 887, 888, 890, 891], "start_point": {"row": 235, "column": 18}, "end_point": {"row": 235, "column": 61}}, {"id": 886, "type": "identifier", "text": "REG_SCON", "parent": 885, "children": [], "start_point": {"row": 235, "column": 19}, "end_point": {"row": 235, "column": 27}}, {"id": 887, "type": "identifier", "text": "scon_read", "parent": 885, "children": [], "start_point": {"row": 235, "column": 29}, "end_point": {"row": 235, "column": 38}}, {"id": 888, "type": "null", "text": "NULL", "parent": 885, "children": [889], "start_point": {"row": 235, "column": 40}, "end_point": {"row": 235, "column": 44}}, {"id": 889, "type": "NULL", "text": "NULL", "parent": 888, "children": [], "start_point": {"row": 235, "column": 40}, "end_point": {"row": 235, "column": 44}}, {"id": 890, "type": "identifier", "text": "scon_write", "parent": 885, "children": [], "start_point": {"row": 235, "column": 46}, "end_point": {"row": 235, "column": 56}}, {"id": 891, "type": "identifier", "text": "ua", "parent": 885, "children": [], "start_point": {"row": 235, "column": 58}, "end_point": {"row": 235, "column": 60}}, {"id": 892, "type": "call_expression", "text": "MCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua)", "parent": 831, "children": [893, 894], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 64}}, {"id": 893, "type": "identifier", "text": "MCS51_RegisterSFR", "parent": 892, "children": [], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 18}}, {"id": 894, "type": "argument_list", "text": "(REG_SADEN, saden_read, NULL, saden_write, ua)", "parent": 892, "children": [895, 896, 897, 899, 900], "start_point": {"row": 236, "column": 18}, "end_point": {"row": 236, "column": 64}}, {"id": 895, "type": "identifier", "text": "REG_SADEN", "parent": 894, "children": [], "start_point": {"row": 236, "column": 19}, "end_point": {"row": 236, "column": 28}}, {"id": 896, "type": "identifier", "text": "saden_read", "parent": 894, "children": [], "start_point": {"row": 236, "column": 30}, "end_point": {"row": 236, "column": 40}}, {"id": 897, "type": "null", "text": "NULL", "parent": 894, "children": [898], "start_point": {"row": 236, "column": 42}, "end_point": {"row": 236, "column": 46}}, {"id": 898, "type": "NULL", "text": "NULL", "parent": 897, "children": [], "start_point": {"row": 236, "column": 42}, "end_point": {"row": 236, "column": 46}}, {"id": 899, "type": "identifier", "text": "saden_write", "parent": 894, "children": [], "start_point": {"row": 236, "column": 48}, "end_point": {"row": 236, "column": 59}}, {"id": 900, "type": "identifier", "text": "ua", "parent": 894, "children": [], "start_point": {"row": 236, "column": 61}, "end_point": {"row": 236, "column": 63}}, {"id": 901, "type": "call_expression", "text": "MCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua)", "parent": 831, "children": [902, 903], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 64}}, {"id": 902, "type": "identifier", "text": "MCS51_RegisterSFR", "parent": 901, "children": [], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 18}}, {"id": 903, "type": "argument_list", "text": "(REG_SADDR, saddr_read, NULL, saddr_write, ua)", "parent": 901, "children": [904, 905, 906, 908, 909], "start_point": {"row": 237, "column": 18}, "end_point": {"row": 237, "column": 64}}, {"id": 904, "type": "identifier", "text": "REG_SADDR", "parent": 903, "children": [], "start_point": {"row": 237, "column": 19}, "end_point": {"row": 237, "column": 28}}, {"id": 905, "type": "identifier", "text": "saddr_read", "parent": 903, "children": [], "start_point": {"row": 237, "column": 30}, "end_point": {"row": 237, "column": 40}}, {"id": 906, "type": "null", "text": "NULL", "parent": 903, "children": [907], "start_point": {"row": 237, "column": 42}, "end_point": {"row": 237, "column": 46}}, {"id": 907, "type": "NULL", "text": "NULL", "parent": 906, "children": [], "start_point": {"row": 237, "column": 42}, "end_point": {"row": 237, "column": 46}}, {"id": 908, "type": "identifier", "text": "saddr_write", "parent": 903, "children": [], "start_point": {"row": 237, "column": 48}, "end_point": {"row": 237, "column": 59}}, {"id": 909, "type": "identifier", "text": "ua", "parent": 903, "children": [], "start_point": {"row": 237, "column": 61}, "end_point": {"row": 237, "column": 63}}, {"id": 910, "type": "call_expression", "text": "MCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua)", "parent": 831, "children": [911, 912], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 61}}, {"id": 911, "type": "identifier", "text": "MCS51_RegisterSFR", "parent": 910, "children": [], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 18}}, {"id": 912, "type": "argument_list", "text": "(REG_SBUF, sbuf_read, NULL, sbuf_write, ua)", "parent": 910, "children": [913, 914, 915, 917, 918], "start_point": {"row": 238, "column": 18}, "end_point": {"row": 238, "column": 61}}, {"id": 913, "type": "identifier", "text": "REG_SBUF", "parent": 912, "children": [], "start_point": {"row": 238, "column": 19}, "end_point": {"row": 238, "column": 27}}, {"id": 914, "type": "identifier", "text": "sbuf_read", "parent": 912, "children": [], "start_point": {"row": 238, "column": 29}, "end_point": {"row": 238, "column": 38}}, {"id": 915, "type": "null", "text": "NULL", "parent": 912, "children": [916], "start_point": {"row": 238, "column": 40}, "end_point": {"row": 238, "column": 44}}, {"id": 916, "type": "NULL", "text": "NULL", "parent": 915, "children": [], "start_point": {"row": 238, "column": 40}, "end_point": {"row": 238, "column": 44}}, {"id": 917, "type": "identifier", "text": "sbuf_write", "parent": 912, "children": [], "start_point": {"row": 238, "column": 46}, "end_point": {"row": 238, "column": 56}}, {"id": 918, "type": "identifier", "text": "ua", "parent": 912, "children": [], "start_point": {"row": 238, "column": 58}, "end_point": {"row": 238, "column": 60}}, {"id": 919, "type": "call_expression", "text": "MCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua)", "parent": 831, "children": [920, 921], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 61}}, {"id": 920, "type": "identifier", "text": "MCS51_RegisterSFR", "parent": 919, "children": [], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 18}}, {"id": 921, "type": "argument_list", "text": "(REG_PCON, pcon_read, NULL, pcon_write, ua)", "parent": 919, "children": [922, 923, 924, 926, 927], "start_point": {"row": 239, "column": 18}, "end_point": {"row": 239, "column": 61}}, {"id": 922, "type": "identifier", "text": "REG_PCON", "parent": 921, "children": [], "start_point": {"row": 239, "column": 19}, "end_point": {"row": 239, "column": 27}}, {"id": 923, "type": "identifier", "text": "pcon_read", "parent": 921, "children": [], "start_point": {"row": 239, "column": 29}, "end_point": {"row": 239, "column": 38}}, {"id": 924, "type": "null", "text": "NULL", "parent": 921, "children": [925], "start_point": {"row": 239, "column": 40}, "end_point": {"row": 239, "column": 44}}, {"id": 925, "type": "NULL", "text": "NULL", "parent": 924, "children": [], "start_point": {"row": 239, "column": 40}, "end_point": {"row": 239, "column": 44}}, {"id": 926, "type": "identifier", "text": "pcon_write", "parent": 921, "children": [], "start_point": {"row": 239, "column": 46}, "end_point": {"row": 239, "column": 56}}, {"id": 927, "type": "identifier", "text": "ua", "parent": 921, "children": [], "start_point": {"row": 239, "column": 58}, "end_point": {"row": 239, "column": 60}}]}, "node_categories": {"declarations": {"functions": [147, 149, 182, 184, 284, 286, 351, 353, 376, 378, 640, 642, 655, 657, 671, 673, 686, 688, 702, 704, 727, 729, 770, 772, 795, 797, 831, 833], "variables": [110, 115, 118, 121, 124, 127, 130, 133, 136, 141, 152, 187, 192, 195, 207, 289, 294, 299, 356, 361, 364, 381, 386, 389, 392, 400, 403, 406, 409, 417, 645, 650, 660, 665, 668, 676, 681, 691, 696, 699, 707, 712, 715, 732, 737, 740, 743, 775, 780, 783, 800, 805, 808, 811, 836, 841], "classes": [112, 113], "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": [158, 159, 160, 163, 164, 167, 170, 175, 178, 210, 217, 220, 221, 229, 234, 240, 241, 245, 249, 250, 256, 260, 261, 264, 268, 269, 270, 275, 280, 308, 312, 316, 317, 321, 322, 323, 328, 333, 336, 340, 345, 373, 414, 422, 424, 425, 426, 427, 428, 437, 443, 444, 450, 455, 460, 461, 462, 463, 465, 466, 470, 471, 472, 478, 479, 480, 485, 489, 490, 491, 492, 496, 497, 502, 506, 508, 509, 514, 515, 528, 543, 558, 567, 575, 583, 589, 594, 597, 600, 603, 609, 614, 617, 620, 623, 624, 627, 630, 634, 637, 724, 752, 757, 764, 767, 792, 820, 825, 849, 854, 858, 868, 872, 878, 883, 892, 901, 910, 919], "assignments": [226, 233, 244, 255, 274, 307, 327, 339, 434, 440, 449, 484, 501, 523, 527, 538, 542, 553, 557, 570, 574, 582, 588, 602, 608, 751, 819, 846, 853, 867, 877], "loops": [], "conditionals": [32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 114, 117, 120, 123, 126, 129, 132, 135, 137, 140, 142, 145, 146, 150, 153, 156, 157, 161, 162, 165, 166, 168, 171, 172, 173, 176, 179, 180, 181, 185, 191, 193, 194, 196, 200, 202, 203, 204, 208, 209, 211, 213, 216, 218, 222, 225, 227, 230, 232, 235, 236, 238, 239, 242, 246, 247, 251, 252, 253, 257, 258, 262, 263, 266, 267, 271, 272, 273, 276, 277, 279, 281, 283, 287, 293, 295, 298, 300, 304, 306, 310, 313, 314, 315, 318, 319, 320, 324, 325, 326, 330, 334, 337, 338, 341, 342, 344, 346, 348, 354, 360, 363, 365, 369, 371, 374, 375, 379, 385, 388, 391, 393, 397, 399, 401, 402, 405, 408, 412, 415, 416, 420, 429, 430, 431, 433, 435, 438, 439, 441, 445, 446, 448, 451, 452, 454, 456, 458, 459, 464, 467, 468, 473, 474, 477, 481, 482, 483, 486, 487, 493, 494, 495, 498, 499, 503, 504, 507, 510, 511, 512, 513, 516, 517, 518, 520, 521, 524, 529, 530, 535, 536, 537, 539, 544, 545, 550, 551, 552, 554, 559, 560, 565, 566, 568, 569, 571, 576, 577, 584, 585, 587, 590, 591, 593, 595, 598, 599, 601, 604, 605, 607, 610, 611, 615, 618, 619, 621, 622, 625, 626, 628, 631, 632, 635, 638, 639, 643, 649, 652, 658, 664, 667, 670, 674, 680, 683, 689, 695, 698, 701, 705, 711, 714, 716, 720, 722, 725, 726, 730, 736, 739, 742, 744, 748, 750, 753, 754, 756, 758, 760, 763, 765, 768, 769, 773, 779, 782, 784, 788, 790, 793, 794, 798, 804, 807, 810, 812, 816, 818, 821, 822, 824, 826, 828, 834, 840, 842, 845, 847, 850, 852, 855, 856, 859, 861, 862, 863, 866, 869, 870, 873, 876, 879, 880, 884, 886, 887, 890, 891, 893, 895, 896, 899, 900, 902, 904, 905, 908, 909, 911, 913, 914, 917, 918, 920, 922, 923, 926, 927], "returns": [349, 372, 653, 684, 723, 791], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 205, 214, 243, 332, 476, 522, 526, 541, 556, 573, 613, 654, 685, 761, 829, 875, 882], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 147, "universal_type": "function", "name": "update_interrupt", "text_snippet": "static void\nupdate_interrupt(AT89C51Uart * ua)\n{\n\tif (ua->regSCON & (SCON_RI | SCON_TI)) {\n\t\tSigNode"}, {"node_id": 149, "universal_type": "function", "name": "unknown", "text_snippet": "update_interrupt(AT89C51Uart * ua)"}, {"node_id": 182, "universal_type": "function", "name": "serial_input", "text_snippet": "static void\nserial_input(void *eventData, UartChar c)\n{\n\tAT89C51Uart *ua = eventData;\n#if 0\n\tstatic "}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "serial_input(void *eventData, UartChar c)"}, {"node_id": 284, "universal_type": "function", "name": "serial_output", "text_snippet": "static bool\nserial_output(void *eventData, UartChar * c)\n{\n\tAT89C51Uart *ua = eventData;\n\t*c = ua->r"}, {"node_id": 286, "universal_type": "function", "name": "unknown", "text_snippet": "serial_output(void *eventData, UartChar * c)"}, {"node_id": 351, "universal_type": "function", "name": "unknown", "text_snippet": "static uint8_t\nscon_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\treturn ua->"}, {"node_id": 353, "universal_type": "function", "name": "unknown", "text_snippet": "scon_read(void *eventData, uint8_t addr)"}, {"node_id": 376, "universal_type": "function", "name": "scon_write", "text_snippet": "static void\nscon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;"}, {"node_id": 378, "universal_type": "function", "name": "unknown", "text_snippet": "scon_write(void *eventData, uint8_t addr, uint8_t value)"}, {"node_id": 640, "universal_type": "function", "name": "unknown", "text_snippet": "static uint8_t\nsaden_read(void *eventData, uint8_t addr)\n{\n\treturn 0;\n}"}, {"node_id": 642, "universal_type": "function", "name": "unknown", "text_snippet": "saden_read(void *eventData, uint8_t addr)"}, {"node_id": 655, "universal_type": "function", "name": "saden_write", "text_snippet": "static void\nsaden_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}"}, {"node_id": 657, "universal_type": "function", "name": "unknown", "text_snippet": "saden_write(void *eventData, uint8_t addr, uint8_t value)"}, {"node_id": 671, "universal_type": "function", "name": "unknown", "text_snippet": "static uint8_t\nsaddr_read(void *eventData, uint8_t addr)\n{\n\treturn 0;\n}"}, {"node_id": 673, "universal_type": "function", "name": "unknown", "text_snippet": "saddr_read(void *eventData, uint8_t addr)"}, {"node_id": 686, "universal_type": "function", "name": "saddr_write", "text_snippet": "static void\nsaddr_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}"}, {"node_id": 688, "universal_type": "function", "name": "unknown", "text_snippet": "saddr_write(void *eventData, uint8_t addr, uint8_t value)"}, {"node_id": 702, "universal_type": "function", "name": "unknown", "text_snippet": "static uint8_t\nsbuf_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\t//fprintf(s"}, {"node_id": 704, "universal_type": "function", "name": "unknown", "text_snippet": "sbuf_read(void *eventData, uint8_t addr)"}, {"node_id": 727, "universal_type": "function", "name": "sbuf_write", "text_snippet": "static void\nsbuf_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;"}, {"node_id": 729, "universal_type": "function", "name": "unknown", "text_snippet": "sbuf_write(void *eventData, uint8_t addr, uint8_t value)"}, {"node_id": 770, "universal_type": "function", "name": "unknown", "text_snippet": "static uint8_t\npcon_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\treturn ua->"}, {"node_id": 772, "universal_type": "function", "name": "unknown", "text_snippet": "pcon_read(void *eventData, uint8_t addr)"}, {"node_id": 795, "universal_type": "function", "name": "pcon_write", "text_snippet": "static void\npcon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;"}, {"node_id": 797, "universal_type": "function", "name": "unknown", "text_snippet": "pcon_write(void *eventData, uint8_t addr, uint8_t value)"}, {"node_id": 831, "universal_type": "function", "name": "AT89C51Uart_New", "text_snippet": "void\nAT89C51Uart_New(const char *name)\n{\n\tAT89C51Uart *ua;\n\tua = sg_new(AT89C51Uart);\n\tua->backend ="}, {"node_id": 833, "universal_type": "function", "name": "unknown", "text_snippet": "AT89C51Uart_New(const char *name)"}], "class_declarations": [{"node_id": 112, "universal_type": "class", "name": "AT89C51_Uart", "text_snippet": "struct AT89C51_Uart {\n\tbool nineBit;\n\tuint8_t regSCON;\n\tuint8_t SM;\n\tuint8_t regSADEN;\n\tuint16_t reg"}, {"node_id": 113, "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 <stdbool.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 \"sglib.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"bus.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"sgstring.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"uart_at89c51.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"cpu_mcs51.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"serial.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"signode.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/**\n *********************************************************************\n *********************************************************************\n */\n#include <stdint.h>\n#include <stdbool.h>\n#include <string.h>\n#include \"sglib.h\"\n#include \"bus.h\"\n#include \"sgstring.h\"\n#include \"uart_at89c51.h\"\n#include \"cpu_mcs51.h\"\n#include \"serial.h\"\n#include \"signode.h\"\n\n#define REG_SCON\t(0x98)\n#define\t\tSCON_RI\t\t(1 << 0)\n#define\t\tSCON_TI\t\t(1 << 1)\n#define \tSCON_RB8\t(1 << 2)\n#define\t\tSCON_TB8\t(1 << 3)\n#define\t\tSCON_REN\t(1 << 4)\n#define\t\tSCON_SM2\t(1 << 5)\n#define\t\tSCON_SM1\t(1 << 6)\n#define\t\tSCON_FESM0\t(1 << 7)\n\n#define\tREG_SADEN\t(0xb9)\n#define REG_SADDR\t(0xa9)\n#define\tREG_SBUF\t(0x99)\n#define\tREG_PCON\t(0x87)\n#define \tPCON_IDL\t(1 << 0)\n#define \tPCON_PD\t\t(1 << 1)\n#define \tPCON_GF0\t(1 << 2)\n#define\t\tPCON_GF1\t(1 << 3)\n#define\t\tPCON_POF\t(1 << 4)\n#define\t\tPCON_SMOD0\t(1 << 6)\n#define\t\tPCON_SMOD1\t(1 << 7)\n\ntypedef struct AT89C51_Uart {\n\tbool nineBit;\n\tuint8_t regSCON;\n\tuint8_t SM;\n\tuint8_t regSADEN;\n\tuint16_t regTXBUF;\n\tuint16_t regRXBUF;\n\tuint8_t regPCON;\n\tUartPort *backend;\n\tSigNode *sigIrq;\n} AT89C51Uart;\n\nstatic void\nupdate_interrupt(AT89C51Uart * ua)\n{\n\tif (ua->regSCON & (SCON_RI | SCON_TI)) {\n\t\tSigNode_Set(ua->sigIrq, SIG_LOW);\n\t} else {\n\t\tSigNode_Set(ua->sigIrq, SIG_OPEN);\n\t}\n}\n\nstatic void\nserial_input(void *eventData, UartChar c)\n{\n\tAT89C51Uart *ua = eventData;\n#if 0\n\tstatic CycleCounter_t last;\n\tfprintf(stderr,\"Input 0x%x at %ld\\n\",c,CyclesToMicroseconds(CycleCounter_Get() - last));\n\tlast = CycleCounter_Get();\n#endif\n\tua->regRXBUF = c;\n\tif (c & 0x100) {\n\t\tua->regSCON = ua->regSCON | SCON_RB8;\n\t} else {\n\t\tua->regSCON = ua->regSCON & ~SCON_RB8;\n\t}\n\tif (ua->regSCON & SCON_RI) {\n\t\t/* Is there any loss detection ? */\n\t}\n\tua->regSCON |= SCON_RI;\n\tupdate_interrupt(ua);\n}\n\nstatic bool\nserial_output(void *eventData, UartChar * c)\n{\n\tAT89C51Uart *ua = eventData;\n\t*c = ua->regTXBUF;\n\tif (ua->nineBit) {\n\t\tif (ua->regSCON & SCON_TB8) {\n\t\t\t*c |= 0x100;\n\t\t}\n\t}\n\tSerialDevice_StopTx(ua->backend);\n\tua->regSCON |= SCON_TI;\n\tupdate_interrupt(ua);\n\treturn true;\n}\n\n/**\n ***********************************************************\n * Register SCON\n *\tBit 0: RI Receive Interrupt (Is this setable ?)\n *\tBit 1: TI\t Transmit Interrupt (Is this setable ?)\n *\tBit 2: RB8 Bit 8 of receive Buffer (9 Bit mode)\t\n *\tBit 3: TB8\t Bit 8 of transmit Buffer (9 Bit mode)\n *\tBit 4: REN Reception enable \n * \tBit 5: SM2 Serial Port mode\n * \tBit 6: SM1\n *\tBit 7: FESM0 Framing error\n ***********************************************************\n */\nstatic uint8_t\nscon_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\treturn ua->regSCON;\n}\n\nstatic void\nscon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;\n\tUartCmd cmd;\n\tuint8_t diff;\n\tuint8_t bits;\n\tuint8_t msk = SCON_RI | SCON_TI;\n\tuint8_t clrmsk = ~((ua->regSCON & msk) ^ msk);\n\tvalue = value & clrmsk;\n\tdiff = ua->regSCON ^ value;\n\tua->regSCON = value;\n\t//fprintf(stderr,\"now %02x\\n\",ua->regSCON);\n\tupdate_interrupt(ua);\n\tif ((diff & (SCON_FESM0 | SCON_SM1)) || (ua->SM == 0xff)) {\n\t\tif (ua->regPCON & PCON_SMOD0) {\n\t\t\tua->SM = (ua->regSCON & SCON_FESM0) | (value & SCON_SM1);\n\t\t} else {\n\t\t\tua->SM = value & (SCON_FESM0 | SCON_SM1);\n\t\t}\n\t\tswitch (ua->SM) {\n\t\t default:\n\t\t case 0:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;\n\t\t case SCON_SM1:\n\t\t\t bits = 8;\n\t\t\t\tua->nineBit = false;\n\t\t\t break;\n\t\t case SCON_FESM0:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;\n\t\t case SCON_FESM0 | SCON_SM1:\n\t\t\t bits = 9;\n\t\t\t\tua->nineBit = true;\n\t\t\t break;\n\n\t\t}\n\t\t//fprintf(stderr,\"Bits :%u\\n\",bits);\n\t\t//sleep(1);\n\t\tcmd.opcode = UART_OPC_SET_CSIZE;\n\t\tcmd.arg = bits;\n\t\tSerialDevice_Cmd(ua->backend, &cmd);\n\t\tcmd.opcode = UART_OPC_SET_BAUDRATE;\n\t\tcmd.arg = 9600;\n\t\tSerialDevice_Cmd(ua->backend, &cmd);\n\t}\n\tif (value & SCON_REN) {\n\t\tSerialDevice_StartRx(ua->backend);\n\t} else {\n\t\tSerialDevice_StopRx(ua->backend);\n\t}\n}\n\nstatic uint8_t\nsaden_read(void *eventData, uint8_t addr)\n{\n\treturn 0;\n}\n\nstatic void\nsaden_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}\n\nstatic uint8_t\nsaddr_read(void *eventData, uint8_t addr)\n{\n\treturn 0;\n}\n\nstatic void\nsaddr_write(void *eventData, uint8_t addr, uint8_t value)\n{\n}\n\nstatic uint8_t\nsbuf_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\t//fprintf(stderr, \"Read RXBUF %02x\\n\", ua->regRXBUF);\n\treturn ua->regRXBUF;\n}\n\nstatic void\nsbuf_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;\n\tua->regTXBUF = value;\n\tfprintf(stderr, \"Write sbuf: 0x%02x\\n\",value);\n\tSerialDevice_StartTx(ua->backend);\n}\n\nstatic uint8_t\npcon_read(void *eventData, uint8_t addr)\n{\n\tAT89C51Uart *ua = eventData;\n\treturn ua->regPCON;\n}\n\nstatic void\npcon_write(void *eventData, uint8_t addr, uint8_t value)\n{\n\tAT89C51Uart *ua = eventData;\n\tua->regPCON = value;\n\tfprintf(stderr, \"Warning regPCON not implemented\\n\");\n}\n\nvoid\nAT89C51Uart_New(const char *name)\n{\n\tAT89C51Uart *ua;\n\tua = sg_new(AT89C51Uart);\n\tua->backend = Uart_New(name, serial_input, serial_output, NULL, ua);\n\tua->sigIrq = SigNode_New(\"%s.irq\", name);\n\tua->SM = 0xff;\n\tMCS51_RegisterSFR(REG_SCON, scon_read, NULL, scon_write, ua);\n\tMCS51_RegisterSFR(REG_SADEN, saden_read, NULL, saden_write, ua);\n\tMCS51_RegisterSFR(REG_SADDR, saddr_read, NULL, saddr_write, ua);\n\tMCS51_RegisterSFR(REG_SBUF, sbuf_read, NULL, sbuf_write, ua);\n\tMCS51_RegisterSFR(REG_PCON, pcon_read, NULL, pcon_write, ua);\n}\n"}
80,308
c
#ifndef EZ_QBUFFER_H_ #define EZ_QBUFFER_H_ #include "ez_def.h" namespace ez { typedef struct { uint32_t in; uint32_t out; uint32_t len; uint32_t size; uint8_t *p_buf; } qbuffer_t; void qbufferInit(void); bool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length); bool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length); bool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length); bool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length); uint8_t *qbufferPeekWrite(qbuffer_t *p_node); uint8_t *qbufferPeekRead(qbuffer_t *p_node); uint32_t qbufferAvailable(qbuffer_t *p_node); void qbufferFlush(qbuffer_t *p_node); } #endif
23.57
30
(translation_unit) "#ifndef EZ_QBUFFER_H_\n#define EZ_QBUFFER_H_\n\n\n#include "ez_def.h"\n\n\nnamespace ez\n{\n\n\ntypedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;\n\n\nvoid qbufferInit(void);\nbool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);\nbool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);\nbool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nbool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nuint8_t *qbufferPeekWrite(qbuffer_t *p_node);\nuint8_t *qbufferPeekRead(qbuffer_t *p_node);\nuint32_t qbufferAvailable(qbuffer_t *p_node);\nvoid qbufferFlush(qbuffer_t *p_node);\n\n\n}\n\n\n#endif" (preproc_ifdef) "#ifndef EZ_QBUFFER_H_\n#define EZ_QBUFFER_H_\n\n\n#include "ez_def.h"\n\n\nnamespace ez\n{\n\n\ntypedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;\n\n\nvoid qbufferInit(void);\nbool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);\nbool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);\nbool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nbool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nuint8_t *qbufferPeekWrite(qbuffer_t *p_node);\nuint8_t *qbufferPeekRead(qbuffer_t *p_node);\nuint32_t qbufferAvailable(qbuffer_t *p_node);\nvoid qbufferFlush(qbuffer_t *p_node);\n\n\n}\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "EZ_QBUFFER_H_" (preproc_def) "#define EZ_QBUFFER_H_\n" (#define) "#define" (identifier) "EZ_QBUFFER_H_" (preproc_include) "#include "ez_def.h"\n" (#include) "#include" (string_literal) ""ez_def.h"" (") """ (string_content) "ez_def.h" (") """ (function_definition) "namespace ez\n{\n\n\ntypedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;\n\n\nvoid qbufferInit(void);\nbool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);\nbool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);\nbool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nbool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nuint8_t *qbufferPeekWrite(qbuffer_t *p_node);\nuint8_t *qbufferPeekRead(qbuffer_t *p_node);\nuint32_t qbufferAvailable(qbuffer_t *p_node);\nvoid qbufferFlush(qbuffer_t *p_node);\n\n\n}" (type_identifier) "namespace" (identifier) "ez" (compound_statement) "{\n\n\ntypedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;\n\n\nvoid qbufferInit(void);\nbool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);\nbool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);\nbool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nbool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nuint8_t *qbufferPeekWrite(qbuffer_t *p_node);\nuint8_t *qbufferPeekRead(qbuffer_t *p_node);\nuint32_t qbufferAvailable(qbuffer_t *p_node);\nvoid qbufferFlush(qbuffer_t *p_node);\n\n\n}" ({) "{" (type_definition) "typedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;" (typedef) "typedef" (struct_specifier) "struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n}" (struct) "struct" (field_declaration_list) "{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n}" ({) "{" (field_declaration) "uint32_t in;" (primitive_type) "uint32_t" (field_identifier) "in" (;) ";" (field_declaration) "uint32_t out;" (primitive_type) "uint32_t" (field_identifier) "out" (;) ";" (field_declaration) "uint32_t len;" (primitive_type) "uint32_t" (field_identifier) "len" (;) ";" (field_declaration) "uint32_t size;" (primitive_type) "uint32_t" (field_identifier) "size" (;) ";" (field_declaration) "uint8_t *p_buf;" (primitive_type) "uint8_t" (pointer_declarator) "*p_buf" (*) "*" (field_identifier) "p_buf" (;) ";" (}) "}" (type_identifier) "qbuffer_t" (;) ";" (declaration) "void qbufferInit(void);" (primitive_type) "void" (function_declarator) "qbufferInit(void)" (identifier) "qbufferInit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "bool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);" (primitive_type) "bool" (function_declarator) "qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length)" (identifier) "qbufferCreate" (parameter_list) "(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length)" (() "(" (parameter_declaration) "qbuffer_t *p_node" (type_identifier) "qbuffer_t" (pointer_declarator) "*p_node" (*) "*" (identifier) "p_node" (,) "," (parameter_declaration) "uint8_t *p_buf" (primitive_type) "uint8_t" (pointer_declarator) "*p_buf" (*) "*" (identifier) "p_buf" (,) "," (parameter_declaration) "uint32_t length" (primitive_type) "uint32_t" (identifier) "length" ()) ")" (;) ";" (declaration) "bool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);" (primitive_type) "bool" (function_declarator) "qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length)" (identifier) "qbufferCreateBySize" (parameter_list) "(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length)" (() "(" (parameter_declaration) "qbuffer_t *p_node" (type_identifier) "qbuffer_t" (pointer_declarator) "*p_node" (*) "*" (identifier) "p_node" (,) "," (parameter_declaration) "uint8_t *p_buf" (primitive_type) "uint8_t" (pointer_declarator) "*p_buf" (*) "*" (identifier) "p_buf" (,) "," (parameter_declaration) "uint32_t size" (primitive_type) "uint32_t" (identifier) "size" (,) "," (parameter_declaration) "uint32_t length" (primitive_type) "uint32_t" (identifier) "length" ()) ")" (;) ";" (declaration) "bool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);" (primitive_type) "bool" (function_declarator) "qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)" (identifier) "qbufferWrite" (parameter_list) "(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)" (() "(" (parameter_declaration) "qbuffer_t *p_node" (type_identifier) "qbuffer_t" (pointer_declarator) "*p_node" (*) "*" (identifier) "p_node" (,) "," (parameter_declaration) "uint8_t *p_data" (primitive_type) "uint8_t" (pointer_declarator) "*p_data" (*) "*" (identifier) "p_data" (,) "," (parameter_declaration) "uint32_t length" (primitive_type) "uint32_t" (identifier) "length" ()) ")" (;) ";" (declaration) "bool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);" (primitive_type) "bool" (function_declarator) "qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)" (identifier) "qbufferRead" (parameter_list) "(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)" (() "(" (parameter_declaration) "qbuffer_t *p_node" (type_identifier) "qbuffer_t" (pointer_declarator) "*p_node" (*) "*" (identifier) "p_node" (,) "," (parameter_declaration) "uint8_t *p_data" (primitive_type) "uint8_t" (pointer_declarator) "*p_data" (*) "*" (identifier) "p_data" (,) "," (parameter_declaration) "uint32_t length" (primitive_type) "uint32_t" (identifier) "length" ()) ")" (;) ";" (declaration) "uint8_t *qbufferPeekWrite(qbuffer_t *p_node);" (primitive_type) "uint8_t" (pointer_declarator) "*qbufferPeekWrite(qbuffer_t *p_node)" (*) "*" (function_declarator) "qbufferPeekWrite(qbuffer_t *p_node)" (identifier) "qbufferPeekWrite" (parameter_list) "(qbuffer_t *p_node)" (() "(" (parameter_declaration) "qbuffer_t *p_node" (type_identifier) "qbuffer_t" (pointer_declarator) "*p_node" (*) "*" (identifier) "p_node" ()) ")" (;) ";" (declaration) "uint8_t *qbufferPeekRead(qbuffer_t *p_node);" (primitive_type) "uint8_t" (pointer_declarator) "*qbufferPeekRead(qbuffer_t *p_node)" (*) "*" (function_declarator) "qbufferPeekRead(qbuffer_t *p_node)" (identifier) "qbufferPeekRead" (parameter_list) "(qbuffer_t *p_node)" (() "(" (parameter_declaration) "qbuffer_t *p_node" (type_identifier) "qbuffer_t" (pointer_declarator) "*p_node" (*) "*" (identifier) "p_node" ()) ")" (;) ";" (declaration) "uint32_t qbufferAvailable(qbuffer_t *p_node);" (primitive_type) "uint32_t" (function_declarator) "qbufferAvailable(qbuffer_t *p_node)" (identifier) "qbufferAvailable" (parameter_list) "(qbuffer_t *p_node)" (() "(" (parameter_declaration) "qbuffer_t *p_node" (type_identifier) "qbuffer_t" (pointer_declarator) "*p_node" (*) "*" (identifier) "p_node" ()) ")" (;) ";" (declaration) "void qbufferFlush(qbuffer_t *p_node);" (primitive_type) "void" (function_declarator) "qbufferFlush(qbuffer_t *p_node)" (identifier) "qbufferFlush" (parameter_list) "(qbuffer_t *p_node)" (() "(" (parameter_declaration) "qbuffer_t *p_node" (type_identifier) "qbuffer_t" (pointer_declarator) "*p_node" (*) "*" (identifier) "p_node" ()) ")" (;) ";" (}) "}" (#endif) "#endif"
213
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.57, "nodes": 161, "errors": 0, "source_hash": "2d4cbcbfc131f6a2735ff6430bea116403c920a89db34de5b244347fe6a8c3bc", "categorized_nodes": 95}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef EZ_QBUFFER_H_\n#define EZ_QBUFFER_H_\n\n\n#include \"ez_def.h\"\n\n\nnamespace ez\n{\n\n\ntypedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;\n\n\nvoid qbufferInit(void);\nbool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);\nbool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);\nbool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nbool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nuint8_t *qbufferPeekWrite(qbuffer_t *p_node);\nuint8_t *qbufferPeekRead(qbuffer_t *p_node);\nuint32_t qbufferAvailable(qbuffer_t *p_node);\nvoid qbufferFlush(qbuffer_t *p_node);\n\n\n}\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 160], "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": "EZ_QBUFFER_H_", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define EZ_QBUFFER_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": "EZ_QBUFFER_H_", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"ez_def.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": "\"ez_def.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 19}}, {"id": 9, "type": "function_definition", "text": "namespace ez\n{\n\n\ntypedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;\n\n\nvoid qbufferInit(void);\nbool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);\nbool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);\nbool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nbool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nuint8_t *qbufferPeekWrite(qbuffer_t *p_node);\nuint8_t *qbufferPeekRead(qbuffer_t *p_node);\nuint32_t qbufferAvailable(qbuffer_t *p_node);\nvoid qbufferFlush(qbuffer_t *p_node);\n\n\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 11, "type": "identifier", "text": "ez", "parent": 9, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 12}}, {"id": 12, "type": "type_definition", "text": "typedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;", "parent": 9, "children": [13, 14, 33], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 19, "column": 12}}, {"id": 13, "type": "typedef", "text": "typedef", "parent": 12, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 14, "type": "struct_specifier", "text": "struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n}", "parent": 12, "children": [15], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 19, "column": 1}}, {"id": 15, "type": "struct", "text": "struct", "parent": 14, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 14}}, {"id": 16, "type": "field_declaration", "text": "uint32_t in;", "parent": 14, "children": [17, 18], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 14}}, {"id": 17, "type": "primitive_type", "text": "uint32_t", "parent": 16, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 10}}, {"id": 18, "type": "field_identifier", "text": "in", "parent": 16, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 13}}, {"id": 19, "type": "field_declaration", "text": "uint32_t out;", "parent": 14, "children": [20, 21], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 15}}, {"id": 20, "type": "primitive_type", "text": "uint32_t", "parent": 19, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 10}}, {"id": 21, "type": "field_identifier", "text": "out", "parent": 19, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 14}}, {"id": 22, "type": "field_declaration", "text": "uint32_t len;", "parent": 14, "children": [23, 24], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 15}}, {"id": 23, "type": "primitive_type", "text": "uint32_t", "parent": 22, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 10}}, {"id": 24, "type": "field_identifier", "text": "len", "parent": 22, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 14}}, {"id": 25, "type": "field_declaration", "text": "uint32_t size;", "parent": 14, "children": [26, 27], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 16}}, {"id": 26, "type": "primitive_type", "text": "uint32_t", "parent": 25, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 10}}, {"id": 27, "type": "field_identifier", "text": "size", "parent": 25, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 15}}, {"id": 28, "type": "field_declaration", "text": "uint8_t *p_buf;", "parent": 14, "children": [29, 30], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 17}}, {"id": 29, "type": "primitive_type", "text": "uint8_t", "parent": 28, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 9}}, {"id": 30, "type": "pointer_declarator", "text": "*p_buf", "parent": 28, "children": [31, 32], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 16}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 11}}, {"id": 32, "type": "field_identifier", "text": "p_buf", "parent": 30, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 16}}, {"id": 33, "type": "type_identifier", "text": "qbuffer_t", "parent": 12, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 11}}, {"id": 34, "type": "declaration", "text": "void qbufferInit(void);", "parent": 9, "children": [35, 36], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 27}}, {"id": 35, "type": "primitive_type", "text": "void", "parent": 34, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 4}}, {"id": 36, "type": "function_declarator", "text": "qbufferInit(void)", "parent": 34, "children": [37, 38], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 26}}, {"id": 37, "type": "identifier", "text": "qbufferInit", "parent": 36, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 20}}, {"id": 38, "type": "parameter_list", "text": "(void)", "parent": 36, "children": [39], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 26}}, {"id": 39, "type": "parameter_declaration", "text": "void", "parent": 38, "children": [40], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 25}}, {"id": 40, "type": "primitive_type", "text": "void", "parent": 39, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 25}}, {"id": 41, "type": "declaration", "text": "bool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);", "parent": 9, "children": [42, 43], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 75}}, {"id": 42, "type": "primitive_type", "text": "bool", "parent": 41, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 4}}, {"id": 43, "type": "function_declarator", "text": "qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length)", "parent": 41, "children": [44, 45], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 74}}, {"id": 44, "type": "identifier", "text": "qbufferCreate", "parent": 43, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 22}}, {"id": 45, "type": "parameter_list", "text": "(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length)", "parent": 43, "children": [46, 51, 56], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 74}}, {"id": 46, "type": "parameter_declaration", "text": "qbuffer_t *p_node", "parent": 45, "children": [47, 48], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 40}}, {"id": 47, "type": "type_identifier", "text": "qbuffer_t", "parent": 46, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 32}}, {"id": 48, "type": "pointer_declarator", "text": "*p_node", "parent": 46, "children": [49, 50], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 40}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 34}}, {"id": 50, "type": "identifier", "text": "p_node", "parent": 48, "children": [], "start_point": {"row": 23, "column": 34}, "end_point": {"row": 23, "column": 40}}, {"id": 51, "type": "parameter_declaration", "text": "uint8_t *p_buf", "parent": 45, "children": [52, 53], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 56}}, {"id": 52, "type": "primitive_type", "text": "uint8_t", "parent": 51, "children": [], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 49}}, {"id": 53, "type": "pointer_declarator", "text": "*p_buf", "parent": 51, "children": [54, 55], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 56}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 51}}, {"id": 55, "type": "identifier", "text": "p_buf", "parent": 53, "children": [], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 56}}, {"id": 56, "type": "parameter_declaration", "text": "uint32_t length", "parent": 45, "children": [57, 58], "start_point": {"row": 23, "column": 58}, "end_point": {"row": 23, "column": 73}}, {"id": 57, "type": "primitive_type", "text": "uint32_t", "parent": 56, "children": [], "start_point": {"row": 23, "column": 58}, "end_point": {"row": 23, "column": 66}}, {"id": 58, "type": "identifier", "text": "length", "parent": 56, "children": [], "start_point": {"row": 23, "column": 67}, "end_point": {"row": 23, "column": 73}}, {"id": 59, "type": "declaration", "text": "bool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);", "parent": 9, "children": [60, 61], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 96}}, {"id": 60, "type": "primitive_type", "text": "bool", "parent": 59, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 4}}, {"id": 61, "type": "function_declarator", "text": "qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length)", "parent": 59, "children": [62, 63], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 95}}, {"id": 62, "type": "identifier", "text": "qbufferCreateBySize", "parent": 61, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 28}}, {"id": 63, "type": "parameter_list", "text": "(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length)", "parent": 61, "children": [64, 69, 74, 77], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 95}}, {"id": 64, "type": "parameter_declaration", "text": "qbuffer_t *p_node", "parent": 63, "children": [65, 66], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 46}}, {"id": 65, "type": "type_identifier", "text": "qbuffer_t", "parent": 64, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 38}}, {"id": 66, "type": "pointer_declarator", "text": "*p_node", "parent": 64, "children": [67, 68], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 46}}, {"id": 67, "type": "*", "text": "*", "parent": 66, "children": [], "start_point": {"row": 24, "column": 39}, "end_point": {"row": 24, "column": 40}}, {"id": 68, "type": "identifier", "text": "p_node", "parent": 66, "children": [], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 46}}, {"id": 69, "type": "parameter_declaration", "text": "uint8_t *p_buf", "parent": 63, "children": [70, 71], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 62}}, {"id": 70, "type": "primitive_type", "text": "uint8_t", "parent": 69, "children": [], "start_point": {"row": 24, "column": 48}, "end_point": {"row": 24, "column": 55}}, {"id": 71, "type": "pointer_declarator", "text": "*p_buf", "parent": 69, "children": [72, 73], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 62}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 57}}, {"id": 73, "type": "identifier", "text": "p_buf", "parent": 71, "children": [], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 62}}, {"id": 74, "type": "parameter_declaration", "text": "uint32_t size", "parent": 63, "children": [75, 76], "start_point": {"row": 24, "column": 64}, "end_point": {"row": 24, "column": 77}}, {"id": 75, "type": "primitive_type", "text": "uint32_t", "parent": 74, "children": [], "start_point": {"row": 24, "column": 64}, "end_point": {"row": 24, "column": 72}}, {"id": 76, "type": "identifier", "text": "size", "parent": 74, "children": [], "start_point": {"row": 24, "column": 73}, "end_point": {"row": 24, "column": 77}}, {"id": 77, "type": "parameter_declaration", "text": "uint32_t length", "parent": 63, "children": [78, 79], "start_point": {"row": 24, "column": 79}, "end_point": {"row": 24, "column": 94}}, {"id": 78, "type": "primitive_type", "text": "uint32_t", "parent": 77, "children": [], "start_point": {"row": 24, "column": 79}, "end_point": {"row": 24, "column": 87}}, {"id": 79, "type": "identifier", "text": "length", "parent": 77, "children": [], "start_point": {"row": 24, "column": 88}, "end_point": {"row": 24, "column": 94}}, {"id": 80, "type": "declaration", "text": "bool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);", "parent": 9, "children": [81, 82], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 75}}, {"id": 81, "type": "primitive_type", "text": "bool", "parent": 80, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 4}}, {"id": 82, "type": "function_declarator", "text": "qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)", "parent": 80, "children": [83, 84], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 74}}, {"id": 83, "type": "identifier", "text": "qbufferWrite", "parent": 82, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 21}}, {"id": 84, "type": "parameter_list", "text": "(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)", "parent": 82, "children": [85, 90, 95], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 74}}, {"id": 85, "type": "parameter_declaration", "text": "qbuffer_t *p_node", "parent": 84, "children": [86, 87], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 39}}, {"id": 86, "type": "type_identifier", "text": "qbuffer_t", "parent": 85, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 31}}, {"id": 87, "type": "pointer_declarator", "text": "*p_node", "parent": 85, "children": [88, 89], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 39}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 33}}, {"id": 89, "type": "identifier", "text": "p_node", "parent": 87, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 39}}, {"id": 90, "type": "parameter_declaration", "text": "uint8_t *p_data", "parent": 84, "children": [91, 92], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 56}}, {"id": 91, "type": "primitive_type", "text": "uint8_t", "parent": 90, "children": [], "start_point": {"row": 25, "column": 41}, "end_point": {"row": 25, "column": 48}}, {"id": 92, "type": "pointer_declarator", "text": "*p_data", "parent": 90, "children": [93, 94], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 56}}, {"id": 93, "type": "*", "text": "*", "parent": 92, "children": [], "start_point": {"row": 25, "column": 49}, "end_point": {"row": 25, "column": 50}}, {"id": 94, "type": "identifier", "text": "p_data", "parent": 92, "children": [], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 56}}, {"id": 95, "type": "parameter_declaration", "text": "uint32_t length", "parent": 84, "children": [96, 97], "start_point": {"row": 25, "column": 58}, "end_point": {"row": 25, "column": 73}}, {"id": 96, "type": "primitive_type", "text": "uint32_t", "parent": 95, "children": [], "start_point": {"row": 25, "column": 58}, "end_point": {"row": 25, "column": 66}}, {"id": 97, "type": "identifier", "text": "length", "parent": 95, "children": [], "start_point": {"row": 25, "column": 67}, "end_point": {"row": 25, "column": 73}}, {"id": 98, "type": "declaration", "text": "bool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);", "parent": 9, "children": [99, 100], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 74}}, {"id": 99, "type": "primitive_type", "text": "bool", "parent": 98, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 100, "type": "function_declarator", "text": "qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)", "parent": 98, "children": [101, 102], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 73}}, {"id": 101, "type": "identifier", "text": "qbufferRead", "parent": 100, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 20}}, {"id": 102, "type": "parameter_list", "text": "(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)", "parent": 100, "children": [103, 108, 113], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 73}}, {"id": 103, "type": "parameter_declaration", "text": "qbuffer_t *p_node", "parent": 102, "children": [104, 105], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 38}}, {"id": 104, "type": "type_identifier", "text": "qbuffer_t", "parent": 103, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 30}}, {"id": 105, "type": "pointer_declarator", "text": "*p_node", "parent": 103, "children": [106, 107], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 38}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 32}}, {"id": 107, "type": "identifier", "text": "p_node", "parent": 105, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 38}}, {"id": 108, "type": "parameter_declaration", "text": "uint8_t *p_data", "parent": 102, "children": [109, 110], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 55}}, {"id": 109, "type": "primitive_type", "text": "uint8_t", "parent": 108, "children": [], "start_point": {"row": 26, "column": 40}, "end_point": {"row": 26, "column": 47}}, {"id": 110, "type": "pointer_declarator", "text": "*p_data", "parent": 108, "children": [111, 112], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 55}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 26, "column": 48}, "end_point": {"row": 26, "column": 49}}, {"id": 112, "type": "identifier", "text": "p_data", "parent": 110, "children": [], "start_point": {"row": 26, "column": 49}, "end_point": {"row": 26, "column": 55}}, {"id": 113, "type": "parameter_declaration", "text": "uint32_t length", "parent": 102, "children": [114, 115], "start_point": {"row": 26, "column": 57}, "end_point": {"row": 26, "column": 72}}, {"id": 114, "type": "primitive_type", "text": "uint32_t", "parent": 113, "children": [], "start_point": {"row": 26, "column": 57}, "end_point": {"row": 26, "column": 65}}, {"id": 115, "type": "identifier", "text": "length", "parent": 113, "children": [], "start_point": {"row": 26, "column": 66}, "end_point": {"row": 26, "column": 72}}, {"id": 116, "type": "declaration", "text": "uint8_t *qbufferPeekWrite(qbuffer_t *p_node);", "parent": 9, "children": [117, 118], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 45}}, {"id": 117, "type": "primitive_type", "text": "uint8_t", "parent": 116, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 118, "type": "pointer_declarator", "text": "*qbufferPeekWrite(qbuffer_t *p_node)", "parent": 116, "children": [119, 120], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 44}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 9}}, {"id": 120, "type": "function_declarator", "text": "qbufferPeekWrite(qbuffer_t *p_node)", "parent": 118, "children": [121, 122], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 44}}, {"id": 121, "type": "identifier", "text": "qbufferPeekWrite", "parent": 120, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 25}}, {"id": 122, "type": "parameter_list", "text": "(qbuffer_t *p_node)", "parent": 120, "children": [123], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 44}}, {"id": 123, "type": "parameter_declaration", "text": "qbuffer_t *p_node", "parent": 122, "children": [124, 125], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 43}}, {"id": 124, "type": "type_identifier", "text": "qbuffer_t", "parent": 123, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 35}}, {"id": 125, "type": "pointer_declarator", "text": "*p_node", "parent": 123, "children": [126, 127], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 43}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 37}}, {"id": 127, "type": "identifier", "text": "p_node", "parent": 125, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 43}}, {"id": 128, "type": "declaration", "text": "uint8_t *qbufferPeekRead(qbuffer_t *p_node);", "parent": 9, "children": [129, 130], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 44}}, {"id": 129, "type": "primitive_type", "text": "uint8_t", "parent": 128, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 130, "type": "pointer_declarator", "text": "*qbufferPeekRead(qbuffer_t *p_node)", "parent": 128, "children": [131, 132], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 43}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 9}}, {"id": 132, "type": "function_declarator", "text": "qbufferPeekRead(qbuffer_t *p_node)", "parent": 130, "children": [133, 134], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 43}}, {"id": 133, "type": "identifier", "text": "qbufferPeekRead", "parent": 132, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 24}}, {"id": 134, "type": "parameter_list", "text": "(qbuffer_t *p_node)", "parent": 132, "children": [135], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 43}}, {"id": 135, "type": "parameter_declaration", "text": "qbuffer_t *p_node", "parent": 134, "children": [136, 137], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 42}}, {"id": 136, "type": "type_identifier", "text": "qbuffer_t", "parent": 135, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 34}}, {"id": 137, "type": "pointer_declarator", "text": "*p_node", "parent": 135, "children": [138, 139], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 42}}, {"id": 138, "type": "*", "text": "*", "parent": 137, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 36}}, {"id": 139, "type": "identifier", "text": "p_node", "parent": 137, "children": [], "start_point": {"row": 28, "column": 36}, "end_point": {"row": 28, "column": 42}}, {"id": 140, "type": "declaration", "text": "uint32_t qbufferAvailable(qbuffer_t *p_node);", "parent": 9, "children": [141, 142], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 45}}, {"id": 141, "type": "primitive_type", "text": "uint32_t", "parent": 140, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 142, "type": "function_declarator", "text": "qbufferAvailable(qbuffer_t *p_node)", "parent": 140, "children": [143, 144], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 44}}, {"id": 143, "type": "identifier", "text": "qbufferAvailable", "parent": 142, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 25}}, {"id": 144, "type": "parameter_list", "text": "(qbuffer_t *p_node)", "parent": 142, "children": [145], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 44}}, {"id": 145, "type": "parameter_declaration", "text": "qbuffer_t *p_node", "parent": 144, "children": [146, 147], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 43}}, {"id": 146, "type": "type_identifier", "text": "qbuffer_t", "parent": 145, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 35}}, {"id": 147, "type": "pointer_declarator", "text": "*p_node", "parent": 145, "children": [148, 149], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 43}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 37}}, {"id": 149, "type": "identifier", "text": "p_node", "parent": 147, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 43}}, {"id": 150, "type": "declaration", "text": "void qbufferFlush(qbuffer_t *p_node);", "parent": 9, "children": [151, 152], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 41}}, {"id": 151, "type": "primitive_type", "text": "void", "parent": 150, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 4}}, {"id": 152, "type": "function_declarator", "text": "qbufferFlush(qbuffer_t *p_node)", "parent": 150, "children": [153, 154], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 40}}, {"id": 153, "type": "identifier", "text": "qbufferFlush", "parent": 152, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 21}}, {"id": 154, "type": "parameter_list", "text": "(qbuffer_t *p_node)", "parent": 152, "children": [155], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 40}}, {"id": 155, "type": "parameter_declaration", "text": "qbuffer_t *p_node", "parent": 154, "children": [156, 157], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 39}}, {"id": 156, "type": "type_identifier", "text": "qbuffer_t", "parent": 155, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 31}}, {"id": 157, "type": "pointer_declarator", "text": "*p_node", "parent": 155, "children": [158, 159], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 39}}, {"id": 158, "type": "*", "text": "*", "parent": 157, "children": [], "start_point": {"row": 30, "column": 32}, "end_point": {"row": 30, "column": 33}}, {"id": 159, "type": "identifier", "text": "p_node", "parent": 157, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 39}}, {"id": 160, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 36, 43, 61, 82, 100, 120, 132, 142, 152], "variables": [12, 16, 19, 22, 25, 28, 34, 39, 41, 46, 51, 56, 59, 64, 69, 74, 77, 80, 85, 90, 95, 98, 103, 108, 113, 116, 123, 128, 135, 140, 145, 150, 155], "classes": [14, 15], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 18, 21, 24, 27, 32, 33, 37, 44, 47, 50, 55, 58, 62, 65, 68, 73, 76, 79, 83, 86, 89, 94, 97, 101, 104, 107, 112, 115, 121, 124, 127, 133, 136, 139, 143, 146, 149, 153, 156, 159, 160], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "{", "text_snippet": "namespace ez\n{\n\n\ntypedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n "}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferInit(void)"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length)"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length)"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length)"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferPeekWrite(qbuffer_t *p_node)"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferPeekRead(qbuffer_t *p_node)"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferAvailable(qbuffer_t *p_node)"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "qbufferFlush(qbuffer_t *p_node)"}], "class_declarations": [{"node_id": 14, "universal_type": "class", "name": "{", "text_snippet": "struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n}"}, {"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"ez_def.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef EZ_QBUFFER_H_\n#define EZ_QBUFFER_H_\n\n\n#include \"ez_def.h\"\n\n\nnamespace ez\n{\n\n\ntypedef struct\n{\n uint32_t in;\n uint32_t out;\n uint32_t len;\n uint32_t size;\n\n uint8_t *p_buf;\n} qbuffer_t;\n\n\nvoid qbufferInit(void);\nbool qbufferCreate(qbuffer_t *p_node, uint8_t *p_buf, uint32_t length);\nbool qbufferCreateBySize(qbuffer_t *p_node, uint8_t *p_buf, uint32_t size, uint32_t length);\nbool qbufferWrite(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nbool qbufferRead(qbuffer_t *p_node, uint8_t *p_data, uint32_t length);\nuint8_t *qbufferPeekWrite(qbuffer_t *p_node);\nuint8_t *qbufferPeekRead(qbuffer_t *p_node);\nuint32_t qbufferAvailable(qbuffer_t *p_node);\nvoid qbufferFlush(qbuffer_t *p_node);\n\n\n}\n\n\n#endif"}
80,309
c
// // TFCustomTabBarItem.h // TFUILib // // Created by <NAME> on 16/3/9. // Copyright © 2016年 <EMAIL> All rights reserved. // #import "TFView.h" /** * TFCustomTabBarItem */ @interface TFCustomTabBarItem : TFView /** * 点击回调 */ typedef void(^TouchActionBlock)(TFCustomTabBarItem *); /** * 是否被选择(单独更改无法切换Controller) */ @property (nonatomic, assign) BOOL selected; /** * 正常背景色 */ @property (nonatomic, strong) UIColor *normalBackgroundColor; /** * 选中背景色 */ @property (nonatomic, strong) UIColor *selectBackgroundColor; /** * 正常背景图片 */ @property (nonatomic, strong) UIImage *normalBackgroundImage; /** * 选中背景图片 */ @property (nonatomic, strong) UIImage *selectBackgroundImage; /** * 标记值 */ @property (nonatomic, strong) NSString *badgeValue; /** * 标记背景色 */ @property (nonatomic, strong) UIColor * badgeBackgroundColor; /** * 标记文本色 */ @property (nonatomic, strong) UIColor * badgeStringColor; /** * 标题 */ @property (nonatomic, strong) NSString *title; /** * 标题正常色 */ @property (nonatomic, strong) UIColor * titleNormalColor; /** * 标题选择色 */ @property (nonatomic, strong) UIColor * titleSelectColor; /** * 正常图片 */ @property (nonatomic, strong) UIImage *normalImage; /** * 选择图片 */ @property (nonatomic, strong) UIImage *selectImage; /** * 点击回调(请勿自行赋值) */ @property (nonatomic, strong) TouchActionBlock touchActionBlock; /** * 是否显示红点 */ @property (nonatomic, assign) BOOL shouldShowRedPoint; /** * 红点大小(长和宽) */ @property (nonatomic, assign) float redPointSize; /** * 初始化TFCustomTabBarItem * * @param title 标题 * @param normalImage 正常图片 * @param selectedImage 选中图片 * * @return TFCustomTabBarItem */ - (instancetype)initWithTitle:(NSString *)title normalImage:(UIImage *)normalImage selectedImage:(UIImage *)selectedImage; @end
18.67
93
(translation_unit) "//\n// TFCustomTabBarItem.h\n// TFUILib\n//\n// Created by <NAME> on 16/3/9.\n// Copyright © 2016年 <EMAIL> All rights reserved.\n//\n\n#import "TFView.h"\n\n/**\n * TFCustomTabBarItem\n */\n@interface TFCustomTabBarItem : TFView\n\n/**\n * 点击回调\n */\ntypedef void(^TouchActionBlock)(TFCustomTabBarItem *);\n\n/**\n * 是否被选择(单独更改无法切换Controller)\n */\n@property (nonatomic, assign) BOOL selected;\n\n/**\n * 正常背景色\n */\n@property (nonatomic, strong) UIColor *normalBackgroundColor;\n\n/**\n * 选中背景色\n */\n@property (nonatomic, strong) UIColor *selectBackgroundColor;\n\n/**\n * 正常背景图片\n */\n@property (nonatomic, strong) UIImage *normalBackgroundImage;\n\n/**\n * 选中背景图片\n */\n@property (nonatomic, strong) UIImage *selectBackgroundImage;\n\n/**\n * 标记值\n */\n@property (nonatomic, strong) NSString *badgeValue;\n\n/**\n * 标记背景色\n */\n@property (nonatomic, strong) UIColor * badgeBackgroundColor;\n\n/**\n * 标记文本色\n */\n@property (nonatomic, strong) UIColor * badgeStringColor;\n\n/**\n * 标题\n */\n@property (nonatomic, strong) NSString *title;\n\n/**\n * 标题正常色\n */\n@property (nonatomic, strong) UIColor * titleNormalColor;\n\n/**\n * 标题选择色\n */\n@property (nonatomic, strong) UIColor * titleSelectColor;\n\n/**\n * 正常图片\n */\n@property (nonatomic, strong) UIImage *normalImage;\n\n/**\n * 选择图片\n */\n@property (nonatomic, strong) UIImage *selectImage;\n\n/**\n * 点击回调(请勿自行赋值)\n */\n@property (nonatomic, strong) TouchActionBlock touchActionBlock;\n\n/**\n * 是否显示红点\n */\n@property (nonatomic, assign) BOOL shouldShowRedPoint;\n\n/**\n * 红点大小(长和宽)\n */\n@property (nonatomic, assign) float redPointSize;\n\n/**\n * 初始化TFCustomTabBarItem\n *\n * @param title 标题\n * @param normalImage 正常图片\n * @param selectedImage 选中图片\n *\n * @return TFCustomTabBarItem\n */\n- (instancetype)initWithTitle:(NSString *)title\n normalImage:(UIImage *)normalImage\n selectedImage:(UIImage *)selectedImage;\n\n@end\n" (comment) "//" (comment) "// TFCustomTabBarItem.h" (comment) "// TFUILib" (comment) "//" (comment) "// Created by <NAME> on 16/3/9." (comment) "// Copyright © 2016年 <EMAIL> All rights reserved.\n//" (comment) "\n#" (preproc_call) "port "TFView.h"\n\n/*" (preproc_directive) "port "T" (preproc_arg) "View.h"\n\n/" (comment) "\n * TFCustomTabBarItem\n */\n@i" (ERROR) "terface TFCustomTabBarItem : TFView\n\n/" (ERROR) "t" (type_identifier) "erface TF" (identifier) "ustomTabBarItem : " (:) "F" (identifier) "iew\n\n/" (comment) "\n * 点击回调\n */\ntypedef vo" (type_definition) "d(^TouchActionBlock)(TFCustomTabBarItem *);\n\n/**\n * 是" (typedef) "d(^Touc" (primitive_type) "Acti" (function_declarator) "onBlock)(TFCustomTabBarItem *);\n\n/**\n * " (parenthesized_declarator) "onBlock)(TFCustomTa" (() "o" (ERROR) "n" (^) "n" (type_identifier) "Block)(TFCustomT" ()) "a" (parameter_list) "bBarItem *);\n\n/**\n * " (() "b" (parameter_declaration) "BarItem *);\n\n/**\n * " (type_identifier) "BarItem *);\n\n/**\n " (abstract_pointer_declarator) " " (*) " " ()) " " (;) "是" (comment) "选择(单独更改无法切换Controller)\n */\n@property (nonatomic, assign) BOOL s" (ERROR) "lected;\n\n/**\n * 正常背景色\n */\n@proper" (ERROR) "l" (call_expression) "ected;\n\n/**\n * 正常背景色\n */\n@p" (identifier) "ected;\n\n" (argument_list) "**\n * 正常背景色\n */\n@p" (() "*" (identifier) "*\n * 正常背" (,) "景" (identifier) "\n */\n@" ()) "p" (identifier) "oper" (expression_statement) "y (nonato" (identifier) "y (nonat" (;) "o" (comment) "c, strong) UIColor *normalB" (ERROR) "c" (ERROR) "c" (expression_statement) "kgroundColor;\n\n/**\n * 选中背景色" (call_expression) "kgroundColor;\n\n/**\n * 选中背景色" (identifier) "kgroundC" (argument_list) "lor;\n\n/**\n * 选中背景色" (() "l" (identifier) "or;\n\n/**\n" (,) " " (identifier) " 选中背景" ()) "色" (;) "" (declaration) " */\n@property (nonatomic, stron" (type_identifier) " */\n@pr" (pointer_declarator) "perty (nonatomic, stro" (*) "p" (identifier) "erty (nonatomic, stro" (;) "n" (comment) " UIColor *selectBackgroundC" (ERROR) "l" (ERROR) "l" (expression_statement) "or;\n\n/**\n * 正常背景图片\n */\n@pro" (call_expression) "or;\n\n/**\n * 正常背景图片\n */\n@pro" (identifier) "or;\n\n/**" (argument_list) " * 正常背景图片\n */\n@pro" (() " " (identifier) "* 正常背景图片" (,) "\n" (identifier) "*/\n@pr" ()) "o" (;) "" (declaration) "erty (nonatomic, strong) UIImag" (type_identifier) "erty (n" (pointer_declarator) "natomic, strong) UIIma" (*) "n" (identifier) "atomic, strong) UIIma" (;) "g" (comment) "*normalBackgroundImage;\n\n/**\n " (ERROR) " " (ERROR) " " (expression_statement) " 选中背景图片\n */\n@property (nonat" (call_expression) " 选中背景图片\n */\n@property (nonat" (identifier) " 选中背景图片\n" (argument_list) "*/\n@property (nonat" (() "*" (identifier) "/\n@proper" (,) "t" (identifier) " (nona" ()) "t" (;) "" (declaration) "mic, strong) UIImage *selectBac" (type_identifier) "mic, st" (pointer_declarator) "ong) UIImage *selectBa" (*) "o" (identifier) "ng) UIImage *selectBa" (;) "c" (comment) "roundImage;\n\n/**\n * 标记值\n */\n@" (ERROR) "r" (ERROR) "r" (expression_statement) "operty (nonatomic, strong) N" (call_expression) "operty (nonatomic, strong) N" (identifier) "operty (" (argument_list) "onatomic, strong) N" (() "o" (identifier) "natomic, " (,) "s" (identifier) "rong) " ()) "N" (;) "" (declaration) "String *badgeValue;\n\n/**\n * 标记" (type_identifier) "String " (pointer_declarator) "badgeValue;\n\n/**\n * 标" (*) "b" (identifier) "adgeValue;\n\n/**\n * 标" (;) "记" (comment) "色\n */\n@property (nona" (ERROR) "o" (ERROR) "o" (expression_statement) "mic, strong) UIColor * badge" (call_expression) "mic, strong) UIColor * badge" (identifier) "mic, str" (argument_list) "ng) UIColor * badge" (() "n" (identifier) "g) UIColo" (,) "r" (identifier) "* badg" ()) "e" (;) "" (declaration) "ackgroundColor;\n\n/**\n" (type_identifier) "ackgroun" (pointer_declarator) "Color;\n\n/**" (*) "C" (identifier) "olor;\n\n/**" (;) "\n" (comment) " 标记文本色\n */\n@property (nona" (ERROR) "o" (ERROR) "o" (expression_statement) "mic, strong) UIColor * badge" (call_expression) "mic, strong) UIColor * badge" (identifier) "mic, str" (argument_list) "ng) UIColor * badge" (() "n" (identifier) "g) UIColo" (,) "r" (identifier) "* badg" ()) "e" (;) "" (declaration) "tringColor;\n\n/**\n * 标题\n */\n@pr" (type_identifier) "tringCo" (pointer_declarator) "or;\n\n/**\n * 标题\n */\n@p" (*) "o" (identifier) ";\n\n/**\n * 标题\n */\n@p" (;) "r" (comment) "erty (nonatomic, strong) NS" (ERROR) "t" (ERROR) "t" (expression_statement) "ring *title;\n\n/**\n * 标题正常色\n" (call_expression) "ring *title;\n\n/**\n * 标题正常色\n" (identifier) "ring *ti" (argument_list) "le;\n\n/**\n * 标题正常色\n" (() "l" (identifier) "e;\n\n/**\n " (,) "*" (identifier) " 标题正常色" ()) "\n" (;) "" (declaration) "*/\n@property (nonatomic, st" (type_identifier) "*/\n@pro" (pointer_declarator) "erty (nonatomic, s" (*) "e" (identifier) "ty (nonatomic, s" (;) "t" (comment) "ng) UIColor * titl" (ERROR) "N" (ERROR) "N" (expression_statement) "ormalColor;\n\n/**\n * 标题选择色\n " (call_expression) "ormalColor;\n\n/**\n * 标题选择色\n " (identifier) "ormalCol" (argument_list) "r;\n\n/**\n * 标题选择色\n " (() "r" (identifier) ";\n\n/**\n *" (,) " " (identifier) "标题选择色\n" ()) " " (;) "" (declaration) "/\n@property (non" (type_identifier) "/\n@prope" (pointer_declarator) "ty (no" (*) "t" (identifier) "y (no" (;) "n" (comment) "omic, strong) UIColor * tit" (ERROR) "e" (ERROR) "e" (expression_statement) "SelectColor;\n\n/**\n * 正常图片\n " (call_expression) "SelectColor;\n\n/**\n * 正常图片\n " (identifier) "SelectCo" (argument_list) "or;\n\n/**\n * 正常图片\n " (() "o" (identifier) "r;\n\n/**\n " (,) "*" (identifier) " 正常图片\n" ()) " " (;) "" (declaration) "/\n@property (nonatomic, str" (type_identifier) "/\n@prop" (pointer_declarator) "rty (nonatomic, st" (*) "r" (identifier) "y (nonatomic, st" (;) "r" (comment) "g) UIImage *normalImage;\n\n/" (ERROR) "*" (ERROR) "*" (expression_statement) "\n * 选择图片\n */\n@property (non" (call_expression) "\n * 选择图片\n */\n@property (non" (identifier) "\n * 选择图" (argument_list) "\n */\n@property (non" (() "\n" (identifier) " */\n@prop" (,) "e" (identifier) "ty (no" ()) "n" (;) "" (declaration) "tomic, strong) UIImage *sel" (type_identifier) "tomic, " (pointer_declarator) "trong) UIImage *se" (*) "t" (identifier) "ong) UIImage *se" (;) "l" (comment) "tImage;\n\n/**\n * 点击回调(请勿" (ERROR) "行" (ERROR) "行" (expression_statement) "赋值)\n */\n@property (nonatomic" (call_expression) "赋值)\n */\n@property (nonatomic" (identifier) "赋值)\n */\n" (argument_list) "property (nonatomic" (() "p" (identifier) "roperty (" (,) "n" (identifier) "natomi" ()) "c" (;) "" (declaration) " strong) TouchActionB" (type_identifier) " strong" (pointer_declarator) " TouchAction" (*) " " (identifier) "TouchAction" (;) "B" (comment) "ck touchActionBlock;\n\n/*" (ERROR) "\n" (ERROR) "\n" (expression_statement) " * 是否显示红点\n */\n@property (no" (call_expression) " * 是否显示红点\n */\n@property (no" (identifier) " * 是否显示" (argument_list) "点\n */\n@property (no" (() "点" (identifier) "\n */\n@pro" (,) "p" (identifier) "rty (n" ()) "o" (;) "" (declaration) "atomic, assign) BOOL " (type_identifier) "atomic," (pointer_declarator) "assign) BOOL" (*) "a" (identifier) "ssign) BOOL" (;) " " (comment) "ouldShowRedPoint;\n\n/**\n * 红点大小(长和宽)\n */\n@pr" (ERROR) "perty (nonatomic, assign) float redPointSize;\n" (ERROR) "p" (call_expression) "erty (nonatomic, assign) flo" (identifier) "erty (no" (argument_list) "atomic, assign) flo" (() "a" (identifier) "tomic, as" (,) "s" (identifier) "gn) fl" ()) "o" (identifier) "t redPointSize;\n" (expression_statement) "/**\n * 初始化TFCust" (identifier) "/**\n * 初始化TFCus" (;) "t" (comment) "TabBarItem\n *\n * @param title" (ERROR) " 标题\n * @param normalImage " (ERROR) " " (call_expression) " 标题\n * @param normalI" (identifier) " 标" (argument_list) "\n * @param normalI" (() "\n" (identifier) " * @para" (,) "m" (identifier) "normal" ()) "I" (identifier) "age " (expression_statement) " 正常图片\n * @param se" (identifier) " 正常图片\n * @param s" (;) "e" (comment) "ctedImage 选中图片\n *\n * @return TFCustomT" (ERROR) "bBarItem\n */\n- (instancetype)initWi" (ERROR) "b" (call_expression) "BarItem\n */\n- (instancetype)" (identifier) "BarItem\n" (argument_list) "*/\n- (instancetype)" (() "*" (identifier) "/\n- (inst" (,) "a" (identifier) "cetype" ()) ")" (identifier) "nitWi" (expression_statement) "hTitle:(NSStr" (identifier) "hTitle:(NSSt" (;) "r" (comment) "g *)title\n normalImage:(UIImage *)normalImage\n selectedImage:(UIImage *)selectedImage;\n\n@end\n" (ERROR) "" (binary_expression) "" (binary_expression) "" (binary_expression) "" (unary_expression) "" (-) "" (cast_expression) "" (() "" (type_descriptor) "" (type_identifier) "" ()) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (identifier) "" (ERROR) "" (:) "" (() "" (identifier) "" (*) "" (ERROR) "" ()) "" (identifier) "" (;) "" (ERROR) "" (identifier) ""
367
43
{"language": "c", "success": true, "metadata": {"lines": 93, "avg_line_length": 18.67, "nodes": 230, "errors": 0, "source_hash": "7228ba543a42c4ed9c34b204b3575424d8f15a28863e0e5386baa907bf14afe0", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port \"TFView.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": "port \"T", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "View.h\"\n\n/", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 18}}, {"id": 3, "type": "ERROR", "text": "terface TFCustomTabBarItem : TFView\n\n/", "parent": null, "children": [4, 5, 6, 7], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 38}}, {"id": 4, "type": "ERROR", "text": "t", "parent": 3, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 5, "type": "type_identifier", "text": "erface TF", "parent": 3, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 6, "type": "identifier", "text": "ustomTabBarItem : ", "parent": 3, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 29}}, {"id": 7, "type": "identifier", "text": "iew\n\n/", "parent": 3, "children": [], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 38}}, {"id": 8, "type": "type_definition", "text": "d(^TouchActionBlock)(TFCustomTabBarItem *);\n\n/**\n * \u662f", "parent": null, "children": [9, 10, 11], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 54}}, {"id": 9, "type": "typedef", "text": "d(^Touc", "parent": 8, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 10, "type": "primitive_type", "text": "Acti", "parent": 8, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 12}}, {"id": 11, "type": "function_declarator", "text": "onBlock)(TFCustomTabBarItem *);\n\n/**\n * ", "parent": 8, "children": [12, 16], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 53}}, {"id": 12, "type": "parenthesized_declarator", "text": "onBlock)(TFCustomTa", "parent": 11, "children": [13, 15], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 31}}, {"id": 13, "type": "ERROR", "text": "n", "parent": 12, "children": [14], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 14}}, {"id": 14, "type": "^", "text": "n", "parent": 13, "children": [], "start_point": {"row": 18, "column": 13}, "end_point": {"row": 18, "column": 14}}, {"id": 15, "type": "type_identifier", "text": "Block)(TFCustomT", "parent": 12, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 30}}, {"id": 16, "type": "parameter_list", "text": "bBarItem *);\n\n/**\n * ", "parent": 11, "children": [17], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 53}}, {"id": 17, "type": "parameter_declaration", "text": "BarItem *);\n\n/**\n * ", "parent": 16, "children": [18, 19], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 52}}, {"id": 18, "type": "type_identifier", "text": "BarItem *);\n\n/**\n ", "parent": 17, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 50}}, {"id": 19, "type": "abstract_pointer_declarator", "text": " ", "parent": 17, "children": [20], "start_point": {"row": 18, "column": 51}, "end_point": {"row": 18, "column": 52}}, {"id": 20, "type": "*", "text": " ", "parent": 19, "children": [], "start_point": {"row": 18, "column": 51}, "end_point": {"row": 18, "column": 52}}, {"id": 21, "type": "ERROR", "text": "lected;\n\n/**\n * \u6b63\u5e38\u80cc\u666f\u8272\n */\n@proper", "parent": null, "children": [22, 23, 28], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 34}}, {"id": 22, "type": "ERROR", "text": "l", "parent": 21, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 23, "type": "call_expression", "text": "ected;\n\n/**\n * \u6b63\u5e38\u80cc\u666f\u8272\n */\n@p", "parent": 21, "children": [24, 25], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 29}}, {"id": 24, "type": "identifier", "text": "ected;\n\n", "parent": 23, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 9}}, {"id": 25, "type": "argument_list", "text": "**\n * \u6b63\u5e38\u80cc\u666f\u8272\n */\n@p", "parent": 23, "children": [26, 27], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 29}}, {"id": 26, "type": "identifier", "text": "*\n * \u6b63\u5e38\u80cc", "parent": 25, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 20}}, {"id": 27, "type": "identifier", "text": "\n */\n@", "parent": 25, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 28}}, {"id": 28, "type": "identifier", "text": "oper", "parent": 21, "children": [], "start_point": {"row": 23, "column": 30}, "end_point": {"row": 23, "column": 34}}, {"id": 29, "type": "identifier", "text": "y (nonat", "parent": null, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 43}}, {"id": 30, "type": "ERROR", "text": "c", "parent": null, "children": [31], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 31, "type": "ERROR", "text": "c", "parent": 30, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 32, "type": "call_expression", "text": "kgroundColor;\n\n/**\n * \u9009\u4e2d\u80cc\u666f\u8272", "parent": null, "children": [33, 34], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 29}}, {"id": 33, "type": "identifier", "text": "kgroundC", "parent": 32, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 9}}, {"id": 34, "type": "argument_list", "text": "lor;\n\n/**\n * \u9009\u4e2d\u80cc\u666f\u8272", "parent": 32, "children": [35, 36], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 29}}, {"id": 35, "type": "identifier", "text": "or;\n\n/**\n", "parent": 34, "children": [], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 20}}, {"id": 36, "type": "identifier", "text": " \u9009\u4e2d\u80cc\u666f", "parent": 34, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 28}}, {"id": 37, "type": "declaration", "text": " */\n@property (nonatomic, stron", "parent": null, "children": [38, 39], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 61}}, {"id": 38, "type": "type_identifier", "text": " */\n@pr", "parent": 37, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 37}}, {"id": 39, "type": "pointer_declarator", "text": "perty (nonatomic, stro", "parent": 37, "children": [40, 41], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 60}}, {"id": 40, "type": "*", "text": "p", "parent": 39, "children": [], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 39}}, {"id": 41, "type": "identifier", "text": "erty (nonatomic, stro", "parent": 39, "children": [], "start_point": {"row": 28, "column": 39}, "end_point": {"row": 28, "column": 60}}, {"id": 42, "type": "ERROR", "text": "l", "parent": null, "children": [43], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 43, "type": "ERROR", "text": "l", "parent": 42, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 44, "type": "call_expression", "text": "or;\n\n/**\n * \u6b63\u5e38\u80cc\u666f\u56fe\u7247\n */\n@pro", "parent": null, "children": [45, 46], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 29}}, {"id": 45, "type": "identifier", "text": "or;\n\n/**", "parent": 44, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 46, "type": "argument_list", "text": " * \u6b63\u5e38\u80cc\u666f\u56fe\u7247\n */\n@pro", "parent": 44, "children": [47, 48], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 29}}, {"id": 47, "type": "identifier", "text": "* \u6b63\u5e38\u80cc\u666f\u56fe\u7247", "parent": 46, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 20}}, {"id": 48, "type": "identifier", "text": "*/\n@pr", "parent": 46, "children": [], "start_point": {"row": 33, "column": 22}, "end_point": {"row": 33, "column": 28}}, {"id": 49, "type": "declaration", "text": "erty (nonatomic, strong) UIImag", "parent": null, "children": [50, 51], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 61}}, {"id": 50, "type": "type_identifier", "text": "erty (n", "parent": 49, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 37}}, {"id": 51, "type": "pointer_declarator", "text": "natomic, strong) UIIma", "parent": 49, "children": [52, 53], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 60}}, {"id": 52, "type": "*", "text": "n", "parent": 51, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 39}}, {"id": 53, "type": "identifier", "text": "atomic, strong) UIIma", "parent": 51, "children": [], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 60}}, {"id": 54, "type": "ERROR", "text": " ", "parent": null, "children": [55], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 55, "type": "ERROR", "text": " ", "parent": 54, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 56, "type": "call_expression", "text": " \u9009\u4e2d\u80cc\u666f\u56fe\u7247\n */\n@property (nonat", "parent": null, "children": [57, 58], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 29}}, {"id": 57, "type": "identifier", "text": " \u9009\u4e2d\u80cc\u666f\u56fe\u7247\n", "parent": 56, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 9}}, {"id": 58, "type": "argument_list", "text": "*/\n@property (nonat", "parent": 56, "children": [59, 60], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 29}}, {"id": 59, "type": "identifier", "text": "/\n@proper", "parent": 58, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 20}}, {"id": 60, "type": "identifier", "text": " (nona", "parent": 58, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 28}}, {"id": 61, "type": "declaration", "text": "mic, strong) UIImage *selectBac", "parent": null, "children": [62, 63], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 61}}, {"id": 62, "type": "type_identifier", "text": "mic, st", "parent": 61, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 37}}, {"id": 63, "type": "pointer_declarator", "text": "ong) UIImage *selectBa", "parent": 61, "children": [64, 65], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 60}}, {"id": 64, "type": "*", "text": "o", "parent": 63, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 39}}, {"id": 65, "type": "identifier", "text": "ng) UIImage *selectBa", "parent": 63, "children": [], "start_point": {"row": 38, "column": 39}, "end_point": {"row": 38, "column": 60}}, {"id": 66, "type": "ERROR", "text": "r", "parent": null, "children": [67], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 67, "type": "ERROR", "text": "r", "parent": 66, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 68, "type": "call_expression", "text": "operty (nonatomic, strong) N", "parent": null, "children": [69, 70], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 29}}, {"id": 69, "type": "identifier", "text": "operty (", "parent": 68, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 9}}, {"id": 70, "type": "argument_list", "text": "onatomic, strong) N", "parent": 68, "children": [71, 72], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 29}}, {"id": 71, "type": "identifier", "text": "natomic, ", "parent": 70, "children": [], "start_point": {"row": 43, "column": 11}, "end_point": {"row": 43, "column": 20}}, {"id": 72, "type": "identifier", "text": "rong) ", "parent": 70, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 28}}, {"id": 73, "type": "declaration", "text": "String *badgeValue;\n\n/**\n * \u6807\u8bb0", "parent": null, "children": [74, 75], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 61}}, {"id": 74, "type": "type_identifier", "text": "String ", "parent": 73, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 37}}, {"id": 75, "type": "pointer_declarator", "text": "badgeValue;\n\n/**\n * \u6807", "parent": 73, "children": [76, 77], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 60}}, {"id": 76, "type": "*", "text": "b", "parent": 75, "children": [], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 39}}, {"id": 77, "type": "identifier", "text": "adgeValue;\n\n/**\n * \u6807", "parent": 75, "children": [], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 60}}, {"id": 78, "type": "ERROR", "text": "o", "parent": null, "children": [79], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 79, "type": "ERROR", "text": "o", "parent": 78, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 1}}, {"id": 80, "type": "call_expression", "text": "mic, strong) UIColor * badge", "parent": null, "children": [81, 82], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 29}}, {"id": 81, "type": "identifier", "text": "mic, str", "parent": 80, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 9}}, {"id": 82, "type": "argument_list", "text": "ng) UIColor * badge", "parent": 80, "children": [83, 84], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 29}}, {"id": 83, "type": "identifier", "text": "g) UIColo", "parent": 82, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 20}}, {"id": 84, "type": "identifier", "text": "* badg", "parent": 82, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 28}}, {"id": 85, "type": "declaration", "text": "ackgroundColor;\n\n/**\n", "parent": null, "children": [86, 87], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 51}}, {"id": 86, "type": "type_identifier", "text": "ackgroun", "parent": 85, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 38}}, {"id": 87, "type": "pointer_declarator", "text": "Color;\n\n/**", "parent": 85, "children": [88, 89], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 50}}, {"id": 88, "type": "*", "text": "C", "parent": 87, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 40}}, {"id": 89, "type": "identifier", "text": "olor;\n\n/**", "parent": 87, "children": [], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 50}}, {"id": 90, "type": "ERROR", "text": "o", "parent": null, "children": [91], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 91, "type": "ERROR", "text": "o", "parent": 90, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 1}}, {"id": 92, "type": "call_expression", "text": "mic, strong) UIColor * badge", "parent": null, "children": [93, 94], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 29}}, {"id": 93, "type": "identifier", "text": "mic, str", "parent": 92, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 9}}, {"id": 94, "type": "argument_list", "text": "ng) UIColor * badge", "parent": 92, "children": [95, 96], "start_point": {"row": 53, "column": 10}, "end_point": {"row": 53, "column": 29}}, {"id": 95, "type": "identifier", "text": "g) UIColo", "parent": 94, "children": [], "start_point": {"row": 53, "column": 11}, "end_point": {"row": 53, "column": 20}}, {"id": 96, "type": "identifier", "text": "* badg", "parent": 94, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 28}}, {"id": 97, "type": "declaration", "text": "tringColor;\n\n/**\n * \u6807\u9898\n */\n@pr", "parent": null, "children": [98, 99], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 61}}, {"id": 98, "type": "type_identifier", "text": "tringCo", "parent": 97, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 37}}, {"id": 99, "type": "pointer_declarator", "text": "or;\n\n/**\n * \u6807\u9898\n */\n@p", "parent": 97, "children": [100, 101], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 60}}, {"id": 100, "type": "*", "text": "o", "parent": 99, "children": [], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 39}}, {"id": 101, "type": "identifier", "text": ";\n\n/**\n * \u6807\u9898\n */\n@p", "parent": 99, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 60}}, {"id": 102, "type": "ERROR", "text": "t", "parent": null, "children": [103], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 103, "type": "ERROR", "text": "t", "parent": 102, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 1}}, {"id": 104, "type": "call_expression", "text": "ring *title;\n\n/**\n * \u6807\u9898\u6b63\u5e38\u8272\n", "parent": null, "children": [105, 106], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 29}}, {"id": 105, "type": "identifier", "text": "ring *ti", "parent": 104, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 9}}, {"id": 106, "type": "argument_list", "text": "le;\n\n/**\n * \u6807\u9898\u6b63\u5e38\u8272\n", "parent": 104, "children": [107, 108], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 29}}, {"id": 107, "type": "identifier", "text": "e;\n\n/**\n ", "parent": 106, "children": [], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 20}}, {"id": 108, "type": "identifier", "text": " \u6807\u9898\u6b63\u5e38\u8272", "parent": 106, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 28}}, {"id": 109, "type": "declaration", "text": "*/\n@property (nonatomic, st", "parent": null, "children": [110, 111], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 57}}, {"id": 110, "type": "type_identifier", "text": "*/\n@pro", "parent": 109, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 37}}, {"id": 111, "type": "pointer_declarator", "text": "erty (nonatomic, s", "parent": 109, "children": [112, 113], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 56}}, {"id": 112, "type": "*", "text": "e", "parent": 111, "children": [], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 39}}, {"id": 113, "type": "identifier", "text": "ty (nonatomic, s", "parent": 111, "children": [], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 56}}, {"id": 114, "type": "ERROR", "text": "N", "parent": null, "children": [115], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 115, "type": "ERROR", "text": "N", "parent": 114, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 116, "type": "call_expression", "text": "ormalColor;\n\n/**\n * \u6807\u9898\u9009\u62e9\u8272\n ", "parent": null, "children": [117, 118], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 29}}, {"id": 117, "type": "identifier", "text": "ormalCol", "parent": 116, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 9}}, {"id": 118, "type": "argument_list", "text": "r;\n\n/**\n * \u6807\u9898\u9009\u62e9\u8272\n ", "parent": 116, "children": [119, 120], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 29}}, {"id": 119, "type": "identifier", "text": ";\n\n/**\n *", "parent": 118, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 20}}, {"id": 120, "type": "identifier", "text": "\u6807\u9898\u9009\u62e9\u8272\n", "parent": 118, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 28}}, {"id": 121, "type": "declaration", "text": "/\n@property (non", "parent": null, "children": [122, 123], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 46}}, {"id": 122, "type": "type_identifier", "text": "/\n@prope", "parent": 121, "children": [], "start_point": {"row": 63, "column": 30}, "end_point": {"row": 63, "column": 38}}, {"id": 123, "type": "pointer_declarator", "text": "ty (no", "parent": 121, "children": [124, 125], "start_point": {"row": 63, "column": 39}, "end_point": {"row": 63, "column": 45}}, {"id": 124, "type": "*", "text": "t", "parent": 123, "children": [], "start_point": {"row": 63, "column": 39}, "end_point": {"row": 63, "column": 40}}, {"id": 125, "type": "identifier", "text": "y (no", "parent": 123, "children": [], "start_point": {"row": 63, "column": 40}, "end_point": {"row": 63, "column": 45}}, {"id": 126, "type": "ERROR", "text": "e", "parent": null, "children": [127], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 127, "type": "ERROR", "text": "e", "parent": 126, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 128, "type": "call_expression", "text": "SelectColor;\n\n/**\n * \u6b63\u5e38\u56fe\u7247\n ", "parent": null, "children": [129, 130], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 29}}, {"id": 129, "type": "identifier", "text": "SelectCo", "parent": 128, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 9}}, {"id": 130, "type": "argument_list", "text": "or;\n\n/**\n * \u6b63\u5e38\u56fe\u7247\n ", "parent": 128, "children": [131, 132], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 29}}, {"id": 131, "type": "identifier", "text": "r;\n\n/**\n ", "parent": 130, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 20}}, {"id": 132, "type": "identifier", "text": " \u6b63\u5e38\u56fe\u7247\n", "parent": 130, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 28}}, {"id": 133, "type": "declaration", "text": "/\n@property (nonatomic, str", "parent": null, "children": [134, 135], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 57}}, {"id": 134, "type": "type_identifier", "text": "/\n@prop", "parent": 133, "children": [], "start_point": {"row": 68, "column": 30}, "end_point": {"row": 68, "column": 37}}, {"id": 135, "type": "pointer_declarator", "text": "rty (nonatomic, st", "parent": 133, "children": [136, 137], "start_point": {"row": 68, "column": 38}, "end_point": {"row": 68, "column": 56}}, {"id": 136, "type": "*", "text": "r", "parent": 135, "children": [], "start_point": {"row": 68, "column": 38}, "end_point": {"row": 68, "column": 39}}, {"id": 137, "type": "identifier", "text": "y (nonatomic, st", "parent": 135, "children": [], "start_point": {"row": 68, "column": 40}, "end_point": {"row": 68, "column": 56}}, {"id": 138, "type": "ERROR", "text": "*", "parent": null, "children": [139], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 139, "type": "ERROR", "text": "*", "parent": 138, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 1}}, {"id": 140, "type": "call_expression", "text": "\n * \u9009\u62e9\u56fe\u7247\n */\n@property (non", "parent": null, "children": [141, 142], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 29}}, {"id": 141, "type": "identifier", "text": "\n * \u9009\u62e9\u56fe", "parent": 140, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 9}}, {"id": 142, "type": "argument_list", "text": "\n */\n@property (non", "parent": 140, "children": [143, 144], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 29}}, {"id": 143, "type": "identifier", "text": " */\n@prop", "parent": 142, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 20}}, {"id": 144, "type": "identifier", "text": "ty (no", "parent": 142, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 28}}, {"id": 145, "type": "declaration", "text": "tomic, strong) UIImage *sel", "parent": null, "children": [146, 147], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 57}}, {"id": 146, "type": "type_identifier", "text": "tomic, ", "parent": 145, "children": [], "start_point": {"row": 73, "column": 30}, "end_point": {"row": 73, "column": 37}}, {"id": 147, "type": "pointer_declarator", "text": "trong) UIImage *se", "parent": 145, "children": [148, 149], "start_point": {"row": 73, "column": 38}, "end_point": {"row": 73, "column": 56}}, {"id": 148, "type": "*", "text": "t", "parent": 147, "children": [], "start_point": {"row": 73, "column": 38}, "end_point": {"row": 73, "column": 39}}, {"id": 149, "type": "identifier", "text": "ong) UIImage *se", "parent": 147, "children": [], "start_point": {"row": 73, "column": 40}, "end_point": {"row": 73, "column": 56}}, {"id": 150, "type": "ERROR", "text": "\u884c", "parent": null, "children": [151], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 151, "type": "ERROR", "text": "\u884c", "parent": 150, "children": [], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 152, "type": "call_expression", "text": "\u8d4b\u503c)\n */\n@property (nonatomic", "parent": null, "children": [153, 154], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 29}}, {"id": 153, "type": "identifier", "text": "\u8d4b\u503c)\n */\n", "parent": 152, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 9}}, {"id": 154, "type": "argument_list", "text": "property (nonatomic", "parent": 152, "children": [155, 156], "start_point": {"row": 78, "column": 10}, "end_point": {"row": 78, "column": 29}}, {"id": 155, "type": "identifier", "text": "roperty (", "parent": 154, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 20}}, {"id": 156, "type": "identifier", "text": "natomi", "parent": 154, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 28}}, {"id": 157, "type": "declaration", "text": " strong) TouchActionB", "parent": null, "children": [158, 159], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 51}}, {"id": 158, "type": "type_identifier", "text": " strong", "parent": 157, "children": [], "start_point": {"row": 78, "column": 30}, "end_point": {"row": 78, "column": 37}}, {"id": 159, "type": "pointer_declarator", "text": " TouchAction", "parent": 157, "children": [160, 161], "start_point": {"row": 78, "column": 38}, "end_point": {"row": 78, "column": 50}}, {"id": 160, "type": "*", "text": " ", "parent": 159, "children": [], "start_point": {"row": 78, "column": 38}, "end_point": {"row": 78, "column": 39}}, {"id": 161, "type": "identifier", "text": "TouchAction", "parent": 159, "children": [], "start_point": {"row": 78, "column": 39}, "end_point": {"row": 78, "column": 50}}, {"id": 162, "type": "ERROR", "text": "\n", "parent": null, "children": [163], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 163, "type": "ERROR", "text": "\n", "parent": 162, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 164, "type": "call_expression", "text": " * \u662f\u5426\u663e\u793a\u7ea2\u70b9\n */\n@property (no", "parent": null, "children": [165, 166], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 29}}, {"id": 165, "type": "identifier", "text": " * \u662f\u5426\u663e\u793a", "parent": 164, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 9}}, {"id": 166, "type": "argument_list", "text": "\u70b9\n */\n@property (no", "parent": 164, "children": [167, 168], "start_point": {"row": 83, "column": 10}, "end_point": {"row": 83, "column": 29}}, {"id": 167, "type": "identifier", "text": "\n */\n@pro", "parent": 166, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 20}}, {"id": 168, "type": "identifier", "text": "rty (n", "parent": 166, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 28}}, {"id": 169, "type": "declaration", "text": "atomic, assign) BOOL ", "parent": null, "children": [170, 171], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 51}}, {"id": 170, "type": "type_identifier", "text": "atomic,", "parent": 169, "children": [], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 37}}, {"id": 171, "type": "pointer_declarator", "text": "assign) BOOL", "parent": 169, "children": [172, 173], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 50}}, {"id": 172, "type": "*", "text": "a", "parent": 171, "children": [], "start_point": {"row": 83, "column": 38}, "end_point": {"row": 83, "column": 39}}, {"id": 173, "type": "identifier", "text": "ssign) BOOL", "parent": 171, "children": [], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 50}}, {"id": 174, "type": "ERROR", "text": "perty (nonatomic, assign) float redPointSize;\n", "parent": null, "children": [175, 176, 181], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 46}}, {"id": 175, "type": "ERROR", "text": "p", "parent": 174, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 1}}, {"id": 176, "type": "call_expression", "text": "erty (nonatomic, assign) flo", "parent": 174, "children": [177, 178], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 29}}, {"id": 177, "type": "identifier", "text": "erty (no", "parent": 176, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 9}}, {"id": 178, "type": "argument_list", "text": "atomic, assign) flo", "parent": 176, "children": [179, 180], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 29}}, {"id": 179, "type": "identifier", "text": "tomic, as", "parent": 178, "children": [], "start_point": {"row": 88, "column": 11}, "end_point": {"row": 88, "column": 20}}, {"id": 180, "type": "identifier", "text": "gn) fl", "parent": 178, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 28}}, {"id": 181, "type": "identifier", "text": "t redPointSize;\n", "parent": 174, "children": [], "start_point": {"row": 88, "column": 30}, "end_point": {"row": 88, "column": 46}}, {"id": 182, "type": "identifier", "text": "/**\n * \u521d\u59cb\u5316TFCus", "parent": null, "children": [], "start_point": {"row": 88, "column": 47}, "end_point": {"row": 88, "column": 63}}, {"id": 183, "type": "ERROR", "text": " \u6807\u9898\n * @param normalImage ", "parent": null, "children": [184, 185, 190], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 34}}, {"id": 184, "type": "ERROR", "text": " ", "parent": 183, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 185, "type": "call_expression", "text": " \u6807\u9898\n * @param normalI", "parent": 183, "children": [186, 187], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 29}}, {"id": 186, "type": "identifier", "text": " \u6807", "parent": 185, "children": [], "start_point": {"row": 93, "column": 1}, "end_point": {"row": 93, "column": 9}}, {"id": 187, "type": "argument_list", "text": "\n * @param normalI", "parent": 185, "children": [188, 189], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 29}}, {"id": 188, "type": "identifier", "text": " * @para", "parent": 187, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 20}}, {"id": 189, "type": "identifier", "text": "normal", "parent": 187, "children": [], "start_point": {"row": 93, "column": 22}, "end_point": {"row": 93, "column": 28}}, {"id": 190, "type": "identifier", "text": "age ", "parent": 183, "children": [], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 34}}, {"id": 191, "type": "identifier", "text": " \u6b63\u5e38\u56fe\u7247\n * @param s", "parent": null, "children": [], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 53}}, {"id": 192, "type": "ERROR", "text": "bBarItem\n */\n- (instancetype)initWi", "parent": null, "children": [193, 194, 199], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 35}}, {"id": 193, "type": "ERROR", "text": "b", "parent": 192, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 1}}, {"id": 194, "type": "call_expression", "text": "BarItem\n */\n- (instancetype)", "parent": 192, "children": [195, 196], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 29}}, {"id": 195, "type": "identifier", "text": "BarItem\n", "parent": 194, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 9}}, {"id": 196, "type": "argument_list", "text": "*/\n- (instancetype)", "parent": 194, "children": [197, 198], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 29}}, {"id": 197, "type": "identifier", "text": "/\n- (inst", "parent": 196, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 20}}, {"id": 198, "type": "identifier", "text": "cetype", "parent": 196, "children": [], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 28}}, {"id": 199, "type": "identifier", "text": "nitWi", "parent": 192, "children": [], "start_point": {"row": 98, "column": 30}, "end_point": {"row": 98, "column": 35}}, {"id": 200, "type": "identifier", "text": "hTitle:(NSSt", "parent": null, "children": [], "start_point": {"row": 98, "column": 36}, "end_point": {"row": 98, "column": 48}}, {"id": 201, "type": "ERROR", "text": "", "parent": null, "children": [202, 228, 229], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 113, "column": 4}}, {"id": 202, "type": "binary_expression", "text": "", "parent": 201, "children": [203, 223, 225, 226, 227], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 111, "column": 54}}, {"id": 203, "type": "binary_expression", "text": "", "parent": 202, "children": [204, 217, 219, 220, 222], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 111, "column": 29}}, {"id": 204, "type": "binary_expression", "text": "", "parent": 203, "children": [205, 211, 213, 214, 216], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 110, "column": 29}}, {"id": 205, "type": "unary_expression", "text": "", "parent": 204, "children": [206, 207], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 29}}, {"id": 206, "type": "-", "text": "", "parent": 205, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 1}}, {"id": 207, "type": "cast_expression", "text": "", "parent": 205, "children": [208, 210], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 29}}, {"id": 208, "type": "type_descriptor", "text": "", "parent": 207, "children": [209], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 15}}, {"id": 209, "type": "type_identifier", "text": "", "parent": 208, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 15}}, {"id": 210, "type": "identifier", "text": "", "parent": 207, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 29}}, {"id": 211, "type": "ERROR", "text": "", "parent": 204, "children": [212], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 39}}, {"id": 212, "type": "identifier", "text": "", "parent": 211, "children": [], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 39}}, {"id": 213, "type": "*", "text": "", "parent": 204, "children": [], "start_point": {"row": 109, "column": 40}, "end_point": {"row": 109, "column": 41}}, {"id": 214, "type": "ERROR", "text": "", "parent": 204, "children": [215], "start_point": {"row": 109, "column": 41}, "end_point": {"row": 109, "column": 47}}, {"id": 215, "type": "identifier", "text": "", "parent": 214, "children": [], "start_point": {"row": 109, "column": 42}, "end_point": {"row": 109, "column": 47}}, {"id": 216, "type": "identifier", "text": "", "parent": 204, "children": [], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 29}}, {"id": 217, "type": "ERROR", "text": "", "parent": 203, "children": [218], "start_point": {"row": 110, "column": 29}, "end_point": {"row": 110, "column": 38}}, {"id": 218, "type": "identifier", "text": "", "parent": 217, "children": [], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 38}}, {"id": 219, "type": "*", "text": "", "parent": 203, "children": [], "start_point": {"row": 110, "column": 39}, "end_point": {"row": 110, "column": 40}}, {"id": 220, "type": "ERROR", "text": "", "parent": 203, "children": [221], "start_point": {"row": 110, "column": 40}, "end_point": {"row": 110, "column": 52}}, {"id": 221, "type": "identifier", "text": "", "parent": 220, "children": [], "start_point": {"row": 110, "column": 41}, "end_point": {"row": 110, "column": 52}}, {"id": 222, "type": "identifier", "text": "", "parent": 203, "children": [], "start_point": {"row": 111, "column": 16}, "end_point": {"row": 111, "column": 29}}, {"id": 223, "type": "ERROR", "text": "", "parent": 202, "children": [224], "start_point": {"row": 111, "column": 29}, "end_point": {"row": 111, "column": 38}}, {"id": 224, "type": "identifier", "text": "", "parent": 223, "children": [], "start_point": {"row": 111, "column": 31}, "end_point": {"row": 111, "column": 38}}, {"id": 225, "type": "*", "text": "", "parent": 202, "children": [], "start_point": {"row": 111, "column": 39}, "end_point": {"row": 111, "column": 40}}, {"id": 226, "type": "ERROR", "text": "", "parent": 202, "children": [], "start_point": {"row": 111, "column": 40}, "end_point": {"row": 111, "column": 41}}, {"id": 227, "type": "identifier", "text": "", "parent": 202, "children": [], "start_point": {"row": 111, "column": 41}, "end_point": {"row": 111, "column": 54}}, {"id": 228, "type": "ERROR", "text": "", "parent": 201, "children": [], "start_point": {"row": 113, "column": 0}, "end_point": {"row": 113, "column": 1}}, {"id": 229, "type": "identifier", "text": "", "parent": 201, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 4}}]}, "node_categories": {"declarations": {"functions": [11], "variables": [8, 17, 37, 49, 61, 73, 85, 97, 109, 121, 133, 145, 157, 169], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [23, 32, 44, 56, 68, 80, 92, 104, 116, 128, 140, 152, 164, 176, 185, 194, 202, 203, 204, 205, 207], "assignments": [], "loops": [], "conditionals": [5, 6, 7, 15, 18, 24, 26, 27, 28, 29, 33, 35, 36, 38, 41, 45, 47, 48, 50, 53, 57, 59, 60, 62, 65, 69, 71, 72, 74, 77, 81, 83, 84, 86, 89, 93, 95, 96, 98, 101, 105, 107, 108, 110, 113, 117, 119, 120, 122, 125, 129, 131, 132, 134, 137, 141, 143, 144, 146, 149, 153, 155, 156, 158, 161, 165, 167, 168, 170, 173, 177, 179, 180, 181, 182, 186, 188, 189, 190, 191, 195, 197, 198, 199, 200, 209, 210, 212, 215, 216, 218, 221, 222, 224, 227, 229], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "onBlock)(TFCustomTabBarItem *);\n\n/**\n * "}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// TFCustomTabBarItem.h\n// TFUILib\n//\n// Created by <NAME> on 16/3/9.\n// Copyright \u00a9 2016\u5e74 <EMAIL> All rights reserved.\n//\n\n#import \"TFView.h\"\n\n/**\n * TFCustomTabBarItem\n */\n@interface TFCustomTabBarItem : TFView\n\n/**\n * \u70b9\u51fb\u56de\u8c03\n */\ntypedef void(^TouchActionBlock)(TFCustomTabBarItem *);\n\n/**\n * \u662f\u5426\u88ab\u9009\u62e9(\u5355\u72ec\u66f4\u6539\u65e0\u6cd5\u5207\u6362Controller)\n */\n@property (nonatomic, assign) BOOL selected;\n\n/**\n * \u6b63\u5e38\u80cc\u666f\u8272\n */\n@property (nonatomic, strong) UIColor *normalBackgroundColor;\n\n/**\n * \u9009\u4e2d\u80cc\u666f\u8272\n */\n@property (nonatomic, strong) UIColor *selectBackgroundColor;\n\n/**\n * \u6b63\u5e38\u80cc\u666f\u56fe\u7247\n */\n@property (nonatomic, strong) UIImage *normalBackgroundImage;\n\n/**\n * \u9009\u4e2d\u80cc\u666f\u56fe\u7247\n */\n@property (nonatomic, strong) UIImage *selectBackgroundImage;\n\n/**\n * \u6807\u8bb0\u503c\n */\n@property (nonatomic, strong) NSString *badgeValue;\n\n/**\n * \u6807\u8bb0\u80cc\u666f\u8272\n */\n@property (nonatomic, strong) UIColor * badgeBackgroundColor;\n\n/**\n * \u6807\u8bb0\u6587\u672c\u8272\n */\n@property (nonatomic, strong) UIColor * badgeStringColor;\n\n/**\n * \u6807\u9898\n */\n@property (nonatomic, strong) NSString *title;\n\n/**\n * \u6807\u9898\u6b63\u5e38\u8272\n */\n@property (nonatomic, strong) UIColor * titleNormalColor;\n\n/**\n * \u6807\u9898\u9009\u62e9\u8272\n */\n@property (nonatomic, strong) UIColor * titleSelectColor;\n\n/**\n * \u6b63\u5e38\u56fe\u7247\n */\n@property (nonatomic, strong) UIImage *normalImage;\n\n/**\n * \u9009\u62e9\u56fe\u7247\n */\n@property (nonatomic, strong) UIImage *selectImage;\n\n/**\n * \u70b9\u51fb\u56de\u8c03(\u8bf7\u52ff\u81ea\u884c\u8d4b\u503c)\n */\n@property (nonatomic, strong) TouchActionBlock touchActionBlock;\n\n/**\n * \u662f\u5426\u663e\u793a\u7ea2\u70b9\n */\n@property (nonatomic, assign) BOOL shouldShowRedPoint;\n\n/**\n * \u7ea2\u70b9\u5927\u5c0f\uff08\u957f\u548c\u5bbd\uff09\n */\n@property (nonatomic, assign) float redPointSize;\n\n/**\n * \u521d\u59cb\u5316TFCustomTabBarItem\n *\n * @param title \u6807\u9898\n * @param normalImage \u6b63\u5e38\u56fe\u7247\n * @param selectedImage \u9009\u4e2d\u56fe\u7247\n *\n * @return TFCustomTabBarItem\n */\n- (instancetype)initWithTitle:(NSString *)title\n normalImage:(UIImage *)normalImage\n selectedImage:(UIImage *)selectedImage;\n\n@end\n"}
80,310
c
#pragma once typedef struct __timer *timer_t;
22
2
(translation_unit) "#pragma once\n\ntypedef struct __timer *timer_t;\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (type_definition) "typedef struct __timer *timer_t;" (typedef) "typedef" (struct_specifier) "struct __timer" (struct) "struct" (type_identifier) "__timer" (pointer_declarator) "*timer_t" (*) "*" (type_identifier) "timer_t" (;) ";"
13
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 22.0, "nodes": 11, "errors": 0, "source_hash": "0a309c43a912c59077f1c94482ebe10728ef76ef01da6462b1871bba89a195a9", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 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": "type_definition", "text": "typedef struct __timer *timer_t;", "parent": null, "children": [4, 5, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 32}}, {"id": 4, "type": "typedef", "text": "typedef", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "struct_specifier", "text": "struct __timer", "parent": 3, "children": [6, 7], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 22}}, {"id": 6, "type": "struct", "text": "struct", "parent": 5, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 7, "type": "type_identifier", "text": "__timer", "parent": 5, "children": [], "start_point": {"row": 2, "column": 15}, "end_point": {"row": 2, "column": 22}}, {"id": 8, "type": "pointer_declarator", "text": "*timer_t", "parent": 3, "children": [9, 10], "start_point": {"row": 2, "column": 23}, "end_point": {"row": 2, "column": 31}}, {"id": 9, "type": "*", "text": "*", "parent": 8, "children": [], "start_point": {"row": 2, "column": 23}, "end_point": {"row": 2, "column": 24}}, {"id": 10, "type": "type_identifier", "text": "timer_t", "parent": 8, "children": [], "start_point": {"row": 2, "column": 24}, "end_point": {"row": 2, "column": 31}}]}, "node_categories": {"declarations": {"functions": [], "variables": [3], "classes": [5, 6], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [7, 10], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 5, "universal_type": "class", "name": "__timer", "text_snippet": "struct __timer"}, {"node_id": 6, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#pragma once\n\ntypedef struct __timer *timer_t;\n"}
80,311
c
#ifndef __geometryhelpers_h__ #define __geometryhelpers_h__ // Collection of useful geometry helper functions //HEDGES // hedge_opposite(int geo ; int hedge) // - INPUT: geo, handle to a geometry ; hedge a headge of that geometry // - OUTPUT: the index of the flipped hedge (add a warning in case the geometry is not manifold) // common_hedge ( int geo ; int face0 , face1) // - INPUT: geo, handle to a geometry ; face0 and face1 the index of 2 faces // - OUTPUT: the hedge of face0 s.t hedge flipped belongs to face1. Return -1 if the faces do not share an edge // ANGLES // compute_angle(vector x , y) // - INPUT: vector x and y // - OUTPUT: angle (in radians) between x and y //ALGEBRA //project(vector x , y) // - INPUT: vector x and y // - OUTPUT: x projected on the direction defined by y //BEGIN CODE //HEDGES function int hedge_opposite(int geo ; int hedge){ //check if the triangulation is manifold (ie hedge has valence exactly 2) //and return the opposite hedge int hedge_opposite = hedge_nextequiv(geo,hedge); if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){ warning("Non manifold mesh"); } return hedge_opposite; } function int common_hedge(int geo ; int face0 , face1){ //Return the hedge of face0 that, once flipped is an hedge of face1 //Return -1 if the faces do not share an edge int initial_hedge = primhedge(geo,face0); int c_hedge = initial_hedge; do{ c_hedge = hedge_next(geo,c_hedge); // next hedge int eq_hedge = c_hedge; //iterate on the equivalent hedges do{ eq_hedge = hedge_nextequiv(geo,eq_hedge); if(hedge_prim(geo,eq_hedge)==face1){ return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for } }while(c_hedge!=eq_hedge); }while(initial_hedge!=c_hedge); //stop when we circled //if we reach this part of the code it means the faces do not share an edge warning("Faces do not share an edge"); return -1; } function int is_triangle(int geo ; int faceid){ int pts[] = primpoints(geo,faceid); return (len(pts)==3) ; } function int is_quad(int geo ; int faceid){ int pts[] = primpoints(geo,faceid); return (len(pts)==4); } //ANGLES function float compute_angle(vector x,y){ //Compute the angle in radians between x and y return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y)); } function float cotan(vector x,y){ //return the cotan of the angle between x and y return dot(x,y) / length(cross(x,y)); } //ALGEBRA function vector project(vector x,ydir){ //compute x projected on direction y vector dir = normalize(ydir); return dot(x,dir) * dir; } function vector reject(vector x , y){ return x - project(x,y); } function vector change_basis(vector x ; matrix3 basis){ /* we assume basis is an orthogonal matrix */ return basis * x * transpose(basis); } #endif
27.56
110
(translation_unit) "#ifndef __geometryhelpers_h__ \n#define __geometryhelpers_h__ \n \n// Collection of useful geometry helper functions \n \n//HEDGES \n \n// hedge_opposite(int geo ; int hedge) \n// - INPUT: geo, handle to a geometry ; hedge a headge of that geometry \n// - OUTPUT: the index of the flipped hedge (add a warning in case the geometry is not manifold) \n \n// common_hedge ( int geo ; int face0 , face1) \n// - INPUT: geo, handle to a geometry ; face0 and face1 the index of 2 faces \n// - OUTPUT: the hedge of face0 s.t hedge flipped belongs to face1. Return -1 if the faces do not share an edge \n \n// ANGLES \n \n// compute_angle(vector x , y) \n// - INPUT: vector x and y \n// - OUTPUT: angle (in radians) between x and y \n \n//ALGEBRA \n \n//project(vector x , y) \n// - INPUT: vector x and y \n// - OUTPUT: x projected on the direction defined by y \n \n \n \n//BEGIN CODE \n \n//HEDGES \n \nfunction int hedge_opposite(int geo ; int hedge){ \n //check if the triangulation is manifold (ie hedge has valence exactly 2) \n //and return the opposite hedge \n int hedge_opposite = hedge_nextequiv(geo,hedge); \n if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){ \n warning("Non manifold mesh"); \n } \n return hedge_opposite; \n} \n \nfunction int common_hedge(int geo ; int face0 , face1){ \n //Return the hedge of face0 that, once flipped is an hedge of face1 \n //Return -1 if the faces do not share an edge \n int initial_hedge = primhedge(geo,face0); \n int c_hedge = initial_hedge; \n \n do{ \n c_hedge = hedge_next(geo,c_hedge); // next hedge \n int eq_hedge = c_hedge; //iterate on the equivalent hedges \n do{ \n eq_hedge = hedge_nextequiv(geo,eq_hedge); \n if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n } \n }while(c_hedge!=eq_hedge); \n \n }while(initial_hedge!=c_hedge); //stop when we circled \n \n //if we reach this part of the code it means the faces do not share an edge \n warning("Faces do not share an edge"); \n return -1; \n} \n \nfunction int is_triangle(int geo ; int faceid){ \n int pts[] = primpoints(geo,faceid); \n return (len(pts)==3) ; \n} \n \nfunction int is_quad(int geo ; int faceid){ \n int pts[] = primpoints(geo,faceid); \n return (len(pts)==4); \n} \n \n \n//ANGLES \n \nfunction float compute_angle(vector x,y){ \n //Compute the angle in radians between x and y \n return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y)); \n} \n \nfunction float cotan(vector x,y){ \n //return the cotan of the angle between x and y \n return dot(x,y) / length(cross(x,y)); \n} \n \n//ALGEBRA \n \nfunction vector project(vector x,ydir){ \n //compute x projected on direction y \n vector dir = normalize(ydir); \n return dot(x,dir) * dir; \n} \n \nfunction vector reject(vector x , y){ \n return x - project(x,y); \n} \n \nfunction vector change_basis(vector x ; matrix3 basis){ \n /* \n we assume basis is an orthogonal matrix \n */ \n return basis * x * transpose(basis); \n} \n \n \n#endif \n" (preproc_ifdef) "#ifndef __geometryhelpers_h__ \n#define __geometryhelpers_h__ \n \n// Collection of useful geometry helper functions \n \n//HEDGES \n \n// hedge_opposite(int geo ; int hedge) \n// - INPUT: geo, handle to a geometry ; hedge a headge of that geometry \n// - OUTPUT: the index of the flipped hedge (add a warning in case the geometry is not manifold) \n \n// common_hedge ( int geo ; int face0 , face1) \n// - INPUT: geo, handle to a geometry ; face0 and face1 the index of 2 faces \n// - OUTPUT: the hedge of face0 s.t hedge flipped belongs to face1. Return -1 if the faces do not share an edge \n \n// ANGLES \n \n// compute_angle(vector x , y) \n// - INPUT: vector x and y \n// - OUTPUT: angle (in radians) between x and y \n \n//ALGEBRA \n \n//project(vector x , y) \n// - INPUT: vector x and y \n// - OUTPUT: x projected on the direction defined by y \n \n \n \n//BEGIN CODE \n \n//HEDGES \n \nfunction int hedge_opposite(int geo ; int hedge){ \n //check if the triangulation is manifold (ie hedge has valence exactly 2) \n //and return the opposite hedge \n int hedge_opposite = hedge_nextequiv(geo,hedge); \n if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){ \n warning("Non manifold mesh"); \n } \n return hedge_opposite; \n} \n \nfunction int common_hedge(int geo ; int face0 , face1){ \n //Return the hedge of face0 that, once flipped is an hedge of face1 \n //Return -1 if the faces do not share an edge \n int initial_hedge = primhedge(geo,face0); \n int c_hedge = initial_hedge; \n \n do{ \n c_hedge = hedge_next(geo,c_hedge); // next hedge \n int eq_hedge = c_hedge; //iterate on the equivalent hedges \n do{ \n eq_hedge = hedge_nextequiv(geo,eq_hedge); \n if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n } \n }while(c_hedge!=eq_hedge); \n \n }while(initial_hedge!=c_hedge); //stop when we circled \n \n //if we reach this part of the code it means the faces do not share an edge \n warning("Faces do not share an edge"); \n return -1; \n} \n \nfunction int is_triangle(int geo ; int faceid){ \n int pts[] = primpoints(geo,faceid); \n return (len(pts)==3) ; \n} \n \nfunction int is_quad(int geo ; int faceid){ \n int pts[] = primpoints(geo,faceid); \n return (len(pts)==4); \n} \n \n \n//ANGLES \n \nfunction float compute_angle(vector x,y){ \n //Compute the angle in radians between x and y \n return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y)); \n} \n \nfunction float cotan(vector x,y){ \n //return the cotan of the angle between x and y \n return dot(x,y) / length(cross(x,y)); \n} \n \n//ALGEBRA \n \nfunction vector project(vector x,ydir){ \n //compute x projected on direction y \n vector dir = normalize(ydir); \n return dot(x,dir) * dir; \n} \n \nfunction vector reject(vector x , y){ \n return x - project(x,y); \n} \n \nfunction vector change_basis(vector x ; matrix3 basis){ \n /* \n we assume basis is an orthogonal matrix \n */ \n return basis * x * transpose(basis); \n} \n \n \n#endif" (#ifndef) "#ifndef" (identifier) "__geometryhelpers_h__" (preproc_def) "#define __geometryhelpers_h__ \n" (#define) "#define" (identifier) "__geometryhelpers_h__" (comment) "// Collection of useful geometry helper functions " (comment) "//HEDGES " (comment) "// hedge_opposite(int geo ; int hedge) " (comment) "// - INPUT: geo, handle to a geometry ; hedge a headge of that geometry " (comment) "// - OUTPUT: the index of the flipped hedge (add a warning in case the geometry is not manifold) " (comment) "// common_hedge ( int geo ; int face0 , face1) " (comment) "// - INPUT: geo, handle to a geometry ; face0 and face1 the index of 2 faces " (comment) "// - OUTPUT: the hedge of face0 s.t hedge flipped belongs to face1. Return -1 if the faces do not share an edge " (comment) "// ANGLES " (comment) "// compute_angle(vector x , y) " (comment) "// - INPUT: vector x and y " (comment) "// - OUTPUT: angle (in radians) between x and y " (comment) "//ALGEBRA " (comment) "//project(vector x , y) " (comment) "// - INPUT: vector x and y " (comment) "// - OUTPUT: x projected on the direction defined by y " (comment) "//BEGIN CODE " (comment) "//HEDGES " (function_definition) "function int hedge_opposite(int geo ; int hedge){ \n //check if the triangulation is manifold (ie hedge has valence exactly 2) \n //and return the opposite hedge \n int hedge_opposite = hedge_nextequiv(geo,hedge); \n if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){ \n warning("Non manifold mesh"); \n } \n return hedge_opposite; \n}" (type_identifier) "function" (ERROR) "int" (identifier) "int" (function_declarator) "hedge_opposite(int geo ; int hedge)" (identifier) "hedge_opposite" (parameter_list) "(int geo ; int hedge)" (() "(" (ERROR) "int geo ;" (parameter_declaration) "int geo" (primitive_type) "int" (identifier) "geo" (;) ";" (parameter_declaration) "int hedge" (primitive_type) "int" (identifier) "hedge" ()) ")" (compound_statement) "{ \n //check if the triangulation is manifold (ie hedge has valence exactly 2) \n //and return the opposite hedge \n int hedge_opposite = hedge_nextequiv(geo,hedge); \n if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){ \n warning("Non manifold mesh"); \n } \n return hedge_opposite; \n}" ({) "{" (comment) "//check if the triangulation is manifold (ie hedge has valence exactly 2) " (comment) "//and return the opposite hedge " (declaration) "int hedge_opposite = hedge_nextequiv(geo,hedge);" (primitive_type) "int" (init_declarator) "hedge_opposite = hedge_nextequiv(geo,hedge)" (identifier) "hedge_opposite" (=) "=" (call_expression) "hedge_nextequiv(geo,hedge)" (identifier) "hedge_nextequiv" (argument_list) "(geo,hedge)" (() "(" (identifier) "geo" (,) "," (identifier) "hedge" ()) ")" (;) ";" (if_statement) "if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){ \n warning("Non manifold mesh"); \n }" (if) "if" (parenthesized_expression) "(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge)" (() "(" (binary_expression) "hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge" (binary_expression) "hedge_opposite==hedge" (identifier) "hedge_opposite" (==) "==" (identifier) "hedge" (||) "||" (binary_expression) "hedge_nextequiv(geo,hedge_opposite)!=hedge" (call_expression) "hedge_nextequiv(geo,hedge_opposite)" (identifier) "hedge_nextequiv" (argument_list) "(geo,hedge_opposite)" (() "(" (identifier) "geo" (,) "," (identifier) "hedge_opposite" ()) ")" (!=) "!=" (identifier) "hedge" ()) ")" (compound_statement) "{ \n warning("Non manifold mesh"); \n }" ({) "{" (expression_statement) "warning("Non manifold mesh");" (call_expression) "warning("Non manifold mesh")" (identifier) "warning" (argument_list) "("Non manifold mesh")" (() "(" (string_literal) ""Non manifold mesh"" (") """ (string_content) "Non manifold mesh" (") """ ()) ")" (;) ";" (}) "}" (return_statement) "return hedge_opposite;" (return) "return" (identifier) "hedge_opposite" (;) ";" (}) "}" (function_definition) "function int common_hedge(int geo ; int face0 , face1){ \n //Return the hedge of face0 that, once flipped is an hedge of face1 \n //Return -1 if the faces do not share an edge \n int initial_hedge = primhedge(geo,face0); \n int c_hedge = initial_hedge; \n \n do{ \n c_hedge = hedge_next(geo,c_hedge); // next hedge \n int eq_hedge = c_hedge; //iterate on the equivalent hedges \n do{ \n eq_hedge = hedge_nextequiv(geo,eq_hedge); \n if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n } \n }while(c_hedge!=eq_hedge); \n \n }while(initial_hedge!=c_hedge); //stop when we circled \n \n //if we reach this part of the code it means the faces do not share an edge \n warning("Faces do not share an edge"); \n return -1; \n}" (type_identifier) "function" (ERROR) "int" (identifier) "int" (function_declarator) "common_hedge(int geo ; int face0 , face1)" (identifier) "common_hedge" (parameter_list) "(int geo ; int face0 , face1)" (() "(" (ERROR) "int geo ;" (parameter_declaration) "int geo" (primitive_type) "int" (identifier) "geo" (;) ";" (parameter_declaration) "int face0" (primitive_type) "int" (identifier) "face0" (,) "," (parameter_declaration) "face1" (type_identifier) "face1" ()) ")" (compound_statement) "{ \n //Return the hedge of face0 that, once flipped is an hedge of face1 \n //Return -1 if the faces do not share an edge \n int initial_hedge = primhedge(geo,face0); \n int c_hedge = initial_hedge; \n \n do{ \n c_hedge = hedge_next(geo,c_hedge); // next hedge \n int eq_hedge = c_hedge; //iterate on the equivalent hedges \n do{ \n eq_hedge = hedge_nextequiv(geo,eq_hedge); \n if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n } \n }while(c_hedge!=eq_hedge); \n \n }while(initial_hedge!=c_hedge); //stop when we circled \n \n //if we reach this part of the code it means the faces do not share an edge \n warning("Faces do not share an edge"); \n return -1; \n}" ({) "{" (comment) "//Return the hedge of face0 that, once flipped is an hedge of face1 " (comment) "//Return -1 if the faces do not share an edge " (declaration) "int initial_hedge = primhedge(geo,face0);" (primitive_type) "int" (init_declarator) "initial_hedge = primhedge(geo,face0)" (identifier) "initial_hedge" (=) "=" (call_expression) "primhedge(geo,face0)" (identifier) "primhedge" (argument_list) "(geo,face0)" (() "(" (identifier) "geo" (,) "," (identifier) "face0" ()) ")" (;) ";" (declaration) "int c_hedge = initial_hedge;" (primitive_type) "int" (init_declarator) "c_hedge = initial_hedge" (identifier) "c_hedge" (=) "=" (identifier) "initial_hedge" (;) ";" (do_statement) "do{ \n c_hedge = hedge_next(geo,c_hedge); // next hedge \n int eq_hedge = c_hedge; //iterate on the equivalent hedges \n do{ \n eq_hedge = hedge_nextequiv(geo,eq_hedge); \n if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n } \n }while(c_hedge!=eq_hedge); \n \n }while(initial_hedge!=c_hedge);" (do) "do" (compound_statement) "{ \n c_hedge = hedge_next(geo,c_hedge); // next hedge \n int eq_hedge = c_hedge; //iterate on the equivalent hedges \n do{ \n eq_hedge = hedge_nextequiv(geo,eq_hedge); \n if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n } \n }while(c_hedge!=eq_hedge); \n \n }" ({) "{" (expression_statement) "c_hedge = hedge_next(geo,c_hedge);" (assignment_expression) "c_hedge = hedge_next(geo,c_hedge)" (identifier) "c_hedge" (=) "=" (call_expression) "hedge_next(geo,c_hedge)" (identifier) "hedge_next" (argument_list) "(geo,c_hedge)" (() "(" (identifier) "geo" (,) "," (identifier) "c_hedge" ()) ")" (;) ";" (comment) "// next hedge " (declaration) "int eq_hedge = c_hedge;" (primitive_type) "int" (init_declarator) "eq_hedge = c_hedge" (identifier) "eq_hedge" (=) "=" (identifier) "c_hedge" (;) ";" (comment) "//iterate on the equivalent hedges " (do_statement) "do{ \n eq_hedge = hedge_nextequiv(geo,eq_hedge); \n if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n } \n }while(c_hedge!=eq_hedge);" (do) "do" (compound_statement) "{ \n eq_hedge = hedge_nextequiv(geo,eq_hedge); \n if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n } \n }" ({) "{" (expression_statement) "eq_hedge = hedge_nextequiv(geo,eq_hedge);" (assignment_expression) "eq_hedge = hedge_nextequiv(geo,eq_hedge)" (identifier) "eq_hedge" (=) "=" (call_expression) "hedge_nextequiv(geo,eq_hedge)" (identifier) "hedge_nextequiv" (argument_list) "(geo,eq_hedge)" (() "(" (identifier) "geo" (,) "," (identifier) "eq_hedge" ()) ")" (;) ";" (if_statement) "if(hedge_prim(geo,eq_hedge)==face1){ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n }" (if) "if" (parenthesized_expression) "(hedge_prim(geo,eq_hedge)==face1)" (() "(" (binary_expression) "hedge_prim(geo,eq_hedge)==face1" (call_expression) "hedge_prim(geo,eq_hedge)" (identifier) "hedge_prim" (argument_list) "(geo,eq_hedge)" (() "(" (identifier) "geo" (,) "," (identifier) "eq_hedge" ()) ")" (==) "==" (identifier) "face1" ()) ")" (compound_statement) "{ \n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for \n }" ({) "{" (return_statement) "return c_hedge;" (return) "return" (identifier) "c_hedge" (;) ";" (comment) "//if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for " (}) "}" (}) "}" (while) "while" (parenthesized_expression) "(c_hedge!=eq_hedge)" (() "(" (binary_expression) "c_hedge!=eq_hedge" (identifier) "c_hedge" (!=) "!=" (identifier) "eq_hedge" ()) ")" (;) ";" (}) "}" (while) "while" (parenthesized_expression) "(initial_hedge!=c_hedge)" (() "(" (binary_expression) "initial_hedge!=c_hedge" (identifier) "initial_hedge" (!=) "!=" (identifier) "c_hedge" ()) ")" (;) ";" (comment) "//stop when we circled " (comment) "//if we reach this part of the code it means the faces do not share an edge " (expression_statement) "warning("Faces do not share an edge");" (call_expression) "warning("Faces do not share an edge")" (identifier) "warning" (argument_list) "("Faces do not share an edge")" (() "(" (string_literal) ""Faces do not share an edge"" (") """ (string_content) "Faces do not share an edge" (") """ ()) ")" (;) ";" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (}) "}" (function_definition) "function int is_triangle(int geo ; int faceid){ \n int pts[] = primpoints(geo,faceid); \n return (len(pts)==3) ; \n}" (type_identifier) "function" (ERROR) "int" (identifier) "int" (function_declarator) "is_triangle(int geo ; int faceid)" (identifier) "is_triangle" (parameter_list) "(int geo ; int faceid)" (() "(" (ERROR) "int geo ;" (parameter_declaration) "int geo" (primitive_type) "int" (identifier) "geo" (;) ";" (parameter_declaration) "int faceid" (primitive_type) "int" (identifier) "faceid" ()) ")" (compound_statement) "{ \n int pts[] = primpoints(geo,faceid); \n return (len(pts)==3) ; \n}" ({) "{" (declaration) "int pts[] = primpoints(geo,faceid);" (primitive_type) "int" (init_declarator) "pts[] = primpoints(geo,faceid)" (array_declarator) "pts[]" (identifier) "pts" ([) "[" (]) "]" (=) "=" (call_expression) "primpoints(geo,faceid)" (identifier) "primpoints" (argument_list) "(geo,faceid)" (() "(" (identifier) "geo" (,) "," (identifier) "faceid" ()) ")" (;) ";" (return_statement) "return (len(pts)==3) ;" (return) "return" (parenthesized_expression) "(len(pts)==3)" (() "(" (binary_expression) "len(pts)==3" (call_expression) "len(pts)" (identifier) "len" (argument_list) "(pts)" (() "(" (identifier) "pts" ()) ")" (==) "==" (number_literal) "3" ()) ")" (;) ";" (}) "}" (function_definition) "function int is_quad(int geo ; int faceid){ \n int pts[] = primpoints(geo,faceid); \n return (len(pts)==4); \n}" (type_identifier) "function" (ERROR) "int" (identifier) "int" (function_declarator) "is_quad(int geo ; int faceid)" (identifier) "is_quad" (parameter_list) "(int geo ; int faceid)" (() "(" (ERROR) "int geo ;" (parameter_declaration) "int geo" (primitive_type) "int" (identifier) "geo" (;) ";" (parameter_declaration) "int faceid" (primitive_type) "int" (identifier) "faceid" ()) ")" (compound_statement) "{ \n int pts[] = primpoints(geo,faceid); \n return (len(pts)==4); \n}" ({) "{" (declaration) "int pts[] = primpoints(geo,faceid);" (primitive_type) "int" (init_declarator) "pts[] = primpoints(geo,faceid)" (array_declarator) "pts[]" (identifier) "pts" ([) "[" (]) "]" (=) "=" (call_expression) "primpoints(geo,faceid)" (identifier) "primpoints" (argument_list) "(geo,faceid)" (() "(" (identifier) "geo" (,) "," (identifier) "faceid" ()) ")" (;) ";" (return_statement) "return (len(pts)==4);" (return) "return" (parenthesized_expression) "(len(pts)==4)" (() "(" (binary_expression) "len(pts)==4" (call_expression) "len(pts)" (identifier) "len" (argument_list) "(pts)" (() "(" (identifier) "pts" ()) ")" (==) "==" (number_literal) "4" ()) ")" (;) ";" (}) "}" (comment) "//ANGLES " (function_definition) "function float compute_angle(vector x,y){ \n //Compute the angle in radians between x and y \n return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y)); \n}" (type_identifier) "function" (ERROR) "float" (identifier) "float" (function_declarator) "compute_angle(vector x,y)" (identifier) "compute_angle" (parameter_list) "(vector x,y)" (() "(" (parameter_declaration) "vector x" (type_identifier) "vector" (identifier) "x" (,) "," (parameter_declaration) "y" (type_identifier) "y" ()) ")" (compound_statement) "{ \n //Compute the angle in radians between x and y \n return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y)); \n}" ({) "{" (comment) "//Compute the angle in radians between x and y " (return_statement) "return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y));" (return) "return" (binary_expression) "2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y))" (number_literal) "2." (*) "*" (call_expression) "atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y))" (identifier) "atan" (argument_list) "(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y))" (() "(" (binary_expression) "length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y)" (call_expression) "length(x*length(y) - length(x)*y)" (identifier) "length" (argument_list) "(x*length(y) - length(x)*y)" (() "(" (binary_expression) "x*length(y) - length(x)*y" (binary_expression) "x*length(y)" (identifier) "x" (*) "*" (call_expression) "length(y)" (identifier) "length" (argument_list) "(y)" (() "(" (identifier) "y" ()) ")" (-) "-" (binary_expression) "length(x)*y" (call_expression) "length(x)" (identifier) "length" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (*) "*" (identifier) "y" ()) ")" (/) "/" (call_expression) "length(x * length(y) + length(x) * y)" (identifier) "length" (argument_list) "(x * length(y) + length(x) * y)" (() "(" (binary_expression) "x * length(y) + length(x) * y" (binary_expression) "x * length(y)" (identifier) "x" (*) "*" (call_expression) "length(y)" (identifier) "length" (argument_list) "(y)" (() "(" (identifier) "y" ()) ")" (+) "+" (binary_expression) "length(x) * y" (call_expression) "length(x)" (identifier) "length" (argument_list) "(x)" (() "(" (identifier) "x" ()) ")" (*) "*" (identifier) "y" ()) ")" ()) ")" (;) ";" (}) "}" (function_definition) "function float cotan(vector x,y){ \n //return the cotan of the angle between x and y \n return dot(x,y) / length(cross(x,y)); \n}" (type_identifier) "function" (ERROR) "float" (identifier) "float" (function_declarator) "cotan(vector x,y)" (identifier) "cotan" (parameter_list) "(vector x,y)" (() "(" (parameter_declaration) "vector x" (type_identifier) "vector" (identifier) "x" (,) "," (parameter_declaration) "y" (type_identifier) "y" ()) ")" (compound_statement) "{ \n //return the cotan of the angle between x and y \n return dot(x,y) / length(cross(x,y)); \n}" ({) "{" (comment) "//return the cotan of the angle between x and y " (return_statement) "return dot(x,y) / length(cross(x,y));" (return) "return" (binary_expression) "dot(x,y) / length(cross(x,y))" (call_expression) "dot(x,y)" (identifier) "dot" (argument_list) "(x,y)" (() "(" (identifier) "x" (,) "," (identifier) "y" ()) ")" (/) "/" (call_expression) "length(cross(x,y))" (identifier) "length" (argument_list) "(cross(x,y))" (() "(" (call_expression) "cross(x,y)" (identifier) "cross" (argument_list) "(x,y)" (() "(" (identifier) "x" (,) "," (identifier) "y" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "//ALGEBRA " (function_definition) "function vector project(vector x,ydir){ \n //compute x projected on direction y \n vector dir = normalize(ydir); \n return dot(x,dir) * dir; \n}" (type_identifier) "function" (ERROR) "vector" (identifier) "vector" (function_declarator) "project(vector x,ydir)" (identifier) "project" (parameter_list) "(vector x,ydir)" (() "(" (parameter_declaration) "vector x" (type_identifier) "vector" (identifier) "x" (,) "," (parameter_declaration) "ydir" (type_identifier) "ydir" ()) ")" (compound_statement) "{ \n //compute x projected on direction y \n vector dir = normalize(ydir); \n return dot(x,dir) * dir; \n}" ({) "{" (comment) "//compute x projected on direction y " (declaration) "vector dir = normalize(ydir);" (type_identifier) "vector" (init_declarator) "dir = normalize(ydir)" (identifier) "dir" (=) "=" (call_expression) "normalize(ydir)" (identifier) "normalize" (argument_list) "(ydir)" (() "(" (identifier) "ydir" ()) ")" (;) ";" (return_statement) "return dot(x,dir) * dir;" (return) "return" (binary_expression) "dot(x,dir) * dir" (call_expression) "dot(x,dir)" (identifier) "dot" (argument_list) "(x,dir)" (() "(" (identifier) "x" (,) "," (identifier) "dir" ()) ")" (*) "*" (identifier) "dir" (;) ";" (}) "}" (function_definition) "function vector reject(vector x , y){ \n return x - project(x,y); \n}" (type_identifier) "function" (ERROR) "vector" (identifier) "vector" (function_declarator) "reject(vector x , y)" (identifier) "reject" (parameter_list) "(vector x , y)" (() "(" (parameter_declaration) "vector x" (type_identifier) "vector" (identifier) "x" (,) "," (parameter_declaration) "y" (type_identifier) "y" ()) ")" (compound_statement) "{ \n return x - project(x,y); \n}" ({) "{" (return_statement) "return x - project(x,y);" (return) "return" (binary_expression) "x - project(x,y)" (identifier) "x" (-) "-" (call_expression) "project(x,y)" (identifier) "project" (argument_list) "(x,y)" (() "(" (identifier) "x" (,) "," (identifier) "y" ()) ")" (;) ";" (}) "}" (declaration) "function vector change_basis(vector x ;" (type_identifier) "function" (ERROR) "vector" (identifier) "vector" (function_declarator) "change_basis(vector x" (identifier) "change_basis" (parameter_list) "(vector x" (() "(" (parameter_declaration) "vector x" (type_identifier) "vector" (identifier) "x" ()) "" (;) ";" (function_definition) "matrix3 basis){ \n /* \n we assume basis is an orthogonal matrix \n */ \n return basis * x * transpose(basis); \n}" (type_identifier) "matrix3" (identifier) "basis" (ERROR) ")" ()) ")" (compound_statement) "{ \n /* \n we assume basis is an orthogonal matrix \n */ \n return basis * x * transpose(basis); \n}" ({) "{" (comment) "/* \n we assume basis is an orthogonal matrix \n */" (return_statement) "return basis * x * transpose(basis);" (return) "return" (binary_expression) "basis * x * transpose(basis)" (binary_expression) "basis * x" (identifier) "basis" (*) "*" (identifier) "x" (*) "*" (call_expression) "transpose(basis)" (identifier) "transpose" (argument_list) "(basis)" (() "(" (identifier) "basis" ()) ")" (;) ";" (}) "}" (#endif) "#endif"
599
14
{"language": "c", "success": true, "metadata": {"lines": 110, "avg_line_length": 27.56, "nodes": 358, "errors": 0, "source_hash": "ccc076d05b6569cba028bdff2305aba75ac1be102cf4899465f3c76f44aeea1d", "categorized_nodes": 253}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __geometryhelpers_h__\r\n#define __geometryhelpers_h__\r\n\r\n// Collection of useful geometry helper functions\r\n\r\n//HEDGES\r\n\r\n// hedge_opposite(int geo ; int hedge)\r\n// - INPUT: geo, handle to a geometry ; hedge a headge of that geometry\r\n// - OUTPUT: the index of the flipped hedge (add a warning in case the geometry is not manifold)\r\n\r\n// common_hedge ( int geo ; int face0 , face1)\r\n// - INPUT: geo, handle to a geometry ; face0 and face1 the index of 2 faces\r\n// - OUTPUT: the hedge of face0 s.t hedge flipped belongs to face1. Return -1 if the faces do not share an edge\r\n\r\n// ANGLES\r\n\r\n// compute_angle(vector x , y)\r\n// - INPUT: vector x and y\r\n// - OUTPUT: angle (in radians) between x and y\r\n\r\n//ALGEBRA\r\n\r\n//project(vector x , y)\r\n// - INPUT: vector x and y\r\n// - OUTPUT: x projected on the direction defined by y\r\n\r\n\r\n\r\n//BEGIN CODE\r\n\r\n//HEDGES\r\n\r\nfunction int hedge_opposite(int geo ; int hedge){\r\n //check if the triangulation is manifold (ie hedge has valence exactly 2)\r\n //and return the opposite hedge\r\n int hedge_opposite = hedge_nextequiv(geo,hedge);\r\n if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){\r\n warning(\"Non manifold mesh\");\r\n }\r\n return hedge_opposite;\r\n}\r\n\r\nfunction int common_hedge(int geo ; int face0 , face1){\r\n //Return the hedge of face0 that, once flipped is an hedge of face1\r\n //Return -1 if the faces do not share an edge\r\n int initial_hedge = primhedge(geo,face0);\r\n int c_hedge = initial_hedge;\r\n\r\n do{\r\n c_hedge = hedge_next(geo,c_hedge); // next hedge\r\n int eq_hedge = c_hedge; //iterate on the equivalent hedges\r\n do{\r\n eq_hedge = hedge_nextequiv(geo,eq_hedge);\r\n if(hedge_prim(geo,eq_hedge)==face1){\r\n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for\r\n }\r\n }while(c_hedge!=eq_hedge);\r\n\r\n }while(initial_hedge!=c_hedge); //stop when we circled\r\n\r\n //if we reach this part of the code it means the faces do not share an edge\r\n warning(\"Faces do not share an edge\");\r\n return -1;\r\n}\r\n\r\nfunction int is_triangle(int geo ; int faceid){\r\n int pts[] = primpoints(geo,faceid);\r\n return (len(pts)==3) ;\r\n}\r\n\r\nfunction int is_quad(int geo ; int faceid){\r\n int pts[] = primpoints(geo,faceid);\r\n return (len(pts)==4);\r\n}\r\n\r\n\r\n//ANGLES\r\n\r\nfunction float compute_angle(vector x,y){\r\n //Compute the angle in radians between x and y\r\n return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y));\r\n}\r\n\r\nfunction float cotan(vector x,y){\r\n //return the cotan of the angle between x and y\r\n return dot(x,y) / length(cross(x,y));\r\n}\r\n\r\n//ALGEBRA\r\n\r\nfunction vector project(vector x,ydir){\r\n //compute x projected on direction y\r\n vector dir = normalize(ydir);\r\n return dot(x,dir) * dir;\r\n}\r\n\r\nfunction vector reject(vector x , y){\r\n return x - project(x,y);\r\n}\r\n\r\nfunction vector change_basis(vector x ; matrix3 basis){\r\n /*\r\n we assume basis is an orthogonal matrix\r\n */\r\n return basis * x * transpose(basis);\r\n}\r\n\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 51, 134, 167, 200, 258, 285, 314, 334, 343, 357], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 109, "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": "__geometryhelpers_h__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define __geometryhelpers_h__\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "__geometryhelpers_h__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 29}}, {"id": 6, "type": "function_definition", "text": "function int hedge_opposite(int geo ; int hedge){\r\n //check if the triangulation is manifold (ie hedge has valence exactly 2)\r\n //and return the opposite hedge\r\n int hedge_opposite = hedge_nextequiv(geo,hedge);\r\n if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){\r\n warning(\"Non manifold mesh\");\r\n }\r\n return hedge_opposite;\r\n}", "parent": 0, "children": [7, 9], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 7, "type": "ERROR", "text": "int", "parent": 6, "children": [8], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 12}}, {"id": 8, "type": "identifier", "text": "int", "parent": 7, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 12}}, {"id": 9, "type": "function_declarator", "text": "hedge_opposite(int geo ; int hedge)", "parent": 6, "children": [10, 11], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 48}}, {"id": 10, "type": "identifier", "text": "hedge_opposite", "parent": 9, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 27}}, {"id": 11, "type": "parameter_list", "text": "(int geo ; int hedge)", "parent": 9, "children": [12, 16], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 48}}, {"id": 12, "type": "ERROR", "text": "int geo ;", "parent": 11, "children": [13], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 37}}, {"id": 13, "type": "parameter_declaration", "text": "int geo", "parent": 12, "children": [14, 15], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 35}}, {"id": 14, "type": "primitive_type", "text": "int", "parent": 13, "children": [], "start_point": {"row": 33, "column": 28}, "end_point": {"row": 33, "column": 31}}, {"id": 15, "type": "identifier", "text": "geo", "parent": 13, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 35}}, {"id": 16, "type": "parameter_declaration", "text": "int hedge", "parent": 11, "children": [17, 18], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 47}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 16, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 41}}, {"id": 18, "type": "identifier", "text": "hedge", "parent": 16, "children": [], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 47}}, {"id": 19, "type": "declaration", "text": "int hedge_opposite = hedge_nextequiv(geo,hedge);", "parent": 6, "children": [20, 21], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 52}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 19, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 7}}, {"id": 21, "type": "init_declarator", "text": "hedge_opposite = hedge_nextequiv(geo,hedge)", "parent": 19, "children": [22, 23, 24], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 51}}, {"id": 22, "type": "identifier", "text": "hedge_opposite", "parent": 21, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 22}}, {"id": 23, "type": "=", "text": "=", "parent": 21, "children": [], "start_point": {"row": 36, "column": 23}, "end_point": {"row": 36, "column": 24}}, {"id": 24, "type": "call_expression", "text": "hedge_nextequiv(geo,hedge)", "parent": 21, "children": [25, 26], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 51}}, {"id": 25, "type": "identifier", "text": "hedge_nextequiv", "parent": 24, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 40}}, {"id": 26, "type": "argument_list", "text": "(geo,hedge)", "parent": 24, "children": [27, 28], "start_point": {"row": 36, "column": 40}, "end_point": {"row": 36, "column": 51}}, {"id": 27, "type": "identifier", "text": "geo", "parent": 26, "children": [], "start_point": {"row": 36, "column": 41}, "end_point": {"row": 36, "column": 44}}, {"id": 28, "type": "identifier", "text": "hedge", "parent": 26, "children": [], "start_point": {"row": 36, "column": 45}, "end_point": {"row": 36, "column": 50}}, {"id": 29, "type": "if_statement", "text": "if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){\r\n warning(\"Non manifold mesh\");\r\n }", "parent": 6, "children": [30], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 39, "column": 5}}, {"id": 30, "type": "parenthesized_expression", "text": "(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge)", "parent": 29, "children": [31], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 75}}, {"id": 31, "type": "binary_expression", "text": "hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge", "parent": 30, "children": [32, 36, 37], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 74}}, {"id": 32, "type": "binary_expression", "text": "hedge_opposite==hedge", "parent": 31, "children": [33, 34, 35], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 28}}, {"id": 33, "type": "identifier", "text": "hedge_opposite", "parent": 32, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 21}}, {"id": 34, "type": "==", "text": "==", "parent": 32, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 23}}, {"id": 35, "type": "identifier", "text": "hedge", "parent": 32, "children": [], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 28}}, {"id": 36, "type": "||", "text": "||", "parent": 31, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 31}}, {"id": 37, "type": "binary_expression", "text": "hedge_nextequiv(geo,hedge_opposite)!=hedge", "parent": 31, "children": [38, 43, 44], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 74}}, {"id": 38, "type": "call_expression", "text": "hedge_nextequiv(geo,hedge_opposite)", "parent": 37, "children": [39, 40], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 67}}, {"id": 39, "type": "identifier", "text": "hedge_nextequiv", "parent": 38, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 47}}, {"id": 40, "type": "argument_list", "text": "(geo,hedge_opposite)", "parent": 38, "children": [41, 42], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 67}}, {"id": 41, "type": "identifier", "text": "geo", "parent": 40, "children": [], "start_point": {"row": 37, "column": 48}, "end_point": {"row": 37, "column": 51}}, {"id": 42, "type": "identifier", "text": "hedge_opposite", "parent": 40, "children": [], "start_point": {"row": 37, "column": 52}, "end_point": {"row": 37, "column": 66}}, {"id": 43, "type": "!=", "text": "!=", "parent": 37, "children": [], "start_point": {"row": 37, "column": 67}, "end_point": {"row": 37, "column": 69}}, {"id": 44, "type": "identifier", "text": "hedge", "parent": 37, "children": [], "start_point": {"row": 37, "column": 69}, "end_point": {"row": 37, "column": 74}}, {"id": 45, "type": "call_expression", "text": "warning(\"Non manifold mesh\")", "parent": 29, "children": [46, 47], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 36}}, {"id": 46, "type": "identifier", "text": "warning", "parent": 45, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 15}}, {"id": 47, "type": "argument_list", "text": "(\"Non manifold mesh\")", "parent": 45, "children": [48], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 36}}, {"id": 48, "type": "string_literal", "text": "\"Non manifold mesh\"", "parent": 47, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 35}}, {"id": 49, "type": "return_statement", "text": "return hedge_opposite;", "parent": 6, "children": [50], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 26}}, {"id": 50, "type": "identifier", "text": "hedge_opposite", "parent": 49, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 25}}, {"id": 51, "type": "function_definition", "text": "function int common_hedge(int geo ; int face0 , face1){\r\n //Return the hedge of face0 that, once flipped is an hedge of face1\r\n //Return -1 if the faces do not share an edge\r\n int initial_hedge = primhedge(geo,face0);\r\n int c_hedge = initial_hedge;\r\n\r\n do{\r\n c_hedge = hedge_next(geo,c_hedge); // next hedge\r\n int eq_hedge = c_hedge; //iterate on the equivalent hedges\r\n do{\r\n eq_hedge = hedge_nextequiv(geo,eq_hedge);\r\n if(hedge_prim(geo,eq_hedge)==face1){\r\n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for\r\n }\r\n }while(c_hedge!=eq_hedge);\r\n\r\n }while(initial_hedge!=c_hedge); //stop when we circled\r\n\r\n //if we reach this part of the code it means the faces do not share an edge\r\n warning(\"Faces do not share an edge\");\r\n return -1;\r\n}", "parent": 0, "children": [52, 54], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 52, "type": "ERROR", "text": "int", "parent": 51, "children": [53], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 12}}, {"id": 53, "type": "identifier", "text": "int", "parent": 52, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 12}}, {"id": 54, "type": "function_declarator", "text": "common_hedge(int geo ; int face0 , face1)", "parent": 51, "children": [55, 56], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 54}}, {"id": 55, "type": "identifier", "text": "common_hedge", "parent": 54, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 25}}, {"id": 56, "type": "parameter_list", "text": "(int geo ; int face0 , face1)", "parent": 54, "children": [57, 61, 64], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 54}}, {"id": 57, "type": "ERROR", "text": "int geo ;", "parent": 56, "children": [58], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 35}}, {"id": 58, "type": "parameter_declaration", "text": "int geo", "parent": 57, "children": [59, 60], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 33}}, {"id": 59, "type": "primitive_type", "text": "int", "parent": 58, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 29}}, {"id": 60, "type": "identifier", "text": "geo", "parent": 58, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 33}}, {"id": 61, "type": "parameter_declaration", "text": "int face0", "parent": 56, "children": [62, 63], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 45}}, {"id": 62, "type": "primitive_type", "text": "int", "parent": 61, "children": [], "start_point": {"row": 43, "column": 36}, "end_point": {"row": 43, "column": 39}}, {"id": 63, "type": "identifier", "text": "face0", "parent": 61, "children": [], "start_point": {"row": 43, "column": 40}, "end_point": {"row": 43, "column": 45}}, {"id": 64, "type": "parameter_declaration", "text": "face1", "parent": 56, "children": [65], "start_point": {"row": 43, "column": 48}, "end_point": {"row": 43, "column": 53}}, {"id": 65, "type": "type_identifier", "text": "face1", "parent": 64, "children": [], "start_point": {"row": 43, "column": 48}, "end_point": {"row": 43, "column": 53}}, {"id": 66, "type": "declaration", "text": "int initial_hedge = primhedge(geo,face0);", "parent": 51, "children": [67, 68], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 45}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 66, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 7}}, {"id": 68, "type": "init_declarator", "text": "initial_hedge = primhedge(geo,face0)", "parent": 66, "children": [69, 70, 71], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 44}}, {"id": 69, "type": "identifier", "text": "initial_hedge", "parent": 68, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 21}}, {"id": 70, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 23}}, {"id": 71, "type": "call_expression", "text": "primhedge(geo,face0)", "parent": 68, "children": [72, 73], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 44}}, {"id": 72, "type": "identifier", "text": "primhedge", "parent": 71, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 33}}, {"id": 73, "type": "argument_list", "text": "(geo,face0)", "parent": 71, "children": [74, 75], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 44}}, {"id": 74, "type": "identifier", "text": "geo", "parent": 73, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 37}}, {"id": 75, "type": "identifier", "text": "face0", "parent": 73, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 43}}, {"id": 76, "type": "declaration", "text": "int c_hedge = initial_hedge;", "parent": 51, "children": [77, 78], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 32}}, {"id": 77, "type": "primitive_type", "text": "int", "parent": 76, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 7}}, {"id": 78, "type": "init_declarator", "text": "c_hedge = initial_hedge", "parent": 76, "children": [79, 80, 81], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 31}}, {"id": 79, "type": "identifier", "text": "c_hedge", "parent": 78, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 15}}, {"id": 80, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 17}}, {"id": 81, "type": "identifier", "text": "initial_hedge", "parent": 78, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 31}}, {"id": 82, "type": "do_statement", "text": "do{\r\n c_hedge = hedge_next(geo,c_hedge); // next hedge\r\n int eq_hedge = c_hedge; //iterate on the equivalent hedges\r\n do{\r\n eq_hedge = hedge_nextequiv(geo,eq_hedge);\r\n if(hedge_prim(geo,eq_hedge)==face1){\r\n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for\r\n }\r\n }while(c_hedge!=eq_hedge);\r\n\r\n }while(initial_hedge!=c_hedge);", "parent": 51, "children": [123], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 59, "column": 35}}, {"id": 83, "type": "assignment_expression", "text": "c_hedge = hedge_next(geo,c_hedge)", "parent": 82, "children": [84, 85, 86], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 41}}, {"id": 84, "type": "identifier", "text": "c_hedge", "parent": 83, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 15}}, {"id": 85, "type": "=", "text": "=", "parent": 83, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 17}}, {"id": 86, "type": "call_expression", "text": "hedge_next(geo,c_hedge)", "parent": 83, "children": [87, 88], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 41}}, {"id": 87, "type": "identifier", "text": "hedge_next", "parent": 86, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 28}}, {"id": 88, "type": "argument_list", "text": "(geo,c_hedge)", "parent": 86, "children": [89, 90], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 41}}, {"id": 89, "type": "identifier", "text": "geo", "parent": 88, "children": [], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 32}}, {"id": 90, "type": "identifier", "text": "c_hedge", "parent": 88, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 40}}, {"id": 91, "type": "declaration", "text": "int eq_hedge = c_hedge;", "parent": 82, "children": [92, 93], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 31}}, {"id": 92, "type": "primitive_type", "text": "int", "parent": 91, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 11}}, {"id": 93, "type": "init_declarator", "text": "eq_hedge = c_hedge", "parent": 91, "children": [94, 95, 96], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 30}}, {"id": 94, "type": "identifier", "text": "eq_hedge", "parent": 93, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 20}}, {"id": 95, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 22}}, {"id": 96, "type": "identifier", "text": "c_hedge", "parent": 93, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 30}}, {"id": 97, "type": "do_statement", "text": "do{\r\n eq_hedge = hedge_nextequiv(geo,eq_hedge);\r\n if(hedge_prim(geo,eq_hedge)==face1){\r\n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for\r\n }\r\n }while(c_hedge!=eq_hedge);", "parent": 82, "children": [118], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 57, "column": 34}}, {"id": 98, "type": "assignment_expression", "text": "eq_hedge = hedge_nextequiv(geo,eq_hedge)", "parent": 97, "children": [99, 100, 101], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 52}}, {"id": 99, "type": "identifier", "text": "eq_hedge", "parent": 98, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 20}}, {"id": 100, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 22}}, {"id": 101, "type": "call_expression", "text": "hedge_nextequiv(geo,eq_hedge)", "parent": 98, "children": [102, 103], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 52}}, {"id": 102, "type": "identifier", "text": "hedge_nextequiv", "parent": 101, "children": [], "start_point": {"row": 53, "column": 23}, "end_point": {"row": 53, "column": 38}}, {"id": 103, "type": "argument_list", "text": "(geo,eq_hedge)", "parent": 101, "children": [104, 105], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 52}}, {"id": 104, "type": "identifier", "text": "geo", "parent": 103, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 42}}, {"id": 105, "type": "identifier", "text": "eq_hedge", "parent": 103, "children": [], "start_point": {"row": 53, "column": 43}, "end_point": {"row": 53, "column": 51}}, {"id": 106, "type": "if_statement", "text": "if(hedge_prim(geo,eq_hedge)==face1){\r\n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for\r\n }", "parent": 97, "children": [107], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 56, "column": 13}}, {"id": 107, "type": "parenthesized_expression", "text": "(hedge_prim(geo,eq_hedge)==face1)", "parent": 106, "children": [108], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 47}}, {"id": 108, "type": "binary_expression", "text": "hedge_prim(geo,eq_hedge)==face1", "parent": 107, "children": [109, 114, 115], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 46}}, {"id": 109, "type": "call_expression", "text": "hedge_prim(geo,eq_hedge)", "parent": 108, "children": [110, 111], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 39}}, {"id": 110, "type": "identifier", "text": "hedge_prim", "parent": 109, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 25}}, {"id": 111, "type": "argument_list", "text": "(geo,eq_hedge)", "parent": 109, "children": [112, 113], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 39}}, {"id": 112, "type": "identifier", "text": "geo", "parent": 111, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 29}}, {"id": 113, "type": "identifier", "text": "eq_hedge", "parent": 111, "children": [], "start_point": {"row": 54, "column": 30}, "end_point": {"row": 54, "column": 38}}, {"id": 114, "type": "==", "text": "==", "parent": 108, "children": [], "start_point": {"row": 54, "column": 39}, "end_point": {"row": 54, "column": 41}}, {"id": 115, "type": "identifier", "text": "face1", "parent": 108, "children": [], "start_point": {"row": 54, "column": 41}, "end_point": {"row": 54, "column": 46}}, {"id": 116, "type": "return_statement", "text": "return c_hedge;", "parent": 106, "children": [117], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 31}}, {"id": 117, "type": "identifier", "text": "c_hedge", "parent": 116, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 30}}, {"id": 118, "type": "parenthesized_expression", "text": "(c_hedge!=eq_hedge)", "parent": 97, "children": [119], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 33}}, {"id": 119, "type": "binary_expression", "text": "c_hedge!=eq_hedge", "parent": 118, "children": [120, 121, 122], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 32}}, {"id": 120, "type": "identifier", "text": "c_hedge", "parent": 119, "children": [], "start_point": {"row": 57, "column": 15}, "end_point": {"row": 57, "column": 22}}, {"id": 121, "type": "!=", "text": "!=", "parent": 119, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 24}}, {"id": 122, "type": "identifier", "text": "eq_hedge", "parent": 119, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 32}}, {"id": 123, "type": "parenthesized_expression", "text": "(initial_hedge!=c_hedge)", "parent": 82, "children": [124], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 34}}, {"id": 124, "type": "binary_expression", "text": "initial_hedge!=c_hedge", "parent": 123, "children": [125, 126, 127], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 33}}, {"id": 125, "type": "identifier", "text": "initial_hedge", "parent": 124, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 24}}, {"id": 126, "type": "!=", "text": "!=", "parent": 124, "children": [], "start_point": {"row": 59, "column": 24}, "end_point": {"row": 59, "column": 26}}, {"id": 127, "type": "identifier", "text": "c_hedge", "parent": 124, "children": [], "start_point": {"row": 59, "column": 26}, "end_point": {"row": 59, "column": 33}}, {"id": 128, "type": "call_expression", "text": "warning(\"Faces do not share an edge\")", "parent": 51, "children": [129, 130], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 41}}, {"id": 129, "type": "identifier", "text": "warning", "parent": 128, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 11}}, {"id": 130, "type": "argument_list", "text": "(\"Faces do not share an edge\")", "parent": 128, "children": [131], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 41}}, {"id": 131, "type": "string_literal", "text": "\"Faces do not share an edge\"", "parent": 130, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 40}}, {"id": 132, "type": "return_statement", "text": "return -1;", "parent": 51, "children": [133], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 14}}, {"id": 133, "type": "number_literal", "text": "-1", "parent": 132, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 13}}, {"id": 134, "type": "function_definition", "text": "function int is_triangle(int geo ; int faceid){\r\n int pts[] = primpoints(geo,faceid);\r\n return (len(pts)==3) ;\r\n}", "parent": 0, "children": [135, 137], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 135, "type": "ERROR", "text": "int", "parent": 134, "children": [136], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 12}}, {"id": 136, "type": "identifier", "text": "int", "parent": 135, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 12}}, {"id": 137, "type": "function_declarator", "text": "is_triangle(int geo ; int faceid)", "parent": 134, "children": [138, 139], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 46}}, {"id": 138, "type": "identifier", "text": "is_triangle", "parent": 137, "children": [], "start_point": {"row": 66, "column": 13}, "end_point": {"row": 66, "column": 24}}, {"id": 139, "type": "parameter_list", "text": "(int geo ; int faceid)", "parent": 137, "children": [140, 144], "start_point": {"row": 66, "column": 24}, "end_point": {"row": 66, "column": 46}}, {"id": 140, "type": "ERROR", "text": "int geo ;", "parent": 139, "children": [141], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 34}}, {"id": 141, "type": "parameter_declaration", "text": "int geo", "parent": 140, "children": [142, 143], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 32}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 141, "children": [], "start_point": {"row": 66, "column": 25}, "end_point": {"row": 66, "column": 28}}, {"id": 143, "type": "identifier", "text": "geo", "parent": 141, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 32}}, {"id": 144, "type": "parameter_declaration", "text": "int faceid", "parent": 139, "children": [145, 146], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 45}}, {"id": 145, "type": "primitive_type", "text": "int", "parent": 144, "children": [], "start_point": {"row": 66, "column": 35}, "end_point": {"row": 66, "column": 38}}, {"id": 146, "type": "identifier", "text": "faceid", "parent": 144, "children": [], "start_point": {"row": 66, "column": 39}, "end_point": {"row": 66, "column": 45}}, {"id": 147, "type": "declaration", "text": "int pts[] = primpoints(geo,faceid);", "parent": 134, "children": [148, 149], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 39}}, {"id": 148, "type": "primitive_type", "text": "int", "parent": 147, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 7}}, {"id": 149, "type": "init_declarator", "text": "pts[] = primpoints(geo,faceid)", "parent": 147, "children": [150, 152, 153], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 38}}, {"id": 150, "type": "array_declarator", "text": "pts[]", "parent": 149, "children": [151], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 13}}, {"id": 151, "type": "identifier", "text": "pts", "parent": 150, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 11}}, {"id": 152, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 67, "column": 14}, "end_point": {"row": 67, "column": 15}}, {"id": 153, "type": "call_expression", "text": "primpoints(geo,faceid)", "parent": 149, "children": [154, 155], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 38}}, {"id": 154, "type": "identifier", "text": "primpoints", "parent": 153, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 26}}, {"id": 155, "type": "argument_list", "text": "(geo,faceid)", "parent": 153, "children": [156, 157], "start_point": {"row": 67, "column": 26}, "end_point": {"row": 67, "column": 38}}, {"id": 156, "type": "identifier", "text": "geo", "parent": 155, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 30}}, {"id": 157, "type": "identifier", "text": "faceid", "parent": 155, "children": [], "start_point": {"row": 67, "column": 31}, "end_point": {"row": 67, "column": 37}}, {"id": 158, "type": "return_statement", "text": "return (len(pts)==3) ;", "parent": 134, "children": [159], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 26}}, {"id": 159, "type": "parenthesized_expression", "text": "(len(pts)==3)", "parent": 158, "children": [160], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 24}}, {"id": 160, "type": "binary_expression", "text": "len(pts)==3", "parent": 159, "children": [161, 165, 166], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 23}}, {"id": 161, "type": "call_expression", "text": "len(pts)", "parent": 160, "children": [162, 163], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 20}}, {"id": 162, "type": "identifier", "text": "len", "parent": 161, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 15}}, {"id": 163, "type": "argument_list", "text": "(pts)", "parent": 161, "children": [164], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 20}}, {"id": 164, "type": "identifier", "text": "pts", "parent": 163, "children": [], "start_point": {"row": 68, "column": 16}, "end_point": {"row": 68, "column": 19}}, {"id": 165, "type": "==", "text": "==", "parent": 160, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 22}}, {"id": 166, "type": "number_literal", "text": "3", "parent": 160, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 23}}, {"id": 167, "type": "function_definition", "text": "function int is_quad(int geo ; int faceid){\r\n int pts[] = primpoints(geo,faceid);\r\n return (len(pts)==4);\r\n}", "parent": 0, "children": [168, 170], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 74, "column": 1}}, {"id": 168, "type": "ERROR", "text": "int", "parent": 167, "children": [169], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 12}}, {"id": 169, "type": "identifier", "text": "int", "parent": 168, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 12}}, {"id": 170, "type": "function_declarator", "text": "is_quad(int geo ; int faceid)", "parent": 167, "children": [171, 172], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 42}}, {"id": 171, "type": "identifier", "text": "is_quad", "parent": 170, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 20}}, {"id": 172, "type": "parameter_list", "text": "(int geo ; int faceid)", "parent": 170, "children": [173, 177], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 42}}, {"id": 173, "type": "ERROR", "text": "int geo ;", "parent": 172, "children": [174], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 30}}, {"id": 174, "type": "parameter_declaration", "text": "int geo", "parent": 173, "children": [175, 176], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 28}}, {"id": 175, "type": "primitive_type", "text": "int", "parent": 174, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 24}}, {"id": 176, "type": "identifier", "text": "geo", "parent": 174, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 28}}, {"id": 177, "type": "parameter_declaration", "text": "int faceid", "parent": 172, "children": [178, 179], "start_point": {"row": 71, "column": 31}, "end_point": {"row": 71, "column": 41}}, {"id": 178, "type": "primitive_type", "text": "int", "parent": 177, "children": [], "start_point": {"row": 71, "column": 31}, "end_point": {"row": 71, "column": 34}}, {"id": 179, "type": "identifier", "text": "faceid", "parent": 177, "children": [], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 41}}, {"id": 180, "type": "declaration", "text": "int pts[] = primpoints(geo,faceid);", "parent": 167, "children": [181, 182], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 39}}, {"id": 181, "type": "primitive_type", "text": "int", "parent": 180, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 7}}, {"id": 182, "type": "init_declarator", "text": "pts[] = primpoints(geo,faceid)", "parent": 180, "children": [183, 185, 186], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 38}}, {"id": 183, "type": "array_declarator", "text": "pts[]", "parent": 182, "children": [184], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 13}}, {"id": 184, "type": "identifier", "text": "pts", "parent": 183, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 11}}, {"id": 185, "type": "=", "text": "=", "parent": 182, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 15}}, {"id": 186, "type": "call_expression", "text": "primpoints(geo,faceid)", "parent": 182, "children": [187, 188], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 38}}, {"id": 187, "type": "identifier", "text": "primpoints", "parent": 186, "children": [], "start_point": {"row": 72, "column": 16}, "end_point": {"row": 72, "column": 26}}, {"id": 188, "type": "argument_list", "text": "(geo,faceid)", "parent": 186, "children": [189, 190], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 38}}, {"id": 189, "type": "identifier", "text": "geo", "parent": 188, "children": [], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 30}}, {"id": 190, "type": "identifier", "text": "faceid", "parent": 188, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 37}}, {"id": 191, "type": "return_statement", "text": "return (len(pts)==4);", "parent": 167, "children": [192], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 25}}, {"id": 192, "type": "parenthesized_expression", "text": "(len(pts)==4)", "parent": 191, "children": [193], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 24}}, {"id": 193, "type": "binary_expression", "text": "len(pts)==4", "parent": 192, "children": [194, 198, 199], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 23}}, {"id": 194, "type": "call_expression", "text": "len(pts)", "parent": 193, "children": [195, 196], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 20}}, {"id": 195, "type": "identifier", "text": "len", "parent": 194, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 15}}, {"id": 196, "type": "argument_list", "text": "(pts)", "parent": 194, "children": [197], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 20}}, {"id": 197, "type": "identifier", "text": "pts", "parent": 196, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 19}}, {"id": 198, "type": "==", "text": "==", "parent": 193, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 22}}, {"id": 199, "type": "number_literal", "text": "4", "parent": 193, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 23}}, {"id": 200, "type": "function_definition", "text": "function float compute_angle(vector x,y){\r\n //Compute the angle in radians between x and y\r\n return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y));\r\n}", "parent": 0, "children": [201, 203], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 82, "column": 1}}, {"id": 201, "type": "ERROR", "text": "float", "parent": 200, "children": [202], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 14}}, {"id": 202, "type": "identifier", "text": "float", "parent": 201, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 14}}, {"id": 203, "type": "function_declarator", "text": "compute_angle(vector x,y)", "parent": 200, "children": [204, 205], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 40}}, {"id": 204, "type": "identifier", "text": "compute_angle", "parent": 203, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 28}}, {"id": 205, "type": "parameter_list", "text": "(vector x,y)", "parent": 203, "children": [206, 209], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 40}}, {"id": 206, "type": "parameter_declaration", "text": "vector x", "parent": 205, "children": [207, 208], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 37}}, {"id": 207, "type": "type_identifier", "text": "vector", "parent": 206, "children": [], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 35}}, {"id": 208, "type": "identifier", "text": "x", "parent": 206, "children": [], "start_point": {"row": 79, "column": 36}, "end_point": {"row": 79, "column": 37}}, {"id": 209, "type": "parameter_declaration", "text": "y", "parent": 205, "children": [210], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 39}}, {"id": 210, "type": "type_identifier", "text": "y", "parent": 209, "children": [], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 39}}, {"id": 211, "type": "return_statement", "text": "return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y));", "parent": 200, "children": [212], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 96}}, {"id": 212, "type": "binary_expression", "text": "2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y))", "parent": 211, "children": [213, 214, 215], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 95}}, {"id": 213, "type": "number_literal", "text": "2.", "parent": 212, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 13}}, {"id": 214, "type": "*", "text": "*", "parent": 212, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 15}}, {"id": 215, "type": "call_expression", "text": "atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y))", "parent": 212, "children": [216, 217], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 95}}, {"id": 216, "type": "identifier", "text": "atan", "parent": 215, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 20}}, {"id": 217, "type": "argument_list", "text": "(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y))", "parent": 215, "children": [218], "start_point": {"row": 81, "column": 20}, "end_point": {"row": 81, "column": 95}}, {"id": 218, "type": "binary_expression", "text": "length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y)", "parent": 217, "children": [219, 238, 239], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 94}}, {"id": 219, "type": "call_expression", "text": "length(x*length(y) - length(x)*y)", "parent": 218, "children": [220, 221], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 54}}, {"id": 220, "type": "identifier", "text": "length", "parent": 219, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 27}}, {"id": 221, "type": "argument_list", "text": "(x*length(y) - length(x)*y)", "parent": 219, "children": [222], "start_point": {"row": 81, "column": 27}, "end_point": {"row": 81, "column": 54}}, {"id": 222, "type": "binary_expression", "text": "x*length(y) - length(x)*y", "parent": 221, "children": [223, 230, 231], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 53}}, {"id": 223, "type": "binary_expression", "text": "x*length(y)", "parent": 222, "children": [224, 225, 226], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 39}}, {"id": 224, "type": "identifier", "text": "x", "parent": 223, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 29}}, {"id": 225, "type": "*", "text": "*", "parent": 223, "children": [], "start_point": {"row": 81, "column": 29}, "end_point": {"row": 81, "column": 30}}, {"id": 226, "type": "call_expression", "text": "length(y)", "parent": 223, "children": [227, 228], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 39}}, {"id": 227, "type": "identifier", "text": "length", "parent": 226, "children": [], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 36}}, {"id": 228, "type": "argument_list", "text": "(y)", "parent": 226, "children": [229], "start_point": {"row": 81, "column": 36}, "end_point": {"row": 81, "column": 39}}, {"id": 229, "type": "identifier", "text": "y", "parent": 228, "children": [], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 38}}, {"id": 230, "type": "-", "text": "-", "parent": 222, "children": [], "start_point": {"row": 81, "column": 40}, "end_point": {"row": 81, "column": 41}}, {"id": 231, "type": "binary_expression", "text": "length(x)*y", "parent": 222, "children": [232, 236, 237], "start_point": {"row": 81, "column": 42}, "end_point": {"row": 81, "column": 53}}, {"id": 232, "type": "call_expression", "text": "length(x)", "parent": 231, "children": [233, 234], "start_point": {"row": 81, "column": 42}, "end_point": {"row": 81, "column": 51}}, {"id": 233, "type": "identifier", "text": "length", "parent": 232, "children": [], "start_point": {"row": 81, "column": 42}, "end_point": {"row": 81, "column": 48}}, {"id": 234, "type": "argument_list", "text": "(x)", "parent": 232, "children": [235], "start_point": {"row": 81, "column": 48}, "end_point": {"row": 81, "column": 51}}, {"id": 235, "type": "identifier", "text": "x", "parent": 234, "children": [], "start_point": {"row": 81, "column": 49}, "end_point": {"row": 81, "column": 50}}, {"id": 236, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 81, "column": 51}, "end_point": {"row": 81, "column": 52}}, {"id": 237, "type": "identifier", "text": "y", "parent": 231, "children": [], "start_point": {"row": 81, "column": 52}, "end_point": {"row": 81, "column": 53}}, {"id": 238, "type": "/", "text": "/", "parent": 218, "children": [], "start_point": {"row": 81, "column": 55}, "end_point": {"row": 81, "column": 56}}, {"id": 239, "type": "call_expression", "text": "length(x * length(y) + length(x) * y)", "parent": 218, "children": [240, 241], "start_point": {"row": 81, "column": 57}, "end_point": {"row": 81, "column": 94}}, {"id": 240, "type": "identifier", "text": "length", "parent": 239, "children": [], "start_point": {"row": 81, "column": 57}, "end_point": {"row": 81, "column": 63}}, {"id": 241, "type": "argument_list", "text": "(x * length(y) + length(x) * y)", "parent": 239, "children": [242], "start_point": {"row": 81, "column": 63}, "end_point": {"row": 81, "column": 94}}, {"id": 242, "type": "binary_expression", "text": "x * length(y) + length(x) * y", "parent": 241, "children": [243, 250, 251], "start_point": {"row": 81, "column": 64}, "end_point": {"row": 81, "column": 93}}, {"id": 243, "type": "binary_expression", "text": "x * length(y)", "parent": 242, "children": [244, 245, 246], "start_point": {"row": 81, "column": 64}, "end_point": {"row": 81, "column": 77}}, {"id": 244, "type": "identifier", "text": "x", "parent": 243, "children": [], "start_point": {"row": 81, "column": 64}, "end_point": {"row": 81, "column": 65}}, {"id": 245, "type": "*", "text": "*", "parent": 243, "children": [], "start_point": {"row": 81, "column": 66}, "end_point": {"row": 81, "column": 67}}, {"id": 246, "type": "call_expression", "text": "length(y)", "parent": 243, "children": [247, 248], "start_point": {"row": 81, "column": 68}, "end_point": {"row": 81, "column": 77}}, {"id": 247, "type": "identifier", "text": "length", "parent": 246, "children": [], "start_point": {"row": 81, "column": 68}, "end_point": {"row": 81, "column": 74}}, {"id": 248, "type": "argument_list", "text": "(y)", "parent": 246, "children": [249], "start_point": {"row": 81, "column": 74}, "end_point": {"row": 81, "column": 77}}, {"id": 249, "type": "identifier", "text": "y", "parent": 248, "children": [], "start_point": {"row": 81, "column": 75}, "end_point": {"row": 81, "column": 76}}, {"id": 250, "type": "+", "text": "+", "parent": 242, "children": [], "start_point": {"row": 81, "column": 78}, "end_point": {"row": 81, "column": 79}}, {"id": 251, "type": "binary_expression", "text": "length(x) * y", "parent": 242, "children": [252, 256, 257], "start_point": {"row": 81, "column": 80}, "end_point": {"row": 81, "column": 93}}, {"id": 252, "type": "call_expression", "text": "length(x)", "parent": 251, "children": [253, 254], "start_point": {"row": 81, "column": 80}, "end_point": {"row": 81, "column": 89}}, {"id": 253, "type": "identifier", "text": "length", "parent": 252, "children": [], "start_point": {"row": 81, "column": 80}, "end_point": {"row": 81, "column": 86}}, {"id": 254, "type": "argument_list", "text": "(x)", "parent": 252, "children": [255], "start_point": {"row": 81, "column": 86}, "end_point": {"row": 81, "column": 89}}, {"id": 255, "type": "identifier", "text": "x", "parent": 254, "children": [], "start_point": {"row": 81, "column": 87}, "end_point": {"row": 81, "column": 88}}, {"id": 256, "type": "*", "text": "*", "parent": 251, "children": [], "start_point": {"row": 81, "column": 90}, "end_point": {"row": 81, "column": 91}}, {"id": 257, "type": "identifier", "text": "y", "parent": 251, "children": [], "start_point": {"row": 81, "column": 92}, "end_point": {"row": 81, "column": 93}}, {"id": 258, "type": "function_definition", "text": "function float cotan(vector x,y){\r\n //return the cotan of the angle between x and y\r\n return dot(x,y) / length(cross(x,y));\r\n}", "parent": 0, "children": [259, 261], "start_point": {"row": 84, "column": 0}, "end_point": {"row": 87, "column": 1}}, {"id": 259, "type": "ERROR", "text": "float", "parent": 258, "children": [260], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 14}}, {"id": 260, "type": "identifier", "text": "float", "parent": 259, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 14}}, {"id": 261, "type": "function_declarator", "text": "cotan(vector x,y)", "parent": 258, "children": [262, 263], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 32}}, {"id": 262, "type": "identifier", "text": "cotan", "parent": 261, "children": [], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 20}}, {"id": 263, "type": "parameter_list", "text": "(vector x,y)", "parent": 261, "children": [264, 267], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 32}}, {"id": 264, "type": "parameter_declaration", "text": "vector x", "parent": 263, "children": [265, 266], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 29}}, {"id": 265, "type": "type_identifier", "text": "vector", "parent": 264, "children": [], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 27}}, {"id": 266, "type": "identifier", "text": "x", "parent": 264, "children": [], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 29}}, {"id": 267, "type": "parameter_declaration", "text": "y", "parent": 263, "children": [268], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 31}}, {"id": 268, "type": "type_identifier", "text": "y", "parent": 267, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 31}}, {"id": 269, "type": "return_statement", "text": "return dot(x,y) / length(cross(x,y));", "parent": 258, "children": [270], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 41}}, {"id": 270, "type": "binary_expression", "text": "dot(x,y) / length(cross(x,y))", "parent": 269, "children": [271, 276, 277], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 40}}, {"id": 271, "type": "call_expression", "text": "dot(x,y)", "parent": 270, "children": [272, 273], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 19}}, {"id": 272, "type": "identifier", "text": "dot", "parent": 271, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 14}}, {"id": 273, "type": "argument_list", "text": "(x,y)", "parent": 271, "children": [274, 275], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 19}}, {"id": 274, "type": "identifier", "text": "x", "parent": 273, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 16}}, {"id": 275, "type": "identifier", "text": "y", "parent": 273, "children": [], "start_point": {"row": 86, "column": 17}, "end_point": {"row": 86, "column": 18}}, {"id": 276, "type": "/", "text": "/", "parent": 270, "children": [], "start_point": {"row": 86, "column": 20}, "end_point": {"row": 86, "column": 21}}, {"id": 277, "type": "call_expression", "text": "length(cross(x,y))", "parent": 270, "children": [278, 279], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 40}}, {"id": 278, "type": "identifier", "text": "length", "parent": 277, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 28}}, {"id": 279, "type": "argument_list", "text": "(cross(x,y))", "parent": 277, "children": [280], "start_point": {"row": 86, "column": 28}, "end_point": {"row": 86, "column": 40}}, {"id": 280, "type": "call_expression", "text": "cross(x,y)", "parent": 279, "children": [281, 282], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 39}}, {"id": 281, "type": "identifier", "text": "cross", "parent": 280, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 34}}, {"id": 282, "type": "argument_list", "text": "(x,y)", "parent": 280, "children": [283, 284], "start_point": {"row": 86, "column": 34}, "end_point": {"row": 86, "column": 39}}, {"id": 283, "type": "identifier", "text": "x", "parent": 282, "children": [], "start_point": {"row": 86, "column": 35}, "end_point": {"row": 86, "column": 36}}, {"id": 284, "type": "identifier", "text": "y", "parent": 282, "children": [], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 38}}, {"id": 285, "type": "function_definition", "text": "function vector project(vector x,ydir){\r\n //compute x projected on direction y\r\n vector dir = normalize(ydir);\r\n return dot(x,dir) * dir;\r\n}", "parent": 0, "children": [286, 288], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 95, "column": 1}}, {"id": 286, "type": "ERROR", "text": "vector", "parent": 285, "children": [287], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 15}}, {"id": 287, "type": "identifier", "text": "vector", "parent": 286, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 15}}, {"id": 288, "type": "function_declarator", "text": "project(vector x,ydir)", "parent": 285, "children": [289, 290], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 38}}, {"id": 289, "type": "identifier", "text": "project", "parent": 288, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 23}}, {"id": 290, "type": "parameter_list", "text": "(vector x,ydir)", "parent": 288, "children": [291, 294], "start_point": {"row": 91, "column": 23}, "end_point": {"row": 91, "column": 38}}, {"id": 291, "type": "parameter_declaration", "text": "vector x", "parent": 290, "children": [292, 293], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 32}}, {"id": 292, "type": "type_identifier", "text": "vector", "parent": 291, "children": [], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 30}}, {"id": 293, "type": "identifier", "text": "x", "parent": 291, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 32}}, {"id": 294, "type": "parameter_declaration", "text": "ydir", "parent": 290, "children": [295], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 37}}, {"id": 295, "type": "type_identifier", "text": "ydir", "parent": 294, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 37}}, {"id": 296, "type": "declaration", "text": "vector dir = normalize(ydir);", "parent": 285, "children": [297, 298], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 33}}, {"id": 297, "type": "type_identifier", "text": "vector", "parent": 296, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 10}}, {"id": 298, "type": "init_declarator", "text": "dir = normalize(ydir)", "parent": 296, "children": [299, 300, 301], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 32}}, {"id": 299, "type": "identifier", "text": "dir", "parent": 298, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 14}}, {"id": 300, "type": "=", "text": "=", "parent": 298, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 16}}, {"id": 301, "type": "call_expression", "text": "normalize(ydir)", "parent": 298, "children": [302, 303], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 32}}, {"id": 302, "type": "identifier", "text": "normalize", "parent": 301, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 26}}, {"id": 303, "type": "argument_list", "text": "(ydir)", "parent": 301, "children": [304], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 32}}, {"id": 304, "type": "identifier", "text": "ydir", "parent": 303, "children": [], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 31}}, {"id": 305, "type": "return_statement", "text": "return dot(x,dir) * dir;", "parent": 285, "children": [306], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 28}}, {"id": 306, "type": "binary_expression", "text": "dot(x,dir) * dir", "parent": 305, "children": [307, 312, 313], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 27}}, {"id": 307, "type": "call_expression", "text": "dot(x,dir)", "parent": 306, "children": [308, 309], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 21}}, {"id": 308, "type": "identifier", "text": "dot", "parent": 307, "children": [], "start_point": {"row": 94, "column": 11}, "end_point": {"row": 94, "column": 14}}, {"id": 309, "type": "argument_list", "text": "(x,dir)", "parent": 307, "children": [310, 311], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 21}}, {"id": 310, "type": "identifier", "text": "x", "parent": 309, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 16}}, {"id": 311, "type": "identifier", "text": "dir", "parent": 309, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 20}}, {"id": 312, "type": "*", "text": "*", "parent": 306, "children": [], "start_point": {"row": 94, "column": 22}, "end_point": {"row": 94, "column": 23}}, {"id": 313, "type": "identifier", "text": "dir", "parent": 306, "children": [], "start_point": {"row": 94, "column": 24}, "end_point": {"row": 94, "column": 27}}, {"id": 314, "type": "function_definition", "text": "function vector reject(vector x , y){\r\n return x - project(x,y);\r\n}", "parent": 0, "children": [315, 317], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 99, "column": 1}}, {"id": 315, "type": "ERROR", "text": "vector", "parent": 314, "children": [316], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 15}}, {"id": 316, "type": "identifier", "text": "vector", "parent": 315, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 15}}, {"id": 317, "type": "function_declarator", "text": "reject(vector x , y)", "parent": 314, "children": [318, 319], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 36}}, {"id": 318, "type": "identifier", "text": "reject", "parent": 317, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 22}}, {"id": 319, "type": "parameter_list", "text": "(vector x , y)", "parent": 317, "children": [320, 323], "start_point": {"row": 97, "column": 22}, "end_point": {"row": 97, "column": 36}}, {"id": 320, "type": "parameter_declaration", "text": "vector x", "parent": 319, "children": [321, 322], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 31}}, {"id": 321, "type": "type_identifier", "text": "vector", "parent": 320, "children": [], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 29}}, {"id": 322, "type": "identifier", "text": "x", "parent": 320, "children": [], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 31}}, {"id": 323, "type": "parameter_declaration", "text": "y", "parent": 319, "children": [324], "start_point": {"row": 97, "column": 34}, "end_point": {"row": 97, "column": 35}}, {"id": 324, "type": "type_identifier", "text": "y", "parent": 323, "children": [], "start_point": {"row": 97, "column": 34}, "end_point": {"row": 97, "column": 35}}, {"id": 325, "type": "return_statement", "text": "return x - project(x,y);", "parent": 314, "children": [326], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 28}}, {"id": 326, "type": "binary_expression", "text": "x - project(x,y)", "parent": 325, "children": [327, 328, 329], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 27}}, {"id": 327, "type": "identifier", "text": "x", "parent": 326, "children": [], "start_point": {"row": 98, "column": 11}, "end_point": {"row": 98, "column": 12}}, {"id": 328, "type": "-", "text": "-", "parent": 326, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 14}}, {"id": 329, "type": "call_expression", "text": "project(x,y)", "parent": 326, "children": [330, 331], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 27}}, {"id": 330, "type": "identifier", "text": "project", "parent": 329, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 22}}, {"id": 331, "type": "argument_list", "text": "(x,y)", "parent": 329, "children": [332, 333], "start_point": {"row": 98, "column": 22}, "end_point": {"row": 98, "column": 27}}, {"id": 332, "type": "identifier", "text": "x", "parent": 331, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 24}}, {"id": 333, "type": "identifier", "text": "y", "parent": 331, "children": [], "start_point": {"row": 98, "column": 25}, "end_point": {"row": 98, "column": 26}}, {"id": 334, "type": "declaration", "text": "function vector change_basis(vector x ;", "parent": 0, "children": [335, 337], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 39}}, {"id": 335, "type": "ERROR", "text": "vector", "parent": 334, "children": [336], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 15}}, {"id": 336, "type": "identifier", "text": "vector", "parent": 335, "children": [], "start_point": {"row": 101, "column": 9}, "end_point": {"row": 101, "column": 15}}, {"id": 337, "type": "function_declarator", "text": "change_basis(vector x", "parent": 334, "children": [338, 339], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 37}}, {"id": 338, "type": "identifier", "text": "change_basis", "parent": 337, "children": [], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 28}}, {"id": 339, "type": "parameter_list", "text": "(vector x", "parent": 337, "children": [340], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 37}}, {"id": 340, "type": "parameter_declaration", "text": "vector x", "parent": 339, "children": [341, 342], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 37}}, {"id": 341, "type": "type_identifier", "text": "vector", "parent": 340, "children": [], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 35}}, {"id": 342, "type": "identifier", "text": "x", "parent": 340, "children": [], "start_point": {"row": 101, "column": 36}, "end_point": {"row": 101, "column": 37}}, {"id": 343, "type": "function_definition", "text": "matrix3 basis){\r\n /*\r\n we assume basis is an orthogonal matrix\r\n */\r\n return basis * x * transpose(basis);\r\n}", "parent": 0, "children": [344, 345], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 106, "column": 1}}, {"id": 344, "type": "type_identifier", "text": "matrix3", "parent": 343, "children": [], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 47}}, {"id": 345, "type": "identifier", "text": "basis", "parent": 343, "children": [], "start_point": {"row": 101, "column": 48}, "end_point": {"row": 101, "column": 53}}, {"id": 346, "type": "return_statement", "text": "return basis * x * transpose(basis);", "parent": 343, "children": [347], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 40}}, {"id": 347, "type": "binary_expression", "text": "basis * x * transpose(basis)", "parent": 346, "children": [348, 352, 353], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 39}}, {"id": 348, "type": "binary_expression", "text": "basis * x", "parent": 347, "children": [349, 350, 351], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 20}}, {"id": 349, "type": "identifier", "text": "basis", "parent": 348, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 16}}, {"id": 350, "type": "*", "text": "*", "parent": 348, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 18}}, {"id": 351, "type": "identifier", "text": "x", "parent": 348, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 20}}, {"id": 352, "type": "*", "text": "*", "parent": 347, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 22}}, {"id": 353, "type": "call_expression", "text": "transpose(basis)", "parent": 347, "children": [354, 355], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 39}}, {"id": 354, "type": "identifier", "text": "transpose", "parent": 353, "children": [], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 32}}, {"id": 355, "type": "argument_list", "text": "(basis)", "parent": 353, "children": [356], "start_point": {"row": 105, "column": 32}, "end_point": {"row": 105, "column": 39}}, {"id": 356, "type": "identifier", "text": "basis", "parent": 355, "children": [], "start_point": {"row": 105, "column": 33}, "end_point": {"row": 105, "column": 38}}, {"id": 357, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 6}}]}, "node_categories": {"declarations": {"functions": [6, 9, 51, 54, 134, 137, 167, 170, 200, 203, 258, 261, 285, 288, 314, 317, 337, 343], "variables": [13, 16, 19, 58, 61, 64, 66, 76, 91, 141, 144, 147, 174, 177, 180, 206, 209, 264, 267, 291, 294, 296, 320, 323, 334, 340], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [24, 30, 31, 32, 37, 38, 45, 71, 86, 101, 107, 108, 109, 118, 119, 123, 124, 128, 153, 159, 160, 161, 186, 192, 193, 194, 212, 215, 218, 219, 222, 223, 226, 231, 232, 239, 242, 243, 246, 251, 252, 270, 271, 277, 280, 301, 306, 307, 326, 329, 347, 348, 353], "assignments": [83, 98], "loops": [], "conditionals": [0, 1, 2, 5, 8, 10, 15, 18, 22, 25, 27, 28, 29, 33, 35, 39, 41, 42, 44, 46, 50, 53, 55, 60, 63, 65, 69, 72, 74, 75, 79, 81, 84, 87, 89, 90, 94, 96, 99, 102, 104, 105, 106, 110, 112, 113, 115, 117, 120, 122, 125, 127, 129, 136, 138, 143, 146, 151, 154, 156, 157, 162, 164, 169, 171, 176, 179, 184, 187, 189, 190, 195, 197, 202, 204, 207, 208, 210, 216, 220, 224, 227, 229, 233, 235, 237, 240, 244, 247, 249, 253, 255, 257, 260, 262, 265, 266, 268, 272, 274, 275, 278, 281, 283, 284, 287, 289, 292, 293, 295, 297, 299, 302, 304, 308, 310, 311, 313, 316, 318, 321, 322, 324, 327, 330, 332, 333, 336, 338, 341, 342, 344, 345, 349, 351, 354, 356, 357], "returns": [49, 116, 132, 158, 191, 211, 269, 305, 325, 346], "exceptions": []}, "expressions": {"calls": [], "literals": [48, 131, 133, 166, 199, 213], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "hedge_opposite", "text_snippet": "function int hedge_opposite(int geo ; int hedge){\r\n //check if the triangulation is manifold (ie "}, {"node_id": 9, "universal_type": "function", "name": "hedge)", "text_snippet": "hedge_opposite(int geo ; int hedge)"}, {"node_id": 51, "universal_type": "function", "name": "common_hedge", "text_snippet": "function int common_hedge(int geo ; int face0 , face1){\r\n //Return the hedge of face0 that, once "}, {"node_id": 54, "universal_type": "function", "name": "face0", "text_snippet": "common_hedge(int geo ; int face0 , face1)"}, {"node_id": 134, "universal_type": "function", "name": "is_triangle", "text_snippet": "function int is_triangle(int geo ; int faceid){\r\n int pts[] = primpoints(geo,faceid);\r\n return"}, {"node_id": 137, "universal_type": "function", "name": "faceid)", "text_snippet": "is_triangle(int geo ; int faceid)"}, {"node_id": 167, "universal_type": "function", "name": "is_quad", "text_snippet": "function int is_quad(int geo ; int faceid){\r\n int pts[] = primpoints(geo,faceid);\r\n return (le"}, {"node_id": 170, "universal_type": "function", "name": "faceid)", "text_snippet": "is_quad(int geo ; int faceid)"}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "function float compute_angle(vector x,y){\r\n //Compute the angle in radians between x and y\r\n r"}, {"node_id": 203, "universal_type": "function", "name": "unknown", "text_snippet": "compute_angle(vector x,y)"}, {"node_id": 258, "universal_type": "function", "name": "unknown", "text_snippet": "function float cotan(vector x,y){\r\n //return the cotan of the angle between x and y\r\n return d"}, {"node_id": 261, "universal_type": "function", "name": "unknown", "text_snippet": "cotan(vector x,y)"}, {"node_id": 285, "universal_type": "function", "name": "unknown", "text_snippet": "function vector project(vector x,ydir){\r\n //compute x projected on direction y\r\n vector dir = "}, {"node_id": 288, "universal_type": "function", "name": "unknown", "text_snippet": "project(vector x,ydir)"}, {"node_id": 314, "universal_type": "function", "name": "unknown", "text_snippet": "function vector reject(vector x , y){\r\n return x - project(x,y);\r\n}"}, {"node_id": 317, "universal_type": "function", "name": "unknown", "text_snippet": "reject(vector x , y)"}, {"node_id": 337, "universal_type": "function", "name": "unknown", "text_snippet": "change_basis(vector x"}, {"node_id": 343, "universal_type": "function", "name": "unknown", "text_snippet": "matrix3 basis){\r\n /*\r\n we assume basis is an orthogonal matrix\r\n */\r\n return basis * x *"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef __geometryhelpers_h__\r\n#define __geometryhelpers_h__\r\n\r\n// Collection of useful geometry helper functions\r\n\r\n//HEDGES\r\n\r\n// hedge_opposite(int geo ; int hedge)\r\n// - INPUT: geo, handle to a geometry ; hedge a headge of that geometry\r\n// - OUTPUT: the index of the flipped hedge (add a warning in case the geometry is not manifold)\r\n\r\n// common_hedge ( int geo ; int face0 , face1)\r\n// - INPUT: geo, handle to a geometry ; face0 and face1 the index of 2 faces\r\n// - OUTPUT: the hedge of face0 s.t hedge flipped belongs to face1. Return -1 if the faces do not share an edge\r\n\r\n// ANGLES\r\n\r\n// compute_angle(vector x , y)\r\n// - INPUT: vector x and y\r\n// - OUTPUT: angle (in radians) between x and y\r\n\r\n//ALGEBRA\r\n\r\n//project(vector x , y)\r\n// - INPUT: vector x and y\r\n// - OUTPUT: x projected on the direction defined by y\r\n\r\n\r\n\r\n//BEGIN CODE\r\n\r\n//HEDGES\r\n\r\nfunction int hedge_opposite(int geo ; int hedge){\r\n //check if the triangulation is manifold (ie hedge has valence exactly 2)\r\n //and return the opposite hedge\r\n int hedge_opposite = hedge_nextequiv(geo,hedge);\r\n if(hedge_opposite==hedge || hedge_nextequiv(geo,hedge_opposite)!=hedge){\r\n warning(\"Non manifold mesh\");\r\n }\r\n return hedge_opposite;\r\n}\r\n\r\nfunction int common_hedge(int geo ; int face0 , face1){\r\n //Return the hedge of face0 that, once flipped is an hedge of face1\r\n //Return -1 if the faces do not share an edge\r\n int initial_hedge = primhedge(geo,face0);\r\n int c_hedge = initial_hedge;\r\n\r\n do{\r\n c_hedge = hedge_next(geo,c_hedge); // next hedge\r\n int eq_hedge = c_hedge; //iterate on the equivalent hedges\r\n do{\r\n eq_hedge = hedge_nextequiv(geo,eq_hedge);\r\n if(hedge_prim(geo,eq_hedge)==face1){\r\n return c_hedge; //if the opposite hedge belongs to face1 then c_hedge is the hedge we were looking for\r\n }\r\n }while(c_hedge!=eq_hedge);\r\n\r\n }while(initial_hedge!=c_hedge); //stop when we circled\r\n\r\n //if we reach this part of the code it means the faces do not share an edge\r\n warning(\"Faces do not share an edge\");\r\n return -1;\r\n}\r\n\r\nfunction int is_triangle(int geo ; int faceid){\r\n int pts[] = primpoints(geo,faceid);\r\n return (len(pts)==3) ;\r\n}\r\n\r\nfunction int is_quad(int geo ; int faceid){\r\n int pts[] = primpoints(geo,faceid);\r\n return (len(pts)==4);\r\n}\r\n\r\n\r\n//ANGLES\r\n\r\nfunction float compute_angle(vector x,y){\r\n //Compute the angle in radians between x and y\r\n return 2. * atan(length(x*length(y) - length(x)*y) / length(x * length(y) + length(x) * y));\r\n}\r\n\r\nfunction float cotan(vector x,y){\r\n //return the cotan of the angle between x and y\r\n return dot(x,y) / length(cross(x,y));\r\n}\r\n\r\n//ALGEBRA\r\n\r\nfunction vector project(vector x,ydir){\r\n //compute x projected on direction y\r\n vector dir = normalize(ydir);\r\n return dot(x,dir) * dir;\r\n}\r\n\r\nfunction vector reject(vector x , y){\r\n return x - project(x,y);\r\n}\r\n\r\nfunction vector change_basis(vector x ; matrix3 basis){\r\n /*\r\n we assume basis is an orthogonal matrix\r\n */\r\n return basis * x * transpose(basis);\r\n}\r\n\r\n\r\n#endif\r\n"}
80,312
c
/*********************************************************************** * * Copyright (c) Berkeley Softworks 1988 -- All Rights Reserved * * PROJECT: PCGEOS * MODULE: Tool Utilities * FILE: FileUtil.h * * AUTHOR: <NAME>, Sep 26, 1996 * * ROUTINES: * Name Description * ---- ----------- * FileUtil_Open Opens the file * FileUtil_Read Reads from the file * FileUtil_Write Writes to the file * FileUtil_Seek Positions within file * FileUtil_Close Closes the file * * REVISION HISTORY: * Date Name Description * ---- ---- ----------- * dbaumann 9/26/96 Initial version * * DESCRIPTION: * Cross platform interface to files. * * * $Id: fileUtil.h,v 1.3 97/05/27 16:18:48 dbaumann Exp $ * ***********************************************************************/ #ifndef _FILEUTIL_H_ #define _FILEUTIL_H_ #include <time.h> #include <stdio.h> #if defined(unix) || defined(_LINUX) typedef FILE * FileType; #elif defined(_MSDOS) typedef int FileType; #elif defined(_WIN32) /* * FileType is a HANDLE in WIN32, but since this is done in * windows.h and we want to avoid including that, it is typedeffed * to HANDLE's type */ typedef unsigned int FileType; #endif int FileUtil_Open(FileType *file, const char *path, int oflags, int sflags, int mode); int FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead); int FileUtil_Write(FileType file, const unsigned char *buf, long len, long *nWrit); int FileUtil_Seek(FileType file, long dist, int mode); int FileUtil_Close(FileType file); int FileUtil_Getc(FileType file); long FileUtil_Ftell(FileType file); time_t FileUtil_GetTime(FileType file); int FileUtil_GetError(void); void FileUtil_SprintError(char *result, char *fmt, ...); #if defined(_WIN32) #define TF_ERROR 0 #define TF_FAT 1 #define TF_NONFAT 2 int FileUtil_TestFat(const char *path); #endif #if !defined(FALSE) # define FALSE 0 #endif #if !defined(TRUE) # define TRUE 1 #endif #endif /* _FILEUTIL_H_ */
25.93
80
(translation_unit) "/*********************************************************************** \n * \n * Copyright (c) Berkeley Softworks 1988 -- All Rights Reserved \n * \n * PROJECT: PCGEOS \n * MODULE: Tool Utilities \n * FILE: FileUtil.h \n * \n * AUTHOR: <NAME>, Sep 26, 1996 \n * \n * ROUTINES: \n * Name Description \n * ---- ----------- \n * FileUtil_Open Opens the file \n * FileUtil_Read Reads from the file \n * FileUtil_Write Writes to the file \n * FileUtil_Seek Positions within file \n * FileUtil_Close Closes the file \n * \n * REVISION HISTORY: \n * Date Name Description \n * ---- ---- ----------- \n * dbaumann 9/26/96 Initial version \n * \n * DESCRIPTION: \n * Cross platform interface to files. \n * \n * \n * $Id: fileUtil.h,v 1.3 97/05/27 16:18:48 dbaumann Exp $ \n * \n ***********************************************************************/ \n#ifndef _FILEUTIL_H_ \n#define _FILEUTIL_H_ \n \n#include <time.h> \n#include <stdio.h> \n \n#if defined(unix) || defined(_LINUX) \ntypedef FILE * FileType; \n#elif defined(_MSDOS) \ntypedef int FileType; \n#elif defined(_WIN32) \n/* \n * FileType is a HANDLE in WIN32, but since this is done in \n * windows.h and we want to avoid including that, it is typedeffed \n * to HANDLE's type \n */ \ntypedef unsigned int FileType; \n#endif \n \nint FileUtil_Open(FileType *file, const char *path, int oflags, \n int sflags, int mode); \nint FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead); \nint FileUtil_Write(FileType file, const unsigned char *buf, long len, \n long *nWrit); \nint FileUtil_Seek(FileType file, long dist, int mode); \nint FileUtil_Close(FileType file); \n \nint FileUtil_Getc(FileType file); \nlong FileUtil_Ftell(FileType file); \ntime_t FileUtil_GetTime(FileType file); \n \nint FileUtil_GetError(void); \nvoid FileUtil_SprintError(char *result, char *fmt, ...); \n \n#if defined(_WIN32) \n#define TF_ERROR 0 \n#define TF_FAT 1 \n#define TF_NONFAT 2 \nint FileUtil_TestFat(const char *path); \n#endif \n \n#if !defined(FALSE) \n# define FALSE 0 \n#endif \n#if !defined(TRUE) \n# define TRUE 1 \n#endif \n \n#endif /* _FILEUTIL_H_ */ \n" (comment) "/*********************************************************************** \n * \n * Copyright (c) Berkeley Softworks 1988 -- All Rights Reserved \n * \n * PROJECT: PCGEOS \n * MODULE: Tool Utilities \n * FILE: FileUtil.h \n * \n * AUTHOR: <NAME>, Sep 26, 1996 \n * \n * ROUTINES: \n * Name Description \n * ---- ----------- \n * FileUtil_Open Opens the file \n * FileUtil_Read Reads from the file \n * FileUtil_Write Writes to the file \n * FileUtil_Seek Positions within file \n * FileUtil_Close Closes the file \n * \n * REVISION HISTORY: \n * Date Name Description \n * ---- ---- ----------- \n * dbaumann 9/26/96 Initial version \n * \n * DESCRIPTION: \n * Cross platform interface to files. \n * \n * \n * $Id: fileUtil.h,v 1.3 97/05/27 16:18:48 dbaumann Exp $ \n * \n ***********************************************************************/" (preproc_ifdef) "#ifndef _FILEUTIL_H_ \n#define _FILEUTIL_H_ \n \n#include <time.h> \n#include <stdio.h> \n \n#if defined(unix) || defined(_LINUX) \ntypedef FILE * FileType; \n#elif defined(_MSDOS) \ntypedef int FileType; \n#elif defined(_WIN32) \n/* \n * FileType is a HANDLE in WIN32, but since this is done in \n * windows.h and we want to avoid including that, it is typedeffed \n * to HANDLE's type \n */ \ntypedef unsigned int FileType; \n#endif \n \nint FileUtil_Open(FileType *file, const char *path, int oflags, \n int sflags, int mode); \nint FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead); \nint FileUtil_Write(FileType file, const unsigned char *buf, long len, \n long *nWrit); \nint FileUtil_Seek(FileType file, long dist, int mode); \nint FileUtil_Close(FileType file); \n \nint FileUtil_Getc(FileType file); \nlong FileUtil_Ftell(FileType file); \ntime_t FileUtil_GetTime(FileType file); \n \nint FileUtil_GetError(void); \nvoid FileUtil_SprintError(char *result, char *fmt, ...); \n \n#if defined(_WIN32) \n#define TF_ERROR 0 \n#define TF_FAT 1 \n#define TF_NONFAT 2 \nint FileUtil_TestFat(const char *path); \n#endif \n \n#if !defined(FALSE) \n# define FALSE 0 \n#endif \n#if !defined(TRUE) \n# define TRUE 1 \n#endif \n \n#endif" (#ifndef) "#ifndef" (identifier) "_FILEUTIL_H_" (preproc_def) "#define _FILEUTIL_H_ \n" (#define) "#define" (identifier) "_FILEUTIL_H_" (preproc_include) "#include <time.h> \n" (#include) "#include" (system_lib_string) "<time.h>" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_if) "#if defined(unix) || defined(_LINUX) \ntypedef FILE * FileType; \n#elif defined(_MSDOS) \ntypedef int FileType; \n#elif defined(_WIN32) \n/* \n * FileType is a HANDLE in WIN32, but since this is done in \n * windows.h and we want to avoid including that, it is typedeffed \n * to HANDLE's type \n */ \ntypedef unsigned int FileType; \n#endif" (#if) "#if" (binary_expression) "defined(unix) || defined(_LINUX)" (preproc_defined) "defined(unix)" (defined) "defined" (() "(" (identifier) "unix" ()) ")" (||) "||" (preproc_defined) "defined(_LINUX)" (defined) "defined" (() "(" (identifier) "_LINUX" ()) ")" ( ) "\n" (type_definition) "typedef FILE * FileType;" (typedef) "typedef" (type_identifier) "FILE" (pointer_declarator) "* FileType" (*) "*" (type_identifier) "FileType" (;) ";" (preproc_elif) "#elif defined(_MSDOS) \ntypedef int FileType; \n#elif defined(_WIN32) \n/* \n * FileType is a HANDLE in WIN32, but since this is done in \n * windows.h and we want to avoid including that, it is typedeffed \n * to HANDLE's type \n */ \ntypedef unsigned int FileType;" (#elif) "#elif" (preproc_defined) "defined(_MSDOS)" (defined) "defined" (() "(" (identifier) "_MSDOS" ()) ")" ( ) "\n" (type_definition) "typedef int FileType;" (typedef) "typedef" (primitive_type) "int" (type_identifier) "FileType" (;) ";" (preproc_elif) "#elif defined(_WIN32) \n/* \n * FileType is a HANDLE in WIN32, but since this is done in \n * windows.h and we want to avoid including that, it is typedeffed \n * to HANDLE's type \n */ \ntypedef unsigned int FileType;" (#elif) "#elif" (preproc_defined) "defined(_WIN32)" (defined) "defined" (() "(" (identifier) "_WIN32" ()) ")" ( ) "\n" (comment) "/* \n * FileType is a HANDLE in WIN32, but since this is done in \n * windows.h and we want to avoid including that, it is typedeffed \n * to HANDLE's type \n */" (type_definition) "typedef unsigned int FileType;" (typedef) "typedef" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (type_identifier) "FileType" (;) ";" (#endif) "#endif" (declaration) "int FileUtil_Open(FileType *file, const char *path, int oflags, \n int sflags, int mode);" (primitive_type) "int" (function_declarator) "FileUtil_Open(FileType *file, const char *path, int oflags, \n int sflags, int mode)" (identifier) "FileUtil_Open" (parameter_list) "(FileType *file, const char *path, int oflags, \n int sflags, int mode)" (() "(" (parameter_declaration) "FileType *file" (type_identifier) "FileType" (pointer_declarator) "*file" (*) "*" (identifier) "file" (,) "," (parameter_declaration) "const char *path" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*path" (*) "*" (identifier) "path" (,) "," (parameter_declaration) "int oflags" (primitive_type) "int" (identifier) "oflags" (,) "," (parameter_declaration) "int sflags" (primitive_type) "int" (identifier) "sflags" (,) "," (parameter_declaration) "int mode" (primitive_type) "int" (identifier) "mode" ()) ")" (;) ";" (declaration) "int FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead);" (primitive_type) "int" (function_declarator) "FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead)" (identifier) "FileUtil_Read" (parameter_list) "(FileType file, unsigned char *buf, long len, long *nRead)" (() "(" (parameter_declaration) "FileType file" (type_identifier) "FileType" (identifier) "file" (,) "," (parameter_declaration) "unsigned char *buf" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "long len" (sized_type_specifier) "long" (long) "long" (identifier) "len" (,) "," (parameter_declaration) "long *nRead" (sized_type_specifier) "long" (long) "long" (pointer_declarator) "*nRead" (*) "*" (identifier) "nRead" ()) ")" (;) ";" (declaration) "int FileUtil_Write(FileType file, const unsigned char *buf, long len, \n long *nWrit);" (primitive_type) "int" (function_declarator) "FileUtil_Write(FileType file, const unsigned char *buf, long len, \n long *nWrit)" (identifier) "FileUtil_Write" (parameter_list) "(FileType file, const unsigned char *buf, long len, \n long *nWrit)" (() "(" (parameter_declaration) "FileType file" (type_identifier) "FileType" (identifier) "file" (,) "," (parameter_declaration) "const unsigned char *buf" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "long len" (sized_type_specifier) "long" (long) "long" (identifier) "len" (,) "," (parameter_declaration) "long *nWrit" (sized_type_specifier) "long" (long) "long" (pointer_declarator) "*nWrit" (*) "*" (identifier) "nWrit" ()) ")" (;) ";" (declaration) "int FileUtil_Seek(FileType file, long dist, int mode);" (primitive_type) "int" (function_declarator) "FileUtil_Seek(FileType file, long dist, int mode)" (identifier) "FileUtil_Seek" (parameter_list) "(FileType file, long dist, int mode)" (() "(" (parameter_declaration) "FileType file" (type_identifier) "FileType" (identifier) "file" (,) "," (parameter_declaration) "long dist" (sized_type_specifier) "long" (long) "long" (identifier) "dist" (,) "," (parameter_declaration) "int mode" (primitive_type) "int" (identifier) "mode" ()) ")" (;) ";" (declaration) "int FileUtil_Close(FileType file);" (primitive_type) "int" (function_declarator) "FileUtil_Close(FileType file)" (identifier) "FileUtil_Close" (parameter_list) "(FileType file)" (() "(" (parameter_declaration) "FileType file" (type_identifier) "FileType" (identifier) "file" ()) ")" (;) ";" (declaration) "int FileUtil_Getc(FileType file);" (primitive_type) "int" (function_declarator) "FileUtil_Getc(FileType file)" (identifier) "FileUtil_Getc" (parameter_list) "(FileType file)" (() "(" (parameter_declaration) "FileType file" (type_identifier) "FileType" (identifier) "file" ()) ")" (;) ";" (declaration) "long FileUtil_Ftell(FileType file);" (sized_type_specifier) "long" (long) "long" (function_declarator) "FileUtil_Ftell(FileType file)" (identifier) "FileUtil_Ftell" (parameter_list) "(FileType file)" (() "(" (parameter_declaration) "FileType file" (type_identifier) "FileType" (identifier) "file" ()) ")" (;) ";" (declaration) "time_t FileUtil_GetTime(FileType file);" (type_identifier) "time_t" (function_declarator) "FileUtil_GetTime(FileType file)" (identifier) "FileUtil_GetTime" (parameter_list) "(FileType file)" (() "(" (parameter_declaration) "FileType file" (type_identifier) "FileType" (identifier) "file" ()) ")" (;) ";" (declaration) "int FileUtil_GetError(void);" (primitive_type) "int" (function_declarator) "FileUtil_GetError(void)" (identifier) "FileUtil_GetError" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void FileUtil_SprintError(char *result, char *fmt, ...);" (primitive_type) "void" (function_declarator) "FileUtil_SprintError(char *result, char *fmt, ...)" (identifier) "FileUtil_SprintError" (parameter_list) "(char *result, char *fmt, ...)" (() "(" (parameter_declaration) "char *result" (primitive_type) "char" (pointer_declarator) "*result" (*) "*" (identifier) "result" (,) "," (parameter_declaration) "char *fmt" (primitive_type) "char" (pointer_declarator) "*fmt" (*) "*" (identifier) "fmt" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (;) ";" (preproc_if) "#if defined(_WIN32) \n#define TF_ERROR 0 \n#define TF_FAT 1 \n#define TF_NONFAT 2 \nint FileUtil_TestFat(const char *path); \n#endif" (#if) "#if" (preproc_defined) "defined(_WIN32)" (defined) "defined" (() "(" (identifier) "_WIN32" ()) ")" ( ) "\n" (preproc_def) "#define TF_ERROR 0 \n" (#define) "#define" (identifier) "TF_ERROR" (preproc_arg) "0 " (preproc_def) "#define TF_FAT 1 \n" (#define) "#define" (identifier) "TF_FAT" (preproc_arg) "1 " (preproc_def) "#define TF_NONFAT 2 \n" (#define) "#define" (identifier) "TF_NONFAT" (preproc_arg) "2 " (declaration) "int FileUtil_TestFat(const char *path);" (primitive_type) "int" (function_declarator) "FileUtil_TestFat(const char *path)" (identifier) "FileUtil_TestFat" (parameter_list) "(const char *path)" (() "(" (parameter_declaration) "const char *path" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*path" (*) "*" (identifier) "path" ()) ")" (;) ";" (#endif) "#endif" (preproc_if) "#if !defined(FALSE) \n# define FALSE 0 \n#endif" (#if) "#if" (unary_expression) "!defined(FALSE)" (!) "!" (preproc_defined) "defined(FALSE)" (defined) "defined" (() "(" (identifier) "FALSE" ()) ")" ( ) "\n" (preproc_def) "# define FALSE 0 \n" (#define) "# define" (identifier) "FALSE" (preproc_arg) "0 " (#endif) "#endif" (preproc_if) "#if !defined(TRUE) \n# define TRUE 1 \n#endif" (#if) "#if" (unary_expression) "!defined(TRUE)" (!) "!" (preproc_defined) "defined(TRUE)" (defined) "defined" (() "(" (identifier) "TRUE" ()) ")" ( ) "\n" (preproc_def) "# define TRUE 1 \n" (#define) "# define" (identifier) "TRUE" (preproc_arg) "1 " (#endif) "#endif" (#endif) "#endif" (comment) "/* _FILEUTIL_H_ */"
328
0
{"language": "c", "success": true, "metadata": {"lines": 80, "avg_line_length": 25.93, "nodes": 252, "errors": 0, "source_hash": "8747684f92fed1727d009ebec62281968908a1bd21ffde3373cbd12948fb9c69", "categorized_nodes": 147}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _FILEUTIL_H_\r\n#define _FILEUTIL_H_\r\n\r\n#include <time.h>\r\n#include <stdio.h>\r\n\r\n#if defined(unix) || defined(_LINUX)\r\ntypedef FILE *\t\tFileType;\r\n#elif defined(_MSDOS)\r\ntypedef int\t\tFileType;\r\n#elif defined(_WIN32)\r\n/*\r\n * FileType is a HANDLE in WIN32, but since this is done in\r\n * windows.h and we want to avoid including that, it is typedeffed\r\n * to HANDLE's type\r\n */\r\ntypedef unsigned int\tFileType;\r\n#endif\r\n\r\nint FileUtil_Open(FileType *file, const char *path, int oflags,\r\n\t\t int sflags, int mode);\r\nint FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead);\r\nint FileUtil_Write(FileType file, const unsigned char *buf, long len,\r\n\t\t long *nWrit);\r\nint FileUtil_Seek(FileType file, long dist, int mode);\r\nint FileUtil_Close(FileType file);\r\n\r\nint FileUtil_Getc(FileType file);\r\nlong FileUtil_Ftell(FileType file);\r\ntime_t FileUtil_GetTime(FileType file);\r\n\r\nint FileUtil_GetError(void);\r\nvoid FileUtil_SprintError(char *result, char *fmt, ...);\r\n\r\n#if defined(_WIN32)\r\n#define TF_ERROR \t0\r\n#define TF_FAT \t\t1\r\n#define TF_NONFAT \t2\r\nint FileUtil_TestFat(const char *path);\r\n#endif\r\n\r\n#if !defined(FALSE)\r\n# define FALSE 0\r\n#endif\r\n#if !defined(TRUE)\r\n# define TRUE 1\r\n#endif\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 52, 76, 101, 126, 141, 149, 157, 166, 174, 181, 196, 225, 238, 251], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 79, "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": "_FILEUTIL_H_", "parent": 0, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 20}}, {"id": 3, "type": "preproc_def", "text": "#define _FILEUTIL_H_\r\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": "_FILEUTIL_H_", "parent": 3, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include <time.h>\r\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": "<time.h>", "parent": 6, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <stdio.h>\r\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": "<stdio.h>", "parent": 9, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 18}}, {"id": 12, "type": "preproc_if", "text": "#if defined(unix) || defined(_LINUX)\r\ntypedef FILE *\t\tFileType;\r\n#elif defined(_MSDOS)\r\ntypedef int\t\tFileType;\r\n#elif defined(_WIN32)\r\n/*\r\n * FileType is a HANDLE in WIN32, but since this is done in\r\n * windows.h and we want to avoid including that, it is typedeffed\r\n * to HANDLE's type\r\n */\r\ntypedef unsigned int\tFileType;\r\n#endif", "parent": 0, "children": [13, 14, 22, 23, 29, 51], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 13, "type": "#if", "text": "#if", "parent": 12, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 3}}, {"id": 14, "type": "binary_expression", "text": "defined(unix) || defined(_LINUX)", "parent": 12, "children": [15, 18, 19], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 36}}, {"id": 15, "type": "preproc_defined", "text": "defined(unix)", "parent": 14, "children": [16, 17], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 17}}, {"id": 16, "type": "defined", "text": "defined", "parent": 15, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 11}}, {"id": 17, "type": "identifier", "text": "unix", "parent": 15, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 18, "type": "||", "text": "||", "parent": 14, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 20}}, {"id": 19, "type": "preproc_defined", "text": "defined(_LINUX)", "parent": 14, "children": [20, 21], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 36}}, {"id": 20, "type": "defined", "text": "defined", "parent": 19, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 28}}, {"id": 21, "type": "identifier", "text": "_LINUX", "parent": 19, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 35}}, {"id": 22, "type": "\n", "text": "\n", "parent": 12, "children": [], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 38, "column": 0}}, {"id": 23, "type": "type_definition", "text": "typedef FILE *\t\tFileType;", "parent": 12, "children": [24, 25, 26], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 25}}, {"id": 24, "type": "typedef", "text": "typedef", "parent": 23, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 25, "type": "type_identifier", "text": "FILE", "parent": 23, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 12}}, {"id": 26, "type": "pointer_declarator", "text": "*\t\tFileType", "parent": 23, "children": [27, 28], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 24}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 14}}, {"id": 28, "type": "type_identifier", "text": "FileType", "parent": 26, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 24}}, {"id": 29, "type": "preproc_elif", "text": "#elif defined(_MSDOS)\r\ntypedef int\t\tFileType;\r\n#elif defined(_WIN32)\r\n/*\r\n * FileType is a HANDLE in WIN32, but since this is done in\r\n * windows.h and we want to avoid including that, it is typedeffed\r\n * to HANDLE's type\r\n */\r\ntypedef unsigned int\tFileType;", "parent": 12, "children": [30, 31, 34, 35, 39], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 47, "column": 30}}, {"id": 30, "type": "#elif", "text": "#elif", "parent": 29, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 5}}, {"id": 31, "type": "preproc_defined", "text": "defined(_MSDOS)", "parent": 29, "children": [32, 33], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 21}}, {"id": 32, "type": "defined", "text": "defined", "parent": 31, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 13}}, {"id": 33, "type": "identifier", "text": "_MSDOS", "parent": 31, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 20}}, {"id": 34, "type": "\n", "text": "\n", "parent": 29, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 40, "column": 0}}, {"id": 35, "type": "type_definition", "text": "typedef int\t\tFileType;", "parent": 29, "children": [36, 37, 38], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 22}}, {"id": 36, "type": "typedef", "text": "typedef", "parent": 35, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 37, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 11}}, {"id": 38, "type": "type_identifier", "text": "FileType", "parent": 35, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 21}}, {"id": 39, "type": "preproc_elif", "text": "#elif defined(_WIN32)\r\n/*\r\n * FileType is a HANDLE in WIN32, but since this is done in\r\n * windows.h and we want to avoid including that, it is typedeffed\r\n * to HANDLE's type\r\n */\r\ntypedef unsigned int\tFileType;", "parent": 29, "children": [40, 41, 44, 45], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 47, "column": 30}}, {"id": 40, "type": "#elif", "text": "#elif", "parent": 39, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 5}}, {"id": 41, "type": "preproc_defined", "text": "defined(_WIN32)", "parent": 39, "children": [42, 43], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 21}}, {"id": 42, "type": "defined", "text": "defined", "parent": 41, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 13}}, {"id": 43, "type": "identifier", "text": "_WIN32", "parent": 41, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 20}}, {"id": 44, "type": "\n", "text": "\n", "parent": 39, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 42, "column": 0}}, {"id": 45, "type": "type_definition", "text": "typedef unsigned int\tFileType;", "parent": 39, "children": [46, 47, 50], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 30}}, {"id": 46, "type": "typedef", "text": "typedef", "parent": 45, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 47, "type": "sized_type_specifier", "text": "unsigned int", "parent": 45, "children": [48, 49], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 20}}, {"id": 48, "type": "unsigned", "text": "unsigned", "parent": 47, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 16}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 47, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 20}}, {"id": 50, "type": "type_identifier", "text": "FileType", "parent": 45, "children": [], "start_point": {"row": 47, "column": 21}, "end_point": {"row": 47, "column": 29}}, {"id": 51, "type": "#endif", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 52, "type": "declaration", "text": "int FileUtil_Open(FileType *file, const char *path, int oflags,\r\n\t\t int sflags, int mode);", "parent": 0, "children": [53, 54], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 26}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 3}}, {"id": 54, "type": "function_declarator", "text": "FileUtil_Open(FileType *file, const char *path, int oflags,\r\n\t\t int sflags, int mode)", "parent": 52, "children": [55, 56], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 51, "column": 25}}, {"id": 55, "type": "identifier", "text": "FileUtil_Open", "parent": 54, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 17}}, {"id": 56, "type": "parameter_list", "text": "(FileType *file, const char *path, int oflags,\r\n\t\t int sflags, int mode)", "parent": 54, "children": [57, 62, 67, 70, 73], "start_point": {"row": 50, "column": 17}, "end_point": {"row": 51, "column": 25}}, {"id": 57, "type": "parameter_declaration", "text": "FileType *file", "parent": 56, "children": [58, 59], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 32}}, {"id": 58, "type": "type_identifier", "text": "FileType", "parent": 57, "children": [], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 26}}, {"id": 59, "type": "pointer_declarator", "text": "*file", "parent": 57, "children": [60, 61], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 32}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 28}}, {"id": 61, "type": "identifier", "text": "file", "parent": 59, "children": [], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 32}}, {"id": 62, "type": "parameter_declaration", "text": "const char *path", "parent": 56, "children": [63, 64], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 50}}, {"id": 63, "type": "primitive_type", "text": "char", "parent": 62, "children": [], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 44}}, {"id": 64, "type": "pointer_declarator", "text": "*path", "parent": 62, "children": [65, 66], "start_point": {"row": 50, "column": 45}, "end_point": {"row": 50, "column": 50}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 50, "column": 45}, "end_point": {"row": 50, "column": 46}}, {"id": 66, "type": "identifier", "text": "path", "parent": 64, "children": [], "start_point": {"row": 50, "column": 46}, "end_point": {"row": 50, "column": 50}}, {"id": 67, "type": "parameter_declaration", "text": "int oflags", "parent": 56, "children": [68, 69], "start_point": {"row": 50, "column": 52}, "end_point": {"row": 50, "column": 62}}, {"id": 68, "type": "primitive_type", "text": "int", "parent": 67, "children": [], "start_point": {"row": 50, "column": 52}, "end_point": {"row": 50, "column": 55}}, {"id": 69, "type": "identifier", "text": "oflags", "parent": 67, "children": [], "start_point": {"row": 50, "column": 56}, "end_point": {"row": 50, "column": 62}}, {"id": 70, "type": "parameter_declaration", "text": "int sflags", "parent": 56, "children": [71, 72], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 14}}, {"id": 71, "type": "primitive_type", "text": "int", "parent": 70, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 7}}, {"id": 72, "type": "identifier", "text": "sflags", "parent": 70, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 14}}, {"id": 73, "type": "parameter_declaration", "text": "int mode", "parent": 56, "children": [74, 75], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 24}}, {"id": 74, "type": "primitive_type", "text": "int", "parent": 73, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 19}}, {"id": 75, "type": "identifier", "text": "mode", "parent": 73, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 24}}, {"id": 76, "type": "declaration", "text": "int FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead);", "parent": 0, "children": [77, 78], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 76}}, {"id": 77, "type": "primitive_type", "text": "int", "parent": 76, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 3}}, {"id": 78, "type": "function_declarator", "text": "FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead)", "parent": 76, "children": [79, 80], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 75}}, {"id": 79, "type": "identifier", "text": "FileUtil_Read", "parent": 78, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 17}}, {"id": 80, "type": "parameter_list", "text": "(FileType file, unsigned char *buf, long len, long *nRead)", "parent": 78, "children": [81, 84, 91, 95], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 75}}, {"id": 81, "type": "parameter_declaration", "text": "FileType file", "parent": 80, "children": [82, 83], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 31}}, {"id": 82, "type": "type_identifier", "text": "FileType", "parent": 81, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 26}}, {"id": 83, "type": "identifier", "text": "file", "parent": 81, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 31}}, {"id": 84, "type": "parameter_declaration", "text": "unsigned char *buf", "parent": 80, "children": [85, 88], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 51}}, {"id": 85, "type": "sized_type_specifier", "text": "unsigned char", "parent": 84, "children": [86, 87], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 46}}, {"id": 86, "type": "unsigned", "text": "unsigned", "parent": 85, "children": [], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 41}}, {"id": 87, "type": "primitive_type", "text": "char", "parent": 85, "children": [], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 46}}, {"id": 88, "type": "pointer_declarator", "text": "*buf", "parent": 84, "children": [89, 90], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 51}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 48}}, {"id": 90, "type": "identifier", "text": "buf", "parent": 88, "children": [], "start_point": {"row": 52, "column": 48}, "end_point": {"row": 52, "column": 51}}, {"id": 91, "type": "parameter_declaration", "text": "long len", "parent": 80, "children": [92, 94], "start_point": {"row": 52, "column": 53}, "end_point": {"row": 52, "column": 61}}, {"id": 92, "type": "sized_type_specifier", "text": "long", "parent": 91, "children": [93], "start_point": {"row": 52, "column": 53}, "end_point": {"row": 52, "column": 57}}, {"id": 93, "type": "long", "text": "long", "parent": 92, "children": [], "start_point": {"row": 52, "column": 53}, "end_point": {"row": 52, "column": 57}}, {"id": 94, "type": "identifier", "text": "len", "parent": 91, "children": [], "start_point": {"row": 52, "column": 58}, "end_point": {"row": 52, "column": 61}}, {"id": 95, "type": "parameter_declaration", "text": "long *nRead", "parent": 80, "children": [96, 98], "start_point": {"row": 52, "column": 63}, "end_point": {"row": 52, "column": 74}}, {"id": 96, "type": "sized_type_specifier", "text": "long", "parent": 95, "children": [97], "start_point": {"row": 52, "column": 63}, "end_point": {"row": 52, "column": 67}}, {"id": 97, "type": "long", "text": "long", "parent": 96, "children": [], "start_point": {"row": 52, "column": 63}, "end_point": {"row": 52, "column": 67}}, {"id": 98, "type": "pointer_declarator", "text": "*nRead", "parent": 95, "children": [99, 100], "start_point": {"row": 52, "column": 68}, "end_point": {"row": 52, "column": 74}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 52, "column": 68}, "end_point": {"row": 52, "column": 69}}, {"id": 100, "type": "identifier", "text": "nRead", "parent": 98, "children": [], "start_point": {"row": 52, "column": 69}, "end_point": {"row": 52, "column": 74}}, {"id": 101, "type": "declaration", "text": "int FileUtil_Write(FileType file, const unsigned char *buf, long len,\r\n\t\t long *nWrit);", "parent": 0, "children": [102, 103], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 18}}, {"id": 102, "type": "primitive_type", "text": "int", "parent": 101, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 3}}, {"id": 103, "type": "function_declarator", "text": "FileUtil_Write(FileType file, const unsigned char *buf, long len,\r\n\t\t long *nWrit)", "parent": 101, "children": [104, 105], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 54, "column": 17}}, {"id": 104, "type": "identifier", "text": "FileUtil_Write", "parent": 103, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 18}}, {"id": 105, "type": "parameter_list", "text": "(FileType file, const unsigned char *buf, long len,\r\n\t\t long *nWrit)", "parent": 103, "children": [106, 109, 116, 120], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 54, "column": 17}}, {"id": 106, "type": "parameter_declaration", "text": "FileType file", "parent": 105, "children": [107, 108], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 32}}, {"id": 107, "type": "type_identifier", "text": "FileType", "parent": 106, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 27}}, {"id": 108, "type": "identifier", "text": "file", "parent": 106, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 32}}, {"id": 109, "type": "parameter_declaration", "text": "const unsigned char *buf", "parent": 105, "children": [110, 113], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 58}}, {"id": 110, "type": "sized_type_specifier", "text": "unsigned char", "parent": 109, "children": [111, 112], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 53}}, {"id": 111, "type": "unsigned", "text": "unsigned", "parent": 110, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 48}}, {"id": 112, "type": "primitive_type", "text": "char", "parent": 110, "children": [], "start_point": {"row": 53, "column": 49}, "end_point": {"row": 53, "column": 53}}, {"id": 113, "type": "pointer_declarator", "text": "*buf", "parent": 109, "children": [114, 115], "start_point": {"row": 53, "column": 54}, "end_point": {"row": 53, "column": 58}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 53, "column": 54}, "end_point": {"row": 53, "column": 55}}, {"id": 115, "type": "identifier", "text": "buf", "parent": 113, "children": [], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 58}}, {"id": 116, "type": "parameter_declaration", "text": "long len", "parent": 105, "children": [117, 119], "start_point": {"row": 53, "column": 60}, "end_point": {"row": 53, "column": 68}}, {"id": 117, "type": "sized_type_specifier", "text": "long", "parent": 116, "children": [118], "start_point": {"row": 53, "column": 60}, "end_point": {"row": 53, "column": 64}}, {"id": 118, "type": "long", "text": "long", "parent": 117, "children": [], "start_point": {"row": 53, "column": 60}, "end_point": {"row": 53, "column": 64}}, {"id": 119, "type": "identifier", "text": "len", "parent": 116, "children": [], "start_point": {"row": 53, "column": 65}, "end_point": {"row": 53, "column": 68}}, {"id": 120, "type": "parameter_declaration", "text": "long *nWrit", "parent": 105, "children": [121, 123], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 16}}, {"id": 121, "type": "sized_type_specifier", "text": "long", "parent": 120, "children": [122], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 9}}, {"id": 122, "type": "long", "text": "long", "parent": 121, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 9}}, {"id": 123, "type": "pointer_declarator", "text": "*nWrit", "parent": 120, "children": [124, 125], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 16}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 11}}, {"id": 125, "type": "identifier", "text": "nWrit", "parent": 123, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 16}}, {"id": 126, "type": "declaration", "text": "int FileUtil_Seek(FileType file, long dist, int mode);", "parent": 0, "children": [127, 128], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 54}}, {"id": 127, "type": "primitive_type", "text": "int", "parent": 126, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 3}}, {"id": 128, "type": "function_declarator", "text": "FileUtil_Seek(FileType file, long dist, int mode)", "parent": 126, "children": [129, 130], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 53}}, {"id": 129, "type": "identifier", "text": "FileUtil_Seek", "parent": 128, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 17}}, {"id": 130, "type": "parameter_list", "text": "(FileType file, long dist, int mode)", "parent": 128, "children": [131, 134, 138], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 53}}, {"id": 131, "type": "parameter_declaration", "text": "FileType file", "parent": 130, "children": [132, 133], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 31}}, {"id": 132, "type": "type_identifier", "text": "FileType", "parent": 131, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 26}}, {"id": 133, "type": "identifier", "text": "file", "parent": 131, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 31}}, {"id": 134, "type": "parameter_declaration", "text": "long dist", "parent": 130, "children": [135, 137], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 42}}, {"id": 135, "type": "sized_type_specifier", "text": "long", "parent": 134, "children": [136], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 37}}, {"id": 136, "type": "long", "text": "long", "parent": 135, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 37}}, {"id": 137, "type": "identifier", "text": "dist", "parent": 134, "children": [], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 42}}, {"id": 138, "type": "parameter_declaration", "text": "int mode", "parent": 130, "children": [139, 140], "start_point": {"row": 55, "column": 44}, "end_point": {"row": 55, "column": 52}}, {"id": 139, "type": "primitive_type", "text": "int", "parent": 138, "children": [], "start_point": {"row": 55, "column": 44}, "end_point": {"row": 55, "column": 47}}, {"id": 140, "type": "identifier", "text": "mode", "parent": 138, "children": [], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 52}}, {"id": 141, "type": "declaration", "text": "int FileUtil_Close(FileType file);", "parent": 0, "children": [142, 143], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 34}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 141, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 3}}, {"id": 143, "type": "function_declarator", "text": "FileUtil_Close(FileType file)", "parent": 141, "children": [144, 145], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 33}}, {"id": 144, "type": "identifier", "text": "FileUtil_Close", "parent": 143, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 18}}, {"id": 145, "type": "parameter_list", "text": "(FileType file)", "parent": 143, "children": [146], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 33}}, {"id": 146, "type": "parameter_declaration", "text": "FileType file", "parent": 145, "children": [147, 148], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 32}}, {"id": 147, "type": "type_identifier", "text": "FileType", "parent": 146, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 27}}, {"id": 148, "type": "identifier", "text": "file", "parent": 146, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 32}}, {"id": 149, "type": "declaration", "text": "int FileUtil_Getc(FileType file);", "parent": 0, "children": [150, 151], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 33}}, {"id": 150, "type": "primitive_type", "text": "int", "parent": 149, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 3}}, {"id": 151, "type": "function_declarator", "text": "FileUtil_Getc(FileType file)", "parent": 149, "children": [152, 153], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 32}}, {"id": 152, "type": "identifier", "text": "FileUtil_Getc", "parent": 151, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 17}}, {"id": 153, "type": "parameter_list", "text": "(FileType file)", "parent": 151, "children": [154], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 32}}, {"id": 154, "type": "parameter_declaration", "text": "FileType file", "parent": 153, "children": [155, 156], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 31}}, {"id": 155, "type": "type_identifier", "text": "FileType", "parent": 154, "children": [], "start_point": {"row": 58, "column": 18}, "end_point": {"row": 58, "column": 26}}, {"id": 156, "type": "identifier", "text": "file", "parent": 154, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 31}}, {"id": 157, "type": "declaration", "text": "long FileUtil_Ftell(FileType file);", "parent": 0, "children": [158, 160], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 35}}, {"id": 158, "type": "sized_type_specifier", "text": "long", "parent": 157, "children": [159], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 4}}, {"id": 159, "type": "long", "text": "long", "parent": 158, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 4}}, {"id": 160, "type": "function_declarator", "text": "FileUtil_Ftell(FileType file)", "parent": 157, "children": [161, 162], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 34}}, {"id": 161, "type": "identifier", "text": "FileUtil_Ftell", "parent": 160, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 19}}, {"id": 162, "type": "parameter_list", "text": "(FileType file)", "parent": 160, "children": [163], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 34}}, {"id": 163, "type": "parameter_declaration", "text": "FileType file", "parent": 162, "children": [164, 165], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 33}}, {"id": 164, "type": "type_identifier", "text": "FileType", "parent": 163, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 28}}, {"id": 165, "type": "identifier", "text": "file", "parent": 163, "children": [], "start_point": {"row": 59, "column": 29}, "end_point": {"row": 59, "column": 33}}, {"id": 166, "type": "declaration", "text": "time_t FileUtil_GetTime(FileType file);", "parent": 0, "children": [167, 168], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 39}}, {"id": 167, "type": "type_identifier", "text": "time_t", "parent": 166, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 168, "type": "function_declarator", "text": "FileUtil_GetTime(FileType file)", "parent": 166, "children": [169, 170], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 38}}, {"id": 169, "type": "identifier", "text": "FileUtil_GetTime", "parent": 168, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 23}}, {"id": 170, "type": "parameter_list", "text": "(FileType file)", "parent": 168, "children": [171], "start_point": {"row": 60, "column": 23}, "end_point": {"row": 60, "column": 38}}, {"id": 171, "type": "parameter_declaration", "text": "FileType file", "parent": 170, "children": [172, 173], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 37}}, {"id": 172, "type": "type_identifier", "text": "FileType", "parent": 171, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 32}}, {"id": 173, "type": "identifier", "text": "file", "parent": 171, "children": [], "start_point": {"row": 60, "column": 33}, "end_point": {"row": 60, "column": 37}}, {"id": 174, "type": "declaration", "text": "int FileUtil_GetError(void);", "parent": 0, "children": [175, 176], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 28}}, {"id": 175, "type": "primitive_type", "text": "int", "parent": 174, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 3}}, {"id": 176, "type": "function_declarator", "text": "FileUtil_GetError(void)", "parent": 174, "children": [177, 178], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 27}}, {"id": 177, "type": "identifier", "text": "FileUtil_GetError", "parent": 176, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 21}}, {"id": 178, "type": "parameter_list", "text": "(void)", "parent": 176, "children": [179], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 27}}, {"id": 179, "type": "parameter_declaration", "text": "void", "parent": 178, "children": [180], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 26}}, {"id": 180, "type": "primitive_type", "text": "void", "parent": 179, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 26}}, {"id": 181, "type": "declaration", "text": "void FileUtil_SprintError(char *result, char *fmt, ...);", "parent": 0, "children": [182, 183], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 56}}, {"id": 182, "type": "primitive_type", "text": "void", "parent": 181, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 4}}, {"id": 183, "type": "function_declarator", "text": "FileUtil_SprintError(char *result, char *fmt, ...)", "parent": 181, "children": [184, 185], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 55}}, {"id": 184, "type": "identifier", "text": "FileUtil_SprintError", "parent": 183, "children": [], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 25}}, {"id": 185, "type": "parameter_list", "text": "(char *result, char *fmt, ...)", "parent": 183, "children": [186, 191], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 55}}, {"id": 186, "type": "parameter_declaration", "text": "char *result", "parent": 185, "children": [187, 188], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 38}}, {"id": 187, "type": "primitive_type", "text": "char", "parent": 186, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 30}}, {"id": 188, "type": "pointer_declarator", "text": "*result", "parent": 186, "children": [189, 190], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 38}}, {"id": 189, "type": "*", "text": "*", "parent": 188, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 32}}, {"id": 190, "type": "identifier", "text": "result", "parent": 188, "children": [], "start_point": {"row": 63, "column": 32}, "end_point": {"row": 63, "column": 38}}, {"id": 191, "type": "parameter_declaration", "text": "char *fmt", "parent": 185, "children": [192, 193], "start_point": {"row": 63, "column": 40}, "end_point": {"row": 63, "column": 49}}, {"id": 192, "type": "primitive_type", "text": "char", "parent": 191, "children": [], "start_point": {"row": 63, "column": 40}, "end_point": {"row": 63, "column": 44}}, {"id": 193, "type": "pointer_declarator", "text": "*fmt", "parent": 191, "children": [194, 195], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 49}}, {"id": 194, "type": "*", "text": "*", "parent": 193, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 46}}, {"id": 195, "type": "identifier", "text": "fmt", "parent": 193, "children": [], "start_point": {"row": 63, "column": 46}, "end_point": {"row": 63, "column": 49}}, {"id": 196, "type": "preproc_if", "text": "#if defined(_WIN32)\r\n#define TF_ERROR \t0\r\n#define TF_FAT \t\t1\r\n#define TF_NONFAT \t2\r\nint FileUtil_TestFat(const char *path);\r\n#endif", "parent": 0, "children": [197, 198, 201, 202, 206, 210, 214, 224], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 70, "column": 6}}, {"id": 197, "type": "#if", "text": "#if", "parent": 196, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 3}}, {"id": 198, "type": "preproc_defined", "text": "defined(_WIN32)", "parent": 196, "children": [199, 200], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 19}}, {"id": 199, "type": "defined", "text": "defined", "parent": 198, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 11}}, {"id": 200, "type": "identifier", "text": "_WIN32", "parent": 198, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 18}}, {"id": 201, "type": "\n", "text": "\n", "parent": 196, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 66, "column": 0}}, {"id": 202, "type": "preproc_def", "text": "#define TF_ERROR \t0\r\n", "parent": 196, "children": [203, 204, 205], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 203, "type": "#define", "text": "#define", "parent": 202, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 204, "type": "identifier", "text": "TF_ERROR", "parent": 202, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 16}}, {"id": 205, "type": "preproc_arg", "text": "0\r", "parent": 202, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 20}}, {"id": 206, "type": "preproc_def", "text": "#define TF_FAT \t\t1\r\n", "parent": 196, "children": [207, 208, 209], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 207, "type": "#define", "text": "#define", "parent": 206, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 208, "type": "identifier", "text": "TF_FAT", "parent": 206, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 14}}, {"id": 209, "type": "preproc_arg", "text": "1\r", "parent": 206, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 19}}, {"id": 210, "type": "preproc_def", "text": "#define TF_NONFAT \t2\r\n", "parent": 196, "children": [211, 212, 213], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 211, "type": "#define", "text": "#define", "parent": 210, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 7}}, {"id": 212, "type": "identifier", "text": "TF_NONFAT", "parent": 210, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 17}}, {"id": 213, "type": "preproc_arg", "text": "2\r", "parent": 210, "children": [], "start_point": {"row": 68, "column": 19}, "end_point": {"row": 68, "column": 21}}, {"id": 214, "type": "declaration", "text": "int FileUtil_TestFat(const char *path);", "parent": 196, "children": [215, 216], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 39}}, {"id": 215, "type": "primitive_type", "text": "int", "parent": 214, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 3}}, {"id": 216, "type": "function_declarator", "text": "FileUtil_TestFat(const char *path)", "parent": 214, "children": [217, 218], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 38}}, {"id": 217, "type": "identifier", "text": "FileUtil_TestFat", "parent": 216, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 20}}, {"id": 218, "type": "parameter_list", "text": "(const char *path)", "parent": 216, "children": [219], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 38}}, {"id": 219, "type": "parameter_declaration", "text": "const char *path", "parent": 218, "children": [220, 221], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 37}}, {"id": 220, "type": "primitive_type", "text": "char", "parent": 219, "children": [], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 69, "column": 31}}, {"id": 221, "type": "pointer_declarator", "text": "*path", "parent": 219, "children": [222, 223], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 37}}, {"id": 222, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 69, "column": 32}, "end_point": {"row": 69, "column": 33}}, {"id": 223, "type": "identifier", "text": "path", "parent": 221, "children": [], "start_point": {"row": 69, "column": 33}, "end_point": {"row": 69, "column": 37}}, {"id": 224, "type": "#endif", "text": "#endif", "parent": 196, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 6}}, {"id": 225, "type": "preproc_if", "text": "#if !defined(FALSE)\r\n# define FALSE 0\r\n#endif", "parent": 0, "children": [226, 227, 232, 233, 237], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 226, "type": "#if", "text": "#if", "parent": 225, "children": [], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 72, "column": 3}}, {"id": 227, "type": "unary_expression", "text": "!defined(FALSE)", "parent": 225, "children": [228, 229], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 19}}, {"id": 228, "type": "!", "text": "!", "parent": 227, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 5}}, {"id": 229, "type": "preproc_defined", "text": "defined(FALSE)", "parent": 227, "children": [230, 231], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 19}}, {"id": 230, "type": "defined", "text": "defined", "parent": 229, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 12}}, {"id": 231, "type": "identifier", "text": "FALSE", "parent": 229, "children": [], "start_point": {"row": 72, "column": 13}, "end_point": {"row": 72, "column": 18}}, {"id": 232, "type": "\n", "text": "\n", "parent": 225, "children": [], "start_point": {"row": 72, "column": 20}, "end_point": {"row": 73, "column": 0}}, {"id": 233, "type": "preproc_def", "text": "# define FALSE 0\r\n", "parent": 225, "children": [234, 235, 236], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 0}}, {"id": 234, "type": "#define", "text": "# define", "parent": 233, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 8}}, {"id": 235, "type": "identifier", "text": "FALSE", "parent": 233, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 14}}, {"id": 236, "type": "preproc_arg", "text": "0\r", "parent": 233, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 17}}, {"id": 237, "type": "#endif", "text": "#endif", "parent": 225, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 6}}, {"id": 238, "type": "preproc_if", "text": "#if !defined(TRUE)\r\n# define TRUE 1\r\n#endif", "parent": 0, "children": [239, 240, 245, 246, 250], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 239, "type": "#if", "text": "#if", "parent": 238, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 3}}, {"id": 240, "type": "unary_expression", "text": "!defined(TRUE)", "parent": 238, "children": [241, 242], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 18}}, {"id": 241, "type": "!", "text": "!", "parent": 240, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 242, "type": "preproc_defined", "text": "defined(TRUE)", "parent": 240, "children": [243, 244], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 18}}, {"id": 243, "type": "defined", "text": "defined", "parent": 242, "children": [], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 12}}, {"id": 244, "type": "identifier", "text": "TRUE", "parent": 242, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 17}}, {"id": 245, "type": "\n", "text": "\n", "parent": 238, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 76, "column": 0}}, {"id": 246, "type": "preproc_def", "text": "# define TRUE 1\r\n", "parent": 238, "children": [247, 248, 249], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 77, "column": 0}}, {"id": 247, "type": "#define", "text": "# define", "parent": 246, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 8}}, {"id": 248, "type": "identifier", "text": "TRUE", "parent": 246, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 13}}, {"id": 249, "type": "preproc_arg", "text": "1\r", "parent": 246, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 16}}, {"id": 250, "type": "#endif", "text": "#endif", "parent": 238, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 251, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}]}, "node_categories": {"declarations": {"functions": [54, 78, 103, 128, 143, 151, 160, 168, 176, 183, 216], "variables": [23, 35, 45, 52, 57, 62, 67, 70, 73, 76, 81, 84, 91, 95, 101, 106, 109, 116, 120, 126, 131, 134, 138, 141, 146, 149, 154, 157, 163, 166, 171, 174, 179, 181, 186, 191, 214, 219], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [14, 227, 240], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 13, 17, 21, 25, 28, 29, 30, 33, 38, 39, 40, 43, 47, 50, 51, 55, 58, 61, 66, 69, 72, 75, 79, 82, 83, 85, 90, 92, 94, 96, 100, 104, 107, 108, 110, 115, 117, 119, 121, 125, 129, 132, 133, 135, 137, 140, 144, 147, 148, 152, 155, 156, 158, 161, 164, 165, 167, 169, 172, 173, 177, 184, 190, 195, 196, 197, 200, 204, 208, 212, 217, 223, 224, 225, 226, 231, 235, 237, 238, 239, 244, 248, 250, 251], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 54, "universal_type": "function", "name": "oflags,", "text_snippet": "FileUtil_Open(FileType *file, const char *path, int oflags,\r\n\t\t int sflags, int mode)"}, {"node_id": 78, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead)"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_Write(FileType file, const unsigned char *buf, long len,\r\n\t\t long *nWrit)"}, {"node_id": 128, "universal_type": "function", "name": "mode)", "text_snippet": "FileUtil_Seek(FileType file, long dist, int mode)"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_Close(FileType file)"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_Getc(FileType file)"}, {"node_id": 160, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_Ftell(FileType file)"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_GetTime(FileType file)"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_GetError(void)"}, {"node_id": 183, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_SprintError(char *result, char *fmt, ...)"}, {"node_id": 216, "universal_type": "function", "name": "unknown", "text_snippet": "FileUtil_TestFat(const char *path)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <time.h>\r\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdio.h>\r\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/***********************************************************************\r\n *\r\n *\tCopyright (c) Berkeley Softworks 1988 -- All Rights Reserved\r\n *\r\n * PROJECT:\t PCGEOS\r\n * MODULE:\t Tool Utilities\r\n * FILE:\t FileUtil.h\r\n *\r\n * AUTHOR: \t <NAME>, Sep 26, 1996\r\n *\r\n * ROUTINES:\r\n *\tName\t \t Description\r\n *\t----\t \t -----------\r\n *\tFileUtil_Open Opens the file\r\n * FileUtil_Read Reads from the file\r\n * FileUtil_Write Writes to the file\r\n * FileUtil_Seek Positions within file\r\n * FileUtil_Close Closes the file\r\n *\r\n * REVISION HISTORY:\r\n *\tDate\t Name\t Description\r\n *\t----\t ----\t -----------\r\n *\tdbaumann\t9/26/96 \tInitial version\r\n *\r\n * DESCRIPTION:\r\n * Cross platform interface to files.\r\n *\r\n *\r\n * \t$Id: fileUtil.h,v 1.3 97/05/27 16:18:48 dbaumann Exp $\r\n *\r\n ***********************************************************************/\r\n#ifndef _FILEUTIL_H_\r\n#define _FILEUTIL_H_\r\n\r\n#include <time.h>\r\n#include <stdio.h>\r\n\r\n#if defined(unix) || defined(_LINUX)\r\ntypedef FILE *\t\tFileType;\r\n#elif defined(_MSDOS)\r\ntypedef int\t\tFileType;\r\n#elif defined(_WIN32)\r\n/*\r\n * FileType is a HANDLE in WIN32, but since this is done in\r\n * windows.h and we want to avoid including that, it is typedeffed\r\n * to HANDLE's type\r\n */\r\ntypedef unsigned int\tFileType;\r\n#endif\r\n\r\nint FileUtil_Open(FileType *file, const char *path, int oflags,\r\n\t\t int sflags, int mode);\r\nint FileUtil_Read(FileType file, unsigned char *buf, long len, long *nRead);\r\nint FileUtil_Write(FileType file, const unsigned char *buf, long len,\r\n\t\t long *nWrit);\r\nint FileUtil_Seek(FileType file, long dist, int mode);\r\nint FileUtil_Close(FileType file);\r\n\r\nint FileUtil_Getc(FileType file);\r\nlong FileUtil_Ftell(FileType file);\r\ntime_t FileUtil_GetTime(FileType file);\r\n\r\nint FileUtil_GetError(void);\r\nvoid FileUtil_SprintError(char *result, char *fmt, ...);\r\n\r\n#if defined(_WIN32)\r\n#define TF_ERROR \t0\r\n#define TF_FAT \t\t1\r\n#define TF_NONFAT \t2\r\nint FileUtil_TestFat(const char *path);\r\n#endif\r\n\r\n#if !defined(FALSE)\r\n# define FALSE 0\r\n#endif\r\n#if !defined(TRUE)\r\n# define TRUE 1\r\n#endif\r\n\r\n#endif /* _FILEUTIL_H_ */\r\n"}
80,313
c
/*************************************************************************** * include/stxxl/bits/utils/malloc.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2003 <NAME> <<EMAIL>> * Copyright (C) 2009 <NAME> <<EMAIL>> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) **************************************************************************/ #ifndef STXXL_UTILS_MALLOC_HEADER #define STXXL_UTILS_MALLOC_HEADER #include <stxxl/bits/config.h> #include <ostream> #if STXXL_HAVE_MALLINFO_PROTO #include <malloc.h> #endif #include <cstdlib> #include <stxxl/bits/namespace.h> #include <stxxl/bits/unused.h> STXXL_BEGIN_NAMESPACE //! Access to some useful malloc statistics. //! malloc is default C++ allocator class malloc_stats { #if STXXL_HAVE_MALLINFO_PROTO public: typedef int return_type; //! Returns number of bytes allocated from system not including mmapped regions. return_type from_system_nmmap() const { struct mallinfo info = mallinfo(); return info.arena; } //! Returns number of free chunks. return_type free_chunks() const { struct mallinfo info = mallinfo(); return info.ordblks; } //! Number of bytes allocated and in use. return_type used() const { struct mallinfo info = mallinfo(); return info.uordblks; } //! Number of bytes allocated but not in use. return_type not_used() const { struct mallinfo info = mallinfo(); return info.fordblks; } //! Top-most, releasable (via malloc_trim) space (bytes). return_type releasable() const { struct mallinfo info = mallinfo(); return info.keepcost; } //! Maximum total allocated space (bytes) (always 0 ?). return_type max_allocated() const { struct mallinfo info = mallinfo(); return info.usmblks; } //! Number of fastbin blocks. return_type fastbin_blocks() const { struct mallinfo info = mallinfo(); return info.smblks; } //! Space available in freed fastbin blocks (bytes). return_type fastbin_free() const { struct mallinfo info = mallinfo(); return info.fsmblks; } //! Returns number of bytes allocated from system using mmap. return_type from_system_mmap() const { struct mallinfo info = mallinfo(); return info.hblkhd; } //! Number of chunks allocated via mmap(). return_type mmap_chunks() const { struct mallinfo info = mallinfo(); return info.hblks; } //! Returns \b total number of bytes allocated from system including mmapped regions. return_type from_system_total() const { return from_system_nmmap() + from_system_mmap(); } #endif }; //! Prints current malloc statistics in a convenient way. inline std::ostream& operator << (std::ostream& s, const malloc_stats& st) { #if STXXL_HAVE_MALLINFO_PROTO s << "MALLOC statistics" << std::endl; s << "=================================================================" << std::endl; s << "Space allocated from system not using mmap: " << st.from_system_nmmap() << " bytes" << std::endl; s << " number of free chunks : " << st.free_chunks() << std::endl; s << " space allocated and in use : " << st.used() << " bytes" << std::endl; s << " space allocated but not in use : " << st.not_used() << " bytes" << std::endl; s << " top-most, releasable (via malloc_trim) space: " << st.releasable() << " bytes" << std::endl; s << " maximum total allocated space (?) : " << st.max_allocated() << " bytes" << std::endl; s << " FASTBIN blocks " << std::endl; s << " number of fastbin blocks: " << st.fastbin_blocks() << std::endl; s << " space available in freed fastbin blocks: " << st.fastbin_free() << " bytes" << std::endl; s << "Space allocated from system using mmap: " << st.from_system_mmap() << " bytes" << std::endl; s << " number of chunks allocated via mmap(): " << st.mmap_chunks() << std::endl; s << "Total space allocated from system (mmap and not mmap): " << st.from_system_total() << " bytes" << std::endl; s << "=================================================================" << std::endl; #else s << "MALLOC statistics are not supported on this platform"; STXXL_UNUSED(st); #endif return s; } class malloc_setup { }; STXXL_END_NAMESPACE #endif // !STXXL_UTILS_MALLOC_HEADER
35.39
129
(translation_unit) "/***************************************************************************\n * include/stxxl/bits/utils/malloc.h\n *\n * Part of the STXXL. See http://stxxl.sourceforge.net\n *\n * Copyright (C) 2003 <NAME> <<EMAIL>>\n * Copyright (C) 2009 <NAME> <<EMAIL>>\n *\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE_1_0.txt or copy at\n * http://www.boost.org/LICENSE_1_0.txt)\n **************************************************************************/\n\n#ifndef STXXL_UTILS_MALLOC_HEADER\n#define STXXL_UTILS_MALLOC_HEADER\n\n#include <stxxl/bits/config.h>\n\n#include <ostream>\n#if STXXL_HAVE_MALLINFO_PROTO\n #include <malloc.h>\n#endif\n#include <cstdlib>\n\n#include <stxxl/bits/namespace.h>\n#include <stxxl/bits/unused.h>\n\n\nSTXXL_BEGIN_NAMESPACE\n\n\n//! Access to some useful malloc statistics.\n\n//! malloc is default C++ allocator\nclass malloc_stats\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif\n};\n\n//! Prints current malloc statistics in a convenient way.\ninline std::ostream& operator << (std::ostream& s, const malloc_stats& st)\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n s << "MALLOC statistics" << std::endl;\n s << "=================================================================" << std::endl;\n s << "Space allocated from system not using mmap: " << st.from_system_nmmap() << " bytes" << std::endl;\n s << " number of free chunks : " << st.free_chunks() << std::endl;\n s << " space allocated and in use : " << st.used() << " bytes" << std::endl;\n s << " space allocated but not in use : " << st.not_used() << " bytes" << std::endl;\n s << " top-most, releasable (via malloc_trim) space: " << st.releasable() << " bytes" << std::endl;\n s << " maximum total allocated space (?) : " << st.max_allocated() << " bytes" << std::endl;\n s << " FASTBIN blocks " << std::endl;\n s << " number of fastbin blocks: " << st.fastbin_blocks() << std::endl;\n s << " space available in freed fastbin blocks: " << st.fastbin_free() << " bytes" << std::endl;\n s << "Space allocated from system using mmap: " << st.from_system_mmap() << " bytes" << std::endl;\n s << " number of chunks allocated via mmap(): " << st.mmap_chunks() << std::endl;\n s << "Total space allocated from system (mmap and not mmap): " <<\n st.from_system_total() << " bytes" << std::endl;\n s << "=================================================================" << std::endl;\n#else\n s << "MALLOC statistics are not supported on this platform";\n STXXL_UNUSED(st);\n#endif\n return s;\n}\n\nclass malloc_setup\n{ };\n\nSTXXL_END_NAMESPACE\n\n#endif // !STXXL_UTILS_MALLOC_HEADER\n" (comment) "/***************************************************************************\n * include/stxxl/bits/utils/malloc.h\n *\n * Part of the STXXL. See http://stxxl.sourceforge.net\n *\n * Copyright (C) 2003 <NAME> <<EMAIL>>\n * Copyright (C) 2009 <NAME> <<EMAIL>>\n *\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE_1_0.txt or copy at\n * http://www.boost.org/LICENSE_1_0.txt)\n **************************************************************************/" (preproc_ifdef) "#ifndef STXXL_UTILS_MALLOC_HEADER\n#define STXXL_UTILS_MALLOC_HEADER\n\n#include <stxxl/bits/config.h>\n\n#include <ostream>\n#if STXXL_HAVE_MALLINFO_PROTO\n #include <malloc.h>\n#endif\n#include <cstdlib>\n\n#include <stxxl/bits/namespace.h>\n#include <stxxl/bits/unused.h>\n\n\nSTXXL_BEGIN_NAMESPACE\n\n\n//! Access to some useful malloc statistics.\n\n//! malloc is default C++ allocator\nclass malloc_stats\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif\n};\n\n//! Prints current malloc statistics in a convenient way.\ninline std::ostream& operator << (std::ostream& s, const malloc_stats& st)\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n s << "MALLOC statistics" << std::endl;\n s << "=================================================================" << std::endl;\n s << "Space allocated from system not using mmap: " << st.from_system_nmmap() << " bytes" << std::endl;\n s << " number of free chunks : " << st.free_chunks() << std::endl;\n s << " space allocated and in use : " << st.used() << " bytes" << std::endl;\n s << " space allocated but not in use : " << st.not_used() << " bytes" << std::endl;\n s << " top-most, releasable (via malloc_trim) space: " << st.releasable() << " bytes" << std::endl;\n s << " maximum total allocated space (?) : " << st.max_allocated() << " bytes" << std::endl;\n s << " FASTBIN blocks " << std::endl;\n s << " number of fastbin blocks: " << st.fastbin_blocks() << std::endl;\n s << " space available in freed fastbin blocks: " << st.fastbin_free() << " bytes" << std::endl;\n s << "Space allocated from system using mmap: " << st.from_system_mmap() << " bytes" << std::endl;\n s << " number of chunks allocated via mmap(): " << st.mmap_chunks() << std::endl;\n s << "Total space allocated from system (mmap and not mmap): " <<\n st.from_system_total() << " bytes" << std::endl;\n s << "=================================================================" << std::endl;\n#else\n s << "MALLOC statistics are not supported on this platform";\n STXXL_UNUSED(st);\n#endif\n return s;\n}\n\nclass malloc_setup\n{ };\n\nSTXXL_END_NAMESPACE\n\n#endif" (#ifndef) "#ifndef" (identifier) "STXXL_UTILS_MALLOC_HEADER" (preproc_def) "#define STXXL_UTILS_MALLOC_HEADER\n" (#define) "#define" (identifier) "STXXL_UTILS_MALLOC_HEADER" (preproc_include) "#include <stxxl/bits/config.h>\n" (#include) "#include" (system_lib_string) "<stxxl/bits/config.h>" (preproc_include) "#include <ostream>\n" (#include) "#include" (system_lib_string) "<ostream>" (preproc_if) "#if STXXL_HAVE_MALLINFO_PROTO\n #include <malloc.h>\n#endif" (#if) "#if" (identifier) "STXXL_HAVE_MALLINFO_PROTO" ( ) "\n" (preproc_include) "#include <malloc.h>\n" (#include) "#include" (system_lib_string) "<malloc.h>" (#endif) "#endif" (preproc_include) "#include <cstdlib>\n" (#include) "#include" (system_lib_string) "<cstdlib>" (preproc_include) "#include <stxxl/bits/namespace.h>\n" (#include) "#include" (system_lib_string) "<stxxl/bits/namespace.h>" (preproc_include) "#include <stxxl/bits/unused.h>\n" (#include) "#include" (system_lib_string) "<stxxl/bits/unused.h>" (function_definition) "STXXL_BEGIN_NAMESPACE\n\n\n//! Access to some useful malloc statistics.\n\n//! malloc is default C++ allocator\nclass malloc_stats\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif\n}" (type_identifier) "STXXL_BEGIN_NAMESPACE" (comment) "//! Access to some useful malloc statistics." (comment) "//! malloc is default C++ allocator" (ERROR) "class" (identifier) "class" (identifier) "malloc_stats" (compound_statement) "{\n#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif\n}" ({) "{" (preproc_if) "#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif" (#if) "#if" (identifier) "STXXL_HAVE_MALLINFO_PROTO" ( ) "\n\n" (labeled_statement) "public:\n typedef int return_type;" (statement_identifier) "public" (:) ":" (declaration) "typedef int return_type;" (type_identifier) "typedef" (ERROR) "int" (identifier) "int" (identifier) "return_type" (;) ";" (comment) "//! Returns number of bytes allocated from system not including mmapped regions." (function_definition) "return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }" (type_identifier) "return_type" (function_declarator) "from_system_nmmap()" (identifier) "from_system_nmmap" (parameter_list) "()" (() "(" ()) ")" (declaration) "const\n {\n struct mallinfo info = mallinfo();" (type_qualifier) "const" (const) "const" (ERROR) "{" ({) "{" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "return info.arena;" (type_identifier) "return" (ERROR) "info." (identifier) "info" (.) "." (identifier) "arena" (;) ";" (ERROR) "}" (}) "}" (comment) "//! Returns number of free chunks." (ERROR) "return_type free_chunks() const" (type_identifier) "return_type" (function_declarator) "free_chunks() const" (identifier) "free_chunks" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }" ({) "{" (declaration) "struct mallinfo info = mallinfo();" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return info.ordblks;" (return) "return" (field_expression) "info.ordblks" (identifier) "info" (.) "." (field_identifier) "ordblks" (;) ";" (}) "}" (comment) "//! Number of bytes allocated and in use." (function_definition) "return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }" (type_identifier) "return_type" (function_declarator) "used()" (identifier) "used" (parameter_list) "()" (() "(" ()) ")" (declaration) "const\n {\n struct mallinfo info = mallinfo();" (type_qualifier) "const" (const) "const" (ERROR) "{" ({) "{" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "return info.uordblks;" (type_identifier) "return" (ERROR) "info." (identifier) "info" (.) "." (identifier) "uordblks" (;) ";" (ERROR) "}" (}) "}" (comment) "//! Number of bytes allocated but not in use." (ERROR) "return_type not_used() const" (type_identifier) "return_type" (function_declarator) "not_used() const" (identifier) "not_used" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }" ({) "{" (declaration) "struct mallinfo info = mallinfo();" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return info.fordblks;" (return) "return" (field_expression) "info.fordblks" (identifier) "info" (.) "." (field_identifier) "fordblks" (;) ";" (}) "}" (comment) "//! Top-most, releasable (via malloc_trim) space (bytes)." (function_definition) "return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }" (type_identifier) "return_type" (function_declarator) "releasable()" (identifier) "releasable" (parameter_list) "()" (() "(" ()) ")" (declaration) "const\n {\n struct mallinfo info = mallinfo();" (type_qualifier) "const" (const) "const" (ERROR) "{" ({) "{" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "return info.keepcost;" (type_identifier) "return" (ERROR) "info." (identifier) "info" (.) "." (identifier) "keepcost" (;) ";" (ERROR) "}" (}) "}" (comment) "//! Maximum total allocated space (bytes) (always 0 ?)." (ERROR) "return_type max_allocated() const" (type_identifier) "return_type" (function_declarator) "max_allocated() const" (identifier) "max_allocated" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }" ({) "{" (declaration) "struct mallinfo info = mallinfo();" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return info.usmblks;" (return) "return" (field_expression) "info.usmblks" (identifier) "info" (.) "." (field_identifier) "usmblks" (;) ";" (}) "}" (comment) "//! Number of fastbin blocks." (function_definition) "return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }" (type_identifier) "return_type" (function_declarator) "fastbin_blocks()" (identifier) "fastbin_blocks" (parameter_list) "()" (() "(" ()) ")" (declaration) "const\n {\n struct mallinfo info = mallinfo();" (type_qualifier) "const" (const) "const" (ERROR) "{" ({) "{" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "return info.smblks;" (type_identifier) "return" (ERROR) "info." (identifier) "info" (.) "." (identifier) "smblks" (;) ";" (ERROR) "}" (}) "}" (comment) "//! Space available in freed fastbin blocks (bytes)." (ERROR) "return_type fastbin_free() const" (type_identifier) "return_type" (function_declarator) "fastbin_free() const" (identifier) "fastbin_free" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }" ({) "{" (declaration) "struct mallinfo info = mallinfo();" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return info.fsmblks;" (return) "return" (field_expression) "info.fsmblks" (identifier) "info" (.) "." (field_identifier) "fsmblks" (;) ";" (}) "}" (comment) "//! Returns number of bytes allocated from system using mmap." (function_definition) "return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }" (type_identifier) "return_type" (function_declarator) "from_system_mmap()" (identifier) "from_system_mmap" (parameter_list) "()" (() "(" ()) ")" (declaration) "const\n {\n struct mallinfo info = mallinfo();" (type_qualifier) "const" (const) "const" (ERROR) "{" ({) "{" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "return info.hblkhd;" (type_identifier) "return" (ERROR) "info." (identifier) "info" (.) "." (identifier) "hblkhd" (;) ";" (ERROR) "}" (}) "}" (comment) "//! Number of chunks allocated via mmap()." (ERROR) "return_type mmap_chunks() const" (type_identifier) "return_type" (function_declarator) "mmap_chunks() const" (identifier) "mmap_chunks" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{\n struct mallinfo info = mallinfo();\n return info.hblks;\n }" ({) "{" (declaration) "struct mallinfo info = mallinfo();" (struct_specifier) "struct mallinfo" (struct) "struct" (type_identifier) "mallinfo" (init_declarator) "info = mallinfo()" (identifier) "info" (=) "=" (call_expression) "mallinfo()" (identifier) "mallinfo" (argument_list) "()" (() "(" ()) ")" (;) ";" (return_statement) "return info.hblks;" (return) "return" (field_expression) "info.hblks" (identifier) "info" (.) "." (field_identifier) "hblks" (;) ";" (}) "}" (comment) "//! Returns \b total number of bytes allocated from system including mmapped regions." (ERROR) "return_type from_system_total() const" (type_identifier) "return_type" (function_declarator) "from_system_total()" (identifier) "from_system_total" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return from_system_nmmap() + from_system_mmap();\n }" ({) "{" (return_statement) "return from_system_nmmap() + from_system_mmap();" (return) "return" (binary_expression) "from_system_nmmap() + from_system_mmap()" (call_expression) "from_system_nmmap()" (identifier) "from_system_nmmap" (argument_list) "()" (() "(" ()) ")" (+) "+" (call_expression) "from_system_mmap()" (identifier) "from_system_mmap" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (#endif) "#endif" (}) "}" (expression_statement) ";" (;) ";" (comment) "//! Prints current malloc statistics in a convenient way." (declaration) "inline std::ostream" (storage_class_specifier) "inline" (inline) "inline" (type_identifier) "std" (ERROR) "::" (:) ":" (:) ":" (identifier) "ostream" (;) "" (expression_statement) "& operator << (std::ostream& s, const malloc_stats& st)" (binary_expression) "& operator << (std::ostream& s, const malloc_stats& st)" (pointer_expression) "& operator" (&) "&" (identifier) "operator" (<<) "<<" (parenthesized_expression) "(std::ostream& s, const malloc_stats& st)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (comma_expression) "ostream& s, const malloc_stats& st" (binary_expression) "ostream& s" (identifier) "ostream" (&) "&" (identifier) "s" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "malloc_stats& st" (identifier) "malloc_stats" (&) "&" (identifier) "st" ()) ")" (;) "" (compound_statement) "{\n#if STXXL_HAVE_MALLINFO_PROTO\n s << "MALLOC statistics" << std::endl;\n s << "=================================================================" << std::endl;\n s << "Space allocated from system not using mmap: " << st.from_system_nmmap() << " bytes" << std::endl;\n s << " number of free chunks : " << st.free_chunks() << std::endl;\n s << " space allocated and in use : " << st.used() << " bytes" << std::endl;\n s << " space allocated but not in use : " << st.not_used() << " bytes" << std::endl;\n s << " top-most, releasable (via malloc_trim) space: " << st.releasable() << " bytes" << std::endl;\n s << " maximum total allocated space (?) : " << st.max_allocated() << " bytes" << std::endl;\n s << " FASTBIN blocks " << std::endl;\n s << " number of fastbin blocks: " << st.fastbin_blocks() << std::endl;\n s << " space available in freed fastbin blocks: " << st.fastbin_free() << " bytes" << std::endl;\n s << "Space allocated from system using mmap: " << st.from_system_mmap() << " bytes" << std::endl;\n s << " number of chunks allocated via mmap(): " << st.mmap_chunks() << std::endl;\n s << "Total space allocated from system (mmap and not mmap): " <<\n st.from_system_total() << " bytes" << std::endl;\n s << "=================================================================" << std::endl;\n#else\n s << "MALLOC statistics are not supported on this platform";\n STXXL_UNUSED(st);\n#endif\n return s;\n}" ({) "{" (preproc_if) "#if STXXL_HAVE_MALLINFO_PROTO\n s << "MALLOC statistics" << std::endl;\n s << "=================================================================" << std::endl;\n s << "Space allocated from system not using mmap: " << st.from_system_nmmap() << " bytes" << std::endl;\n s << " number of free chunks : " << st.free_chunks() << std::endl;\n s << " space allocated and in use : " << st.used() << " bytes" << std::endl;\n s << " space allocated but not in use : " << st.not_used() << " bytes" << std::endl;\n s << " top-most, releasable (via malloc_trim) space: " << st.releasable() << " bytes" << std::endl;\n s << " maximum total allocated space (?) : " << st.max_allocated() << " bytes" << std::endl;\n s << " FASTBIN blocks " << std::endl;\n s << " number of fastbin blocks: " << st.fastbin_blocks() << std::endl;\n s << " space available in freed fastbin blocks: " << st.fastbin_free() << " bytes" << std::endl;\n s << "Space allocated from system using mmap: " << st.from_system_mmap() << " bytes" << std::endl;\n s << " number of chunks allocated via mmap(): " << st.mmap_chunks() << std::endl;\n s << "Total space allocated from system (mmap and not mmap): " <<\n st.from_system_total() << " bytes" << std::endl;\n s << "=================================================================" << std::endl;\n#else\n s << "MALLOC statistics are not supported on this platform";\n STXXL_UNUSED(st);\n#endif" (#if) "#if" (identifier) "STXXL_HAVE_MALLINFO_PROTO" ( ) "\n" (expression_statement) "s << "MALLOC statistics" << std::endl;" (binary_expression) "s << "MALLOC statistics" << std" (binary_expression) "s << "MALLOC statistics"" (identifier) "s" (<<) "<<" (string_literal) ""MALLOC statistics"" (") """ (string_content) "MALLOC statistics" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << "=================================================================" << std::endl;" (binary_expression) "s << "=================================================================" << std" (binary_expression) "s << "================================================================="" (identifier) "s" (<<) "<<" (string_literal) ""================================================================="" (") """ (string_content) "=================================================================" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << "Space allocated from system not using mmap: " << st.from_system_nmmap() << " bytes" << std::endl;" (binary_expression) "s << "Space allocated from system not using mmap: " << st.from_system_nmmap() << " bytes" << std" (binary_expression) "s << "Space allocated from system not using mmap: " << st.from_system_nmmap() << " bytes"" (binary_expression) "s << "Space allocated from system not using mmap: " << st.from_system_nmmap()" (binary_expression) "s << "Space allocated from system not using mmap: "" (identifier) "s" (<<) "<<" (string_literal) ""Space allocated from system not using mmap: "" (") """ (string_content) "Space allocated from system not using mmap: " (") """ (<<) "<<" (call_expression) "st.from_system_nmmap()" (field_expression) "st.from_system_nmmap" (identifier) "st" (.) "." (field_identifier) "from_system_nmmap" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "" bytes"" (") """ (string_content) " bytes" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " number of free chunks : " << st.free_chunks() << std::endl;" (binary_expression) "s << " number of free chunks : " << st.free_chunks() << std" (binary_expression) "s << " number of free chunks : " << st.free_chunks()" (binary_expression) "s << " number of free chunks : "" (identifier) "s" (<<) "<<" (string_literal) "" number of free chunks : "" (") """ (string_content) " number of free chunks : " (") """ (<<) "<<" (call_expression) "st.free_chunks()" (field_expression) "st.free_chunks" (identifier) "st" (.) "." (field_identifier) "free_chunks" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " space allocated and in use : " << st.used() << " bytes" << std::endl;" (binary_expression) "s << " space allocated and in use : " << st.used() << " bytes" << std" (binary_expression) "s << " space allocated and in use : " << st.used() << " bytes"" (binary_expression) "s << " space allocated and in use : " << st.used()" (binary_expression) "s << " space allocated and in use : "" (identifier) "s" (<<) "<<" (string_literal) "" space allocated and in use : "" (") """ (string_content) " space allocated and in use : " (") """ (<<) "<<" (call_expression) "st.used()" (field_expression) "st.used" (identifier) "st" (.) "." (field_identifier) "used" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "" bytes"" (") """ (string_content) " bytes" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " space allocated but not in use : " << st.not_used() << " bytes" << std::endl;" (binary_expression) "s << " space allocated but not in use : " << st.not_used() << " bytes" << std" (binary_expression) "s << " space allocated but not in use : " << st.not_used() << " bytes"" (binary_expression) "s << " space allocated but not in use : " << st.not_used()" (binary_expression) "s << " space allocated but not in use : "" (identifier) "s" (<<) "<<" (string_literal) "" space allocated but not in use : "" (") """ (string_content) " space allocated but not in use : " (") """ (<<) "<<" (call_expression) "st.not_used()" (field_expression) "st.not_used" (identifier) "st" (.) "." (field_identifier) "not_used" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "" bytes"" (") """ (string_content) " bytes" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " top-most, releasable (via malloc_trim) space: " << st.releasable() << " bytes" << std::endl;" (binary_expression) "s << " top-most, releasable (via malloc_trim) space: " << st.releasable() << " bytes" << std" (binary_expression) "s << " top-most, releasable (via malloc_trim) space: " << st.releasable() << " bytes"" (binary_expression) "s << " top-most, releasable (via malloc_trim) space: " << st.releasable()" (binary_expression) "s << " top-most, releasable (via malloc_trim) space: "" (identifier) "s" (<<) "<<" (string_literal) "" top-most, releasable (via malloc_trim) space: "" (") """ (string_content) " top-most, releasable (via malloc_trim) space: " (") """ (<<) "<<" (call_expression) "st.releasable()" (field_expression) "st.releasable" (identifier) "st" (.) "." (field_identifier) "releasable" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "" bytes"" (") """ (string_content) " bytes" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " maximum total allocated space (?) : " << st.max_allocated() << " bytes" << std::endl;" (binary_expression) "s << " maximum total allocated space (?) : " << st.max_allocated() << " bytes" << std" (binary_expression) "s << " maximum total allocated space (?) : " << st.max_allocated() << " bytes"" (binary_expression) "s << " maximum total allocated space (?) : " << st.max_allocated()" (binary_expression) "s << " maximum total allocated space (?) : "" (identifier) "s" (<<) "<<" (string_literal) "" maximum total allocated space (?) : "" (") """ (string_content) " maximum total allocated space (?) : " (") """ (<<) "<<" (call_expression) "st.max_allocated()" (field_expression) "st.max_allocated" (identifier) "st" (.) "." (field_identifier) "max_allocated" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "" bytes"" (") """ (string_content) " bytes" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " FASTBIN blocks " << std::endl;" (binary_expression) "s << " FASTBIN blocks " << std" (binary_expression) "s << " FASTBIN blocks "" (identifier) "s" (<<) "<<" (string_literal) "" FASTBIN blocks "" (") """ (string_content) " FASTBIN blocks " (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " number of fastbin blocks: " << st.fastbin_blocks() << std::endl;" (binary_expression) "s << " number of fastbin blocks: " << st.fastbin_blocks() << std" (binary_expression) "s << " number of fastbin blocks: " << st.fastbin_blocks()" (binary_expression) "s << " number of fastbin blocks: "" (identifier) "s" (<<) "<<" (string_literal) "" number of fastbin blocks: "" (") """ (string_content) " number of fastbin blocks: " (") """ (<<) "<<" (call_expression) "st.fastbin_blocks()" (field_expression) "st.fastbin_blocks" (identifier) "st" (.) "." (field_identifier) "fastbin_blocks" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " space available in freed fastbin blocks: " << st.fastbin_free() << " bytes" << std::endl;" (binary_expression) "s << " space available in freed fastbin blocks: " << st.fastbin_free() << " bytes" << std" (binary_expression) "s << " space available in freed fastbin blocks: " << st.fastbin_free() << " bytes"" (binary_expression) "s << " space available in freed fastbin blocks: " << st.fastbin_free()" (binary_expression) "s << " space available in freed fastbin blocks: "" (identifier) "s" (<<) "<<" (string_literal) "" space available in freed fastbin blocks: "" (") """ (string_content) " space available in freed fastbin blocks: " (") """ (<<) "<<" (call_expression) "st.fastbin_free()" (field_expression) "st.fastbin_free" (identifier) "st" (.) "." (field_identifier) "fastbin_free" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "" bytes"" (") """ (string_content) " bytes" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << "Space allocated from system using mmap: " << st.from_system_mmap() << " bytes" << std::endl;" (binary_expression) "s << "Space allocated from system using mmap: " << st.from_system_mmap() << " bytes" << std" (binary_expression) "s << "Space allocated from system using mmap: " << st.from_system_mmap() << " bytes"" (binary_expression) "s << "Space allocated from system using mmap: " << st.from_system_mmap()" (binary_expression) "s << "Space allocated from system using mmap: "" (identifier) "s" (<<) "<<" (string_literal) ""Space allocated from system using mmap: "" (") """ (string_content) "Space allocated from system using mmap: " (") """ (<<) "<<" (call_expression) "st.from_system_mmap()" (field_expression) "st.from_system_mmap" (identifier) "st" (.) "." (field_identifier) "from_system_mmap" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "" bytes"" (") """ (string_content) " bytes" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << " number of chunks allocated via mmap(): " << st.mmap_chunks() << std::endl;" (binary_expression) "s << " number of chunks allocated via mmap(): " << st.mmap_chunks() << std" (binary_expression) "s << " number of chunks allocated via mmap(): " << st.mmap_chunks()" (binary_expression) "s << " number of chunks allocated via mmap(): "" (identifier) "s" (<<) "<<" (string_literal) "" number of chunks allocated via mmap(): "" (") """ (string_content) " number of chunks allocated via mmap(): " (") """ (<<) "<<" (call_expression) "st.mmap_chunks()" (field_expression) "st.mmap_chunks" (identifier) "st" (.) "." (field_identifier) "mmap_chunks" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << "Total space allocated from system (mmap and not mmap): " <<\n st.from_system_total() << " bytes" << std::endl;" (binary_expression) "s << "Total space allocated from system (mmap and not mmap): " <<\n st.from_system_total() << " bytes" << std" (binary_expression) "s << "Total space allocated from system (mmap and not mmap): " <<\n st.from_system_total() << " bytes"" (binary_expression) "s << "Total space allocated from system (mmap and not mmap): " <<\n st.from_system_total()" (binary_expression) "s << "Total space allocated from system (mmap and not mmap): "" (identifier) "s" (<<) "<<" (string_literal) ""Total space allocated from system (mmap and not mmap): "" (") """ (string_content) "Total space allocated from system (mmap and not mmap): " (") """ (<<) "<<" (call_expression) "st.from_system_total()" (field_expression) "st.from_system_total" (identifier) "st" (.) "." (field_identifier) "from_system_total" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "" bytes"" (") """ (string_content) " bytes" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (expression_statement) "s << "=================================================================" << std::endl;" (binary_expression) "s << "=================================================================" << std" (binary_expression) "s << "================================================================="" (identifier) "s" (<<) "<<" (string_literal) ""================================================================="" (") """ (string_content) "=================================================================" (") """ (<<) "<<" (identifier) "std" (ERROR) "::endl" (:) ":" (:) ":" (identifier) "endl" (;) ";" (preproc_else) "#else\n s << "MALLOC statistics are not supported on this platform";\n STXXL_UNUSED(st);" (#else) "#else" (expression_statement) "s << "MALLOC statistics are not supported on this platform";" (binary_expression) "s << "MALLOC statistics are not supported on this platform"" (identifier) "s" (<<) "<<" (string_literal) ""MALLOC statistics are not supported on this platform"" (") """ (string_content) "MALLOC statistics are not supported on this platform" (") """ (;) ";" (expression_statement) "STXXL_UNUSED(st);" (call_expression) "STXXL_UNUSED(st)" (identifier) "STXXL_UNUSED" (argument_list) "(st)" (() "(" (identifier) "st" ()) ")" (;) ";" (#endif) "#endif" (return_statement) "return s;" (return) "return" (identifier) "s" (;) ";" (}) "}" (function_definition) "class malloc_setup\n{ }" (type_identifier) "class" (identifier) "malloc_setup" (compound_statement) "{ }" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (type_identifier) "STXXL_END_NAMESPACE" (;) "" (#endif) "#endif" (comment) "// !STXXL_UTILS_MALLOC_HEADER"
892
41
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 35.39, "nodes": 523, "errors": 0, "source_hash": "70f6987f4fa700d43a3ee83b0d17d5b70ae5de19d47cd766ea6cab7f5f3b65ab", "categorized_nodes": 379}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef STXXL_UTILS_MALLOC_HEADER\n#define STXXL_UTILS_MALLOC_HEADER\n\n#include <stxxl/bits/config.h>\n\n#include <ostream>\n#if STXXL_HAVE_MALLINFO_PROTO\n #include <malloc.h>\n#endif\n#include <cstdlib>\n\n#include <stxxl/bits/namespace.h>\n#include <stxxl/bits/unused.h>\n\n\nSTXXL_BEGIN_NAMESPACE\n\n\n//! Access to some useful malloc statistics.\n\n//! malloc is default C++ allocator\nclass malloc_stats\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \\b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif\n};\n\n//! Prints current malloc statistics in a convenient way.\ninline std::ostream& operator << (std::ostream& s, const malloc_stats& st)\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n s << \"MALLOC statistics\" << std::endl;\n s << \"=================================================================\" << std::endl;\n s << \"Space allocated from system not using mmap: \" << st.from_system_nmmap() << \" bytes\" << std::endl;\n s << \" number of free chunks : \" << st.free_chunks() << std::endl;\n s << \" space allocated and in use : \" << st.used() << \" bytes\" << std::endl;\n s << \" space allocated but not in use : \" << st.not_used() << \" bytes\" << std::endl;\n s << \" top-most, releasable (via malloc_trim) space: \" << st.releasable() << \" bytes\" << std::endl;\n s << \" maximum total allocated space (?) : \" << st.max_allocated() << \" bytes\" << std::endl;\n s << \" FASTBIN blocks \" << std::endl;\n s << \" number of fastbin blocks: \" << st.fastbin_blocks() << std::endl;\n s << \" space available in freed fastbin blocks: \" << st.fastbin_free() << \" bytes\" << std::endl;\n s << \"Space allocated from system using mmap: \" << st.from_system_mmap() << \" bytes\" << std::endl;\n s << \" number of chunks allocated via mmap(): \" << st.mmap_chunks() << std::endl;\n s << \"Total space allocated from system (mmap and not mmap): \" <<\n st.from_system_total() << \" bytes\" << std::endl;\n s << \"=================================================================\" << std::endl;\n#else\n s << \"MALLOC statistics are not supported on this platform\";\n STXXL_UNUSED(st);\n#endif\n return s;\n}\n\nclass malloc_setup\n{ };\n\nSTXXL_END_NAMESPACE\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 20, 23, 26, 29, 247, 519, 521, 522], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 151, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 2, "type": "identifier", "text": "STXXL_UTILS_MALLOC_HEADER", "parent": 0, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 33}}, {"id": 3, "type": "preproc_def", "text": "#define STXXL_UTILS_MALLOC_HEADER\n", "parent": 0, "children": [4, 5], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 5, "type": "identifier", "text": "STXXL_UTILS_MALLOC_HEADER", "parent": 3, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 33}}, {"id": 6, "type": "preproc_include", "text": "#include <stxxl/bits/config.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<stxxl/bits/config.h>", "parent": 6, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 30}}, {"id": 9, "type": "preproc_include", "text": "#include <ostream>\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": "system_lib_string", "text": "<ostream>", "parent": 9, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 18}}, {"id": 12, "type": "preproc_if", "text": "#if STXXL_HAVE_MALLINFO_PROTO\n #include <malloc.h>\n#endif", "parent": 0, "children": [13, 14, 15, 16, 19], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 13, "type": "#if", "text": "#if", "parent": 12, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 3}}, {"id": 14, "type": "identifier", "text": "STXXL_HAVE_MALLINFO_PROTO", "parent": 12, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 29}}, {"id": 15, "type": "\n", "text": "\n", "parent": 12, "children": [], "start_point": {"row": 19, "column": 29}, "end_point": {"row": 20, "column": 0}}, {"id": 16, "type": "preproc_include", "text": "#include <malloc.h>\n", "parent": 12, "children": [17, 18], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 21, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 10}}, {"id": 18, "type": "system_lib_string", "text": "<malloc.h>", "parent": 16, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 21}}, {"id": 19, "type": "#endif", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 20, "type": "preproc_include", "text": "#include <cstdlib>\n", "parent": 0, "children": [21, 22], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 21, "type": "#include", "text": "#include", "parent": 20, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 22, "type": "system_lib_string", "text": "<cstdlib>", "parent": 20, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 18}}, {"id": 23, "type": "preproc_include", "text": "#include <stxxl/bits/namespace.h>\n", "parent": 0, "children": [24, 25], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 25, "type": "system_lib_string", "text": "<stxxl/bits/namespace.h>", "parent": 23, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 33}}, {"id": 26, "type": "preproc_include", "text": "#include <stxxl/bits/unused.h>\n", "parent": 0, "children": [27, 28], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 27, "type": "#include", "text": "#include", "parent": 26, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 28, "type": "system_lib_string", "text": "<stxxl/bits/unused.h>", "parent": 26, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 30}}, {"id": 29, "type": "function_definition", "text": "STXXL_BEGIN_NAMESPACE\n\n\n//! Access to some useful malloc statistics.\n\n//! malloc is default C++ allocator\nclass malloc_stats\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \\b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif\n}", "parent": 0, "children": [30, 31], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 117, "column": 1}}, {"id": 30, "type": "type_identifier", "text": "STXXL_BEGIN_NAMESPACE", "parent": 29, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 21}}, {"id": 31, "type": "identifier", "text": "malloc_stats", "parent": 29, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 18}}, {"id": 32, "type": "preproc_if", "text": "#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \\b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif", "parent": 29, "children": [33, 34, 35, 36, 42, 80, 118, 156, 194, 232, 246], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 116, "column": 6}}, {"id": 33, "type": "#if", "text": "#if", "parent": 32, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 3}}, {"id": 34, "type": "identifier", "text": "STXXL_HAVE_MALLINFO_PROTO", "parent": 32, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 29}}, {"id": 35, "type": "\n", "text": "\n\n", "parent": 32, "children": [], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 38, "column": 0}}, {"id": 36, "type": "labeled_statement", "text": "public:\n typedef int return_type;", "parent": 32, "children": [37], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 28}}, {"id": 37, "type": "declaration", "text": "typedef int return_type;", "parent": 36, "children": [38, 39, 41], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 28}}, {"id": 38, "type": "type_identifier", "text": "typedef", "parent": 37, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 11}}, {"id": 39, "type": "ERROR", "text": "int", "parent": 37, "children": [40], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 15}}, {"id": 40, "type": "identifier", "text": "int", "parent": 39, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 15}}, {"id": 41, "type": "identifier", "text": "return_type", "parent": 37, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 27}}, {"id": 42, "type": "function_definition", "text": "return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }", "parent": 32, "children": [43, 44, 47, 57, 61], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 53, "column": 5}}, {"id": 43, "type": "type_identifier", "text": "return_type", "parent": 42, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 15}}, {"id": 44, "type": "function_declarator", "text": "from_system_nmmap()", "parent": 42, "children": [45, 46], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 35}}, {"id": 45, "type": "identifier", "text": "from_system_nmmap", "parent": 44, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 33}}, {"id": 46, "type": "parameter_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 35}}, {"id": 47, "type": "declaration", "text": "const\n {\n struct mallinfo info = mallinfo();", "parent": 42, "children": [48, 51], "start_point": {"row": 42, "column": 36}, "end_point": {"row": 44, "column": 42}}, {"id": 48, "type": "struct_specifier", "text": "struct mallinfo", "parent": 47, "children": [49, 50], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 23}}, {"id": 49, "type": "struct", "text": "struct", "parent": 48, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 14}}, {"id": 50, "type": "type_identifier", "text": "mallinfo", "parent": 48, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 23}}, {"id": 51, "type": "init_declarator", "text": "info = mallinfo()", "parent": 47, "children": [52, 53, 54], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 41}}, {"id": 52, "type": "identifier", "text": "info", "parent": 51, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 28}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 30}}, {"id": 54, "type": "call_expression", "text": "mallinfo()", "parent": 51, "children": [55, 56], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 41}}, {"id": 55, "type": "identifier", "text": "mallinfo", "parent": 54, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 39}}, {"id": 56, "type": "argument_list", "text": "()", "parent": 54, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 41}}, {"id": 57, "type": "declaration", "text": "return info.arena;", "parent": 42, "children": [58, 60], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 26}}, {"id": 58, "type": "ERROR", "text": "info.", "parent": 57, "children": [59], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 20}}, {"id": 59, "type": "identifier", "text": "info", "parent": 58, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 19}}, {"id": 60, "type": "identifier", "text": "arena", "parent": 57, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 25}}, {"id": 61, "type": "ERROR", "text": "return_type free_chunks() const", "parent": 42, "children": [62, 63], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 35}}, {"id": 62, "type": "type_identifier", "text": "return_type", "parent": 61, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 15}}, {"id": 63, "type": "function_declarator", "text": "free_chunks() const", "parent": 61, "children": [64, 65], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 35}}, {"id": 64, "type": "identifier", "text": "free_chunks", "parent": 63, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 27}}, {"id": 65, "type": "parameter_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 49, "column": 27}, "end_point": {"row": 49, "column": 29}}, {"id": 66, "type": "declaration", "text": "struct mallinfo info = mallinfo();", "parent": 42, "children": [67, 70], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 42}}, {"id": 67, "type": "struct_specifier", "text": "struct mallinfo", "parent": 66, "children": [68, 69], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 23}}, {"id": 68, "type": "struct", "text": "struct", "parent": 67, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 14}}, {"id": 69, "type": "type_identifier", "text": "mallinfo", "parent": 67, "children": [], "start_point": {"row": 51, "column": 15}, "end_point": {"row": 51, "column": 23}}, {"id": 70, "type": "init_declarator", "text": "info = mallinfo()", "parent": 66, "children": [71, 72, 73], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 41}}, {"id": 71, "type": "identifier", "text": "info", "parent": 70, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 28}}, {"id": 72, "type": "=", "text": "=", "parent": 70, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 30}}, {"id": 73, "type": "call_expression", "text": "mallinfo()", "parent": 70, "children": [74, 75], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 41}}, {"id": 74, "type": "identifier", "text": "mallinfo", "parent": 73, "children": [], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 39}}, {"id": 75, "type": "argument_list", "text": "()", "parent": 73, "children": [], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 41}}, {"id": 76, "type": "return_statement", "text": "return info.ordblks;", "parent": 42, "children": [77], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 28}}, {"id": 77, "type": "field_expression", "text": "info.ordblks", "parent": 76, "children": [78, 79], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 27}}, {"id": 78, "type": "identifier", "text": "info", "parent": 77, "children": [], "start_point": {"row": 52, "column": 15}, "end_point": {"row": 52, "column": 19}}, {"id": 79, "type": "field_identifier", "text": "ordblks", "parent": 77, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 27}}, {"id": 80, "type": "function_definition", "text": "return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }", "parent": 32, "children": [81, 82, 85, 95, 99], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 67, "column": 5}}, {"id": 81, "type": "type_identifier", "text": "return_type", "parent": 80, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 15}}, {"id": 82, "type": "function_declarator", "text": "used()", "parent": 80, "children": [83, 84], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 22}}, {"id": 83, "type": "identifier", "text": "used", "parent": 82, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 20}}, {"id": 84, "type": "parameter_list", "text": "()", "parent": 82, "children": [], "start_point": {"row": 56, "column": 20}, "end_point": {"row": 56, "column": 22}}, {"id": 85, "type": "declaration", "text": "const\n {\n struct mallinfo info = mallinfo();", "parent": 80, "children": [86, 89], "start_point": {"row": 56, "column": 23}, "end_point": {"row": 58, "column": 42}}, {"id": 86, "type": "struct_specifier", "text": "struct mallinfo", "parent": 85, "children": [87, 88], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 23}}, {"id": 87, "type": "struct", "text": "struct", "parent": 86, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 14}}, {"id": 88, "type": "type_identifier", "text": "mallinfo", "parent": 86, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 23}}, {"id": 89, "type": "init_declarator", "text": "info = mallinfo()", "parent": 85, "children": [90, 91, 92], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 41}}, {"id": 90, "type": "identifier", "text": "info", "parent": 89, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 28}}, {"id": 91, "type": "=", "text": "=", "parent": 89, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 30}}, {"id": 92, "type": "call_expression", "text": "mallinfo()", "parent": 89, "children": [93, 94], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 41}}, {"id": 93, "type": "identifier", "text": "mallinfo", "parent": 92, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 39}}, {"id": 94, "type": "argument_list", "text": "()", "parent": 92, "children": [], "start_point": {"row": 58, "column": 39}, "end_point": {"row": 58, "column": 41}}, {"id": 95, "type": "declaration", "text": "return info.uordblks;", "parent": 80, "children": [96, 98], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 29}}, {"id": 96, "type": "ERROR", "text": "info.", "parent": 95, "children": [97], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 20}}, {"id": 97, "type": "identifier", "text": "info", "parent": 96, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 19}}, {"id": 98, "type": "identifier", "text": "uordblks", "parent": 95, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 28}}, {"id": 99, "type": "ERROR", "text": "return_type not_used() const", "parent": 80, "children": [100, 101], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 32}}, {"id": 100, "type": "type_identifier", "text": "return_type", "parent": 99, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 15}}, {"id": 101, "type": "function_declarator", "text": "not_used() const", "parent": 99, "children": [102, 103], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 32}}, {"id": 102, "type": "identifier", "text": "not_used", "parent": 101, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 24}}, {"id": 103, "type": "parameter_list", "text": "()", "parent": 101, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 26}}, {"id": 104, "type": "declaration", "text": "struct mallinfo info = mallinfo();", "parent": 80, "children": [105, 108], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 42}}, {"id": 105, "type": "struct_specifier", "text": "struct mallinfo", "parent": 104, "children": [106, 107], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 23}}, {"id": 106, "type": "struct", "text": "struct", "parent": 105, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 14}}, {"id": 107, "type": "type_identifier", "text": "mallinfo", "parent": 105, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 23}}, {"id": 108, "type": "init_declarator", "text": "info = mallinfo()", "parent": 104, "children": [109, 110, 111], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 41}}, {"id": 109, "type": "identifier", "text": "info", "parent": 108, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 28}}, {"id": 110, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 65, "column": 29}, "end_point": {"row": 65, "column": 30}}, {"id": 111, "type": "call_expression", "text": "mallinfo()", "parent": 108, "children": [112, 113], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 41}}, {"id": 112, "type": "identifier", "text": "mallinfo", "parent": 111, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 39}}, {"id": 113, "type": "argument_list", "text": "()", "parent": 111, "children": [], "start_point": {"row": 65, "column": 39}, "end_point": {"row": 65, "column": 41}}, {"id": 114, "type": "return_statement", "text": "return info.fordblks;", "parent": 80, "children": [115], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 29}}, {"id": 115, "type": "field_expression", "text": "info.fordblks", "parent": 114, "children": [116, 117], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 28}}, {"id": 116, "type": "identifier", "text": "info", "parent": 115, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 19}}, {"id": 117, "type": "field_identifier", "text": "fordblks", "parent": 115, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 28}}, {"id": 118, "type": "function_definition", "text": "return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }", "parent": 32, "children": [119, 120, 123, 133, 137], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 81, "column": 5}}, {"id": 119, "type": "type_identifier", "text": "return_type", "parent": 118, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 15}}, {"id": 120, "type": "function_declarator", "text": "releasable()", "parent": 118, "children": [121, 122], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 28}}, {"id": 121, "type": "identifier", "text": "releasable", "parent": 120, "children": [], "start_point": {"row": 70, "column": 16}, "end_point": {"row": 70, "column": 26}}, {"id": 122, "type": "parameter_list", "text": "()", "parent": 120, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 28}}, {"id": 123, "type": "declaration", "text": "const\n {\n struct mallinfo info = mallinfo();", "parent": 118, "children": [124, 127], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 72, "column": 42}}, {"id": 124, "type": "struct_specifier", "text": "struct mallinfo", "parent": 123, "children": [125, 126], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 23}}, {"id": 125, "type": "struct", "text": "struct", "parent": 124, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 14}}, {"id": 126, "type": "type_identifier", "text": "mallinfo", "parent": 124, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 23}}, {"id": 127, "type": "init_declarator", "text": "info = mallinfo()", "parent": 123, "children": [128, 129, 130], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 41}}, {"id": 128, "type": "identifier", "text": "info", "parent": 127, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 28}}, {"id": 129, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 30}}, {"id": 130, "type": "call_expression", "text": "mallinfo()", "parent": 127, "children": [131, 132], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 41}}, {"id": 131, "type": "identifier", "text": "mallinfo", "parent": 130, "children": [], "start_point": {"row": 72, "column": 31}, "end_point": {"row": 72, "column": 39}}, {"id": 132, "type": "argument_list", "text": "()", "parent": 130, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 41}}, {"id": 133, "type": "declaration", "text": "return info.keepcost;", "parent": 118, "children": [134, 136], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 29}}, {"id": 134, "type": "ERROR", "text": "info.", "parent": 133, "children": [135], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 20}}, {"id": 135, "type": "identifier", "text": "info", "parent": 134, "children": [], "start_point": {"row": 73, "column": 15}, "end_point": {"row": 73, "column": 19}}, {"id": 136, "type": "identifier", "text": "keepcost", "parent": 133, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 28}}, {"id": 137, "type": "ERROR", "text": "return_type max_allocated() const", "parent": 118, "children": [138, 139], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 37}}, {"id": 138, "type": "type_identifier", "text": "return_type", "parent": 137, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 15}}, {"id": 139, "type": "function_declarator", "text": "max_allocated() const", "parent": 137, "children": [140, 141], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 37}}, {"id": 140, "type": "identifier", "text": "max_allocated", "parent": 139, "children": [], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 29}}, {"id": 141, "type": "parameter_list", "text": "()", "parent": 139, "children": [], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 31}}, {"id": 142, "type": "declaration", "text": "struct mallinfo info = mallinfo();", "parent": 118, "children": [143, 146], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 42}}, {"id": 143, "type": "struct_specifier", "text": "struct mallinfo", "parent": 142, "children": [144, 145], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 23}}, {"id": 144, "type": "struct", "text": "struct", "parent": 143, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 14}}, {"id": 145, "type": "type_identifier", "text": "mallinfo", "parent": 143, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 23}}, {"id": 146, "type": "init_declarator", "text": "info = mallinfo()", "parent": 142, "children": [147, 148, 149], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 41}}, {"id": 147, "type": "identifier", "text": "info", "parent": 146, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 28}}, {"id": 148, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 30}}, {"id": 149, "type": "call_expression", "text": "mallinfo()", "parent": 146, "children": [150, 151], "start_point": {"row": 79, "column": 31}, "end_point": {"row": 79, "column": 41}}, {"id": 150, "type": "identifier", "text": "mallinfo", "parent": 149, "children": [], "start_point": {"row": 79, "column": 31}, "end_point": {"row": 79, "column": 39}}, {"id": 151, "type": "argument_list", "text": "()", "parent": 149, "children": [], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 41}}, {"id": 152, "type": "return_statement", "text": "return info.usmblks;", "parent": 118, "children": [153], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 28}}, {"id": 153, "type": "field_expression", "text": "info.usmblks", "parent": 152, "children": [154, 155], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 27}}, {"id": 154, "type": "identifier", "text": "info", "parent": 153, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 19}}, {"id": 155, "type": "field_identifier", "text": "usmblks", "parent": 153, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 27}}, {"id": 156, "type": "function_definition", "text": "return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }", "parent": 32, "children": [157, 158, 161, 171, 175], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 95, "column": 5}}, {"id": 157, "type": "type_identifier", "text": "return_type", "parent": 156, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 15}}, {"id": 158, "type": "function_declarator", "text": "fastbin_blocks()", "parent": 156, "children": [159, 160], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 32}}, {"id": 159, "type": "identifier", "text": "fastbin_blocks", "parent": 158, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 30}}, {"id": 160, "type": "parameter_list", "text": "()", "parent": 158, "children": [], "start_point": {"row": 84, "column": 30}, "end_point": {"row": 84, "column": 32}}, {"id": 161, "type": "declaration", "text": "const\n {\n struct mallinfo info = mallinfo();", "parent": 156, "children": [162, 165], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 86, "column": 42}}, {"id": 162, "type": "struct_specifier", "text": "struct mallinfo", "parent": 161, "children": [163, 164], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 23}}, {"id": 163, "type": "struct", "text": "struct", "parent": 162, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 14}}, {"id": 164, "type": "type_identifier", "text": "mallinfo", "parent": 162, "children": [], "start_point": {"row": 86, "column": 15}, "end_point": {"row": 86, "column": 23}}, {"id": 165, "type": "init_declarator", "text": "info = mallinfo()", "parent": 161, "children": [166, 167, 168], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 41}}, {"id": 166, "type": "identifier", "text": "info", "parent": 165, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 28}}, {"id": 167, "type": "=", "text": "=", "parent": 165, "children": [], "start_point": {"row": 86, "column": 29}, "end_point": {"row": 86, "column": 30}}, {"id": 168, "type": "call_expression", "text": "mallinfo()", "parent": 165, "children": [169, 170], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 41}}, {"id": 169, "type": "identifier", "text": "mallinfo", "parent": 168, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 39}}, {"id": 170, "type": "argument_list", "text": "()", "parent": 168, "children": [], "start_point": {"row": 86, "column": 39}, "end_point": {"row": 86, "column": 41}}, {"id": 171, "type": "declaration", "text": "return info.smblks;", "parent": 156, "children": [172, 174], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 27}}, {"id": 172, "type": "ERROR", "text": "info.", "parent": 171, "children": [173], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 20}}, {"id": 173, "type": "identifier", "text": "info", "parent": 172, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 19}}, {"id": 174, "type": "identifier", "text": "smblks", "parent": 171, "children": [], "start_point": {"row": 87, "column": 20}, "end_point": {"row": 87, "column": 26}}, {"id": 175, "type": "ERROR", "text": "return_type fastbin_free() const", "parent": 156, "children": [176, 177], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 36}}, {"id": 176, "type": "type_identifier", "text": "return_type", "parent": 175, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 15}}, {"id": 177, "type": "function_declarator", "text": "fastbin_free() const", "parent": 175, "children": [178, 179], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 36}}, {"id": 178, "type": "identifier", "text": "fastbin_free", "parent": 177, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 28}}, {"id": 179, "type": "parameter_list", "text": "()", "parent": 177, "children": [], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 30}}, {"id": 180, "type": "declaration", "text": "struct mallinfo info = mallinfo();", "parent": 156, "children": [181, 184], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 42}}, {"id": 181, "type": "struct_specifier", "text": "struct mallinfo", "parent": 180, "children": [182, 183], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 23}}, {"id": 182, "type": "struct", "text": "struct", "parent": 181, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 14}}, {"id": 183, "type": "type_identifier", "text": "mallinfo", "parent": 181, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 23}}, {"id": 184, "type": "init_declarator", "text": "info = mallinfo()", "parent": 180, "children": [185, 186, 187], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 41}}, {"id": 185, "type": "identifier", "text": "info", "parent": 184, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 28}}, {"id": 186, "type": "=", "text": "=", "parent": 184, "children": [], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 30}}, {"id": 187, "type": "call_expression", "text": "mallinfo()", "parent": 184, "children": [188, 189], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 41}}, {"id": 188, "type": "identifier", "text": "mallinfo", "parent": 187, "children": [], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 39}}, {"id": 189, "type": "argument_list", "text": "()", "parent": 187, "children": [], "start_point": {"row": 93, "column": 39}, "end_point": {"row": 93, "column": 41}}, {"id": 190, "type": "return_statement", "text": "return info.fsmblks;", "parent": 156, "children": [191], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 28}}, {"id": 191, "type": "field_expression", "text": "info.fsmblks", "parent": 190, "children": [192, 193], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 27}}, {"id": 192, "type": "identifier", "text": "info", "parent": 191, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 19}}, {"id": 193, "type": "field_identifier", "text": "fsmblks", "parent": 191, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 27}}, {"id": 194, "type": "function_definition", "text": "return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }", "parent": 32, "children": [195, 196, 199, 209, 213], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 109, "column": 5}}, {"id": 195, "type": "type_identifier", "text": "return_type", "parent": 194, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 15}}, {"id": 196, "type": "function_declarator", "text": "from_system_mmap()", "parent": 194, "children": [197, 198], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 34}}, {"id": 197, "type": "identifier", "text": "from_system_mmap", "parent": 196, "children": [], "start_point": {"row": 98, "column": 16}, "end_point": {"row": 98, "column": 32}}, {"id": 198, "type": "parameter_list", "text": "()", "parent": 196, "children": [], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 34}}, {"id": 199, "type": "declaration", "text": "const\n {\n struct mallinfo info = mallinfo();", "parent": 194, "children": [200, 203], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 100, "column": 42}}, {"id": 200, "type": "struct_specifier", "text": "struct mallinfo", "parent": 199, "children": [201, 202], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 23}}, {"id": 201, "type": "struct", "text": "struct", "parent": 200, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 14}}, {"id": 202, "type": "type_identifier", "text": "mallinfo", "parent": 200, "children": [], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 23}}, {"id": 203, "type": "init_declarator", "text": "info = mallinfo()", "parent": 199, "children": [204, 205, 206], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 41}}, {"id": 204, "type": "identifier", "text": "info", "parent": 203, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 28}}, {"id": 205, "type": "=", "text": "=", "parent": 203, "children": [], "start_point": {"row": 100, "column": 29}, "end_point": {"row": 100, "column": 30}}, {"id": 206, "type": "call_expression", "text": "mallinfo()", "parent": 203, "children": [207, 208], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 41}}, {"id": 207, "type": "identifier", "text": "mallinfo", "parent": 206, "children": [], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 39}}, {"id": 208, "type": "argument_list", "text": "()", "parent": 206, "children": [], "start_point": {"row": 100, "column": 39}, "end_point": {"row": 100, "column": 41}}, {"id": 209, "type": "declaration", "text": "return info.hblkhd;", "parent": 194, "children": [210, 212], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 27}}, {"id": 210, "type": "ERROR", "text": "info.", "parent": 209, "children": [211], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 20}}, {"id": 211, "type": "identifier", "text": "info", "parent": 210, "children": [], "start_point": {"row": 101, "column": 15}, "end_point": {"row": 101, "column": 19}}, {"id": 212, "type": "identifier", "text": "hblkhd", "parent": 209, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 26}}, {"id": 213, "type": "ERROR", "text": "return_type mmap_chunks() const", "parent": 194, "children": [214, 215], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 35}}, {"id": 214, "type": "type_identifier", "text": "return_type", "parent": 213, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 15}}, {"id": 215, "type": "function_declarator", "text": "mmap_chunks() const", "parent": 213, "children": [216, 217], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 35}}, {"id": 216, "type": "identifier", "text": "mmap_chunks", "parent": 215, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 27}}, {"id": 217, "type": "parameter_list", "text": "()", "parent": 215, "children": [], "start_point": {"row": 105, "column": 27}, "end_point": {"row": 105, "column": 29}}, {"id": 218, "type": "declaration", "text": "struct mallinfo info = mallinfo();", "parent": 194, "children": [219, 222], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 42}}, {"id": 219, "type": "struct_specifier", "text": "struct mallinfo", "parent": 218, "children": [220, 221], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 23}}, {"id": 220, "type": "struct", "text": "struct", "parent": 219, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 14}}, {"id": 221, "type": "type_identifier", "text": "mallinfo", "parent": 219, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 23}}, {"id": 222, "type": "init_declarator", "text": "info = mallinfo()", "parent": 218, "children": [223, 224, 225], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 41}}, {"id": 223, "type": "identifier", "text": "info", "parent": 222, "children": [], "start_point": {"row": 107, "column": 24}, "end_point": {"row": 107, "column": 28}}, {"id": 224, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 107, "column": 29}, "end_point": {"row": 107, "column": 30}}, {"id": 225, "type": "call_expression", "text": "mallinfo()", "parent": 222, "children": [226, 227], "start_point": {"row": 107, "column": 31}, "end_point": {"row": 107, "column": 41}}, {"id": 226, "type": "identifier", "text": "mallinfo", "parent": 225, "children": [], "start_point": {"row": 107, "column": 31}, "end_point": {"row": 107, "column": 39}}, {"id": 227, "type": "argument_list", "text": "()", "parent": 225, "children": [], "start_point": {"row": 107, "column": 39}, "end_point": {"row": 107, "column": 41}}, {"id": 228, "type": "return_statement", "text": "return info.hblks;", "parent": 194, "children": [229], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 26}}, {"id": 229, "type": "field_expression", "text": "info.hblks", "parent": 228, "children": [230, 231], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 25}}, {"id": 230, "type": "identifier", "text": "info", "parent": 229, "children": [], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 19}}, {"id": 231, "type": "field_identifier", "text": "hblks", "parent": 229, "children": [], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 25}}, {"id": 232, "type": "ERROR", "text": "return_type from_system_total() const", "parent": 32, "children": [233, 234], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 41}}, {"id": 233, "type": "type_identifier", "text": "return_type", "parent": 232, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 15}}, {"id": 234, "type": "function_declarator", "text": "from_system_total()", "parent": 232, "children": [235, 236], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 35}}, {"id": 235, "type": "identifier", "text": "from_system_total", "parent": 234, "children": [], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 33}}, {"id": 236, "type": "parameter_list", "text": "()", "parent": 234, "children": [], "start_point": {"row": 112, "column": 33}, "end_point": {"row": 112, "column": 35}}, {"id": 237, "type": "return_statement", "text": "return from_system_nmmap() + from_system_mmap();", "parent": 32, "children": [238], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 56}}, {"id": 238, "type": "binary_expression", "text": "from_system_nmmap() + from_system_mmap()", "parent": 237, "children": [239, 242, 243], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 55}}, {"id": 239, "type": "call_expression", "text": "from_system_nmmap()", "parent": 238, "children": [240, 241], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 34}}, {"id": 240, "type": "identifier", "text": "from_system_nmmap", "parent": 239, "children": [], "start_point": {"row": 114, "column": 15}, "end_point": {"row": 114, "column": 32}}, {"id": 241, "type": "argument_list", "text": "()", "parent": 239, "children": [], "start_point": {"row": 114, "column": 32}, "end_point": {"row": 114, "column": 34}}, {"id": 242, "type": "+", "text": "+", "parent": 238, "children": [], "start_point": {"row": 114, "column": 35}, "end_point": {"row": 114, "column": 36}}, {"id": 243, "type": "call_expression", "text": "from_system_mmap()", "parent": 238, "children": [244, 245], "start_point": {"row": 114, "column": 37}, "end_point": {"row": 114, "column": 55}}, {"id": 244, "type": "identifier", "text": "from_system_mmap", "parent": 243, "children": [], "start_point": {"row": 114, "column": 37}, "end_point": {"row": 114, "column": 53}}, {"id": 245, "type": "argument_list", "text": "()", "parent": 243, "children": [], "start_point": {"row": 114, "column": 53}, "end_point": {"row": 114, "column": 55}}, {"id": 246, "type": "#endif", "text": "#endif", "parent": 32, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 6}}, {"id": 247, "type": "declaration", "text": "inline std::ostream", "parent": 0, "children": [248, 250, 251], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 19}}, {"id": 248, "type": "storage_class_specifier", "text": "inline", "parent": 247, "children": [249], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 6}}, {"id": 249, "type": "inline", "text": "inline", "parent": 248, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 6}}, {"id": 250, "type": "type_identifier", "text": "std", "parent": 247, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 10}}, {"id": 251, "type": "identifier", "text": "ostream", "parent": 247, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 19}}, {"id": 252, "type": "binary_expression", "text": "& operator << (std::ostream& s, const malloc_stats& st)", "parent": 0, "children": [253, 255, 256], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 74}}, {"id": 253, "type": "pointer_expression", "text": "& operator", "parent": 252, "children": [254], "start_point": {"row": 120, "column": 19}, "end_point": {"row": 120, "column": 29}}, {"id": 254, "type": "identifier", "text": "operator", "parent": 253, "children": [], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 29}}, {"id": 255, "type": "<<", "text": "<<", "parent": 252, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 32}}, {"id": 256, "type": "parenthesized_expression", "text": "(std::ostream& s, const malloc_stats& st)", "parent": 252, "children": [257, 259], "start_point": {"row": 120, "column": 33}, "end_point": {"row": 120, "column": 74}}, {"id": 257, "type": "ERROR", "text": "std::", "parent": 256, "children": [258], "start_point": {"row": 120, "column": 34}, "end_point": {"row": 120, "column": 39}}, {"id": 258, "type": "identifier", "text": "std", "parent": 257, "children": [], "start_point": {"row": 120, "column": 34}, "end_point": {"row": 120, "column": 37}}, {"id": 259, "type": "comma_expression", "text": "ostream& s, const malloc_stats& st", "parent": 256, "children": [260, 263], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 73}}, {"id": 260, "type": "binary_expression", "text": "ostream& s", "parent": 259, "children": [261, 262], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 49}}, {"id": 261, "type": "identifier", "text": "ostream", "parent": 260, "children": [], "start_point": {"row": 120, "column": 39}, "end_point": {"row": 120, "column": 46}}, {"id": 262, "type": "identifier", "text": "s", "parent": 260, "children": [], "start_point": {"row": 120, "column": 48}, "end_point": {"row": 120, "column": 49}}, {"id": 263, "type": "binary_expression", "text": "malloc_stats& st", "parent": 259, "children": [264, 265], "start_point": {"row": 120, "column": 57}, "end_point": {"row": 120, "column": 73}}, {"id": 264, "type": "identifier", "text": "malloc_stats", "parent": 263, "children": [], "start_point": {"row": 120, "column": 57}, "end_point": {"row": 120, "column": 69}}, {"id": 265, "type": "identifier", "text": "st", "parent": 263, "children": [], "start_point": {"row": 120, "column": 71}, "end_point": {"row": 120, "column": 73}}, {"id": 266, "type": "preproc_if", "text": "#if STXXL_HAVE_MALLINFO_PROTO\n s << \"MALLOC statistics\" << std::endl;\n s << \"=================================================================\" << std::endl;\n s << \"Space allocated from system not using mmap: \" << st.from_system_nmmap() << \" bytes\" << std::endl;\n s << \" number of free chunks : \" << st.free_chunks() << std::endl;\n s << \" space allocated and in use : \" << st.used() << \" bytes\" << std::endl;\n s << \" space allocated but not in use : \" << st.not_used() << \" bytes\" << std::endl;\n s << \" top-most, releasable (via malloc_trim) space: \" << st.releasable() << \" bytes\" << std::endl;\n s << \" maximum total allocated space (?) : \" << st.max_allocated() << \" bytes\" << std::endl;\n s << \" FASTBIN blocks \" << std::endl;\n s << \" number of fastbin blocks: \" << st.fastbin_blocks() << std::endl;\n s << \" space available in freed fastbin blocks: \" << st.fastbin_free() << \" bytes\" << std::endl;\n s << \"Space allocated from system using mmap: \" << st.from_system_mmap() << \" bytes\" << std::endl;\n s << \" number of chunks allocated via mmap(): \" << st.mmap_chunks() << std::endl;\n s << \"Total space allocated from system (mmap and not mmap): \" <<\n st.from_system_total() << \" bytes\" << std::endl;\n s << \"=================================================================\" << std::endl;\n#else\n s << \"MALLOC statistics are not supported on this platform\";\n STXXL_UNUSED(st);\n#endif", "parent": 0, "children": [267, 268, 269, 506, 516], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 142, "column": 6}}, {"id": 267, "type": "#if", "text": "#if", "parent": 266, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 3}}, {"id": 268, "type": "identifier", "text": "STXXL_HAVE_MALLINFO_PROTO", "parent": 266, "children": [], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 29}}, {"id": 269, "type": "\n", "text": "\n", "parent": 266, "children": [], "start_point": {"row": 122, "column": 29}, "end_point": {"row": 123, "column": 0}}, {"id": 270, "type": "binary_expression", "text": "s << \"MALLOC statistics\" << std", "parent": 266, "children": [271, 275, 276], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 35}}, {"id": 271, "type": "binary_expression", "text": "s << \"MALLOC statistics\"", "parent": 270, "children": [272, 273, 274], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 28}}, {"id": 272, "type": "identifier", "text": "s", "parent": 271, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 5}}, {"id": 273, "type": "<<", "text": "<<", "parent": 271, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 8}}, {"id": 274, "type": "string_literal", "text": "\"MALLOC statistics\"", "parent": 271, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 28}}, {"id": 275, "type": "<<", "text": "<<", "parent": 270, "children": [], "start_point": {"row": 123, "column": 29}, "end_point": {"row": 123, "column": 31}}, {"id": 276, "type": "identifier", "text": "std", "parent": 270, "children": [], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 35}}, {"id": 277, "type": "ERROR", "text": "::endl", "parent": 266, "children": [278], "start_point": {"row": 123, "column": 35}, "end_point": {"row": 123, "column": 41}}, {"id": 278, "type": "identifier", "text": "endl", "parent": 277, "children": [], "start_point": {"row": 123, "column": 37}, "end_point": {"row": 123, "column": 41}}, {"id": 279, "type": "binary_expression", "text": "s << \"=================================================================\" << std", "parent": 266, "children": [280, 284, 285], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 83}}, {"id": 280, "type": "binary_expression", "text": "s << \"=================================================================\"", "parent": 279, "children": [281, 282, 283], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 76}}, {"id": 281, "type": "identifier", "text": "s", "parent": 280, "children": [], "start_point": {"row": 124, "column": 4}, "end_point": {"row": 124, "column": 5}}, {"id": 282, "type": "<<", "text": "<<", "parent": 280, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 8}}, {"id": 283, "type": "string_literal", "text": "\"=================================================================\"", "parent": 280, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 76}}, {"id": 284, "type": "<<", "text": "<<", "parent": 279, "children": [], "start_point": {"row": 124, "column": 77}, "end_point": {"row": 124, "column": 79}}, {"id": 285, "type": "identifier", "text": "std", "parent": 279, "children": [], "start_point": {"row": 124, "column": 80}, "end_point": {"row": 124, "column": 83}}, {"id": 286, "type": "ERROR", "text": "::endl", "parent": 266, "children": [287], "start_point": {"row": 124, "column": 83}, "end_point": {"row": 124, "column": 89}}, {"id": 287, "type": "identifier", "text": "endl", "parent": 286, "children": [], "start_point": {"row": 124, "column": 85}, "end_point": {"row": 124, "column": 89}}, {"id": 288, "type": "binary_expression", "text": "s << \"Space allocated from system not using mmap: \" << st.from_system_nmmap() << \" bytes\" << std", "parent": 266, "children": [289, 303, 304], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 100}}, {"id": 289, "type": "binary_expression", "text": "s << \"Space allocated from system not using mmap: \" << st.from_system_nmmap() << \" bytes\"", "parent": 288, "children": [290, 301, 302], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 93}}, {"id": 290, "type": "binary_expression", "text": "s << \"Space allocated from system not using mmap: \" << st.from_system_nmmap()", "parent": 289, "children": [291, 295, 296], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 81}}, {"id": 291, "type": "binary_expression", "text": "s << \"Space allocated from system not using mmap: \"", "parent": 290, "children": [292, 293, 294], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 55}}, {"id": 292, "type": "identifier", "text": "s", "parent": 291, "children": [], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 5}}, {"id": 293, "type": "<<", "text": "<<", "parent": 291, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 8}}, {"id": 294, "type": "string_literal", "text": "\"Space allocated from system not using mmap: \"", "parent": 291, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 55}}, {"id": 295, "type": "<<", "text": "<<", "parent": 290, "children": [], "start_point": {"row": 125, "column": 56}, "end_point": {"row": 125, "column": 58}}, {"id": 296, "type": "call_expression", "text": "st.from_system_nmmap()", "parent": 290, "children": [297, 300], "start_point": {"row": 125, "column": 59}, "end_point": {"row": 125, "column": 81}}, {"id": 297, "type": "field_expression", "text": "st.from_system_nmmap", "parent": 296, "children": [298, 299], "start_point": {"row": 125, "column": 59}, "end_point": {"row": 125, "column": 79}}, {"id": 298, "type": "identifier", "text": "st", "parent": 297, "children": [], "start_point": {"row": 125, "column": 59}, "end_point": {"row": 125, "column": 61}}, {"id": 299, "type": "field_identifier", "text": "from_system_nmmap", "parent": 297, "children": [], "start_point": {"row": 125, "column": 62}, "end_point": {"row": 125, "column": 79}}, {"id": 300, "type": "argument_list", "text": "()", "parent": 296, "children": [], "start_point": {"row": 125, "column": 79}, "end_point": {"row": 125, "column": 81}}, {"id": 301, "type": "<<", "text": "<<", "parent": 289, "children": [], "start_point": {"row": 125, "column": 82}, "end_point": {"row": 125, "column": 84}}, {"id": 302, "type": "string_literal", "text": "\" bytes\"", "parent": 289, "children": [], "start_point": {"row": 125, "column": 85}, "end_point": {"row": 125, "column": 93}}, {"id": 303, "type": "<<", "text": "<<", "parent": 288, "children": [], "start_point": {"row": 125, "column": 94}, "end_point": {"row": 125, "column": 96}}, {"id": 304, "type": "identifier", "text": "std", "parent": 288, "children": [], "start_point": {"row": 125, "column": 97}, "end_point": {"row": 125, "column": 100}}, {"id": 305, "type": "ERROR", "text": "::endl", "parent": 266, "children": [306], "start_point": {"row": 125, "column": 100}, "end_point": {"row": 125, "column": 106}}, {"id": 306, "type": "identifier", "text": "endl", "parent": 305, "children": [], "start_point": {"row": 125, "column": 102}, "end_point": {"row": 125, "column": 106}}, {"id": 307, "type": "binary_expression", "text": "s << \" number of free chunks : \" << st.free_chunks() << std", "parent": 266, "children": [308, 319, 320], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 91}}, {"id": 308, "type": "binary_expression", "text": "s << \" number of free chunks : \" << st.free_chunks()", "parent": 307, "children": [309, 313, 314], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 84}}, {"id": 309, "type": "binary_expression", "text": "s << \" number of free chunks : \"", "parent": 308, "children": [310, 311, 312], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 64}}, {"id": 310, "type": "identifier", "text": "s", "parent": 309, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 5}}, {"id": 311, "type": "<<", "text": "<<", "parent": 309, "children": [], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 8}}, {"id": 312, "type": "string_literal", "text": "\" number of free chunks : \"", "parent": 309, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 64}}, {"id": 313, "type": "<<", "text": "<<", "parent": 308, "children": [], "start_point": {"row": 126, "column": 65}, "end_point": {"row": 126, "column": 67}}, {"id": 314, "type": "call_expression", "text": "st.free_chunks()", "parent": 308, "children": [315, 318], "start_point": {"row": 126, "column": 68}, "end_point": {"row": 126, "column": 84}}, {"id": 315, "type": "field_expression", "text": "st.free_chunks", "parent": 314, "children": [316, 317], "start_point": {"row": 126, "column": 68}, "end_point": {"row": 126, "column": 82}}, {"id": 316, "type": "identifier", "text": "st", "parent": 315, "children": [], "start_point": {"row": 126, "column": 68}, "end_point": {"row": 126, "column": 70}}, {"id": 317, "type": "field_identifier", "text": "free_chunks", "parent": 315, "children": [], "start_point": {"row": 126, "column": 71}, "end_point": {"row": 126, "column": 82}}, {"id": 318, "type": "argument_list", "text": "()", "parent": 314, "children": [], "start_point": {"row": 126, "column": 82}, "end_point": {"row": 126, "column": 84}}, {"id": 319, "type": "<<", "text": "<<", "parent": 307, "children": [], "start_point": {"row": 126, "column": 85}, "end_point": {"row": 126, "column": 87}}, {"id": 320, "type": "identifier", "text": "std", "parent": 307, "children": [], "start_point": {"row": 126, "column": 88}, "end_point": {"row": 126, "column": 91}}, {"id": 321, "type": "ERROR", "text": "::endl", "parent": 266, "children": [322], "start_point": {"row": 126, "column": 91}, "end_point": {"row": 126, "column": 97}}, {"id": 322, "type": "identifier", "text": "endl", "parent": 321, "children": [], "start_point": {"row": 126, "column": 93}, "end_point": {"row": 126, "column": 97}}, {"id": 323, "type": "binary_expression", "text": "s << \" space allocated and in use : \" << st.used() << \" bytes\" << std", "parent": 266, "children": [324, 338, 339], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 96}}, {"id": 324, "type": "binary_expression", "text": "s << \" space allocated and in use : \" << st.used() << \" bytes\"", "parent": 323, "children": [325, 336, 337], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 89}}, {"id": 325, "type": "binary_expression", "text": "s << \" space allocated and in use : \" << st.used()", "parent": 324, "children": [326, 330, 331], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 77}}, {"id": 326, "type": "binary_expression", "text": "s << \" space allocated and in use : \"", "parent": 325, "children": [327, 328, 329], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 64}}, {"id": 327, "type": "identifier", "text": "s", "parent": 326, "children": [], "start_point": {"row": 127, "column": 4}, "end_point": {"row": 127, "column": 5}}, {"id": 328, "type": "<<", "text": "<<", "parent": 326, "children": [], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 8}}, {"id": 329, "type": "string_literal", "text": "\" space allocated and in use : \"", "parent": 326, "children": [], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 64}}, {"id": 330, "type": "<<", "text": "<<", "parent": 325, "children": [], "start_point": {"row": 127, "column": 65}, "end_point": {"row": 127, "column": 67}}, {"id": 331, "type": "call_expression", "text": "st.used()", "parent": 325, "children": [332, 335], "start_point": {"row": 127, "column": 68}, "end_point": {"row": 127, "column": 77}}, {"id": 332, "type": "field_expression", "text": "st.used", "parent": 331, "children": [333, 334], "start_point": {"row": 127, "column": 68}, "end_point": {"row": 127, "column": 75}}, {"id": 333, "type": "identifier", "text": "st", "parent": 332, "children": [], "start_point": {"row": 127, "column": 68}, "end_point": {"row": 127, "column": 70}}, {"id": 334, "type": "field_identifier", "text": "used", "parent": 332, "children": [], "start_point": {"row": 127, "column": 71}, "end_point": {"row": 127, "column": 75}}, {"id": 335, "type": "argument_list", "text": "()", "parent": 331, "children": [], "start_point": {"row": 127, "column": 75}, "end_point": {"row": 127, "column": 77}}, {"id": 336, "type": "<<", "text": "<<", "parent": 324, "children": [], "start_point": {"row": 127, "column": 78}, "end_point": {"row": 127, "column": 80}}, {"id": 337, "type": "string_literal", "text": "\" bytes\"", "parent": 324, "children": [], "start_point": {"row": 127, "column": 81}, "end_point": {"row": 127, "column": 89}}, {"id": 338, "type": "<<", "text": "<<", "parent": 323, "children": [], "start_point": {"row": 127, "column": 90}, "end_point": {"row": 127, "column": 92}}, {"id": 339, "type": "identifier", "text": "std", "parent": 323, "children": [], "start_point": {"row": 127, "column": 93}, "end_point": {"row": 127, "column": 96}}, {"id": 340, "type": "ERROR", "text": "::endl", "parent": 266, "children": [341], "start_point": {"row": 127, "column": 96}, "end_point": {"row": 127, "column": 102}}, {"id": 341, "type": "identifier", "text": "endl", "parent": 340, "children": [], "start_point": {"row": 127, "column": 98}, "end_point": {"row": 127, "column": 102}}, {"id": 342, "type": "binary_expression", "text": "s << \" space allocated but not in use : \" << st.not_used() << \" bytes\" << std", "parent": 266, "children": [343, 357, 358], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 100}}, {"id": 343, "type": "binary_expression", "text": "s << \" space allocated but not in use : \" << st.not_used() << \" bytes\"", "parent": 342, "children": [344, 355, 356], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 93}}, {"id": 344, "type": "binary_expression", "text": "s << \" space allocated but not in use : \" << st.not_used()", "parent": 343, "children": [345, 349, 350], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 81}}, {"id": 345, "type": "binary_expression", "text": "s << \" space allocated but not in use : \"", "parent": 344, "children": [346, 347, 348], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 64}}, {"id": 346, "type": "identifier", "text": "s", "parent": 345, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 5}}, {"id": 347, "type": "<<", "text": "<<", "parent": 345, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 8}}, {"id": 348, "type": "string_literal", "text": "\" space allocated but not in use : \"", "parent": 345, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 64}}, {"id": 349, "type": "<<", "text": "<<", "parent": 344, "children": [], "start_point": {"row": 128, "column": 65}, "end_point": {"row": 128, "column": 67}}, {"id": 350, "type": "call_expression", "text": "st.not_used()", "parent": 344, "children": [351, 354], "start_point": {"row": 128, "column": 68}, "end_point": {"row": 128, "column": 81}}, {"id": 351, "type": "field_expression", "text": "st.not_used", "parent": 350, "children": [352, 353], "start_point": {"row": 128, "column": 68}, "end_point": {"row": 128, "column": 79}}, {"id": 352, "type": "identifier", "text": "st", "parent": 351, "children": [], "start_point": {"row": 128, "column": 68}, "end_point": {"row": 128, "column": 70}}, {"id": 353, "type": "field_identifier", "text": "not_used", "parent": 351, "children": [], "start_point": {"row": 128, "column": 71}, "end_point": {"row": 128, "column": 79}}, {"id": 354, "type": "argument_list", "text": "()", "parent": 350, "children": [], "start_point": {"row": 128, "column": 79}, "end_point": {"row": 128, "column": 81}}, {"id": 355, "type": "<<", "text": "<<", "parent": 343, "children": [], "start_point": {"row": 128, "column": 82}, "end_point": {"row": 128, "column": 84}}, {"id": 356, "type": "string_literal", "text": "\" bytes\"", "parent": 343, "children": [], "start_point": {"row": 128, "column": 85}, "end_point": {"row": 128, "column": 93}}, {"id": 357, "type": "<<", "text": "<<", "parent": 342, "children": [], "start_point": {"row": 128, "column": 94}, "end_point": {"row": 128, "column": 96}}, {"id": 358, "type": "identifier", "text": "std", "parent": 342, "children": [], "start_point": {"row": 128, "column": 97}, "end_point": {"row": 128, "column": 100}}, {"id": 359, "type": "ERROR", "text": "::endl", "parent": 266, "children": [360], "start_point": {"row": 128, "column": 100}, "end_point": {"row": 128, "column": 106}}, {"id": 360, "type": "identifier", "text": "endl", "parent": 359, "children": [], "start_point": {"row": 128, "column": 102}, "end_point": {"row": 128, "column": 106}}, {"id": 361, "type": "binary_expression", "text": "s << \" top-most, releasable (via malloc_trim) space: \" << st.releasable() << \" bytes\" << std", "parent": 266, "children": [362, 376, 377], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 102}}, {"id": 362, "type": "binary_expression", "text": "s << \" top-most, releasable (via malloc_trim) space: \" << st.releasable() << \" bytes\"", "parent": 361, "children": [363, 374, 375], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 95}}, {"id": 363, "type": "binary_expression", "text": "s << \" top-most, releasable (via malloc_trim) space: \" << st.releasable()", "parent": 362, "children": [364, 368, 369], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 83}}, {"id": 364, "type": "binary_expression", "text": "s << \" top-most, releasable (via malloc_trim) space: \"", "parent": 363, "children": [365, 366, 367], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 64}}, {"id": 365, "type": "identifier", "text": "s", "parent": 364, "children": [], "start_point": {"row": 129, "column": 4}, "end_point": {"row": 129, "column": 5}}, {"id": 366, "type": "<<", "text": "<<", "parent": 364, "children": [], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 8}}, {"id": 367, "type": "string_literal", "text": "\" top-most, releasable (via malloc_trim) space: \"", "parent": 364, "children": [], "start_point": {"row": 129, "column": 9}, "end_point": {"row": 129, "column": 64}}, {"id": 368, "type": "<<", "text": "<<", "parent": 363, "children": [], "start_point": {"row": 129, "column": 65}, "end_point": {"row": 129, "column": 67}}, {"id": 369, "type": "call_expression", "text": "st.releasable()", "parent": 363, "children": [370, 373], "start_point": {"row": 129, "column": 68}, "end_point": {"row": 129, "column": 83}}, {"id": 370, "type": "field_expression", "text": "st.releasable", "parent": 369, "children": [371, 372], "start_point": {"row": 129, "column": 68}, "end_point": {"row": 129, "column": 81}}, {"id": 371, "type": "identifier", "text": "st", "parent": 370, "children": [], "start_point": {"row": 129, "column": 68}, "end_point": {"row": 129, "column": 70}}, {"id": 372, "type": "field_identifier", "text": "releasable", "parent": 370, "children": [], "start_point": {"row": 129, "column": 71}, "end_point": {"row": 129, "column": 81}}, {"id": 373, "type": "argument_list", "text": "()", "parent": 369, "children": [], "start_point": {"row": 129, "column": 81}, "end_point": {"row": 129, "column": 83}}, {"id": 374, "type": "<<", "text": "<<", "parent": 362, "children": [], "start_point": {"row": 129, "column": 84}, "end_point": {"row": 129, "column": 86}}, {"id": 375, "type": "string_literal", "text": "\" bytes\"", "parent": 362, "children": [], "start_point": {"row": 129, "column": 87}, "end_point": {"row": 129, "column": 95}}, {"id": 376, "type": "<<", "text": "<<", "parent": 361, "children": [], "start_point": {"row": 129, "column": 96}, "end_point": {"row": 129, "column": 98}}, {"id": 377, "type": "identifier", "text": "std", "parent": 361, "children": [], "start_point": {"row": 129, "column": 99}, "end_point": {"row": 129, "column": 102}}, {"id": 378, "type": "ERROR", "text": "::endl", "parent": 266, "children": [379], "start_point": {"row": 129, "column": 102}, "end_point": {"row": 129, "column": 108}}, {"id": 379, "type": "identifier", "text": "endl", "parent": 378, "children": [], "start_point": {"row": 129, "column": 104}, "end_point": {"row": 129, "column": 108}}, {"id": 380, "type": "binary_expression", "text": "s << \" maximum total allocated space (?) : \" << st.max_allocated() << \" bytes\" << std", "parent": 266, "children": [381, 395, 396], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 105}}, {"id": 381, "type": "binary_expression", "text": "s << \" maximum total allocated space (?) : \" << st.max_allocated() << \" bytes\"", "parent": 380, "children": [382, 393, 394], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 98}}, {"id": 382, "type": "binary_expression", "text": "s << \" maximum total allocated space (?) : \" << st.max_allocated()", "parent": 381, "children": [383, 387, 388], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 86}}, {"id": 383, "type": "binary_expression", "text": "s << \" maximum total allocated space (?) : \"", "parent": 382, "children": [384, 385, 386], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 64}}, {"id": 384, "type": "identifier", "text": "s", "parent": 383, "children": [], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 130, "column": 5}}, {"id": 385, "type": "<<", "text": "<<", "parent": 383, "children": [], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 8}}, {"id": 386, "type": "string_literal", "text": "\" maximum total allocated space (?) : \"", "parent": 383, "children": [], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 64}}, {"id": 387, "type": "<<", "text": "<<", "parent": 382, "children": [], "start_point": {"row": 130, "column": 65}, "end_point": {"row": 130, "column": 67}}, {"id": 388, "type": "call_expression", "text": "st.max_allocated()", "parent": 382, "children": [389, 392], "start_point": {"row": 130, "column": 68}, "end_point": {"row": 130, "column": 86}}, {"id": 389, "type": "field_expression", "text": "st.max_allocated", "parent": 388, "children": [390, 391], "start_point": {"row": 130, "column": 68}, "end_point": {"row": 130, "column": 84}}, {"id": 390, "type": "identifier", "text": "st", "parent": 389, "children": [], "start_point": {"row": 130, "column": 68}, "end_point": {"row": 130, "column": 70}}, {"id": 391, "type": "field_identifier", "text": "max_allocated", "parent": 389, "children": [], "start_point": {"row": 130, "column": 71}, "end_point": {"row": 130, "column": 84}}, {"id": 392, "type": "argument_list", "text": "()", "parent": 388, "children": [], "start_point": {"row": 130, "column": 84}, "end_point": {"row": 130, "column": 86}}, {"id": 393, "type": "<<", "text": "<<", "parent": 381, "children": [], "start_point": {"row": 130, "column": 87}, "end_point": {"row": 130, "column": 89}}, {"id": 394, "type": "string_literal", "text": "\" bytes\"", "parent": 381, "children": [], "start_point": {"row": 130, "column": 90}, "end_point": {"row": 130, "column": 98}}, {"id": 395, "type": "<<", "text": "<<", "parent": 380, "children": [], "start_point": {"row": 130, "column": 99}, "end_point": {"row": 130, "column": 101}}, {"id": 396, "type": "identifier", "text": "std", "parent": 380, "children": [], "start_point": {"row": 130, "column": 102}, "end_point": {"row": 130, "column": 105}}, {"id": 397, "type": "ERROR", "text": "::endl", "parent": 266, "children": [398], "start_point": {"row": 130, "column": 105}, "end_point": {"row": 130, "column": 111}}, {"id": 398, "type": "identifier", "text": "endl", "parent": 397, "children": [], "start_point": {"row": 130, "column": 107}, "end_point": {"row": 130, "column": 111}}, {"id": 399, "type": "binary_expression", "text": "s << \" FASTBIN blocks \" << std", "parent": 266, "children": [400, 404, 405], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 36}}, {"id": 400, "type": "binary_expression", "text": "s << \" FASTBIN blocks \"", "parent": 399, "children": [401, 402, 403], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 29}}, {"id": 401, "type": "identifier", "text": "s", "parent": 400, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 5}}, {"id": 402, "type": "<<", "text": "<<", "parent": 400, "children": [], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 8}}, {"id": 403, "type": "string_literal", "text": "\" FASTBIN blocks \"", "parent": 400, "children": [], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 29}}, {"id": 404, "type": "<<", "text": "<<", "parent": 399, "children": [], "start_point": {"row": 131, "column": 30}, "end_point": {"row": 131, "column": 32}}, {"id": 405, "type": "identifier", "text": "std", "parent": 399, "children": [], "start_point": {"row": 131, "column": 33}, "end_point": {"row": 131, "column": 36}}, {"id": 406, "type": "ERROR", "text": "::endl", "parent": 266, "children": [407], "start_point": {"row": 131, "column": 36}, "end_point": {"row": 131, "column": 42}}, {"id": 407, "type": "identifier", "text": "endl", "parent": 406, "children": [], "start_point": {"row": 131, "column": 38}, "end_point": {"row": 131, "column": 42}}, {"id": 408, "type": "binary_expression", "text": "s << \" number of fastbin blocks: \" << st.fastbin_blocks() << std", "parent": 266, "children": [409, 420, 421], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 74}}, {"id": 409, "type": "binary_expression", "text": "s << \" number of fastbin blocks: \" << st.fastbin_blocks()", "parent": 408, "children": [410, 414, 415], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 67}}, {"id": 410, "type": "binary_expression", "text": "s << \" number of fastbin blocks: \"", "parent": 409, "children": [411, 412, 413], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 44}}, {"id": 411, "type": "identifier", "text": "s", "parent": 410, "children": [], "start_point": {"row": 132, "column": 4}, "end_point": {"row": 132, "column": 5}}, {"id": 412, "type": "<<", "text": "<<", "parent": 410, "children": [], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 8}}, {"id": 413, "type": "string_literal", "text": "\" number of fastbin blocks: \"", "parent": 410, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 44}}, {"id": 414, "type": "<<", "text": "<<", "parent": 409, "children": [], "start_point": {"row": 132, "column": 45}, "end_point": {"row": 132, "column": 47}}, {"id": 415, "type": "call_expression", "text": "st.fastbin_blocks()", "parent": 409, "children": [416, 419], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 67}}, {"id": 416, "type": "field_expression", "text": "st.fastbin_blocks", "parent": 415, "children": [417, 418], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 65}}, {"id": 417, "type": "identifier", "text": "st", "parent": 416, "children": [], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 50}}, {"id": 418, "type": "field_identifier", "text": "fastbin_blocks", "parent": 416, "children": [], "start_point": {"row": 132, "column": 51}, "end_point": {"row": 132, "column": 65}}, {"id": 419, "type": "argument_list", "text": "()", "parent": 415, "children": [], "start_point": {"row": 132, "column": 65}, "end_point": {"row": 132, "column": 67}}, {"id": 420, "type": "<<", "text": "<<", "parent": 408, "children": [], "start_point": {"row": 132, "column": 68}, "end_point": {"row": 132, "column": 70}}, {"id": 421, "type": "identifier", "text": "std", "parent": 408, "children": [], "start_point": {"row": 132, "column": 71}, "end_point": {"row": 132, "column": 74}}, {"id": 422, "type": "ERROR", "text": "::endl", "parent": 266, "children": [423], "start_point": {"row": 132, "column": 74}, "end_point": {"row": 132, "column": 80}}, {"id": 423, "type": "identifier", "text": "endl", "parent": 422, "children": [], "start_point": {"row": 132, "column": 76}, "end_point": {"row": 132, "column": 80}}, {"id": 424, "type": "binary_expression", "text": "s << \" space available in freed fastbin blocks: \" << st.fastbin_free() << \" bytes\" << std", "parent": 266, "children": [425, 439, 440], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 99}}, {"id": 425, "type": "binary_expression", "text": "s << \" space available in freed fastbin blocks: \" << st.fastbin_free() << \" bytes\"", "parent": 424, "children": [426, 437, 438], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 92}}, {"id": 426, "type": "binary_expression", "text": "s << \" space available in freed fastbin blocks: \" << st.fastbin_free()", "parent": 425, "children": [427, 431, 432], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 80}}, {"id": 427, "type": "binary_expression", "text": "s << \" space available in freed fastbin blocks: \"", "parent": 426, "children": [428, 429, 430], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 59}}, {"id": 428, "type": "identifier", "text": "s", "parent": 427, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 5}}, {"id": 429, "type": "<<", "text": "<<", "parent": 427, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 8}}, {"id": 430, "type": "string_literal", "text": "\" space available in freed fastbin blocks: \"", "parent": 427, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 59}}, {"id": 431, "type": "<<", "text": "<<", "parent": 426, "children": [], "start_point": {"row": 133, "column": 60}, "end_point": {"row": 133, "column": 62}}, {"id": 432, "type": "call_expression", "text": "st.fastbin_free()", "parent": 426, "children": [433, 436], "start_point": {"row": 133, "column": 63}, "end_point": {"row": 133, "column": 80}}, {"id": 433, "type": "field_expression", "text": "st.fastbin_free", "parent": 432, "children": [434, 435], "start_point": {"row": 133, "column": 63}, "end_point": {"row": 133, "column": 78}}, {"id": 434, "type": "identifier", "text": "st", "parent": 433, "children": [], "start_point": {"row": 133, "column": 63}, "end_point": {"row": 133, "column": 65}}, {"id": 435, "type": "field_identifier", "text": "fastbin_free", "parent": 433, "children": [], "start_point": {"row": 133, "column": 66}, "end_point": {"row": 133, "column": 78}}, {"id": 436, "type": "argument_list", "text": "()", "parent": 432, "children": [], "start_point": {"row": 133, "column": 78}, "end_point": {"row": 133, "column": 80}}, {"id": 437, "type": "<<", "text": "<<", "parent": 425, "children": [], "start_point": {"row": 133, "column": 81}, "end_point": {"row": 133, "column": 83}}, {"id": 438, "type": "string_literal", "text": "\" bytes\"", "parent": 425, "children": [], "start_point": {"row": 133, "column": 84}, "end_point": {"row": 133, "column": 92}}, {"id": 439, "type": "<<", "text": "<<", "parent": 424, "children": [], "start_point": {"row": 133, "column": 93}, "end_point": {"row": 133, "column": 95}}, {"id": 440, "type": "identifier", "text": "std", "parent": 424, "children": [], "start_point": {"row": 133, "column": 96}, "end_point": {"row": 133, "column": 99}}, {"id": 441, "type": "ERROR", "text": "::endl", "parent": 266, "children": [442], "start_point": {"row": 133, "column": 99}, "end_point": {"row": 133, "column": 105}}, {"id": 442, "type": "identifier", "text": "endl", "parent": 441, "children": [], "start_point": {"row": 133, "column": 101}, "end_point": {"row": 133, "column": 105}}, {"id": 443, "type": "binary_expression", "text": "s << \"Space allocated from system using mmap: \" << st.from_system_mmap() << \" bytes\" << std", "parent": 266, "children": [444, 458, 459], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 95}}, {"id": 444, "type": "binary_expression", "text": "s << \"Space allocated from system using mmap: \" << st.from_system_mmap() << \" bytes\"", "parent": 443, "children": [445, 456, 457], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 88}}, {"id": 445, "type": "binary_expression", "text": "s << \"Space allocated from system using mmap: \" << st.from_system_mmap()", "parent": 444, "children": [446, 450, 451], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 76}}, {"id": 446, "type": "binary_expression", "text": "s << \"Space allocated from system using mmap: \"", "parent": 445, "children": [447, 448, 449], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 51}}, {"id": 447, "type": "identifier", "text": "s", "parent": 446, "children": [], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 5}}, {"id": 448, "type": "<<", "text": "<<", "parent": 446, "children": [], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 8}}, {"id": 449, "type": "string_literal", "text": "\"Space allocated from system using mmap: \"", "parent": 446, "children": [], "start_point": {"row": 134, "column": 9}, "end_point": {"row": 134, "column": 51}}, {"id": 450, "type": "<<", "text": "<<", "parent": 445, "children": [], "start_point": {"row": 134, "column": 52}, "end_point": {"row": 134, "column": 54}}, {"id": 451, "type": "call_expression", "text": "st.from_system_mmap()", "parent": 445, "children": [452, 455], "start_point": {"row": 134, "column": 55}, "end_point": {"row": 134, "column": 76}}, {"id": 452, "type": "field_expression", "text": "st.from_system_mmap", "parent": 451, "children": [453, 454], "start_point": {"row": 134, "column": 55}, "end_point": {"row": 134, "column": 74}}, {"id": 453, "type": "identifier", "text": "st", "parent": 452, "children": [], "start_point": {"row": 134, "column": 55}, "end_point": {"row": 134, "column": 57}}, {"id": 454, "type": "field_identifier", "text": "from_system_mmap", "parent": 452, "children": [], "start_point": {"row": 134, "column": 58}, "end_point": {"row": 134, "column": 74}}, {"id": 455, "type": "argument_list", "text": "()", "parent": 451, "children": [], "start_point": {"row": 134, "column": 74}, "end_point": {"row": 134, "column": 76}}, {"id": 456, "type": "<<", "text": "<<", "parent": 444, "children": [], "start_point": {"row": 134, "column": 77}, "end_point": {"row": 134, "column": 79}}, {"id": 457, "type": "string_literal", "text": "\" bytes\"", "parent": 444, "children": [], "start_point": {"row": 134, "column": 80}, "end_point": {"row": 134, "column": 88}}, {"id": 458, "type": "<<", "text": "<<", "parent": 443, "children": [], "start_point": {"row": 134, "column": 89}, "end_point": {"row": 134, "column": 91}}, {"id": 459, "type": "identifier", "text": "std", "parent": 443, "children": [], "start_point": {"row": 134, "column": 92}, "end_point": {"row": 134, "column": 95}}, {"id": 460, "type": "ERROR", "text": "::endl", "parent": 266, "children": [461], "start_point": {"row": 134, "column": 95}, "end_point": {"row": 134, "column": 101}}, {"id": 461, "type": "identifier", "text": "endl", "parent": 460, "children": [], "start_point": {"row": 134, "column": 97}, "end_point": {"row": 134, "column": 101}}, {"id": 462, "type": "binary_expression", "text": "s << \" number of chunks allocated via mmap(): \" << st.mmap_chunks() << std", "parent": 266, "children": [463, 474, 475], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 84}}, {"id": 463, "type": "binary_expression", "text": "s << \" number of chunks allocated via mmap(): \" << st.mmap_chunks()", "parent": 462, "children": [464, 468, 469], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 77}}, {"id": 464, "type": "binary_expression", "text": "s << \" number of chunks allocated via mmap(): \"", "parent": 463, "children": [465, 466, 467], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 57}}, {"id": 465, "type": "identifier", "text": "s", "parent": 464, "children": [], "start_point": {"row": 135, "column": 4}, "end_point": {"row": 135, "column": 5}}, {"id": 466, "type": "<<", "text": "<<", "parent": 464, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 8}}, {"id": 467, "type": "string_literal", "text": "\" number of chunks allocated via mmap(): \"", "parent": 464, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 57}}, {"id": 468, "type": "<<", "text": "<<", "parent": 463, "children": [], "start_point": {"row": 135, "column": 58}, "end_point": {"row": 135, "column": 60}}, {"id": 469, "type": "call_expression", "text": "st.mmap_chunks()", "parent": 463, "children": [470, 473], "start_point": {"row": 135, "column": 61}, "end_point": {"row": 135, "column": 77}}, {"id": 470, "type": "field_expression", "text": "st.mmap_chunks", "parent": 469, "children": [471, 472], "start_point": {"row": 135, "column": 61}, "end_point": {"row": 135, "column": 75}}, {"id": 471, "type": "identifier", "text": "st", "parent": 470, "children": [], "start_point": {"row": 135, "column": 61}, "end_point": {"row": 135, "column": 63}}, {"id": 472, "type": "field_identifier", "text": "mmap_chunks", "parent": 470, "children": [], "start_point": {"row": 135, "column": 64}, "end_point": {"row": 135, "column": 75}}, {"id": 473, "type": "argument_list", "text": "()", "parent": 469, "children": [], "start_point": {"row": 135, "column": 75}, "end_point": {"row": 135, "column": 77}}, {"id": 474, "type": "<<", "text": "<<", "parent": 462, "children": [], "start_point": {"row": 135, "column": 78}, "end_point": {"row": 135, "column": 80}}, {"id": 475, "type": "identifier", "text": "std", "parent": 462, "children": [], "start_point": {"row": 135, "column": 81}, "end_point": {"row": 135, "column": 84}}, {"id": 476, "type": "ERROR", "text": "::endl", "parent": 266, "children": [477], "start_point": {"row": 135, "column": 84}, "end_point": {"row": 135, "column": 90}}, {"id": 477, "type": "identifier", "text": "endl", "parent": 476, "children": [], "start_point": {"row": 135, "column": 86}, "end_point": {"row": 135, "column": 90}}, {"id": 478, "type": "binary_expression", "text": "s << \"Total space allocated from system (mmap and not mmap): \" <<\n st.from_system_total() << \" bytes\" << std", "parent": 266, "children": [479, 493, 494], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 137, "column": 49}}, {"id": 479, "type": "binary_expression", "text": "s << \"Total space allocated from system (mmap and not mmap): \" <<\n st.from_system_total() << \" bytes\"", "parent": 478, "children": [480, 491, 492], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 137, "column": 42}}, {"id": 480, "type": "binary_expression", "text": "s << \"Total space allocated from system (mmap and not mmap): \" <<\n st.from_system_total()", "parent": 479, "children": [481, 485, 486], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 137, "column": 30}}, {"id": 481, "type": "binary_expression", "text": "s << \"Total space allocated from system (mmap and not mmap): \"", "parent": 480, "children": [482, 483, 484], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 66}}, {"id": 482, "type": "identifier", "text": "s", "parent": 481, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 5}}, {"id": 483, "type": "<<", "text": "<<", "parent": 481, "children": [], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 136, "column": 8}}, {"id": 484, "type": "string_literal", "text": "\"Total space allocated from system (mmap and not mmap): \"", "parent": 481, "children": [], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 136, "column": 66}}, {"id": 485, "type": "<<", "text": "<<", "parent": 480, "children": [], "start_point": {"row": 136, "column": 67}, "end_point": {"row": 136, "column": 69}}, {"id": 486, "type": "call_expression", "text": "st.from_system_total()", "parent": 480, "children": [487, 490], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 30}}, {"id": 487, "type": "field_expression", "text": "st.from_system_total", "parent": 486, "children": [488, 489], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 28}}, {"id": 488, "type": "identifier", "text": "st", "parent": 487, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 10}}, {"id": 489, "type": "field_identifier", "text": "from_system_total", "parent": 487, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 28}}, {"id": 490, "type": "argument_list", "text": "()", "parent": 486, "children": [], "start_point": {"row": 137, "column": 28}, "end_point": {"row": 137, "column": 30}}, {"id": 491, "type": "<<", "text": "<<", "parent": 479, "children": [], "start_point": {"row": 137, "column": 31}, "end_point": {"row": 137, "column": 33}}, {"id": 492, "type": "string_literal", "text": "\" bytes\"", "parent": 479, "children": [], "start_point": {"row": 137, "column": 34}, "end_point": {"row": 137, "column": 42}}, {"id": 493, "type": "<<", "text": "<<", "parent": 478, "children": [], "start_point": {"row": 137, "column": 43}, "end_point": {"row": 137, "column": 45}}, {"id": 494, "type": "identifier", "text": "std", "parent": 478, "children": [], "start_point": {"row": 137, "column": 46}, "end_point": {"row": 137, "column": 49}}, {"id": 495, "type": "ERROR", "text": "::endl", "parent": 266, "children": [496], "start_point": {"row": 137, "column": 49}, "end_point": {"row": 137, "column": 55}}, {"id": 496, "type": "identifier", "text": "endl", "parent": 495, "children": [], "start_point": {"row": 137, "column": 51}, "end_point": {"row": 137, "column": 55}}, {"id": 497, "type": "binary_expression", "text": "s << \"=================================================================\" << std", "parent": 266, "children": [498, 502, 503], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 83}}, {"id": 498, "type": "binary_expression", "text": "s << \"=================================================================\"", "parent": 497, "children": [499, 500, 501], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 76}}, {"id": 499, "type": "identifier", "text": "s", "parent": 498, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 5}}, {"id": 500, "type": "<<", "text": "<<", "parent": 498, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 8}}, {"id": 501, "type": "string_literal", "text": "\"=================================================================\"", "parent": 498, "children": [], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 76}}, {"id": 502, "type": "<<", "text": "<<", "parent": 497, "children": [], "start_point": {"row": 138, "column": 77}, "end_point": {"row": 138, "column": 79}}, {"id": 503, "type": "identifier", "text": "std", "parent": 497, "children": [], "start_point": {"row": 138, "column": 80}, "end_point": {"row": 138, "column": 83}}, {"id": 504, "type": "ERROR", "text": "::endl", "parent": 266, "children": [505], "start_point": {"row": 138, "column": 83}, "end_point": {"row": 138, "column": 89}}, {"id": 505, "type": "identifier", "text": "endl", "parent": 504, "children": [], "start_point": {"row": 138, "column": 85}, "end_point": {"row": 138, "column": 89}}, {"id": 506, "type": "preproc_else", "text": "#else\n s << \"MALLOC statistics are not supported on this platform\";\n STXXL_UNUSED(st);", "parent": 266, "children": [507], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 141, "column": 21}}, {"id": 507, "type": "#else", "text": "#else", "parent": 506, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 5}}, {"id": 508, "type": "binary_expression", "text": "s << \"MALLOC statistics are not supported on this platform\"", "parent": 506, "children": [509, 510, 511], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 63}}, {"id": 509, "type": "identifier", "text": "s", "parent": 508, "children": [], "start_point": {"row": 140, "column": 4}, "end_point": {"row": 140, "column": 5}}, {"id": 510, "type": "<<", "text": "<<", "parent": 508, "children": [], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 8}}, {"id": 511, "type": "string_literal", "text": "\"MALLOC statistics are not supported on this platform\"", "parent": 508, "children": [], "start_point": {"row": 140, "column": 9}, "end_point": {"row": 140, "column": 63}}, {"id": 512, "type": "call_expression", "text": "STXXL_UNUSED(st)", "parent": 506, "children": [513, 514], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 20}}, {"id": 513, "type": "identifier", "text": "STXXL_UNUSED", "parent": 512, "children": [], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 16}}, {"id": 514, "type": "argument_list", "text": "(st)", "parent": 512, "children": [515], "start_point": {"row": 141, "column": 16}, "end_point": {"row": 141, "column": 20}}, {"id": 515, "type": "identifier", "text": "st", "parent": 514, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 19}}, {"id": 516, "type": "#endif", "text": "#endif", "parent": 266, "children": [], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 142, "column": 6}}, {"id": 517, "type": "return_statement", "text": "return s;", "parent": 0, "children": [518], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 13}}, {"id": 518, "type": "identifier", "text": "s", "parent": 517, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 12}}, {"id": 519, "type": "function_definition", "text": "class malloc_setup\n{ }", "parent": 0, "children": [520], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 147, "column": 3}}, {"id": 520, "type": "identifier", "text": "malloc_setup", "parent": 519, "children": [], "start_point": {"row": 146, "column": 6}, "end_point": {"row": 146, "column": 18}}, {"id": 521, "type": "type_identifier", "text": "STXXL_END_NAMESPACE", "parent": 0, "children": [], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 149, "column": 19}}, {"id": 522, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 6}}]}, "node_categories": {"declarations": {"functions": [29, 42, 44, 63, 80, 82, 101, 118, 120, 139, 156, 158, 177, 194, 196, 215, 234, 519], "variables": [37, 47, 57, 66, 85, 95, 104, 123, 133, 142, 161, 171, 180, 199, 209, 218, 247], "classes": [48, 49, 67, 68, 86, 87, 105, 106, 124, 125, 143, 144, 162, 163, 181, 182, 200, 201, 219, 220, 248], "imports": [6, 7, 9, 10, 16, 17, 20, 21, 23, 24, 26, 27], "modules": [], "enums": []}, "statements": {"expressions": [54, 73, 77, 92, 111, 115, 130, 149, 153, 168, 187, 191, 206, 225, 229, 238, 239, 243, 252, 253, 256, 259, 260, 263, 270, 271, 279, 280, 288, 289, 290, 291, 296, 297, 307, 308, 309, 314, 315, 323, 324, 325, 326, 331, 332, 342, 343, 344, 345, 350, 351, 361, 362, 363, 364, 369, 370, 380, 381, 382, 383, 388, 389, 399, 400, 408, 409, 410, 415, 416, 424, 425, 426, 427, 432, 433, 443, 444, 445, 446, 451, 452, 462, 463, 464, 469, 470, 478, 479, 480, 481, 486, 487, 497, 498, 508, 512], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 13, 14, 19, 30, 31, 32, 33, 34, 38, 40, 41, 43, 45, 50, 52, 55, 59, 60, 62, 64, 69, 71, 74, 78, 79, 81, 83, 88, 90, 93, 97, 98, 100, 102, 107, 109, 112, 116, 117, 119, 121, 126, 128, 131, 135, 136, 138, 140, 145, 147, 150, 154, 155, 157, 159, 164, 166, 169, 173, 174, 176, 178, 183, 185, 188, 192, 193, 195, 197, 202, 204, 207, 211, 212, 214, 216, 221, 223, 226, 230, 231, 233, 235, 240, 244, 246, 250, 251, 254, 258, 261, 262, 264, 265, 266, 267, 268, 272, 276, 278, 281, 285, 287, 292, 298, 299, 304, 306, 310, 316, 317, 320, 322, 327, 333, 334, 339, 341, 346, 352, 353, 358, 360, 365, 371, 372, 377, 379, 384, 390, 391, 396, 398, 401, 405, 407, 411, 417, 418, 421, 423, 428, 434, 435, 440, 442, 447, 453, 454, 459, 461, 465, 471, 472, 475, 477, 482, 488, 489, 494, 496, 499, 503, 505, 509, 513, 515, 516, 518, 520, 521, 522], "returns": [76, 114, 152, 190, 228, 237, 517], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 18, 22, 25, 28, 274, 283, 294, 302, 312, 329, 337, 348, 356, 367, 375, 386, 394, 403, 413, 430, 438, 449, 457, 467, 484, 492, 501, 511], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 29, "universal_type": "function", "name": "malloc_stats", "text_snippet": "STXXL_BEGIN_NAMESPACE\n\n\n//! Access to some useful malloc statistics.\n\n//! malloc is default C++ allo"}, {"node_id": 42, "universal_type": "function", "name": "mallinfo", "text_snippet": "return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n retur"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "from_system_nmmap()"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "free_chunks() const"}, {"node_id": 80, "universal_type": "function", "name": "mallinfo", "text_snippet": "return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordbl"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "used()"}, {"node_id": 101, "universal_type": "function", "name": "unknown", "text_snippet": "not_used() const"}, {"node_id": 118, "universal_type": "function", "name": "mallinfo", "text_snippet": "return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info."}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "releasable()"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "max_allocated() const"}, {"node_id": 156, "universal_type": "function", "name": "mallinfo", "text_snippet": "return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return i"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "fastbin_blocks()"}, {"node_id": 177, "universal_type": "function", "name": "unknown", "text_snippet": "fastbin_free() const"}, {"node_id": 194, "universal_type": "function", "name": "mallinfo", "text_snippet": "return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "from_system_mmap()"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "mmap_chunks() const"}, {"node_id": 234, "universal_type": "function", "name": "unknown", "text_snippet": "from_system_total()"}, {"node_id": 519, "universal_type": "function", "name": "malloc_setup", "text_snippet": "class malloc_setup\n{ }"}], "class_declarations": [{"node_id": 48, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 49, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 67, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 68, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 86, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 87, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 105, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 106, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 124, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 125, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 143, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 144, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 162, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 163, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 181, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 182, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 200, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 201, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 219, "universal_type": "class", "name": "mallinfo", "text_snippet": "struct mallinfo"}, {"node_id": 220, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 248, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include <stxxl/bits/config.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <ostream>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 16, "text": "#include <malloc.h>\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 20, "text": "#include <cstdlib>\n"}, {"node_id": 21, "text": "#include"}, {"node_id": 23, "text": "#include <stxxl/bits/namespace.h>\n"}, {"node_id": 24, "text": "#include"}, {"node_id": 26, "text": "#include <stxxl/bits/unused.h>\n"}, {"node_id": 27, "text": "#include"}]}, "original_source_code": "/***************************************************************************\n * include/stxxl/bits/utils/malloc.h\n *\n * Part of the STXXL. See http://stxxl.sourceforge.net\n *\n * Copyright (C) 2003 <NAME> <<EMAIL>>\n * Copyright (C) 2009 <NAME> <<EMAIL>>\n *\n * Distributed under the Boost Software License, Version 1.0.\n * (See accompanying file LICENSE_1_0.txt or copy at\n * http://www.boost.org/LICENSE_1_0.txt)\n **************************************************************************/\n\n#ifndef STXXL_UTILS_MALLOC_HEADER\n#define STXXL_UTILS_MALLOC_HEADER\n\n#include <stxxl/bits/config.h>\n\n#include <ostream>\n#if STXXL_HAVE_MALLINFO_PROTO\n #include <malloc.h>\n#endif\n#include <cstdlib>\n\n#include <stxxl/bits/namespace.h>\n#include <stxxl/bits/unused.h>\n\n\nSTXXL_BEGIN_NAMESPACE\n\n\n//! Access to some useful malloc statistics.\n\n//! malloc is default C++ allocator\nclass malloc_stats\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n\npublic:\n typedef int return_type;\n\n //! Returns number of bytes allocated from system not including mmapped regions.\n return_type from_system_nmmap() const\n {\n struct mallinfo info = mallinfo();\n return info.arena;\n }\n\n //! Returns number of free chunks.\n return_type free_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.ordblks;\n }\n\n //! Number of bytes allocated and in use.\n return_type used() const\n {\n struct mallinfo info = mallinfo();\n return info.uordblks;\n }\n\n //! Number of bytes allocated but not in use.\n return_type not_used() const\n {\n struct mallinfo info = mallinfo();\n return info.fordblks;\n }\n\n //! Top-most, releasable (via malloc_trim) space (bytes).\n return_type releasable() const\n {\n struct mallinfo info = mallinfo();\n return info.keepcost;\n }\n\n //! Maximum total allocated space (bytes) (always 0 ?).\n return_type max_allocated() const\n {\n struct mallinfo info = mallinfo();\n return info.usmblks;\n }\n\n //! Number of fastbin blocks.\n return_type fastbin_blocks() const\n {\n struct mallinfo info = mallinfo();\n return info.smblks;\n }\n\n //! Space available in freed fastbin blocks (bytes).\n return_type fastbin_free() const\n {\n struct mallinfo info = mallinfo();\n return info.fsmblks;\n }\n\n //! Returns number of bytes allocated from system using mmap.\n return_type from_system_mmap() const\n {\n struct mallinfo info = mallinfo();\n return info.hblkhd;\n }\n\n //! Number of chunks allocated via mmap().\n return_type mmap_chunks() const\n {\n struct mallinfo info = mallinfo();\n return info.hblks;\n }\n\n //! Returns \\b total number of bytes allocated from system including mmapped regions.\n return_type from_system_total() const\n {\n return from_system_nmmap() + from_system_mmap();\n }\n#endif\n};\n\n//! Prints current malloc statistics in a convenient way.\ninline std::ostream& operator << (std::ostream& s, const malloc_stats& st)\n{\n#if STXXL_HAVE_MALLINFO_PROTO\n s << \"MALLOC statistics\" << std::endl;\n s << \"=================================================================\" << std::endl;\n s << \"Space allocated from system not using mmap: \" << st.from_system_nmmap() << \" bytes\" << std::endl;\n s << \" number of free chunks : \" << st.free_chunks() << std::endl;\n s << \" space allocated and in use : \" << st.used() << \" bytes\" << std::endl;\n s << \" space allocated but not in use : \" << st.not_used() << \" bytes\" << std::endl;\n s << \" top-most, releasable (via malloc_trim) space: \" << st.releasable() << \" bytes\" << std::endl;\n s << \" maximum total allocated space (?) : \" << st.max_allocated() << \" bytes\" << std::endl;\n s << \" FASTBIN blocks \" << std::endl;\n s << \" number of fastbin blocks: \" << st.fastbin_blocks() << std::endl;\n s << \" space available in freed fastbin blocks: \" << st.fastbin_free() << \" bytes\" << std::endl;\n s << \"Space allocated from system using mmap: \" << st.from_system_mmap() << \" bytes\" << std::endl;\n s << \" number of chunks allocated via mmap(): \" << st.mmap_chunks() << std::endl;\n s << \"Total space allocated from system (mmap and not mmap): \" <<\n st.from_system_total() << \" bytes\" << std::endl;\n s << \"=================================================================\" << std::endl;\n#else\n s << \"MALLOC statistics are not supported on this platform\";\n STXXL_UNUSED(st);\n#endif\n return s;\n}\n\nclass malloc_setup\n{ };\n\nSTXXL_END_NAMESPACE\n\n#endif // !STXXL_UTILS_MALLOC_HEADER\n"}
80,314
c
/** @file DXE Core library services. Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "DxeMain.h" // // Lock Stuff // /** Initialize a basic mutual exclusion lock. Each lock provides mutual exclusion access at it's task priority level. Since there is no-premption (at any TPL) or multiprocessor support, acquiring the lock only consists of raising to the locks TPL. @param Lock The EFI_LOCK structure to initialize @retval EFI_SUCCESS Lock Owned. @retval EFI_ACCESS_DENIED Reentrant Lock Acquisition, Lock not Owned. **/ EFI_STATUS CoreAcquireLockOrFail ( IN EFI_LOCK *Lock ) { ASSERT (Lock != NULL); ASSERT (Lock->Lock != EfiLockUninitialized); if (Lock->Lock == EfiLockAcquired) { // // Lock is already owned, so bail out // return EFI_ACCESS_DENIED; } Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl); Lock->Lock = EfiLockAcquired; return EFI_SUCCESS; } /** Raising to the task priority level of the mutual exclusion lock, and then acquires ownership of the lock. @param Lock The lock to acquire @return Lock owned **/ VOID CoreAcquireLock ( IN EFI_LOCK *Lock ) { ASSERT (Lock != NULL); ASSERT (Lock->Lock == EfiLockReleased); Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl); Lock->Lock = EfiLockAcquired; } /** Releases ownership of the mutual exclusion lock, and restores the previous task priority level. @param Lock The lock to release @return Lock unowned **/ VOID CoreReleaseLock ( IN EFI_LOCK *Lock ) { EFI_TPL Tpl; ASSERT (Lock != NULL); ASSERT (Lock->Lock == EfiLockAcquired); Tpl = Lock->OwnerTpl; Lock->Lock = EfiLockReleased; CoreRestoreTpl (Tpl); }
23.9
72
(translation_unit) "/** @file\n DXE Core library services.\n\nCopyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\nSPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/\n\n#include "DxeMain.h"\n\n//\n// Lock Stuff\n//\n/**\n Initialize a basic mutual exclusion lock. Each lock\n provides mutual exclusion access at it's task priority\n level. Since there is no-premption (at any TPL) or\n multiprocessor support, acquiring the lock only consists\n of raising to the locks TPL.\n\n @param Lock The EFI_LOCK structure to initialize\n\n @retval EFI_SUCCESS Lock Owned.\n @retval EFI_ACCESS_DENIED Reentrant Lock Acquisition, Lock not Owned.\n\n**/\nEFI_STATUS\nCoreAcquireLockOrFail (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock != EfiLockUninitialized);\n\n if (Lock->Lock == EfiLockAcquired) {\n //\n // Lock is already owned, so bail out\n //\n return EFI_ACCESS_DENIED;\n }\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n\n Lock->Lock = EfiLockAcquired;\n return EFI_SUCCESS;\n}\n\n\n\n/**\n Raising to the task priority level of the mutual exclusion\n lock, and then acquires ownership of the lock.\n\n @param Lock The lock to acquire\n\n @return Lock owned\n\n**/\nVOID\nCoreAcquireLock (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockReleased);\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n Lock->Lock = EfiLockAcquired;\n}\n\n\n\n/**\n Releases ownership of the mutual exclusion lock, and\n restores the previous task priority level.\n\n @param Lock The lock to release\n\n @return Lock unowned\n\n**/\nVOID\nCoreReleaseLock (\n IN EFI_LOCK *Lock\n )\n{\n EFI_TPL Tpl;\n\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockAcquired);\n\n Tpl = Lock->OwnerTpl;\n\n Lock->Lock = EfiLockReleased;\n\n CoreRestoreTpl (Tpl);\n}\n\n\n\n" (comment) "/** @file\n DXE Core library services.\n\nCopyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\nSPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/" (preproc_include) "#include "DxeMain.h"\n" (#include) "#include" (string_literal) ""DxeMain.h"" (") """ (string_content) "DxeMain.h" (") """ (comment) "//" (comment) "// Lock Stuff" (comment) "//" (comment) "/**\n Initialize a basic mutual exclusion lock. Each lock\n provides mutual exclusion access at it's task priority\n level. Since there is no-premption (at any TPL) or\n multiprocessor support, acquiring the lock only consists\n of raising to the locks TPL.\n\n @param Lock The EFI_LOCK structure to initialize\n\n @retval EFI_SUCCESS Lock Owned.\n @retval EFI_ACCESS_DENIED Reentrant Lock Acquisition, Lock not Owned.\n\n**/" (function_definition) "EFI_STATUS\nCoreAcquireLockOrFail (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock != EfiLockUninitialized);\n\n if (Lock->Lock == EfiLockAcquired) {\n //\n // Lock is already owned, so bail out\n //\n return EFI_ACCESS_DENIED;\n }\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n\n Lock->Lock = EfiLockAcquired;\n return EFI_SUCCESS;\n}" (type_identifier) "EFI_STATUS" (function_declarator) "CoreAcquireLockOrFail (\n IN EFI_LOCK *Lock\n )" (identifier) "CoreAcquireLockOrFail" (parameter_list) "(\n IN EFI_LOCK *Lock\n )" (() "(" (parameter_declaration) "IN EFI_LOCK *Lock" (type_identifier) "IN" (ERROR) "EFI_LOCK" (identifier) "EFI_LOCK" (pointer_declarator) "*Lock" (*) "*" (identifier) "Lock" ()) ")" (compound_statement) "{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock != EfiLockUninitialized);\n\n if (Lock->Lock == EfiLockAcquired) {\n //\n // Lock is already owned, so bail out\n //\n return EFI_ACCESS_DENIED;\n }\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n\n Lock->Lock = EfiLockAcquired;\n return EFI_SUCCESS;\n}" ({) "{" (expression_statement) "ASSERT (Lock != NULL);" (call_expression) "ASSERT (Lock != NULL)" (identifier) "ASSERT" (argument_list) "(Lock != NULL)" (() "(" (binary_expression) "Lock != NULL" (identifier) "Lock" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "ASSERT (Lock->Lock != EfiLockUninitialized);" (call_expression) "ASSERT (Lock->Lock != EfiLockUninitialized)" (identifier) "ASSERT" (argument_list) "(Lock->Lock != EfiLockUninitialized)" (() "(" (binary_expression) "Lock->Lock != EfiLockUninitialized" (field_expression) "Lock->Lock" (identifier) "Lock" (->) "->" (field_identifier) "Lock" (!=) "!=" (identifier) "EfiLockUninitialized" ()) ")" (;) ";" (if_statement) "if (Lock->Lock == EfiLockAcquired) {\n //\n // Lock is already owned, so bail out\n //\n return EFI_ACCESS_DENIED;\n }" (if) "if" (parenthesized_expression) "(Lock->Lock == EfiLockAcquired)" (() "(" (binary_expression) "Lock->Lock == EfiLockAcquired" (field_expression) "Lock->Lock" (identifier) "Lock" (->) "->" (field_identifier) "Lock" (==) "==" (identifier) "EfiLockAcquired" ()) ")" (compound_statement) "{\n //\n // Lock is already owned, so bail out\n //\n return EFI_ACCESS_DENIED;\n }" ({) "{" (comment) "//" (comment) "// Lock is already owned, so bail out" (comment) "//" (return_statement) "return EFI_ACCESS_DENIED;" (return) "return" (identifier) "EFI_ACCESS_DENIED" (;) ";" (}) "}" (expression_statement) "Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);" (assignment_expression) "Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl)" (field_expression) "Lock->OwnerTpl" (identifier) "Lock" (->) "->" (field_identifier) "OwnerTpl" (=) "=" (call_expression) "CoreRaiseTpl (Lock->Tpl)" (identifier) "CoreRaiseTpl" (argument_list) "(Lock->Tpl)" (() "(" (field_expression) "Lock->Tpl" (identifier) "Lock" (->) "->" (field_identifier) "Tpl" ()) ")" (;) ";" (expression_statement) "Lock->Lock = EfiLockAcquired;" (assignment_expression) "Lock->Lock = EfiLockAcquired" (field_expression) "Lock->Lock" (identifier) "Lock" (->) "->" (field_identifier) "Lock" (=) "=" (identifier) "EfiLockAcquired" (;) ";" (return_statement) "return EFI_SUCCESS;" (return) "return" (identifier) "EFI_SUCCESS" (;) ";" (}) "}" (comment) "/**\n Raising to the task priority level of the mutual exclusion\n lock, and then acquires ownership of the lock.\n\n @param Lock The lock to acquire\n\n @return Lock owned\n\n**/" (function_definition) "VOID\nCoreAcquireLock (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockReleased);\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n Lock->Lock = EfiLockAcquired;\n}" (type_identifier) "VOID" (function_declarator) "CoreAcquireLock (\n IN EFI_LOCK *Lock\n )" (identifier) "CoreAcquireLock" (parameter_list) "(\n IN EFI_LOCK *Lock\n )" (() "(" (parameter_declaration) "IN EFI_LOCK *Lock" (type_identifier) "IN" (ERROR) "EFI_LOCK" (identifier) "EFI_LOCK" (pointer_declarator) "*Lock" (*) "*" (identifier) "Lock" ()) ")" (compound_statement) "{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockReleased);\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n Lock->Lock = EfiLockAcquired;\n}" ({) "{" (expression_statement) "ASSERT (Lock != NULL);" (call_expression) "ASSERT (Lock != NULL)" (identifier) "ASSERT" (argument_list) "(Lock != NULL)" (() "(" (binary_expression) "Lock != NULL" (identifier) "Lock" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "ASSERT (Lock->Lock == EfiLockReleased);" (call_expression) "ASSERT (Lock->Lock == EfiLockReleased)" (identifier) "ASSERT" (argument_list) "(Lock->Lock == EfiLockReleased)" (() "(" (binary_expression) "Lock->Lock == EfiLockReleased" (field_expression) "Lock->Lock" (identifier) "Lock" (->) "->" (field_identifier) "Lock" (==) "==" (identifier) "EfiLockReleased" ()) ")" (;) ";" (expression_statement) "Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);" (assignment_expression) "Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl)" (field_expression) "Lock->OwnerTpl" (identifier) "Lock" (->) "->" (field_identifier) "OwnerTpl" (=) "=" (call_expression) "CoreRaiseTpl (Lock->Tpl)" (identifier) "CoreRaiseTpl" (argument_list) "(Lock->Tpl)" (() "(" (field_expression) "Lock->Tpl" (identifier) "Lock" (->) "->" (field_identifier) "Tpl" ()) ")" (;) ";" (expression_statement) "Lock->Lock = EfiLockAcquired;" (assignment_expression) "Lock->Lock = EfiLockAcquired" (field_expression) "Lock->Lock" (identifier) "Lock" (->) "->" (field_identifier) "Lock" (=) "=" (identifier) "EfiLockAcquired" (;) ";" (}) "}" (comment) "/**\n Releases ownership of the mutual exclusion lock, and\n restores the previous task priority level.\n\n @param Lock The lock to release\n\n @return Lock unowned\n\n**/" (function_definition) "VOID\nCoreReleaseLock (\n IN EFI_LOCK *Lock\n )\n{\n EFI_TPL Tpl;\n\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockAcquired);\n\n Tpl = Lock->OwnerTpl;\n\n Lock->Lock = EfiLockReleased;\n\n CoreRestoreTpl (Tpl);\n}" (type_identifier) "VOID" (function_declarator) "CoreReleaseLock (\n IN EFI_LOCK *Lock\n )" (identifier) "CoreReleaseLock" (parameter_list) "(\n IN EFI_LOCK *Lock\n )" (() "(" (parameter_declaration) "IN EFI_LOCK *Lock" (type_identifier) "IN" (ERROR) "EFI_LOCK" (identifier) "EFI_LOCK" (pointer_declarator) "*Lock" (*) "*" (identifier) "Lock" ()) ")" (compound_statement) "{\n EFI_TPL Tpl;\n\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockAcquired);\n\n Tpl = Lock->OwnerTpl;\n\n Lock->Lock = EfiLockReleased;\n\n CoreRestoreTpl (Tpl);\n}" ({) "{" (declaration) "EFI_TPL Tpl;" (type_identifier) "EFI_TPL" (identifier) "Tpl" (;) ";" (expression_statement) "ASSERT (Lock != NULL);" (call_expression) "ASSERT (Lock != NULL)" (identifier) "ASSERT" (argument_list) "(Lock != NULL)" (() "(" (binary_expression) "Lock != NULL" (identifier) "Lock" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (;) ";" (expression_statement) "ASSERT (Lock->Lock == EfiLockAcquired);" (call_expression) "ASSERT (Lock->Lock == EfiLockAcquired)" (identifier) "ASSERT" (argument_list) "(Lock->Lock == EfiLockAcquired)" (() "(" (binary_expression) "Lock->Lock == EfiLockAcquired" (field_expression) "Lock->Lock" (identifier) "Lock" (->) "->" (field_identifier) "Lock" (==) "==" (identifier) "EfiLockAcquired" ()) ")" (;) ";" (expression_statement) "Tpl = Lock->OwnerTpl;" (assignment_expression) "Tpl = Lock->OwnerTpl" (identifier) "Tpl" (=) "=" (field_expression) "Lock->OwnerTpl" (identifier) "Lock" (->) "->" (field_identifier) "OwnerTpl" (;) ";" (expression_statement) "Lock->Lock = EfiLockReleased;" (assignment_expression) "Lock->Lock = EfiLockReleased" (field_expression) "Lock->Lock" (identifier) "Lock" (->) "->" (field_identifier) "Lock" (=) "=" (identifier) "EfiLockReleased" (;) ";" (expression_statement) "CoreRestoreTpl (Tpl);" (call_expression) "CoreRestoreTpl (Tpl)" (identifier) "CoreRestoreTpl" (argument_list) "(Tpl)" (() "(" (identifier) "Tpl" ()) ")" (;) ";" (}) "}"
251
3
{"language": "c", "success": true, "metadata": {"lines": 72, "avg_line_length": 23.9, "nodes": 155, "errors": 0, "source_hash": "c3827e4962b38d730fb7c1d3a0ca9e8fed592c59f806148fd9e75b27a4305a96", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"DxeMain.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": "string_literal", "text": "\"DxeMain.h\"", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 20}}, {"id": 3, "type": "function_definition", "text": "EFI_STATUS\nCoreAcquireLockOrFail (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock != EfiLockUninitialized);\n\n if (Lock->Lock == EfiLockAcquired) {\n //\n // Lock is already owned, so bail out\n //\n return EFI_ACCESS_DENIED;\n }\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n\n Lock->Lock = EfiLockAcquired;\n return EFI_SUCCESS;\n}", "parent": null, "children": [4, 5], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 4, "type": "type_identifier", "text": "EFI_STATUS", "parent": 3, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 10}}, {"id": 5, "type": "function_declarator", "text": "CoreAcquireLockOrFail (\n IN EFI_LOCK *Lock\n )", "parent": 3, "children": [6, 7], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 29, "column": 3}}, {"id": 6, "type": "identifier", "text": "CoreAcquireLockOrFail", "parent": 5, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 21}}, {"id": 7, "type": "parameter_list", "text": "(\n IN EFI_LOCK *Lock\n )", "parent": 5, "children": [8], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 29, "column": 3}}, {"id": 8, "type": "parameter_declaration", "text": "IN EFI_LOCK *Lock", "parent": 7, "children": [9, 10, 12], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 20}}, {"id": 9, "type": "type_identifier", "text": "IN", "parent": 8, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 4}}, {"id": 10, "type": "ERROR", "text": "EFI_LOCK", "parent": 8, "children": [11], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 13}}, {"id": 11, "type": "identifier", "text": "EFI_LOCK", "parent": 10, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 13}}, {"id": 12, "type": "pointer_declarator", "text": "*Lock", "parent": 8, "children": [13, 14], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 20}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 16}}, {"id": 14, "type": "identifier", "text": "Lock", "parent": 12, "children": [], "start_point": {"row": 28, "column": 16}, "end_point": {"row": 28, "column": 20}}, {"id": 15, "type": "call_expression", "text": "ASSERT (Lock != NULL)", "parent": 3, "children": [16, 17], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 23}}, {"id": 16, "type": "identifier", "text": "ASSERT", "parent": 15, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 8}}, {"id": 17, "type": "argument_list", "text": "(Lock != NULL)", "parent": 15, "children": [18], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 23}}, {"id": 18, "type": "binary_expression", "text": "Lock != NULL", "parent": 17, "children": [19, 20, 21], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 22}}, {"id": 19, "type": "identifier", "text": "Lock", "parent": 18, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 14}}, {"id": 20, "type": "!=", "text": "!=", "parent": 18, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 17}}, {"id": 21, "type": "null", "text": "NULL", "parent": 18, "children": [22], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 22}}, {"id": 22, "type": "NULL", "text": "NULL", "parent": 21, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 22}}, {"id": 23, "type": "call_expression", "text": "ASSERT (Lock->Lock != EfiLockUninitialized)", "parent": 3, "children": [24, 25], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 45}}, {"id": 24, "type": "identifier", "text": "ASSERT", "parent": 23, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 8}}, {"id": 25, "type": "argument_list", "text": "(Lock->Lock != EfiLockUninitialized)", "parent": 23, "children": [26], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 45}}, {"id": 26, "type": "binary_expression", "text": "Lock->Lock != EfiLockUninitialized", "parent": 25, "children": [27, 30, 31], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 44}}, {"id": 27, "type": "field_expression", "text": "Lock->Lock", "parent": 26, "children": [28, 29], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 20}}, {"id": 28, "type": "identifier", "text": "Lock", "parent": 27, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 14}}, {"id": 29, "type": "field_identifier", "text": "Lock", "parent": 27, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 20}}, {"id": 30, "type": "!=", "text": "!=", "parent": 26, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 23}}, {"id": 31, "type": "identifier", "text": "EfiLockUninitialized", "parent": 26, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 44}}, {"id": 32, "type": "if_statement", "text": "if (Lock->Lock == EfiLockAcquired) {\n //\n // Lock is already owned, so bail out\n //\n return EFI_ACCESS_DENIED;\n }", "parent": 3, "children": [33], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 39, "column": 3}}, {"id": 33, "type": "parenthesized_expression", "text": "(Lock->Lock == EfiLockAcquired)", "parent": 32, "children": [34], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 36}}, {"id": 34, "type": "binary_expression", "text": "Lock->Lock == EfiLockAcquired", "parent": 33, "children": [35, 38, 39], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 35}}, {"id": 35, "type": "field_expression", "text": "Lock->Lock", "parent": 34, "children": [36, 37], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 16}}, {"id": 36, "type": "identifier", "text": "Lock", "parent": 35, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 10}}, {"id": 37, "type": "field_identifier", "text": "Lock", "parent": 35, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 16}}, {"id": 38, "type": "==", "text": "==", "parent": 34, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 19}}, {"id": 39, "type": "identifier", "text": "EfiLockAcquired", "parent": 34, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 35}}, {"id": 40, "type": "return_statement", "text": "return EFI_ACCESS_DENIED;", "parent": 32, "children": [41], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 29}}, {"id": 41, "type": "identifier", "text": "EFI_ACCESS_DENIED", "parent": 40, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 28}}, {"id": 42, "type": "assignment_expression", "text": "Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl)", "parent": 3, "children": [43, 46, 47], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 43}}, {"id": 43, "type": "field_expression", "text": "Lock->OwnerTpl", "parent": 42, "children": [44, 45], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 16}}, {"id": 44, "type": "identifier", "text": "Lock", "parent": 43, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 6}}, {"id": 45, "type": "field_identifier", "text": "OwnerTpl", "parent": 43, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 16}}, {"id": 46, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 18}}, {"id": 47, "type": "call_expression", "text": "CoreRaiseTpl (Lock->Tpl)", "parent": 42, "children": [48, 49], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 43}}, {"id": 48, "type": "identifier", "text": "CoreRaiseTpl", "parent": 47, "children": [], "start_point": {"row": 41, "column": 19}, "end_point": {"row": 41, "column": 31}}, {"id": 49, "type": "argument_list", "text": "(Lock->Tpl)", "parent": 47, "children": [50], "start_point": {"row": 41, "column": 32}, "end_point": {"row": 41, "column": 43}}, {"id": 50, "type": "field_expression", "text": "Lock->Tpl", "parent": 49, "children": [51, 52], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 42}}, {"id": 51, "type": "identifier", "text": "Lock", "parent": 50, "children": [], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 37}}, {"id": 52, "type": "field_identifier", "text": "Tpl", "parent": 50, "children": [], "start_point": {"row": 41, "column": 39}, "end_point": {"row": 41, "column": 42}}, {"id": 53, "type": "assignment_expression", "text": "Lock->Lock = EfiLockAcquired", "parent": 3, "children": [54, 57, 58], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 30}}, {"id": 54, "type": "field_expression", "text": "Lock->Lock", "parent": 53, "children": [55, 56], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 12}}, {"id": 55, "type": "identifier", "text": "Lock", "parent": 54, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 6}}, {"id": 56, "type": "field_identifier", "text": "Lock", "parent": 54, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 12}}, {"id": 57, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 14}}, {"id": 58, "type": "identifier", "text": "EfiLockAcquired", "parent": 53, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 30}}, {"id": 59, "type": "return_statement", "text": "return EFI_SUCCESS;", "parent": 3, "children": [60], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 21}}, {"id": 60, "type": "identifier", "text": "EFI_SUCCESS", "parent": 59, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 20}}, {"id": 61, "type": "function_definition", "text": "VOID\nCoreAcquireLock (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockReleased);\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n Lock->Lock = EfiLockAcquired;\n}", "parent": null, "children": [62, 63], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 68, "column": 1}}, {"id": 62, "type": "type_identifier", "text": "VOID", "parent": 61, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 4}}, {"id": 63, "type": "function_declarator", "text": "CoreAcquireLock (\n IN EFI_LOCK *Lock\n )", "parent": 61, "children": [64, 65], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 61, "column": 3}}, {"id": 64, "type": "identifier", "text": "CoreAcquireLock", "parent": 63, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 15}}, {"id": 65, "type": "parameter_list", "text": "(\n IN EFI_LOCK *Lock\n )", "parent": 63, "children": [66], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 61, "column": 3}}, {"id": 66, "type": "parameter_declaration", "text": "IN EFI_LOCK *Lock", "parent": 65, "children": [67, 68, 70], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 20}}, {"id": 67, "type": "type_identifier", "text": "IN", "parent": 66, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 4}}, {"id": 68, "type": "ERROR", "text": "EFI_LOCK", "parent": 66, "children": [69], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 13}}, {"id": 69, "type": "identifier", "text": "EFI_LOCK", "parent": 68, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 13}}, {"id": 70, "type": "pointer_declarator", "text": "*Lock", "parent": 66, "children": [71, 72], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 20}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 16}}, {"id": 72, "type": "identifier", "text": "Lock", "parent": 70, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 20}}, {"id": 73, "type": "call_expression", "text": "ASSERT (Lock != NULL)", "parent": 61, "children": [74, 75], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 23}}, {"id": 74, "type": "identifier", "text": "ASSERT", "parent": 73, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 8}}, {"id": 75, "type": "argument_list", "text": "(Lock != NULL)", "parent": 73, "children": [76], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 23}}, {"id": 76, "type": "binary_expression", "text": "Lock != NULL", "parent": 75, "children": [77, 78, 79], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 22}}, {"id": 77, "type": "identifier", "text": "Lock", "parent": 76, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 14}}, {"id": 78, "type": "!=", "text": "!=", "parent": 76, "children": [], "start_point": {"row": 63, "column": 15}, "end_point": {"row": 63, "column": 17}}, {"id": 79, "type": "null", "text": "NULL", "parent": 76, "children": [80], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 22}}, {"id": 80, "type": "NULL", "text": "NULL", "parent": 79, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 22}}, {"id": 81, "type": "call_expression", "text": "ASSERT (Lock->Lock == EfiLockReleased)", "parent": 61, "children": [82, 83], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 40}}, {"id": 82, "type": "identifier", "text": "ASSERT", "parent": 81, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 8}}, {"id": 83, "type": "argument_list", "text": "(Lock->Lock == EfiLockReleased)", "parent": 81, "children": [84], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 40}}, {"id": 84, "type": "binary_expression", "text": "Lock->Lock == EfiLockReleased", "parent": 83, "children": [85, 88, 89], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 39}}, {"id": 85, "type": "field_expression", "text": "Lock->Lock", "parent": 84, "children": [86, 87], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 20}}, {"id": 86, "type": "identifier", "text": "Lock", "parent": 85, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 14}}, {"id": 87, "type": "field_identifier", "text": "Lock", "parent": 85, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 20}}, {"id": 88, "type": "==", "text": "==", "parent": 84, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 23}}, {"id": 89, "type": "identifier", "text": "EfiLockReleased", "parent": 84, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 39}}, {"id": 90, "type": "assignment_expression", "text": "Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl)", "parent": 61, "children": [91, 94, 95], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 43}}, {"id": 91, "type": "field_expression", "text": "Lock->OwnerTpl", "parent": 90, "children": [92, 93], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 16}}, {"id": 92, "type": "identifier", "text": "Lock", "parent": 91, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 6}}, {"id": 93, "type": "field_identifier", "text": "OwnerTpl", "parent": 91, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 16}}, {"id": 94, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 18}}, {"id": 95, "type": "call_expression", "text": "CoreRaiseTpl (Lock->Tpl)", "parent": 90, "children": [96, 97], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 43}}, {"id": 96, "type": "identifier", "text": "CoreRaiseTpl", "parent": 95, "children": [], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 31}}, {"id": 97, "type": "argument_list", "text": "(Lock->Tpl)", "parent": 95, "children": [98], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 43}}, {"id": 98, "type": "field_expression", "text": "Lock->Tpl", "parent": 97, "children": [99, 100], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 42}}, {"id": 99, "type": "identifier", "text": "Lock", "parent": 98, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 37}}, {"id": 100, "type": "field_identifier", "text": "Tpl", "parent": 98, "children": [], "start_point": {"row": 66, "column": 39}, "end_point": {"row": 66, "column": 42}}, {"id": 101, "type": "assignment_expression", "text": "Lock->Lock = EfiLockAcquired", "parent": 61, "children": [102, 105, 106], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 34}}, {"id": 102, "type": "field_expression", "text": "Lock->Lock", "parent": 101, "children": [103, 104], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 12}}, {"id": 103, "type": "identifier", "text": "Lock", "parent": 102, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 6}}, {"id": 104, "type": "field_identifier", "text": "Lock", "parent": 102, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 12}}, {"id": 105, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 18}}, {"id": 106, "type": "identifier", "text": "EfiLockAcquired", "parent": 101, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 34}}, {"id": 107, "type": "function_definition", "text": "VOID\nCoreReleaseLock (\n IN EFI_LOCK *Lock\n )\n{\n EFI_TPL Tpl;\n\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockAcquired);\n\n Tpl = Lock->OwnerTpl;\n\n Lock->Lock = EfiLockReleased;\n\n CoreRestoreTpl (Tpl);\n}", "parent": null, "children": [108, 109], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 96, "column": 1}}, {"id": 108, "type": "type_identifier", "text": "VOID", "parent": 107, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 4}}, {"id": 109, "type": "function_declarator", "text": "CoreReleaseLock (\n IN EFI_LOCK *Lock\n )", "parent": 107, "children": [110, 111], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 84, "column": 3}}, {"id": 110, "type": "identifier", "text": "CoreReleaseLock", "parent": 109, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 15}}, {"id": 111, "type": "parameter_list", "text": "(\n IN EFI_LOCK *Lock\n )", "parent": 109, "children": [112], "start_point": {"row": 82, "column": 16}, "end_point": {"row": 84, "column": 3}}, {"id": 112, "type": "parameter_declaration", "text": "IN EFI_LOCK *Lock", "parent": 111, "children": [113, 114, 116], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 20}}, {"id": 113, "type": "type_identifier", "text": "IN", "parent": 112, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 4}}, {"id": 114, "type": "ERROR", "text": "EFI_LOCK", "parent": 112, "children": [115], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 13}}, {"id": 115, "type": "identifier", "text": "EFI_LOCK", "parent": 114, "children": [], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 13}}, {"id": 116, "type": "pointer_declarator", "text": "*Lock", "parent": 112, "children": [117, 118], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 20}}, {"id": 117, "type": "*", "text": "*", "parent": 116, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 16}}, {"id": 118, "type": "identifier", "text": "Lock", "parent": 116, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 20}}, {"id": 119, "type": "declaration", "text": "EFI_TPL Tpl;", "parent": 107, "children": [120, 121], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 14}}, {"id": 120, "type": "type_identifier", "text": "EFI_TPL", "parent": 119, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 9}}, {"id": 121, "type": "identifier", "text": "Tpl", "parent": 119, "children": [], "start_point": {"row": 86, "column": 10}, "end_point": {"row": 86, "column": 13}}, {"id": 122, "type": "call_expression", "text": "ASSERT (Lock != NULL)", "parent": 107, "children": [123, 124], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 23}}, {"id": 123, "type": "identifier", "text": "ASSERT", "parent": 122, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 8}}, {"id": 124, "type": "argument_list", "text": "(Lock != NULL)", "parent": 122, "children": [125], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 23}}, {"id": 125, "type": "binary_expression", "text": "Lock != NULL", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 22}}, {"id": 126, "type": "identifier", "text": "Lock", "parent": 125, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 14}}, {"id": 127, "type": "!=", "text": "!=", "parent": 125, "children": [], "start_point": {"row": 88, "column": 15}, "end_point": {"row": 88, "column": 17}}, {"id": 128, "type": "null", "text": "NULL", "parent": 125, "children": [129], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 22}}, {"id": 129, "type": "NULL", "text": "NULL", "parent": 128, "children": [], "start_point": {"row": 88, "column": 18}, "end_point": {"row": 88, "column": 22}}, {"id": 130, "type": "call_expression", "text": "ASSERT (Lock->Lock == EfiLockAcquired)", "parent": 107, "children": [131, 132], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 40}}, {"id": 131, "type": "identifier", "text": "ASSERT", "parent": 130, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 8}}, {"id": 132, "type": "argument_list", "text": "(Lock->Lock == EfiLockAcquired)", "parent": 130, "children": [133], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 40}}, {"id": 133, "type": "binary_expression", "text": "Lock->Lock == EfiLockAcquired", "parent": 132, "children": [134, 137, 138], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 39}}, {"id": 134, "type": "field_expression", "text": "Lock->Lock", "parent": 133, "children": [135, 136], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 20}}, {"id": 135, "type": "identifier", "text": "Lock", "parent": 134, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 14}}, {"id": 136, "type": "field_identifier", "text": "Lock", "parent": 134, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 20}}, {"id": 137, "type": "==", "text": "==", "parent": 133, "children": [], "start_point": {"row": 89, "column": 21}, "end_point": {"row": 89, "column": 23}}, {"id": 138, "type": "identifier", "text": "EfiLockAcquired", "parent": 133, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 39}}, {"id": 139, "type": "assignment_expression", "text": "Tpl = Lock->OwnerTpl", "parent": 107, "children": [140, 141, 142], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 22}}, {"id": 140, "type": "identifier", "text": "Tpl", "parent": 139, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 5}}, {"id": 141, "type": "=", "text": "=", "parent": 139, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 7}}, {"id": 142, "type": "field_expression", "text": "Lock->OwnerTpl", "parent": 139, "children": [143, 144], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 22}}, {"id": 143, "type": "identifier", "text": "Lock", "parent": 142, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 12}}, {"id": 144, "type": "field_identifier", "text": "OwnerTpl", "parent": 142, "children": [], "start_point": {"row": 91, "column": 14}, "end_point": {"row": 91, "column": 22}}, {"id": 145, "type": "assignment_expression", "text": "Lock->Lock = EfiLockReleased", "parent": 107, "children": [146, 149, 150], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 30}}, {"id": 146, "type": "field_expression", "text": "Lock->Lock", "parent": 145, "children": [147, 148], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 12}}, {"id": 147, "type": "identifier", "text": "Lock", "parent": 146, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 6}}, {"id": 148, "type": "field_identifier", "text": "Lock", "parent": 146, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 12}}, {"id": 149, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 14}}, {"id": 150, "type": "identifier", "text": "EfiLockReleased", "parent": 145, "children": [], "start_point": {"row": 93, "column": 15}, "end_point": {"row": 93, "column": 30}}, {"id": 151, "type": "call_expression", "text": "CoreRestoreTpl (Tpl)", "parent": 107, "children": [152, 153], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 22}}, {"id": 152, "type": "identifier", "text": "CoreRestoreTpl", "parent": 151, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 16}}, {"id": 153, "type": "argument_list", "text": "(Tpl)", "parent": 151, "children": [154], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 22}}, {"id": 154, "type": "identifier", "text": "Tpl", "parent": 153, "children": [], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 21}}]}, "node_categories": {"declarations": {"functions": [3, 5, 61, 63, 107, 109], "variables": [8, 66, 112, 119], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [15, 18, 23, 26, 27, 33, 34, 35, 43, 47, 50, 54, 73, 76, 81, 84, 85, 91, 95, 98, 102, 122, 125, 130, 133, 134, 142, 146, 151], "assignments": [42, 53, 90, 101, 139, 145], "loops": [], "conditionals": [4, 6, 9, 11, 14, 16, 19, 24, 28, 29, 31, 32, 36, 37, 39, 41, 44, 45, 48, 51, 52, 55, 56, 58, 60, 62, 64, 67, 69, 72, 74, 77, 82, 86, 87, 89, 92, 93, 96, 99, 100, 103, 104, 106, 108, 110, 113, 115, 118, 120, 121, 123, 126, 131, 135, 136, 138, 140, 143, 144, 147, 148, 150, 152, 154], "returns": [40, 59], "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": "EFI_STATUS\nCoreAcquireLockOrFail (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Loc"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "CoreAcquireLockOrFail (\n IN EFI_LOCK *Lock\n )"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "VOID\nCoreAcquireLock (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == E"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "CoreAcquireLock (\n IN EFI_LOCK *Lock\n )"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "VOID\nCoreReleaseLock (\n IN EFI_LOCK *Lock\n )\n{\n EFI_TPL Tpl;\n\n ASSERT (Lock != NULL);\n ASSERT "}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "CoreReleaseLock (\n IN EFI_LOCK *Lock\n )"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"DxeMain.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/** @file\n DXE Core library services.\n\nCopyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\nSPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/\n\n#include \"DxeMain.h\"\n\n//\n// Lock Stuff\n//\n/**\n Initialize a basic mutual exclusion lock. Each lock\n provides mutual exclusion access at it's task priority\n level. Since there is no-premption (at any TPL) or\n multiprocessor support, acquiring the lock only consists\n of raising to the locks TPL.\n\n @param Lock The EFI_LOCK structure to initialize\n\n @retval EFI_SUCCESS Lock Owned.\n @retval EFI_ACCESS_DENIED Reentrant Lock Acquisition, Lock not Owned.\n\n**/\nEFI_STATUS\nCoreAcquireLockOrFail (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock != EfiLockUninitialized);\n\n if (Lock->Lock == EfiLockAcquired) {\n //\n // Lock is already owned, so bail out\n //\n return EFI_ACCESS_DENIED;\n }\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n\n Lock->Lock = EfiLockAcquired;\n return EFI_SUCCESS;\n}\n\n\n\n/**\n Raising to the task priority level of the mutual exclusion\n lock, and then acquires ownership of the lock.\n\n @param Lock The lock to acquire\n\n @return Lock owned\n\n**/\nVOID\nCoreAcquireLock (\n IN EFI_LOCK *Lock\n )\n{\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockReleased);\n\n Lock->OwnerTpl = CoreRaiseTpl (Lock->Tpl);\n Lock->Lock = EfiLockAcquired;\n}\n\n\n\n/**\n Releases ownership of the mutual exclusion lock, and\n restores the previous task priority level.\n\n @param Lock The lock to release\n\n @return Lock unowned\n\n**/\nVOID\nCoreReleaseLock (\n IN EFI_LOCK *Lock\n )\n{\n EFI_TPL Tpl;\n\n ASSERT (Lock != NULL);\n ASSERT (Lock->Lock == EfiLockAcquired);\n\n Tpl = Lock->OwnerTpl;\n\n Lock->Lock = EfiLockReleased;\n\n CoreRestoreTpl (Tpl);\n}\n\n\n\n"}
80,315
c
// // Created by <NAME>. // Grupo de Optimizacion Combinatoria (GOC). // Departamento de Computacion - Universidad de Buenos Aires. // #ifndef GOC_COLLECTION_MATRIX_H #define GOC_COLLECTION_MATRIX_H #include <iostream> #include <vector> #include "goc/lib/json.hpp" #include "goc/print/printable.h" #include "goc/print/print_utils.h" namespace goc { // Represents a matrix of dimension rxc of elements of type T. // Precondition: r>=0, c>=0. template<typename T> class Matrix : public Printable { public: // Creates an empty matrix. Matrix(int row_count=0, int col_count=0) : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count) { } // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element. Matrix(int row_count, int col_count, const T& default_element) : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count) { } // Returns: the number of rows. int row_count() const { return row_count_; } // Returns: the number of columns. int column_count() const { return col_count_; } // Returns: the number of cells. int size() const { return row_count_ * col_count_; } // Returns: the specified row. std::vector<T>& operator[](int row) { return matrix_[row]; } // Returns: the specified row. const std::vector<T>& operator[](int row) const { return matrix_[row]; } // Returns: the specified cell value. T& operator()(int row, int col) { return matrix_[row][col]; } // Returns: the specified cell value. const T& operator()(int row, int col) const { return matrix_[row][col]; } // Returns: the specified cell value. const T& at(int row, int col) const { return matrix_.at(row).at(col); } // Clears the content of the matrix by setting the default value of T to each cell. void clear() { matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_)); } // Prints the matrix. virtual void Print(std::ostream& os) const { os << matrix_; } private: std::vector<std::vector<T>> matrix_; int row_count_, col_count_; }; template<typename T> void from_json(const nlohmann::json& j, Matrix<T>& matrix) { int r = j.size(); int c = r > 0 ? j[0].size() : 0; matrix = Matrix<T>(r, c); for (int i = 0; i < r; ++i) for (int k = 0; k < c; ++k) matrix[i][k] = j[i][k]; } template<typename T> void to_json(nlohmann::json& j, const Matrix<T>& matrix) { j = std::vector<nlohmann::json>(); for (int r = 0; r < matrix.row_count(); ++r) { j.push_back(std::vector<nlohmann::json>()); for (int c = 0; c < matrix.column_count(); ++c) { j.back().push_back((T)matrix[r][c]); } } } } // namespace goc #endif //GOC_COLLECTION_MATRIX_H
22.42
118
(translation_unit) "//\n// Created by <NAME>.\n// Grupo de Optimizacion Combinatoria (GOC).\n// Departamento de Computacion - Universidad de Buenos Aires.\n//\n\n#ifndef GOC_COLLECTION_MATRIX_H\n#define GOC_COLLECTION_MATRIX_H\n\n#include <iostream>\n#include <vector>\n\n#include "goc/lib/json.hpp"\n#include "goc/print/printable.h"\n#include "goc/print/print_utils.h"\n\nnamespace goc\n{\n// Represents a matrix of dimension rxc of elements of type T.\n// Precondition: r>=0, c>=0.\ntemplate<typename T>\nclass Matrix : public Printable\n{\npublic:\n // Creates an empty matrix.\n Matrix(int row_count=0, int col_count=0)\n : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return row_count_;\n }\n \n // Returns: the number of columns.\n int column_count() const\n {\n return col_count_;\n }\n \n // Returns: the number of cells.\n int size() const\n {\n return row_count_ * col_count_;\n }\n \n // Returns: the specified row.\n std::vector<T>& operator[](int row)\n {\n return matrix_[row];\n }\n \n // Returns: the specified row.\n const std::vector<T>& operator[](int row) const\n {\n return matrix_[row];\n }\n \n // Returns: the specified cell value.\n T& operator()(int row, int col)\n {\n return matrix_[row][col];\n }\n \n // Returns: the specified cell value.\n const T& operator()(int row, int col) const\n {\n return matrix_[row][col];\n }\n \n // Returns: the specified cell value.\n const T& at(int row, int col) const\n {\n return matrix_.at(row).at(col);\n }\n \n // Clears the content of the matrix by setting the default value of T to each cell.\n void clear()\n {\n matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n }\n \n // Prints the matrix.\n virtual void Print(std::ostream& os) const\n {\n os << matrix_;\n }\n\nprivate:\n std::vector<std::vector<T>> matrix_;\n int row_count_, col_count_;\n};\n\ntemplate<typename T>\nvoid from_json(const nlohmann::json& j, Matrix<T>& matrix)\n{\n int r = j.size();\n int c = r > 0 ? j[0].size() : 0;\n matrix = Matrix<T>(r, c);\n for (int i = 0; i < r; ++i)\n for (int k = 0; k < c; ++k)\n matrix[i][k] = j[i][k];\n}\n\ntemplate<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n j = std::vector<nlohmann::json>();\n for (int r = 0; r < matrix.row_count(); ++r)\n {\n j.push_back(std::vector<nlohmann::json>());\n for (int c = 0; c < matrix.column_count(); ++c)\n {\n j.back().push_back((T)matrix[r][c]);\n }\n }\n}\n\n} // namespace goc\n\n#endif //GOC_COLLECTION_MATRIX_H\n" (comment) "//" (comment) "// Created by <NAME>." (comment) "// Grupo de Optimizacion Combinatoria (GOC)." (comment) "// Departamento de Computacion - Universidad de Buenos Aires." (comment) "//" (preproc_ifdef) "#ifndef GOC_COLLECTION_MATRIX_H\n#define GOC_COLLECTION_MATRIX_H\n\n#include <iostream>\n#include <vector>\n\n#include "goc/lib/json.hpp"\n#include "goc/print/printable.h"\n#include "goc/print/print_utils.h"\n\nnamespace goc\n{\n// Represents a matrix of dimension rxc of elements of type T.\n// Precondition: r>=0, c>=0.\ntemplate<typename T>\nclass Matrix : public Printable\n{\npublic:\n // Creates an empty matrix.\n Matrix(int row_count=0, int col_count=0)\n : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return row_count_;\n }\n \n // Returns: the number of columns.\n int column_count() const\n {\n return col_count_;\n }\n \n // Returns: the number of cells.\n int size() const\n {\n return row_count_ * col_count_;\n }\n \n // Returns: the specified row.\n std::vector<T>& operator[](int row)\n {\n return matrix_[row];\n }\n \n // Returns: the specified row.\n const std::vector<T>& operator[](int row) const\n {\n return matrix_[row];\n }\n \n // Returns: the specified cell value.\n T& operator()(int row, int col)\n {\n return matrix_[row][col];\n }\n \n // Returns: the specified cell value.\n const T& operator()(int row, int col) const\n {\n return matrix_[row][col];\n }\n \n // Returns: the specified cell value.\n const T& at(int row, int col) const\n {\n return matrix_.at(row).at(col);\n }\n \n // Clears the content of the matrix by setting the default value of T to each cell.\n void clear()\n {\n matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n }\n \n // Prints the matrix.\n virtual void Print(std::ostream& os) const\n {\n os << matrix_;\n }\n\nprivate:\n std::vector<std::vector<T>> matrix_;\n int row_count_, col_count_;\n};\n\ntemplate<typename T>\nvoid from_json(const nlohmann::json& j, Matrix<T>& matrix)\n{\n int r = j.size();\n int c = r > 0 ? j[0].size() : 0;\n matrix = Matrix<T>(r, c);\n for (int i = 0; i < r; ++i)\n for (int k = 0; k < c; ++k)\n matrix[i][k] = j[i][k];\n}\n\ntemplate<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n j = std::vector<nlohmann::json>();\n for (int r = 0; r < matrix.row_count(); ++r)\n {\n j.push_back(std::vector<nlohmann::json>());\n for (int c = 0; c < matrix.column_count(); ++c)\n {\n j.back().push_back((T)matrix[r][c]);\n }\n }\n}\n\n} // namespace goc\n\n#endif" (#ifndef) "#ifndef" (identifier) "GOC_COLLECTION_MATRIX_H" (preproc_def) "#define GOC_COLLECTION_MATRIX_H\n" (#define) "#define" (identifier) "GOC_COLLECTION_MATRIX_H" (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 "goc/lib/json.hpp"\n" (#include) "#include" (string_literal) ""goc/lib/json.hpp"" (") """ (string_content) "goc/lib/json.hpp" (") """ (preproc_include) "#include "goc/print/printable.h"\n" (#include) "#include" (string_literal) ""goc/print/printable.h"" (") """ (string_content) "goc/print/printable.h" (") """ (preproc_include) "#include "goc/print/print_utils.h"\n" (#include) "#include" (string_literal) ""goc/print/print_utils.h"" (") """ (string_content) "goc/print/print_utils.h" (") """ (function_definition) "namespace goc\n{\n// Represents a matrix of dimension rxc of elements of type T.\n// Precondition: r>=0, c>=0.\ntemplate<typename T>\nclass Matrix : public Printable\n{\npublic:\n // Creates an empty matrix.\n Matrix(int row_count=0, int col_count=0)\n : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return row_count_;\n }\n \n // Returns: the number of columns.\n int column_count() const\n {\n return col_count_;\n }\n \n // Returns: the number of cells.\n int size() const\n {\n return row_count_ * col_count_;\n }\n \n // Returns: the specified row.\n std::vector<T>& operator[](int row)\n {\n return matrix_[row];\n }\n \n // Returns: the specified row.\n const std::vector<T>& operator[](int row) const\n {\n return matrix_[row];\n }\n \n // Returns: the specified cell value.\n T& operator()(int row, int col)\n {\n return matrix_[row][col];\n }\n \n // Returns: the specified cell value.\n const T& operator()(int row, int col) const\n {\n return matrix_[row][col];\n }\n \n // Returns: the specified cell value.\n const T& at(int row, int col) const\n {\n return matrix_.at(row).at(col);\n }\n \n // Clears the content of the matrix by setting the default value of T to each cell.\n void clear()\n {\n matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n }\n \n // Prints the matrix.\n virtual void Print(std::ostream& os) const\n {\n os << matrix_;\n }\n\nprivate:\n std::vector<std::vector<T>> matrix_;\n int row_count_, col_count_;\n}" (type_identifier) "namespace" (identifier) "goc" (compound_statement) "{\n// Represents a matrix of dimension rxc of elements of type T.\n// Precondition: r>=0, c>=0.\ntemplate<typename T>\nclass Matrix : public Printable\n{\npublic:\n // Creates an empty matrix.\n Matrix(int row_count=0, int col_count=0)\n : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return row_count_;\n }\n \n // Returns: the number of columns.\n int column_count() const\n {\n return col_count_;\n }\n \n // Returns: the number of cells.\n int size() const\n {\n return row_count_ * col_count_;\n }\n \n // Returns: the specified row.\n std::vector<T>& operator[](int row)\n {\n return matrix_[row];\n }\n \n // Returns: the specified row.\n const std::vector<T>& operator[](int row) const\n {\n return matrix_[row];\n }\n \n // Returns: the specified cell value.\n T& operator()(int row, int col)\n {\n return matrix_[row][col];\n }\n \n // Returns: the specified cell value.\n const T& operator()(int row, int col) const\n {\n return matrix_[row][col];\n }\n \n // Returns: the specified cell value.\n const T& at(int row, int col) const\n {\n return matrix_.at(row).at(col);\n }\n \n // Clears the content of the matrix by setting the default value of T to each cell.\n void clear()\n {\n matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n }\n \n // Prints the matrix.\n virtual void Print(std::ostream& os) const\n {\n os << matrix_;\n }\n\nprivate:\n std::vector<std::vector<T>> matrix_;\n int row_count_, col_count_;\n}" ({) "{" (comment) "// Represents a matrix of dimension rxc of elements of type T." (comment) "// Precondition: r>=0, c>=0." (expression_statement) "template<typename T>\nclass" (binary_expression) "template<typename T>\nclass" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (;) "" (labeled_statement) "Matrix : public Printable\n{\npublic:\n // Creates an empty matrix.\n Matrix(int row_count=0, int col_count=0)\n : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return row_count_;\n }" (statement_identifier) "Matrix" (:) ":" (ERROR) "public Printable" (type_identifier) "public" (identifier) "Printable" (compound_statement) "{\npublic:\n // Creates an empty matrix.\n Matrix(int row_count=0, int col_count=0)\n : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return row_count_;\n }" ({) "{" (labeled_statement) "public:\n // Creates an empty matrix.\n Matrix(int row_count=0, int col_count=0)\n : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return row_count_;" (statement_identifier) "public" (:) ":" (comment) "// Creates an empty matrix." (declaration) "Matrix(int row_count=0, int col_count=0)\n : matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return row_count_;" (macro_type_specifier) "Matrix(int" (identifier) "Matrix" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (init_declarator) "row_count=0" (identifier) "row_count" (=) "=" (number_literal) "0" (,) "," (ERROR) "int" (identifier) "int" (init_declarator) "col_count=0)\n : matrix_(row_count, std::vector<T>(col_count))" (identifier) "col_count" (=) "=" (ERROR) "0)\n :" (number_literal) "0" ()) ")" (:) ":" (call_expression) "matrix_(row_count, std::vector<T>(col_count))" (identifier) "matrix_" (argument_list) "(row_count, std::vector<T>(col_count))" (() "(" (identifier) "row_count" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<T>(col_count)" (binary_expression) "vector<T" (identifier) "vector" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(col_count)" (() "(" (identifier) "col_count" ()) ")" ()) ")" (,) "," (function_declarator) "row_count_(row_count)" (identifier) "row_count_" (parameter_list) "(row_count)" (() "(" (parameter_declaration) "row_count" (type_identifier) "row_count" ()) ")" (,) "," (ERROR) "col_count_(col_count)\n { }" (function_declarator) "col_count_(col_count)" (identifier) "col_count_" (parameter_list) "(col_count)" (() "(" (parameter_declaration) "col_count" (type_identifier) "col_count" ()) ")" ({) "{" (}) "}" (comment) "// Creates a matrix with row_count rows, col_count columns, and all cells with the default_element." (ERROR) "Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element))," (function_declarator) "Matrix(int row_count, int col_count, const T& default_element)\n : matrix_(row_count, std::vector<T>(col_count, default_element))" (identifier) "Matrix" (parameter_list) "(int row_count, int col_count, const T& default_element)" (() "(" (parameter_declaration) "int row_count" (primitive_type) "int" (identifier) "row_count" (,) "," (parameter_declaration) "int col_count" (primitive_type) "int" (identifier) "col_count" (,) "," (parameter_declaration) "const T& default_element" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (identifier) "default_element" ()) ")" (ERROR) ":" (:) ":" (call_expression) "matrix_(row_count, std::vector<T>(col_count, default_element))" (identifier) "matrix_" (argument_list) "(row_count, std::vector<T>(col_count, default_element))" (() "(" (identifier) "row_count" (,) "," (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<T>(col_count, default_element)" (binary_expression) "vector<T" (identifier) "vector" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(col_count, default_element)" (() "(" (ERROR) "col_count," (identifier) "col_count" (,) "," (identifier) "default_element" ()) ")" ()) ")" (,) "," (function_declarator) "row_count_(row_count)" (identifier) "row_count_" (parameter_list) "(row_count)" (() "(" (parameter_declaration) "row_count" (type_identifier) "row_count" ()) ")" (,) "," (ERROR) "col_count_(col_count)\n { }\n \n // Returns: the number of rows.\n int row_count() const\n {\n return" (function_declarator) "col_count_(col_count)" (identifier) "col_count_" (parameter_list) "(col_count)" (() "(" (parameter_declaration) "col_count" (type_identifier) "col_count" ()) ")" ({) "{" (}) "}" (comment) "// Returns: the number of rows." (primitive_type) "int" (function_declarator) "row_count() const" (identifier) "row_count" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "row_count_" (;) ";" (}) "}" (comment) "// Returns: the number of columns." (ERROR) "int column_count() const" (primitive_type) "int" (function_declarator) "column_count()" (identifier) "column_count" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return col_count_;\n }" ({) "{" (return_statement) "return col_count_;" (return) "return" (identifier) "col_count_" (;) ";" (}) "}" (comment) "// Returns: the number of cells." (ERROR) "int size() const" (primitive_type) "int" (function_declarator) "size()" (identifier) "size" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return row_count_ * col_count_;\n }" ({) "{" (return_statement) "return row_count_ * col_count_;" (return) "return" (binary_expression) "row_count_ * col_count_" (identifier) "row_count_" (*) "*" (identifier) "col_count_" (;) ";" (}) "}" (comment) "// Returns: the specified row." (labeled_statement) "std::vector<T>& operator[](int row)\n {\n return matrix_[row];\n }" (statement_identifier) "std" (:) ":" (ERROR) ":vector<T>& operator[](int row)" (:) ":" (binary_expression) "vector<T>& operator[](int row)" (binary_expression) "vector<T" (identifier) "vector" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "& operator[](int row)" (&) "&" (call_expression) "operator[](int row)" (subscript_expression) "operator[]" (identifier) "operator" ([) "[" (identifier) "" (]) "]" (argument_list) "(int row)" (() "(" (identifier) "int" (ERROR) "row" (identifier) "row" ()) ")" (compound_statement) "{\n return matrix_[row];\n }" ({) "{" (return_statement) "return matrix_[row];" (return) "return" (subscript_expression) "matrix_[row]" (identifier) "matrix_" ([) "[" (identifier) "row" (]) "]" (;) ";" (}) "}" (comment) "// Returns: the specified row." (function_definition) "const std::vector<T>& operator[](int row) const\n {\n return matrix_[row];\n }" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::vector<T>&" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "T" (>) ">" (&) "&" (function_declarator) "operator[](int row) const" (array_declarator) "operator[]" (identifier) "operator" ([) "[" (]) "]" (parameter_list) "(int row)" (() "(" (parameter_declaration) "int row" (primitive_type) "int" (identifier) "row" ()) ")" (identifier) "const" (compound_statement) "{\n return matrix_[row];\n }" ({) "{" (return_statement) "return matrix_[row];" (return) "return" (subscript_expression) "matrix_[row]" (identifier) "matrix_" ([) "[" (identifier) "row" (]) "]" (;) ";" (}) "}" (comment) "// Returns: the specified cell value." (expression_statement) "T& operator()(int row, int col)" (binary_expression) "T& operator()(int row, int col)" (identifier) "T" (&) "&" (call_expression) "operator()(int row, int col)" (call_expression) "operator()" (identifier) "operator" (argument_list) "()" (() "(" ()) ")" (argument_list) "(int row, int col)" (() "(" (identifier) "int" (ERROR) "row" (identifier) "row" (,) "," (identifier) "int" (ERROR) "col" (identifier) "col" ()) ")" (;) "" (compound_statement) "{\n return matrix_[row][col];\n }" ({) "{" (return_statement) "return matrix_[row][col];" (return) "return" (subscript_expression) "matrix_[row][col]" (subscript_expression) "matrix_[row]" (identifier) "matrix_" ([) "[" (identifier) "row" (]) "]" ([) "[" (identifier) "col" (]) "]" (;) ";" (}) "}" (comment) "// Returns: the specified cell value." (function_definition) "const T& operator()(int row, int col) const\n {\n return matrix_[row][col];\n }" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (function_declarator) "operator()(int row, int col) const" (function_declarator) "operator()" (identifier) "operator" (parameter_list) "()" (() "(" ()) ")" (parameter_list) "(int row, int col)" (() "(" (parameter_declaration) "int row" (primitive_type) "int" (identifier) "row" (,) "," (parameter_declaration) "int col" (primitive_type) "int" (identifier) "col" ()) ")" (identifier) "const" (compound_statement) "{\n return matrix_[row][col];\n }" ({) "{" (return_statement) "return matrix_[row][col];" (return) "return" (subscript_expression) "matrix_[row][col]" (subscript_expression) "matrix_[row]" (identifier) "matrix_" ([) "[" (identifier) "row" (]) "]" ([) "[" (identifier) "col" (]) "]" (;) ";" (}) "}" (comment) "// Returns: the specified cell value." (function_definition) "const T& at(int row, int col) const\n {\n return matrix_.at(row).at(col);\n }" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (function_declarator) "at(int row, int col) const" (identifier) "at" (parameter_list) "(int row, int col)" (() "(" (parameter_declaration) "int row" (primitive_type) "int" (identifier) "row" (,) "," (parameter_declaration) "int col" (primitive_type) "int" (identifier) "col" ()) ")" (identifier) "const" (compound_statement) "{\n return matrix_.at(row).at(col);\n }" ({) "{" (return_statement) "return matrix_.at(row).at(col);" (return) "return" (call_expression) "matrix_.at(row).at(col)" (field_expression) "matrix_.at(row).at" (call_expression) "matrix_.at(row)" (field_expression) "matrix_.at" (identifier) "matrix_" (.) "." (field_identifier) "at" (argument_list) "(row)" (() "(" (identifier) "row" ()) ")" (.) "." (field_identifier) "at" (argument_list) "(col)" (() "(" (identifier) "col" ()) ")" (;) ";" (}) "}" (comment) "// Clears the content of the matrix by setting the default value of T to each cell." (function_definition) "void clear()\n {\n matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n }" (primitive_type) "void" (function_declarator) "clear()" (identifier) "clear" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n }" ({) "{" (expression_statement) "matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));" (binary_expression) "matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_))" (binary_expression) "matrix_ = std::vector<std" (assignment_expression) "matrix_ = std" (identifier) "matrix_" (=) "=" (identifier) "std" (ERROR) "::vector" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (ERROR) "::vector" (:) ":" (:) ":" (identifier) "vector" (<) "<" (binary_expression) "T>>(row_count_, std::vector<T>(col_count_))" (identifier) "T" (>>) ">>" (parenthesized_expression) "(row_count_, std::vector<T>(col_count_))" (() "(" (ERROR) "row_count_, std::" (comma_expression) "row_count_, std" (identifier) "row_count_" (,) "," (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<T>(col_count_)" (binary_expression) "vector<T" (identifier) "vector" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(col_count_)" (() "(" (identifier) "col_count_" ()) ")" ()) ")" (;) ";" (}) "}" (comment) "// Prints the matrix." (function_definition) "virtual void Print(std::ostream& os) const\n {\n os << matrix_;\n }" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Print(std::ostream& os) const" (identifier) "Print" (parameter_list) "(std::ostream& os)" (() "(" (parameter_declaration) "std::ostream& os" (type_identifier) "std" (ERROR) "::ostream&" (:) ":" (:) ":" (identifier) "ostream" (&) "&" (identifier) "os" ()) ")" (identifier) "const" (compound_statement) "{\n os << matrix_;\n }" ({) "{" (expression_statement) "os << matrix_;" (binary_expression) "os << matrix_" (identifier) "os" (<<) "<<" (identifier) "matrix_" (;) ";" (}) "}" (labeled_statement) "private:\n std::vector<std::vector<T>> matrix_;" (statement_identifier) "private" (:) ":" (labeled_statement) "std::vector<std::vector<T>> matrix_;" (statement_identifier) "std" (ERROR) "::vector<std:" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "vector<T>> matrix_;" (binary_expression) "vector<T>> matrix_" (identifier) "vector" (<) "<" (binary_expression) "T>> matrix_" (identifier) "T" (>>) ">>" (identifier) "matrix_" (;) ";" (declaration) "int row_count_, col_count_;" (primitive_type) "int" (identifier) "row_count_" (,) "," (identifier) "col_count_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "template<typename T>\nvoid" (binary_expression) "template<typename T>\nvoid" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "void" (;) "" (labeled_statement) "from_json(const nlohmann::json& j, Matrix<T>& matrix)\n{\n int r = j.size();\n int c = r > 0 ? j[0].size() : 0;\n matrix = Matrix<T>(r, c);\n for (int i = 0; i < r; ++i)\n for (int k = 0; k < c; ++k)\n matrix[i][k] = j[i][k];\n}" (statement_identifier) "from_json" (ERROR) "(const nlohmann:" (() "(" (type_descriptor) "const nlohmann" (type_qualifier) "const" (const) "const" (type_identifier) "nlohmann" (:) ":" (:) ":" (ERROR) "json& j, Matrix<T>& matrix)" (comma_expression) "json& j, Matrix<T>& matrix" (binary_expression) "json& j" (identifier) "json" (&) "&" (identifier) "j" (,) "," (binary_expression) "Matrix<T>& matrix" (binary_expression) "Matrix<T" (identifier) "Matrix" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "& matrix" (&) "&" (identifier) "matrix" ()) ")" (compound_statement) "{\n int r = j.size();\n int c = r > 0 ? j[0].size() : 0;\n matrix = Matrix<T>(r, c);\n for (int i = 0; i < r; ++i)\n for (int k = 0; k < c; ++k)\n matrix[i][k] = j[i][k];\n}" ({) "{" (declaration) "int r = j.size();" (primitive_type) "int" (init_declarator) "r = j.size()" (identifier) "r" (=) "=" (call_expression) "j.size()" (field_expression) "j.size" (identifier) "j" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int c = r > 0 ? j[0].size() : 0;" (primitive_type) "int" (init_declarator) "c = r > 0 ? j[0].size() : 0" (identifier) "c" (=) "=" (conditional_expression) "r > 0 ? j[0].size() : 0" (binary_expression) "r > 0" (identifier) "r" (>) ">" (number_literal) "0" (?) "?" (call_expression) "j[0].size()" (field_expression) "j[0].size" (subscript_expression) "j[0]" (identifier) "j" ([) "[" (number_literal) "0" (]) "]" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "matrix = Matrix<T>(r, c);" (assignment_expression) "matrix = Matrix<T>(r, c)" (identifier) "matrix" (=) "=" (binary_expression) "Matrix<T>(r, c)" (binary_expression) "Matrix<T" (identifier) "Matrix" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(r, c)" (() "(" (comma_expression) "r, c" (identifier) "r" (,) "," (identifier) "c" ()) ")" (;) ";" (for_statement) "for (int i = 0; i < r; ++i)\n for (int k = 0; k < c; ++k)\n matrix[i][k] = j[i][k];" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < r" (identifier) "i" (<) "<" (identifier) "r" (;) ";" (update_expression) "++i" (++) "++" (identifier) "i" ()) ")" (for_statement) "for (int k = 0; k < c; ++k)\n matrix[i][k] = j[i][k];" (for) "for" (() "(" (declaration) "int k = 0;" (primitive_type) "int" (init_declarator) "k = 0" (identifier) "k" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "k < c" (identifier) "k" (<) "<" (identifier) "c" (;) ";" (update_expression) "++k" (++) "++" (identifier) "k" ()) ")" (expression_statement) "matrix[i][k] = j[i][k];" (assignment_expression) "matrix[i][k] = j[i][k]" (subscript_expression) "matrix[i][k]" (subscript_expression) "matrix[i]" (identifier) "matrix" ([) "[" (identifier) "i" (]) "]" ([) "[" (identifier) "k" (]) "]" (=) "=" (subscript_expression) "j[i][k]" (subscript_expression) "j[i]" (identifier) "j" ([) "[" (identifier) "i" (]) "]" ([) "[" (identifier) "k" (]) "]" (;) ";" (}) "}" (expression_statement) "template<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n j = std::vector<nlohmann::json>();" (binary_expression) "template<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n j = std::vector<nlohmann" (binary_expression) "template<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n j = std" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (ERROR) "void to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{" (identifier) "void" (call_expression) "to_json(nlohmann::json& j, const Matrix<T>& matrix)" (identifier) "to_json" (argument_list) "(nlohmann::json& j, const Matrix<T>& matrix)" (() "(" (binary_expression) "nlohmann::json& j" (identifier) "nlohmann" (ERROR) "::json" (:) ":" (:) ":" (identifier) "json" (&) "&" (identifier) "j" (,) "," (ERROR) "const" (identifier) "const" (binary_expression) "Matrix<T>& matrix" (binary_expression) "Matrix<T" (identifier) "Matrix" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "& matrix" (&) "&" (identifier) "matrix" ()) ")" ({) "{" (assignment_expression) "j = std" (identifier) "j" (=) "=" (identifier) "std" (ERROR) "::vector" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "nlohmann" (ERROR) "::json>()" (:) ":" (:) ":" (identifier) "json" (>) ">" (() "(" ()) ")" (;) ";" (for_statement) "for (int r = 0; r < matrix.row_count(); ++r)\n {\n j.push_back(std::vector<nlohmann::json>());\n for (int c = 0; c < matrix.column_count(); ++c)\n {\n j.back().push_back((T)matrix[r][c]);\n }\n }" (for) "for" (() "(" (declaration) "int r = 0;" (primitive_type) "int" (init_declarator) "r = 0" (identifier) "r" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "r < matrix.row_count()" (identifier) "r" (<) "<" (call_expression) "matrix.row_count()" (field_expression) "matrix.row_count" (identifier) "matrix" (.) "." (field_identifier) "row_count" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "++r" (++) "++" (identifier) "r" ()) ")" (compound_statement) "{\n j.push_back(std::vector<nlohmann::json>());\n for (int c = 0; c < matrix.column_count(); ++c)\n {\n j.back().push_back((T)matrix[r][c]);\n }\n }" ({) "{" (expression_statement) "j.push_back(std::vector<nlohmann::json>());" (call_expression) "j.push_back(std::vector<nlohmann::json>())" (field_expression) "j.push_back" (identifier) "j" (.) "." (field_identifier) "push_back" (argument_list) "(std::vector<nlohmann::json>())" (() "(" (ERROR) "std::vector<nlohmann::" (identifier) "std" (:) ":" (:) ":" (binary_expression) "vector<nlohmann" (identifier) "vector" (<) "<" (identifier) "nlohmann" (:) ":" (:) ":" (binary_expression) "json>()" (identifier) "json" (>) ">" (parenthesized_expression) "()" (() "(" (identifier) "" ()) ")" ()) ")" (;) ";" (for_statement) "for (int c = 0; c < matrix.column_count(); ++c)\n {\n j.back().push_back((T)matrix[r][c]);\n }" (for) "for" (() "(" (declaration) "int c = 0;" (primitive_type) "int" (init_declarator) "c = 0" (identifier) "c" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "c < matrix.column_count()" (identifier) "c" (<) "<" (call_expression) "matrix.column_count()" (field_expression) "matrix.column_count" (identifier) "matrix" (.) "." (field_identifier) "column_count" (argument_list) "()" (() "(" ()) ")" (;) ";" (update_expression) "++c" (++) "++" (identifier) "c" ()) ")" (compound_statement) "{\n j.back().push_back((T)matrix[r][c]);\n }" ({) "{" (expression_statement) "j.back().push_back((T)matrix[r][c]);" (call_expression) "j.back().push_back((T)matrix[r][c])" (field_expression) "j.back().push_back" (call_expression) "j.back()" (field_expression) "j.back" (identifier) "j" (.) "." (field_identifier) "back" (argument_list) "()" (() "(" ()) ")" (.) "." (field_identifier) "push_back" (argument_list) "((T)matrix[r][c])" (() "(" (cast_expression) "(T)matrix[r][c]" (() "(" (type_descriptor) "T" (type_identifier) "T" ()) ")" (subscript_expression) "matrix[r][c]" (subscript_expression) "matrix[r]" (identifier) "matrix" ([) "[" (identifier) "r" (]) "]" ([) "[" (identifier) "c" (]) "]" ()) ")" (;) ";" (}) "}" (}) "}" (ERROR) "}\n\n}" (}) "}" (}) "}" (comment) "// namespace goc" (#endif) "#endif" (comment) "//GOC_COLLECTION_MATRIX_H"
886
38
{"language": "c", "success": true, "metadata": {"lines": 118, "avg_line_length": 22.42, "nodes": 528, "errors": 0, "source_hash": "02458309a2ed21700b2db741600d2b581ec7b9e836ebe7fac9e97666ce9f80dd", "categorized_nodes": 371}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GOC_COLLECTION_MATRIX_H\n#define GOC_COLLECTION_MATRIX_H\n\n#include <iostream>\n#include <vector>\n\n#include \"goc/lib/json.hpp\"\n#include \"goc/print/printable.h\"\n#include \"goc/print/print_utils.h\"\n\nnamespace goc\n{\n// Represents a matrix of dimension rxc of elements of type T.\n// Precondition: r>=0, c>=0.\ntemplate<typename T>\nclass Matrix : public Printable\n{\npublic:\n\t// Creates an empty matrix.\n\tMatrix(int row_count=0, int col_count=0)\n\t\t: matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n\tMatrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Returns: the number of rows.\n\tint row_count() const\n\t{\n\t\treturn row_count_;\n\t}\n\t\n\t// Returns: the number of columns.\n\tint column_count() const\n\t{\n\t\treturn col_count_;\n\t}\n\t\n\t// Returns: the number of cells.\n\tint size() const\n\t{\n\t\treturn row_count_ * col_count_;\n\t}\n\t\n\t// Returns: the specified row.\n\tstd::vector<T>& operator[](int row)\n\t{\n\t\treturn matrix_[row];\n\t}\n\t\n\t// Returns: the specified row.\n\tconst std::vector<T>& operator[](int row) const\n\t{\n\t\treturn matrix_[row];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tT& operator()(int row, int col)\n\t{\n\t\treturn matrix_[row][col];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tconst T& operator()(int row, int col) const\n\t{\n\t\treturn matrix_[row][col];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tconst T& at(int row, int col) const\n\t{\n\t\treturn matrix_.at(row).at(col);\n\t}\n\t\n\t// Clears the content of the matrix by setting the default value of T to each cell.\n\tvoid clear()\n\t{\n\t\tmatrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n\t}\n\t\n\t// Prints the matrix.\n\tvirtual void Print(std::ostream& os) const\n\t{\n\t\tos << matrix_;\n\t}\n\nprivate:\n\tstd::vector<std::vector<T>> matrix_;\n\tint row_count_, col_count_;\n};\n\ntemplate<typename T>\nvoid from_json(const nlohmann::json& j, Matrix<T>& matrix)\n{\n\tint r = j.size();\n\tint c = r > 0 ? j[0].size() : 0;\n\tmatrix = Matrix<T>(r, c);\n\tfor (int i = 0; i < r; ++i)\n\t\tfor (int k = 0; k < c; ++k)\n\t\t\tmatrix[i][k] = j[i][k];\n}\n\ntemplate<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n\tj = std::vector<nlohmann::json>();\n\tfor (int r = 0; r < matrix.row_count(); ++r)\n\t{\n\t\tj.push_back(std::vector<nlohmann::json>());\n\t\tfor (int c = 0; c < matrix.column_count(); ++c)\n\t\t{\n\t\t\tj.back().push_back((T)matrix[r][c]);\n\t\t}\n\t}\n}\n\n} // namespace goc\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 319, 457, 526, 527], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 126, "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": "GOC_COLLECTION_MATRIX_H", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 31}}, {"id": 3, "type": "preproc_def", "text": "#define GOC_COLLECTION_MATRIX_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": "GOC_COLLECTION_MATRIX_H", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 31}}, {"id": 6, "type": "preproc_include", "text": "#include <iostream>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<iostream>", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include \"goc/lib/json.hpp\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"goc/lib/json.hpp\"", "parent": 12, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 27}}, {"id": 15, "type": "preproc_include", "text": "#include \"goc/print/printable.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": "\"goc/print/printable.h\"", "parent": 15, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 32}}, {"id": 18, "type": "preproc_include", "text": "#include \"goc/print/print_utils.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"goc/print/print_utils.h\"", "parent": 18, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 34}}, {"id": 21, "type": "function_definition", "text": "namespace goc\n{\n// Represents a matrix of dimension rxc of elements of type T.\n// Precondition: r>=0, c>=0.\ntemplate<typename T>\nclass Matrix : public Printable\n{\npublic:\n\t// Creates an empty matrix.\n\tMatrix(int row_count=0, int col_count=0)\n\t\t: matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n\tMatrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Returns: the number of rows.\n\tint row_count() const\n\t{\n\t\treturn row_count_;\n\t}\n\t\n\t// Returns: the number of columns.\n\tint column_count() const\n\t{\n\t\treturn col_count_;\n\t}\n\t\n\t// Returns: the number of cells.\n\tint size() const\n\t{\n\t\treturn row_count_ * col_count_;\n\t}\n\t\n\t// Returns: the specified row.\n\tstd::vector<T>& operator[](int row)\n\t{\n\t\treturn matrix_[row];\n\t}\n\t\n\t// Returns: the specified row.\n\tconst std::vector<T>& operator[](int row) const\n\t{\n\t\treturn matrix_[row];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tT& operator()(int row, int col)\n\t{\n\t\treturn matrix_[row][col];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tconst T& operator()(int row, int col) const\n\t{\n\t\treturn matrix_[row][col];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tconst T& at(int row, int col) const\n\t{\n\t\treturn matrix_.at(row).at(col);\n\t}\n\t\n\t// Clears the content of the matrix by setting the default value of T to each cell.\n\tvoid clear()\n\t{\n\t\tmatrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n\t}\n\t\n\t// Prints the matrix.\n\tvirtual void Print(std::ostream& os) const\n\t{\n\t\tos << matrix_;\n\t}\n\nprivate:\n\tstd::vector<std::vector<T>> matrix_;\n\tint row_count_, col_count_;\n}", "parent": 0, "children": [22, 23], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 97, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 23, "type": "identifier", "text": "goc", "parent": 21, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 13}}, {"id": 24, "type": "binary_expression", "text": "template<typename T>\nclass", "parent": 21, "children": [25, 29, 31], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 5}}, {"id": 25, "type": "binary_expression", "text": "template<typename", "parent": 24, "children": [26, 27, 28], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 17}}, {"id": 26, "type": "identifier", "text": "template", "parent": 25, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 27, "type": "<", "text": "<", "parent": 25, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 9}}, {"id": 28, "type": "identifier", "text": "typename", "parent": 25, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 17}}, {"id": 29, "type": "ERROR", "text": "T", "parent": 24, "children": [30], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 19}}, {"id": 30, "type": "identifier", "text": "T", "parent": 29, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 19}}, {"id": 31, "type": ">", "text": ">", "parent": 24, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 32, "type": "labeled_statement", "text": "Matrix : public Printable\n{\npublic:\n\t// Creates an empty matrix.\n\tMatrix(int row_count=0, int col_count=0)\n\t\t: matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n\tMatrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Returns: the number of rows.\n\tint row_count() const\n\t{\n\t\treturn row_count_;\n\t}", "parent": 21, "children": [33, 34], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 38, "column": 2}}, {"id": 33, "type": "statement_identifier", "text": "Matrix", "parent": 32, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 12}}, {"id": 34, "type": "ERROR", "text": "public Printable", "parent": 32, "children": [35], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 31}}, {"id": 35, "type": "identifier", "text": "Printable", "parent": 34, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 31}}, {"id": 36, "type": "labeled_statement", "text": "public:\n\t// Creates an empty matrix.\n\tMatrix(int row_count=0, int col_count=0)\n\t\t: matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n\tMatrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Returns: the number of rows.\n\tint row_count() const\n\t{\n\t\treturn row_count_;", "parent": 32, "children": [37], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 37, "column": 20}}, {"id": 37, "type": "declaration", "text": "Matrix(int row_count=0, int col_count=0)\n\t\t: matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n\tMatrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Returns: the number of rows.\n\tint row_count() const\n\t{\n\t\treturn row_count_;", "parent": 36, "children": [38, 42, 46, 48, 67, 72, 78, 107, 112, 122], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 37, "column": 20}}, {"id": 38, "type": "macro_type_specifier", "text": "Matrix(int", "parent": 37, "children": [39, 40], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 11}}, {"id": 39, "type": "identifier", "text": "Matrix", "parent": 38, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 7}}, {"id": 40, "type": "type_descriptor", "text": "int", "parent": 38, "children": [41], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 11}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 11}}, {"id": 42, "type": "init_declarator", "text": "row_count=0", "parent": 37, "children": [43, 44, 45], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 23}}, {"id": 43, "type": "identifier", "text": "row_count", "parent": 42, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 21}}, {"id": 44, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 25, "column": 21}, "end_point": {"row": 25, "column": 22}}, {"id": 45, "type": "number_literal", "text": "0", "parent": 42, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 23}}, {"id": 46, "type": "ERROR", "text": "int", "parent": 37, "children": [47], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 28}}, {"id": 47, "type": "identifier", "text": "int", "parent": 46, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 28}}, {"id": 48, "type": "init_declarator", "text": "col_count=0)\n\t\t: matrix_(row_count, std::vector<T>(col_count))", "parent": 37, "children": [49, 50, 51, 53], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 26, "column": 49}}, {"id": 49, "type": "identifier", "text": "col_count", "parent": 48, "children": [], "start_point": {"row": 25, "column": 29}, "end_point": {"row": 25, "column": 38}}, {"id": 50, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 39}}, {"id": 51, "type": "ERROR", "text": "0)\n\t\t:", "parent": 48, "children": [52], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 26, "column": 3}}, {"id": 52, "type": "number_literal", "text": "0", "parent": 51, "children": [], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 40}}, {"id": 53, "type": "call_expression", "text": "matrix_(row_count, std::vector<T>(col_count))", "parent": 48, "children": [54, 55], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 49}}, {"id": 54, "type": "identifier", "text": "matrix_", "parent": 53, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 11}}, {"id": 55, "type": "argument_list", "text": "(row_count, std::vector<T>(col_count))", "parent": 53, "children": [56, 57, 59], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 49}}, {"id": 56, "type": "identifier", "text": "row_count", "parent": 55, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 21}}, {"id": 57, "type": "ERROR", "text": "std::", "parent": 55, "children": [58], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 28}}, {"id": 58, "type": "identifier", "text": "std", "parent": 57, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 26}}, {"id": 59, "type": "binary_expression", "text": "vector<T>(col_count)", "parent": 55, "children": [60, 64, 65], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 48}}, {"id": 60, "type": "binary_expression", "text": "vector<T", "parent": 59, "children": [61, 62, 63], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 36}}, {"id": 61, "type": "identifier", "text": "vector", "parent": 60, "children": [], "start_point": {"row": 26, "column": 28}, "end_point": {"row": 26, "column": 34}}, {"id": 62, "type": "<", "text": "<", "parent": 60, "children": [], "start_point": {"row": 26, "column": 34}, "end_point": {"row": 26, "column": 35}}, {"id": 63, "type": "identifier", "text": "T", "parent": 60, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 36}}, {"id": 64, "type": ">", "text": ">", "parent": 59, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 37}}, {"id": 65, "type": "parenthesized_expression", "text": "(col_count)", "parent": 59, "children": [66], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 48}}, {"id": 66, "type": "identifier", "text": "col_count", "parent": 65, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 47}}, {"id": 67, "type": "function_declarator", "text": "row_count_(row_count)", "parent": 37, "children": [68, 69], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 72}}, {"id": 68, "type": "identifier", "text": "row_count_", "parent": 67, "children": [], "start_point": {"row": 26, "column": 51}, "end_point": {"row": 26, "column": 61}}, {"id": 69, "type": "parameter_list", "text": "(row_count)", "parent": 67, "children": [70], "start_point": {"row": 26, "column": 61}, "end_point": {"row": 26, "column": 72}}, {"id": 70, "type": "parameter_declaration", "text": "row_count", "parent": 69, "children": [71], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 71}}, {"id": 71, "type": "type_identifier", "text": "row_count", "parent": 70, "children": [], "start_point": {"row": 26, "column": 62}, "end_point": {"row": 26, "column": 71}}, {"id": 72, "type": "ERROR", "text": "col_count_(col_count)\n\t{ }", "parent": 37, "children": [73], "start_point": {"row": 26, "column": 74}, "end_point": {"row": 27, "column": 4}}, {"id": 73, "type": "function_declarator", "text": "col_count_(col_count)", "parent": 72, "children": [74, 75], "start_point": {"row": 26, "column": 74}, "end_point": {"row": 26, "column": 95}}, {"id": 74, "type": "identifier", "text": "col_count_", "parent": 73, "children": [], "start_point": {"row": 26, "column": 74}, "end_point": {"row": 26, "column": 84}}, {"id": 75, "type": "parameter_list", "text": "(col_count)", "parent": 73, "children": [76], "start_point": {"row": 26, "column": 84}, "end_point": {"row": 26, "column": 95}}, {"id": 76, "type": "parameter_declaration", "text": "col_count", "parent": 75, "children": [77], "start_point": {"row": 26, "column": 85}, "end_point": {"row": 26, "column": 94}}, {"id": 77, "type": "type_identifier", "text": "col_count", "parent": 76, "children": [], "start_point": {"row": 26, "column": 85}, "end_point": {"row": 26, "column": 94}}, {"id": 78, "type": "ERROR", "text": "Matrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>(col_count, default_element)),", "parent": 37, "children": [79], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 31, "column": 67}}, {"id": 79, "type": "function_declarator", "text": "Matrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>(col_count, default_element))", "parent": 78, "children": [80, 81, 91], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 31, "column": 66}}, {"id": 80, "type": "identifier", "text": "Matrix", "parent": 79, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 7}}, {"id": 81, "type": "parameter_list", "text": "(int row_count, int col_count, const T& default_element)", "parent": 79, "children": [82, 85, 88], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 63}}, {"id": 82, "type": "parameter_declaration", "text": "int row_count", "parent": 81, "children": [83, 84], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 21}}, {"id": 83, "type": "primitive_type", "text": "int", "parent": 82, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 11}}, {"id": 84, "type": "identifier", "text": "row_count", "parent": 82, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 21}}, {"id": 85, "type": "parameter_declaration", "text": "int col_count", "parent": 81, "children": [86, 87], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 36}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 85, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 26}}, {"id": 87, "type": "identifier", "text": "col_count", "parent": 85, "children": [], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 36}}, {"id": 88, "type": "parameter_declaration", "text": "const T& default_element", "parent": 81, "children": [89, 90], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 62}}, {"id": 89, "type": "type_identifier", "text": "T", "parent": 88, "children": [], "start_point": {"row": 30, "column": 44}, "end_point": {"row": 30, "column": 45}}, {"id": 90, "type": "identifier", "text": "default_element", "parent": 88, "children": [], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 62}}, {"id": 91, "type": "call_expression", "text": "matrix_(row_count, std::vector<T>(col_count, default_element))", "parent": 79, "children": [92, 93], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 66}}, {"id": 92, "type": "identifier", "text": "matrix_", "parent": 91, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 11}}, {"id": 93, "type": "argument_list", "text": "(row_count, std::vector<T>(col_count, default_element))", "parent": 91, "children": [94, 95, 97], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 66}}, {"id": 94, "type": "identifier", "text": "row_count", "parent": 93, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 21}}, {"id": 95, "type": "ERROR", "text": "std::", "parent": 93, "children": [96], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 28}}, {"id": 96, "type": "identifier", "text": "std", "parent": 95, "children": [], "start_point": {"row": 31, "column": 23}, "end_point": {"row": 31, "column": 26}}, {"id": 97, "type": "binary_expression", "text": "vector<T>(col_count, default_element)", "parent": 93, "children": [98, 102, 103], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 65}}, {"id": 98, "type": "binary_expression", "text": "vector<T", "parent": 97, "children": [99, 100, 101], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 36}}, {"id": 99, "type": "identifier", "text": "vector", "parent": 98, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 34}}, {"id": 100, "type": "<", "text": "<", "parent": 98, "children": [], "start_point": {"row": 31, "column": 34}, "end_point": {"row": 31, "column": 35}}, {"id": 101, "type": "identifier", "text": "T", "parent": 98, "children": [], "start_point": {"row": 31, "column": 35}, "end_point": {"row": 31, "column": 36}}, {"id": 102, "type": ">", "text": ">", "parent": 97, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 37}}, {"id": 103, "type": "parenthesized_expression", "text": "(col_count, default_element)", "parent": 97, "children": [104, 106], "start_point": {"row": 31, "column": 37}, "end_point": {"row": 31, "column": 65}}, {"id": 104, "type": "ERROR", "text": "col_count,", "parent": 103, "children": [105], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 48}}, {"id": 105, "type": "identifier", "text": "col_count", "parent": 104, "children": [], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 47}}, {"id": 106, "type": "identifier", "text": "default_element", "parent": 103, "children": [], "start_point": {"row": 31, "column": 49}, "end_point": {"row": 31, "column": 64}}, {"id": 107, "type": "function_declarator", "text": "row_count_(row_count)", "parent": 37, "children": [108, 109], "start_point": {"row": 31, "column": 68}, "end_point": {"row": 31, "column": 89}}, {"id": 108, "type": "identifier", "text": "row_count_", "parent": 107, "children": [], "start_point": {"row": 31, "column": 68}, "end_point": {"row": 31, "column": 78}}, {"id": 109, "type": "parameter_list", "text": "(row_count)", "parent": 107, "children": [110], "start_point": {"row": 31, "column": 78}, "end_point": {"row": 31, "column": 89}}, {"id": 110, "type": "parameter_declaration", "text": "row_count", "parent": 109, "children": [111], "start_point": {"row": 31, "column": 79}, "end_point": {"row": 31, "column": 88}}, {"id": 111, "type": "type_identifier", "text": "row_count", "parent": 110, "children": [], "start_point": {"row": 31, "column": 79}, "end_point": {"row": 31, "column": 88}}, {"id": 112, "type": "ERROR", "text": "col_count_(col_count)\n\t{ }\n\t\n\t// Returns: the number of rows.\n\tint row_count() const\n\t{\n\t\treturn", "parent": 37, "children": [113, 118, 119], "start_point": {"row": 31, "column": 91}, "end_point": {"row": 37, "column": 8}}, {"id": 113, "type": "function_declarator", "text": "col_count_(col_count)", "parent": 112, "children": [114, 115], "start_point": {"row": 31, "column": 91}, "end_point": {"row": 31, "column": 112}}, {"id": 114, "type": "identifier", "text": "col_count_", "parent": 113, "children": [], "start_point": {"row": 31, "column": 91}, "end_point": {"row": 31, "column": 101}}, {"id": 115, "type": "parameter_list", "text": "(col_count)", "parent": 113, "children": [116], "start_point": {"row": 31, "column": 101}, "end_point": {"row": 31, "column": 112}}, {"id": 116, "type": "parameter_declaration", "text": "col_count", "parent": 115, "children": [117], "start_point": {"row": 31, "column": 102}, "end_point": {"row": 31, "column": 111}}, {"id": 117, "type": "type_identifier", "text": "col_count", "parent": 116, "children": [], "start_point": {"row": 31, "column": 102}, "end_point": {"row": 31, "column": 111}}, {"id": 118, "type": "primitive_type", "text": "int", "parent": 112, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 4}}, {"id": 119, "type": "function_declarator", "text": "row_count() const", "parent": 112, "children": [120, 121], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 22}}, {"id": 120, "type": "identifier", "text": "row_count", "parent": 119, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 14}}, {"id": 121, "type": "parameter_list", "text": "()", "parent": 119, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 16}}, {"id": 122, "type": "identifier", "text": "row_count_", "parent": 37, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 19}}, {"id": 123, "type": "ERROR", "text": "int column_count() const", "parent": 21, "children": [124, 125], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 25}}, {"id": 124, "type": "primitive_type", "text": "int", "parent": 123, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 4}}, {"id": 125, "type": "function_declarator", "text": "column_count()", "parent": 123, "children": [126, 127], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 19}}, {"id": 126, "type": "identifier", "text": "column_count", "parent": 125, "children": [], "start_point": {"row": 41, "column": 5}, "end_point": {"row": 41, "column": 17}}, {"id": 127, "type": "parameter_list", "text": "()", "parent": 125, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 128, "type": "return_statement", "text": "return col_count_;", "parent": 21, "children": [129], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 20}}, {"id": 129, "type": "identifier", "text": "col_count_", "parent": 128, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 19}}, {"id": 130, "type": "ERROR", "text": "int size() const", "parent": 21, "children": [131, 132], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 17}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 130, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 4}}, {"id": 132, "type": "function_declarator", "text": "size()", "parent": 130, "children": [133, 134], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 11}}, {"id": 133, "type": "identifier", "text": "size", "parent": 132, "children": [], "start_point": {"row": 47, "column": 5}, "end_point": {"row": 47, "column": 9}}, {"id": 134, "type": "parameter_list", "text": "()", "parent": 132, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 11}}, {"id": 135, "type": "return_statement", "text": "return row_count_ * col_count_;", "parent": 21, "children": [136], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 33}}, {"id": 136, "type": "binary_expression", "text": "row_count_ * col_count_", "parent": 135, "children": [137, 138, 139], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 32}}, {"id": 137, "type": "identifier", "text": "row_count_", "parent": 136, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 19}}, {"id": 138, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 139, "type": "identifier", "text": "col_count_", "parent": 136, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 32}}, {"id": 140, "type": "labeled_statement", "text": "std::vector<T>& operator[](int row)\n\t{\n\t\treturn matrix_[row];\n\t}", "parent": 21, "children": [141, 142], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 56, "column": 2}}, {"id": 141, "type": "statement_identifier", "text": "std", "parent": 140, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 4}}, {"id": 142, "type": "ERROR", "text": ":vector<T>& operator[](int row)", "parent": 140, "children": [143], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 36}}, {"id": 143, "type": "binary_expression", "text": "vector<T>& operator[](int row)", "parent": 142, "children": [144, 148, 149], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 36}}, {"id": 144, "type": "binary_expression", "text": "vector<T", "parent": 143, "children": [145, 146, 147], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 14}}, {"id": 145, "type": "identifier", "text": "vector", "parent": 144, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 12}}, {"id": 146, "type": "<", "text": "<", "parent": 144, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 13}}, {"id": 147, "type": "identifier", "text": "T", "parent": 144, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 14}}, {"id": 148, "type": ">", "text": ">", "parent": 143, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 15}}, {"id": 149, "type": "pointer_expression", "text": "& operator[](int row)", "parent": 143, "children": [150], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 36}}, {"id": 150, "type": "call_expression", "text": "operator[](int row)", "parent": 149, "children": [151, 154], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 36}}, {"id": 151, "type": "subscript_expression", "text": "operator[]", "parent": 150, "children": [152, 153], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 27}}, {"id": 152, "type": "identifier", "text": "operator", "parent": 151, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 25}}, {"id": 153, "type": "identifier", "text": "", "parent": 151, "children": [], "start_point": {"row": 53, "column": 26}, "end_point": {"row": 53, "column": 26}}, {"id": 154, "type": "argument_list", "text": "(int row)", "parent": 150, "children": [155, 156], "start_point": {"row": 53, "column": 27}, "end_point": {"row": 53, "column": 36}}, {"id": 155, "type": "identifier", "text": "int", "parent": 154, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 31}}, {"id": 156, "type": "ERROR", "text": "row", "parent": 154, "children": [157], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 35}}, {"id": 157, "type": "identifier", "text": "row", "parent": 156, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 35}}, {"id": 158, "type": "return_statement", "text": "return matrix_[row];", "parent": 140, "children": [159], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 22}}, {"id": 159, "type": "subscript_expression", "text": "matrix_[row]", "parent": 158, "children": [160, 161], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 21}}, {"id": 160, "type": "identifier", "text": "matrix_", "parent": 159, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 16}}, {"id": 161, "type": "identifier", "text": "row", "parent": 159, "children": [], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 20}}, {"id": 162, "type": "function_definition", "text": "const std::vector<T>& operator[](int row) const\n\t{\n\t\treturn matrix_[row];\n\t}", "parent": 21, "children": [163, 164, 169], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 62, "column": 2}}, {"id": 163, "type": "type_identifier", "text": "std", "parent": 162, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 10}}, {"id": 164, "type": "ERROR", "text": "::vector<T>&", "parent": 162, "children": [165, 166, 167, 168], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 22}}, {"id": 165, "type": "identifier", "text": "vector", "parent": 164, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 18}}, {"id": 166, "type": "<", "text": "<", "parent": 164, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 19}}, {"id": 167, "type": "identifier", "text": "T", "parent": 164, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 20}}, {"id": 168, "type": ">", "text": ">", "parent": 164, "children": [], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 21}}, {"id": 169, "type": "function_declarator", "text": "operator[](int row) const", "parent": 162, "children": [170, 172], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 48}}, {"id": 170, "type": "array_declarator", "text": "operator[]", "parent": 169, "children": [171], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 33}}, {"id": 171, "type": "identifier", "text": "operator", "parent": 170, "children": [], "start_point": {"row": 59, "column": 23}, "end_point": {"row": 59, "column": 31}}, {"id": 172, "type": "parameter_list", "text": "(int row)", "parent": 169, "children": [173], "start_point": {"row": 59, "column": 33}, "end_point": {"row": 59, "column": 42}}, {"id": 173, "type": "parameter_declaration", "text": "int row", "parent": 172, "children": [174, 175], "start_point": {"row": 59, "column": 34}, "end_point": {"row": 59, "column": 41}}, {"id": 174, "type": "primitive_type", "text": "int", "parent": 173, "children": [], "start_point": {"row": 59, "column": 34}, "end_point": {"row": 59, "column": 37}}, {"id": 175, "type": "identifier", "text": "row", "parent": 173, "children": [], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 41}}, {"id": 176, "type": "return_statement", "text": "return matrix_[row];", "parent": 162, "children": [177], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 22}}, {"id": 177, "type": "subscript_expression", "text": "matrix_[row]", "parent": 176, "children": [178, 179], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 21}}, {"id": 178, "type": "identifier", "text": "matrix_", "parent": 177, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 16}}, {"id": 179, "type": "identifier", "text": "row", "parent": 177, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 20}}, {"id": 180, "type": "binary_expression", "text": "T& operator()(int row, int col)", "parent": 21, "children": [181, 182], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 32}}, {"id": 181, "type": "identifier", "text": "T", "parent": 180, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 2}}, {"id": 182, "type": "call_expression", "text": "operator()(int row, int col)", "parent": 180, "children": [183, 186], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 32}}, {"id": 183, "type": "call_expression", "text": "operator()", "parent": 182, "children": [184, 185], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 14}}, {"id": 184, "type": "identifier", "text": "operator", "parent": 183, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 12}}, {"id": 185, "type": "argument_list", "text": "()", "parent": 183, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 14}}, {"id": 186, "type": "argument_list", "text": "(int row, int col)", "parent": 182, "children": [187, 188, 190, 191], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 32}}, {"id": 187, "type": "identifier", "text": "int", "parent": 186, "children": [], "start_point": {"row": 65, "column": 15}, "end_point": {"row": 65, "column": 18}}, {"id": 188, "type": "ERROR", "text": "row", "parent": 186, "children": [189], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 22}}, {"id": 189, "type": "identifier", "text": "row", "parent": 188, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 22}}, {"id": 190, "type": "identifier", "text": "int", "parent": 186, "children": [], "start_point": {"row": 65, "column": 24}, "end_point": {"row": 65, "column": 27}}, {"id": 191, "type": "ERROR", "text": "col", "parent": 186, "children": [192], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 31}}, {"id": 192, "type": "identifier", "text": "col", "parent": 191, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 31}}, {"id": 193, "type": "return_statement", "text": "return matrix_[row][col];", "parent": 21, "children": [194], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 27}}, {"id": 194, "type": "subscript_expression", "text": "matrix_[row][col]", "parent": 193, "children": [195, 198], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 26}}, {"id": 195, "type": "subscript_expression", "text": "matrix_[row]", "parent": 194, "children": [196, 197], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 21}}, {"id": 196, "type": "identifier", "text": "matrix_", "parent": 195, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 16}}, {"id": 197, "type": "identifier", "text": "row", "parent": 195, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 20}}, {"id": 198, "type": "identifier", "text": "col", "parent": 194, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 25}}, {"id": 199, "type": "function_definition", "text": "const T& operator()(int row, int col) const\n\t{\n\t\treturn matrix_[row][col];\n\t}", "parent": 21, "children": [200, 201], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 74, "column": 2}}, {"id": 200, "type": "type_identifier", "text": "T", "parent": 199, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 8}}, {"id": 201, "type": "function_declarator", "text": "operator()(int row, int col) const", "parent": 199, "children": [202, 205], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 44}}, {"id": 202, "type": "function_declarator", "text": "operator()", "parent": 201, "children": [203, 204], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 20}}, {"id": 203, "type": "identifier", "text": "operator", "parent": 202, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 18}}, {"id": 204, "type": "parameter_list", "text": "()", "parent": 202, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 20}}, {"id": 205, "type": "parameter_list", "text": "(int row, int col)", "parent": 201, "children": [206, 209], "start_point": {"row": 71, "column": 20}, "end_point": {"row": 71, "column": 38}}, {"id": 206, "type": "parameter_declaration", "text": "int row", "parent": 205, "children": [207, 208], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 28}}, {"id": 207, "type": "primitive_type", "text": "int", "parent": 206, "children": [], "start_point": {"row": 71, "column": 21}, "end_point": {"row": 71, "column": 24}}, {"id": 208, "type": "identifier", "text": "row", "parent": 206, "children": [], "start_point": {"row": 71, "column": 25}, "end_point": {"row": 71, "column": 28}}, {"id": 209, "type": "parameter_declaration", "text": "int col", "parent": 205, "children": [210, 211], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 37}}, {"id": 210, "type": "primitive_type", "text": "int", "parent": 209, "children": [], "start_point": {"row": 71, "column": 30}, "end_point": {"row": 71, "column": 33}}, {"id": 211, "type": "identifier", "text": "col", "parent": 209, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 37}}, {"id": 212, "type": "return_statement", "text": "return matrix_[row][col];", "parent": 199, "children": [213], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 27}}, {"id": 213, "type": "subscript_expression", "text": "matrix_[row][col]", "parent": 212, "children": [214, 217], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 26}}, {"id": 214, "type": "subscript_expression", "text": "matrix_[row]", "parent": 213, "children": [215, 216], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 21}}, {"id": 215, "type": "identifier", "text": "matrix_", "parent": 214, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 16}}, {"id": 216, "type": "identifier", "text": "row", "parent": 214, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 20}}, {"id": 217, "type": "identifier", "text": "col", "parent": 213, "children": [], "start_point": {"row": 73, "column": 22}, "end_point": {"row": 73, "column": 25}}, {"id": 218, "type": "function_definition", "text": "const T& at(int row, int col) const\n\t{\n\t\treturn matrix_.at(row).at(col);\n\t}", "parent": 21, "children": [219, 220], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 80, "column": 2}}, {"id": 219, "type": "type_identifier", "text": "T", "parent": 218, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 8}}, {"id": 220, "type": "function_declarator", "text": "at(int row, int col) const", "parent": 218, "children": [221, 222], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 36}}, {"id": 221, "type": "identifier", "text": "at", "parent": 220, "children": [], "start_point": {"row": 77, "column": 10}, "end_point": {"row": 77, "column": 12}}, {"id": 222, "type": "parameter_list", "text": "(int row, int col)", "parent": 220, "children": [223, 226], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 30}}, {"id": 223, "type": "parameter_declaration", "text": "int row", "parent": 222, "children": [224, 225], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 20}}, {"id": 224, "type": "primitive_type", "text": "int", "parent": 223, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 16}}, {"id": 225, "type": "identifier", "text": "row", "parent": 223, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 20}}, {"id": 226, "type": "parameter_declaration", "text": "int col", "parent": 222, "children": [227, 228], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 29}}, {"id": 227, "type": "primitive_type", "text": "int", "parent": 226, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 25}}, {"id": 228, "type": "identifier", "text": "col", "parent": 226, "children": [], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 77, "column": 29}}, {"id": 229, "type": "return_statement", "text": "return matrix_.at(row).at(col);", "parent": 218, "children": [230], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 33}}, {"id": 230, "type": "call_expression", "text": "matrix_.at(row).at(col)", "parent": 229, "children": [231, 239], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 32}}, {"id": 231, "type": "field_expression", "text": "matrix_.at(row).at", "parent": 230, "children": [232, 238], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 27}}, {"id": 232, "type": "call_expression", "text": "matrix_.at(row)", "parent": 231, "children": [233, 236], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 24}}, {"id": 233, "type": "field_expression", "text": "matrix_.at", "parent": 232, "children": [234, 235], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 19}}, {"id": 234, "type": "identifier", "text": "matrix_", "parent": 233, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 16}}, {"id": 235, "type": "field_identifier", "text": "at", "parent": 233, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 19}}, {"id": 236, "type": "argument_list", "text": "(row)", "parent": 232, "children": [237], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 24}}, {"id": 237, "type": "identifier", "text": "row", "parent": 236, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 23}}, {"id": 238, "type": "field_identifier", "text": "at", "parent": 231, "children": [], "start_point": {"row": 79, "column": 25}, "end_point": {"row": 79, "column": 27}}, {"id": 239, "type": "argument_list", "text": "(col)", "parent": 230, "children": [240], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 32}}, {"id": 240, "type": "identifier", "text": "col", "parent": 239, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 31}}, {"id": 241, "type": "function_definition", "text": "void clear()\n\t{\n\t\tmatrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n\t}", "parent": 21, "children": [242, 243], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 86, "column": 2}}, {"id": 242, "type": "primitive_type", "text": "void", "parent": 241, "children": [], "start_point": {"row": 83, "column": 1}, "end_point": {"row": 83, "column": 5}}, {"id": 243, "type": "function_declarator", "text": "clear()", "parent": 241, "children": [244, 245], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 13}}, {"id": 244, "type": "identifier", "text": "clear", "parent": 243, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 11}}, {"id": 245, "type": "parameter_list", "text": "()", "parent": 243, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 13}}, {"id": 246, "type": "binary_expression", "text": "matrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_))", "parent": 241, "children": [247, 256, 258, 259], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 79}}, {"id": 247, "type": "binary_expression", "text": "matrix_ = std::vector<std", "parent": 246, "children": [248, 252, 254, 255], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 27}}, {"id": 248, "type": "assignment_expression", "text": "matrix_ = std", "parent": 247, "children": [249, 250, 251], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 15}}, {"id": 249, "type": "identifier", "text": "matrix_", "parent": 248, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 9}}, {"id": 250, "type": "=", "text": "=", "parent": 248, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 11}}, {"id": 251, "type": "identifier", "text": "std", "parent": 248, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 15}}, {"id": 252, "type": "ERROR", "text": "::vector", "parent": 247, "children": [253], "start_point": {"row": 85, "column": 15}, "end_point": {"row": 85, "column": 23}}, {"id": 253, "type": "identifier", "text": "vector", "parent": 252, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 23}}, {"id": 254, "type": "<", "text": "<", "parent": 247, "children": [], "start_point": {"row": 85, "column": 23}, "end_point": {"row": 85, "column": 24}}, {"id": 255, "type": "identifier", "text": "std", "parent": 247, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 27}}, {"id": 256, "type": "ERROR", "text": "::vector", "parent": 246, "children": [257], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 35}}, {"id": 257, "type": "identifier", "text": "vector", "parent": 256, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 35}}, {"id": 258, "type": "<", "text": "<", "parent": 246, "children": [], "start_point": {"row": 85, "column": 35}, "end_point": {"row": 85, "column": 36}}, {"id": 259, "type": "binary_expression", "text": "T>>(row_count_, std::vector<T>(col_count_))", "parent": 246, "children": [260, 261, 262], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 79}}, {"id": 260, "type": "identifier", "text": "T", "parent": 259, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 37}}, {"id": 261, "type": ">>", "text": ">>", "parent": 259, "children": [], "start_point": {"row": 85, "column": 37}, "end_point": {"row": 85, "column": 39}}, {"id": 262, "type": "parenthesized_expression", "text": "(row_count_, std::vector<T>(col_count_))", "parent": 259, "children": [263, 267], "start_point": {"row": 85, "column": 39}, "end_point": {"row": 85, "column": 79}}, {"id": 263, "type": "ERROR", "text": "row_count_, std::", "parent": 262, "children": [264], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 57}}, {"id": 264, "type": "comma_expression", "text": "row_count_, std", "parent": 263, "children": [265, 266], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 55}}, {"id": 265, "type": "identifier", "text": "row_count_", "parent": 264, "children": [], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 50}}, {"id": 266, "type": "identifier", "text": "std", "parent": 264, "children": [], "start_point": {"row": 85, "column": 52}, "end_point": {"row": 85, "column": 55}}, {"id": 267, "type": "binary_expression", "text": "vector<T>(col_count_)", "parent": 262, "children": [268, 272, 273], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 78}}, {"id": 268, "type": "binary_expression", "text": "vector<T", "parent": 267, "children": [269, 270, 271], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 65}}, {"id": 269, "type": "identifier", "text": "vector", "parent": 268, "children": [], "start_point": {"row": 85, "column": 57}, "end_point": {"row": 85, "column": 63}}, {"id": 270, "type": "<", "text": "<", "parent": 268, "children": [], "start_point": {"row": 85, "column": 63}, "end_point": {"row": 85, "column": 64}}, {"id": 271, "type": "identifier", "text": "T", "parent": 268, "children": [], "start_point": {"row": 85, "column": 64}, "end_point": {"row": 85, "column": 65}}, {"id": 272, "type": ">", "text": ">", "parent": 267, "children": [], "start_point": {"row": 85, "column": 65}, "end_point": {"row": 85, "column": 66}}, {"id": 273, "type": "parenthesized_expression", "text": "(col_count_)", "parent": 267, "children": [274], "start_point": {"row": 85, "column": 66}, "end_point": {"row": 85, "column": 78}}, {"id": 274, "type": "identifier", "text": "col_count_", "parent": 273, "children": [], "start_point": {"row": 85, "column": 67}, "end_point": {"row": 85, "column": 77}}, {"id": 275, "type": "function_definition", "text": "virtual void Print(std::ostream& os) const\n\t{\n\t\tos << matrix_;\n\t}", "parent": 21, "children": [276, 277, 279], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 92, "column": 2}}, {"id": 276, "type": "type_identifier", "text": "virtual", "parent": 275, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 8}}, {"id": 277, "type": "ERROR", "text": "void", "parent": 275, "children": [278], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 13}}, {"id": 278, "type": "identifier", "text": "void", "parent": 277, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 13}}, {"id": 279, "type": "function_declarator", "text": "Print(std::ostream& os) const", "parent": 275, "children": [280, 281], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 43}}, {"id": 280, "type": "identifier", "text": "Print", "parent": 279, "children": [], "start_point": {"row": 89, "column": 14}, "end_point": {"row": 89, "column": 19}}, {"id": 281, "type": "parameter_list", "text": "(std::ostream& os)", "parent": 279, "children": [282], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 37}}, {"id": 282, "type": "parameter_declaration", "text": "std::ostream& os", "parent": 281, "children": [283, 284, 286], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 36}}, {"id": 283, "type": "type_identifier", "text": "std", "parent": 282, "children": [], "start_point": {"row": 89, "column": 20}, "end_point": {"row": 89, "column": 23}}, {"id": 284, "type": "ERROR", "text": "::ostream&", "parent": 282, "children": [285], "start_point": {"row": 89, "column": 23}, "end_point": {"row": 89, "column": 33}}, {"id": 285, "type": "identifier", "text": "ostream", "parent": 284, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 32}}, {"id": 286, "type": "identifier", "text": "os", "parent": 282, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 36}}, {"id": 287, "type": "binary_expression", "text": "os << matrix_", "parent": 275, "children": [288, 289, 290], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 15}}, {"id": 288, "type": "identifier", "text": "os", "parent": 287, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 4}}, {"id": 289, "type": "<<", "text": "<<", "parent": 287, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 7}}, {"id": 290, "type": "identifier", "text": "matrix_", "parent": 287, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 15}}, {"id": 291, "type": "labeled_statement", "text": "private:\n\tstd::vector<std::vector<T>> matrix_;", "parent": 21, "children": [292], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 37}}, {"id": 292, "type": "labeled_statement", "text": "std::vector<std::vector<T>> matrix_;", "parent": 291, "children": [293, 294], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 37}}, {"id": 293, "type": "statement_identifier", "text": "std", "parent": 292, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 4}}, {"id": 294, "type": "ERROR", "text": "::vector<std:", "parent": 292, "children": [295], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 17}}, {"id": 295, "type": "binary_expression", "text": "vector<std", "parent": 294, "children": [296, 297, 298], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 16}}, {"id": 296, "type": "identifier", "text": "vector", "parent": 295, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 12}}, {"id": 297, "type": "<", "text": "<", "parent": 295, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 13}}, {"id": 298, "type": "identifier", "text": "std", "parent": 295, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 16}}, {"id": 299, "type": "binary_expression", "text": "vector<T>> matrix_", "parent": 292, "children": [300, 301, 302], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 36}}, {"id": 300, "type": "identifier", "text": "vector", "parent": 299, "children": [], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 24}}, {"id": 301, "type": "<", "text": "<", "parent": 299, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 25}}, {"id": 302, "type": "binary_expression", "text": "T>> matrix_", "parent": 299, "children": [303, 304, 305], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 36}}, {"id": 303, "type": "identifier", "text": "T", "parent": 302, "children": [], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 26}}, {"id": 304, "type": ">>", "text": ">>", "parent": 302, "children": [], "start_point": {"row": 95, "column": 26}, "end_point": {"row": 95, "column": 28}}, {"id": 305, "type": "identifier", "text": "matrix_", "parent": 302, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 36}}, {"id": 306, "type": "declaration", "text": "int row_count_, col_count_;", "parent": 21, "children": [307, 308, 309], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 28}}, {"id": 307, "type": "primitive_type", "text": "int", "parent": 306, "children": [], "start_point": {"row": 96, "column": 1}, "end_point": {"row": 96, "column": 4}}, {"id": 308, "type": "identifier", "text": "row_count_", "parent": 306, "children": [], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 15}}, {"id": 309, "type": "identifier", "text": "col_count_", "parent": 306, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 27}}, {"id": 310, "type": "binary_expression", "text": "template<typename T>\nvoid", "parent": 0, "children": [311, 315, 317, 318], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 100, "column": 4}}, {"id": 311, "type": "binary_expression", "text": "template<typename", "parent": 310, "children": [312, 313, 314], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 17}}, {"id": 312, "type": "identifier", "text": "template", "parent": 311, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 8}}, {"id": 313, "type": "<", "text": "<", "parent": 311, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 9}}, {"id": 314, "type": "identifier", "text": "typename", "parent": 311, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 17}}, {"id": 315, "type": "ERROR", "text": "T", "parent": 310, "children": [316], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 19}}, {"id": 316, "type": "identifier", "text": "T", "parent": 315, "children": [], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 19}}, {"id": 317, "type": ">", "text": ">", "parent": 310, "children": [], "start_point": {"row": 99, "column": 19}, "end_point": {"row": 99, "column": 20}}, {"id": 318, "type": "identifier", "text": "void", "parent": 310, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 4}}, {"id": 319, "type": "labeled_statement", "text": "from_json(const nlohmann::json& j, Matrix<T>& matrix)\n{\n\tint r = j.size();\n\tint c = r > 0 ? j[0].size() : 0;\n\tmatrix = Matrix<T>(r, c);\n\tfor (int i = 0; i < r; ++i)\n\t\tfor (int k = 0; k < c; ++k)\n\t\t\tmatrix[i][k] = j[i][k];\n}", "parent": 0, "children": [320, 321, 324], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 108, "column": 1}}, {"id": 320, "type": "statement_identifier", "text": "from_json", "parent": 319, "children": [], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 14}}, {"id": 321, "type": "ERROR", "text": "(const nlohmann:", "parent": 319, "children": [322], "start_point": {"row": 100, "column": 14}, "end_point": {"row": 100, "column": 30}}, {"id": 322, "type": "type_descriptor", "text": "const nlohmann", "parent": 321, "children": [323], "start_point": {"row": 100, "column": 15}, "end_point": {"row": 100, "column": 29}}, {"id": 323, "type": "type_identifier", "text": "nlohmann", "parent": 322, "children": [], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 29}}, {"id": 324, "type": "ERROR", "text": "json& j, Matrix<T>& matrix)", "parent": 319, "children": [325], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 58}}, {"id": 325, "type": "comma_expression", "text": "json& j, Matrix<T>& matrix", "parent": 324, "children": [326, 329], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 57}}, {"id": 326, "type": "binary_expression", "text": "json& j", "parent": 325, "children": [327, 328], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 38}}, {"id": 327, "type": "identifier", "text": "json", "parent": 326, "children": [], "start_point": {"row": 100, "column": 31}, "end_point": {"row": 100, "column": 35}}, {"id": 328, "type": "identifier", "text": "j", "parent": 326, "children": [], "start_point": {"row": 100, "column": 37}, "end_point": {"row": 100, "column": 38}}, {"id": 329, "type": "binary_expression", "text": "Matrix<T>& matrix", "parent": 325, "children": [330, 334, 335], "start_point": {"row": 100, "column": 40}, "end_point": {"row": 100, "column": 57}}, {"id": 330, "type": "binary_expression", "text": "Matrix<T", "parent": 329, "children": [331, 332, 333], "start_point": {"row": 100, "column": 40}, "end_point": {"row": 100, "column": 48}}, {"id": 331, "type": "identifier", "text": "Matrix", "parent": 330, "children": [], "start_point": {"row": 100, "column": 40}, "end_point": {"row": 100, "column": 46}}, {"id": 332, "type": "<", "text": "<", "parent": 330, "children": [], "start_point": {"row": 100, "column": 46}, "end_point": {"row": 100, "column": 47}}, {"id": 333, "type": "identifier", "text": "T", "parent": 330, "children": [], "start_point": {"row": 100, "column": 47}, "end_point": {"row": 100, "column": 48}}, {"id": 334, "type": ">", "text": ">", "parent": 329, "children": [], "start_point": {"row": 100, "column": 48}, "end_point": {"row": 100, "column": 49}}, {"id": 335, "type": "pointer_expression", "text": "& matrix", "parent": 329, "children": [336], "start_point": {"row": 100, "column": 49}, "end_point": {"row": 100, "column": 57}}, {"id": 336, "type": "identifier", "text": "matrix", "parent": 335, "children": [], "start_point": {"row": 100, "column": 51}, "end_point": {"row": 100, "column": 57}}, {"id": 337, "type": "declaration", "text": "int r = j.size();", "parent": 319, "children": [338, 339], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 18}}, {"id": 338, "type": "primitive_type", "text": "int", "parent": 337, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 4}}, {"id": 339, "type": "init_declarator", "text": "r = j.size()", "parent": 337, "children": [340, 341, 342], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 17}}, {"id": 340, "type": "identifier", "text": "r", "parent": 339, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 6}}, {"id": 341, "type": "=", "text": "=", "parent": 339, "children": [], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 8}}, {"id": 342, "type": "call_expression", "text": "j.size()", "parent": 339, "children": [343, 346], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 17}}, {"id": 343, "type": "field_expression", "text": "j.size", "parent": 342, "children": [344, 345], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 15}}, {"id": 344, "type": "identifier", "text": "j", "parent": 343, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 10}}, {"id": 345, "type": "field_identifier", "text": "size", "parent": 343, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 15}}, {"id": 346, "type": "argument_list", "text": "()", "parent": 342, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 17}}, {"id": 347, "type": "declaration", "text": "int c = r > 0 ? j[0].size() : 0;", "parent": 319, "children": [348, 349], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 33}}, {"id": 348, "type": "primitive_type", "text": "int", "parent": 347, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 4}}, {"id": 349, "type": "init_declarator", "text": "c = r > 0 ? j[0].size() : 0", "parent": 347, "children": [350, 351, 352], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 32}}, {"id": 350, "type": "identifier", "text": "c", "parent": 349, "children": [], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 6}}, {"id": 351, "type": "=", "text": "=", "parent": 349, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 8}}, {"id": 352, "type": "conditional_expression", "text": "r > 0 ? j[0].size() : 0", "parent": 349, "children": [353, 357, 358, 365], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 32}}, {"id": 353, "type": "binary_expression", "text": "r > 0", "parent": 352, "children": [354, 355, 356], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 14}}, {"id": 354, "type": "identifier", "text": "r", "parent": 353, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 10}}, {"id": 355, "type": ">", "text": ">", "parent": 353, "children": [], "start_point": {"row": 103, "column": 11}, "end_point": {"row": 103, "column": 12}}, {"id": 356, "type": "number_literal", "text": "0", "parent": 353, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 14}}, {"id": 357, "type": "?", "text": "?", "parent": 352, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 16}}, {"id": 358, "type": "call_expression", "text": "j[0].size()", "parent": 352, "children": [359, 364], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 28}}, {"id": 359, "type": "field_expression", "text": "j[0].size", "parent": 358, "children": [360, 363], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 26}}, {"id": 360, "type": "subscript_expression", "text": "j[0]", "parent": 359, "children": [361, 362], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 21}}, {"id": 361, "type": "identifier", "text": "j", "parent": 360, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 18}}, {"id": 362, "type": "number_literal", "text": "0", "parent": 360, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 20}}, {"id": 363, "type": "field_identifier", "text": "size", "parent": 359, "children": [], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 26}}, {"id": 364, "type": "argument_list", "text": "()", "parent": 358, "children": [], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 28}}, {"id": 365, "type": "number_literal", "text": "0", "parent": 352, "children": [], "start_point": {"row": 103, "column": 31}, "end_point": {"row": 103, "column": 32}}, {"id": 366, "type": "assignment_expression", "text": "matrix = Matrix<T>(r, c)", "parent": 319, "children": [367, 368, 369], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 25}}, {"id": 367, "type": "identifier", "text": "matrix", "parent": 366, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 7}}, {"id": 368, "type": "=", "text": "=", "parent": 366, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 9}}, {"id": 369, "type": "binary_expression", "text": "Matrix<T>(r, c)", "parent": 366, "children": [370, 374, 375], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 25}}, {"id": 370, "type": "binary_expression", "text": "Matrix<T", "parent": 369, "children": [371, 372, 373], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 18}}, {"id": 371, "type": "identifier", "text": "Matrix", "parent": 370, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 16}}, {"id": 372, "type": "<", "text": "<", "parent": 370, "children": [], "start_point": {"row": 104, "column": 16}, "end_point": {"row": 104, "column": 17}}, {"id": 373, "type": "identifier", "text": "T", "parent": 370, "children": [], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 18}}, {"id": 374, "type": ">", "text": ">", "parent": 369, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 19}}, {"id": 375, "type": "parenthesized_expression", "text": "(r, c)", "parent": 369, "children": [376], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 25}}, {"id": 376, "type": "comma_expression", "text": "r, c", "parent": 375, "children": [377, 378], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 24}}, {"id": 377, "type": "identifier", "text": "r", "parent": 376, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 21}}, {"id": 378, "type": "identifier", "text": "c", "parent": 376, "children": [], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 24}}, {"id": 379, "type": "for_statement", "text": "for (int i = 0; i < r; ++i)\n\t\tfor (int k = 0; k < c; ++k)\n\t\t\tmatrix[i][k] = j[i][k];", "parent": 319, "children": [380, 386, 390, 393], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 107, "column": 26}}, {"id": 380, "type": "declaration", "text": "int i = 0;", "parent": 379, "children": [381, 382], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 16}}, {"id": 381, "type": "primitive_type", "text": "int", "parent": 380, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 9}}, {"id": 382, "type": "init_declarator", "text": "i = 0", "parent": 380, "children": [383, 384, 385], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 15}}, {"id": 383, "type": "identifier", "text": "i", "parent": 382, "children": [], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 11}}, {"id": 384, "type": "=", "text": "=", "parent": 382, "children": [], "start_point": {"row": 105, "column": 12}, "end_point": {"row": 105, "column": 13}}, {"id": 385, "type": "number_literal", "text": "0", "parent": 382, "children": [], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 15}}, {"id": 386, "type": "binary_expression", "text": "i < r", "parent": 379, "children": [387, 388, 389], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 22}}, {"id": 387, "type": "identifier", "text": "i", "parent": 386, "children": [], "start_point": {"row": 105, "column": 17}, "end_point": {"row": 105, "column": 18}}, {"id": 388, "type": "<", "text": "<", "parent": 386, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 20}}, {"id": 389, "type": "identifier", "text": "r", "parent": 386, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 22}}, {"id": 390, "type": "update_expression", "text": "++i", "parent": 379, "children": [391, 392], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 27}}, {"id": 391, "type": "++", "text": "++", "parent": 390, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 26}}, {"id": 392, "type": "identifier", "text": "i", "parent": 390, "children": [], "start_point": {"row": 105, "column": 26}, "end_point": {"row": 105, "column": 27}}, {"id": 393, "type": "for_statement", "text": "for (int k = 0; k < c; ++k)\n\t\t\tmatrix[i][k] = j[i][k];", "parent": 379, "children": [394, 400, 404], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 107, "column": 26}}, {"id": 394, "type": "declaration", "text": "int k = 0;", "parent": 393, "children": [395, 396], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 17}}, {"id": 395, "type": "primitive_type", "text": "int", "parent": 394, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 10}}, {"id": 396, "type": "init_declarator", "text": "k = 0", "parent": 394, "children": [397, 398, 399], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 16}}, {"id": 397, "type": "identifier", "text": "k", "parent": 396, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 12}}, {"id": 398, "type": "=", "text": "=", "parent": 396, "children": [], "start_point": {"row": 106, "column": 13}, "end_point": {"row": 106, "column": 14}}, {"id": 399, "type": "number_literal", "text": "0", "parent": 396, "children": [], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 16}}, {"id": 400, "type": "binary_expression", "text": "k < c", "parent": 393, "children": [401, 402, 403], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 23}}, {"id": 401, "type": "identifier", "text": "k", "parent": 400, "children": [], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 19}}, {"id": 402, "type": "<", "text": "<", "parent": 400, "children": [], "start_point": {"row": 106, "column": 20}, "end_point": {"row": 106, "column": 21}}, {"id": 403, "type": "identifier", "text": "c", "parent": 400, "children": [], "start_point": {"row": 106, "column": 22}, "end_point": {"row": 106, "column": 23}}, {"id": 404, "type": "update_expression", "text": "++k", "parent": 393, "children": [405, 406], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 28}}, {"id": 405, "type": "++", "text": "++", "parent": 404, "children": [], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 27}}, {"id": 406, "type": "identifier", "text": "k", "parent": 404, "children": [], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 106, "column": 28}}, {"id": 407, "type": "assignment_expression", "text": "matrix[i][k] = j[i][k]", "parent": 393, "children": [408, 413, 414], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 25}}, {"id": 408, "type": "subscript_expression", "text": "matrix[i][k]", "parent": 407, "children": [409, 412], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 15}}, {"id": 409, "type": "subscript_expression", "text": "matrix[i]", "parent": 408, "children": [410, 411], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 12}}, {"id": 410, "type": "identifier", "text": "matrix", "parent": 409, "children": [], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 9}}, {"id": 411, "type": "identifier", "text": "i", "parent": 409, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 11}}, {"id": 412, "type": "identifier", "text": "k", "parent": 408, "children": [], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 14}}, {"id": 413, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 17}}, {"id": 414, "type": "subscript_expression", "text": "j[i][k]", "parent": 407, "children": [415, 418], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 25}}, {"id": 415, "type": "subscript_expression", "text": "j[i]", "parent": 414, "children": [416, 417], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 22}}, {"id": 416, "type": "identifier", "text": "j", "parent": 415, "children": [], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 19}}, {"id": 417, "type": "identifier", "text": "i", "parent": 415, "children": [], "start_point": {"row": 107, "column": 20}, "end_point": {"row": 107, "column": 21}}, {"id": 418, "type": "identifier", "text": "k", "parent": 414, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 24}}, {"id": 419, "type": "binary_expression", "text": "template<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n\tj = std::vector<nlohmann", "parent": 0, "children": [420, 450, 452, 453], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 113, "column": 25}}, {"id": 420, "type": "binary_expression", "text": "template<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n\tj = std", "parent": 419, "children": [421, 425, 427, 428, 446], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 113, "column": 8}}, {"id": 421, "type": "binary_expression", "text": "template<typename", "parent": 420, "children": [422, 423, 424], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 17}}, {"id": 422, "type": "identifier", "text": "template", "parent": 421, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 8}}, {"id": 423, "type": "<", "text": "<", "parent": 421, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 9}}, {"id": 424, "type": "identifier", "text": "typename", "parent": 421, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 17}}, {"id": 425, "type": "ERROR", "text": "T", "parent": 420, "children": [426], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 19}}, {"id": 426, "type": "identifier", "text": "T", "parent": 425, "children": [], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 19}}, {"id": 427, "type": ">", "text": ">", "parent": 420, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 20}}, {"id": 428, "type": "ERROR", "text": "void to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{", "parent": 420, "children": [429, 430], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 112, "column": 1}}, {"id": 429, "type": "identifier", "text": "void", "parent": 428, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 4}}, {"id": 430, "type": "call_expression", "text": "to_json(nlohmann::json& j, const Matrix<T>& matrix)", "parent": 428, "children": [431, 432], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 56}}, {"id": 431, "type": "identifier", "text": "to_json", "parent": 430, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 12}}, {"id": 432, "type": "argument_list", "text": "(nlohmann::json& j, const Matrix<T>& matrix)", "parent": 430, "children": [433, 438], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 56}}, {"id": 433, "type": "binary_expression", "text": "nlohmann::json& j", "parent": 432, "children": [434, 435, 437], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 30}}, {"id": 434, "type": "identifier", "text": "nlohmann", "parent": 433, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 21}}, {"id": 435, "type": "ERROR", "text": "::json", "parent": 433, "children": [436], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 27}}, {"id": 436, "type": "identifier", "text": "json", "parent": 435, "children": [], "start_point": {"row": 111, "column": 23}, "end_point": {"row": 111, "column": 27}}, {"id": 437, "type": "identifier", "text": "j", "parent": 433, "children": [], "start_point": {"row": 111, "column": 29}, "end_point": {"row": 111, "column": 30}}, {"id": 438, "type": "binary_expression", "text": "Matrix<T>& matrix", "parent": 432, "children": [439, 443, 444], "start_point": {"row": 111, "column": 38}, "end_point": {"row": 111, "column": 55}}, {"id": 439, "type": "binary_expression", "text": "Matrix<T", "parent": 438, "children": [440, 441, 442], "start_point": {"row": 111, "column": 38}, "end_point": {"row": 111, "column": 46}}, {"id": 440, "type": "identifier", "text": "Matrix", "parent": 439, "children": [], "start_point": {"row": 111, "column": 38}, "end_point": {"row": 111, "column": 44}}, {"id": 441, "type": "<", "text": "<", "parent": 439, "children": [], "start_point": {"row": 111, "column": 44}, "end_point": {"row": 111, "column": 45}}, {"id": 442, "type": "identifier", "text": "T", "parent": 439, "children": [], "start_point": {"row": 111, "column": 45}, "end_point": {"row": 111, "column": 46}}, {"id": 443, "type": ">", "text": ">", "parent": 438, "children": [], "start_point": {"row": 111, "column": 46}, "end_point": {"row": 111, "column": 47}}, {"id": 444, "type": "pointer_expression", "text": "& matrix", "parent": 438, "children": [445], "start_point": {"row": 111, "column": 47}, "end_point": {"row": 111, "column": 55}}, {"id": 445, "type": "identifier", "text": "matrix", "parent": 444, "children": [], "start_point": {"row": 111, "column": 49}, "end_point": {"row": 111, "column": 55}}, {"id": 446, "type": "assignment_expression", "text": "j = std", "parent": 420, "children": [447, 448, 449], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 8}}, {"id": 447, "type": "identifier", "text": "j", "parent": 446, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 2}}, {"id": 448, "type": "=", "text": "=", "parent": 446, "children": [], "start_point": {"row": 113, "column": 3}, "end_point": {"row": 113, "column": 4}}, {"id": 449, "type": "identifier", "text": "std", "parent": 446, "children": [], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 8}}, {"id": 450, "type": "ERROR", "text": "::vector", "parent": 419, "children": [451], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 16}}, {"id": 451, "type": "identifier", "text": "vector", "parent": 450, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 16}}, {"id": 452, "type": "<", "text": "<", "parent": 419, "children": [], "start_point": {"row": 113, "column": 16}, "end_point": {"row": 113, "column": 17}}, {"id": 453, "type": "identifier", "text": "nlohmann", "parent": 419, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 25}}, {"id": 454, "type": "ERROR", "text": "::json>()", "parent": 0, "children": [455, 456], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 113, "column": 34}}, {"id": 455, "type": "identifier", "text": "json", "parent": 454, "children": [], "start_point": {"row": 113, "column": 27}, "end_point": {"row": 113, "column": 31}}, {"id": 456, "type": ">", "text": ">", "parent": 454, "children": [], "start_point": {"row": 113, "column": 31}, "end_point": {"row": 113, "column": 32}}, {"id": 457, "type": "for_statement", "text": "for (int r = 0; r < matrix.row_count(); ++r)\n\t{\n\t\tj.push_back(std::vector<nlohmann::json>());\n\t\tfor (int c = 0; c < matrix.column_count(); ++c)\n\t\t{\n\t\t\tj.back().push_back((T)matrix[r][c]);\n\t\t}\n\t}", "parent": 0, "children": [458, 464, 472], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 121, "column": 2}}, {"id": 458, "type": "declaration", "text": "int r = 0;", "parent": 457, "children": [459, 460], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 16}}, {"id": 459, "type": "primitive_type", "text": "int", "parent": 458, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 9}}, {"id": 460, "type": "init_declarator", "text": "r = 0", "parent": 458, "children": [461, 462, 463], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 15}}, {"id": 461, "type": "identifier", "text": "r", "parent": 460, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 11}}, {"id": 462, "type": "=", "text": "=", "parent": 460, "children": [], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 13}}, {"id": 463, "type": "number_literal", "text": "0", "parent": 460, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 15}}, {"id": 464, "type": "binary_expression", "text": "r < matrix.row_count()", "parent": 457, "children": [465, 466, 467], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 39}}, {"id": 465, "type": "identifier", "text": "r", "parent": 464, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 18}}, {"id": 466, "type": "<", "text": "<", "parent": 464, "children": [], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 20}}, {"id": 467, "type": "call_expression", "text": "matrix.row_count()", "parent": 464, "children": [468, 471], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 39}}, {"id": 468, "type": "field_expression", "text": "matrix.row_count", "parent": 467, "children": [469, 470], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 37}}, {"id": 469, "type": "identifier", "text": "matrix", "parent": 468, "children": [], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 27}}, {"id": 470, "type": "field_identifier", "text": "row_count", "parent": 468, "children": [], "start_point": {"row": 114, "column": 28}, "end_point": {"row": 114, "column": 37}}, {"id": 471, "type": "argument_list", "text": "()", "parent": 467, "children": [], "start_point": {"row": 114, "column": 37}, "end_point": {"row": 114, "column": 39}}, {"id": 472, "type": "update_expression", "text": "++r", "parent": 457, "children": [473, 474], "start_point": {"row": 114, "column": 41}, "end_point": {"row": 114, "column": 44}}, {"id": 473, "type": "++", "text": "++", "parent": 472, "children": [], "start_point": {"row": 114, "column": 41}, "end_point": {"row": 114, "column": 43}}, {"id": 474, "type": "identifier", "text": "r", "parent": 472, "children": [], "start_point": {"row": 114, "column": 43}, "end_point": {"row": 114, "column": 44}}, {"id": 475, "type": "call_expression", "text": "j.push_back(std::vector<nlohmann::json>())", "parent": 457, "children": [476, 479], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 44}}, {"id": 476, "type": "field_expression", "text": "j.push_back", "parent": 475, "children": [477, 478], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 13}}, {"id": 477, "type": "identifier", "text": "j", "parent": 476, "children": [], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 3}}, {"id": 478, "type": "field_identifier", "text": "push_back", "parent": 476, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 13}}, {"id": 479, "type": "argument_list", "text": "(std::vector<nlohmann::json>())", "parent": 475, "children": [480, 486], "start_point": {"row": 116, "column": 13}, "end_point": {"row": 116, "column": 44}}, {"id": 480, "type": "ERROR", "text": "std::vector<nlohmann::", "parent": 479, "children": [481, 482], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 36}}, {"id": 481, "type": "identifier", "text": "std", "parent": 480, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 17}}, {"id": 482, "type": "binary_expression", "text": "vector<nlohmann", "parent": 480, "children": [483, 484, 485], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 34}}, {"id": 483, "type": "identifier", "text": "vector", "parent": 482, "children": [], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 25}}, {"id": 484, "type": "<", "text": "<", "parent": 482, "children": [], "start_point": {"row": 116, "column": 25}, "end_point": {"row": 116, "column": 26}}, {"id": 485, "type": "identifier", "text": "nlohmann", "parent": 482, "children": [], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 34}}, {"id": 486, "type": "binary_expression", "text": "json>()", "parent": 479, "children": [487, 488, 489], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 43}}, {"id": 487, "type": "identifier", "text": "json", "parent": 486, "children": [], "start_point": {"row": 116, "column": 36}, "end_point": {"row": 116, "column": 40}}, {"id": 488, "type": ">", "text": ">", "parent": 486, "children": [], "start_point": {"row": 116, "column": 40}, "end_point": {"row": 116, "column": 41}}, {"id": 489, "type": "parenthesized_expression", "text": "()", "parent": 486, "children": [490], "start_point": {"row": 116, "column": 41}, "end_point": {"row": 116, "column": 43}}, {"id": 490, "type": "identifier", "text": "", "parent": 489, "children": [], "start_point": {"row": 116, "column": 42}, "end_point": {"row": 116, "column": 42}}, {"id": 491, "type": "for_statement", "text": "for (int c = 0; c < matrix.column_count(); ++c)\n\t\t{\n\t\t\tj.back().push_back((T)matrix[r][c]);\n\t\t}", "parent": 457, "children": [492, 498, 506], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 120, "column": 3}}, {"id": 492, "type": "declaration", "text": "int c = 0;", "parent": 491, "children": [493, 494], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 17}}, {"id": 493, "type": "primitive_type", "text": "int", "parent": 492, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 10}}, {"id": 494, "type": "init_declarator", "text": "c = 0", "parent": 492, "children": [495, 496, 497], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 16}}, {"id": 495, "type": "identifier", "text": "c", "parent": 494, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 12}}, {"id": 496, "type": "=", "text": "=", "parent": 494, "children": [], "start_point": {"row": 117, "column": 13}, "end_point": {"row": 117, "column": 14}}, {"id": 497, "type": "number_literal", "text": "0", "parent": 494, "children": [], "start_point": {"row": 117, "column": 15}, "end_point": {"row": 117, "column": 16}}, {"id": 498, "type": "binary_expression", "text": "c < matrix.column_count()", "parent": 491, "children": [499, 500, 501], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 43}}, {"id": 499, "type": "identifier", "text": "c", "parent": 498, "children": [], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 19}}, {"id": 500, "type": "<", "text": "<", "parent": 498, "children": [], "start_point": {"row": 117, "column": 20}, "end_point": {"row": 117, "column": 21}}, {"id": 501, "type": "call_expression", "text": "matrix.column_count()", "parent": 498, "children": [502, 505], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 43}}, {"id": 502, "type": "field_expression", "text": "matrix.column_count", "parent": 501, "children": [503, 504], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 41}}, {"id": 503, "type": "identifier", "text": "matrix", "parent": 502, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 28}}, {"id": 504, "type": "field_identifier", "text": "column_count", "parent": 502, "children": [], "start_point": {"row": 117, "column": 29}, "end_point": {"row": 117, "column": 41}}, {"id": 505, "type": "argument_list", "text": "()", "parent": 501, "children": [], "start_point": {"row": 117, "column": 41}, "end_point": {"row": 117, "column": 43}}, {"id": 506, "type": "update_expression", "text": "++c", "parent": 491, "children": [507, 508], "start_point": {"row": 117, "column": 45}, "end_point": {"row": 117, "column": 48}}, {"id": 507, "type": "++", "text": "++", "parent": 506, "children": [], "start_point": {"row": 117, "column": 45}, "end_point": {"row": 117, "column": 47}}, {"id": 508, "type": "identifier", "text": "c", "parent": 506, "children": [], "start_point": {"row": 117, "column": 47}, "end_point": {"row": 117, "column": 48}}, {"id": 509, "type": "call_expression", "text": "j.back().push_back((T)matrix[r][c])", "parent": 491, "children": [510, 517], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 38}}, {"id": 510, "type": "field_expression", "text": "j.back().push_back", "parent": 509, "children": [511, 516], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 21}}, {"id": 511, "type": "call_expression", "text": "j.back()", "parent": 510, "children": [512, 515], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 11}}, {"id": 512, "type": "field_expression", "text": "j.back", "parent": 511, "children": [513, 514], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 9}}, {"id": 513, "type": "identifier", "text": "j", "parent": 512, "children": [], "start_point": {"row": 119, "column": 3}, "end_point": {"row": 119, "column": 4}}, {"id": 514, "type": "field_identifier", "text": "back", "parent": 512, "children": [], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 9}}, {"id": 515, "type": "argument_list", "text": "()", "parent": 511, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 11}}, {"id": 516, "type": "field_identifier", "text": "push_back", "parent": 510, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 21}}, {"id": 517, "type": "argument_list", "text": "((T)matrix[r][c])", "parent": 509, "children": [518], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 38}}, {"id": 518, "type": "cast_expression", "text": "(T)matrix[r][c]", "parent": 517, "children": [519, 521], "start_point": {"row": 119, "column": 22}, "end_point": {"row": 119, "column": 37}}, {"id": 519, "type": "type_descriptor", "text": "T", "parent": 518, "children": [520], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 24}}, {"id": 520, "type": "type_identifier", "text": "T", "parent": 519, "children": [], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 24}}, {"id": 521, "type": "subscript_expression", "text": "matrix[r][c]", "parent": 518, "children": [522, 525], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 37}}, {"id": 522, "type": "subscript_expression", "text": "matrix[r]", "parent": 521, "children": [523, 524], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 34}}, {"id": 523, "type": "identifier", "text": "matrix", "parent": 522, "children": [], "start_point": {"row": 119, "column": 25}, "end_point": {"row": 119, "column": 31}}, {"id": 524, "type": "identifier", "text": "r", "parent": 522, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 33}}, {"id": 525, "type": "identifier", "text": "c", "parent": 521, "children": [], "start_point": {"row": 119, "column": 35}, "end_point": {"row": 119, "column": 36}}, {"id": 526, "type": "ERROR", "text": "}\n\n}", "parent": 0, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 124, "column": 1}}, {"id": 527, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 126, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 67, 73, 79, 107, 113, 119, 125, 132, 162, 169, 199, 201, 202, 218, 220, 241, 243, 275, 279], "variables": [37, 70, 76, 82, 85, 88, 110, 116, 173, 206, 209, 223, 226, 282, 306, 337, 347, 380, 394, 458, 492], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [24, 25, 53, 59, 60, 65, 91, 97, 98, 103, 136, 143, 144, 149, 150, 151, 159, 177, 180, 182, 183, 194, 195, 213, 214, 230, 231, 232, 233, 246, 247, 259, 262, 264, 267, 268, 273, 287, 295, 299, 302, 310, 311, 325, 326, 329, 330, 335, 342, 343, 353, 358, 359, 360, 369, 370, 375, 376, 386, 390, 400, 404, 408, 409, 414, 415, 419, 420, 421, 430, 433, 438, 439, 444, 464, 467, 468, 472, 475, 476, 482, 486, 489, 498, 501, 502, 506, 509, 510, 511, 512, 518, 521, 522], "assignments": [248, 366, 407, 446], "loops": [379, 393, 457, 491], "conditionals": [0, 1, 2, 5, 22, 23, 26, 28, 30, 33, 35, 38, 39, 43, 47, 49, 54, 56, 58, 61, 63, 66, 68, 71, 74, 77, 80, 84, 87, 89, 90, 92, 94, 96, 99, 101, 105, 106, 108, 111, 114, 117, 120, 122, 126, 129, 133, 137, 139, 141, 145, 147, 152, 153, 155, 157, 160, 161, 163, 165, 167, 171, 175, 178, 179, 181, 184, 187, 189, 190, 192, 196, 197, 198, 200, 203, 208, 211, 215, 216, 217, 219, 221, 225, 228, 234, 235, 237, 238, 240, 244, 249, 251, 253, 255, 257, 260, 265, 266, 269, 271, 274, 276, 278, 280, 283, 285, 286, 288, 290, 293, 296, 298, 300, 303, 305, 308, 309, 312, 314, 316, 318, 320, 323, 327, 328, 331, 333, 336, 340, 344, 345, 350, 352, 354, 361, 363, 367, 371, 373, 377, 378, 383, 387, 389, 392, 397, 401, 403, 406, 410, 411, 412, 416, 417, 418, 422, 424, 426, 429, 431, 434, 436, 437, 440, 442, 445, 447, 449, 451, 453, 455, 461, 465, 469, 470, 474, 477, 478, 481, 483, 485, 487, 490, 495, 499, 503, 504, 508, 513, 514, 516, 520, 523, 524, 525, 527], "returns": [128, 135, 158, 176, 193, 212, 229], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 45, 52, 356, 362, 365, 385, 399, 463, 497], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "Matrix", "text_snippet": "namespace goc\n{\n// Represents a matrix of dimension rxc of elements of type T.\n// Precondition: r>=0"}, {"node_id": 67, "universal_type": "function", "name": "unknown", "text_snippet": "row_count_(row_count)"}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "col_count_(col_count)"}, {"node_id": 79, "universal_type": "function", "name": "col_count,", "text_snippet": "Matrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "row_count_(row_count)"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "col_count_(col_count)"}, {"node_id": 119, "universal_type": "function", "name": "unknown", "text_snippet": "row_count() const"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "column_count()"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "size()"}, {"node_id": 162, "universal_type": "function", "name": "unknown", "text_snippet": "const std::vector<T>& operator[](int row) const\n\t{\n\t\treturn matrix_[row];\n\t}"}, {"node_id": 169, "universal_type": "function", "name": "unknown", "text_snippet": "operator[](int row) const"}, {"node_id": 199, "universal_type": "function", "name": "col)", "text_snippet": "const T& operator()(int row, int col) const\n\t{\n\t\treturn matrix_[row][col];\n\t}"}, {"node_id": 201, "universal_type": "function", "name": "col)", "text_snippet": "operator()(int row, int col) const"}, {"node_id": 202, "universal_type": "function", "name": "unknown", "text_snippet": "operator()"}, {"node_id": 218, "universal_type": "function", "name": "col)", "text_snippet": "const T& at(int row, int col) const\n\t{\n\t\treturn matrix_.at(row).at(col);\n\t}"}, {"node_id": 220, "universal_type": "function", "name": "col)", "text_snippet": "at(int row, int col) const"}, {"node_id": 241, "universal_type": "function", "name": "clear", "text_snippet": "void clear()\n\t{\n\t\tmatrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n\t}"}, {"node_id": 243, "universal_type": "function", "name": "unknown", "text_snippet": "clear()"}, {"node_id": 275, "universal_type": "function", "name": "Print", "text_snippet": "virtual void Print(std::ostream& os) const\n\t{\n\t\tos << matrix_;\n\t}"}, {"node_id": 279, "universal_type": "function", "name": "unknown", "text_snippet": "Print(std::ostream& os) const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <iostream>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"goc/lib/json.hpp\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"goc/print/printable.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"goc/print/print_utils.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "//\n// Created by <NAME>.\n// Grupo de Optimizacion Combinatoria (GOC).\n// Departamento de Computacion - Universidad de Buenos Aires.\n//\n\n#ifndef GOC_COLLECTION_MATRIX_H\n#define GOC_COLLECTION_MATRIX_H\n\n#include <iostream>\n#include <vector>\n\n#include \"goc/lib/json.hpp\"\n#include \"goc/print/printable.h\"\n#include \"goc/print/print_utils.h\"\n\nnamespace goc\n{\n// Represents a matrix of dimension rxc of elements of type T.\n// Precondition: r>=0, c>=0.\ntemplate<typename T>\nclass Matrix : public Printable\n{\npublic:\n\t// Creates an empty matrix.\n\tMatrix(int row_count=0, int col_count=0)\n\t\t: matrix_(row_count, std::vector<T>(col_count)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Creates a matrix with row_count rows, col_count columns, and all cells with the default_element.\n\tMatrix(int row_count, int col_count, const T& default_element)\n\t\t: matrix_(row_count, std::vector<T>(col_count, default_element)), row_count_(row_count), col_count_(col_count)\n\t{ }\n\t\n\t// Returns: the number of rows.\n\tint row_count() const\n\t{\n\t\treturn row_count_;\n\t}\n\t\n\t// Returns: the number of columns.\n\tint column_count() const\n\t{\n\t\treturn col_count_;\n\t}\n\t\n\t// Returns: the number of cells.\n\tint size() const\n\t{\n\t\treturn row_count_ * col_count_;\n\t}\n\t\n\t// Returns: the specified row.\n\tstd::vector<T>& operator[](int row)\n\t{\n\t\treturn matrix_[row];\n\t}\n\t\n\t// Returns: the specified row.\n\tconst std::vector<T>& operator[](int row) const\n\t{\n\t\treturn matrix_[row];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tT& operator()(int row, int col)\n\t{\n\t\treturn matrix_[row][col];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tconst T& operator()(int row, int col) const\n\t{\n\t\treturn matrix_[row][col];\n\t}\n\t\n\t// Returns: the specified cell value.\n\tconst T& at(int row, int col) const\n\t{\n\t\treturn matrix_.at(row).at(col);\n\t}\n\t\n\t// Clears the content of the matrix by setting the default value of T to each cell.\n\tvoid clear()\n\t{\n\t\tmatrix_ = std::vector<std::vector<T>>(row_count_, std::vector<T>(col_count_));\n\t}\n\t\n\t// Prints the matrix.\n\tvirtual void Print(std::ostream& os) const\n\t{\n\t\tos << matrix_;\n\t}\n\nprivate:\n\tstd::vector<std::vector<T>> matrix_;\n\tint row_count_, col_count_;\n};\n\ntemplate<typename T>\nvoid from_json(const nlohmann::json& j, Matrix<T>& matrix)\n{\n\tint r = j.size();\n\tint c = r > 0 ? j[0].size() : 0;\n\tmatrix = Matrix<T>(r, c);\n\tfor (int i = 0; i < r; ++i)\n\t\tfor (int k = 0; k < c; ++k)\n\t\t\tmatrix[i][k] = j[i][k];\n}\n\ntemplate<typename T>\nvoid to_json(nlohmann::json& j, const Matrix<T>& matrix)\n{\n\tj = std::vector<nlohmann::json>();\n\tfor (int r = 0; r < matrix.row_count(); ++r)\n\t{\n\t\tj.push_back(std::vector<nlohmann::json>());\n\t\tfor (int c = 0; c < matrix.column_count(); ++c)\n\t\t{\n\t\t\tj.back().push_back((T)matrix[r][c]);\n\t\t}\n\t}\n}\n\n} // namespace goc\n\n#endif //GOC_COLLECTION_MATRIX_H\n"}
80,316
c
// // Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #pragma once #include "td/actor/SchedulerLocalStorage.h" #include "td/db/DbKey.h" #include "td/db/SqliteDb.h" #include "td/utils/common.h" #include "td/utils/optional.h" namespace td { class SqliteConnectionSafe { public: SqliteConnectionSafe() = default; explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {}); SqliteDb &get(); void set(SqliteDb &&db); void close(); void close_and_destroy(); private: string path_; LazySchedulerLocalStorage<SqliteDb> lsls_connection_; }; } // namespace td
29.15
26
(translation_unit) "//\n// Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021\n//\n// Distributed under the Boost Software License, Version 1.0. (See accompanying\n// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\n//\n#pragma once\n\n#include "td/actor/SchedulerLocalStorage.h"\n\n#include "td/db/DbKey.h"\n#include "td/db/SqliteDb.h"\n\n#include "td/utils/common.h"\n#include "td/utils/optional.h"\n\nnamespace td {\n\nclass SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});\n\n SqliteDb &get();\n void set(SqliteDb &&db);\n\n void close();\n\n void close_and_destroy();\n\n private:\n string path_;\n LazySchedulerLocalStorage<SqliteDb> lsls_connection_;\n};\n\n} // namespace td\n" (comment) "//" (comment) "// Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021" (comment) "//" (comment) "// Distributed under the Boost Software License, Version 1.0. (See accompanying" (comment) "// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)" (comment) "//" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "td/actor/SchedulerLocalStorage.h"\n" (#include) "#include" (string_literal) ""td/actor/SchedulerLocalStorage.h"" (") """ (string_content) "td/actor/SchedulerLocalStorage.h" (") """ (preproc_include) "#include "td/db/DbKey.h"\n" (#include) "#include" (string_literal) ""td/db/DbKey.h"" (") """ (string_content) "td/db/DbKey.h" (") """ (preproc_include) "#include "td/db/SqliteDb.h"\n" (#include) "#include" (string_literal) ""td/db/SqliteDb.h"" (") """ (string_content) "td/db/SqliteDb.h" (") """ (preproc_include) "#include "td/utils/common.h"\n" (#include) "#include" (string_literal) ""td/utils/common.h"" (") """ (string_content) "td/utils/common.h" (") """ (preproc_include) "#include "td/utils/optional.h"\n" (#include) "#include" (string_literal) ""td/utils/optional.h"" (") """ (string_content) "td/utils/optional.h" (") """ (function_definition) "namespace td {\n\nclass SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});\n\n SqliteDb &get();\n void set(SqliteDb &&db);\n\n void close();\n\n void close_and_destroy();\n\n private:\n string path_;\n LazySchedulerLocalStorage<SqliteDb> lsls_connection_;\n};\n\n}" (type_identifier) "namespace" (identifier) "td" (compound_statement) "{\n\nclass SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});\n\n SqliteDb &get();\n void set(SqliteDb &&db);\n\n void close();\n\n void close_and_destroy();\n\n private:\n string path_;\n LazySchedulerLocalStorage<SqliteDb> lsls_connection_;\n};\n\n}" ({) "{" (function_definition) "class SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});\n\n SqliteDb &get();\n void set(SqliteDb &&db);\n\n void close();\n\n void close_and_destroy();\n\n private:\n string path_;\n LazySchedulerLocalStorage<SqliteDb> lsls_connection_;\n}" (type_identifier) "class" (identifier) "SqliteConnectionSafe" (compound_statement) "{\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});\n\n SqliteDb &get();\n void set(SqliteDb &&db);\n\n void close();\n\n void close_and_destroy();\n\n private:\n string path_;\n LazySchedulerLocalStorage<SqliteDb> lsls_connection_;\n}" ({) "{" (labeled_statement) "public:\n SqliteConnectionSafe() = default;" (statement_identifier) "public" (:) ":" (expression_statement) "SqliteConnectionSafe() = default;" (assignment_expression) "SqliteConnectionSafe() = default" (call_expression) "SqliteConnectionSafe()" (identifier) "SqliteConnectionSafe" (argument_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (declaration) "explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});" (type_identifier) "explicit" (init_declarator) "SqliteConnectionSafe(string path, DbKey key = DbKey::empty()" (function_declarator) "SqliteConnectionSafe(string path, DbKey key" (identifier) "SqliteConnectionSafe" (parameter_list) "(string path, DbKey key" (() "(" (parameter_declaration) "string path" (type_identifier) "string" (identifier) "path" (,) "," (parameter_declaration) "DbKey key" (type_identifier) "DbKey" (identifier) "key" ()) "" (=) "=" (ERROR) "DbKey::" (identifier) "DbKey" (:) ":" (:) ":" (call_expression) "empty()" (identifier) "empty" (argument_list) "()" (() "(" ()) ")" (,) "," (ERROR) "optional<int32>" (identifier) "optional" (<) "<" (identifier) "int32" (>) ">" (init_declarator) "cipher_version = {}" (identifier) "cipher_version" (=) "=" (initializer_list) "{}" ({) "{" (}) "}" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "SqliteDb &get();" (binary_expression) "SqliteDb &get()" (identifier) "SqliteDb" (&) "&" (call_expression) "get()" (identifier) "get" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void set(SqliteDb &&db);" (primitive_type) "void" (function_declarator) "set(SqliteDb &&db)" (identifier) "set" (parameter_list) "(SqliteDb &&db)" (() "(" (parameter_declaration) "SqliteDb &&db" (type_identifier) "SqliteDb" (ERROR) "&&" (&&) "&&" (identifier) "db" ()) ")" (;) ";" (declaration) "void close();" (primitive_type) "void" (function_declarator) "close()" (identifier) "close" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void close_and_destroy();" (primitive_type) "void" (function_declarator) "close_and_destroy()" (identifier) "close_and_destroy" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n string path_;" (statement_identifier) "private" (:) ":" (declaration) "string path_;" (type_identifier) "string" (identifier) "path_" (;) ";" (expression_statement) "LazySchedulerLocalStorage<SqliteDb> lsls_connection_;" (binary_expression) "LazySchedulerLocalStorage<SqliteDb> lsls_connection_" (binary_expression) "LazySchedulerLocalStorage<SqliteDb" (identifier) "LazySchedulerLocalStorage" (<) "<" (identifier) "SqliteDb" (>) ">" (identifier) "lsls_connection_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace td"
163
4
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 29.15, "nodes": 93, "errors": 0, "source_hash": "9ee52c02d4c16023117c8a4f25b6bb850999c9db5d2194793c77858ed7fb5d18", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"td/actor/SchedulerLocalStorage.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"td/actor/SchedulerLocalStorage.h\"", "parent": 3, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 43}}, {"id": 6, "type": "preproc_include", "text": "#include \"td/db/DbKey.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"td/db/DbKey.h\"", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include \"td/db/SqliteDb.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"td/db/SqliteDb.h\"", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include \"td/utils/common.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"td/utils/common.h\"", "parent": 12, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 28}}, {"id": 15, "type": "preproc_include", "text": "#include \"td/utils/optional.h\"\n", "parent": null, "children": [16, 17], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"td/utils/optional.h\"", "parent": 15, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 30}}, {"id": 18, "type": "function_definition", "text": "namespace td {\n\nclass SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});\n\n SqliteDb &get();\n void set(SqliteDb &&db);\n\n void close();\n\n void close_and_destroy();\n\n private:\n string path_;\n LazySchedulerLocalStorage<SqliteDb> lsls_connection_;\n};\n\n}", "parent": null, "children": [19, 20], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 35, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 9}}, {"id": 20, "type": "identifier", "text": "td", "parent": 18, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 12}}, {"id": 21, "type": "function_definition", "text": "class SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});\n\n SqliteDb &get();\n void set(SqliteDb &&db);\n\n void close();\n\n void close_and_destroy();\n\n private:\n string path_;\n LazySchedulerLocalStorage<SqliteDb> lsls_connection_;\n}", "parent": 18, "children": [22], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 22, "type": "identifier", "text": "SqliteConnectionSafe", "parent": 21, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 26}}, {"id": 23, "type": "labeled_statement", "text": "public:\n SqliteConnectionSafe() = default;", "parent": 21, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 20, "column": 35}}, {"id": 24, "type": "assignment_expression", "text": "SqliteConnectionSafe() = default", "parent": 23, "children": [25, 28, 29], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 34}}, {"id": 25, "type": "call_expression", "text": "SqliteConnectionSafe()", "parent": 24, "children": [26, 27], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 24}}, {"id": 26, "type": "identifier", "text": "SqliteConnectionSafe", "parent": 25, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 22}}, {"id": 27, "type": "argument_list", "text": "()", "parent": 25, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 24}}, {"id": 28, "type": "=", "text": "=", "parent": 24, "children": [], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 26}}, {"id": 29, "type": "identifier", "text": "default", "parent": 24, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 34}}, {"id": 30, "type": "declaration", "text": "explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});", "parent": 21, "children": [31, 32, 48, 53], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 110}}, {"id": 31, "type": "type_identifier", "text": "explicit", "parent": 30, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 10}}, {"id": 32, "type": "init_declarator", "text": "SqliteConnectionSafe(string path, DbKey key = DbKey::empty()", "parent": 30, "children": [33, 42, 43, 45], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 71}}, {"id": 33, "type": "function_declarator", "text": "SqliteConnectionSafe(string path, DbKey key", "parent": 32, "children": [34, 35], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 54}}, {"id": 34, "type": "identifier", "text": "SqliteConnectionSafe", "parent": 33, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 31}}, {"id": 35, "type": "parameter_list", "text": "(string path, DbKey key", "parent": 33, "children": [36, 39], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 54}}, {"id": 36, "type": "parameter_declaration", "text": "string path", "parent": 35, "children": [37, 38], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 43}}, {"id": 37, "type": "type_identifier", "text": "string", "parent": 36, "children": [], "start_point": {"row": 21, "column": 32}, "end_point": {"row": 21, "column": 38}}, {"id": 38, "type": "identifier", "text": "path", "parent": 36, "children": [], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 21, "column": 43}}, {"id": 39, "type": "parameter_declaration", "text": "DbKey key", "parent": 35, "children": [40, 41], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 54}}, {"id": 40, "type": "type_identifier", "text": "DbKey", "parent": 39, "children": [], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 50}}, {"id": 41, "type": "identifier", "text": "key", "parent": 39, "children": [], "start_point": {"row": 21, "column": 51}, "end_point": {"row": 21, "column": 54}}, {"id": 42, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 56}}, {"id": 43, "type": "ERROR", "text": "DbKey::", "parent": 32, "children": [44], "start_point": {"row": 21, "column": 57}, "end_point": {"row": 21, "column": 64}}, {"id": 44, "type": "identifier", "text": "DbKey", "parent": 43, "children": [], "start_point": {"row": 21, "column": 57}, "end_point": {"row": 21, "column": 62}}, {"id": 45, "type": "call_expression", "text": "empty()", "parent": 32, "children": [46, 47], "start_point": {"row": 21, "column": 64}, "end_point": {"row": 21, "column": 71}}, {"id": 46, "type": "identifier", "text": "empty", "parent": 45, "children": [], "start_point": {"row": 21, "column": 64}, "end_point": {"row": 21, "column": 69}}, {"id": 47, "type": "argument_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 21, "column": 69}, "end_point": {"row": 21, "column": 71}}, {"id": 48, "type": "ERROR", "text": "optional<int32>", "parent": 30, "children": [49, 50, 51, 52], "start_point": {"row": 21, "column": 73}, "end_point": {"row": 21, "column": 88}}, {"id": 49, "type": "identifier", "text": "optional", "parent": 48, "children": [], "start_point": {"row": 21, "column": 73}, "end_point": {"row": 21, "column": 81}}, {"id": 50, "type": "<", "text": "<", "parent": 48, "children": [], "start_point": {"row": 21, "column": 81}, "end_point": {"row": 21, "column": 82}}, {"id": 51, "type": "identifier", "text": "int32", "parent": 48, "children": [], "start_point": {"row": 21, "column": 82}, "end_point": {"row": 21, "column": 87}}, {"id": 52, "type": ">", "text": ">", "parent": 48, "children": [], "start_point": {"row": 21, "column": 87}, "end_point": {"row": 21, "column": 88}}, {"id": 53, "type": "init_declarator", "text": "cipher_version = {}", "parent": 30, "children": [54, 55, 56], "start_point": {"row": 21, "column": 89}, "end_point": {"row": 21, "column": 108}}, {"id": 54, "type": "identifier", "text": "cipher_version", "parent": 53, "children": [], "start_point": {"row": 21, "column": 89}, "end_point": {"row": 21, "column": 103}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 21, "column": 104}, "end_point": {"row": 21, "column": 105}}, {"id": 56, "type": "initializer_list", "text": "{}", "parent": 53, "children": [], "start_point": {"row": 21, "column": 106}, "end_point": {"row": 21, "column": 108}}, {"id": 57, "type": "binary_expression", "text": "SqliteDb &get()", "parent": 21, "children": [58, 59], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 17}}, {"id": 58, "type": "identifier", "text": "SqliteDb", "parent": 57, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 10}}, {"id": 59, "type": "call_expression", "text": "get()", "parent": 57, "children": [60, 61], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 17}}, {"id": 60, "type": "identifier", "text": "get", "parent": 59, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 15}}, {"id": 61, "type": "argument_list", "text": "()", "parent": 59, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 17}}, {"id": 62, "type": "declaration", "text": "void set(SqliteDb &&db);", "parent": 21, "children": [63, 64], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 26}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 6}}, {"id": 64, "type": "function_declarator", "text": "set(SqliteDb &&db)", "parent": 62, "children": [65, 66], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 25}}, {"id": 65, "type": "identifier", "text": "set", "parent": 64, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 10}}, {"id": 66, "type": "parameter_list", "text": "(SqliteDb &&db)", "parent": 64, "children": [67], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 25}}, {"id": 67, "type": "parameter_declaration", "text": "SqliteDb &&db", "parent": 66, "children": [68, 69, 71], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 24}}, {"id": 68, "type": "type_identifier", "text": "SqliteDb", "parent": 67, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 19}}, {"id": 69, "type": "ERROR", "text": "&&", "parent": 67, "children": [70], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 22}}, {"id": 70, "type": "&&", "text": "&&", "parent": 69, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 22}}, {"id": 71, "type": "identifier", "text": "db", "parent": 67, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 24}}, {"id": 72, "type": "declaration", "text": "void close();", "parent": 21, "children": [73, 74], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 15}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 74, "type": "function_declarator", "text": "close()", "parent": 72, "children": [75, 76], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 14}}, {"id": 75, "type": "identifier", "text": "close", "parent": 74, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 12}}, {"id": 76, "type": "parameter_list", "text": "()", "parent": 74, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 14}}, {"id": 77, "type": "declaration", "text": "void close_and_destroy();", "parent": 21, "children": [78, 79], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 27}}, {"id": 78, "type": "primitive_type", "text": "void", "parent": 77, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 6}}, {"id": 79, "type": "function_declarator", "text": "close_and_destroy()", "parent": 77, "children": [80, 81], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 26}}, {"id": 80, "type": "identifier", "text": "close_and_destroy", "parent": 79, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 24}}, {"id": 81, "type": "parameter_list", "text": "()", "parent": 79, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 26}}, {"id": 82, "type": "labeled_statement", "text": "private:\n string path_;", "parent": 21, "children": [83], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 31, "column": 15}}, {"id": 83, "type": "declaration", "text": "string path_;", "parent": 82, "children": [84, 85], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 15}}, {"id": 84, "type": "type_identifier", "text": "string", "parent": 83, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 8}}, {"id": 85, "type": "identifier", "text": "path_", "parent": 83, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 14}}, {"id": 86, "type": "binary_expression", "text": "LazySchedulerLocalStorage<SqliteDb> lsls_connection_", "parent": 21, "children": [87, 91, 92], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 54}}, {"id": 87, "type": "binary_expression", "text": "LazySchedulerLocalStorage<SqliteDb", "parent": 86, "children": [88, 89, 90], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 36}}, {"id": 88, "type": "identifier", "text": "LazySchedulerLocalStorage", "parent": 87, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 27}}, {"id": 89, "type": "<", "text": "<", "parent": 87, "children": [], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 28}}, {"id": 90, "type": "identifier", "text": "SqliteDb", "parent": 87, "children": [], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 32, "column": 36}}, {"id": 91, "type": ">", "text": ">", "parent": 86, "children": [], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 37}}, {"id": 92, "type": "identifier", "text": "lsls_connection_", "parent": 86, "children": [], "start_point": {"row": 32, "column": 38}, "end_point": {"row": 32, "column": 54}}]}, "node_categories": {"declarations": {"functions": [18, 21, 33, 64, 74, 79], "variables": [30, 36, 39, 62, 67, 72, 77, 83], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [25, 45, 57, 59, 86, 87], "assignments": [24], "loops": [], "conditionals": [19, 20, 22, 26, 29, 31, 34, 37, 38, 40, 41, 44, 46, 49, 51, 54, 58, 60, 65, 68, 71, 75, 80, 84, 85, 88, 90, 92], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "SqliteConnectionSafe", "text_snippet": "namespace td {\n\nclass SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit"}, {"node_id": 21, "universal_type": "function", "name": "SqliteConnectionSafe", "text_snippet": "class SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectio"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "SqliteConnectionSafe(string path, DbKey key"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "set(SqliteDb &&db)"}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "close()"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "close_and_destroy()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"td/actor/SchedulerLocalStorage.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"td/db/DbKey.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"td/db/SqliteDb.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"td/utils/common.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"td/utils/optional.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "//\n// Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021\n//\n// Distributed under the Boost Software License, Version 1.0. (See accompanying\n// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)\n//\n#pragma once\n\n#include \"td/actor/SchedulerLocalStorage.h\"\n\n#include \"td/db/DbKey.h\"\n#include \"td/db/SqliteDb.h\"\n\n#include \"td/utils/common.h\"\n#include \"td/utils/optional.h\"\n\nnamespace td {\n\nclass SqliteConnectionSafe {\n public:\n SqliteConnectionSafe() = default;\n explicit SqliteConnectionSafe(string path, DbKey key = DbKey::empty(), optional<int32> cipher_version = {});\n\n SqliteDb &get();\n void set(SqliteDb &&db);\n\n void close();\n\n void close_and_destroy();\n\n private:\n string path_;\n LazySchedulerLocalStorage<SqliteDb> lsls_connection_;\n};\n\n} // namespace td\n"}
80,317
c
/* ___________________________________________________________ / __ _ \ | / _| (_) | | | |_ _ _ ___ _ ___ _ __ | | | _| | | / __| |/ _ \| '_ \ | | | | | |_| \__ \ | (_) | | | | | | |_| \__,_|___/_|\___/|_| |_| * | | | | The MSX C Library for SDCC | | V1.0 - 09-10-11 2018 | | | | <NAME> & <NAME> | | | | C & A S M S O U R C E C O D E | | | | | \___________________________________________________________/ */ /* Playfx ============================================================================= SDCC AY-3-8910 PSG Functions Library (object type) Version: 1.0 Date: 16/06/2018 Author: mvac7/303bcn Architecture: MSX Format: C Object (SDCC .rel) Programming language: C WEB: mail: <EMAIL> Description: ============================================================================= */ #include "../../header/psg.h" //intern MSX AY #define AY0index 0xA0 #define AY0write 0xA1 #define AY0read 0xA2 //AY from MEGAFLASHROM-SCC+ //#define AY1index 0x10 //#define AY1write 0x11 //#define AY1read 0x12 /* ============================================================================= PlayFX Function : Play a sound structure FX type Input : [char] channel (0, 1 or 2) [FX] sound data Output : - ============================================================================= */ void SoundFX(char channel, FX *soundat) { if (channel>2) channel=2; SetChannel(channel,soundat->isTone,soundat->isNoise); Sound(8+channel,16); channel=channel*2; Sound(channel++,soundat->Tone & 0xFF); Sound(channel,(soundat->Tone & 0xFF00)/0xFF); Sound(6,soundat->Noise); Sound(11,soundat->Period & 0xFF); Sound(12,(soundat->Period & 0xFF00)/0xFF); Sound(13,soundat->Shape); }
37.54
63
(translation_unit) "/*\n ___________________________________________________________\n/ __ _ \\n| / _| (_) |\n| | |_ _ _ ___ _ ___ _ __ |\n| | _| | | / __| |/ _ \| '_ \ |\n| | | | |_| \__ \ | (_) | | | | |\n| |_| \__,_|___/_|\___/|_| |_| * |\n| |\n| The MSX C Library for SDCC |\n| V1.0 - 09-10-11 2018 |\n| |\n| <NAME> & <NAME> |\n| |\n| C & A S M S O U R C E C O D E |\n| |\n| |\n\___________________________________________________________/\n*/\n/* Playfx =============================================================================\n SDCC AY-3-8910 PSG Functions Library (object type)\n Version: 1.0\n Date: 16/06/2018\n Author: mvac7/303bcn\n Architecture: MSX\n Format: C Object (SDCC .rel)\n Programming language: C\n WEB: \n mail: <EMAIL>\n\n Description: \n\n============================================================================= */\n#include "../../header/psg.h"\n\n//intern MSX AY\n#define AY0index 0xA0\n#define AY0write 0xA1\n#define AY0read 0xA2\n\n//AY from MEGAFLASHROM-SCC+\n//#define AY1index 0x10\n//#define AY1write 0x11\n//#define AY1read 0x12\n\n\n\n/* =============================================================================\n PlayFX\n\n Function : Play a sound structure FX type\n Input : [char] channel (0, 1 or 2)\n [FX] sound data\n Output : -\n============================================================================= */\nvoid SoundFX(char channel, FX *soundat)\n{\n if (channel>2) channel=2; \n\n SetChannel(channel,soundat->isTone,soundat->isNoise);\n \n Sound(8+channel,16);\n \n channel=channel*2;\n Sound(channel++,soundat->Tone & 0xFF);\n Sound(channel,(soundat->Tone & 0xFF00)/0xFF);\n \n Sound(6,soundat->Noise);\n Sound(11,soundat->Period & 0xFF);\n Sound(12,(soundat->Period & 0xFF00)/0xFF);\n Sound(13,soundat->Shape);\n}\n\n" (comment) "/*\n ___________________________________________________________\n/ __ _ \\n| / _| (_) |\n| | |_ _ _ ___ _ ___ _ __ |\n| | _| | | / __| |/ _ \| '_ \ |\n| | | | |_| \__ \ | (_) | | | | |\n| |_| \__,_|___/_|\___/|_| |_| * |\n| |\n| The MSX C Library for SDCC |\n| V1.0 - 09-10-11 2018 |\n| |\n| <NAME> & <NAME> |\n| |\n| C & A S M S O U R C E C O D E |\n| |\n| |\n\___________________________________________________________/\n*/" (comment) "/* Playfx =============================================================================\n SDCC AY-3-8910 PSG Functions Library (object type)\n Version: 1.0\n Date: 16/06/2018\n Author: mvac7/303bcn\n Architecture: MSX\n Format: C Object (SDCC .rel)\n Programming language: C\n WEB: \n mail: <EMAIL>\n\n Description: \n\n============================================================================= */" (preproc_include) "#include "../../header/psg.h"\n" (#include) "#include" (string_literal) ""../../header/psg.h"" (") """ (string_content) "../../header/psg.h" (") """ (comment) "//intern MSX AY" (preproc_def) "#define AY0index 0xA0\n" (#define) "#define" (identifier) "AY0index" (preproc_arg) "0xA0" (preproc_def) "#define AY0write 0xA1\n" (#define) "#define" (identifier) "AY0write" (preproc_arg) "0xA1" (preproc_def) "#define AY0read 0xA2\n" (#define) "#define" (identifier) "AY0read" (preproc_arg) "0xA2" (comment) "//AY from MEGAFLASHROM-SCC+" (comment) "//#define AY1index 0x10" (comment) "//#define AY1write 0x11" (comment) "//#define AY1read 0x12" (comment) "/* =============================================================================\n PlayFX\n\n Function : Play a sound structure FX type\n Input : [char] channel (0, 1 or 2)\n [FX] sound data\n Output : -\n============================================================================= */" (function_definition) "void SoundFX(char channel, FX *soundat)\n{\n if (channel>2) channel=2; \n\n SetChannel(channel,soundat->isTone,soundat->isNoise);\n \n Sound(8+channel,16);\n \n channel=channel*2;\n Sound(channel++,soundat->Tone & 0xFF);\n Sound(channel,(soundat->Tone & 0xFF00)/0xFF);\n \n Sound(6,soundat->Noise);\n Sound(11,soundat->Period & 0xFF);\n Sound(12,(soundat->Period & 0xFF00)/0xFF);\n Sound(13,soundat->Shape);\n}" (primitive_type) "void" (function_declarator) "SoundFX(char channel, FX *soundat)" (identifier) "SoundFX" (parameter_list) "(char channel, FX *soundat)" (() "(" (parameter_declaration) "char channel" (primitive_type) "char" (identifier) "channel" (,) "," (parameter_declaration) "FX *soundat" (type_identifier) "FX" (pointer_declarator) "*soundat" (*) "*" (identifier) "soundat" ()) ")" (compound_statement) "{\n if (channel>2) channel=2; \n\n SetChannel(channel,soundat->isTone,soundat->isNoise);\n \n Sound(8+channel,16);\n \n channel=channel*2;\n Sound(channel++,soundat->Tone & 0xFF);\n Sound(channel,(soundat->Tone & 0xFF00)/0xFF);\n \n Sound(6,soundat->Noise);\n Sound(11,soundat->Period & 0xFF);\n Sound(12,(soundat->Period & 0xFF00)/0xFF);\n Sound(13,soundat->Shape);\n}" ({) "{" (if_statement) "if (channel>2) channel=2;" (if) "if" (parenthesized_expression) "(channel>2)" (() "(" (binary_expression) "channel>2" (identifier) "channel" (>) ">" (number_literal) "2" ()) ")" (expression_statement) "channel=2;" (assignment_expression) "channel=2" (identifier) "channel" (=) "=" (number_literal) "2" (;) ";" (expression_statement) "SetChannel(channel,soundat->isTone,soundat->isNoise);" (call_expression) "SetChannel(channel,soundat->isTone,soundat->isNoise)" (identifier) "SetChannel" (argument_list) "(channel,soundat->isTone,soundat->isNoise)" (() "(" (identifier) "channel" (,) "," (field_expression) "soundat->isTone" (identifier) "soundat" (->) "->" (field_identifier) "isTone" (,) "," (field_expression) "soundat->isNoise" (identifier) "soundat" (->) "->" (field_identifier) "isNoise" ()) ")" (;) ";" (expression_statement) "Sound(8+channel,16);" (call_expression) "Sound(8+channel,16)" (identifier) "Sound" (argument_list) "(8+channel,16)" (() "(" (binary_expression) "8+channel" (number_literal) "8" (+) "+" (identifier) "channel" (,) "," (number_literal) "16" ()) ")" (;) ";" (expression_statement) "channel=channel*2;" (assignment_expression) "channel=channel*2" (identifier) "channel" (=) "=" (binary_expression) "channel*2" (identifier) "channel" (*) "*" (number_literal) "2" (;) ";" (expression_statement) "Sound(channel++,soundat->Tone & 0xFF);" (call_expression) "Sound(channel++,soundat->Tone & 0xFF)" (identifier) "Sound" (argument_list) "(channel++,soundat->Tone & 0xFF)" (() "(" (update_expression) "channel++" (identifier) "channel" (++) "++" (,) "," (binary_expression) "soundat->Tone & 0xFF" (field_expression) "soundat->Tone" (identifier) "soundat" (->) "->" (field_identifier) "Tone" (&) "&" (number_literal) "0xFF" ()) ")" (;) ";" (expression_statement) "Sound(channel,(soundat->Tone & 0xFF00)/0xFF);" (call_expression) "Sound(channel,(soundat->Tone & 0xFF00)/0xFF)" (identifier) "Sound" (argument_list) "(channel,(soundat->Tone & 0xFF00)/0xFF)" (() "(" (identifier) "channel" (,) "," (binary_expression) "(soundat->Tone & 0xFF00)/0xFF" (parenthesized_expression) "(soundat->Tone & 0xFF00)" (() "(" (binary_expression) "soundat->Tone & 0xFF00" (field_expression) "soundat->Tone" (identifier) "soundat" (->) "->" (field_identifier) "Tone" (&) "&" (number_literal) "0xFF00" ()) ")" (/) "/" (number_literal) "0xFF" ()) ")" (;) ";" (expression_statement) "Sound(6,soundat->Noise);" (call_expression) "Sound(6,soundat->Noise)" (identifier) "Sound" (argument_list) "(6,soundat->Noise)" (() "(" (number_literal) "6" (,) "," (field_expression) "soundat->Noise" (identifier) "soundat" (->) "->" (field_identifier) "Noise" ()) ")" (;) ";" (expression_statement) "Sound(11,soundat->Period & 0xFF);" (call_expression) "Sound(11,soundat->Period & 0xFF)" (identifier) "Sound" (argument_list) "(11,soundat->Period & 0xFF)" (() "(" (number_literal) "11" (,) "," (binary_expression) "soundat->Period & 0xFF" (field_expression) "soundat->Period" (identifier) "soundat" (->) "->" (field_identifier) "Period" (&) "&" (number_literal) "0xFF" ()) ")" (;) ";" (expression_statement) "Sound(12,(soundat->Period & 0xFF00)/0xFF);" (call_expression) "Sound(12,(soundat->Period & 0xFF00)/0xFF)" (identifier) "Sound" (argument_list) "(12,(soundat->Period & 0xFF00)/0xFF)" (() "(" (number_literal) "12" (,) "," (binary_expression) "(soundat->Period & 0xFF00)/0xFF" (parenthesized_expression) "(soundat->Period & 0xFF00)" (() "(" (binary_expression) "soundat->Period & 0xFF00" (field_expression) "soundat->Period" (identifier) "soundat" (->) "->" (field_identifier) "Period" (&) "&" (number_literal) "0xFF00" ()) ")" (/) "/" (number_literal) "0xFF" ()) ")" (;) ";" (expression_statement) "Sound(13,soundat->Shape);" (call_expression) "Sound(13,soundat->Shape)" (identifier) "Sound" (argument_list) "(13,soundat->Shape)" (() "(" (number_literal) "13" (,) "," (field_expression) "soundat->Shape" (identifier) "soundat" (->) "->" (field_identifier) "Shape" ()) ")" (;) ";" (}) "}"
205
0
{"language": "c", "success": true, "metadata": {"lines": 63, "avg_line_length": 37.54, "nodes": 123, "errors": 0, "source_hash": "ee8428749bcad25428bd1b0f3236a0c64cccc8a82853beb94305695592572ebc", "categorized_nodes": 93}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"../../header/psg.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"../../header/psg.h\"", "parent": 0, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 29}}, {"id": 3, "type": "preproc_def", "text": "#define AY0index 0xA0\n", "parent": null, "children": [4, 5, 6], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 5, "type": "identifier", "text": "AY0index", "parent": 3, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 16}}, {"id": 6, "type": "preproc_arg", "text": "0xA0", "parent": 3, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 21}}, {"id": 7, "type": "preproc_def", "text": "#define AY0write 0xA1\n", "parent": null, "children": [8, 9, 10], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 8, "type": "#define", "text": "#define", "parent": 7, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 9, "type": "identifier", "text": "AY0write", "parent": 7, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 16}}, {"id": 10, "type": "preproc_arg", "text": "0xA1", "parent": 7, "children": [], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 21}}, {"id": 11, "type": "preproc_def", "text": "#define AY0read 0xA2\n", "parent": null, "children": [12, 13, 14], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 12, "type": "#define", "text": "#define", "parent": 11, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 13, "type": "identifier", "text": "AY0read", "parent": 11, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 15}}, {"id": 14, "type": "preproc_arg", "text": "0xA2", "parent": 11, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 21}}, {"id": 15, "type": "function_definition", "text": "void SoundFX(char channel, FX *soundat)\n{\n if (channel>2) channel=2; \n\n SetChannel(channel,soundat->isTone,soundat->isNoise);\n \n Sound(8+channel,16);\n \n channel=channel*2;\n Sound(channel++,soundat->Tone & 0xFF);\n Sound(channel,(soundat->Tone & 0xFF00)/0xFF);\n \n Sound(6,soundat->Noise);\n Sound(11,soundat->Period & 0xFF);\n Sound(12,(soundat->Period & 0xFF00)/0xFF);\n Sound(13,soundat->Shape);\n}", "parent": null, "children": [16, 17], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 71, "column": 1}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 17, "type": "function_declarator", "text": "SoundFX(char channel, FX *soundat)", "parent": 15, "children": [18, 19], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 39}}, {"id": 18, "type": "identifier", "text": "SoundFX", "parent": 17, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 12}}, {"id": 19, "type": "parameter_list", "text": "(char channel, FX *soundat)", "parent": 17, "children": [20, 23], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 39}}, {"id": 20, "type": "parameter_declaration", "text": "char channel", "parent": 19, "children": [21, 22], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 25}}, {"id": 21, "type": "primitive_type", "text": "char", "parent": 20, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 17}}, {"id": 22, "type": "identifier", "text": "channel", "parent": 20, "children": [], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 25}}, {"id": 23, "type": "parameter_declaration", "text": "FX *soundat", "parent": 19, "children": [24, 25], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 38}}, {"id": 24, "type": "type_identifier", "text": "FX", "parent": 23, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 29}}, {"id": 25, "type": "pointer_declarator", "text": "*soundat", "parent": 23, "children": [26, 27], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 38}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 31}}, {"id": 27, "type": "identifier", "text": "soundat", "parent": 25, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 38}}, {"id": 28, "type": "if_statement", "text": "if (channel>2) channel=2;", "parent": 15, "children": [29], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 27}}, {"id": 29, "type": "parenthesized_expression", "text": "(channel>2)", "parent": 28, "children": [30], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 16}}, {"id": 30, "type": "binary_expression", "text": "channel>2", "parent": 29, "children": [31, 32, 33], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 15}}, {"id": 31, "type": "identifier", "text": "channel", "parent": 30, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 13}}, {"id": 32, "type": ">", "text": ">", "parent": 30, "children": [], "start_point": {"row": 57, "column": 13}, "end_point": {"row": 57, "column": 14}}, {"id": 33, "type": "number_literal", "text": "2", "parent": 30, "children": [], "start_point": {"row": 57, "column": 14}, "end_point": {"row": 57, "column": 15}}, {"id": 34, "type": "assignment_expression", "text": "channel=2", "parent": 28, "children": [35, 36, 37], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 26}}, {"id": 35, "type": "identifier", "text": "channel", "parent": 34, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 24}}, {"id": 36, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 57, "column": 24}, "end_point": {"row": 57, "column": 25}}, {"id": 37, "type": "number_literal", "text": "2", "parent": 34, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 26}}, {"id": 38, "type": "call_expression", "text": "SetChannel(channel,soundat->isTone,soundat->isNoise)", "parent": 15, "children": [39, 40], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 54}}, {"id": 39, "type": "identifier", "text": "SetChannel", "parent": 38, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 12}}, {"id": 40, "type": "argument_list", "text": "(channel,soundat->isTone,soundat->isNoise)", "parent": 38, "children": [41, 42, 45], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 54}}, {"id": 41, "type": "identifier", "text": "channel", "parent": 40, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 20}}, {"id": 42, "type": "field_expression", "text": "soundat->isTone", "parent": 40, "children": [43, 44], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 36}}, {"id": 43, "type": "identifier", "text": "soundat", "parent": 42, "children": [], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 28}}, {"id": 44, "type": "field_identifier", "text": "isTone", "parent": 42, "children": [], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 36}}, {"id": 45, "type": "field_expression", "text": "soundat->isNoise", "parent": 40, "children": [46, 47], "start_point": {"row": 59, "column": 37}, "end_point": {"row": 59, "column": 53}}, {"id": 46, "type": "identifier", "text": "soundat", "parent": 45, "children": [], "start_point": {"row": 59, "column": 37}, "end_point": {"row": 59, "column": 44}}, {"id": 47, "type": "field_identifier", "text": "isNoise", "parent": 45, "children": [], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 53}}, {"id": 48, "type": "call_expression", "text": "Sound(8+channel,16)", "parent": 15, "children": [49, 50], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 21}}, {"id": 49, "type": "identifier", "text": "Sound", "parent": 48, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 7}}, {"id": 50, "type": "argument_list", "text": "(8+channel,16)", "parent": 48, "children": [51, 55], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 21}}, {"id": 51, "type": "binary_expression", "text": "8+channel", "parent": 50, "children": [52, 53, 54], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 17}}, {"id": 52, "type": "number_literal", "text": "8", "parent": 51, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 9}}, {"id": 53, "type": "+", "text": "+", "parent": 51, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 10}}, {"id": 54, "type": "identifier", "text": "channel", "parent": 51, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 17}}, {"id": 55, "type": "number_literal", "text": "16", "parent": 50, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 20}}, {"id": 56, "type": "assignment_expression", "text": "channel=channel*2", "parent": 15, "children": [57, 58, 59], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 19}}, {"id": 57, "type": "identifier", "text": "channel", "parent": 56, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 9}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 10}}, {"id": 59, "type": "binary_expression", "text": "channel*2", "parent": 56, "children": [60, 61, 62], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 19}}, {"id": 60, "type": "identifier", "text": "channel", "parent": 59, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 17}}, {"id": 61, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 18}}, {"id": 62, "type": "number_literal", "text": "2", "parent": 59, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 19}}, {"id": 63, "type": "call_expression", "text": "Sound(channel++,soundat->Tone & 0xFF)", "parent": 15, "children": [64, 65], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 39}}, {"id": 64, "type": "identifier", "text": "Sound", "parent": 63, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 7}}, {"id": 65, "type": "argument_list", "text": "(channel++,soundat->Tone & 0xFF)", "parent": 63, "children": [66, 69], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 39}}, {"id": 66, "type": "update_expression", "text": "channel++", "parent": 65, "children": [67, 68], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 17}}, {"id": 67, "type": "identifier", "text": "channel", "parent": 66, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 15}}, {"id": 68, "type": "++", "text": "++", "parent": 66, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 17}}, {"id": 69, "type": "binary_expression", "text": "soundat->Tone & 0xFF", "parent": 65, "children": [70, 73], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 38}}, {"id": 70, "type": "field_expression", "text": "soundat->Tone", "parent": 69, "children": [71, 72], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 31}}, {"id": 71, "type": "identifier", "text": "soundat", "parent": 70, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 25}}, {"id": 72, "type": "field_identifier", "text": "Tone", "parent": 70, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 31}}, {"id": 73, "type": "number_literal", "text": "0xFF", "parent": 69, "children": [], "start_point": {"row": 64, "column": 34}, "end_point": {"row": 64, "column": 38}}, {"id": 74, "type": "call_expression", "text": "Sound(channel,(soundat->Tone & 0xFF00)/0xFF)", "parent": 15, "children": [75, 76], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 46}}, {"id": 75, "type": "identifier", "text": "Sound", "parent": 74, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 7}}, {"id": 76, "type": "argument_list", "text": "(channel,(soundat->Tone & 0xFF00)/0xFF)", "parent": 74, "children": [77, 78], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 46}}, {"id": 77, "type": "identifier", "text": "channel", "parent": 76, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 15}}, {"id": 78, "type": "binary_expression", "text": "(soundat->Tone & 0xFF00)/0xFF", "parent": 76, "children": [79, 85, 86], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 45}}, {"id": 79, "type": "parenthesized_expression", "text": "(soundat->Tone & 0xFF00)", "parent": 78, "children": [80], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 40}}, {"id": 80, "type": "binary_expression", "text": "soundat->Tone & 0xFF00", "parent": 79, "children": [81, 84], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 39}}, {"id": 81, "type": "field_expression", "text": "soundat->Tone", "parent": 80, "children": [82, 83], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 30}}, {"id": 82, "type": "identifier", "text": "soundat", "parent": 81, "children": [], "start_point": {"row": 65, "column": 17}, "end_point": {"row": 65, "column": 24}}, {"id": 83, "type": "field_identifier", "text": "Tone", "parent": 81, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 30}}, {"id": 84, "type": "number_literal", "text": "0xFF00", "parent": 80, "children": [], "start_point": {"row": 65, "column": 33}, "end_point": {"row": 65, "column": 39}}, {"id": 85, "type": "/", "text": "/", "parent": 78, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 41}}, {"id": 86, "type": "number_literal", "text": "0xFF", "parent": 78, "children": [], "start_point": {"row": 65, "column": 41}, "end_point": {"row": 65, "column": 45}}, {"id": 87, "type": "call_expression", "text": "Sound(6,soundat->Noise)", "parent": 15, "children": [88, 89], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 25}}, {"id": 88, "type": "identifier", "text": "Sound", "parent": 87, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 7}}, {"id": 89, "type": "argument_list", "text": "(6,soundat->Noise)", "parent": 87, "children": [90, 91], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 25}}, {"id": 90, "type": "number_literal", "text": "6", "parent": 89, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 91, "type": "field_expression", "text": "soundat->Noise", "parent": 89, "children": [92, 93], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 24}}, {"id": 92, "type": "identifier", "text": "soundat", "parent": 91, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 17}}, {"id": 93, "type": "field_identifier", "text": "Noise", "parent": 91, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 24}}, {"id": 94, "type": "call_expression", "text": "Sound(11,soundat->Period & 0xFF)", "parent": 15, "children": [95, 96], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 34}}, {"id": 95, "type": "identifier", "text": "Sound", "parent": 94, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 7}}, {"id": 96, "type": "argument_list", "text": "(11,soundat->Period & 0xFF)", "parent": 94, "children": [97, 98], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 34}}, {"id": 97, "type": "number_literal", "text": "11", "parent": 96, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 10}}, {"id": 98, "type": "binary_expression", "text": "soundat->Period & 0xFF", "parent": 96, "children": [99, 102], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 33}}, {"id": 99, "type": "field_expression", "text": "soundat->Period", "parent": 98, "children": [100, 101], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 26}}, {"id": 100, "type": "identifier", "text": "soundat", "parent": 99, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 18}}, {"id": 101, "type": "field_identifier", "text": "Period", "parent": 99, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 26}}, {"id": 102, "type": "number_literal", "text": "0xFF", "parent": 98, "children": [], "start_point": {"row": 68, "column": 29}, "end_point": {"row": 68, "column": 33}}, {"id": 103, "type": "call_expression", "text": "Sound(12,(soundat->Period & 0xFF00)/0xFF)", "parent": 15, "children": [104, 105], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 43}}, {"id": 104, "type": "identifier", "text": "Sound", "parent": 103, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 7}}, {"id": 105, "type": "argument_list", "text": "(12,(soundat->Period & 0xFF00)/0xFF)", "parent": 103, "children": [106, 107], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 43}}, {"id": 106, "type": "number_literal", "text": "12", "parent": 105, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 10}}, {"id": 107, "type": "binary_expression", "text": "(soundat->Period & 0xFF00)/0xFF", "parent": 105, "children": [108, 114, 115], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 42}}, {"id": 108, "type": "parenthesized_expression", "text": "(soundat->Period & 0xFF00)", "parent": 107, "children": [109], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 37}}, {"id": 109, "type": "binary_expression", "text": "soundat->Period & 0xFF00", "parent": 108, "children": [110, 113], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 36}}, {"id": 110, "type": "field_expression", "text": "soundat->Period", "parent": 109, "children": [111, 112], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 27}}, {"id": 111, "type": "identifier", "text": "soundat", "parent": 110, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 19}}, {"id": 112, "type": "field_identifier", "text": "Period", "parent": 110, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 27}}, {"id": 113, "type": "number_literal", "text": "0xFF00", "parent": 109, "children": [], "start_point": {"row": 69, "column": 30}, "end_point": {"row": 69, "column": 36}}, {"id": 114, "type": "/", "text": "/", "parent": 107, "children": [], "start_point": {"row": 69, "column": 37}, "end_point": {"row": 69, "column": 38}}, {"id": 115, "type": "number_literal", "text": "0xFF", "parent": 107, "children": [], "start_point": {"row": 69, "column": 38}, "end_point": {"row": 69, "column": 42}}, {"id": 116, "type": "call_expression", "text": "Sound(13,soundat->Shape)", "parent": 15, "children": [117, 118], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 26}}, {"id": 117, "type": "identifier", "text": "Sound", "parent": 116, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 7}}, {"id": 118, "type": "argument_list", "text": "(13,soundat->Shape)", "parent": 116, "children": [119, 120], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 26}}, {"id": 119, "type": "number_literal", "text": "13", "parent": 118, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 10}}, {"id": 120, "type": "field_expression", "text": "soundat->Shape", "parent": 118, "children": [121, 122], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 25}}, {"id": 121, "type": "identifier", "text": "soundat", "parent": 120, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 18}}, {"id": 122, "type": "field_identifier", "text": "Shape", "parent": 120, "children": [], "start_point": {"row": 70, "column": 20}, "end_point": {"row": 70, "column": 25}}]}, "node_categories": {"declarations": {"functions": [15, 17], "variables": [20, 23], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [29, 30, 38, 42, 45, 48, 51, 59, 63, 66, 69, 70, 74, 78, 79, 80, 81, 87, 91, 94, 98, 99, 103, 107, 108, 109, 110, 116, 120], "assignments": [34, 56], "loops": [], "conditionals": [5, 9, 13, 18, 22, 24, 27, 28, 31, 35, 39, 41, 43, 44, 46, 47, 49, 54, 57, 60, 64, 67, 71, 72, 75, 77, 82, 83, 88, 92, 93, 95, 100, 101, 104, 111, 112, 117, 121, 122], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 33, 37, 52, 55, 62, 73, 84, 86, 90, 97, 102, 106, 113, 115, 119], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "SoundFX", "text_snippet": "void SoundFX(char channel, FX *soundat)\n{\n if (channel>2) channel=2; \n\n SetChannel(channel,sound"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "SoundFX(char channel, FX *soundat)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"../../header/psg.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "/*\n ___________________________________________________________\n/ __ _ \\\n| / _| (_) |\n| | |_ _ _ ___ _ ___ _ __ |\n| | _| | | / __| |/ _ \\| '_ \\ |\n| | | | |_| \\__ \\ | (_) | | | | |\n| |_| \\__,_|___/_|\\___/|_| |_| * |\n| |\n| The MSX C Library for SDCC |\n| V1.0 - 09-10-11 2018 |\n| |\n| <NAME> & <NAME> |\n| |\n| C & A S M S O U R C E C O D E |\n| |\n| |\n\\___________________________________________________________/\n*/\n/* Playfx =============================================================================\n SDCC AY-3-8910 PSG Functions Library (object type)\n Version: 1.0\n Date: 16/06/2018\n Author: mvac7/303bcn\n Architecture: MSX\n Format: C Object (SDCC .rel)\n Programming language: C\n WEB: \n mail: <EMAIL>\n\n Description: \n\n============================================================================= */\n#include \"../../header/psg.h\"\n\n//intern MSX AY\n#define AY0index 0xA0\n#define AY0write 0xA1\n#define AY0read 0xA2\n\n//AY from MEGAFLASHROM-SCC+\n//#define AY1index 0x10\n//#define AY1write 0x11\n//#define AY1read 0x12\n\n\n\n/* =============================================================================\n PlayFX\n\n Function : Play a sound structure FX type\n Input : [char] channel (0, 1 or 2)\n [FX] sound data\n Output : -\n============================================================================= */\nvoid SoundFX(char channel, FX *soundat)\n{\n if (channel>2) channel=2; \n\n SetChannel(channel,soundat->isTone,soundat->isNoise);\n \n Sound(8+channel,16);\n \n channel=channel*2;\n Sound(channel++,soundat->Tone & 0xFF);\n Sound(channel,(soundat->Tone & 0xFF00)/0xFF);\n \n Sound(6,soundat->Noise);\n Sound(11,soundat->Period & 0xFF);\n Sound(12,(soundat->Period & 0xFF00)/0xFF);\n Sound(13,soundat->Shape);\n}\n\n"}
80,318
c
#ifndef EMPR_LIB_I2C_H #define EMPR_LIB_I2C_H #include "empr_lib_common.h" #include "lpc17xx_pinsel.h" #include "lpc17xx_i2c.h" #define EMPR_LIB_I2C_RETRANSMISSIONS_MAX 0 #define EMPR_LIB_I2C_DATA_RATE 100000 void EL_I2C_Init(void); Status EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length); Status EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length); #endif
35.09
11
(translation_unit) "#ifndef EMPR_LIB_I2C_H\n#define EMPR_LIB_I2C_H\n\n#include "empr_lib_common.h"\n#include "lpc17xx_pinsel.h"\n#include "lpc17xx_i2c.h"\n\n#define EMPR_LIB_I2C_RETRANSMISSIONS_MAX 0\n#define EMPR_LIB_I2C_DATA_RATE 100000\n\nvoid EL_I2C_Init(void);\nStatus EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length);\nStatus EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length);\n\n#endif\n" (preproc_ifdef) "#ifndef EMPR_LIB_I2C_H\n#define EMPR_LIB_I2C_H\n\n#include "empr_lib_common.h"\n#include "lpc17xx_pinsel.h"\n#include "lpc17xx_i2c.h"\n\n#define EMPR_LIB_I2C_RETRANSMISSIONS_MAX 0\n#define EMPR_LIB_I2C_DATA_RATE 100000\n\nvoid EL_I2C_Init(void);\nStatus EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length);\nStatus EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length);\n\n#endif" (#ifndef) "#ifndef" (identifier) "EMPR_LIB_I2C_H" (preproc_def) "#define EMPR_LIB_I2C_H\n" (#define) "#define" (identifier) "EMPR_LIB_I2C_H" (preproc_include) "#include "empr_lib_common.h"\n" (#include) "#include" (string_literal) ""empr_lib_common.h"" (") """ (string_content) "empr_lib_common.h" (") """ (preproc_include) "#include "lpc17xx_pinsel.h"\n" (#include) "#include" (string_literal) ""lpc17xx_pinsel.h"" (") """ (string_content) "lpc17xx_pinsel.h" (") """ (preproc_include) "#include "lpc17xx_i2c.h"\n" (#include) "#include" (string_literal) ""lpc17xx_i2c.h"" (") """ (string_content) "lpc17xx_i2c.h" (") """ (preproc_def) "#define EMPR_LIB_I2C_RETRANSMISSIONS_MAX 0\n" (#define) "#define" (identifier) "EMPR_LIB_I2C_RETRANSMISSIONS_MAX" (preproc_arg) "0" (preproc_def) "#define EMPR_LIB_I2C_DATA_RATE 100000\n" (#define) "#define" (identifier) "EMPR_LIB_I2C_DATA_RATE" (preproc_arg) "100000" (declaration) "void EL_I2C_Init(void);" (primitive_type) "void" (function_declarator) "EL_I2C_Init(void)" (identifier) "EL_I2C_Init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "Status EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length);" (type_identifier) "Status" (function_declarator) "EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length)" (identifier) "EL_I2C_SendBytes" (parameter_list) "(uint8_t address, uint8_t *data, size_t data_length)" (() "(" (parameter_declaration) "uint8_t address" (primitive_type) "uint8_t" (identifier) "address" (,) "," (parameter_declaration) "uint8_t *data" (primitive_type) "uint8_t" (pointer_declarator) "*data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "size_t data_length" (primitive_type) "size_t" (identifier) "data_length" ()) ")" (;) ";" (declaration) "Status EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length);" (type_identifier) "Status" (function_declarator) "EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length)" (identifier) "EL_I2C_ReceiveBytes" (parameter_list) "(uint8_t address, uint8_t *data, size_t data_length)" (() "(" (parameter_declaration) "uint8_t address" (primitive_type) "uint8_t" (identifier) "address" (,) "," (parameter_declaration) "uint8_t *data" (primitive_type) "uint8_t" (pointer_declarator) "*data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "size_t data_length" (primitive_type) "size_t" (identifier) "data_length" ()) ")" (;) ";" (#endif) "#endif"
86
0
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 35.09, "nodes": 63, "errors": 0, "source_hash": "20e9d4de19d6c8b75720fde52375b27decdd066ff110f1c092cf837c6bebbdb4", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef EMPR_LIB_I2C_H\n#define EMPR_LIB_I2C_H\n\n#include \"empr_lib_common.h\"\n#include \"lpc17xx_pinsel.h\"\n#include \"lpc17xx_i2c.h\"\n\n#define EMPR_LIB_I2C_RETRANSMISSIONS_MAX 0\n#define EMPR_LIB_I2C_DATA_RATE 100000\n\nvoid EL_I2C_Init(void);\nStatus EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length);\nStatus EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 19, 23, 30, 46, 62], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 14, "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": "EMPR_LIB_I2C_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define EMPR_LIB_I2C_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": "EMPR_LIB_I2C_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"empr_lib_common.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": "\"empr_lib_common.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 28}}, {"id": 9, "type": "preproc_include", "text": "#include \"lpc17xx_pinsel.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": "\"lpc17xx_pinsel.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include \"lpc17xx_i2c.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": "\"lpc17xx_i2c.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 24}}, {"id": 15, "type": "preproc_def", "text": "#define EMPR_LIB_I2C_RETRANSMISSIONS_MAX 0\n", "parent": 0, "children": [16, 17, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 17, "type": "identifier", "text": "EMPR_LIB_I2C_RETRANSMISSIONS_MAX", "parent": 15, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 40}}, {"id": 18, "type": "preproc_arg", "text": "0", "parent": 15, "children": [], "start_point": {"row": 7, "column": 41}, "end_point": {"row": 7, "column": 42}}, {"id": 19, "type": "preproc_def", "text": "#define EMPR_LIB_I2C_DATA_RATE 100000\n", "parent": 0, "children": [20, 21, 22], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 21, "type": "identifier", "text": "EMPR_LIB_I2C_DATA_RATE", "parent": 19, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 30}}, {"id": 22, "type": "preproc_arg", "text": "100000", "parent": 19, "children": [], "start_point": {"row": 8, "column": 31}, "end_point": {"row": 8, "column": 37}}, {"id": 23, "type": "declaration", "text": "void EL_I2C_Init(void);", "parent": 0, "children": [24, 25], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 24, "type": "primitive_type", "text": "void", "parent": 23, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 25, "type": "function_declarator", "text": "EL_I2C_Init(void)", "parent": 23, "children": [26, 27], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 22}}, {"id": 26, "type": "identifier", "text": "EL_I2C_Init", "parent": 25, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 16}}, {"id": 27, "type": "parameter_list", "text": "(void)", "parent": 25, "children": [28], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 22}}, {"id": 28, "type": "parameter_declaration", "text": "void", "parent": 27, "children": [29], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 21}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 21}}, {"id": 30, "type": "declaration", "text": "Status EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length);", "parent": 0, "children": [31, 32], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 76}}, {"id": 31, "type": "type_identifier", "text": "Status", "parent": 30, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 32, "type": "function_declarator", "text": "EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length)", "parent": 30, "children": [33, 34], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 75}}, {"id": 33, "type": "identifier", "text": "EL_I2C_SendBytes", "parent": 32, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 23}}, {"id": 34, "type": "parameter_list", "text": "(uint8_t address, uint8_t *data, size_t data_length)", "parent": 32, "children": [35, 38, 43], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 75}}, {"id": 35, "type": "parameter_declaration", "text": "uint8_t address", "parent": 34, "children": [36, 37], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 39}}, {"id": 36, "type": "primitive_type", "text": "uint8_t", "parent": 35, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 31}}, {"id": 37, "type": "identifier", "text": "address", "parent": 35, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 39}}, {"id": 38, "type": "parameter_declaration", "text": "uint8_t *data", "parent": 34, "children": [39, 40], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 54}}, {"id": 39, "type": "primitive_type", "text": "uint8_t", "parent": 38, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 48}}, {"id": 40, "type": "pointer_declarator", "text": "*data", "parent": 38, "children": [41, 42], "start_point": {"row": 11, "column": 49}, "end_point": {"row": 11, "column": 54}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 11, "column": 49}, "end_point": {"row": 11, "column": 50}}, {"id": 42, "type": "identifier", "text": "data", "parent": 40, "children": [], "start_point": {"row": 11, "column": 50}, "end_point": {"row": 11, "column": 54}}, {"id": 43, "type": "parameter_declaration", "text": "size_t data_length", "parent": 34, "children": [44, 45], "start_point": {"row": 11, "column": 56}, "end_point": {"row": 11, "column": 74}}, {"id": 44, "type": "primitive_type", "text": "size_t", "parent": 43, "children": [], "start_point": {"row": 11, "column": 56}, "end_point": {"row": 11, "column": 62}}, {"id": 45, "type": "identifier", "text": "data_length", "parent": 43, "children": [], "start_point": {"row": 11, "column": 63}, "end_point": {"row": 11, "column": 74}}, {"id": 46, "type": "declaration", "text": "Status EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length);", "parent": 0, "children": [47, 48], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 79}}, {"id": 47, "type": "type_identifier", "text": "Status", "parent": 46, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}, {"id": 48, "type": "function_declarator", "text": "EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length)", "parent": 46, "children": [49, 50], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 78}}, {"id": 49, "type": "identifier", "text": "EL_I2C_ReceiveBytes", "parent": 48, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 26}}, {"id": 50, "type": "parameter_list", "text": "(uint8_t address, uint8_t *data, size_t data_length)", "parent": 48, "children": [51, 54, 59], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 78}}, {"id": 51, "type": "parameter_declaration", "text": "uint8_t address", "parent": 50, "children": [52, 53], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 42}}, {"id": 52, "type": "primitive_type", "text": "uint8_t", "parent": 51, "children": [], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 34}}, {"id": 53, "type": "identifier", "text": "address", "parent": 51, "children": [], "start_point": {"row": 12, "column": 35}, "end_point": {"row": 12, "column": 42}}, {"id": 54, "type": "parameter_declaration", "text": "uint8_t *data", "parent": 50, "children": [55, 56], "start_point": {"row": 12, "column": 44}, "end_point": {"row": 12, "column": 57}}, {"id": 55, "type": "primitive_type", "text": "uint8_t", "parent": 54, "children": [], "start_point": {"row": 12, "column": 44}, "end_point": {"row": 12, "column": 51}}, {"id": 56, "type": "pointer_declarator", "text": "*data", "parent": 54, "children": [57, 58], "start_point": {"row": 12, "column": 52}, "end_point": {"row": 12, "column": 57}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 12, "column": 52}, "end_point": {"row": 12, "column": 53}}, {"id": 58, "type": "identifier", "text": "data", "parent": 56, "children": [], "start_point": {"row": 12, "column": 53}, "end_point": {"row": 12, "column": 57}}, {"id": 59, "type": "parameter_declaration", "text": "size_t data_length", "parent": 50, "children": [60, 61], "start_point": {"row": 12, "column": 59}, "end_point": {"row": 12, "column": 77}}, {"id": 60, "type": "primitive_type", "text": "size_t", "parent": 59, "children": [], "start_point": {"row": 12, "column": 59}, "end_point": {"row": 12, "column": 65}}, {"id": 61, "type": "identifier", "text": "data_length", "parent": 59, "children": [], "start_point": {"row": 12, "column": 66}, "end_point": {"row": 12, "column": 77}}, {"id": 62, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}]}, "node_categories": {"declarations": {"functions": [25, 32, 48], "variables": [23, 28, 30, 35, 38, 43, 46, 51, 54, 59], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 17, 21, 26, 31, 33, 37, 42, 45, 47, 49, 53, 58, 61, 62], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "EL_I2C_Init(void)"}, {"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"empr_lib_common.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"lpc17xx_pinsel.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"lpc17xx_i2c.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef EMPR_LIB_I2C_H\n#define EMPR_LIB_I2C_H\n\n#include \"empr_lib_common.h\"\n#include \"lpc17xx_pinsel.h\"\n#include \"lpc17xx_i2c.h\"\n\n#define EMPR_LIB_I2C_RETRANSMISSIONS_MAX 0\n#define EMPR_LIB_I2C_DATA_RATE 100000\n\nvoid EL_I2C_Init(void);\nStatus EL_I2C_SendBytes(uint8_t address, uint8_t *data, size_t data_length);\nStatus EL_I2C_ReceiveBytes(uint8_t address, uint8_t *data, size_t data_length);\n\n#endif\n"}
80,319
c
/******************************************************** * Copyright (C) 2016 All rights reserved. * * Filename: section_fun.h * Author : lubing.han * Date : 2017-03-21 * Describe: * ********************************************************/ #ifndef SECTION_FUN_H #define SECTION_FUN_H #include "lane_fun.h" #include "LaneSection.h" using namespace std; namespace opendrive { vector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false); } #endif
28.44
18
(translation_unit) "/********************************************************\n* Copyright (C) 2016 All rights reserved.\n* \n* Filename: section_fun.h\n* Author : lubing.han\n* Date : 2017-03-21\n* Describe:\n*\n********************************************************/\n\n#ifndef SECTION_FUN_H\n#define SECTION_FUN_H\n\n#include "lane_fun.h"\n#include "LaneSection.h"\nusing namespace std;\n\nnamespace opendrive {\n\nvector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false);\n\n}\n\n#endif" (comment) "/********************************************************\n* Copyright (C) 2016 All rights reserved.\n* \n* Filename: section_fun.h\n* Author : lubing.han\n* Date : 2017-03-21\n* Describe:\n*\n********************************************************/" (preproc_ifdef) "#ifndef SECTION_FUN_H\n#define SECTION_FUN_H\n\n#include "lane_fun.h"\n#include "LaneSection.h"\nusing namespace std;\n\nnamespace opendrive {\n\nvector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false);\n\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "SECTION_FUN_H" (preproc_def) "#define SECTION_FUN_H\n" (#define) "#define" (identifier) "SECTION_FUN_H" (preproc_include) "#include "lane_fun.h"\n" (#include) "#include" (string_literal) ""lane_fun.h"" (") """ (string_content) "lane_fun.h" (") """ (preproc_include) "#include "LaneSection.h"\n" (#include) "#include" (string_literal) ""LaneSection.h"" (") """ (string_content) "LaneSection.h" (") """ (declaration) "using namespace std;" (type_identifier) "using" (identifier) "namespace" (ERROR) "std" (identifier) "std" (;) ";" (function_definition) "namespace opendrive {\n\nvector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false);\n\n}" (type_identifier) "namespace" (identifier) "opendrive" (compound_statement) "{\n\nvector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false);\n\n}" ({) "{" (expression_statement) "vector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false);" (comma_expression) "vector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false)" (binary_expression) "vector<pair<double" (binary_expression) "vector<pair" (identifier) "vector" (<) "<" (identifier) "pair" (<) "<" (identifier) "double" (,) "," (binary_expression) "bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false)" (identifier) "bool" (>) ">" (ERROR) ">" (>) ">" (call_expression) "get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false)" (identifier) "get_laneChanges" (argument_list) "(const LaneSection* section, int laneId, bool outer = false, bool reversed = false)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "LaneSection* section" (identifier) "LaneSection" (*) "*" (identifier) "section" (,) "," (ERROR) "int" (identifier) "int" (identifier) "laneId" (,) "," (ERROR) "bool" (identifier) "bool" (assignment_expression) "outer = false" (identifier) "outer" (=) "=" (false) "false" (,) "," (ERROR) "bool" (identifier) "bool" (assignment_expression) "reversed = false" (identifier) "reversed" (=) "=" (false) "false" ()) ")" (;) ";" (}) "}" (#endif) "#endif"
78
6
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 28.44, "nodes": 56, "errors": 0, "source_hash": "ee71d5dae3fcf9c63192467dd6751d3be402b431c4c3153ddb1fb02c7820baca", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SECTION_FUN_H\n#define SECTION_FUN_H\n\n#include \"lane_fun.h\"\n#include \"LaneSection.h\"\nusing namespace std;\n\nnamespace opendrive {\n\nvector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false);\n\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 17, 55], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 23, "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": "SECTION_FUN_H", "parent": 0, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define SECTION_FUN_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": "SECTION_FUN_H", "parent": 3, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"lane_fun.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": "string_literal", "text": "\"lane_fun.h\"", "parent": 6, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include \"LaneSection.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": "\"LaneSection.h\"", "parent": 9, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 24}}, {"id": 12, "type": "declaration", "text": "using namespace std;", "parent": 0, "children": [13, 14, 15], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 20}}, {"id": 13, "type": "type_identifier", "text": "using", "parent": 12, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 5}}, {"id": 14, "type": "identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 15}}, {"id": 15, "type": "ERROR", "text": "std", "parent": 12, "children": [16], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 19}}, {"id": 16, "type": "identifier", "text": "std", "parent": 15, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 19}}, {"id": 17, "type": "function_definition", "text": "namespace opendrive {\n\nvector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false);\n\n}", "parent": 0, "children": [18, 19], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 18, "type": "type_identifier", "text": "namespace", "parent": 17, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 9}}, {"id": 19, "type": "identifier", "text": "opendrive", "parent": 17, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 19}}, {"id": 20, "type": "comma_expression", "text": "vector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false)", "parent": 17, "children": [21, 28], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 126}}, {"id": 21, "type": "binary_expression", "text": "vector<pair<double", "parent": 20, "children": [22, 26, 27], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 18}}, {"id": 22, "type": "binary_expression", "text": "vector<pair", "parent": 21, "children": [23, 24, 25], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 11}}, {"id": 23, "type": "identifier", "text": "vector", "parent": 22, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 24, "type": "<", "text": "<", "parent": 22, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 7}}, {"id": 25, "type": "identifier", "text": "pair", "parent": 22, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 11}}, {"id": 26, "type": "<", "text": "<", "parent": 21, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 12}}, {"id": 27, "type": "identifier", "text": "double", "parent": 21, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 18}}, {"id": 28, "type": "binary_expression", "text": "bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false)", "parent": 20, "children": [29, 30, 31, 33], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 126}}, {"id": 29, "type": "identifier", "text": "bool", "parent": 28, "children": [], "start_point": {"row": 19, "column": 20}, "end_point": {"row": 19, "column": 24}}, {"id": 30, "type": ">", "text": ">", "parent": 28, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 25}}, {"id": 31, "type": "ERROR", "text": ">", "parent": 28, "children": [32], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 32, "type": ">", "text": ">", "parent": 31, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 27}}, {"id": 33, "type": "call_expression", "text": "get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false)", "parent": 28, "children": [34, 35], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 126}}, {"id": 34, "type": "identifier", "text": "get_laneChanges", "parent": 33, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 43}}, {"id": 35, "type": "argument_list", "text": "(const LaneSection* section, int laneId, bool outer = false, bool reversed = false)", "parent": 33, "children": [36, 40, 42, 43, 45, 49, 51], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 126}}, {"id": 36, "type": "binary_expression", "text": "LaneSection* section", "parent": 35, "children": [37, 38, 39], "start_point": {"row": 19, "column": 50}, "end_point": {"row": 19, "column": 70}}, {"id": 37, "type": "identifier", "text": "LaneSection", "parent": 36, "children": [], "start_point": {"row": 19, "column": 50}, "end_point": {"row": 19, "column": 61}}, {"id": 38, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 19, "column": 61}, "end_point": {"row": 19, "column": 62}}, {"id": 39, "type": "identifier", "text": "section", "parent": 36, "children": [], "start_point": {"row": 19, "column": 63}, "end_point": {"row": 19, "column": 70}}, {"id": 40, "type": "ERROR", "text": "int", "parent": 35, "children": [41], "start_point": {"row": 19, "column": 72}, "end_point": {"row": 19, "column": 75}}, {"id": 41, "type": "identifier", "text": "int", "parent": 40, "children": [], "start_point": {"row": 19, "column": 72}, "end_point": {"row": 19, "column": 75}}, {"id": 42, "type": "identifier", "text": "laneId", "parent": 35, "children": [], "start_point": {"row": 19, "column": 76}, "end_point": {"row": 19, "column": 82}}, {"id": 43, "type": "ERROR", "text": "bool", "parent": 35, "children": [44], "start_point": {"row": 19, "column": 84}, "end_point": {"row": 19, "column": 88}}, {"id": 44, "type": "identifier", "text": "bool", "parent": 43, "children": [], "start_point": {"row": 19, "column": 84}, "end_point": {"row": 19, "column": 88}}, {"id": 45, "type": "assignment_expression", "text": "outer = false", "parent": 35, "children": [46, 47, 48], "start_point": {"row": 19, "column": 89}, "end_point": {"row": 19, "column": 102}}, {"id": 46, "type": "identifier", "text": "outer", "parent": 45, "children": [], "start_point": {"row": 19, "column": 89}, "end_point": {"row": 19, "column": 94}}, {"id": 47, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 19, "column": 95}, "end_point": {"row": 19, "column": 96}}, {"id": 48, "type": "false", "text": "false", "parent": 45, "children": [], "start_point": {"row": 19, "column": 97}, "end_point": {"row": 19, "column": 102}}, {"id": 49, "type": "ERROR", "text": "bool", "parent": 35, "children": [50], "start_point": {"row": 19, "column": 104}, "end_point": {"row": 19, "column": 108}}, {"id": 50, "type": "identifier", "text": "bool", "parent": 49, "children": [], "start_point": {"row": 19, "column": 104}, "end_point": {"row": 19, "column": 108}}, {"id": 51, "type": "assignment_expression", "text": "reversed = false", "parent": 35, "children": [52, 53, 54], "start_point": {"row": 19, "column": 109}, "end_point": {"row": 19, "column": 125}}, {"id": 52, "type": "identifier", "text": "reversed", "parent": 51, "children": [], "start_point": {"row": 19, "column": 109}, "end_point": {"row": 19, "column": 117}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 19, "column": 118}, "end_point": {"row": 19, "column": 119}}, {"id": 54, "type": "false", "text": "false", "parent": 51, "children": [], "start_point": {"row": 19, "column": 120}, "end_point": {"row": 19, "column": 125}}, {"id": 55, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}]}, "node_categories": {"declarations": {"functions": [17], "variables": [12], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [20, 21, 22, 28, 33, 36], "assignments": [45, 51], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 18, 19, 23, 25, 27, 29, 34, 37, 39, 41, 42, 44, 46, 50, 52, 55], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 17, "universal_type": "function", "name": "laneId,", "text_snippet": "namespace opendrive {\n\nvector<pair<double, bool> > get_laneChanges(const LaneSection* section, int l"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"lane_fun.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"LaneSection.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/********************************************************\n* Copyright (C) 2016 All rights reserved.\n* \n* Filename: section_fun.h\n* Author : lubing.han\n* Date : 2017-03-21\n* Describe:\n*\n********************************************************/\n\n#ifndef SECTION_FUN_H\n#define SECTION_FUN_H\n\n#include \"lane_fun.h\"\n#include \"LaneSection.h\"\nusing namespace std;\n\nnamespace opendrive {\n\nvector<pair<double, bool> > get_laneChanges(const LaneSection* section, int laneId, bool outer = false, bool reversed = false);\n\n}\n\n#endif"}
80,320
c
#pragma once //---------------------------------------------------------------------------------- // //---------------------------------------------------------------------------------- #include "../../Graphics/Resource/asd.Texture2D.h" #include <Math/asd.RectF.h> #include "asd.CoreChip2D.h" #include "../../ObjectSystem/2D/asd.Culling2D.h" #include "asd.TransformInfo2D.h" //---------------------------------------------------------------------------------- // //---------------------------------------------------------------------------------- namespace asd { class CoreMapObject2D_Imp; //---------------------------------------------------------------------------------- // //---------------------------------------------------------------------------------- class CoreChip2D_Imp : public CoreChip2D , public ReferenceObject { private: Graphics* m_graphics = nullptr; CoreMapObject2D_Imp* mapObject2D = nullptr; Texture2D* m_texture = nullptr; RectF m_src; Color m_color; bool m_turnLR; bool m_turnUL; AlphaBlendMode m_alphablend; TransformInfo2D m_transformInfo; Vector2DF m_centerPosition; int m_drawingPriority; TextureFilterType m_textureFilterType; #if __CULLING_2D__ culling2d::Object *cullingObject; bool alreadyCullingUpdated; #endif Texture2D* GetTexture_() const; void SetTexture_(Texture2D* texture); void SetCullingUpdate(); public: CoreMapObject2D_Imp* GetMapObject2D() const; void SetMapObject2D(CoreMapObject2D_Imp* mapObject); #if __CULLING_2D__ bool GetAlreadyCullingUpdated() const; void SetAlreadyCullingUpdated(bool cullingUpdated); #endif public: #if !SWIG void SetTexture(std::shared_ptr<Texture2D> texture); std::shared_ptr<Texture2D> GetTexture(); TransformInfo2D GetTransformInfo2D() const; #endif void SetTexture(Texture2D* texture); RectF GetSrc() const override; void SetSrc(RectF src) override; Vector2DF GetPosition() const override; void SetPosition(Vector2DF position) override; float GetAngle() const override; void SetAngle(float angle) override; Vector2DF GetScale() const override; void SetScale(Vector2DF scale) override; Vector2DF GetCenterPosition() const override; void SetCenterPosition(Vector2DF position) override; Color GetColor() const override; void SetColor(Color color) override; bool GetTurnLR() const override; void SetTurnLR(bool turnLR) override; bool GetTurnUL() const override; void SetTurnUL(bool turnUL) override; int GetDrawingPriority() const override; void SetDrawingPriority(int priority) override; AlphaBlendMode GetAlphaBlendMode() const override; void SetAlphaBlendMode(AlphaBlendMode alphaBlend) override; void SetTextureFilterType(TextureFilterType textureFilterType) override; TextureFilterType GetTextureFilterType() const override; CoreChip2D_Imp(Graphics* graphics); virtual ~CoreChip2D_Imp(); #if __CULLING_2D__ void SetCullingObject(culling2d::Object *cullingObj); culling2d::Object* GetCullingObject() const; culling2d::Circle GetBoundingCircle(); #endif #if !SWIG public: virtual int GetRef() { return ReferenceObject::GetRef(); } virtual int AddRef() { return ReferenceObject::AddRef(); } virtual int Release() { return ReferenceObject::Release(); } #endif }; //---------------------------------------------------------------------------------- // //---------------------------------------------------------------------------------- }
34.9
96
(translation_unit) "ragma once\n\n//----------------------------------------------------------------------------------\n//\n//----------------------------------------------------------------------------------\n#include "../../Graphics/Resource/asd.Texture2D.h"\n#include <Math/asd.RectF.h>\n#include "asd.CoreChip2D.h"\n#include "../../ObjectSystem/2D/asd.Culling2D.h"\n#include "asd.TransformInfo2D.h"\n\n//----------------------------------------------------------------------------------\n//\n//----------------------------------------------------------------------------------\nnamespace asd {\n class CoreMapObject2D_Imp;\n //----------------------------------------------------------------------------------\n //\n //----------------------------------------------------------------------------------\n class CoreChip2D_Imp\n : public CoreChip2D\n , public ReferenceObject\n {\n private:\n\n Graphics* m_graphics = nullptr;\n CoreMapObject2D_Imp* mapObject2D = nullptr;\n Texture2D* m_texture = nullptr;\n\n RectF m_src;\n Color m_color;\n bool m_turnLR;\n bool m_turnUL;\n AlphaBlendMode m_alphablend;\n TransformInfo2D m_transformInfo;\n Vector2DF m_centerPosition;\n int m_drawingPriority;\n TextureFilterType m_textureFilterType;\n\n#if __CULLING_2D__\n culling2d::Object *cullingObject;\n bool alreadyCullingUpdated;\n#endif\n \n\n Texture2D* GetTexture_() const;\n void SetTexture_(Texture2D* texture);\n\n void SetCullingUpdate();\n public:\n\n CoreMapObject2D_Imp* GetMapObject2D() const;\n void SetMapObject2D(CoreMapObject2D_Imp* mapObject);\n\n#if __CULLING_2D__\n bool GetAlreadyCullingUpdated() const;\n void SetAlreadyCullingUpdated(bool cullingUpdated);\n#endif\n\n public:\n\n#if !SWIG\n void SetTexture(std::shared_ptr<Texture2D> texture);\n std::shared_ptr<Texture2D> GetTexture();\n TransformInfo2D GetTransformInfo2D() const;\n#endif\n void SetTexture(Texture2D* texture);\n\n RectF GetSrc() const override;\n void SetSrc(RectF src) override;\n\n Vector2DF GetPosition() const override;\n void SetPosition(Vector2DF position) override;\n\n float GetAngle() const override;\n void SetAngle(float angle) override;\n\n Vector2DF GetScale() const override;\n void SetScale(Vector2DF scale) override;\n\n Vector2DF GetCenterPosition() const override;\n void SetCenterPosition(Vector2DF position) override;\n\n Color GetColor() const override;\n void SetColor(Color color) override;\n\n bool GetTurnLR() const override;\n void SetTurnLR(bool turnLR) override;\n\n bool GetTurnUL() const override;\n void SetTurnUL(bool turnUL) override;\n\n int GetDrawingPriority() const override;\n void SetDrawingPriority(int priority) override;\n\n AlphaBlendMode GetAlphaBlendMode() const override;\n void SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n void SetTextureFilterType(TextureFilterType textureFilterType) override;\n TextureFilterType GetTextureFilterType() const override;\n\n CoreChip2D_Imp(Graphics* graphics);\n virtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n void SetCullingObject(culling2d::Object *cullingObj);\n culling2d::Object* GetCullingObject() const;\n\n culling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n public:\n virtual int GetRef() { return ReferenceObject::GetRef(); }\n virtual int AddRef() { return ReferenceObject::AddRef(); }\n virtual int Release() { return ReferenceObject::Release(); }\n#endif\n };\n\n //----------------------------------------------------------------------------------\n //\n //----------------------------------------------------------------------------------\n}" (preproc_call) "ragma once\n\n/" (preproc_directive) "ragma o" (preproc_arg) "ce\n\n" (comment) "----------------------------------------------------------------------------------\n/" (comment) "\n/" (comment) "----------------------------------------------------------------------------------\n#" (preproc_include) "nclude "../../Graphics/Resource/asd.Texture2D.h"\n#i" (#include) "nclude "" (string_literal) "./../Graphics/Resource/asd.Texture2D.h"\n#" (") "." (string_content) "/../Graphics/Resource/asd.Texture2D.h"\n" (") "#" (preproc_include) "nclude <Math/asd.RectF.h>\n#i" (#include) "nclude <" (system_lib_string) "ath/asd.RectF.h>\n#" (preproc_include) "nclude "asd.CoreChip2D.h"\n#i" (#include) "nclude "" (string_literal) "sd.CoreChip2D.h"\n#" (") "s" (string_content) "d.CoreChip2D.h"\n" (") "#" (preproc_include) "nclude "../../ObjectSystem/2D/asd.Culling2D.h"\n#i" (#include) "nclude "" (string_literal) "./../ObjectSystem/2D/asd.Culling2D.h"\n#" (") "." (string_content) "/../ObjectSystem/2D/asd.Culling2D.h"\n" (") "#" (preproc_include) "nclude "asd.TransformInfo2D.h"\n\n/" (#include) "nclude "" (string_literal) "sd.TransformInfo2D.h"\n\n" (") "s" (string_content) "d.TransformInfo2D.h"\n" (") "\n" (comment) "----------------------------------------------------------------------------------\n/" (comment) "\n/" (comment) "----------------------------------------------------------------------------------\nn" (function_definition) "mespace asd {\n class CoreMapObject2D_Imp;\n //----------------------------------------------------------------------------------\n //\n //----------------------------------------------------------------------------------\n class CoreChip2D_Imp\n : public CoreChip2D\n , public ReferenceObject\n {\n private:\n\n Graphics* m_graphics = nullptr;\n CoreMapObject2D_Imp* mapObject2D = nullptr;\n Texture2D* m_texture = nullptr;\n\n RectF m_src;\n Color m_color;\n bool m_turnLR;\n bool m_turnUL;\n AlphaBlendMode m_alphablend;\n TransformInfo2D m_transformInfo;\n Vector2DF m_centerPosition;\n int m_drawingPriority;\n TextureFilterType m_textureFilterType;\n\n#if __CULLING_2D__\n culling2d::Object *cullingObject;\n bool alreadyCullingUpdated;\n#endif\n \n\n Texture2D* GetTexture_() const;\n void SetTexture_(Texture2D* texture);\n\n void SetCullingUpdate();\n public:\n\n CoreMapObject2D_Imp* GetMapObject2D() const;\n void SetMapObject2D(CoreMapObject2D_Imp* mapObject);\n\n#if __CULLING_2D__\n bool GetAlreadyCullingUpdated() const;\n void SetAlreadyCullingUpdated(bool cullingUpdated);\n#endif\n\n public:\n\n#if !SWIG\n void SetTexture(std::shared_ptr<Texture2D> texture);\n std::shared_ptr<Texture2D> GetTexture();\n TransformInfo2D GetTransformInfo2D() const;\n#endif\n void SetTexture(Texture2D* texture);\n\n RectF GetSrc() const override;\n void SetSrc(RectF src) override;\n\n Vector2DF GetPosition() const override;\n void SetPosition(Vector2DF position) override;\n\n float GetAngle() const override;\n void SetAngle(float angle) override;\n\n Vector2DF GetScale() const override;\n void SetScale(Vector2DF scale) override;\n\n Vector2DF GetCenterPosition() const override;\n void SetCenterPosition(Vector2DF position) override;\n\n Color GetColor() const override;\n void SetColor(Color color) override;\n\n bool GetTurnLR() const override;\n void SetTurnLR(bool turnLR) override;\n\n bool GetTurnUL() const override;\n void SetTurnUL(bool turnUL) override;\n\n int GetDrawingPriority() const override;\n void SetDrawingPriority(int priority) override;\n\n AlphaBlendMode GetAlphaBlendMode() const override;\n void SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n void SetTextureFilterType(TextureFilterType textureFilterType) override;\n TextureFilterType GetTextureFilterType() const override;\n\n CoreChip2D_Imp(Graphics* graphics);\n virtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n void SetCullingObject(culling2d::Object *cullingObj);\n culling2d::Object* GetCullingObject() const;\n\n culling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n public:\n virtual int GetRef() { return ReferenceObject::GetRef(); }\n virtual int AddRef() { return ReferenceObject::AddRef(); }\n virtual int Release() { return ReferenceObject::Release(); }\n#endif\n };\n\n //----------------------------------------------------------------------------------\n //\n //----------------------------------------------------------------------------------\n}" (type_identifier) "mespace a" (identifier) "d {" (compound_statement) " class CoreMapObject2D_Imp;\n //----------------------------------------------------------------------------------\n //\n //----------------------------------------------------------------------------------\n class CoreChip2D_Imp\n : public CoreChip2D\n , public ReferenceObject\n {\n private:\n\n Graphics* m_graphics = nullptr;\n CoreMapObject2D_Imp* mapObject2D = nullptr;\n Texture2D* m_texture = nullptr;\n\n RectF m_src;\n Color m_color;\n bool m_turnLR;\n bool m_turnUL;\n AlphaBlendMode m_alphablend;\n TransformInfo2D m_transformInfo;\n Vector2DF m_centerPosition;\n int m_drawingPriority;\n TextureFilterType m_textureFilterType;\n\n#if __CULLING_2D__\n culling2d::Object *cullingObject;\n bool alreadyCullingUpdated;\n#endif\n \n\n Texture2D* GetTexture_() const;\n void SetTexture_(Texture2D* texture);\n\n void SetCullingUpdate();\n public:\n\n CoreMapObject2D_Imp* GetMapObject2D() const;\n void SetMapObject2D(CoreMapObject2D_Imp* mapObject);\n\n#if __CULLING_2D__\n bool GetAlreadyCullingUpdated() const;\n void SetAlreadyCullingUpdated(bool cullingUpdated);\n#endif\n\n public:\n\n#if !SWIG\n void SetTexture(std::shared_ptr<Texture2D> texture);\n std::shared_ptr<Texture2D> GetTexture();\n TransformInfo2D GetTransformInfo2D() const;\n#endif\n void SetTexture(Texture2D* texture);\n\n RectF GetSrc() const override;\n void SetSrc(RectF src) override;\n\n Vector2DF GetPosition() const override;\n void SetPosition(Vector2DF position) override;\n\n float GetAngle() const override;\n void SetAngle(float angle) override;\n\n Vector2DF GetScale() const override;\n void SetScale(Vector2DF scale) override;\n\n Vector2DF GetCenterPosition() const override;\n void SetCenterPosition(Vector2DF position) override;\n\n Color GetColor() const override;\n void SetColor(Color color) override;\n\n bool GetTurnLR() const override;\n void SetTurnLR(bool turnLR) override;\n\n bool GetTurnUL() const override;\n void SetTurnUL(bool turnUL) override;\n\n int GetDrawingPriority() const override;\n void SetDrawingPriority(int priority) override;\n\n AlphaBlendMode GetAlphaBlendMode() const override;\n void SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n void SetTextureFilterType(TextureFilterType textureFilterType) override;\n TextureFilterType GetTextureFilterType() const override;\n\n CoreChip2D_Imp(Graphics* graphics);\n virtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n void SetCullingObject(culling2d::Object *cullingObj);\n culling2d::Object* GetCullingObject() const;\n\n culling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n public:\n virtual int GetRef() { return ReferenceObject::GetRef(); }\n virtual int AddRef() { return ReferenceObject::AddRef(); }\n virtual int Release() { return ReferenceObject::Release(); }\n#endif\n };\n\n //----------------------------------------------------------------------------------\n //\n //----------------------------------------------------------------------------------\n}" ({) " " (declaration) "ass CoreMapObject2D_Imp;\n " (type_identifier) "ass C" (identifier) "reMapObject2D_Imp;\n" (;) " " (comment) "----------------------------------------------------------------------------------\n " (comment) "\n " (comment) "----------------------------------------------------------------------------------\n " (ERROR) "ass CoreChip2D_Imp\n : public CoreChip2D\n , public ReferenceObject\n " (type_identifier) "ass C" (identifier) "reChip2D_Imp\n " (ERROR) "public CoreChip2D\n " (:) "p" (identifier) "blic C" (identifier) "reChip2D\n " (,) "p" (identifier) "blic R" (identifier) "ferenceObject\n " (compound_statement) " private:\n\n Graphics* m_graphics = nullptr;\n CoreMapObject2D_Imp* mapObject2D = nullptr;\n Texture2D* m_texture = nullptr;\n\n RectF m_src;\n Color m_color;\n bool m_turnLR;\n bool m_turnUL;\n AlphaBlendMode m_alphablend;\n TransformInfo2D m_transformInfo;\n Vector2DF m_centerPosition;\n int m_drawingPriority;\n TextureFilterType m_textureFilterType;\n\n#if __CULLING_2D__\n culling2d::Object *cullingObject;\n bool alreadyCullingUpdated;\n#endif\n \n\n Texture2D* GetTexture_() const;\n void SetTexture_(Texture2D* texture);\n\n void SetCullingUpdate();\n public:\n\n CoreMapObject2D_Imp* GetMapObject2D() const;\n void SetMapObject2D(CoreMapObject2D_Imp* mapObject);\n\n#if __CULLING_2D__\n bool GetAlreadyCullingUpdated() const;\n void SetAlreadyCullingUpdated(bool cullingUpdated);\n#endif\n\n public:\n\n#if !SWIG\n void SetTexture(std::shared_ptr<Texture2D> texture);\n std::shared_ptr<Texture2D> GetTexture();\n TransformInfo2D GetTransformInfo2D() const;\n#endif\n void SetTexture(Texture2D* texture);\n\n RectF GetSrc() const override;\n void SetSrc(RectF src) override;\n\n Vector2DF GetPosition() const override;\n void SetPosition(Vector2DF position) override;\n\n float GetAngle() const override;\n void SetAngle(float angle) override;\n\n Vector2DF GetScale() const override;\n void SetScale(Vector2DF scale) override;\n\n Vector2DF GetCenterPosition() const override;\n void SetCenterPosition(Vector2DF position) override;\n\n Color GetColor() const override;\n void SetColor(Color color) override;\n\n bool GetTurnLR() const override;\n void SetTurnLR(bool turnLR) override;\n\n bool GetTurnUL() const override;\n void SetTurnUL(bool turnUL) override;\n\n int GetDrawingPriority() const override;\n void SetDrawingPriority(int priority) override;\n\n AlphaBlendMode GetAlphaBlendMode() const override;\n void SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n void SetTextureFilterType(TextureFilterType textureFilterType) override;\n TextureFilterType GetTextureFilterType() const override;\n\n CoreChip2D_Imp(Graphics* graphics);\n virtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n void SetCullingObject(culling2d::Object *cullingObj);\n culling2d::Object* GetCullingObject() const;\n\n culling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n public:\n virtual int GetRef() { return ReferenceObject::GetRef(); }\n virtual int AddRef() { return ReferenceObject::AddRef(); }\n virtual int Release() { return ReferenceObject::Release(); }\n#endif\n };\n" ({) " " (labeled_statement) "ivate:\n\n Graphics* m_graphics = nullptr;\n " (statement_identifier) "ivate:\n" (:) "\n" (declaration) "aphics* m_graphics = nullptr;\n " (type_identifier) "aphics* " (init_declarator) "m_graphics = nullptr;\n" (pointer_declarator) "m_graphics =" (*) "m" (identifier) "graphics =" (=) "n" (null) "llptr;\n" (nullptr) "llptr;\n" (;) " " (declaration) "reMapObject2D_Imp* mapObject2D = nullptr;\n " (type_identifier) "reMapObject2D_Imp* " (init_declarator) "mapObject2D = nullptr;\n" (pointer_declarator) "mapObject2D =" (*) "m" (identifier) "pObject2D =" (=) "n" (null) "llptr;\n" (nullptr) "llptr;\n" (;) " " (declaration) "xture2D* m_texture = nullptr;\n\n" (type_identifier) "xture2D* " (init_declarator) "m_texture = nullptr;\n" (pointer_declarator) "m_texture =" (*) "m" (identifier) "texture =" (=) "n" (null) "llptr;\n" (nullptr) "llptr;\n" (;) "\n" (declaration) "ctF m_src;\n " (type_identifier) "ctF m" (identifier) "src;\n" (;) " " (declaration) "lor m_color;\n " (type_identifier) "lor m" (identifier) "color;\n" (;) " " (declaration) "ol m_turnLR;\n " (primitive_type) "ol m" (identifier) "turnLR;\n" (;) " " (declaration) "ol m_turnUL;\n " (primitive_type) "ol m" (identifier) "turnUL;\n" (;) " " (declaration) "phaBlendMode m_alphablend;\n " (type_identifier) "phaBlendMode m" (identifier) "alphablend;\n" (;) " " (declaration) "ansformInfo2D m_transformInfo;\n " (type_identifier) "ansformInfo2D m" (identifier) "transformInfo;\n" (;) " " (declaration) "ctor2DF m_centerPosition;\n " (type_identifier) "ctor2DF m" (identifier) "centerPosition;\n" (;) " " (declaration) "t m_drawingPriority;\n " (primitive_type) "t m" (identifier) "drawingPriority;\n" (;) " " (declaration) "xtureFilterType m_textureFilterType;\n\n" (type_identifier) "xtureFilterType m" (identifier) "textureFilterType;\n" (;) "\n" (preproc_if) "f __CULLING_2D__\n culling2d::Object *cullingObject;\n bool alreadyCullingUpdated;\n#endif\n " (#if) "f _" (identifier) "CULLING_2D__\n " ( ) " " (labeled_statement) "lling2d::Object *cullingObject;\n " (statement_identifier) "lling2d::" (:) "O" (ERROR) "b" (:) "b" (declaration) "ject *cullingObject;\n " (type_identifier) "ject *" (pointer_declarator) "ullingObject;\n" (*) "u" (identifier) "llingObject;\n" (;) " " (declaration) "ol alreadyCullingUpdated;\n#" (primitive_type) "ol a" (identifier) "readyCullingUpdated;\n" (;) "#" (#endif) "ndif\n " (declaration) "xture2D* GetTexture_() const;\n " (type_identifier) "xture2D* " (pointer_declarator) "GetTexture_() const;\n" (*) "G" (function_declarator) "tTexture_() const;\n" (identifier) "tTexture_()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst;\n" (;) " " (declaration) "id SetTexture_(Texture2D* texture);\n\n" (primitive_type) "id S" (function_declarator) "tTexture_(Texture2D* texture);\n" (identifier) "tTexture_(T" (parameter_list) "exture2D* texture);\n" (() "e" (parameter_declaration) "xture2D* texture);" (type_identifier) "xture2D* " (pointer_declarator) "texture);" (*) "t" (identifier) "xture);" ()) "\n" (;) "\n" (declaration) "id SetCullingUpdate();\n " (primitive_type) "id S" (function_declarator) "tCullingUpdate();\n" (identifier) "tCullingUpdate()" (parameter_list) ";\n" (() ";" ()) "\n" (;) " " (labeled_statement) "blic:\n\n CoreMapObject2D_Imp* GetMapObject2D() const;\n " (statement_identifier) "blic:\n" (:) "\n" (declaration) "reMapObject2D_Imp* GetMapObject2D() const;\n " (type_identifier) "reMapObject2D_Imp* " (pointer_declarator) "GetMapObject2D() const;\n" (*) "G" (function_declarator) "tMapObject2D() const;\n" (identifier) "tMapObject2D()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst;\n" (;) " " (declaration) "id SetMapObject2D(CoreMapObject2D_Imp* mapObject);\n\n" (primitive_type) "id S" (function_declarator) "tMapObject2D(CoreMapObject2D_Imp* mapObject);\n" (identifier) "tMapObject2D(C" (parameter_list) "oreMapObject2D_Imp* mapObject);\n" (() "o" (parameter_declaration) "reMapObject2D_Imp* mapObject);" (type_identifier) "reMapObject2D_Imp* " (pointer_declarator) "mapObject);" (*) "m" (identifier) "pObject);" ()) "\n" (;) "\n" (preproc_if) "f __CULLING_2D__\n bool GetAlreadyCullingUpdated() const;\n void SetAlreadyCullingUpdated(bool cullingUpdated);\n#endif\n\n" (#if) "f _" (identifier) "CULLING_2D__\n " ( ) " " (ERROR) "ol GetAlreadyCullingUpdated() const;\n void SetAlreadyCullingUpdated(bool cullingUpdated);\n#" (primitive_type) "ol G" (function_declarator) "tAlreadyCullingUpdated() c" (identifier) "tAlreadyCullingUpdated()" (parameter_list) " c" (() " " ()) "c" (declaration) "nst;\n void SetAlreadyCullingUpdated(bool cullingUpdated);\n#" (type_qualifier) "nst;\n" (const) "nst;\n" (ERROR) " " (;) " " (primitive_type) "id S" (function_declarator) "tAlreadyCullingUpdated(bool cullingUpdated);\n" (identifier) "tAlreadyCullingUpdated(b" (parameter_list) "ool cullingUpdated);\n" (() "o" (parameter_declaration) "ol cullingUpdated);" (primitive_type) "ol c" (identifier) "llingUpdated);" ()) "\n" (;) "#" (#endif) "ndif\n\n" (labeled_statement) "blic:\n\n" (statement_identifier) "blic:\n" (:) "\n" (expression_statement) "" (;) "" (preproc_if) "f !SWIG\n void SetTexture(std::shared_ptr<Texture2D> texture);\n std::shared_ptr<Texture2D> GetTexture();\n TransformInfo2D GetTransformInfo2D() const;\n#endif\n void SetTexture(Texture2D* texture);\n\n RectF GetSrc() const override;\n void SetSrc(RectF src) override;\n\n Vector2DF GetPosition() const override;\n void SetPosition(Vector2DF position) override;\n\n float GetAngle() const override;\n void SetAngle(float angle) override;\n\n Vector2DF GetScale() const override;\n void SetScale(Vector2DF scale) override;\n\n Vector2DF GetCenterPosition() const override;\n void SetCenterPosition(Vector2DF position) override;\n\n Color GetColor() const override;\n void SetColor(Color color) override;\n\n bool GetTurnLR() const override;\n void SetTurnLR(bool turnLR) override;\n\n bool GetTurnUL() const override;\n void SetTurnUL(bool turnUL) override;\n\n int GetDrawingPriority() const override;\n void SetDrawingPriority(int priority) override;\n\n AlphaBlendMode GetAlphaBlendMode() const override;\n void SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n void SetTextureFilterType(TextureFilterType textureFilterType) override;\n TextureFilterType GetTextureFilterType() const override;\n\n CoreChip2D_Imp(Graphics* graphics);\n virtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n void SetCullingObject(culling2d::Object *cullingObj);\n culling2d::Object* GetCullingObject() const;\n\n culling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n public:\n virtual int GetRef() { return ReferenceObject::GetRef(); }\n virtual int AddRef() { return ReferenceObject::AddRef(); }\n virtual int Release() { return ReferenceObject::Release(); }\n#endif\n " (#if) "f !" (unary_expression) "WIG\n " (!) "W" (identifier) "IG\n " ( ) " " (declaration) "id SetTexture(std::shared_ptr<Texture2D> texture);\n " (primitive_type) "id S" (function_declarator) "tTexture(std::shared_ptr<Texture2D> texture);\n" (identifier) "tTexture(s" (parameter_list) "td::shared_ptr<Texture2D> texture);\n" (() "t" (parameter_declaration) "d::shared_ptr<Texture2D> texture);" (type_identifier) "d::" (ERROR) "shared_ptr<Texture2D> t" (:) "s" (:) "h" (identifier) "ared_ptr<T" (<) "e" (identifier) "xture2D> " (>) "t" (identifier) "xture);" ()) "\n" (;) " " (labeled_statement) "d::shared_ptr<Texture2D> GetTexture();\n " (statement_identifier) "d::" (:) "s" (ERROR) "h" (:) "h" (expression_statement) "ared_ptr<Texture2D> GetTexture();\n " (binary_expression) "ared_ptr<Texture2D> GetTexture();\n" (binary_expression) "ared_ptr<Texture2D> " (identifier) "ared_ptr<T" (<) "e" (identifier) "xture2D> " (>) "G" (call_expression) "tTexture();\n" (identifier) "tTexture()" (argument_list) ";\n" (() ";" ()) "\n" (;) " " (function_definition) "ansformInfo2D GetTransformInfo2D() const;\n#endif\n void SetTexture(Texture2D* texture);\n\n RectF GetSrc() const override;\n void SetSrc(RectF src) override;\n\n Vector2DF GetPosition() const override;\n void SetPosition(Vector2DF position) override;\n\n float GetAngle() const override;\n void SetAngle(float angle) override;\n\n Vector2DF GetScale() const override;\n void SetScale(Vector2DF scale) override;\n\n Vector2DF GetCenterPosition() const override;\n void SetCenterPosition(Vector2DF position) override;\n\n Color GetColor() const override;\n void SetColor(Color color) override;\n\n bool GetTurnLR() const override;\n void SetTurnLR(bool turnLR) override;\n\n bool GetTurnUL() const override;\n void SetTurnUL(bool turnUL) override;\n\n int GetDrawingPriority() const override;\n void SetDrawingPriority(int priority) override;\n\n AlphaBlendMode GetAlphaBlendMode() const override;\n void SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n void SetTextureFilterType(TextureFilterType textureFilterType) override;\n TextureFilterType GetTextureFilterType() const override;\n\n CoreChip2D_Imp(Graphics* graphics);\n virtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n void SetCullingObject(culling2d::Object *cullingObj);\n culling2d::Object* GetCullingObject() const;\n\n culling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n public:\n virtual int GetRef() { return ReferenceObject::GetRef(); }\n " (type_identifier) "ansformInfo2D G" (function_declarator) "tTransformInfo2D() c" (identifier) "tTransformInfo2D()" (parameter_list) " c" (() " " ()) "c" (declaration) "nst;\n#endif\n void SetTexture(Texture2D* texture);\n\n" (type_qualifier) "nst;\n" (const) "nst;\n" (ERROR) "#endif\n " (;) "#" (#endif) "ndif\n " (primitive_type) "id S" (function_declarator) "tTexture(Texture2D* texture);\n" (identifier) "tTexture(T" (parameter_list) "exture2D* texture);\n" (() "e" (parameter_declaration) "xture2D* texture);" (type_identifier) "xture2D* " (pointer_declarator) "texture);" (*) "t" (identifier) "xture);" ()) "\n" (;) "\n" (ERROR) "ctF GetSrc() const override;\n void SetSrc(RectF src) override;\n\n Vector2DF GetPosition() const override;\n void SetPosition(Vector2DF position) override;\n\n float GetAngle() const override;\n void SetAngle(float angle) override;\n\n Vector2DF GetScale() const override;\n void SetScale(Vector2DF scale) override;\n\n Vector2DF GetCenterPosition() const override;\n void SetCenterPosition(Vector2DF position) override;\n\n Color GetColor() const override;\n void SetColor(Color color) override;\n\n bool GetTurnLR() const override;\n void SetTurnLR(bool turnLR) override;\n\n bool GetTurnUL() const override;\n void SetTurnUL(bool turnUL) override;\n\n int GetDrawingPriority() const override;\n void SetDrawingPriority(int priority) override;\n\n AlphaBlendMode GetAlphaBlendMode() const override;\n void SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n" (type_identifier) "ctF G" (function_declarator) "tSrc() const override;\n" (identifier) "tSrc()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (ERROR) "tSrc(RectF src) override;\n\n Vector2DF G" (function_declarator) "tSrc(RectF src) override;\n" (identifier) "tSrc(R" (parameter_list) "ectF src) o" (() "e" (parameter_declaration) "ctF src) " (type_identifier) "ctF s" (identifier) "c) " ()) "o" (identifier) "erride;\n" (;) "\n" (identifier) "ctor2DF G" (function_declarator) "tPosition() const override;\n" (identifier) "tPosition()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (function_declarator) "tPosition(Vector2DF position) override;\n" (identifier) "tPosition(V" (parameter_list) "ector2DF position) o" (() "e" (parameter_declaration) "ctor2DF position) " (type_identifier) "ctor2DF p" (identifier) "sition) " ()) "o" (identifier) "erride;\n" (;) "\n" (primitive_type) "oat G" (function_declarator) "tAngle() const override;\n" (identifier) "tAngle()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (ERROR) "tAngle(float angle) override;\n\n Vector2DF G" (function_declarator) "tAngle(float angle) override;\n" (identifier) "tAngle(f" (parameter_list) "loat angle) o" (() "l" (parameter_declaration) "oat angle) " (primitive_type) "oat a" (identifier) "gle) " ()) "o" (identifier) "erride;\n" (;) "\n" (identifier) "ctor2DF G" (function_declarator) "tScale() const override;\n" (identifier) "tScale()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (ERROR) "tScale(Vector2DF scale) override;\n\n Vector2DF G" (function_declarator) "tScale(Vector2DF scale) override;\n" (identifier) "tScale(V" (parameter_list) "ector2DF scale) o" (() "e" (parameter_declaration) "ctor2DF scale) " (type_identifier) "ctor2DF s" (identifier) "ale) " ()) "o" (identifier) "erride;\n" (;) "\n" (identifier) "ctor2DF G" (function_declarator) "tCenterPosition() const override;\n" (identifier) "tCenterPosition()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (ERROR) "tCenterPosition(Vector2DF position) override;\n\n Color G" (function_declarator) "tCenterPosition(Vector2DF position) override;\n" (identifier) "tCenterPosition(V" (parameter_list) "ector2DF position) o" (() "e" (parameter_declaration) "ctor2DF position) " (type_identifier) "ctor2DF p" (identifier) "sition) " ()) "o" (identifier) "erride;\n" (;) "\n" (identifier) "lor G" (function_declarator) "tColor() const override;\n" (identifier) "tColor()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (function_declarator) "tColor(Color color) override;\n" (identifier) "tColor(C" (parameter_list) "olor color) o" (() "o" (parameter_declaration) "lor color) " (type_identifier) "lor c" (identifier) "lor) " ()) "o" (identifier) "erride;\n" (;) "\n" (primitive_type) "ol G" (function_declarator) "tTurnLR() const override;\n" (identifier) "tTurnLR()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (function_declarator) "tTurnLR(bool turnLR) override;\n" (identifier) "tTurnLR(b" (parameter_list) "ool turnLR) o" (() "o" (parameter_declaration) "ol turnLR) " (primitive_type) "ol t" (identifier) "rnLR) " ()) "o" (identifier) "erride;\n" (;) "\n" (primitive_type) "ol G" (function_declarator) "tTurnUL() const override;\n" (identifier) "tTurnUL()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (function_declarator) "tTurnUL(bool turnUL) override;\n" (identifier) "tTurnUL(b" (parameter_list) "ool turnUL) o" (() "o" (parameter_declaration) "ol turnUL) " (primitive_type) "ol t" (identifier) "rnUL) " ()) "o" (identifier) "erride;\n" (;) "\n" (primitive_type) "t G" (function_declarator) "tDrawingPriority() const override;\n" (identifier) "tDrawingPriority()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (ERROR) "tDrawingPriority(int priority) override;\n\n AlphaBlendMode G" (function_declarator) "tDrawingPriority(int priority) override;\n" (identifier) "tDrawingPriority(i" (parameter_list) "nt priority) o" (() "n" (parameter_declaration) "t priority) " (primitive_type) "t p" (identifier) "iority) " ()) "o" (identifier) "erride;\n" (;) "\n" (identifier) "phaBlendMode G" (function_declarator) "tAlphaBlendMode() const override;\n" (identifier) "tAlphaBlendMode()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) " " (primitive_type) "id S" (function_declarator) "tAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n" (identifier) "tAlphaBlendMode(A" (parameter_list) "lphaBlendMode alphaBlend) o" (() "l" (parameter_declaration) "phaBlendMode alphaBlend) " (type_identifier) "phaBlendMode a" (identifier) "phaBlend) " ()) "o" (identifier) "erride;\n" (;) "\n" (declaration) "id SetTextureFilterType(TextureFilterType textureFilterType) override;\n TextureFilterType GetTextureFilterType() const override;\n\n CoreChip2D_Imp(Graphics* graphics);\n " (primitive_type) "id S" (ERROR) "tTextureFilterType(TextureFilterType textureFilterType) override;\n TextureFilterType GetTextureFilterType() const override;\n\n" (function_declarator) "tTextureFilterType(TextureFilterType textureFilterType) override;\n" (identifier) "tTextureFilterType(T" (parameter_list) "extureFilterType textureFilterType) o" (() "e" (parameter_declaration) "xtureFilterType textureFilterType) " (type_identifier) "xtureFilterType t" (identifier) "xtureFilterType) " ()) "o" (identifier) "erride;\n" (;) " " (identifier) "xtureFilterType G" (function_declarator) "tTextureFilterType() const override;\n" (identifier) "tTextureFilterType()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst o" (identifier) "erride;\n" (;) "\n" (function_declarator) "reChip2D_Imp(Graphics* graphics);\n" (identifier) "reChip2D_Imp(G" (parameter_list) "raphics* graphics);\n" (() "r" (parameter_declaration) "aphics* graphics);" (type_identifier) "aphics* " (pointer_declarator) "graphics);" (*) "g" (identifier) "aphics);" ()) "\n" (;) " " (declaration) "rtual ~CoreChip2D_Imp();\n\n" (type_identifier) "rtual ~" (ERROR) "o" (~) "o" (function_declarator) "reChip2D_Imp();\n" (identifier) "reChip2D_Imp()" (parameter_list) ";\n" (() ";" ()) "\n" (;) "\n" (ERROR) "f _" (#if) "f _" (declaration) "CULLING_2D__\n void SetCullingObject(culling2d::Object *cullingObj);\n " (type_identifier) "CULLING_2D__\n " (ERROR) "id S" (identifier) "id S" (function_declarator) "tCullingObject(culling2d::Object *cullingObj);\n" (identifier) "tCullingObject(c" (parameter_list) "ulling2d::Object *cullingObj);\n" (() "u" (parameter_declaration) "lling2d::Object *cullingObj);" (type_identifier) "lling2d::" (ERROR) "Object *" (:) "O" (:) "b" (identifier) "ject *" (pointer_declarator) "ullingObj);" (*) "u" (identifier) "llingObj);" ()) "\n" (;) " " (declaration) "lling2d::Object* GetCullingObject() const;\n\n" (type_identifier) "lling2d::" (ERROR) "Object* " (:) "O" (:) "b" (identifier) "ject* " (pointer_declarator) "GetCullingObject() const;\n" (*) "G" (function_declarator) "tCullingObject() const;\n" (identifier) "tCullingObject()" (parameter_list) " c" (() " " ()) "c" (identifier) "nst;\n" (;) "\n" (declaration) "lling2d::Circle GetBoundingCircle();\n#" (type_identifier) "lling2d::" (ERROR) "Circle G" (:) "C" (:) "i" (identifier) "rcle G" (function_declarator) "tBoundingCircle();\n" (identifier) "tBoundingCircle()" (parameter_list) ";\n" (() ";" ()) "\n" (;) "#" (ERROR) "ndif\n\n#if !SWIG\n public:\n virtual int GetRef() {" (#endif) "ndif\n\n" (#if) "f !" (!) "W" (type_identifier) "IG\n " (ERROR) "blic:\n virtual int G" (identifier) "blic:\n" (:) " " (identifier) "rtual i" (identifier) "t G" (function_declarator) "tRef() {" (identifier) "tRef()" (parameter_list) " {" (() " " ()) "{" (compound_statement) "return ReferenceObject::GetRef(); }\n " ({) "r" (return_statement) "turn ReferenceObject::GetRef(); }" (return) "turn R" (ERROR) "ferenceObject::Ge" (identifier) "ferenceObject::" (:) "G" (:) "e" (call_expression) "tRef(); " (identifier) "tRef()" (argument_list) "; " (() ";" ()) " " (;) "}" (}) " " (function_definition) "rtual int AddRef() { return ReferenceObject::AddRef(); }\n " (type_identifier) "rtual i" (ERROR) "t A" (identifier) "t A" (function_declarator) "dRef() {" (identifier) "dRef()" (parameter_list) " {" (() " " ()) "{" (compound_statement) "return ReferenceObject::AddRef(); }\n " ({) "r" (return_statement) "turn ReferenceObject::AddRef(); }" (return) "turn R" (ERROR) "ferenceObject::Ad" (identifier) "ferenceObject::" (:) "A" (:) "d" (call_expression) "dRef(); " (identifier) "dRef()" (argument_list) "; " (() ";" ()) " " (;) "}" (}) " " (function_definition) "rtual int Release() { return ReferenceObject::Release(); }\n#" (type_identifier) "rtual i" (ERROR) "t R" (identifier) "t R" (function_declarator) "lease() {" (identifier) "lease()" (parameter_list) " {" (() " " ()) "{" (compound_statement) "return ReferenceObject::Release(); }\n#" ({) "r" (return_statement) "turn ReferenceObject::Release(); }" (return) "turn R" (ERROR) "ferenceObject::Re" (identifier) "ferenceObject::" (:) "R" (:) "e" (call_expression) "lease(); " (identifier) "lease()" (argument_list) "; " (() ";" ()) " " (;) "}" (}) "#" (#endif) "ndif\n " (}) "\n" (expression_statement) "\n" (;) "\n" (comment) "----------------------------------------------------------------------------------\n " (comment) "\n " (comment) "----------------------------------------------------------------------------------\n}" (}) ""
691
28
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 34.9, "nodes": 463, "errors": 0, "source_hash": "ffc9a99ff0a534fd0d13909771c0020707666c4ef27a90f4ac56d065e050bffe", "categorized_nodes": 317}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma once\n\n/", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "ragma o", "parent": 0, "children": [], "start_point": {"row": 0, "column": 3}, "end_point": {"row": 0, "column": 10}}, {"id": 2, "type": "preproc_arg", "text": "ce\n\n", "parent": 0, "children": [], "start_point": {"row": 0, "column": 11}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_include", "text": "nclude \"../../Graphics/Resource/asd.Texture2D.h\"\n#i", "parent": null, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#include", "text": "nclude \"", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 5, "type": "string_literal", "text": "./../Graphics/Resource/asd.Texture2D.h\"\n#", "parent": 3, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 50}}, {"id": 6, "type": "preproc_include", "text": "nclude <Math/asd.RectF.h>\n#i", "parent": null, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#include", "text": "nclude <", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "ath/asd.RectF.h>\n#", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 27}}, {"id": 9, "type": "preproc_include", "text": "nclude \"asd.CoreChip2D.h\"\n#i", "parent": null, "children": [10, 11], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 10, "type": "#include", "text": "nclude \"", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 11, "type": "string_literal", "text": "sd.CoreChip2D.h\"\n#", "parent": 9, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "nclude \"../../ObjectSystem/2D/asd.Culling2D.h\"\n#i", "parent": null, "children": [13, 14], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 13, "type": "#include", "text": "nclude \"", "parent": 12, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 14, "type": "string_literal", "text": "./../ObjectSystem/2D/asd.Culling2D.h\"\n#", "parent": 12, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 48}}, {"id": 15, "type": "preproc_include", "text": "nclude \"asd.TransformInfo2D.h\"\n\n/", "parent": null, "children": [16, 17], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 16, "type": "#include", "text": "nclude \"", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 17, "type": "string_literal", "text": "sd.TransformInfo2D.h\"\n\n", "parent": 15, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 32}}, {"id": 18, "type": "function_definition", "text": "mespace asd {\n\tclass CoreMapObject2D_Imp;\n\t//----------------------------------------------------------------------------------\n\t//\n\t//----------------------------------------------------------------------------------\n\tclass CoreChip2D_Imp\n\t\t: public CoreChip2D\n\t\t, public ReferenceObject\n\t{\n\tprivate:\n\n\t\tGraphics*\tm_graphics = nullptr;\n\t\tCoreMapObject2D_Imp* mapObject2D = nullptr;\n\t\tTexture2D*\tm_texture = nullptr;\n\n\t\tRectF m_src;\n\t\tColor m_color;\n\t\tbool m_turnLR;\n\t\tbool m_turnUL;\n\t\tAlphaBlendMode m_alphablend;\n\t\tTransformInfo2D m_transformInfo;\n\t\tVector2DF m_centerPosition;\n\t\tint m_drawingPriority;\n\t\tTextureFilterType m_textureFilterType;\n\n#if __CULLING_2D__\n\t\tculling2d::Object *cullingObject;\n\t\tbool alreadyCullingUpdated;\n#endif\n\t\t\n\n\t\tTexture2D* GetTexture_() const;\n\t\tvoid SetTexture_(Texture2D* texture);\n\n\t\tvoid SetCullingUpdate();\n\tpublic:\n\n\t\tCoreMapObject2D_Imp* GetMapObject2D() const;\n\t\tvoid SetMapObject2D(CoreMapObject2D_Imp* mapObject);\n\n#if __CULLING_2D__\n\t\tbool GetAlreadyCullingUpdated() const;\n\t\tvoid SetAlreadyCullingUpdated(bool cullingUpdated);\n#endif\n\n\tpublic:\n\n#if !SWIG\n\t\tvoid SetTexture(std::shared_ptr<Texture2D> texture);\n\t\tstd::shared_ptr<Texture2D> GetTexture();\n\t\tTransformInfo2D GetTransformInfo2D() const;\n#endif\n\t\tvoid SetTexture(Texture2D* texture);\n\n\t\tRectF GetSrc() const override;\n\t\tvoid SetSrc(RectF src) override;\n\n\t\tVector2DF GetPosition() const override;\n\t\tvoid SetPosition(Vector2DF position) override;\n\n\t\tfloat GetAngle() const override;\n\t\tvoid SetAngle(float angle) override;\n\n\t\tVector2DF GetScale() const override;\n\t\tvoid SetScale(Vector2DF scale) override;\n\n\t\tVector2DF GetCenterPosition() const override;\n\t\tvoid SetCenterPosition(Vector2DF position) override;\n\n\t\tColor GetColor() const override;\n\t\tvoid SetColor(Color color) override;\n\n\t\tbool GetTurnLR() const override;\n\t\tvoid SetTurnLR(bool turnLR) override;\n\n\t\tbool GetTurnUL() const override;\n\t\tvoid SetTurnUL(bool turnUL) override;\n\n\t\tint GetDrawingPriority() const override;\n\t\tvoid SetDrawingPriority(int priority) override;\n\n\t\tAlphaBlendMode GetAlphaBlendMode() const override;\n\t\tvoid SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n\t\tvoid SetTextureFilterType(TextureFilterType textureFilterType) override;\n\t\tTextureFilterType GetTextureFilterType() const override;\n\n\t\tCoreChip2D_Imp(Graphics* graphics);\n\t\tvirtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n\t\tvoid SetCullingObject(culling2d::Object *cullingObj);\n\t\tculling2d::Object* GetCullingObject() const;\n\n\t\tculling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n\tpublic:\n\t\tvirtual int GetRef() { return ReferenceObject::GetRef(); }\n\t\tvirtual int AddRef() { return ReferenceObject::AddRef(); }\n\t\tvirtual int Release() { return ReferenceObject::Release(); }\n#endif\n\t};\n\n\t//----------------------------------------------------------------------------------\n\t//\n\t//----------------------------------------------------------------------------------\n}", "parent": null, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "mespace a", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 20, "type": "identifier", "text": "d {", "parent": 18, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 13}}, {"id": 21, "type": "declaration", "text": "ass CoreMapObject2D_Imp;\n\t", "parent": 18, "children": [22, 23], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 27}}, {"id": 22, "type": "type_identifier", "text": "ass C", "parent": 21, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 6}}, {"id": 23, "type": "identifier", "text": "reMapObject2D_Imp;\n", "parent": 21, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 26}}, {"id": 24, "type": "ERROR", "text": "ass CoreChip2D_Imp\n\t\t: public CoreChip2D\n\t\t, public ReferenceObject\n\t", "parent": 18, "children": [25, 26, 27, 30, 31], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 21, "column": 26}}, {"id": 25, "type": "type_identifier", "text": "ass C", "parent": 24, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 6}}, {"id": 26, "type": "identifier", "text": "reChip2D_Imp\n\t", "parent": 24, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 21}}, {"id": 27, "type": "ERROR", "text": "public CoreChip2D\n\t", "parent": 24, "children": [28, 29], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 21}}, {"id": 28, "type": "identifier", "text": "blic C", "parent": 27, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 29, "type": "identifier", "text": "reChip2D\n\t", "parent": 27, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 21}}, {"id": 30, "type": "identifier", "text": "blic R", "parent": 24, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 10}}, {"id": 31, "type": "identifier", "text": "ferenceObject\n\t", "parent": 24, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 26}}, {"id": 32, "type": "labeled_statement", "text": "ivate:\n\n\t\tGraphics*\tm_graphics = nullptr;\n\t", "parent": 18, "children": [33, 34], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 25, "column": 33}}, {"id": 33, "type": "statement_identifier", "text": "ivate:\n", "parent": 32, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 8}}, {"id": 34, "type": "declaration", "text": "aphics*\tm_graphics = nullptr;\n\t", "parent": 32, "children": [35, 36], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 33}}, {"id": 35, "type": "type_identifier", "text": "aphics*\t", "parent": 34, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 10}}, {"id": 36, "type": "init_declarator", "text": "m_graphics = nullptr;\n", "parent": 34, "children": [37, 40, 41], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 32}}, {"id": 37, "type": "pointer_declarator", "text": "m_graphics =", "parent": 36, "children": [38, 39], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 22}}, {"id": 38, "type": "*", "text": "m", "parent": 37, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 39, "type": "identifier", "text": "graphics =", "parent": 37, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 22}}, {"id": 40, "type": "=", "text": "n", "parent": 36, "children": [], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 24}}, {"id": 41, "type": "null", "text": "llptr;\n", "parent": 36, "children": [42], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 32}}, {"id": 42, "type": "nullptr", "text": "llptr;\n", "parent": 41, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 32}}, {"id": 43, "type": "declaration", "text": "reMapObject2D_Imp* mapObject2D = nullptr;\n\t", "parent": 18, "children": [44, 45], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 45}}, {"id": 44, "type": "type_identifier", "text": "reMapObject2D_Imp* ", "parent": 43, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 21}}, {"id": 45, "type": "init_declarator", "text": "mapObject2D = nullptr;\n", "parent": 43, "children": [46, 49, 50], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 44}}, {"id": 46, "type": "pointer_declarator", "text": "mapObject2D =", "parent": 45, "children": [47, 48], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 34}}, {"id": 47, "type": "*", "text": "m", "parent": 46, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 22}}, {"id": 48, "type": "identifier", "text": "pObject2D =", "parent": 46, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 34}}, {"id": 49, "type": "=", "text": "n", "parent": 45, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 36}}, {"id": 50, "type": "null", "text": "llptr;\n", "parent": 45, "children": [51], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 44}}, {"id": 51, "type": "nullptr", "text": "llptr;\n", "parent": 50, "children": [], "start_point": {"row": 26, "column": 37}, "end_point": {"row": 26, "column": 44}}, {"id": 52, "type": "declaration", "text": "xture2D*\tm_texture = nullptr;\n\n", "parent": 18, "children": [53, 54], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 33}}, {"id": 53, "type": "type_identifier", "text": "xture2D*\t", "parent": 52, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 11}}, {"id": 54, "type": "init_declarator", "text": "m_texture = nullptr;\n", "parent": 52, "children": [55, 58, 59], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 32}}, {"id": 55, "type": "pointer_declarator", "text": "m_texture =", "parent": 54, "children": [56, 57], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 22}}, {"id": 56, "type": "*", "text": "m", "parent": 55, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 12}}, {"id": 57, "type": "identifier", "text": "texture =", "parent": 55, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 22}}, {"id": 58, "type": "=", "text": "n", "parent": 54, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 59, "type": "null", "text": "llptr;\n", "parent": 54, "children": [60], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 32}}, {"id": 60, "type": "nullptr", "text": "llptr;\n", "parent": 59, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 32}}, {"id": 61, "type": "declaration", "text": "ctF m_src;\n\t", "parent": 18, "children": [62, 63], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 14}}, {"id": 62, "type": "type_identifier", "text": "ctF m", "parent": 61, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 7}}, {"id": 63, "type": "identifier", "text": "src;\n", "parent": 61, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 13}}, {"id": 64, "type": "declaration", "text": "lor m_color;\n\t", "parent": 18, "children": [65, 66], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 16}}, {"id": 65, "type": "type_identifier", "text": "lor m", "parent": 64, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 7}}, {"id": 66, "type": "identifier", "text": "color;\n", "parent": 64, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 15}}, {"id": 67, "type": "declaration", "text": "ol m_turnLR;\n\t", "parent": 18, "children": [68, 69], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 16}}, {"id": 68, "type": "primitive_type", "text": "ol m", "parent": 67, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 69, "type": "identifier", "text": "turnLR;\n", "parent": 67, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 15}}, {"id": 70, "type": "declaration", "text": "ol m_turnUL;\n\t", "parent": 18, "children": [71, 72], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 16}}, {"id": 71, "type": "primitive_type", "text": "ol m", "parent": 70, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 6}}, {"id": 72, "type": "identifier", "text": "turnUL;\n", "parent": 70, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 15}}, {"id": 73, "type": "declaration", "text": "phaBlendMode m_alphablend;\n\t", "parent": 18, "children": [74, 75], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 30}}, {"id": 74, "type": "type_identifier", "text": "phaBlendMode m", "parent": 73, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 16}}, {"id": 75, "type": "identifier", "text": "alphablend;\n", "parent": 73, "children": [], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 33, "column": 29}}, {"id": 76, "type": "declaration", "text": "ansformInfo2D m_transformInfo;\n\t", "parent": 18, "children": [77, 78], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 34}}, {"id": 77, "type": "type_identifier", "text": "ansformInfo2D m", "parent": 76, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 17}}, {"id": 78, "type": "identifier", "text": "transformInfo;\n", "parent": 76, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 33}}, {"id": 79, "type": "declaration", "text": "ctor2DF m_centerPosition;\n\t", "parent": 18, "children": [80, 81], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 29}}, {"id": 80, "type": "type_identifier", "text": "ctor2DF m", "parent": 79, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 11}}, {"id": 81, "type": "identifier", "text": "centerPosition;\n", "parent": 79, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 28}}, {"id": 82, "type": "declaration", "text": "t m_drawingPriority;\n\t", "parent": 18, "children": [83, 84], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 24}}, {"id": 83, "type": "primitive_type", "text": "t m", "parent": 82, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 5}}, {"id": 84, "type": "identifier", "text": "drawingPriority;\n", "parent": 82, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 23}}, {"id": 85, "type": "declaration", "text": "xtureFilterType m_textureFilterType;\n\n", "parent": 18, "children": [86, 87], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 40}}, {"id": 86, "type": "type_identifier", "text": "xtureFilterType m", "parent": 85, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 19}}, {"id": 87, "type": "identifier", "text": "textureFilterType;\n", "parent": 85, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 39}}, {"id": 88, "type": "preproc_if", "text": "f __CULLING_2D__\n\t\tculling2d::Object *cullingObject;\n\t\tbool alreadyCullingUpdated;\n#endif\n\t", "parent": 18, "children": [89, 90, 91, 92, 100, 103], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 89, "type": "#if", "text": "f _", "parent": 88, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 3}}, {"id": 90, "type": "identifier", "text": "CULLING_2D__\n\t", "parent": 88, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 18}}, {"id": 91, "type": "\n", "text": "\t", "parent": 88, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 40, "column": 0}}, {"id": 92, "type": "labeled_statement", "text": "lling2d::Object *cullingObject;\n\t", "parent": 88, "children": [93, 94, 95], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 35}}, {"id": 93, "type": "statement_identifier", "text": "lling2d::", "parent": 92, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 11}}, {"id": 94, "type": "ERROR", "text": "b", "parent": 92, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 13}}, {"id": 95, "type": "declaration", "text": "ject *cullingObject;\n\t", "parent": 92, "children": [96, 97], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 35}}, {"id": 96, "type": "type_identifier", "text": "ject *", "parent": 95, "children": [], "start_point": {"row": 40, "column": 13}, "end_point": {"row": 40, "column": 19}}, {"id": 97, "type": "pointer_declarator", "text": "ullingObject;\n", "parent": 95, "children": [98, 99], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 34}}, {"id": 98, "type": "*", "text": "u", "parent": 97, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 21}}, {"id": 99, "type": "identifier", "text": "llingObject;\n", "parent": 97, "children": [], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 34}}, {"id": 100, "type": "declaration", "text": "ol alreadyCullingUpdated;\n#", "parent": 88, "children": [101, 102], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 29}}, {"id": 101, "type": "primitive_type", "text": "ol a", "parent": 100, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 6}}, {"id": 102, "type": "identifier", "text": "readyCullingUpdated;\n", "parent": 100, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 28}}, {"id": 103, "type": "#endif", "text": "ndif\n\t", "parent": 88, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 104, "type": "declaration", "text": "xture2D* GetTexture_() const;\n\t", "parent": 18, "children": [105, 106], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 33}}, {"id": 105, "type": "type_identifier", "text": "xture2D* ", "parent": 104, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 11}}, {"id": 106, "type": "pointer_declarator", "text": "GetTexture_() const;\n", "parent": 104, "children": [107, 108], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 32}}, {"id": 107, "type": "*", "text": "G", "parent": 106, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 12}}, {"id": 108, "type": "function_declarator", "text": "tTexture_() const;\n", "parent": 106, "children": [109, 110, 111], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 32}}, {"id": 109, "type": "identifier", "text": "tTexture_()", "parent": 108, "children": [], "start_point": {"row": 45, "column": 13}, "end_point": {"row": 45, "column": 24}}, {"id": 110, "type": "parameter_list", "text": " c", "parent": 108, "children": [], "start_point": {"row": 45, "column": 24}, "end_point": {"row": 45, "column": 26}}, {"id": 111, "type": "identifier", "text": "nst;\n", "parent": 108, "children": [], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 32}}, {"id": 112, "type": "declaration", "text": "id SetTexture_(Texture2D* texture);\n\n", "parent": 18, "children": [113, 114], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 39}}, {"id": 113, "type": "primitive_type", "text": "id S", "parent": 112, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 6}}, {"id": 114, "type": "function_declarator", "text": "tTexture_(Texture2D* texture);\n", "parent": 112, "children": [115, 116], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 38}}, {"id": 115, "type": "identifier", "text": "tTexture_(T", "parent": 114, "children": [], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 46, "column": 18}}, {"id": 116, "type": "parameter_list", "text": "exture2D* texture);\n", "parent": 114, "children": [117], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 38}}, {"id": 117, "type": "parameter_declaration", "text": "xture2D* texture);", "parent": 116, "children": [118, 119], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 37}}, {"id": 118, "type": "type_identifier", "text": "xture2D* ", "parent": 117, "children": [], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 28}}, {"id": 119, "type": "pointer_declarator", "text": "texture);", "parent": 117, "children": [120, 121], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 37}}, {"id": 120, "type": "*", "text": "t", "parent": 119, "children": [], "start_point": {"row": 46, "column": 28}, "end_point": {"row": 46, "column": 29}}, {"id": 121, "type": "identifier", "text": "xture);", "parent": 119, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 37}}, {"id": 122, "type": "declaration", "text": "id SetCullingUpdate();\n\t", "parent": 18, "children": [123, 124], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 26}}, {"id": 123, "type": "primitive_type", "text": "id S", "parent": 122, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 6}}, {"id": 124, "type": "function_declarator", "text": "tCullingUpdate();\n", "parent": 122, "children": [125], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 25}}, {"id": 125, "type": "identifier", "text": "tCullingUpdate()", "parent": 124, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 23}}, {"id": 126, "type": "labeled_statement", "text": "blic:\n\n\t\tCoreMapObject2D_Imp* GetMapObject2D() const;\n\t", "parent": 18, "children": [127, 128], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 51, "column": 46}}, {"id": 127, "type": "statement_identifier", "text": "blic:\n", "parent": 126, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 7}}, {"id": 128, "type": "declaration", "text": "reMapObject2D_Imp* GetMapObject2D() const;\n\t", "parent": 126, "children": [129, 130], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 46}}, {"id": 129, "type": "type_identifier", "text": "reMapObject2D_Imp* ", "parent": 128, "children": [], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 51, "column": 21}}, {"id": 130, "type": "pointer_declarator", "text": "GetMapObject2D() const;\n", "parent": 128, "children": [131, 132], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 45}}, {"id": 131, "type": "*", "text": "G", "parent": 130, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 22}}, {"id": 132, "type": "function_declarator", "text": "tMapObject2D() const;\n", "parent": 130, "children": [133, 134, 135], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 45}}, {"id": 133, "type": "identifier", "text": "tMapObject2D()", "parent": 132, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 37}}, {"id": 134, "type": "parameter_list", "text": " c", "parent": 132, "children": [], "start_point": {"row": 51, "column": 37}, "end_point": {"row": 51, "column": 39}}, {"id": 135, "type": "identifier", "text": "nst;\n", "parent": 132, "children": [], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 45}}, {"id": 136, "type": "declaration", "text": "id SetMapObject2D(CoreMapObject2D_Imp* mapObject);\n\n", "parent": 18, "children": [137, 138], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 54}}, {"id": 137, "type": "primitive_type", "text": "id S", "parent": 136, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 6}}, {"id": 138, "type": "function_declarator", "text": "tMapObject2D(CoreMapObject2D_Imp* mapObject);\n", "parent": 136, "children": [139, 140], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 53}}, {"id": 139, "type": "identifier", "text": "tMapObject2D(C", "parent": 138, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 21}}, {"id": 140, "type": "parameter_list", "text": "oreMapObject2D_Imp* mapObject);\n", "parent": 138, "children": [141], "start_point": {"row": 52, "column": 21}, "end_point": {"row": 52, "column": 53}}, {"id": 141, "type": "parameter_declaration", "text": "reMapObject2D_Imp* mapObject);", "parent": 140, "children": [142, 143], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 52}}, {"id": 142, "type": "type_identifier", "text": "reMapObject2D_Imp* ", "parent": 141, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 41}}, {"id": 143, "type": "pointer_declarator", "text": "mapObject);", "parent": 141, "children": [144, 145], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 52}}, {"id": 144, "type": "*", "text": "m", "parent": 143, "children": [], "start_point": {"row": 52, "column": 41}, "end_point": {"row": 52, "column": 42}}, {"id": 145, "type": "identifier", "text": "pObject);", "parent": 143, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 52}}, {"id": 146, "type": "preproc_if", "text": "f __CULLING_2D__\n\t\tbool GetAlreadyCullingUpdated() const;\n\t\tvoid SetAlreadyCullingUpdated(bool cullingUpdated);\n#endif\n\n", "parent": 18, "children": [147, 148, 149, 150, 165], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 147, "type": "#if", "text": "f _", "parent": 146, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 3}}, {"id": 148, "type": "identifier", "text": "CULLING_2D__\n\t", "parent": 146, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 18}}, {"id": 149, "type": "\n", "text": "\t", "parent": 146, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 55, "column": 0}}, {"id": 150, "type": "ERROR", "text": "ol GetAlreadyCullingUpdated() const;\n\t\tvoid SetAlreadyCullingUpdated(bool cullingUpdated);\n#", "parent": 146, "children": [151, 152, 155], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 56, "column": 53}}, {"id": 151, "type": "primitive_type", "text": "ol G", "parent": 150, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 6}}, {"id": 152, "type": "function_declarator", "text": "tAlreadyCullingUpdated() c", "parent": 150, "children": [153, 154], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 33}}, {"id": 153, "type": "identifier", "text": "tAlreadyCullingUpdated()", "parent": 152, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 31}}, {"id": 154, "type": "parameter_list", "text": " c", "parent": 152, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 33}}, {"id": 155, "type": "declaration", "text": "nst;\n\t\tvoid SetAlreadyCullingUpdated(bool cullingUpdated);\n#", "parent": 150, "children": [156, 157, 158, 159], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 56, "column": 53}}, {"id": 156, "type": "type_qualifier", "text": "nst;\n", "parent": 155, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 39}}, {"id": 157, "type": "ERROR", "text": "\t", "parent": 155, "children": [], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 40}}, {"id": 158, "type": "primitive_type", "text": "id S", "parent": 155, "children": [], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 6}}, {"id": 159, "type": "function_declarator", "text": "tAlreadyCullingUpdated(bool cullingUpdated);\n", "parent": 155, "children": [160, 161], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 52}}, {"id": 160, "type": "identifier", "text": "tAlreadyCullingUpdated(b", "parent": 159, "children": [], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 31}}, {"id": 161, "type": "parameter_list", "text": "ool cullingUpdated);\n", "parent": 159, "children": [162], "start_point": {"row": 56, "column": 31}, "end_point": {"row": 56, "column": 52}}, {"id": 162, "type": "parameter_declaration", "text": "ol cullingUpdated);", "parent": 161, "children": [163, 164], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 51}}, {"id": 163, "type": "primitive_type", "text": "ol c", "parent": 162, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 36}}, {"id": 164, "type": "identifier", "text": "llingUpdated);", "parent": 162, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 51}}, {"id": 165, "type": "#endif", "text": "ndif\n\n", "parent": 146, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 6}}, {"id": 166, "type": "labeled_statement", "text": "blic:\n\n", "parent": 18, "children": [167], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 8}}, {"id": 167, "type": "statement_identifier", "text": "blic:\n", "parent": 166, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 7}}, {"id": 168, "type": "preproc_if", "text": "f !SWIG\n\t\tvoid SetTexture(std::shared_ptr<Texture2D> texture);\n\t\tstd::shared_ptr<Texture2D> GetTexture();\n\t\tTransformInfo2D GetTransformInfo2D() const;\n#endif\n\t\tvoid SetTexture(Texture2D* texture);\n\n\t\tRectF GetSrc() const override;\n\t\tvoid SetSrc(RectF src) override;\n\n\t\tVector2DF GetPosition() const override;\n\t\tvoid SetPosition(Vector2DF position) override;\n\n\t\tfloat GetAngle() const override;\n\t\tvoid SetAngle(float angle) override;\n\n\t\tVector2DF GetScale() const override;\n\t\tvoid SetScale(Vector2DF scale) override;\n\n\t\tVector2DF GetCenterPosition() const override;\n\t\tvoid SetCenterPosition(Vector2DF position) override;\n\n\t\tColor GetColor() const override;\n\t\tvoid SetColor(Color color) override;\n\n\t\tbool GetTurnLR() const override;\n\t\tvoid SetTurnLR(bool turnLR) override;\n\n\t\tbool GetTurnUL() const override;\n\t\tvoid SetTurnUL(bool turnUL) override;\n\n\t\tint GetDrawingPriority() const override;\n\t\tvoid SetDrawingPriority(int priority) override;\n\n\t\tAlphaBlendMode GetAlphaBlendMode() const override;\n\t\tvoid SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n\t\tvoid SetTextureFilterType(TextureFilterType textureFilterType) override;\n\t\tTextureFilterType GetTextureFilterType() const override;\n\n\t\tCoreChip2D_Imp(Graphics* graphics);\n\t\tvirtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n\t\tvoid SetCullingObject(culling2d::Object *cullingObj);\n\t\tculling2d::Object* GetCullingObject() const;\n\n\t\tculling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n\tpublic:\n\t\tvirtual int GetRef() { return ReferenceObject::GetRef(); }\n\t\tvirtual int AddRef() { return ReferenceObject::AddRef(); }\n\t\tvirtual int Release() { return ReferenceObject::Release(); }\n#endif\n\t", "parent": 18, "children": [169, 170, 173, 174, 187, 198, 440, 451, 462], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 116, "column": 6}}, {"id": 169, "type": "#if", "text": "f !", "parent": 168, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 3}}, {"id": 170, "type": "unary_expression", "text": "WIG\n\t", "parent": 168, "children": [171, 172], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 9}}, {"id": 171, "type": "!", "text": "W", "parent": 170, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 172, "type": "identifier", "text": "IG\n\t", "parent": 170, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 9}}, {"id": 173, "type": "\n", "text": "\t", "parent": 168, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 62, "column": 0}}, {"id": 174, "type": "declaration", "text": "id SetTexture(std::shared_ptr<Texture2D> texture);\n\t", "parent": 168, "children": [175, 176], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 54}}, {"id": 175, "type": "primitive_type", "text": "id S", "parent": 174, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 6}}, {"id": 176, "type": "function_declarator", "text": "tTexture(std::shared_ptr<Texture2D> texture);\n", "parent": 174, "children": [177, 178], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 53}}, {"id": 177, "type": "identifier", "text": "tTexture(s", "parent": 176, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 17}}, {"id": 178, "type": "parameter_list", "text": "td::shared_ptr<Texture2D> texture);\n", "parent": 176, "children": [179], "start_point": {"row": 62, "column": 17}, "end_point": {"row": 62, "column": 53}}, {"id": 179, "type": "parameter_declaration", "text": "d::shared_ptr<Texture2D> texture);", "parent": 178, "children": [180, 181, 186], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 52}}, {"id": 180, "type": "type_identifier", "text": "d::", "parent": 179, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 21}}, {"id": 181, "type": "ERROR", "text": "shared_ptr<Texture2D> t", "parent": 179, "children": [182, 183, 184, 185], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 44}}, {"id": 182, "type": "identifier", "text": "ared_ptr<T", "parent": 181, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 33}}, {"id": 183, "type": "<", "text": "e", "parent": 181, "children": [], "start_point": {"row": 62, "column": 33}, "end_point": {"row": 62, "column": 34}}, {"id": 184, "type": "identifier", "text": "xture2D> ", "parent": 181, "children": [], "start_point": {"row": 62, "column": 34}, "end_point": {"row": 62, "column": 43}}, {"id": 185, "type": ">", "text": "t", "parent": 181, "children": [], "start_point": {"row": 62, "column": 43}, "end_point": {"row": 62, "column": 44}}, {"id": 186, "type": "identifier", "text": "xture);", "parent": 179, "children": [], "start_point": {"row": 62, "column": 45}, "end_point": {"row": 62, "column": 52}}, {"id": 187, "type": "labeled_statement", "text": "d::shared_ptr<Texture2D> GetTexture();\n\t", "parent": 168, "children": [188, 189], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 42}}, {"id": 188, "type": "statement_identifier", "text": "d::", "parent": 187, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 5}}, {"id": 189, "type": "ERROR", "text": "h", "parent": 187, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 7}}, {"id": 190, "type": "binary_expression", "text": "ared_ptr<Texture2D> GetTexture();\n", "parent": 187, "children": [191, 195, 196], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 41}}, {"id": 191, "type": "binary_expression", "text": "ared_ptr<Texture2D> ", "parent": 190, "children": [192, 193, 194], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 27}}, {"id": 192, "type": "identifier", "text": "ared_ptr<T", "parent": 191, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 17}}, {"id": 193, "type": "<", "text": "e", "parent": 191, "children": [], "start_point": {"row": 63, "column": 17}, "end_point": {"row": 63, "column": 18}}, {"id": 194, "type": "identifier", "text": "xture2D> ", "parent": 191, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 27}}, {"id": 195, "type": ">", "text": "G", "parent": 190, "children": [], "start_point": {"row": 63, "column": 27}, "end_point": {"row": 63, "column": 28}}, {"id": 196, "type": "call_expression", "text": "tTexture();\n", "parent": 190, "children": [197], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 41}}, {"id": 197, "type": "identifier", "text": "tTexture()", "parent": 196, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 39}}, {"id": 198, "type": "function_definition", "text": "ansformInfo2D GetTransformInfo2D() const;\n#endif\n\t\tvoid SetTexture(Texture2D* texture);\n\n\t\tRectF GetSrc() const override;\n\t\tvoid SetSrc(RectF src) override;\n\n\t\tVector2DF GetPosition() const override;\n\t\tvoid SetPosition(Vector2DF position) override;\n\n\t\tfloat GetAngle() const override;\n\t\tvoid SetAngle(float angle) override;\n\n\t\tVector2DF GetScale() const override;\n\t\tvoid SetScale(Vector2DF scale) override;\n\n\t\tVector2DF GetCenterPosition() const override;\n\t\tvoid SetCenterPosition(Vector2DF position) override;\n\n\t\tColor GetColor() const override;\n\t\tvoid SetColor(Color color) override;\n\n\t\tbool GetTurnLR() const override;\n\t\tvoid SetTurnLR(bool turnLR) override;\n\n\t\tbool GetTurnUL() const override;\n\t\tvoid SetTurnUL(bool turnUL) override;\n\n\t\tint GetDrawingPriority() const override;\n\t\tvoid SetDrawingPriority(int priority) override;\n\n\t\tAlphaBlendMode GetAlphaBlendMode() const override;\n\t\tvoid SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n\t\tvoid SetTextureFilterType(TextureFilterType textureFilterType) override;\n\t\tTextureFilterType GetTextureFilterType() const override;\n\n\t\tCoreChip2D_Imp(Graphics* graphics);\n\t\tvirtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n\t\tvoid SetCullingObject(culling2d::Object *cullingObj);\n\t\tculling2d::Object* GetCullingObject() const;\n\n\t\tculling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n\tpublic:\n\t\tvirtual int GetRef() { return ReferenceObject::GetRef(); }\n\t", "parent": 168, "children": [199, 200, 203, 216, 362, 386, 392, 394, 408, 418, 424], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 113, "column": 60}}, {"id": 199, "type": "type_identifier", "text": "ansformInfo2D G", "parent": 198, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 17}}, {"id": 200, "type": "function_declarator", "text": "tTransformInfo2D() c", "parent": 198, "children": [201, 202], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 38}}, {"id": 201, "type": "identifier", "text": "tTransformInfo2D()", "parent": 200, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 36}}, {"id": 202, "type": "parameter_list", "text": " c", "parent": 200, "children": [], "start_point": {"row": 64, "column": 36}, "end_point": {"row": 64, "column": 38}}, {"id": 203, "type": "declaration", "text": "nst;\n#endif\n\t\tvoid SetTexture(Texture2D* texture);\n\n", "parent": 198, "children": [204, 205, 207, 208], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 66, "column": 38}}, {"id": 204, "type": "type_qualifier", "text": "nst;\n", "parent": 203, "children": [], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 44}}, {"id": 205, "type": "ERROR", "text": "#endif\n\t", "parent": 203, "children": [206], "start_point": {"row": 64, "column": 44}, "end_point": {"row": 65, "column": 6}}, {"id": 206, "type": "#endif", "text": "ndif\n\t", "parent": 205, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 6}}, {"id": 207, "type": "primitive_type", "text": "id S", "parent": 203, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 6}}, {"id": 208, "type": "function_declarator", "text": "tTexture(Texture2D* texture);\n", "parent": 203, "children": [209, 210], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 37}}, {"id": 209, "type": "identifier", "text": "tTexture(T", "parent": 208, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 17}}, {"id": 210, "type": "parameter_list", "text": "exture2D* texture);\n", "parent": 208, "children": [211], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 37}}, {"id": 211, "type": "parameter_declaration", "text": "xture2D* texture);", "parent": 210, "children": [212, 213], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 36}}, {"id": 212, "type": "type_identifier", "text": "xture2D* ", "parent": 211, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 27}}, {"id": 213, "type": "pointer_declarator", "text": "texture);", "parent": 211, "children": [214, 215], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 36}}, {"id": 214, "type": "*", "text": "t", "parent": 213, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 28}}, {"id": 215, "type": "identifier", "text": "xture);", "parent": 213, "children": [], "start_point": {"row": 66, "column": 29}, "end_point": {"row": 66, "column": 36}}, {"id": 216, "type": "ERROR", "text": "ctF GetSrc() const override;\n\t\tvoid SetSrc(RectF src) override;\n\n\t\tVector2DF GetPosition() const override;\n\t\tvoid SetPosition(Vector2DF position) override;\n\n\t\tfloat GetAngle() const override;\n\t\tvoid SetAngle(float angle) override;\n\n\t\tVector2DF GetScale() const override;\n\t\tvoid SetScale(Vector2DF scale) override;\n\n\t\tVector2DF GetCenterPosition() const override;\n\t\tvoid SetCenterPosition(Vector2DF position) override;\n\n\t\tColor GetColor() const override;\n\t\tvoid SetColor(Color color) override;\n\n\t\tbool GetTurnLR() const override;\n\t\tvoid SetTurnLR(bool turnLR) override;\n\n\t\tbool GetTurnUL() const override;\n\t\tvoid SetTurnUL(bool turnUL) override;\n\n\t\tint GetDrawingPriority() const override;\n\t\tvoid SetDrawingPriority(int priority) override;\n\n\t\tAlphaBlendMode GetAlphaBlendMode() const override;\n\t\tvoid SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n", "parent": 198, "children": [217, 218, 223, 224, 233, 238, 239, 246, 247, 252, 253, 262, 267, 268, 277, 282, 283, 292, 297, 298, 305, 306, 311, 312, 319, 320, 325, 326, 333, 334, 339, 340, 349, 354, 355], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 96, "column": 61}}, {"id": 217, "type": "type_identifier", "text": "ctF G", "parent": 216, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 7}}, {"id": 218, "type": "function_declarator", "text": "tSrc() const override;\n", "parent": 216, "children": [219, 220, 221, 222], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 31}}, {"id": 219, "type": "identifier", "text": "tSrc()", "parent": 218, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 14}}, {"id": 220, "type": "parameter_list", "text": " c", "parent": 218, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 16}}, {"id": 221, "type": "identifier", "text": "nst o", "parent": 218, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 22}}, {"id": 222, "type": "identifier", "text": "erride;\n", "parent": 218, "children": [], "start_point": {"row": 68, "column": 23}, "end_point": {"row": 68, "column": 31}}, {"id": 223, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 6}}, {"id": 224, "type": "ERROR", "text": "tSrc(RectF src) override;\n\n\t\tVector2DF G", "parent": 216, "children": [225, 232], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 71, "column": 11}}, {"id": 225, "type": "function_declarator", "text": "tSrc(RectF src) override;\n", "parent": 224, "children": [226, 227, 231], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 33}}, {"id": 226, "type": "identifier", "text": "tSrc(R", "parent": 225, "children": [], "start_point": {"row": 69, "column": 7}, "end_point": {"row": 69, "column": 13}}, {"id": 227, "type": "parameter_list", "text": "ectF src) o", "parent": 225, "children": [228], "start_point": {"row": 69, "column": 13}, "end_point": {"row": 69, "column": 24}}, {"id": 228, "type": "parameter_declaration", "text": "ctF src) ", "parent": 227, "children": [229, 230], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 23}}, {"id": 229, "type": "type_identifier", "text": "ctF s", "parent": 228, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 19}}, {"id": 230, "type": "identifier", "text": "c) ", "parent": 228, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 23}}, {"id": 231, "type": "identifier", "text": "erride;\n", "parent": 225, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 33}}, {"id": 232, "type": "identifier", "text": "ctor2DF G", "parent": 224, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 11}}, {"id": 233, "type": "function_declarator", "text": "tPosition() const override;\n", "parent": 216, "children": [234, 235, 236, 237], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 40}}, {"id": 234, "type": "identifier", "text": "tPosition()", "parent": 233, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 23}}, {"id": 235, "type": "parameter_list", "text": " c", "parent": 233, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 25}}, {"id": 236, "type": "identifier", "text": "nst o", "parent": 233, "children": [], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 31}}, {"id": 237, "type": "identifier", "text": "erride;\n", "parent": 233, "children": [], "start_point": {"row": 71, "column": 32}, "end_point": {"row": 71, "column": 40}}, {"id": 238, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 6}}, {"id": 239, "type": "function_declarator", "text": "tPosition(Vector2DF position) override;\n", "parent": 216, "children": [240, 241, 245], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 47}}, {"id": 240, "type": "identifier", "text": "tPosition(V", "parent": 239, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 18}}, {"id": 241, "type": "parameter_list", "text": "ector2DF position) o", "parent": 239, "children": [242], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 38}}, {"id": 242, "type": "parameter_declaration", "text": "ctor2DF position) ", "parent": 241, "children": [243, 244], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 37}}, {"id": 243, "type": "type_identifier", "text": "ctor2DF p", "parent": 242, "children": [], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 28}}, {"id": 244, "type": "identifier", "text": "sition) ", "parent": 242, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 37}}, {"id": 245, "type": "identifier", "text": "erride;\n", "parent": 239, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 47}}, {"id": 246, "type": "primitive_type", "text": "oat G", "parent": 216, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 7}}, {"id": 247, "type": "function_declarator", "text": "tAngle() const override;\n", "parent": 216, "children": [248, 249, 250, 251], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 33}}, {"id": 248, "type": "identifier", "text": "tAngle()", "parent": 247, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 16}}, {"id": 249, "type": "parameter_list", "text": " c", "parent": 247, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 18}}, {"id": 250, "type": "identifier", "text": "nst o", "parent": 247, "children": [], "start_point": {"row": 74, "column": 19}, "end_point": {"row": 74, "column": 24}}, {"id": 251, "type": "identifier", "text": "erride;\n", "parent": 247, "children": [], "start_point": {"row": 74, "column": 25}, "end_point": {"row": 74, "column": 33}}, {"id": 252, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 6}}, {"id": 253, "type": "ERROR", "text": "tAngle(float angle) override;\n\n\t\tVector2DF G", "parent": 216, "children": [254, 261], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 77, "column": 11}}, {"id": 254, "type": "function_declarator", "text": "tAngle(float angle) override;\n", "parent": 253, "children": [255, 256, 260], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 37}}, {"id": 255, "type": "identifier", "text": "tAngle(f", "parent": 254, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 15}}, {"id": 256, "type": "parameter_list", "text": "loat angle) o", "parent": 254, "children": [257], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 28}}, {"id": 257, "type": "parameter_declaration", "text": "oat angle) ", "parent": 256, "children": [258, 259], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 27}}, {"id": 258, "type": "primitive_type", "text": "oat a", "parent": 257, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 21}}, {"id": 259, "type": "identifier", "text": "gle) ", "parent": 257, "children": [], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 27}}, {"id": 260, "type": "identifier", "text": "erride;\n", "parent": 254, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 37}}, {"id": 261, "type": "identifier", "text": "ctor2DF G", "parent": 253, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 11}}, {"id": 262, "type": "function_declarator", "text": "tScale() const override;\n", "parent": 216, "children": [263, 264, 265, 266], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 37}}, {"id": 263, "type": "identifier", "text": "tScale()", "parent": 262, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 20}}, {"id": 264, "type": "parameter_list", "text": " c", "parent": 262, "children": [], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 22}}, {"id": 265, "type": "identifier", "text": "nst o", "parent": 262, "children": [], "start_point": {"row": 77, "column": 23}, "end_point": {"row": 77, "column": 28}}, {"id": 266, "type": "identifier", "text": "erride;\n", "parent": 262, "children": [], "start_point": {"row": 77, "column": 29}, "end_point": {"row": 77, "column": 37}}, {"id": 267, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 6}}, {"id": 268, "type": "ERROR", "text": "tScale(Vector2DF scale) override;\n\n\t\tVector2DF G", "parent": 216, "children": [269, 276], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 80, "column": 11}}, {"id": 269, "type": "function_declarator", "text": "tScale(Vector2DF scale) override;\n", "parent": 268, "children": [270, 271, 275], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 41}}, {"id": 270, "type": "identifier", "text": "tScale(V", "parent": 269, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 15}}, {"id": 271, "type": "parameter_list", "text": "ector2DF scale) o", "parent": 269, "children": [272], "start_point": {"row": 78, "column": 15}, "end_point": {"row": 78, "column": 32}}, {"id": 272, "type": "parameter_declaration", "text": "ctor2DF scale) ", "parent": 271, "children": [273, 274], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 31}}, {"id": 273, "type": "type_identifier", "text": "ctor2DF s", "parent": 272, "children": [], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 25}}, {"id": 274, "type": "identifier", "text": "ale) ", "parent": 272, "children": [], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 31}}, {"id": 275, "type": "identifier", "text": "erride;\n", "parent": 269, "children": [], "start_point": {"row": 78, "column": 33}, "end_point": {"row": 78, "column": 41}}, {"id": 276, "type": "identifier", "text": "ctor2DF G", "parent": 268, "children": [], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 11}}, {"id": 277, "type": "function_declarator", "text": "tCenterPosition() const override;\n", "parent": 216, "children": [278, 279, 280, 281], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 46}}, {"id": 278, "type": "identifier", "text": "tCenterPosition()", "parent": 277, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 29}}, {"id": 279, "type": "parameter_list", "text": " c", "parent": 277, "children": [], "start_point": {"row": 80, "column": 29}, "end_point": {"row": 80, "column": 31}}, {"id": 280, "type": "identifier", "text": "nst o", "parent": 277, "children": [], "start_point": {"row": 80, "column": 32}, "end_point": {"row": 80, "column": 37}}, {"id": 281, "type": "identifier", "text": "erride;\n", "parent": 277, "children": [], "start_point": {"row": 80, "column": 38}, "end_point": {"row": 80, "column": 46}}, {"id": 282, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 6}}, {"id": 283, "type": "ERROR", "text": "tCenterPosition(Vector2DF position) override;\n\n\t\tColor G", "parent": 216, "children": [284, 291], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 83, "column": 7}}, {"id": 284, "type": "function_declarator", "text": "tCenterPosition(Vector2DF position) override;\n", "parent": 283, "children": [285, 286, 290], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 53}}, {"id": 285, "type": "identifier", "text": "tCenterPosition(V", "parent": 284, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 24}}, {"id": 286, "type": "parameter_list", "text": "ector2DF position) o", "parent": 284, "children": [287], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 44}}, {"id": 287, "type": "parameter_declaration", "text": "ctor2DF position) ", "parent": 286, "children": [288, 289], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 43}}, {"id": 288, "type": "type_identifier", "text": "ctor2DF p", "parent": 287, "children": [], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 34}}, {"id": 289, "type": "identifier", "text": "sition) ", "parent": 287, "children": [], "start_point": {"row": 81, "column": 35}, "end_point": {"row": 81, "column": 43}}, {"id": 290, "type": "identifier", "text": "erride;\n", "parent": 284, "children": [], "start_point": {"row": 81, "column": 45}, "end_point": {"row": 81, "column": 53}}, {"id": 291, "type": "identifier", "text": "lor G", "parent": 283, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 7}}, {"id": 292, "type": "function_declarator", "text": "tColor() const override;\n", "parent": 216, "children": [293, 294, 295, 296], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 33}}, {"id": 293, "type": "identifier", "text": "tColor()", "parent": 292, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 16}}, {"id": 294, "type": "parameter_list", "text": " c", "parent": 292, "children": [], "start_point": {"row": 83, "column": 16}, "end_point": {"row": 83, "column": 18}}, {"id": 295, "type": "identifier", "text": "nst o", "parent": 292, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 24}}, {"id": 296, "type": "identifier", "text": "erride;\n", "parent": 292, "children": [], "start_point": {"row": 83, "column": 25}, "end_point": {"row": 83, "column": 33}}, {"id": 297, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 6}}, {"id": 298, "type": "function_declarator", "text": "tColor(Color color) override;\n", "parent": 216, "children": [299, 300, 304], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 37}}, {"id": 299, "type": "identifier", "text": "tColor(C", "parent": 298, "children": [], "start_point": {"row": 84, "column": 7}, "end_point": {"row": 84, "column": 15}}, {"id": 300, "type": "parameter_list", "text": "olor color) o", "parent": 298, "children": [301], "start_point": {"row": 84, "column": 15}, "end_point": {"row": 84, "column": 28}}, {"id": 301, "type": "parameter_declaration", "text": "lor color) ", "parent": 300, "children": [302, 303], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 27}}, {"id": 302, "type": "type_identifier", "text": "lor c", "parent": 301, "children": [], "start_point": {"row": 84, "column": 16}, "end_point": {"row": 84, "column": 21}}, {"id": 303, "type": "identifier", "text": "lor) ", "parent": 301, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 27}}, {"id": 304, "type": "identifier", "text": "erride;\n", "parent": 298, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 37}}, {"id": 305, "type": "primitive_type", "text": "ol G", "parent": 216, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 6}}, {"id": 306, "type": "function_declarator", "text": "tTurnLR() const override;\n", "parent": 216, "children": [307, 308, 309, 310], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 33}}, {"id": 307, "type": "identifier", "text": "tTurnLR()", "parent": 306, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 16}}, {"id": 308, "type": "parameter_list", "text": " c", "parent": 306, "children": [], "start_point": {"row": 86, "column": 16}, "end_point": {"row": 86, "column": 18}}, {"id": 309, "type": "identifier", "text": "nst o", "parent": 306, "children": [], "start_point": {"row": 86, "column": 19}, "end_point": {"row": 86, "column": 24}}, {"id": 310, "type": "identifier", "text": "erride;\n", "parent": 306, "children": [], "start_point": {"row": 86, "column": 25}, "end_point": {"row": 86, "column": 33}}, {"id": 311, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 6}}, {"id": 312, "type": "function_declarator", "text": "tTurnLR(bool turnLR) override;\n", "parent": 216, "children": [313, 314, 318], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 38}}, {"id": 313, "type": "identifier", "text": "tTurnLR(b", "parent": 312, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 16}}, {"id": 314, "type": "parameter_list", "text": "ool turnLR) o", "parent": 312, "children": [315], "start_point": {"row": 87, "column": 16}, "end_point": {"row": 87, "column": 29}}, {"id": 315, "type": "parameter_declaration", "text": "ol turnLR) ", "parent": 314, "children": [316, 317], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 28}}, {"id": 316, "type": "primitive_type", "text": "ol t", "parent": 315, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 21}}, {"id": 317, "type": "identifier", "text": "rnLR) ", "parent": 315, "children": [], "start_point": {"row": 87, "column": 22}, "end_point": {"row": 87, "column": 28}}, {"id": 318, "type": "identifier", "text": "erride;\n", "parent": 312, "children": [], "start_point": {"row": 87, "column": 30}, "end_point": {"row": 87, "column": 38}}, {"id": 319, "type": "primitive_type", "text": "ol G", "parent": 216, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 6}}, {"id": 320, "type": "function_declarator", "text": "tTurnUL() const override;\n", "parent": 216, "children": [321, 322, 323, 324], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 33}}, {"id": 321, "type": "identifier", "text": "tTurnUL()", "parent": 320, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 16}}, {"id": 322, "type": "parameter_list", "text": " c", "parent": 320, "children": [], "start_point": {"row": 89, "column": 16}, "end_point": {"row": 89, "column": 18}}, {"id": 323, "type": "identifier", "text": "nst o", "parent": 320, "children": [], "start_point": {"row": 89, "column": 19}, "end_point": {"row": 89, "column": 24}}, {"id": 324, "type": "identifier", "text": "erride;\n", "parent": 320, "children": [], "start_point": {"row": 89, "column": 25}, "end_point": {"row": 89, "column": 33}}, {"id": 325, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 6}}, {"id": 326, "type": "function_declarator", "text": "tTurnUL(bool turnUL) override;\n", "parent": 216, "children": [327, 328, 332], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 38}}, {"id": 327, "type": "identifier", "text": "tTurnUL(b", "parent": 326, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 16}}, {"id": 328, "type": "parameter_list", "text": "ool turnUL) o", "parent": 326, "children": [329], "start_point": {"row": 90, "column": 16}, "end_point": {"row": 90, "column": 29}}, {"id": 329, "type": "parameter_declaration", "text": "ol turnUL) ", "parent": 328, "children": [330, 331], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 28}}, {"id": 330, "type": "primitive_type", "text": "ol t", "parent": 329, "children": [], "start_point": {"row": 90, "column": 17}, "end_point": {"row": 90, "column": 21}}, {"id": 331, "type": "identifier", "text": "rnUL) ", "parent": 329, "children": [], "start_point": {"row": 90, "column": 22}, "end_point": {"row": 90, "column": 28}}, {"id": 332, "type": "identifier", "text": "erride;\n", "parent": 326, "children": [], "start_point": {"row": 90, "column": 30}, "end_point": {"row": 90, "column": 38}}, {"id": 333, "type": "primitive_type", "text": "t G", "parent": 216, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 5}}, {"id": 334, "type": "function_declarator", "text": "tDrawingPriority() const override;\n", "parent": 216, "children": [335, 336, 337, 338], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 41}}, {"id": 335, "type": "identifier", "text": "tDrawingPriority()", "parent": 334, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 24}}, {"id": 336, "type": "parameter_list", "text": " c", "parent": 334, "children": [], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 26}}, {"id": 337, "type": "identifier", "text": "nst o", "parent": 334, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 32}}, {"id": 338, "type": "identifier", "text": "erride;\n", "parent": 334, "children": [], "start_point": {"row": 92, "column": 33}, "end_point": {"row": 92, "column": 41}}, {"id": 339, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 6}}, {"id": 340, "type": "ERROR", "text": "tDrawingPriority(int priority) override;\n\n\t\tAlphaBlendMode G", "parent": 216, "children": [341, 348], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 95, "column": 16}}, {"id": 341, "type": "function_declarator", "text": "tDrawingPriority(int priority) override;\n", "parent": 340, "children": [342, 343, 347], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 48}}, {"id": 342, "type": "identifier", "text": "tDrawingPriority(i", "parent": 341, "children": [], "start_point": {"row": 93, "column": 7}, "end_point": {"row": 93, "column": 25}}, {"id": 343, "type": "parameter_list", "text": "nt priority) o", "parent": 341, "children": [344], "start_point": {"row": 93, "column": 25}, "end_point": {"row": 93, "column": 39}}, {"id": 344, "type": "parameter_declaration", "text": "t priority) ", "parent": 343, "children": [345, 346], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 38}}, {"id": 345, "type": "primitive_type", "text": "t p", "parent": 344, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 29}}, {"id": 346, "type": "identifier", "text": "iority) ", "parent": 344, "children": [], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 38}}, {"id": 347, "type": "identifier", "text": "erride;\n", "parent": 341, "children": [], "start_point": {"row": 93, "column": 40}, "end_point": {"row": 93, "column": 48}}, {"id": 348, "type": "identifier", "text": "phaBlendMode G", "parent": 340, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 16}}, {"id": 349, "type": "function_declarator", "text": "tAlphaBlendMode() const override;\n", "parent": 216, "children": [350, 351, 352, 353], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 51}}, {"id": 350, "type": "identifier", "text": "tAlphaBlendMode()", "parent": 349, "children": [], "start_point": {"row": 95, "column": 17}, "end_point": {"row": 95, "column": 34}}, {"id": 351, "type": "parameter_list", "text": " c", "parent": 349, "children": [], "start_point": {"row": 95, "column": 34}, "end_point": {"row": 95, "column": 36}}, {"id": 352, "type": "identifier", "text": "nst o", "parent": 349, "children": [], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 42}}, {"id": 353, "type": "identifier", "text": "erride;\n", "parent": 349, "children": [], "start_point": {"row": 95, "column": 43}, "end_point": {"row": 95, "column": 51}}, {"id": 354, "type": "primitive_type", "text": "id S", "parent": 216, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 6}}, {"id": 355, "type": "function_declarator", "text": "tAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n", "parent": 216, "children": [356, 357, 361], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 60}}, {"id": 356, "type": "identifier", "text": "tAlphaBlendMode(A", "parent": 355, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 24}}, {"id": 357, "type": "parameter_list", "text": "lphaBlendMode alphaBlend) o", "parent": 355, "children": [358], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 51}}, {"id": 358, "type": "parameter_declaration", "text": "phaBlendMode alphaBlend) ", "parent": 357, "children": [359, 360], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 50}}, {"id": 359, "type": "type_identifier", "text": "phaBlendMode a", "parent": 358, "children": [], "start_point": {"row": 96, "column": 25}, "end_point": {"row": 96, "column": 39}}, {"id": 360, "type": "identifier", "text": "phaBlend) ", "parent": 358, "children": [], "start_point": {"row": 96, "column": 40}, "end_point": {"row": 96, "column": 50}}, {"id": 361, "type": "identifier", "text": "erride;\n", "parent": 355, "children": [], "start_point": {"row": 96, "column": 52}, "end_point": {"row": 96, "column": 60}}, {"id": 362, "type": "declaration", "text": "id SetTextureFilterType(TextureFilterType textureFilterType) override;\n\t\tTextureFilterType GetTextureFilterType() const override;\n\n\t\tCoreChip2D_Imp(Graphics* graphics);\n\t", "parent": 198, "children": [363, 364, 378], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 101, "column": 37}}, {"id": 363, "type": "primitive_type", "text": "id S", "parent": 362, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 6}}, {"id": 364, "type": "ERROR", "text": "tTextureFilterType(TextureFilterType textureFilterType) override;\n\t\tTextureFilterType GetTextureFilterType() const override;\n\n", "parent": 362, "children": [365, 372, 373], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 99, "column": 58}}, {"id": 365, "type": "function_declarator", "text": "tTextureFilterType(TextureFilterType textureFilterType) override;\n", "parent": 364, "children": [366, 367, 371], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 73}}, {"id": 366, "type": "identifier", "text": "tTextureFilterType(T", "parent": 365, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 27}}, {"id": 367, "type": "parameter_list", "text": "extureFilterType textureFilterType) o", "parent": 365, "children": [368], "start_point": {"row": 98, "column": 27}, "end_point": {"row": 98, "column": 64}}, {"id": 368, "type": "parameter_declaration", "text": "xtureFilterType textureFilterType) ", "parent": 367, "children": [369, 370], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 63}}, {"id": 369, "type": "type_identifier", "text": "xtureFilterType t", "parent": 368, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 45}}, {"id": 370, "type": "identifier", "text": "xtureFilterType) ", "parent": 368, "children": [], "start_point": {"row": 98, "column": 46}, "end_point": {"row": 98, "column": 63}}, {"id": 371, "type": "identifier", "text": "erride;\n", "parent": 365, "children": [], "start_point": {"row": 98, "column": 65}, "end_point": {"row": 98, "column": 73}}, {"id": 372, "type": "identifier", "text": "xtureFilterType G", "parent": 364, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 19}}, {"id": 373, "type": "function_declarator", "text": "tTextureFilterType() const override;\n", "parent": 364, "children": [374, 375, 376, 377], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 57}}, {"id": 374, "type": "identifier", "text": "tTextureFilterType()", "parent": 373, "children": [], "start_point": {"row": 99, "column": 20}, "end_point": {"row": 99, "column": 40}}, {"id": 375, "type": "parameter_list", "text": " c", "parent": 373, "children": [], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 42}}, {"id": 376, "type": "identifier", "text": "nst o", "parent": 373, "children": [], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 48}}, {"id": 377, "type": "identifier", "text": "erride;\n", "parent": 373, "children": [], "start_point": {"row": 99, "column": 49}, "end_point": {"row": 99, "column": 57}}, {"id": 378, "type": "function_declarator", "text": "reChip2D_Imp(Graphics* graphics);\n", "parent": 362, "children": [379, 380], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 36}}, {"id": 379, "type": "identifier", "text": "reChip2D_Imp(G", "parent": 378, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 16}}, {"id": 380, "type": "parameter_list", "text": "raphics* graphics);\n", "parent": 378, "children": [381], "start_point": {"row": 101, "column": 16}, "end_point": {"row": 101, "column": 36}}, {"id": 381, "type": "parameter_declaration", "text": "aphics* graphics);", "parent": 380, "children": [382, 383], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 35}}, {"id": 382, "type": "type_identifier", "text": "aphics* ", "parent": 381, "children": [], "start_point": {"row": 101, "column": 17}, "end_point": {"row": 101, "column": 25}}, {"id": 383, "type": "pointer_declarator", "text": "graphics);", "parent": 381, "children": [384, 385], "start_point": {"row": 101, "column": 25}, "end_point": {"row": 101, "column": 35}}, {"id": 384, "type": "*", "text": "g", "parent": 383, "children": [], "start_point": {"row": 101, "column": 25}, "end_point": {"row": 101, "column": 26}}, {"id": 385, "type": "identifier", "text": "aphics);", "parent": 383, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 35}}, {"id": 386, "type": "declaration", "text": "rtual ~CoreChip2D_Imp();\n\n", "parent": 198, "children": [387, 388, 390], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 28}}, {"id": 387, "type": "type_identifier", "text": "rtual ~", "parent": 386, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 9}}, {"id": 388, "type": "ERROR", "text": "o", "parent": 386, "children": [389], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 11}}, {"id": 389, "type": "~", "text": "o", "parent": 388, "children": [], "start_point": {"row": 102, "column": 10}, "end_point": {"row": 102, "column": 11}}, {"id": 390, "type": "function_declarator", "text": "reChip2D_Imp();\n", "parent": 386, "children": [391], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 27}}, {"id": 391, "type": "identifier", "text": "reChip2D_Imp()", "parent": 390, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 25}}, {"id": 392, "type": "ERROR", "text": "f _", "parent": 198, "children": [393], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 3}}, {"id": 393, "type": "#if", "text": "f _", "parent": 392, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 3}}, {"id": 394, "type": "declaration", "text": "CULLING_2D__\n\t\tvoid SetCullingObject(culling2d::Object *cullingObj);\n\t", "parent": 198, "children": [395, 396, 398], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 105, "column": 55}}, {"id": 395, "type": "type_identifier", "text": "CULLING_2D__\n\t", "parent": 394, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 18}}, {"id": 396, "type": "ERROR", "text": "id S", "parent": 394, "children": [397], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 6}}, {"id": 397, "type": "identifier", "text": "id S", "parent": 396, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 6}}, {"id": 398, "type": "function_declarator", "text": "tCullingObject(culling2d::Object *cullingObj);\n", "parent": 394, "children": [399, 400], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 54}}, {"id": 399, "type": "identifier", "text": "tCullingObject(c", "parent": 398, "children": [], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 23}}, {"id": 400, "type": "parameter_list", "text": "ulling2d::Object *cullingObj);\n", "parent": 398, "children": [401], "start_point": {"row": 105, "column": 23}, "end_point": {"row": 105, "column": 54}}, {"id": 401, "type": "parameter_declaration", "text": "lling2d::Object *cullingObj);", "parent": 400, "children": [402, 403, 405], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 53}}, {"id": 402, "type": "type_identifier", "text": "lling2d::", "parent": 401, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 33}}, {"id": 403, "type": "ERROR", "text": "Object *", "parent": 401, "children": [404], "start_point": {"row": 105, "column": 33}, "end_point": {"row": 105, "column": 41}}, {"id": 404, "type": "identifier", "text": "ject *", "parent": 403, "children": [], "start_point": {"row": 105, "column": 35}, "end_point": {"row": 105, "column": 41}}, {"id": 405, "type": "pointer_declarator", "text": "ullingObj);", "parent": 401, "children": [406, 407], "start_point": {"row": 105, "column": 42}, "end_point": {"row": 105, "column": 53}}, {"id": 406, "type": "*", "text": "u", "parent": 405, "children": [], "start_point": {"row": 105, "column": 42}, "end_point": {"row": 105, "column": 43}}, {"id": 407, "type": "identifier", "text": "llingObj);", "parent": 405, "children": [], "start_point": {"row": 105, "column": 43}, "end_point": {"row": 105, "column": 53}}, {"id": 408, "type": "declaration", "text": "lling2d::Object* GetCullingObject() const;\n\n", "parent": 198, "children": [409, 410, 412], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 46}}, {"id": 409, "type": "type_identifier", "text": "lling2d::", "parent": 408, "children": [], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 11}}, {"id": 410, "type": "ERROR", "text": "Object* ", "parent": 408, "children": [411], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 19}}, {"id": 411, "type": "identifier", "text": "ject* ", "parent": 410, "children": [], "start_point": {"row": 106, "column": 13}, "end_point": {"row": 106, "column": 19}}, {"id": 412, "type": "pointer_declarator", "text": "GetCullingObject() const;\n", "parent": 408, "children": [413, 414], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 45}}, {"id": 413, "type": "*", "text": "G", "parent": 412, "children": [], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 20}}, {"id": 414, "type": "function_declarator", "text": "tCullingObject() const;\n", "parent": 412, "children": [415, 416, 417], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 45}}, {"id": 415, "type": "identifier", "text": "tCullingObject()", "parent": 414, "children": [], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 37}}, {"id": 416, "type": "parameter_list", "text": " c", "parent": 414, "children": [], "start_point": {"row": 106, "column": 37}, "end_point": {"row": 106, "column": 39}}, {"id": 417, "type": "identifier", "text": "nst;\n", "parent": 414, "children": [], "start_point": {"row": 106, "column": 40}, "end_point": {"row": 106, "column": 45}}, {"id": 418, "type": "declaration", "text": "lling2d::Circle GetBoundingCircle();\n#", "parent": 198, "children": [419, 420, 422], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 40}}, {"id": 419, "type": "type_identifier", "text": "lling2d::", "parent": 418, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 11}}, {"id": 420, "type": "ERROR", "text": "Circle G", "parent": 418, "children": [421], "start_point": {"row": 108, "column": 11}, "end_point": {"row": 108, "column": 19}}, {"id": 421, "type": "identifier", "text": "rcle G", "parent": 420, "children": [], "start_point": {"row": 108, "column": 13}, "end_point": {"row": 108, "column": 19}}, {"id": 422, "type": "function_declarator", "text": "tBoundingCircle();\n", "parent": 418, "children": [423], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 39}}, {"id": 423, "type": "identifier", "text": "tBoundingCircle()", "parent": 422, "children": [], "start_point": {"row": 108, "column": 20}, "end_point": {"row": 108, "column": 37}}, {"id": 424, "type": "ERROR", "text": "ndif\n\n#if !SWIG\n\tpublic:\n\t\tvirtual int GetRef() {", "parent": 198, "children": [425, 426, 427, 428, 429, 433], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 113, "column": 22}}, {"id": 425, "type": "#endif", "text": "ndif\n\n", "parent": 424, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 6}}, {"id": 426, "type": "#if", "text": "f !", "parent": 424, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 3}}, {"id": 427, "type": "!", "text": "W", "parent": 424, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 5}}, {"id": 428, "type": "type_identifier", "text": "IG\n\t", "parent": 424, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 9}}, {"id": 429, "type": "ERROR", "text": "blic:\n\t\tvirtual int G", "parent": 424, "children": [430, 431, 432], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 113, "column": 13}}, {"id": 430, "type": "identifier", "text": "blic:\n", "parent": 429, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 7}}, {"id": 431, "type": "identifier", "text": "rtual i", "parent": 429, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 9}}, {"id": 432, "type": "identifier", "text": "t G", "parent": 429, "children": [], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 13}}, {"id": 433, "type": "function_declarator", "text": "tRef() {", "parent": 424, "children": [434], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 22}}, {"id": 434, "type": "identifier", "text": "tRef()", "parent": 433, "children": [], "start_point": {"row": 113, "column": 14}, "end_point": {"row": 113, "column": 20}}, {"id": 435, "type": "return_statement", "text": "turn ReferenceObject::GetRef(); }", "parent": 198, "children": [436, 438], "start_point": {"row": 113, "column": 25}, "end_point": {"row": 113, "column": 58}}, {"id": 436, "type": "ERROR", "text": "ferenceObject::Ge", "parent": 435, "children": [437], "start_point": {"row": 113, "column": 32}, "end_point": {"row": 113, "column": 49}}, {"id": 437, "type": "identifier", "text": "ferenceObject::", "parent": 436, "children": [], "start_point": {"row": 113, "column": 32}, "end_point": {"row": 113, "column": 47}}, {"id": 438, "type": "call_expression", "text": "tRef(); ", "parent": 435, "children": [439], "start_point": {"row": 113, "column": 49}, "end_point": {"row": 113, "column": 57}}, {"id": 439, "type": "identifier", "text": "tRef()", "parent": 438, "children": [], "start_point": {"row": 113, "column": 49}, "end_point": {"row": 113, "column": 55}}, {"id": 440, "type": "function_definition", "text": "rtual int AddRef() { return ReferenceObject::AddRef(); }\n\t", "parent": 168, "children": [441, 442, 444], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 60}}, {"id": 441, "type": "type_identifier", "text": "rtual i", "parent": 440, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 9}}, {"id": 442, "type": "ERROR", "text": "t A", "parent": 440, "children": [443], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 13}}, {"id": 443, "type": "identifier", "text": "t A", "parent": 442, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 13}}, {"id": 444, "type": "function_declarator", "text": "dRef() {", "parent": 440, "children": [445], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 22}}, {"id": 445, "type": "identifier", "text": "dRef()", "parent": 444, "children": [], "start_point": {"row": 114, "column": 14}, "end_point": {"row": 114, "column": 20}}, {"id": 446, "type": "return_statement", "text": "turn ReferenceObject::AddRef(); }", "parent": 440, "children": [447, 449], "start_point": {"row": 114, "column": 25}, "end_point": {"row": 114, "column": 58}}, {"id": 447, "type": "ERROR", "text": "ferenceObject::Ad", "parent": 446, "children": [448], "start_point": {"row": 114, "column": 32}, "end_point": {"row": 114, "column": 49}}, {"id": 448, "type": "identifier", "text": "ferenceObject::", "parent": 447, "children": [], "start_point": {"row": 114, "column": 32}, "end_point": {"row": 114, "column": 47}}, {"id": 449, "type": "call_expression", "text": "dRef(); ", "parent": 446, "children": [450], "start_point": {"row": 114, "column": 49}, "end_point": {"row": 114, "column": 57}}, {"id": 450, "type": "identifier", "text": "dRef()", "parent": 449, "children": [], "start_point": {"row": 114, "column": 49}, "end_point": {"row": 114, "column": 55}}, {"id": 451, "type": "function_definition", "text": "rtual int Release() { return ReferenceObject::Release(); }\n#", "parent": 168, "children": [452, 453, 455], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 62}}, {"id": 452, "type": "type_identifier", "text": "rtual i", "parent": 451, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 9}}, {"id": 453, "type": "ERROR", "text": "t R", "parent": 451, "children": [454], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 13}}, {"id": 454, "type": "identifier", "text": "t R", "parent": 453, "children": [], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 13}}, {"id": 455, "type": "function_declarator", "text": "lease() {", "parent": 451, "children": [456], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 23}}, {"id": 456, "type": "identifier", "text": "lease()", "parent": 455, "children": [], "start_point": {"row": 115, "column": 14}, "end_point": {"row": 115, "column": 21}}, {"id": 457, "type": "return_statement", "text": "turn ReferenceObject::Release(); }", "parent": 451, "children": [458, 460], "start_point": {"row": 115, "column": 26}, "end_point": {"row": 115, "column": 60}}, {"id": 458, "type": "ERROR", "text": "ferenceObject::Re", "parent": 457, "children": [459], "start_point": {"row": 115, "column": 33}, "end_point": {"row": 115, "column": 50}}, {"id": 459, "type": "identifier", "text": "ferenceObject::", "parent": 458, "children": [], "start_point": {"row": 115, "column": 33}, "end_point": {"row": 115, "column": 48}}, {"id": 460, "type": "call_expression", "text": "lease(); ", "parent": 457, "children": [461], "start_point": {"row": 115, "column": 50}, "end_point": {"row": 115, "column": 59}}, {"id": 461, "type": "identifier", "text": "lease()", "parent": 460, "children": [], "start_point": {"row": 115, "column": 50}, "end_point": {"row": 115, "column": 57}}, {"id": 462, "type": "#endif", "text": "ndif\n\t", "parent": 168, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 108, 114, 124, 132, 138, 152, 159, 176, 198, 200, 208, 218, 225, 233, 239, 247, 254, 262, 269, 277, 284, 292, 298, 306, 312, 320, 326, 334, 341, 349, 355, 365, 373, 378, 390, 398, 414, 422, 433, 440, 444, 451, 455], "variables": [21, 34, 43, 52, 61, 64, 67, 70, 73, 76, 79, 82, 85, 95, 100, 104, 112, 117, 122, 128, 136, 141, 155, 162, 174, 179, 203, 211, 228, 242, 257, 272, 287, 301, 315, 329, 344, 358, 362, 368, 381, 386, 394, 401, 408, 418], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [170, 190, 191, 196, 438, 449, 460], "assignments": [], "loops": [], "conditionals": [19, 20, 22, 23, 25, 26, 28, 29, 30, 31, 33, 35, 39, 44, 48, 53, 57, 62, 63, 65, 66, 69, 72, 74, 75, 77, 78, 80, 81, 84, 86, 87, 88, 89, 90, 93, 96, 99, 102, 103, 105, 109, 111, 115, 118, 121, 125, 127, 129, 133, 135, 139, 142, 145, 146, 147, 148, 153, 156, 160, 164, 165, 167, 168, 169, 172, 177, 180, 182, 184, 186, 188, 192, 194, 197, 199, 201, 204, 206, 209, 212, 215, 217, 219, 221, 222, 226, 229, 230, 231, 232, 234, 236, 237, 240, 243, 244, 245, 248, 250, 251, 255, 259, 260, 261, 263, 265, 266, 270, 273, 274, 275, 276, 278, 280, 281, 285, 288, 289, 290, 291, 293, 295, 296, 299, 302, 303, 304, 307, 309, 310, 313, 317, 318, 321, 323, 324, 327, 331, 332, 335, 337, 338, 342, 346, 347, 348, 350, 352, 353, 356, 359, 360, 361, 366, 369, 370, 371, 372, 374, 376, 377, 379, 382, 385, 387, 391, 393, 395, 397, 399, 402, 404, 407, 409, 411, 415, 417, 419, 421, 423, 425, 426, 428, 430, 431, 432, 434, 437, 439, 441, 443, 445, 448, 450, 452, 454, 456, 459, 461, 462], "returns": [435, 446, 457], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "CoreMapObject2D_Imp;", "text_snippet": "mespace asd {\n\tclass CoreMapObject2D_Imp;\n\t//-------------------------------------------------------"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "tTexture_() const;\n"}, {"node_id": 114, "universal_type": "function", "name": "unknown", "text_snippet": "tTexture_(Texture2D* texture);\n"}, {"node_id": 124, "universal_type": "function", "name": "unknown", "text_snippet": "tCullingUpdate();\n"}, {"node_id": 132, "universal_type": "function", "name": "unknown", "text_snippet": "tMapObject2D() const;\n"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "tMapObject2D(CoreMapObject2D_Imp* mapObject);\n"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "tAlreadyCullingUpdated() c"}, {"node_id": 159, "universal_type": "function", "name": "unknown", "text_snippet": "tAlreadyCullingUpdated(bool cullingUpdated);\n"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "tTexture(std::shared_ptr<Texture2D> texture);\n"}, {"node_id": 198, "universal_type": "function", "name": "SetTexture", "text_snippet": "ansformInfo2D GetTransformInfo2D() const;\n#endif\n\t\tvoid SetTexture(Texture2D* texture);\n\n\t\tRectF Get"}, {"node_id": 200, "universal_type": "function", "name": "unknown", "text_snippet": "tTransformInfo2D() c"}, {"node_id": 208, "universal_type": "function", "name": "unknown", "text_snippet": "tTexture(Texture2D* texture);\n"}, {"node_id": 218, "universal_type": "function", "name": "unknown", "text_snippet": "tSrc() const override;\n"}, {"node_id": 225, "universal_type": "function", "name": "unknown", "text_snippet": "tSrc(RectF src) override;\n"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "tPosition() const override;\n"}, {"node_id": 239, "universal_type": "function", "name": "unknown", "text_snippet": "tPosition(Vector2DF position) override;\n"}, {"node_id": 247, "universal_type": "function", "name": "unknown", "text_snippet": "tAngle() const override;\n"}, {"node_id": 254, "universal_type": "function", "name": "unknown", "text_snippet": "tAngle(float angle) override;\n"}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "tScale() const override;\n"}, {"node_id": 269, "universal_type": "function", "name": "unknown", "text_snippet": "tScale(Vector2DF scale) override;\n"}, {"node_id": 277, "universal_type": "function", "name": "unknown", "text_snippet": "tCenterPosition() const override;\n"}, {"node_id": 284, "universal_type": "function", "name": "unknown", "text_snippet": "tCenterPosition(Vector2DF position) override;\n"}, {"node_id": 292, "universal_type": "function", "name": "unknown", "text_snippet": "tColor() const override;\n"}, {"node_id": 298, "universal_type": "function", "name": "unknown", "text_snippet": "tColor(Color color) override;\n"}, {"node_id": 306, "universal_type": "function", "name": "unknown", "text_snippet": "tTurnLR() const override;\n"}, {"node_id": 312, "universal_type": "function", "name": "unknown", "text_snippet": "tTurnLR(bool turnLR) override;\n"}, {"node_id": 320, "universal_type": "function", "name": "unknown", "text_snippet": "tTurnUL() const override;\n"}, {"node_id": 326, "universal_type": "function", "name": "unknown", "text_snippet": "tTurnUL(bool turnUL) override;\n"}, {"node_id": 334, "universal_type": "function", "name": "unknown", "text_snippet": "tDrawingPriority() const override;\n"}, {"node_id": 341, "universal_type": "function", "name": "unknown", "text_snippet": "tDrawingPriority(int priority) override;\n"}, {"node_id": 349, "universal_type": "function", "name": "unknown", "text_snippet": "tAlphaBlendMode() const override;\n"}, {"node_id": 355, "universal_type": "function", "name": "unknown", "text_snippet": "tAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n"}, {"node_id": 365, "universal_type": "function", "name": "unknown", "text_snippet": "tTextureFilterType(TextureFilterType textureFilterType) override;\n"}, {"node_id": 373, "universal_type": "function", "name": "unknown", "text_snippet": "tTextureFilterType() const override;\n"}, {"node_id": 378, "universal_type": "function", "name": "unknown", "text_snippet": "reChip2D_Imp(Graphics* graphics);\n"}, {"node_id": 390, "universal_type": "function", "name": "unknown", "text_snippet": "reChip2D_Imp();\n"}, {"node_id": 398, "universal_type": "function", "name": "unknown", "text_snippet": "tCullingObject(culling2d::Object *cullingObj);\n"}, {"node_id": 414, "universal_type": "function", "name": "unknown", "text_snippet": "tCullingObject() const;\n"}, {"node_id": 422, "universal_type": "function", "name": "unknown", "text_snippet": "tBoundingCircle();\n"}, {"node_id": 433, "universal_type": "function", "name": "unknown", "text_snippet": "tRef() {"}, {"node_id": 440, "universal_type": "function", "name": "AddRef", "text_snippet": "rtual int AddRef() { return ReferenceObject::AddRef(); }\n\t"}, {"node_id": 444, "universal_type": "function", "name": "unknown", "text_snippet": "dRef() {"}, {"node_id": 451, "universal_type": "function", "name": "Release", "text_snippet": "rtual int Release() { return ReferenceObject::Release(); }\n#"}, {"node_id": 455, "universal_type": "function", "name": "unknown", "text_snippet": "lease() {"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "nclude \"../../Graphics/Resource/asd.Texture2D.h\"\n#i"}, {"node_id": 4, "text": "nclude \""}, {"node_id": 6, "text": "nclude <Math/asd.RectF.h>\n#i"}, {"node_id": 7, "text": "nclude <"}, {"node_id": 9, "text": "nclude \"asd.CoreChip2D.h\"\n#i"}, {"node_id": 10, "text": "nclude \""}, {"node_id": 12, "text": "nclude \"../../ObjectSystem/2D/asd.Culling2D.h\"\n#i"}, {"node_id": 13, "text": "nclude \""}, {"node_id": 15, "text": "nclude \"asd.TransformInfo2D.h\"\n\n/"}, {"node_id": 16, "text": "nclude \""}]}, "original_source_code": "\ufeff#pragma once\n\n//----------------------------------------------------------------------------------\n//\n//----------------------------------------------------------------------------------\n#include \"../../Graphics/Resource/asd.Texture2D.h\"\n#include <Math/asd.RectF.h>\n#include \"asd.CoreChip2D.h\"\n#include \"../../ObjectSystem/2D/asd.Culling2D.h\"\n#include \"asd.TransformInfo2D.h\"\n\n//----------------------------------------------------------------------------------\n//\n//----------------------------------------------------------------------------------\nnamespace asd {\n\tclass CoreMapObject2D_Imp;\n\t//----------------------------------------------------------------------------------\n\t//\n\t//----------------------------------------------------------------------------------\n\tclass CoreChip2D_Imp\n\t\t: public CoreChip2D\n\t\t, public ReferenceObject\n\t{\n\tprivate:\n\n\t\tGraphics*\tm_graphics = nullptr;\n\t\tCoreMapObject2D_Imp* mapObject2D = nullptr;\n\t\tTexture2D*\tm_texture = nullptr;\n\n\t\tRectF m_src;\n\t\tColor m_color;\n\t\tbool m_turnLR;\n\t\tbool m_turnUL;\n\t\tAlphaBlendMode m_alphablend;\n\t\tTransformInfo2D m_transformInfo;\n\t\tVector2DF m_centerPosition;\n\t\tint m_drawingPriority;\n\t\tTextureFilterType m_textureFilterType;\n\n#if __CULLING_2D__\n\t\tculling2d::Object *cullingObject;\n\t\tbool alreadyCullingUpdated;\n#endif\n\t\t\n\n\t\tTexture2D* GetTexture_() const;\n\t\tvoid SetTexture_(Texture2D* texture);\n\n\t\tvoid SetCullingUpdate();\n\tpublic:\n\n\t\tCoreMapObject2D_Imp* GetMapObject2D() const;\n\t\tvoid SetMapObject2D(CoreMapObject2D_Imp* mapObject);\n\n#if __CULLING_2D__\n\t\tbool GetAlreadyCullingUpdated() const;\n\t\tvoid SetAlreadyCullingUpdated(bool cullingUpdated);\n#endif\n\n\tpublic:\n\n#if !SWIG\n\t\tvoid SetTexture(std::shared_ptr<Texture2D> texture);\n\t\tstd::shared_ptr<Texture2D> GetTexture();\n\t\tTransformInfo2D GetTransformInfo2D() const;\n#endif\n\t\tvoid SetTexture(Texture2D* texture);\n\n\t\tRectF GetSrc() const override;\n\t\tvoid SetSrc(RectF src) override;\n\n\t\tVector2DF GetPosition() const override;\n\t\tvoid SetPosition(Vector2DF position) override;\n\n\t\tfloat GetAngle() const override;\n\t\tvoid SetAngle(float angle) override;\n\n\t\tVector2DF GetScale() const override;\n\t\tvoid SetScale(Vector2DF scale) override;\n\n\t\tVector2DF GetCenterPosition() const override;\n\t\tvoid SetCenterPosition(Vector2DF position) override;\n\n\t\tColor GetColor() const override;\n\t\tvoid SetColor(Color color) override;\n\n\t\tbool GetTurnLR() const override;\n\t\tvoid SetTurnLR(bool turnLR) override;\n\n\t\tbool GetTurnUL() const override;\n\t\tvoid SetTurnUL(bool turnUL) override;\n\n\t\tint GetDrawingPriority() const override;\n\t\tvoid SetDrawingPriority(int priority) override;\n\n\t\tAlphaBlendMode GetAlphaBlendMode() const override;\n\t\tvoid SetAlphaBlendMode(AlphaBlendMode alphaBlend) override;\n\n\t\tvoid SetTextureFilterType(TextureFilterType textureFilterType) override;\n\t\tTextureFilterType GetTextureFilterType() const override;\n\n\t\tCoreChip2D_Imp(Graphics* graphics);\n\t\tvirtual ~CoreChip2D_Imp();\n\n#if __CULLING_2D__\n\t\tvoid SetCullingObject(culling2d::Object *cullingObj);\n\t\tculling2d::Object* GetCullingObject() const;\n\n\t\tculling2d::Circle GetBoundingCircle();\n#endif\n\n#if !SWIG\n\tpublic:\n\t\tvirtual int GetRef() { return ReferenceObject::GetRef(); }\n\t\tvirtual int AddRef() { return ReferenceObject::AddRef(); }\n\t\tvirtual int Release() { return ReferenceObject::Release(); }\n#endif\n\t};\n\n\t//----------------------------------------------------------------------------------\n\t//\n\t//----------------------------------------------------------------------------------\n}"}
80,321
c
/* Copyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom. Copyright (c) 2018, <NAME>, <NAME> 10, bus 2452, B-3001 Leuven-Heverlee, Belgium. All rights reserved */ #ifndef _LaAND #define _LaAND /* Executed the leaky-AND protocol of Figure 8 * of ePrint 2017/189 * * We do number values at a time, where number is * the default_l values from aBF * - This is basically inherited from HaAND * Which means we call the generation in aBF * three times on each invocation of make_more * */ #include "HaAND.h" #include "aBitFactory.h" class LaAND { public: vector<aBit> x, y, z; /* This is Figure 8 of ePrint 2017/189 executed number times */ void make_more(aBitFactory &aBF, Player &P); unsigned int get_number() const { return x.size(); } }; #endif
28.18
28
(translation_unit) "/*\nCopyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.\nCopyright (c) 2018, <NAME>, <NAME> 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.\n\nAll rights reserved\n*/\n#ifndef _LaAND\n#define _LaAND\n\n/* Executed the leaky-AND protocol of Figure 8\n * of ePrint 2017/189\n *\n * We do number values at a time, where number is\n * the default_l values from aBF\n * - This is basically inherited from HaAND\n * Which means we call the generation in aBF\n * three times on each invocation of make_more\n *\n */\n\n#include "HaAND.h"\n#include "aBitFactory.h"\n\nclass LaAND\n{\npublic:\n vector<aBit> x, y, z;\n\n /* This is Figure 8 of ePrint 2017/189 executed number times */\n void make_more(aBitFactory &aBF, Player &P);\n\n unsigned int get_number() const { return x.size(); }\n};\n\n#endif\n" (comment) "/*\nCopyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.\nCopyright (c) 2018, <NAME>, <NAME> 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.\n\nAll rights reserved\n*/" (preproc_ifdef) "#ifndef _LaAND\n#define _LaAND\n\n/* Executed the leaky-AND protocol of Figure 8\n * of ePrint 2017/189\n *\n * We do number values at a time, where number is\n * the default_l values from aBF\n * - This is basically inherited from HaAND\n * Which means we call the generation in aBF\n * three times on each invocation of make_more\n *\n */\n\n#include "HaAND.h"\n#include "aBitFactory.h"\n\nclass LaAND\n{\npublic:\n vector<aBit> x, y, z;\n\n /* This is Figure 8 of ePrint 2017/189 executed number times */\n void make_more(aBitFactory &aBF, Player &P);\n\n unsigned int get_number() const { return x.size(); }\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "_LaAND" (preproc_def) "#define _LaAND\n" (#define) "#define" (identifier) "_LaAND" (comment) "/* Executed the leaky-AND protocol of Figure 8\n * of ePrint 2017/189\n *\n * We do number values at a time, where number is\n * the default_l values from aBF\n * - This is basically inherited from HaAND\n * Which means we call the generation in aBF\n * three times on each invocation of make_more\n *\n */" (preproc_include) "#include "HaAND.h"\n" (#include) "#include" (string_literal) ""HaAND.h"" (") """ (string_content) "HaAND.h" (") """ (preproc_include) "#include "aBitFactory.h"\n" (#include) "#include" (string_literal) ""aBitFactory.h"" (") """ (string_content) "aBitFactory.h" (") """ (function_definition) "class LaAND\n{\npublic:\n vector<aBit> x, y, z;\n\n /* This is Figure 8 of ePrint 2017/189 executed number times */\n void make_more(aBitFactory &aBF, Player &P);\n\n unsigned int get_number() const { return x.size(); }\n}" (type_identifier) "class" (identifier) "LaAND" (compound_statement) "{\npublic:\n vector<aBit> x, y, z;\n\n /* This is Figure 8 of ePrint 2017/189 executed number times */\n void make_more(aBitFactory &aBF, Player &P);\n\n unsigned int get_number() const { return x.size(); }\n}" ({) "{" (labeled_statement) "public:\n vector<aBit> x, y, z;" (statement_identifier) "public" (:) ":" (expression_statement) "vector<aBit> x, y, z;" (comma_expression) "vector<aBit> x, y, z" (binary_expression) "vector<aBit> x" (binary_expression) "vector<aBit" (identifier) "vector" (<) "<" (identifier) "aBit" (>) ">" (identifier) "x" (,) "," (comma_expression) "y, z" (identifier) "y" (,) "," (identifier) "z" (;) ";" (comment) "/* This is Figure 8 of ePrint 2017/189 executed number times */" (declaration) "void make_more(aBitFactory &aBF, Player &P);" (primitive_type) "void" (function_declarator) "make_more(aBitFactory &aBF, Player &P)" (identifier) "make_more" (parameter_list) "(aBitFactory &aBF, Player &P)" (() "(" (parameter_declaration) "aBitFactory &aBF" (type_identifier) "aBitFactory" (ERROR) "&" (&) "&" (identifier) "aBF" (,) "," (parameter_declaration) "Player &P" (type_identifier) "Player" (ERROR) "&" (&) "&" (identifier) "P" ()) ")" (;) ";" (ERROR) "unsigned int get_number() const" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "get_number()" (identifier) "get_number" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return x.size(); }" ({) "{" (return_statement) "return x.size();" (return) "return" (call_expression) "x.size()" (field_expression) "x.size" (identifier) "x" (.) "." (field_identifier) "size" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
93
3
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 28.18, "nodes": 51, "errors": 0, "source_hash": "951ddeaaa611bc223d9533d1cf49cf7850bc7203dca314f9a9c9b9746eeb367c", "categorized_nodes": 39}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _LaAND\n#define _LaAND\n\n/* Executed the leaky-AND protocol of Figure 8\n * of ePrint 2017/189\n *\n * We do number values at a time, where number is\n * the default_l values from aBF\n * - This is basically inherited from HaAND\n * Which means we call the generation in aBF\n * three times on each invocation of make_more\n *\n */\n\n#include \"HaAND.h\"\n#include \"aBitFactory.h\"\n\nclass LaAND\n{\npublic:\n vector<aBit> x, y, z;\n\n /* This is Figure 8 of ePrint 2017/189 executed number times */\n void make_more(aBitFactory &aBF, Player &P);\n\n unsigned int get_number() const { return x.size(); }\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 50], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 34, "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": "_LaAND", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 14}}, {"id": 3, "type": "preproc_def", "text": "#define _LaAND\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": "_LaAND", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 6, "type": "preproc_include", "text": "#include \"HaAND.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"HaAND.h\"", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"aBitFactory.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"aBitFactory.h\"", "parent": 9, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 24}}, {"id": 12, "type": "function_definition", "text": "class LaAND\n{\npublic:\n vector<aBit> x, y, z;\n\n /* This is Figure 8 of ePrint 2017/189 executed number times */\n void make_more(aBitFactory &aBF, Player &P);\n\n unsigned int get_number() const { return x.size(); }\n}", "parent": 0, "children": [13], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 32, "column": 1}}, {"id": 13, "type": "identifier", "text": "LaAND", "parent": 12, "children": [], "start_point": {"row": 23, "column": 6}, "end_point": {"row": 23, "column": 11}}, {"id": 14, "type": "labeled_statement", "text": "public:\n vector<aBit> x, y, z;", "parent": 12, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 23}}, {"id": 15, "type": "comma_expression", "text": "vector<aBit> x, y, z", "parent": 14, "children": [16, 23], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 22}}, {"id": 16, "type": "binary_expression", "text": "vector<aBit> x", "parent": 15, "children": [17, 21, 22], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 16}}, {"id": 17, "type": "binary_expression", "text": "vector<aBit", "parent": 16, "children": [18, 19, 20], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 13}}, {"id": 18, "type": "identifier", "text": "vector", "parent": 17, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 8}}, {"id": 19, "type": "<", "text": "<", "parent": 17, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 9}}, {"id": 20, "type": "identifier", "text": "aBit", "parent": 17, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 13}}, {"id": 21, "type": ">", "text": ">", "parent": 16, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 22, "type": "identifier", "text": "x", "parent": 16, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 16}}, {"id": 23, "type": "comma_expression", "text": "y, z", "parent": 15, "children": [24, 25], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 22}}, {"id": 24, "type": "identifier", "text": "y", "parent": 23, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 19}}, {"id": 25, "type": "identifier", "text": "z", "parent": 23, "children": [], "start_point": {"row": 26, "column": 21}, "end_point": {"row": 26, "column": 22}}, {"id": 26, "type": "declaration", "text": "void make_more(aBitFactory &aBF, Player &P);", "parent": 12, "children": [27, 28], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 46}}, {"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": "make_more(aBitFactory &aBF, Player &P)", "parent": 26, "children": [29, 30], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 45}}, {"id": 29, "type": "identifier", "text": "make_more", "parent": 28, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 16}}, {"id": 30, "type": "parameter_list", "text": "(aBitFactory &aBF, Player &P)", "parent": 28, "children": [31, 34], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 45}}, {"id": 31, "type": "parameter_declaration", "text": "aBitFactory &aBF", "parent": 30, "children": [32, 33], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 33}}, {"id": 32, "type": "type_identifier", "text": "aBitFactory", "parent": 31, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 28}}, {"id": 33, "type": "identifier", "text": "aBF", "parent": 31, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 33}}, {"id": 34, "type": "parameter_declaration", "text": "Player &P", "parent": 30, "children": [35, 36], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 44}}, {"id": 35, "type": "type_identifier", "text": "Player", "parent": 34, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 41}}, {"id": 36, "type": "identifier", "text": "P", "parent": 34, "children": [], "start_point": {"row": 29, "column": 43}, "end_point": {"row": 29, "column": 44}}, {"id": 37, "type": "ERROR", "text": "unsigned int get_number() const", "parent": 12, "children": [38, 41], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 33}}, {"id": 38, "type": "sized_type_specifier", "text": "unsigned int", "parent": 37, "children": [39, 40], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 14}}, {"id": 39, "type": "unsigned", "text": "unsigned", "parent": 38, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 10}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 38, "children": [], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 14}}, {"id": 41, "type": "function_declarator", "text": "get_number()", "parent": 37, "children": [42, 43], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 27}}, {"id": 42, "type": "identifier", "text": "get_number", "parent": 41, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 25}}, {"id": 43, "type": "parameter_list", "text": "()", "parent": 41, "children": [], "start_point": {"row": 31, "column": 25}, "end_point": {"row": 31, "column": 27}}, {"id": 44, "type": "return_statement", "text": "return x.size();", "parent": 12, "children": [45], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 52}}, {"id": 45, "type": "call_expression", "text": "x.size()", "parent": 44, "children": [46, 49], "start_point": {"row": 31, "column": 43}, "end_point": {"row": 31, "column": 51}}, {"id": 46, "type": "field_expression", "text": "x.size", "parent": 45, "children": [47, 48], "start_point": {"row": 31, "column": 43}, "end_point": {"row": 31, "column": 49}}, {"id": 47, "type": "identifier", "text": "x", "parent": 46, "children": [], "start_point": {"row": 31, "column": 43}, "end_point": {"row": 31, "column": 44}}, {"id": 48, "type": "field_identifier", "text": "size", "parent": 46, "children": [], "start_point": {"row": 31, "column": 45}, "end_point": {"row": 31, "column": 49}}, {"id": 49, "type": "argument_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 31, "column": 49}, "end_point": {"row": 31, "column": 51}}, {"id": 50, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}]}, "node_categories": {"declarations": {"functions": [12, 28, 41], "variables": [26, 31, 34], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [15, 16, 17, 23, 45, 46], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 18, 20, 22, 24, 25, 29, 32, 33, 35, 36, 38, 42, 47, 48, 50], "returns": [44], "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": "LaAND", "text_snippet": "class LaAND\n{\npublic:\n vector<aBit> x, y, z;\n\n /* This is Figure 8 of ePrint 2017/189 executed num"}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "make_more(aBitFactory &aBF, Player &P)"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "get_number()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"HaAND.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"aBitFactory.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\nCopyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.\nCopyright (c) 2018, <NAME>, <NAME> 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.\n\nAll rights reserved\n*/\n#ifndef _LaAND\n#define _LaAND\n\n/* Executed the leaky-AND protocol of Figure 8\n * of ePrint 2017/189\n *\n * We do number values at a time, where number is\n * the default_l values from aBF\n * - This is basically inherited from HaAND\n * Which means we call the generation in aBF\n * three times on each invocation of make_more\n *\n */\n\n#include \"HaAND.h\"\n#include \"aBitFactory.h\"\n\nclass LaAND\n{\npublic:\n vector<aBit> x, y, z;\n\n /* This is Figure 8 of ePrint 2017/189 executed number times */\n void make_more(aBitFactory &aBF, Player &P);\n\n unsigned int get_number() const { return x.size(); }\n};\n\n#endif\n"}
80,322
c
/* * sha1_ut.c * * Author: Lirui.Liu * <EMAIL> * */ #include "ut.h" #include "sha1.h" void do_sha1(void) { SHA1_CTX ctx; char *data = "abc"; char hash[20]; uint32_t len = strlen(data); SHA1Init(&ctx); SHA1Update(&ctx, (unsigned char*)data, len); SHA1Final((unsigned char*)hash, &ctx); hex_dump("sha1 of \"abc\":", (unsigned char*)hash, sizeof(hash)); }
18.18
22
(translation_unit) "/* \n * sha1_ut.c \n * \n * Author: Lirui.Liu \n * <EMAIL> \n * \n */ \n#include "ut.h" \n#include "sha1.h" \n \n \nvoid do_sha1(void) \n{ \n SHA1_CTX ctx; \n char *data = "abc"; \n char hash[20]; \n uint32_t len = strlen(data); \n SHA1Init(&ctx); \n SHA1Update(&ctx, (unsigned char*)data, len); \n SHA1Final((unsigned char*)hash, &ctx); \n hex_dump("sha1 of \"abc\":", (unsigned char*)hash, sizeof(hash)); \n} \n" (comment) "/* \n * sha1_ut.c \n * \n * Author: Lirui.Liu \n * <EMAIL> \n * \n */" (preproc_include) "#include "ut.h" \n" (#include) "#include" (string_literal) ""ut.h"" (") """ (string_content) "ut.h" (") """ (preproc_include) "#include "sha1.h" \n" (#include) "#include" (string_literal) ""sha1.h"" (") """ (string_content) "sha1.h" (") """ (function_definition) "void do_sha1(void) \n{ \n SHA1_CTX ctx; \n char *data = "abc"; \n char hash[20]; \n uint32_t len = strlen(data); \n SHA1Init(&ctx); \n SHA1Update(&ctx, (unsigned char*)data, len); \n SHA1Final((unsigned char*)hash, &ctx); \n hex_dump("sha1 of \"abc\":", (unsigned char*)hash, sizeof(hash)); \n}" (primitive_type) "void" (function_declarator) "do_sha1(void)" (identifier) "do_sha1" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ \n SHA1_CTX ctx; \n char *data = "abc"; \n char hash[20]; \n uint32_t len = strlen(data); \n SHA1Init(&ctx); \n SHA1Update(&ctx, (unsigned char*)data, len); \n SHA1Final((unsigned char*)hash, &ctx); \n hex_dump("sha1 of \"abc\":", (unsigned char*)hash, sizeof(hash)); \n}" ({) "{" (declaration) "SHA1_CTX ctx;" (type_identifier) "SHA1_CTX" (identifier) "ctx" (;) ";" (declaration) "char *data = "abc";" (primitive_type) "char" (init_declarator) "*data = "abc"" (pointer_declarator) "*data" (*) "*" (identifier) "data" (=) "=" (string_literal) ""abc"" (") """ (string_content) "abc" (") """ (;) ";" (declaration) "char hash[20];" (primitive_type) "char" (array_declarator) "hash[20]" (identifier) "hash" ([) "[" (number_literal) "20" (]) "]" (;) ";" (declaration) "uint32_t len = strlen(data);" (primitive_type) "uint32_t" (init_declarator) "len = strlen(data)" (identifier) "len" (=) "=" (call_expression) "strlen(data)" (identifier) "strlen" (argument_list) "(data)" (() "(" (identifier) "data" ()) ")" (;) ";" (expression_statement) "SHA1Init(&ctx);" (call_expression) "SHA1Init(&ctx)" (identifier) "SHA1Init" (argument_list) "(&ctx)" (() "(" (pointer_expression) "&ctx" (&) "&" (identifier) "ctx" ()) ")" (;) ";" (expression_statement) "SHA1Update(&ctx, (unsigned char*)data, len);" (call_expression) "SHA1Update(&ctx, (unsigned char*)data, len)" (identifier) "SHA1Update" (argument_list) "(&ctx, (unsigned char*)data, len)" (() "(" (pointer_expression) "&ctx" (&) "&" (identifier) "ctx" (,) "," (cast_expression) "(unsigned char*)data" (() "(" (type_descriptor) "unsigned char*" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "data" (,) "," (identifier) "len" ()) ")" (;) ";" (expression_statement) "SHA1Final((unsigned char*)hash, &ctx);" (call_expression) "SHA1Final((unsigned char*)hash, &ctx)" (identifier) "SHA1Final" (argument_list) "((unsigned char*)hash, &ctx)" (() "(" (cast_expression) "(unsigned char*)hash" (() "(" (type_descriptor) "unsigned char*" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "hash" (,) "," (pointer_expression) "&ctx" (&) "&" (identifier) "ctx" ()) ")" (;) ";" (expression_statement) "hex_dump("sha1 of \"abc\":", (unsigned char*)hash, sizeof(hash));" (call_expression) "hex_dump("sha1 of \"abc\":", (unsigned char*)hash, sizeof(hash))" (identifier) "hex_dump" (argument_list) "("sha1 of \"abc\":", (unsigned char*)hash, sizeof(hash))" (() "(" (string_literal) ""sha1 of \"abc\":"" (") """ (string_content) "sha1 of " (escape_sequence) "\"" (string_content) "abc" (escape_sequence) "\"" (string_content) ":" (") """ (,) "," (cast_expression) "(unsigned char*)hash" (() "(" (type_descriptor) "unsigned char*" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "hash" (,) "," (sizeof_expression) "sizeof(hash)" (sizeof) "sizeof" (parenthesized_expression) "(hash)" (() "(" (identifier) "hash" ()) ")" ()) ")" (;) ";" (}) "}"
149
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 18.18, "nodes": 87, "errors": 0, "source_hash": "eb8c55642c0d4c022d007380479b1639fdbbb906793c98f658221be5b55e3184", "categorized_nodes": 52}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"ut.h\"\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"ut.h\"", "parent": 0, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 15}}, {"id": 3, "type": "preproc_include", "text": "#include \"sha1.h\"\r\n", "parent": null, "children": [4, 5], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"sha1.h\"", "parent": 3, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 6, "type": "function_definition", "text": "void do_sha1(void)\r\n{\r\n SHA1_CTX ctx;\r\n char *data = \"abc\";\r\n char hash[20];\r\n uint32_t len = strlen(data);\r\n SHA1Init(&ctx);\r\n SHA1Update(&ctx, (unsigned char*)data, len);\r\n SHA1Final((unsigned char*)hash, &ctx);\r\n hex_dump(\"sha1 of \\\"abc\\\":\", (unsigned char*)hash, sizeof(hash));\r\n}", "parent": null, "children": [7, 8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "void", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 8, "type": "function_declarator", "text": "do_sha1(void)", "parent": 6, "children": [9, 10], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 18}}, {"id": 9, "type": "identifier", "text": "do_sha1", "parent": 8, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 12}}, {"id": 10, "type": "parameter_list", "text": "(void)", "parent": 8, "children": [11], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 18}}, {"id": 11, "type": "parameter_declaration", "text": "void", "parent": 10, "children": [12], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 17}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 17}}, {"id": 13, "type": "declaration", "text": "SHA1_CTX ctx;", "parent": 6, "children": [14, 15], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 17}}, {"id": 14, "type": "type_identifier", "text": "SHA1_CTX", "parent": 13, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 12}}, {"id": 15, "type": "identifier", "text": "ctx", "parent": 13, "children": [], "start_point": {"row": 13, "column": 13}, "end_point": {"row": 13, "column": 16}}, {"id": 16, "type": "declaration", "text": "char *data = \"abc\";", "parent": 6, "children": [17, 18], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 23}}, {"id": 17, "type": "primitive_type", "text": "char", "parent": 16, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 8}}, {"id": 18, "type": "init_declarator", "text": "*data = \"abc\"", "parent": 16, "children": [19, 22, 23], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 22}}, {"id": 19, "type": "pointer_declarator", "text": "*data", "parent": 18, "children": [20, 21], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 14}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 10}}, {"id": 21, "type": "identifier", "text": "data", "parent": 19, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 22, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 23, "type": "string_literal", "text": "\"abc\"", "parent": 18, "children": [], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 22}}, {"id": 24, "type": "declaration", "text": "char hash[20];", "parent": 6, "children": [25, 26], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 18}}, {"id": 25, "type": "primitive_type", "text": "char", "parent": 24, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 8}}, {"id": 26, "type": "array_declarator", "text": "hash[20]", "parent": 24, "children": [27, 28], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 17}}, {"id": 27, "type": "identifier", "text": "hash", "parent": 26, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 13}}, {"id": 28, "type": "number_literal", "text": "20", "parent": 26, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 16}}, {"id": 29, "type": "declaration", "text": "uint32_t len = strlen(data);", "parent": 6, "children": [30, 31], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 32}}, {"id": 30, "type": "primitive_type", "text": "uint32_t", "parent": 29, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 12}}, {"id": 31, "type": "init_declarator", "text": "len = strlen(data)", "parent": 29, "children": [32, 33, 34], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 31}}, {"id": 32, "type": "identifier", "text": "len", "parent": 31, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 16}}, {"id": 33, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 18}}, {"id": 34, "type": "call_expression", "text": "strlen(data)", "parent": 31, "children": [35, 36], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 31}}, {"id": 35, "type": "identifier", "text": "strlen", "parent": 34, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 25}}, {"id": 36, "type": "argument_list", "text": "(data)", "parent": 34, "children": [37], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 31}}, {"id": 37, "type": "identifier", "text": "data", "parent": 36, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 30}}, {"id": 38, "type": "call_expression", "text": "SHA1Init(&ctx)", "parent": 6, "children": [39, 40], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 18}}, {"id": 39, "type": "identifier", "text": "SHA1Init", "parent": 38, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 12}}, {"id": 40, "type": "argument_list", "text": "(&ctx)", "parent": 38, "children": [41], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 18}}, {"id": 41, "type": "pointer_expression", "text": "&ctx", "parent": 40, "children": [42], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 17}}, {"id": 42, "type": "identifier", "text": "ctx", "parent": 41, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 17}}, {"id": 43, "type": "call_expression", "text": "SHA1Update(&ctx, (unsigned char*)data, len)", "parent": 6, "children": [44, 45], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 47}}, {"id": 44, "type": "identifier", "text": "SHA1Update", "parent": 43, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 14}}, {"id": 45, "type": "argument_list", "text": "(&ctx, (unsigned char*)data, len)", "parent": 43, "children": [46, 48, 56], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 47}}, {"id": 46, "type": "pointer_expression", "text": "&ctx", "parent": 45, "children": [47], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 19}}, {"id": 47, "type": "identifier", "text": "ctx", "parent": 46, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 19}}, {"id": 48, "type": "cast_expression", "text": "(unsigned char*)data", "parent": 45, "children": [49, 55], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 41}}, {"id": 49, "type": "type_descriptor", "text": "unsigned char*", "parent": 48, "children": [50, 53], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 36}}, {"id": 50, "type": "sized_type_specifier", "text": "unsigned char", "parent": 49, "children": [51, 52], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 35}}, {"id": 51, "type": "unsigned", "text": "unsigned", "parent": 50, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 30}}, {"id": 52, "type": "primitive_type", "text": "char", "parent": 50, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 35}}, {"id": 53, "type": "abstract_pointer_declarator", "text": "*", "parent": 49, "children": [54], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 36}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 36}}, {"id": 55, "type": "identifier", "text": "data", "parent": 48, "children": [], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 41}}, {"id": 56, "type": "identifier", "text": "len", "parent": 45, "children": [], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 46}}, {"id": 57, "type": "call_expression", "text": "SHA1Final((unsigned char*)hash, &ctx)", "parent": 6, "children": [58, 59], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 41}}, {"id": 58, "type": "identifier", "text": "SHA1Final", "parent": 57, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 13}}, {"id": 59, "type": "argument_list", "text": "((unsigned char*)hash, &ctx)", "parent": 57, "children": [60, 68], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 41}}, {"id": 60, "type": "cast_expression", "text": "(unsigned char*)hash", "parent": 59, "children": [61, 67], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 34}}, {"id": 61, "type": "type_descriptor", "text": "unsigned char*", "parent": 60, "children": [62, 65], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 29}}, {"id": 62, "type": "sized_type_specifier", "text": "unsigned char", "parent": 61, "children": [63, 64], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 28}}, {"id": 63, "type": "unsigned", "text": "unsigned", "parent": 62, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 23}}, {"id": 64, "type": "primitive_type", "text": "char", "parent": 62, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 28}}, {"id": 65, "type": "abstract_pointer_declarator", "text": "*", "parent": 61, "children": [66], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 29}}, {"id": 66, "type": "*", "text": "*", "parent": 65, "children": [], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 29}}, {"id": 67, "type": "identifier", "text": "hash", "parent": 60, "children": [], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 34}}, {"id": 68, "type": "pointer_expression", "text": "&ctx", "parent": 59, "children": [69], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 40}}, {"id": 69, "type": "identifier", "text": "ctx", "parent": 68, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 40}}, {"id": 70, "type": "call_expression", "text": "hex_dump(\"sha1 of \\\"abc\\\":\", (unsigned char*)hash, sizeof(hash))", "parent": 6, "children": [71, 72], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 68}}, {"id": 71, "type": "identifier", "text": "hex_dump", "parent": 70, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 12}}, {"id": 72, "type": "argument_list", "text": "(\"sha1 of \\\"abc\\\":\", (unsigned char*)hash, sizeof(hash))", "parent": 70, "children": [73, 76, 84], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 68}}, {"id": 73, "type": "string_literal", "text": "\"sha1 of \\\"abc\\\":\"", "parent": 72, "children": [74, 75], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 31}}, {"id": 74, "type": "escape_sequence", "text": "\\\"", "parent": 73, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 24}}, {"id": 75, "type": "escape_sequence", "text": "\\\"", "parent": 73, "children": [], "start_point": {"row": 20, "column": 27}, "end_point": {"row": 20, "column": 29}}, {"id": 76, "type": "cast_expression", "text": "(unsigned char*)hash", "parent": 72, "children": [77, 83], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 53}}, {"id": 77, "type": "type_descriptor", "text": "unsigned char*", "parent": 76, "children": [78, 81], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 48}}, {"id": 78, "type": "sized_type_specifier", "text": "unsigned char", "parent": 77, "children": [79, 80], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 47}}, {"id": 79, "type": "unsigned", "text": "unsigned", "parent": 78, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 42}}, {"id": 80, "type": "primitive_type", "text": "char", "parent": 78, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 47}}, {"id": 81, "type": "abstract_pointer_declarator", "text": "*", "parent": 77, "children": [82], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 48}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 48}}, {"id": 83, "type": "identifier", "text": "hash", "parent": 76, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 53}}, {"id": 84, "type": "sizeof_expression", "text": "sizeof(hash)", "parent": 72, "children": [85], "start_point": {"row": 20, "column": 55}, "end_point": {"row": 20, "column": 67}}, {"id": 85, "type": "parenthesized_expression", "text": "(hash)", "parent": 84, "children": [86], "start_point": {"row": 20, "column": 61}, "end_point": {"row": 20, "column": 67}}, {"id": 86, "type": "identifier", "text": "hash", "parent": 85, "children": [], "start_point": {"row": 20, "column": 62}, "end_point": {"row": 20, "column": 66}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 13, 16, 24, 29], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [34, 38, 41, 43, 46, 48, 57, 60, 68, 70, 76, 84, 85], "assignments": [], "loops": [], "conditionals": [9, 14, 15, 21, 27, 32, 35, 37, 39, 42, 44, 47, 50, 55, 56, 58, 62, 67, 69, 71, 78, 83, 86], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 23, 28, 73], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "do_sha1", "text_snippet": "void do_sha1(void)\r\n{\r\n SHA1_CTX ctx;\r\n char *data = \"abc\";\r\n char hash[20];\r\n uint32_t "}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "do_sha1(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"ut.h\"\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"sha1.h\"\r\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\r\n * sha1_ut.c\r\n *\r\n * Author: Lirui.Liu\r\n * <EMAIL>\r\n *\r\n */\r\n#include \"ut.h\"\r\n#include \"sha1.h\"\r\n\r\n\r\nvoid do_sha1(void)\r\n{\r\n SHA1_CTX ctx;\r\n char *data = \"abc\";\r\n char hash[20];\r\n uint32_t len = strlen(data);\r\n SHA1Init(&ctx);\r\n SHA1Update(&ctx, (unsigned char*)data, len);\r\n SHA1Final((unsigned char*)hash, &ctx);\r\n hex_dump(\"sha1 of \\\"abc\\\":\", (unsigned char*)hash, sizeof(hash));\r\n}\r\n"}
80,323
c
/* * Copyright 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef WEBRTC_API_DTMFSENDER_H_ #define WEBRTC_API_DTMFSENDER_H_ #include <string> #include "webrtc/api/dtmfsenderinterface.h" #include "webrtc/api/mediastreaminterface.h" #include "webrtc/api/proxy.h" #include "webrtc/base/common.h" #include "webrtc/base/constructormagic.h" #include "webrtc/base/messagehandler.h" #include "webrtc/base/refcount.h" // DtmfSender is the native implementation of the RTCDTMFSender defined by // the WebRTC W3C Editor's Draft. // http://dev.w3.org/2011/webrtc/editor/webrtc.html namespace rtc { class Thread; } namespace webrtc { // This interface is called by DtmfSender to talk to the actual audio channel // to send DTMF. class DtmfProviderInterface { public: // Returns true if the audio track with given id (|track_id|) is capable // of sending DTMF. Otherwise returns false. virtual bool CanInsertDtmf(const std::string& track_id) = 0; // Sends DTMF |code| via the audio track with given id (|track_id|). // The |duration| indicates the length of the DTMF tone in ms. // Returns true on success and false on failure. virtual bool InsertDtmf(const std::string& track_id, int code, int duration) = 0; // Returns a |sigslot::signal0<>| signal. The signal should fire before // the provider is destroyed. virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0; protected: virtual ~DtmfProviderInterface() {} }; class DtmfSender : public DtmfSenderInterface, public sigslot::has_slots<>, public rtc::MessageHandler { public: static rtc::scoped_refptr<DtmfSender> Create( AudioTrackInterface* track, rtc::Thread* signaling_thread, DtmfProviderInterface* provider); // Implements DtmfSenderInterface. void RegisterObserver(DtmfSenderObserverInterface* observer) override; void UnregisterObserver() override; bool CanInsertDtmf() override; bool InsertDtmf(const std::string& tones, int duration, int inter_tone_gap) override; const AudioTrackInterface* track() const override; std::string tones() const override; int duration() const override; int inter_tone_gap() const override; protected: DtmfSender(AudioTrackInterface* track, rtc::Thread* signaling_thread, DtmfProviderInterface* provider); virtual ~DtmfSender(); private: DtmfSender(); // Implements MessageHandler. void OnMessage(rtc::Message* msg) override; // The DTMF sending task. void DoInsertDtmf(); void OnProviderDestroyed(); void StopSending(); rtc::scoped_refptr<AudioTrackInterface> track_; DtmfSenderObserverInterface* observer_; rtc::Thread* signaling_thread_; DtmfProviderInterface* provider_; std::string tones_; int duration_; int inter_tone_gap_; RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender); }; // Define proxy for DtmfSenderInterface. BEGIN_SIGNALING_PROXY_MAP(DtmfSender) PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*) PROXY_METHOD0(void, UnregisterObserver) PROXY_METHOD0(bool, CanInsertDtmf) PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int) PROXY_CONSTMETHOD0(const AudioTrackInterface*, track) PROXY_CONSTMETHOD0(std::string, tones) PROXY_CONSTMETHOD0(int, duration) PROXY_CONSTMETHOD0(int, inter_tone_gap) END_SIGNALING_PROXY() // Get DTMF code from the DTMF event character. bool GetDtmfCode(char tone, int* code); } // namespace webrtc #endif // WEBRTC_API_DTMFSENDER_H_
37.07
101
(translation_unit) "/*\n * Copyright 2012 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n */\n\n#ifndef WEBRTC_API_DTMFSENDER_H_\n#define WEBRTC_API_DTMFSENDER_H_\n\n#include <string>\n\n#include "webrtc/api/dtmfsenderinterface.h"\n#include "webrtc/api/mediastreaminterface.h"\n#include "webrtc/api/proxy.h"\n#include "webrtc/base/common.h"\n#include "webrtc/base/constructormagic.h"\n#include "webrtc/base/messagehandler.h"\n#include "webrtc/base/refcount.h"\n\n// DtmfSender is the native implementation of the RTCDTMFSender defined by\n// the WebRTC W3C Editor's Draft.\n// http://dev.w3.org/2011/webrtc/editor/webrtc.html\n\nnamespace rtc {\nclass Thread;\n}\n\nnamespace webrtc {\n\n// This interface is called by DtmfSender to talk to the actual audio channel\n// to send DTMF.\nclass DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n};\n\nclass DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n\n // Implements DtmfSenderInterface.\n void RegisterObserver(DtmfSenderObserverInterface* observer) override;\n void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code);\n\n} // namespace webrtc\n\n#endif // WEBRTC_API_DTMFSENDER_H_\n" (comment) "/*\n * Copyright 2012 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n */" (preproc_ifdef) "#ifndef WEBRTC_API_DTMFSENDER_H_\n#define WEBRTC_API_DTMFSENDER_H_\n\n#include <string>\n\n#include "webrtc/api/dtmfsenderinterface.h"\n#include "webrtc/api/mediastreaminterface.h"\n#include "webrtc/api/proxy.h"\n#include "webrtc/base/common.h"\n#include "webrtc/base/constructormagic.h"\n#include "webrtc/base/messagehandler.h"\n#include "webrtc/base/refcount.h"\n\n// DtmfSender is the native implementation of the RTCDTMFSender defined by\n// the WebRTC W3C Editor's Draft.\n// http://dev.w3.org/2011/webrtc/editor/webrtc.html\n\nnamespace rtc {\nclass Thread;\n}\n\nnamespace webrtc {\n\n// This interface is called by DtmfSender to talk to the actual audio channel\n// to send DTMF.\nclass DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n};\n\nclass DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n\n // Implements DtmfSenderInterface.\n void RegisterObserver(DtmfSenderObserverInterface* observer) override;\n void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code);\n\n} // namespace webrtc\n\n#endif" (#ifndef) "#ifndef" (identifier) "WEBRTC_API_DTMFSENDER_H_" (preproc_def) "#define WEBRTC_API_DTMFSENDER_H_\n" (#define) "#define" (identifier) "WEBRTC_API_DTMFSENDER_H_" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (preproc_include) "#include "webrtc/api/dtmfsenderinterface.h"\n" (#include) "#include" (string_literal) ""webrtc/api/dtmfsenderinterface.h"" (") """ (string_content) "webrtc/api/dtmfsenderinterface.h" (") """ (preproc_include) "#include "webrtc/api/mediastreaminterface.h"\n" (#include) "#include" (string_literal) ""webrtc/api/mediastreaminterface.h"" (") """ (string_content) "webrtc/api/mediastreaminterface.h" (") """ (preproc_include) "#include "webrtc/api/proxy.h"\n" (#include) "#include" (string_literal) ""webrtc/api/proxy.h"" (") """ (string_content) "webrtc/api/proxy.h" (") """ (preproc_include) "#include "webrtc/base/common.h"\n" (#include) "#include" (string_literal) ""webrtc/base/common.h"" (") """ (string_content) "webrtc/base/common.h" (") """ (preproc_include) "#include "webrtc/base/constructormagic.h"\n" (#include) "#include" (string_literal) ""webrtc/base/constructormagic.h"" (") """ (string_content) "webrtc/base/constructormagic.h" (") """ (preproc_include) "#include "webrtc/base/messagehandler.h"\n" (#include) "#include" (string_literal) ""webrtc/base/messagehandler.h"" (") """ (string_content) "webrtc/base/messagehandler.h" (") """ (preproc_include) "#include "webrtc/base/refcount.h"\n" (#include) "#include" (string_literal) ""webrtc/base/refcount.h"" (") """ (string_content) "webrtc/base/refcount.h" (") """ (comment) "// DtmfSender is the native implementation of the RTCDTMFSender defined by" (comment) "// the WebRTC W3C Editor's Draft." (comment) "// http://dev.w3.org/2011/webrtc/editor/webrtc.html" (function_definition) "namespace rtc {\nclass Thread;\n}" (type_identifier) "namespace" (identifier) "rtc" (compound_statement) "{\nclass Thread;\n}" ({) "{" (declaration) "class Thread;" (type_identifier) "class" (identifier) "Thread" (;) ";" (}) "}" (function_definition) "namespace webrtc {\n\n// This interface is called by DtmfSender to talk to the actual audio channel\n// to send DTMF.\nclass DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n};\n\nclass DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n\n // Implements DtmfSenderInterface.\n void RegisterObserver(DtmfSenderObserverInterface* observer) override;\n void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code);\n\n}" (type_identifier) "namespace" (identifier) "webrtc" (compound_statement) "{\n\n// This interface is called by DtmfSender to talk to the actual audio channel\n// to send DTMF.\nclass DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n};\n\nclass DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n\n // Implements DtmfSenderInterface.\n void RegisterObserver(DtmfSenderObserverInterface* observer) override;\n void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code);\n\n}" ({) "{" (comment) "// This interface is called by DtmfSender to talk to the actual audio channel" (comment) "// to send DTMF." (function_definition) "class DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n}" (type_identifier) "class" (identifier) "DtmfProviderInterface" (compound_statement) "{\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n}" ({) "{" (labeled_statement) "public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;" (statement_identifier) "public" (:) ":" (comment) "// Returns true if the audio track with given id (|track_id|) is capable" (comment) "// of sending DTMF. Otherwise returns false." (declaration) "virtual bool CanInsertDtmf(const std::string& track_id) = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "CanInsertDtmf(const std::string& track_id) = 0" (function_declarator) "CanInsertDtmf(const std::string& track_id)" (identifier) "CanInsertDtmf" (parameter_list) "(const std::string& track_id)" (() "(" (parameter_declaration) "const std::string& track_id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "track_id" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "// Sends DTMF |code| via the audio track with given id (|track_id|)." (comment) "// The |duration| indicates the length of the DTMF tone in ms." (comment) "// Returns true on success and false on failure." (declaration) "virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (init_declarator) "InsertDtmf(const std::string& track_id,\n int code, int duration) = 0" (function_declarator) "InsertDtmf(const std::string& track_id,\n int code, int duration)" (identifier) "InsertDtmf" (parameter_list) "(const std::string& track_id,\n int code, int duration)" (() "(" (parameter_declaration) "const std::string& track_id" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "track_id" (,) "," (parameter_declaration) "int code" (primitive_type) "int" (identifier) "code" (,) "," (parameter_declaration) "int duration" (primitive_type) "int" (identifier) "duration" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "// Returns a |sigslot::signal0<>| signal. The signal should fire before" (comment) "// the provider is destroyed." (declaration) "virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;" (type_identifier) "virtual" (ERROR) "sigslot::signal0<>" (identifier) "sigslot" (:) ":" (:) ":" (identifier) "signal0" (<) "<" (>) ">" (init_declarator) "* GetOnDestroyedSignal() = 0" (pointer_declarator) "* GetOnDestroyedSignal()" (*) "*" (function_declarator) "GetOnDestroyedSignal()" (identifier) "GetOnDestroyedSignal" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "protected:\n virtual ~DtmfProviderInterface() {}" (statement_identifier) "protected" (:) ":" (ERROR) "virtual ~DtmfProviderInterface()" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "DtmfProviderInterface()" (identifier) "DtmfProviderInterface" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (declaration) "class DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);" (type_identifier) "class" (identifier) "DtmfSender" (ERROR) ": public DtmfSenderInterface" (:) ":" (identifier) "public" (identifier) "DtmfSenderInterface" (,) "," (ERROR) "public sigslot::" (identifier) "public" (identifier) "sigslot" (:) ":" (:) ":" (identifier) "has_slots" (ERROR) "<>" (<) "<" (>) ">" (,) "," (ERROR) "public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender>" (identifier) "public" (identifier) "rtc" (:) ":" (:) ":" (identifier) "MessageHandler" ({) "{" (identifier) "public" (:) ":" (static) "static" (identifier) "rtc" (:) ":" (:) ":" (identifier) "scoped_refptr" (<) "<" (identifier) "DtmfSender" (>) ">" (function_declarator) "Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider)" (identifier) "Create" (parameter_list) "(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider)" (() "(" (parameter_declaration) "AudioTrackInterface* track" (type_identifier) "AudioTrackInterface" (pointer_declarator) "* track" (*) "*" (identifier) "track" (,) "," (parameter_declaration) "rtc::Thread* signaling_thread" (type_identifier) "rtc" (ERROR) "::Thread" (:) ":" (:) ":" (identifier) "Thread" (pointer_declarator) "* signaling_thread" (*) "*" (identifier) "signaling_thread" (,) "," (parameter_declaration) "DtmfProviderInterface* provider" (type_identifier) "DtmfProviderInterface" (pointer_declarator) "* provider" (*) "*" (identifier) "provider" ()) ")" (;) ";" (comment) "// Implements DtmfSenderInterface." (ERROR) "void RegisterObserver(DtmfSenderObserverInterface* observer) override" (primitive_type) "void" (function_declarator) "RegisterObserver(DtmfSenderObserverInterface* observer) override" (identifier) "RegisterObserver" (parameter_list) "(DtmfSenderObserverInterface* observer)" (() "(" (parameter_declaration) "DtmfSenderObserverInterface* observer" (type_identifier) "DtmfSenderObserverInterface" (pointer_declarator) "* observer" (*) "*" (identifier) "observer" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code)" (primitive_type) "void" (function_declarator) "UnregisterObserver()" (identifier) "UnregisterObserver" (parameter_list) "()" (() "(" ()) ")" (declaration) "override;" (type_identifier) "override" (identifier) "" (;) ";" (ERROR) "bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;" (primitive_type) "bool" (function_declarator) "CanInsertDtmf() override" (identifier) "CanInsertDtmf" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (;) ";" (primitive_type) "bool" (function_declarator) "InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override" (identifier) "InsertDtmf" (parameter_list) "(const std::string& tones,\n int duration,\n int inter_tone_gap)" (() "(" (parameter_declaration) "const std::string& tones" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "tones" (,) "," (parameter_declaration) "int duration" (primitive_type) "int" (identifier) "duration" (,) "," (parameter_declaration) "int inter_tone_gap" (primitive_type) "int" (identifier) "inter_tone_gap" ()) ")" (identifier) "override" (;) ";" (declaration) "const AudioTrackInterface* track() const override;" (type_qualifier) "const" (const) "const" (type_identifier) "AudioTrackInterface" (pointer_declarator) "* track() const override" (*) "*" (function_declarator) "track() const override" (identifier) "track" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (declaration) "std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);" (type_identifier) "std" (ERROR) "::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:" (:) ":" (:) ":" (identifier) "string" (function_declarator) "tones() const override" (identifier) "tones" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (primitive_type) "int" (function_declarator) "duration() const override" (identifier) "duration" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (primitive_type) "int" (function_declarator) "inter_tone_gap() const override" (identifier) "inter_tone_gap" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (identifier) "protected" (:) ":" (function_declarator) "DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider)" (identifier) "DtmfSender" (parameter_list) "(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider)" (() "(" (parameter_declaration) "AudioTrackInterface* track" (type_identifier) "AudioTrackInterface" (pointer_declarator) "* track" (*) "*" (identifier) "track" (,) "," (parameter_declaration) "rtc::Thread* signaling_thread" (type_identifier) "rtc" (ERROR) "::Thread" (:) ":" (:) ":" (identifier) "Thread" (pointer_declarator) "* signaling_thread" (*) "*" (identifier) "signaling_thread" (,) "," (parameter_declaration) "DtmfProviderInterface* provider" (type_identifier) "DtmfProviderInterface" (pointer_declarator) "* provider" (*) "*" (identifier) "provider" ()) ")" (;) ";" (declaration) "virtual ~DtmfSender();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "DtmfSender()" (identifier) "DtmfSender" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "private:\n DtmfSender();" (type_identifier) "private" (ERROR) ":" (:) ":" (function_declarator) "DtmfSender()" (identifier) "DtmfSender" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// Implements MessageHandler." (ERROR) "void OnMessage(rtc::Message* msg) override;" (primitive_type) "void" (function_declarator) "OnMessage(rtc::Message* msg) override" (identifier) "OnMessage" (parameter_list) "(rtc::Message* msg)" (() "(" (parameter_declaration) "rtc::Message* msg" (type_identifier) "rtc" (ERROR) "::Message" (:) ":" (:) ":" (identifier) "Message" (pointer_declarator) "* msg" (*) "*" (identifier) "msg" ()) ")" (identifier) "override" (;) ";" (comment) "// The DTMF sending task." (declaration) "void DoInsertDtmf();" (primitive_type) "void" (function_declarator) "DoInsertDtmf()" (identifier) "DoInsertDtmf" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void OnProviderDestroyed();" (primitive_type) "void" (function_declarator) "OnProviderDestroyed()" (identifier) "OnProviderDestroyed" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void StopSending();" (primitive_type) "void" (function_declarator) "StopSending()" (identifier) "StopSending" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "rtc::scoped_refptr<AudioTrackInterface> track_;" (type_identifier) "rtc" (ERROR) "::scoped_refptr<AudioTrackInterface>" (:) ":" (:) ":" (identifier) "scoped_refptr" (<) "<" (identifier) "AudioTrackInterface" (>) ">" (identifier) "track_" (;) ";" (declaration) "DtmfSenderObserverInterface* observer_;" (type_identifier) "DtmfSenderObserverInterface" (pointer_declarator) "* observer_" (*) "*" (identifier) "observer_" (;) ";" (declaration) "rtc::Thread* signaling_thread_;" (type_identifier) "rtc" (ERROR) "::Thread" (:) ":" (:) ":" (identifier) "Thread" (pointer_declarator) "* signaling_thread_" (*) "*" (identifier) "signaling_thread_" (;) ";" (declaration) "DtmfProviderInterface* provider_;" (type_identifier) "DtmfProviderInterface" (pointer_declarator) "* provider_" (*) "*" (identifier) "provider_" (;) ";" (declaration) "std::string tones_;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "tones_" (;) ";" (declaration) "int duration_;" (primitive_type) "int" (identifier) "duration_" (;) ";" (declaration) "int inter_tone_gap_;" (primitive_type) "int" (identifier) "inter_tone_gap_" (;) ";" (declaration) "RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);" (type_identifier) "RTC_DISALLOW_COPY_AND_ASSIGN" (parenthesized_declarator) "(DtmfSender)" (() "(" (identifier) "DtmfSender" ()) ")" (;) ";" (ERROR) "};" (}) "}" (;) ";" (comment) "// Define proxy for DtmfSenderInterface." (macro_type_specifier) "BEGIN_SIGNALING_PROXY_MAP(DtmfSender)" (identifier) "BEGIN_SIGNALING_PROXY_MAP" (() "(" (type_descriptor) "DtmfSender" (type_identifier) "DtmfSender" ()) ")" (function_declarator) "PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code)" (identifier) "PROXY_METHOD1" (parameter_list) "(void, RegisterObserver, DtmfSenderObserverInterface*)" (() "(" (parameter_declaration) "void" (primitive_type) "void" (,) "," (parameter_declaration) "RegisterObserver" (type_identifier) "RegisterObserver" (,) "," (parameter_declaration) "DtmfSenderObserverInterface*" (type_identifier) "DtmfSenderObserverInterface" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PROXY_METHOD0(void, UnregisterObserver)" (identifier) "PROXY_METHOD0" (argument_list) "(void, UnregisterObserver)" (() "(" (identifier) "void" (,) "," (identifier) "UnregisterObserver" ()) ")" (call_expression) "PROXY_METHOD0(bool, CanInsertDtmf)" (identifier) "PROXY_METHOD0" (argument_list) "(bool, CanInsertDtmf)" (() "(" (identifier) "bool" (,) "," (identifier) "CanInsertDtmf" ()) ")" (call_expression) "PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)" (identifier) "PROXY_METHOD3" (argument_list) "(bool, InsertDtmf, const std::string&, int, int)" (() "(" (identifier) "bool" (,) "," (identifier) "InsertDtmf" (,) "," (identifier) "const" (ERROR) "std::string&" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" (,) "," (identifier) "int" (,) "," (identifier) "int" ()) ")" (call_expression) "PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)" (identifier) "PROXY_CONSTMETHOD0" (argument_list) "(const AudioTrackInterface*, track)" (() "(" (ERROR) "const" (identifier) "const" (binary_expression) "AudioTrackInterface*, track" (identifier) "AudioTrackInterface" (*) "*" (ERROR) "," (,) "," (identifier) "track" ()) ")" (call_expression) "PROXY_CONSTMETHOD0(std::string, tones)" (identifier) "PROXY_CONSTMETHOD0" (argument_list) "(std::string, tones)" (() "(" (ERROR) "std::" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (identifier) "tones" ()) ")" (call_expression) "PROXY_CONSTMETHOD0(int, duration)" (identifier) "PROXY_CONSTMETHOD0" (argument_list) "(int, duration)" (() "(" (identifier) "int" (,) "," (identifier) "duration" ()) ")" (call_expression) "PROXY_CONSTMETHOD0(int, inter_tone_gap)" (identifier) "PROXY_CONSTMETHOD0" (argument_list) "(int, inter_tone_gap)" (() "(" (identifier) "int" (,) "," (identifier) "inter_tone_gap" ()) ")" (call_expression) "END_SIGNALING_PROXY()" (identifier) "END_SIGNALING_PROXY" (argument_list) "()" (() "(" ()) ")" (comment) "// Get DTMF code from the DTMF event character." (identifier) "bool" (call_expression) "GetDtmfCode(char tone, int* code)" (identifier) "GetDtmfCode" (argument_list) "(char tone, int* code)" (() "(" (identifier) "char" (ERROR) "tone" (identifier) "tone" (,) "," (binary_expression) "int* code" (identifier) "int" (*) "*" (identifier) "code" ()) ")" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace webrtc" (#endif) "#endif" (comment) "// WEBRTC_API_DTMFSENDER_H_"
627
31
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 37.07, "nodes": 379, "errors": 0, "source_hash": "4057bd3c4c6944c75129a2df38de1b6332340154f06c85dbc752f5a27e7d7f03", "categorized_nodes": 252}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef WEBRTC_API_DTMFSENDER_H_\n#define WEBRTC_API_DTMFSENDER_H_\n\n#include <string>\n\n#include \"webrtc/api/dtmfsenderinterface.h\"\n#include \"webrtc/api/mediastreaminterface.h\"\n#include \"webrtc/api/proxy.h\"\n#include \"webrtc/base/common.h\"\n#include \"webrtc/base/constructormagic.h\"\n#include \"webrtc/base/messagehandler.h\"\n#include \"webrtc/base/refcount.h\"\n\n// DtmfSender is the native implementation of the RTCDTMFSender defined by\n// the WebRTC W3C Editor's Draft.\n// http://dev.w3.org/2011/webrtc/editor/webrtc.html\n\nnamespace rtc {\nclass Thread;\n}\n\nnamespace webrtc {\n\n// This interface is called by DtmfSender to talk to the actual audio channel\n// to send DTMF.\nclass DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n};\n\nclass DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n\n // Implements DtmfSenderInterface.\n void RegisterObserver(DtmfSenderObserverInterface* observer) override;\n void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code);\n\n} // namespace webrtc\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 35, 378], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 122, "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": "WEBRTC_API_DTMFSENDER_H_", "parent": 0, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 32}}, {"id": 3, "type": "preproc_def", "text": "#define WEBRTC_API_DTMFSENDER_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": "WEBRTC_API_DTMFSENDER_H_", "parent": 3, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 32}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 6, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include \"webrtc/api/dtmfsenderinterface.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"webrtc/api/dtmfsenderinterface.h\"", "parent": 9, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 43}}, {"id": 12, "type": "preproc_include", "text": "#include \"webrtc/api/mediastreaminterface.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"webrtc/api/mediastreaminterface.h\"", "parent": 12, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 44}}, {"id": 15, "type": "preproc_include", "text": "#include \"webrtc/api/proxy.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"webrtc/api/proxy.h\"", "parent": 15, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 29}}, {"id": 18, "type": "preproc_include", "text": "#include \"webrtc/base/common.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"webrtc/base/common.h\"", "parent": 18, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 31}}, {"id": 21, "type": "preproc_include", "text": "#include \"webrtc/base/constructormagic.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": "\"webrtc/base/constructormagic.h\"", "parent": 21, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 41}}, {"id": 24, "type": "preproc_include", "text": "#include \"webrtc/base/messagehandler.h\"\n", "parent": 0, "children": [25, 26], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 26, "type": "string_literal", "text": "\"webrtc/base/messagehandler.h\"", "parent": 24, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 39}}, {"id": 27, "type": "preproc_include", "text": "#include \"webrtc/base/refcount.h\"\n", "parent": 0, "children": [28, 29], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 29, "type": "string_literal", "text": "\"webrtc/base/refcount.h\"", "parent": 27, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 33}}, {"id": 30, "type": "function_definition", "text": "namespace rtc {\nclass Thread;\n}", "parent": 0, "children": [31, 32], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 31, "type": "type_identifier", "text": "namespace", "parent": 30, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 9}}, {"id": 32, "type": "identifier", "text": "rtc", "parent": 30, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 13}}, {"id": 33, "type": "declaration", "text": "class Thread;", "parent": 30, "children": [34], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 13}}, {"id": 34, "type": "identifier", "text": "Thread", "parent": 33, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 12}}, {"id": 35, "type": "function_definition", "text": "namespace webrtc {\n\n// This interface is called by DtmfSender to talk to the actual audio channel\n// to send DTMF.\nclass DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n};\n\nclass DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n\n // Implements DtmfSenderInterface.\n void RegisterObserver(DtmfSenderObserverInterface* observer) override;\n void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code);\n\n}", "parent": 0, "children": [36, 37], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 120, "column": 1}}, {"id": 36, "type": "type_identifier", "text": "namespace", "parent": 35, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 9}}, {"id": 37, "type": "identifier", "text": "webrtc", "parent": 35, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 16}}, {"id": 38, "type": "function_definition", "text": "class DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n}", "parent": 35, "children": [39], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 51, "column": 1}}, {"id": 39, "type": "identifier", "text": "DtmfProviderInterface", "parent": 38, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 27}}, {"id": 40, "type": "labeled_statement", "text": "public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;", "parent": 38, "children": [41], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 39, "column": 62}}, {"id": 41, "type": "declaration", "text": "virtual bool CanInsertDtmf(const std::string& track_id) = 0;", "parent": 40, "children": [42, 43, 45], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 62}}, {"id": 42, "type": "type_identifier", "text": "virtual", "parent": 41, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 9}}, {"id": 43, "type": "ERROR", "text": "bool", "parent": 41, "children": [44], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 14}}, {"id": 44, "type": "identifier", "text": "bool", "parent": 43, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 14}}, {"id": 45, "type": "init_declarator", "text": "CanInsertDtmf(const std::string& track_id) = 0", "parent": 41, "children": [46, 54, 55], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 61}}, {"id": 46, "type": "function_declarator", "text": "CanInsertDtmf(const std::string& track_id)", "parent": 45, "children": [47, 48], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 57}}, {"id": 47, "type": "identifier", "text": "CanInsertDtmf", "parent": 46, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 28}}, {"id": 48, "type": "parameter_list", "text": "(const std::string& track_id)", "parent": 46, "children": [49], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 57}}, {"id": 49, "type": "parameter_declaration", "text": "const std::string& track_id", "parent": 48, "children": [50, 51, 53], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 56}}, {"id": 50, "type": "type_identifier", "text": "std", "parent": 49, "children": [], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 38}}, {"id": 51, "type": "ERROR", "text": "::string&", "parent": 49, "children": [52], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 47}}, {"id": 52, "type": "identifier", "text": "string", "parent": 51, "children": [], "start_point": {"row": 39, "column": 40}, "end_point": {"row": 39, "column": 46}}, {"id": 53, "type": "identifier", "text": "track_id", "parent": 49, "children": [], "start_point": {"row": 39, "column": 48}, "end_point": {"row": 39, "column": 56}}, {"id": 54, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 39, "column": 58}, "end_point": {"row": 39, "column": 59}}, {"id": 55, "type": "number_literal", "text": "0", "parent": 45, "children": [], "start_point": {"row": 39, "column": 60}, "end_point": {"row": 39, "column": 61}}, {"id": 56, "type": "declaration", "text": "virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;", "parent": 38, "children": [57, 58, 60], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 44, "column": 54}}, {"id": 57, "type": "type_identifier", "text": "virtual", "parent": 56, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 9}}, {"id": 58, "type": "ERROR", "text": "bool", "parent": 56, "children": [59], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 14}}, {"id": 59, "type": "identifier", "text": "bool", "parent": 58, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 14}}, {"id": 60, "type": "init_declarator", "text": "InsertDtmf(const std::string& track_id,\n int code, int duration) = 0", "parent": 56, "children": [61, 75, 76], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 44, "column": 53}}, {"id": 61, "type": "function_declarator", "text": "InsertDtmf(const std::string& track_id,\n int code, int duration)", "parent": 60, "children": [62, 63], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 44, "column": 49}}, {"id": 62, "type": "identifier", "text": "InsertDtmf", "parent": 61, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 25}}, {"id": 63, "type": "parameter_list", "text": "(const std::string& track_id,\n int code, int duration)", "parent": 61, "children": [64, 69, 72], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 44, "column": 49}}, {"id": 64, "type": "parameter_declaration", "text": "const std::string& track_id", "parent": 63, "children": [65, 66, 68], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 53}}, {"id": 65, "type": "type_identifier", "text": "std", "parent": 64, "children": [], "start_point": {"row": 43, "column": 32}, "end_point": {"row": 43, "column": 35}}, {"id": 66, "type": "ERROR", "text": "::string&", "parent": 64, "children": [67], "start_point": {"row": 43, "column": 35}, "end_point": {"row": 43, "column": 44}}, {"id": 67, "type": "identifier", "text": "string", "parent": 66, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 43}}, {"id": 68, "type": "identifier", "text": "track_id", "parent": 64, "children": [], "start_point": {"row": 43, "column": 45}, "end_point": {"row": 43, "column": 53}}, {"id": 69, "type": "parameter_declaration", "text": "int code", "parent": 63, "children": [70, 71], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 34}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 29}}, {"id": 71, "type": "identifier", "text": "code", "parent": 69, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 34}}, {"id": 72, "type": "parameter_declaration", "text": "int duration", "parent": 63, "children": [73, 74], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 48}}, {"id": 73, "type": "primitive_type", "text": "int", "parent": 72, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 39}}, {"id": 74, "type": "identifier", "text": "duration", "parent": 72, "children": [], "start_point": {"row": 44, "column": 40}, "end_point": {"row": 44, "column": 48}}, {"id": 75, "type": "=", "text": "=", "parent": 60, "children": [], "start_point": {"row": 44, "column": 50}, "end_point": {"row": 44, "column": 51}}, {"id": 76, "type": "number_literal", "text": "0", "parent": 60, "children": [], "start_point": {"row": 44, "column": 52}, "end_point": {"row": 44, "column": 53}}, {"id": 77, "type": "declaration", "text": "virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;", "parent": 38, "children": [78, 79, 84], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 57}}, {"id": 78, "type": "type_identifier", "text": "virtual", "parent": 77, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 9}}, {"id": 79, "type": "ERROR", "text": "sigslot::signal0<>", "parent": 77, "children": [80, 81, 82, 83], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 28}}, {"id": 80, "type": "identifier", "text": "sigslot", "parent": 79, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 17}}, {"id": 81, "type": "identifier", "text": "signal0", "parent": 79, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 26}}, {"id": 82, "type": "<", "text": "<", "parent": 79, "children": [], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 27}}, {"id": 83, "type": ">", "text": ">", "parent": 79, "children": [], "start_point": {"row": 47, "column": 27}, "end_point": {"row": 47, "column": 28}}, {"id": 84, "type": "init_declarator", "text": "* GetOnDestroyedSignal() = 0", "parent": 77, "children": [85, 90, 91], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 56}}, {"id": 85, "type": "pointer_declarator", "text": "* GetOnDestroyedSignal()", "parent": 84, "children": [86, 87], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 52}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 29}}, {"id": 87, "type": "function_declarator", "text": "GetOnDestroyedSignal()", "parent": 85, "children": [88, 89], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 52}}, {"id": 88, "type": "identifier", "text": "GetOnDestroyedSignal", "parent": 87, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 50}}, {"id": 89, "type": "parameter_list", "text": "()", "parent": 87, "children": [], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 52}}, {"id": 90, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 47, "column": 53}, "end_point": {"row": 47, "column": 54}}, {"id": 91, "type": "number_literal", "text": "0", "parent": 84, "children": [], "start_point": {"row": 47, "column": 55}, "end_point": {"row": 47, "column": 56}}, {"id": 92, "type": "labeled_statement", "text": "protected:\n virtual ~DtmfProviderInterface() {}", "parent": 38, "children": [93], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 50, "column": 37}}, {"id": 93, "type": "ERROR", "text": "virtual ~DtmfProviderInterface()", "parent": 92, "children": [94, 95, 97], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 34}}, {"id": 94, "type": "type_identifier", "text": "virtual", "parent": 93, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 9}}, {"id": 95, "type": "ERROR", "text": "~", "parent": 93, "children": [96], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 11}}, {"id": 96, "type": "~", "text": "~", "parent": 95, "children": [], "start_point": {"row": 50, "column": 10}, "end_point": {"row": 50, "column": 11}}, {"id": 97, "type": "function_declarator", "text": "DtmfProviderInterface()", "parent": 93, "children": [98, 99], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 34}}, {"id": 98, "type": "identifier", "text": "DtmfProviderInterface", "parent": 97, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 32}}, {"id": 99, "type": "parameter_list", "text": "()", "parent": 97, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 34}}, {"id": 100, "type": "declaration", "text": "class DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);", "parent": 35, "children": [101, 102, 104, 106, 107, 110, 118], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 61, "column": 39}}, {"id": 101, "type": "identifier", "text": "DtmfSender", "parent": 100, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 16}}, {"id": 102, "type": "ERROR", "text": ": public DtmfSenderInterface", "parent": 100, "children": [103], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 32}}, {"id": 103, "type": "identifier", "text": "DtmfSenderInterface", "parent": 102, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 32}}, {"id": 104, "type": "ERROR", "text": "public sigslot::", "parent": 100, "children": [105], "start_point": {"row": 55, "column": 6}, "end_point": {"row": 55, "column": 22}}, {"id": 105, "type": "identifier", "text": "sigslot", "parent": 104, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 20}}, {"id": 106, "type": "identifier", "text": "has_slots", "parent": 100, "children": [], "start_point": {"row": 55, "column": 22}, "end_point": {"row": 55, "column": 31}}, {"id": 107, "type": "ERROR", "text": "<>", "parent": 100, "children": [108, 109], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 33}}, {"id": 108, "type": "<", "text": "<", "parent": 107, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 32}}, {"id": 109, "type": ">", "text": ">", "parent": 107, "children": [], "start_point": {"row": 55, "column": 32}, "end_point": {"row": 55, "column": 33}}, {"id": 110, "type": "ERROR", "text": "public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender>", "parent": 100, "children": [111, 112, 113, 114, 115, 116, 117], "start_point": {"row": 56, "column": 6}, "end_point": {"row": 58, "column": 39}}, {"id": 111, "type": "identifier", "text": "rtc", "parent": 110, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 16}}, {"id": 112, "type": "identifier", "text": "MessageHandler", "parent": 110, "children": [], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 32}}, {"id": 113, "type": "identifier", "text": "rtc", "parent": 110, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 12}}, {"id": 114, "type": "identifier", "text": "scoped_refptr", "parent": 110, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 27}}, {"id": 115, "type": "<", "text": "<", "parent": 110, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 28}}, {"id": 116, "type": "identifier", "text": "DtmfSender", "parent": 110, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 38}}, {"id": 117, "type": ">", "text": ">", "parent": 110, "children": [], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 39}}, {"id": 118, "type": "function_declarator", "text": "Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider)", "parent": 100, "children": [119, 120], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 61, "column": 38}}, {"id": 119, "type": "identifier", "text": "Create", "parent": 118, "children": [], "start_point": {"row": 58, "column": 40}, "end_point": {"row": 58, "column": 46}}, {"id": 120, "type": "parameter_list", "text": "(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider)", "parent": 118, "children": [121, 126, 133], "start_point": {"row": 58, "column": 46}, "end_point": {"row": 61, "column": 38}}, {"id": 121, "type": "parameter_declaration", "text": "AudioTrackInterface* track", "parent": 120, "children": [122, 123], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 32}}, {"id": 122, "type": "type_identifier", "text": "AudioTrackInterface", "parent": 121, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 25}}, {"id": 123, "type": "pointer_declarator", "text": "* track", "parent": 121, "children": [124, 125], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 32}}, {"id": 124, "type": "*", "text": "*", "parent": 123, "children": [], "start_point": {"row": 59, "column": 25}, "end_point": {"row": 59, "column": 26}}, {"id": 125, "type": "identifier", "text": "track", "parent": 123, "children": [], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 32}}, {"id": 126, "type": "parameter_declaration", "text": "rtc::Thread* signaling_thread", "parent": 120, "children": [127, 128, 130], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 35}}, {"id": 127, "type": "type_identifier", "text": "rtc", "parent": 126, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 9}}, {"id": 128, "type": "ERROR", "text": "::Thread", "parent": 126, "children": [129], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 17}}, {"id": 129, "type": "identifier", "text": "Thread", "parent": 128, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 17}}, {"id": 130, "type": "pointer_declarator", "text": "* signaling_thread", "parent": 126, "children": [131, 132], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 35}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 18}}, {"id": 132, "type": "identifier", "text": "signaling_thread", "parent": 130, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 35}}, {"id": 133, "type": "parameter_declaration", "text": "DtmfProviderInterface* provider", "parent": 120, "children": [134, 135], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 37}}, {"id": 134, "type": "type_identifier", "text": "DtmfProviderInterface", "parent": 133, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 27}}, {"id": 135, "type": "pointer_declarator", "text": "* provider", "parent": 133, "children": [136, 137], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 37}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 61, "column": 27}, "end_point": {"row": 61, "column": 28}}, {"id": 137, "type": "identifier", "text": "provider", "parent": 135, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 37}}, {"id": 138, "type": "ERROR", "text": "void RegisterObserver(DtmfSenderObserverInterface* observer) override", "parent": 35, "children": [139, 140], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 71}}, {"id": 139, "type": "primitive_type", "text": "void", "parent": 138, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 6}}, {"id": 140, "type": "function_declarator", "text": "RegisterObserver(DtmfSenderObserverInterface* observer) override", "parent": 138, "children": [141, 142, 148], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 71}}, {"id": 141, "type": "identifier", "text": "RegisterObserver", "parent": 140, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 23}}, {"id": 142, "type": "parameter_list", "text": "(DtmfSenderObserverInterface* observer)", "parent": 140, "children": [143], "start_point": {"row": 64, "column": 23}, "end_point": {"row": 64, "column": 62}}, {"id": 143, "type": "parameter_declaration", "text": "DtmfSenderObserverInterface* observer", "parent": 142, "children": [144, 145], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 61}}, {"id": 144, "type": "type_identifier", "text": "DtmfSenderObserverInterface", "parent": 143, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 51}}, {"id": 145, "type": "pointer_declarator", "text": "* observer", "parent": 143, "children": [146, 147], "start_point": {"row": 64, "column": 51}, "end_point": {"row": 64, "column": 61}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 64, "column": 51}, "end_point": {"row": 64, "column": 52}}, {"id": 147, "type": "identifier", "text": "observer", "parent": 145, "children": [], "start_point": {"row": 64, "column": 53}, "end_point": {"row": 64, "column": 61}}, {"id": 148, "type": "identifier", "text": "override", "parent": 140, "children": [], "start_point": {"row": 64, "column": 63}, "end_point": {"row": 64, "column": 71}}, {"id": 149, "type": "ERROR", "text": "void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code)", "parent": 35, "children": [150, 151, 154, 157, 179, 187, 225, 232, 236, 249, 254, 259, 264, 272, 277, 284, 289, 294, 297, 300, 304, 305, 309], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 118, "column": 38}}, {"id": 150, "type": "primitive_type", "text": "void", "parent": 149, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 6}}, {"id": 151, "type": "function_declarator", "text": "UnregisterObserver()", "parent": 149, "children": [152, 153], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 27}}, {"id": 152, "type": "identifier", "text": "UnregisterObserver", "parent": 151, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 25}}, {"id": 153, "type": "parameter_list", "text": "()", "parent": 151, "children": [], "start_point": {"row": 65, "column": 25}, "end_point": {"row": 65, "column": 27}}, {"id": 154, "type": "declaration", "text": "override;", "parent": 149, "children": [155, 156], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 37}}, {"id": 155, "type": "type_identifier", "text": "override", "parent": 154, "children": [], "start_point": {"row": 65, "column": 28}, "end_point": {"row": 65, "column": 36}}, {"id": 156, "type": "identifier", "text": "", "parent": 154, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 36}}, {"id": 157, "type": "ERROR", "text": "bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;", "parent": 149, "children": [158, 159, 163, 164], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 69, "column": 47}}, {"id": 158, "type": "primitive_type", "text": "bool", "parent": 157, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 6}}, {"id": 159, "type": "function_declarator", "text": "CanInsertDtmf() override", "parent": 157, "children": [160, 161, 162], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 31}}, {"id": 160, "type": "identifier", "text": "CanInsertDtmf", "parent": 159, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 20}}, {"id": 161, "type": "parameter_list", "text": "()", "parent": 159, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 22}}, {"id": 162, "type": "identifier", "text": "override", "parent": 159, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 31}}, {"id": 163, "type": "primitive_type", "text": "bool", "parent": 157, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 6}}, {"id": 164, "type": "function_declarator", "text": "InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override", "parent": 157, "children": [165, 166, 178], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 69, "column": 46}}, {"id": 165, "type": "identifier", "text": "InsertDtmf", "parent": 164, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 17}}, {"id": 166, "type": "parameter_list", "text": "(const std::string& tones,\n int duration,\n int inter_tone_gap)", "parent": 164, "children": [167, 172, 175], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 69, "column": 37}}, {"id": 167, "type": "parameter_declaration", "text": "const std::string& tones", "parent": 166, "children": [168, 169, 171], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 42}}, {"id": 168, "type": "type_identifier", "text": "std", "parent": 167, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 27}}, {"id": 169, "type": "ERROR", "text": "::string&", "parent": 167, "children": [170], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 36}}, {"id": 170, "type": "identifier", "text": "string", "parent": 169, "children": [], "start_point": {"row": 67, "column": 29}, "end_point": {"row": 67, "column": 35}}, {"id": 171, "type": "identifier", "text": "tones", "parent": 167, "children": [], "start_point": {"row": 67, "column": 37}, "end_point": {"row": 67, "column": 42}}, {"id": 172, "type": "parameter_declaration", "text": "int duration", "parent": 166, "children": [173, 174], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 30}}, {"id": 173, "type": "primitive_type", "text": "int", "parent": 172, "children": [], "start_point": {"row": 68, "column": 18}, "end_point": {"row": 68, "column": 21}}, {"id": 174, "type": "identifier", "text": "duration", "parent": 172, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 30}}, {"id": 175, "type": "parameter_declaration", "text": "int inter_tone_gap", "parent": 166, "children": [176, 177], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 36}}, {"id": 176, "type": "primitive_type", "text": "int", "parent": 175, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 21}}, {"id": 177, "type": "identifier", "text": "inter_tone_gap", "parent": 175, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 36}}, {"id": 178, "type": "identifier", "text": "override", "parent": 164, "children": [], "start_point": {"row": 69, "column": 38}, "end_point": {"row": 69, "column": 46}}, {"id": 179, "type": "declaration", "text": "const AudioTrackInterface* track() const override;", "parent": 149, "children": [180, 181], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 52}}, {"id": 180, "type": "type_identifier", "text": "AudioTrackInterface", "parent": 179, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 27}}, {"id": 181, "type": "pointer_declarator", "text": "* track() const override", "parent": 179, "children": [182, 183], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 51}}, {"id": 182, "type": "*", "text": "*", "parent": 181, "children": [], "start_point": {"row": 70, "column": 27}, "end_point": {"row": 70, "column": 28}}, {"id": 183, "type": "function_declarator", "text": "track() const override", "parent": 181, "children": [184, 185, 186], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 51}}, {"id": 184, "type": "identifier", "text": "track", "parent": 183, "children": [], "start_point": {"row": 70, "column": 29}, "end_point": {"row": 70, "column": 34}}, {"id": 185, "type": "parameter_list", "text": "()", "parent": 183, "children": [], "start_point": {"row": 70, "column": 34}, "end_point": {"row": 70, "column": 36}}, {"id": 186, "type": "identifier", "text": "override", "parent": 183, "children": [], "start_point": {"row": 70, "column": 43}, "end_point": {"row": 70, "column": 51}}, {"id": 187, "type": "declaration", "text": "std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);", "parent": 149, "children": [188, 189, 205], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 78, "column": 46}}, {"id": 188, "type": "type_identifier", "text": "std", "parent": 187, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 5}}, {"id": 189, "type": "ERROR", "text": "::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:", "parent": 187, "children": [190, 191, 195, 196, 200, 201], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 75, "column": 11}}, {"id": 190, "type": "identifier", "text": "string", "parent": 189, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 13}}, {"id": 191, "type": "function_declarator", "text": "tones() const override", "parent": 189, "children": [192, 193, 194], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 36}}, {"id": 192, "type": "identifier", "text": "tones", "parent": 191, "children": [], "start_point": {"row": 71, "column": 14}, "end_point": {"row": 71, "column": 19}}, {"id": 193, "type": "parameter_list", "text": "()", "parent": 191, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 21}}, {"id": 194, "type": "identifier", "text": "override", "parent": 191, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 36}}, {"id": 195, "type": "primitive_type", "text": "int", "parent": 189, "children": [], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 5}}, {"id": 196, "type": "function_declarator", "text": "duration() const override", "parent": 189, "children": [197, 198, 199], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 31}}, {"id": 197, "type": "identifier", "text": "duration", "parent": 196, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 14}}, {"id": 198, "type": "parameter_list", "text": "()", "parent": 196, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 16}}, {"id": 199, "type": "identifier", "text": "override", "parent": 196, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 31}}, {"id": 200, "type": "primitive_type", "text": "int", "parent": 189, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 5}}, {"id": 201, "type": "function_declarator", "text": "inter_tone_gap() const override", "parent": 189, "children": [202, 203, 204], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 37}}, {"id": 202, "type": "identifier", "text": "inter_tone_gap", "parent": 201, "children": [], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 20}}, {"id": 203, "type": "parameter_list", "text": "()", "parent": 201, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 22}}, {"id": 204, "type": "identifier", "text": "override", "parent": 201, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 37}}, {"id": 205, "type": "function_declarator", "text": "DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider)", "parent": 187, "children": [206, 207], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 78, "column": 45}}, {"id": 206, "type": "identifier", "text": "DtmfSender", "parent": 205, "children": [], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 12}}, {"id": 207, "type": "parameter_list", "text": "(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider)", "parent": 205, "children": [208, 213, 220], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 78, "column": 45}}, {"id": 208, "type": "parameter_declaration", "text": "AudioTrackInterface* track", "parent": 207, "children": [209, 210], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 39}}, {"id": 209, "type": "type_identifier", "text": "AudioTrackInterface", "parent": 208, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 32}}, {"id": 210, "type": "pointer_declarator", "text": "* track", "parent": 208, "children": [211, 212], "start_point": {"row": 76, "column": 32}, "end_point": {"row": 76, "column": 39}}, {"id": 211, "type": "*", "text": "*", "parent": 210, "children": [], "start_point": {"row": 76, "column": 32}, "end_point": {"row": 76, "column": 33}}, {"id": 212, "type": "identifier", "text": "track", "parent": 210, "children": [], "start_point": {"row": 76, "column": 34}, "end_point": {"row": 76, "column": 39}}, {"id": 213, "type": "parameter_declaration", "text": "rtc::Thread* signaling_thread", "parent": 207, "children": [214, 215, 217], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 42}}, {"id": 214, "type": "type_identifier", "text": "rtc", "parent": 213, "children": [], "start_point": {"row": 77, "column": 13}, "end_point": {"row": 77, "column": 16}}, {"id": 215, "type": "ERROR", "text": "::Thread", "parent": 213, "children": [216], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 24}}, {"id": 216, "type": "identifier", "text": "Thread", "parent": 215, "children": [], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 24}}, {"id": 217, "type": "pointer_declarator", "text": "* signaling_thread", "parent": 213, "children": [218, 219], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 42}}, {"id": 218, "type": "*", "text": "*", "parent": 217, "children": [], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 25}}, {"id": 219, "type": "identifier", "text": "signaling_thread", "parent": 217, "children": [], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 77, "column": 42}}, {"id": 220, "type": "parameter_declaration", "text": "DtmfProviderInterface* provider", "parent": 207, "children": [221, 222], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 44}}, {"id": 221, "type": "type_identifier", "text": "DtmfProviderInterface", "parent": 220, "children": [], "start_point": {"row": 78, "column": 13}, "end_point": {"row": 78, "column": 34}}, {"id": 222, "type": "pointer_declarator", "text": "* provider", "parent": 220, "children": [223, 224], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 44}}, {"id": 223, "type": "*", "text": "*", "parent": 222, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 35}}, {"id": 224, "type": "identifier", "text": "provider", "parent": 222, "children": [], "start_point": {"row": 78, "column": 36}, "end_point": {"row": 78, "column": 44}}, {"id": 225, "type": "declaration", "text": "virtual ~DtmfSender();", "parent": 149, "children": [226, 227, 229], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 24}}, {"id": 226, "type": "type_identifier", "text": "virtual", "parent": 225, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 9}}, {"id": 227, "type": "ERROR", "text": "~", "parent": 225, "children": [228], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 11}}, {"id": 228, "type": "~", "text": "~", "parent": 227, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 11}}, {"id": 229, "type": "function_declarator", "text": "DtmfSender()", "parent": 225, "children": [230, 231], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 23}}, {"id": 230, "type": "identifier", "text": "DtmfSender", "parent": 229, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 21}}, {"id": 231, "type": "parameter_list", "text": "()", "parent": 229, "children": [], "start_point": {"row": 79, "column": 21}, "end_point": {"row": 79, "column": 23}}, {"id": 232, "type": "declaration", "text": "private:\n DtmfSender();", "parent": 149, "children": [233], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 82, "column": 15}}, {"id": 233, "type": "function_declarator", "text": "DtmfSender()", "parent": 232, "children": [234, 235], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 14}}, {"id": 234, "type": "identifier", "text": "DtmfSender", "parent": 233, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 12}}, {"id": 235, "type": "parameter_list", "text": "()", "parent": 233, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 14}}, {"id": 236, "type": "ERROR", "text": "void OnMessage(rtc::Message* msg) override;", "parent": 149, "children": [237, 238], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 45}}, {"id": 237, "type": "primitive_type", "text": "void", "parent": 236, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 6}}, {"id": 238, "type": "function_declarator", "text": "OnMessage(rtc::Message* msg) override", "parent": 236, "children": [239, 240, 248], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 44}}, {"id": 239, "type": "identifier", "text": "OnMessage", "parent": 238, "children": [], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 16}}, {"id": 240, "type": "parameter_list", "text": "(rtc::Message* msg)", "parent": 238, "children": [241], "start_point": {"row": 85, "column": 16}, "end_point": {"row": 85, "column": 35}}, {"id": 241, "type": "parameter_declaration", "text": "rtc::Message* msg", "parent": 240, "children": [242, 243, 245], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 34}}, {"id": 242, "type": "type_identifier", "text": "rtc", "parent": 241, "children": [], "start_point": {"row": 85, "column": 17}, "end_point": {"row": 85, "column": 20}}, {"id": 243, "type": "ERROR", "text": "::Message", "parent": 241, "children": [244], "start_point": {"row": 85, "column": 20}, "end_point": {"row": 85, "column": 29}}, {"id": 244, "type": "identifier", "text": "Message", "parent": 243, "children": [], "start_point": {"row": 85, "column": 22}, "end_point": {"row": 85, "column": 29}}, {"id": 245, "type": "pointer_declarator", "text": "* msg", "parent": 241, "children": [246, 247], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 34}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 85, "column": 29}, "end_point": {"row": 85, "column": 30}}, {"id": 247, "type": "identifier", "text": "msg", "parent": 245, "children": [], "start_point": {"row": 85, "column": 31}, "end_point": {"row": 85, "column": 34}}, {"id": 248, "type": "identifier", "text": "override", "parent": 238, "children": [], "start_point": {"row": 85, "column": 36}, "end_point": {"row": 85, "column": 44}}, {"id": 249, "type": "declaration", "text": "void DoInsertDtmf();", "parent": 149, "children": [250, 251], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 22}}, {"id": 250, "type": "primitive_type", "text": "void", "parent": 249, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 6}}, {"id": 251, "type": "function_declarator", "text": "DoInsertDtmf()", "parent": 249, "children": [252, 253], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 21}}, {"id": 252, "type": "identifier", "text": "DoInsertDtmf", "parent": 251, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 19}}, {"id": 253, "type": "parameter_list", "text": "()", "parent": 251, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 21}}, {"id": 254, "type": "declaration", "text": "void OnProviderDestroyed();", "parent": 149, "children": [255, 256], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 29}}, {"id": 255, "type": "primitive_type", "text": "void", "parent": 254, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 6}}, {"id": 256, "type": "function_declarator", "text": "OnProviderDestroyed()", "parent": 254, "children": [257, 258], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 28}}, {"id": 257, "type": "identifier", "text": "OnProviderDestroyed", "parent": 256, "children": [], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 26}}, {"id": 258, "type": "parameter_list", "text": "()", "parent": 256, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 28}}, {"id": 259, "type": "declaration", "text": "void StopSending();", "parent": 149, "children": [260, 261], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 21}}, {"id": 260, "type": "primitive_type", "text": "void", "parent": 259, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 6}}, {"id": 261, "type": "function_declarator", "text": "StopSending()", "parent": 259, "children": [262, 263], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 20}}, {"id": 262, "type": "identifier", "text": "StopSending", "parent": 261, "children": [], "start_point": {"row": 92, "column": 7}, "end_point": {"row": 92, "column": 18}}, {"id": 263, "type": "parameter_list", "text": "()", "parent": 261, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 20}}, {"id": 264, "type": "declaration", "text": "rtc::scoped_refptr<AudioTrackInterface> track_;", "parent": 149, "children": [265, 266, 271], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 49}}, {"id": 265, "type": "type_identifier", "text": "rtc", "parent": 264, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 5}}, {"id": 266, "type": "ERROR", "text": "::scoped_refptr<AudioTrackInterface>", "parent": 264, "children": [267, 268, 269, 270], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 41}}, {"id": 267, "type": "identifier", "text": "scoped_refptr", "parent": 266, "children": [], "start_point": {"row": 94, "column": 7}, "end_point": {"row": 94, "column": 20}}, {"id": 268, "type": "<", "text": "<", "parent": 266, "children": [], "start_point": {"row": 94, "column": 20}, "end_point": {"row": 94, "column": 21}}, {"id": 269, "type": "identifier", "text": "AudioTrackInterface", "parent": 266, "children": [], "start_point": {"row": 94, "column": 21}, "end_point": {"row": 94, "column": 40}}, {"id": 270, "type": ">", "text": ">", "parent": 266, "children": [], "start_point": {"row": 94, "column": 40}, "end_point": {"row": 94, "column": 41}}, {"id": 271, "type": "identifier", "text": "track_", "parent": 264, "children": [], "start_point": {"row": 94, "column": 42}, "end_point": {"row": 94, "column": 48}}, {"id": 272, "type": "declaration", "text": "DtmfSenderObserverInterface* observer_;", "parent": 149, "children": [273, 274], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 41}}, {"id": 273, "type": "type_identifier", "text": "DtmfSenderObserverInterface", "parent": 272, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 29}}, {"id": 274, "type": "pointer_declarator", "text": "* observer_", "parent": 272, "children": [275, 276], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 40}}, {"id": 275, "type": "*", "text": "*", "parent": 274, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 30}}, {"id": 276, "type": "identifier", "text": "observer_", "parent": 274, "children": [], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 40}}, {"id": 277, "type": "declaration", "text": "rtc::Thread* signaling_thread_;", "parent": 149, "children": [278, 279, 281], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 33}}, {"id": 278, "type": "type_identifier", "text": "rtc", "parent": 277, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 5}}, {"id": 279, "type": "ERROR", "text": "::Thread", "parent": 277, "children": [280], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 13}}, {"id": 280, "type": "identifier", "text": "Thread", "parent": 279, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 13}}, {"id": 281, "type": "pointer_declarator", "text": "* signaling_thread_", "parent": 277, "children": [282, 283], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 32}}, {"id": 282, "type": "*", "text": "*", "parent": 281, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 14}}, {"id": 283, "type": "identifier", "text": "signaling_thread_", "parent": 281, "children": [], "start_point": {"row": 96, "column": 15}, "end_point": {"row": 96, "column": 32}}, {"id": 284, "type": "declaration", "text": "DtmfProviderInterface* provider_;", "parent": 149, "children": [285, 286], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 35}}, {"id": 285, "type": "type_identifier", "text": "DtmfProviderInterface", "parent": 284, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 23}}, {"id": 286, "type": "pointer_declarator", "text": "* provider_", "parent": 284, "children": [287, 288], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 34}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 97, "column": 23}, "end_point": {"row": 97, "column": 24}}, {"id": 288, "type": "identifier", "text": "provider_", "parent": 286, "children": [], "start_point": {"row": 97, "column": 25}, "end_point": {"row": 97, "column": 34}}, {"id": 289, "type": "declaration", "text": "std::string tones_;", "parent": 149, "children": [290, 291, 293], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 21}}, {"id": 290, "type": "type_identifier", "text": "std", "parent": 289, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 5}}, {"id": 291, "type": "ERROR", "text": "::string", "parent": 289, "children": [292], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 13}}, {"id": 292, "type": "identifier", "text": "string", "parent": 291, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 13}}, {"id": 293, "type": "identifier", "text": "tones_", "parent": 289, "children": [], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 20}}, {"id": 294, "type": "declaration", "text": "int duration_;", "parent": 149, "children": [295, 296], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 16}}, {"id": 295, "type": "primitive_type", "text": "int", "parent": 294, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 5}}, {"id": 296, "type": "identifier", "text": "duration_", "parent": 294, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 15}}, {"id": 297, "type": "declaration", "text": "int inter_tone_gap_;", "parent": 149, "children": [298, 299], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 22}}, {"id": 298, "type": "primitive_type", "text": "int", "parent": 297, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 5}}, {"id": 299, "type": "identifier", "text": "inter_tone_gap_", "parent": 297, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 21}}, {"id": 300, "type": "declaration", "text": "RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);", "parent": 149, "children": [301, 302], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 43}}, {"id": 301, "type": "type_identifier", "text": "RTC_DISALLOW_COPY_AND_ASSIGN", "parent": 300, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 30}}, {"id": 302, "type": "parenthesized_declarator", "text": "(DtmfSender)", "parent": 300, "children": [303], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 42}}, {"id": 303, "type": "identifier", "text": "DtmfSender", "parent": 302, "children": [], "start_point": {"row": 102, "column": 31}, "end_point": {"row": 102, "column": 41}}, {"id": 304, "type": "ERROR", "text": "};", "parent": 149, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 2}}, {"id": 305, "type": "macro_type_specifier", "text": "BEGIN_SIGNALING_PROXY_MAP(DtmfSender)", "parent": 149, "children": [306, 307], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 37}}, {"id": 306, "type": "identifier", "text": "BEGIN_SIGNALING_PROXY_MAP", "parent": 305, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 25}}, {"id": 307, "type": "type_descriptor", "text": "DtmfSender", "parent": 305, "children": [308], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 36}}, {"id": 308, "type": "type_identifier", "text": "DtmfSender", "parent": 307, "children": [], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 36}}, {"id": 309, "type": "function_declarator", "text": "PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code)", "parent": 149, "children": [310, 311, 320, 325, 330, 340, 347, 354, 359, 364, 367, 368], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 118, "column": 38}}, {"id": 310, "type": "identifier", "text": "PROXY_METHOD1", "parent": 309, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 15}}, {"id": 311, "type": "parameter_list", "text": "(void, RegisterObserver, DtmfSenderObserverInterface*)", "parent": 309, "children": [312, 314, 316], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 69}}, {"id": 312, "type": "parameter_declaration", "text": "void", "parent": 311, "children": [313], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 20}}, {"id": 313, "type": "primitive_type", "text": "void", "parent": 312, "children": [], "start_point": {"row": 107, "column": 16}, "end_point": {"row": 107, "column": 20}}, {"id": 314, "type": "parameter_declaration", "text": "RegisterObserver", "parent": 311, "children": [315], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 38}}, {"id": 315, "type": "type_identifier", "text": "RegisterObserver", "parent": 314, "children": [], "start_point": {"row": 107, "column": 22}, "end_point": {"row": 107, "column": 38}}, {"id": 316, "type": "parameter_declaration", "text": "DtmfSenderObserverInterface*", "parent": 311, "children": [317, 318], "start_point": {"row": 107, "column": 40}, "end_point": {"row": 107, "column": 68}}, {"id": 317, "type": "type_identifier", "text": "DtmfSenderObserverInterface", "parent": 316, "children": [], "start_point": {"row": 107, "column": 40}, "end_point": {"row": 107, "column": 67}}, {"id": 318, "type": "abstract_pointer_declarator", "text": "*", "parent": 316, "children": [319], "start_point": {"row": 107, "column": 67}, "end_point": {"row": 107, "column": 68}}, {"id": 319, "type": "*", "text": "*", "parent": 318, "children": [], "start_point": {"row": 107, "column": 67}, "end_point": {"row": 107, "column": 68}}, {"id": 320, "type": "call_expression", "text": "PROXY_METHOD0(void, UnregisterObserver)", "parent": 309, "children": [321, 322], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 41}}, {"id": 321, "type": "identifier", "text": "PROXY_METHOD0", "parent": 320, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 15}}, {"id": 322, "type": "argument_list", "text": "(void, UnregisterObserver)", "parent": 320, "children": [323, 324], "start_point": {"row": 108, "column": 15}, "end_point": {"row": 108, "column": 41}}, {"id": 323, "type": "identifier", "text": "void", "parent": 322, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 20}}, {"id": 324, "type": "identifier", "text": "UnregisterObserver", "parent": 322, "children": [], "start_point": {"row": 108, "column": 22}, "end_point": {"row": 108, "column": 40}}, {"id": 325, "type": "call_expression", "text": "PROXY_METHOD0(bool, CanInsertDtmf)", "parent": 309, "children": [326, 327], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 36}}, {"id": 326, "type": "identifier", "text": "PROXY_METHOD0", "parent": 325, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 15}}, {"id": 327, "type": "argument_list", "text": "(bool, CanInsertDtmf)", "parent": 325, "children": [328, 329], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 36}}, {"id": 328, "type": "identifier", "text": "bool", "parent": 327, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 20}}, {"id": 329, "type": "identifier", "text": "CanInsertDtmf", "parent": 327, "children": [], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 35}}, {"id": 330, "type": "call_expression", "text": "PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)", "parent": 309, "children": [331, 332], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 63}}, {"id": 331, "type": "identifier", "text": "PROXY_METHOD3", "parent": 330, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 15}}, {"id": 332, "type": "argument_list", "text": "(bool, InsertDtmf, const std::string&, int, int)", "parent": 330, "children": [333, 334, 335, 338, 339], "start_point": {"row": 110, "column": 15}, "end_point": {"row": 110, "column": 63}}, {"id": 333, "type": "identifier", "text": "bool", "parent": 332, "children": [], "start_point": {"row": 110, "column": 16}, "end_point": {"row": 110, "column": 20}}, {"id": 334, "type": "identifier", "text": "InsertDtmf", "parent": 332, "children": [], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 32}}, {"id": 335, "type": "ERROR", "text": "std::string&", "parent": 332, "children": [336, 337], "start_point": {"row": 110, "column": 40}, "end_point": {"row": 110, "column": 52}}, {"id": 336, "type": "identifier", "text": "std", "parent": 335, "children": [], "start_point": {"row": 110, "column": 40}, "end_point": {"row": 110, "column": 43}}, {"id": 337, "type": "identifier", "text": "string", "parent": 335, "children": [], "start_point": {"row": 110, "column": 45}, "end_point": {"row": 110, "column": 51}}, {"id": 338, "type": "identifier", "text": "int", "parent": 332, "children": [], "start_point": {"row": 110, "column": 54}, "end_point": {"row": 110, "column": 57}}, {"id": 339, "type": "identifier", "text": "int", "parent": 332, "children": [], "start_point": {"row": 110, "column": 59}, "end_point": {"row": 110, "column": 62}}, {"id": 340, "type": "call_expression", "text": "PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)", "parent": 309, "children": [341, 342], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 55}}, {"id": 341, "type": "identifier", "text": "PROXY_CONSTMETHOD0", "parent": 340, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 20}}, {"id": 342, "type": "argument_list", "text": "(const AudioTrackInterface*, track)", "parent": 340, "children": [343], "start_point": {"row": 111, "column": 20}, "end_point": {"row": 111, "column": 55}}, {"id": 343, "type": "binary_expression", "text": "AudioTrackInterface*, track", "parent": 342, "children": [344, 345, 346], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 54}}, {"id": 344, "type": "identifier", "text": "AudioTrackInterface", "parent": 343, "children": [], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 46}}, {"id": 345, "type": "*", "text": "*", "parent": 343, "children": [], "start_point": {"row": 111, "column": 46}, "end_point": {"row": 111, "column": 47}}, {"id": 346, "type": "identifier", "text": "track", "parent": 343, "children": [], "start_point": {"row": 111, "column": 49}, "end_point": {"row": 111, "column": 54}}, {"id": 347, "type": "call_expression", "text": "PROXY_CONSTMETHOD0(std::string, tones)", "parent": 309, "children": [348, 349], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 40}}, {"id": 348, "type": "identifier", "text": "PROXY_CONSTMETHOD0", "parent": 347, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 20}}, {"id": 349, "type": "argument_list", "text": "(std::string, tones)", "parent": 347, "children": [350, 352, 353], "start_point": {"row": 112, "column": 20}, "end_point": {"row": 112, "column": 40}}, {"id": 350, "type": "ERROR", "text": "std::", "parent": 349, "children": [351], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 26}}, {"id": 351, "type": "identifier", "text": "std", "parent": 350, "children": [], "start_point": {"row": 112, "column": 21}, "end_point": {"row": 112, "column": 24}}, {"id": 352, "type": "identifier", "text": "string", "parent": 349, "children": [], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 32}}, {"id": 353, "type": "identifier", "text": "tones", "parent": 349, "children": [], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 39}}, {"id": 354, "type": "call_expression", "text": "PROXY_CONSTMETHOD0(int, duration)", "parent": 309, "children": [355, 356], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 35}}, {"id": 355, "type": "identifier", "text": "PROXY_CONSTMETHOD0", "parent": 354, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 20}}, {"id": 356, "type": "argument_list", "text": "(int, duration)", "parent": 354, "children": [357, 358], "start_point": {"row": 113, "column": 20}, "end_point": {"row": 113, "column": 35}}, {"id": 357, "type": "identifier", "text": "int", "parent": 356, "children": [], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 24}}, {"id": 358, "type": "identifier", "text": "duration", "parent": 356, "children": [], "start_point": {"row": 113, "column": 26}, "end_point": {"row": 113, "column": 34}}, {"id": 359, "type": "call_expression", "text": "PROXY_CONSTMETHOD0(int, inter_tone_gap)", "parent": 309, "children": [360, 361], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 41}}, {"id": 360, "type": "identifier", "text": "PROXY_CONSTMETHOD0", "parent": 359, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 20}}, {"id": 361, "type": "argument_list", "text": "(int, inter_tone_gap)", "parent": 359, "children": [362, 363], "start_point": {"row": 114, "column": 20}, "end_point": {"row": 114, "column": 41}}, {"id": 362, "type": "identifier", "text": "int", "parent": 361, "children": [], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 24}}, {"id": 363, "type": "identifier", "text": "inter_tone_gap", "parent": 361, "children": [], "start_point": {"row": 114, "column": 26}, "end_point": {"row": 114, "column": 40}}, {"id": 364, "type": "call_expression", "text": "END_SIGNALING_PROXY()", "parent": 309, "children": [365, 366], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 21}}, {"id": 365, "type": "identifier", "text": "END_SIGNALING_PROXY", "parent": 364, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 19}}, {"id": 366, "type": "argument_list", "text": "()", "parent": 364, "children": [], "start_point": {"row": 115, "column": 19}, "end_point": {"row": 115, "column": 21}}, {"id": 367, "type": "identifier", "text": "bool", "parent": 309, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 4}}, {"id": 368, "type": "call_expression", "text": "GetDtmfCode(char tone, int* code)", "parent": 309, "children": [369, 370], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 38}}, {"id": 369, "type": "identifier", "text": "GetDtmfCode", "parent": 368, "children": [], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 16}}, {"id": 370, "type": "argument_list", "text": "(char tone, int* code)", "parent": 368, "children": [371, 372, 374], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 38}}, {"id": 371, "type": "identifier", "text": "char", "parent": 370, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 21}}, {"id": 372, "type": "ERROR", "text": "tone", "parent": 370, "children": [373], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 26}}, {"id": 373, "type": "identifier", "text": "tone", "parent": 372, "children": [], "start_point": {"row": 118, "column": 22}, "end_point": {"row": 118, "column": 26}}, {"id": 374, "type": "binary_expression", "text": "int* code", "parent": 370, "children": [375, 376, 377], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 37}}, {"id": 375, "type": "identifier", "text": "int", "parent": 374, "children": [], "start_point": {"row": 118, "column": 28}, "end_point": {"row": 118, "column": 31}}, {"id": 376, "type": "*", "text": "*", "parent": 374, "children": [], "start_point": {"row": 118, "column": 31}, "end_point": {"row": 118, "column": 32}}, {"id": 377, "type": "identifier", "text": "code", "parent": 374, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 37}}, {"id": 378, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 122, "column": 6}}]}, "node_categories": {"declarations": {"functions": [30, 35, 38, 46, 61, 87, 97, 118, 140, 151, 159, 164, 183, 191, 196, 201, 205, 229, 233, 238, 251, 256, 261, 309], "variables": [33, 41, 49, 56, 64, 69, 72, 77, 100, 121, 126, 133, 143, 154, 167, 172, 175, 179, 187, 208, 213, 220, 225, 232, 241, 249, 254, 259, 264, 272, 277, 284, 289, 294, 297, 300, 312, 314, 316], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28], "modules": [], "enums": []}, "statements": {"expressions": [320, 325, 330, 340, 343, 347, 354, 359, 364, 368, 374], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 31, 32, 34, 36, 37, 39, 42, 44, 47, 50, 52, 53, 57, 59, 62, 65, 67, 68, 71, 74, 78, 80, 81, 88, 94, 98, 101, 103, 105, 106, 111, 112, 113, 114, 116, 119, 122, 125, 127, 129, 132, 134, 137, 141, 144, 147, 148, 152, 155, 156, 160, 162, 165, 168, 170, 171, 174, 177, 178, 180, 184, 186, 188, 190, 192, 194, 197, 199, 202, 204, 206, 209, 212, 214, 216, 219, 221, 224, 226, 230, 234, 239, 242, 244, 247, 248, 252, 257, 262, 265, 267, 269, 271, 273, 276, 278, 280, 283, 285, 288, 290, 292, 293, 296, 299, 301, 303, 305, 306, 308, 310, 315, 317, 321, 323, 324, 326, 328, 329, 331, 333, 334, 336, 337, 338, 339, 341, 344, 346, 348, 351, 352, 353, 355, 357, 358, 360, 362, 363, 365, 367, 369, 371, 373, 375, 377, 378], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 26, 29, 55, 76, 91], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 30, "universal_type": "function", "name": "Thread;", "text_snippet": "namespace rtc {\nclass Thread;\n}"}, {"node_id": 35, "universal_type": "function", "name": "is", "text_snippet": "namespace webrtc {\n\n// This interface is called by DtmfSender to talk to the actual audio channel\n//"}, {"node_id": 38, "universal_type": "function", "name": "DtmfProviderInterface", "text_snippet": "class DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "CanInsertDtmf(const std::string& track_id)"}, {"node_id": 61, "universal_type": "function", "name": "code,", "text_snippet": "InsertDtmf(const std::string& track_id,\n int code, int duration)"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "GetOnDestroyedSignal()"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "DtmfProviderInterface()"}, {"node_id": 118, "universal_type": "function", "name": "unknown", "text_snippet": "Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInt"}, {"node_id": 140, "universal_type": "function", "name": "unknown", "text_snippet": "RegisterObserver(DtmfSenderObserverInterface* observer) override"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "UnregisterObserver()"}, {"node_id": 159, "universal_type": "function", "name": "unknown", "text_snippet": "CanInsertDtmf() override"}, {"node_id": 164, "universal_type": "function", "name": "duration,", "text_snippet": "InsertDtmf(const std::string& tones,\n int duration,\n int inter_ton"}, {"node_id": 183, "universal_type": "function", "name": "unknown", "text_snippet": "track() const override"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "tones() const override"}, {"node_id": 196, "universal_type": "function", "name": "unknown", "text_snippet": "duration() const override"}, {"node_id": 201, "universal_type": "function", "name": "unknown", "text_snippet": "inter_tone_gap() const override"}, {"node_id": 205, "universal_type": "function", "name": "unknown", "text_snippet": "DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n Dtmf"}, {"node_id": 229, "universal_type": "function", "name": "unknown", "text_snippet": "DtmfSender()"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "DtmfSender()"}, {"node_id": 238, "universal_type": "function", "name": "unknown", "text_snippet": "OnMessage(rtc::Message* msg) override"}, {"node_id": 251, "universal_type": "function", "name": "unknown", "text_snippet": "DoInsertDtmf()"}, {"node_id": 256, "universal_type": "function", "name": "unknown", "text_snippet": "OnProviderDestroyed()"}, {"node_id": 261, "universal_type": "function", "name": "unknown", "text_snippet": "StopSending()"}, {"node_id": 309, "universal_type": "function", "name": "GetDtmfCode", "text_snippet": "PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, Unregister"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"webrtc/api/dtmfsenderinterface.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"webrtc/api/mediastreaminterface.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"webrtc/api/proxy.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"webrtc/base/common.h\"\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include \"webrtc/base/constructormagic.h\"\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include \"webrtc/base/messagehandler.h\"\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include \"webrtc/base/refcount.h\"\n"}, {"node_id": 28, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2012 The WebRTC project authors. All Rights Reserved.\n *\n * Use of this source code is governed by a BSD-style license\n * that can be found in the LICENSE file in the root of the source\n * tree. An additional intellectual property rights grant can be found\n * in the file PATENTS. All contributing project authors may\n * be found in the AUTHORS file in the root of the source tree.\n */\n\n#ifndef WEBRTC_API_DTMFSENDER_H_\n#define WEBRTC_API_DTMFSENDER_H_\n\n#include <string>\n\n#include \"webrtc/api/dtmfsenderinterface.h\"\n#include \"webrtc/api/mediastreaminterface.h\"\n#include \"webrtc/api/proxy.h\"\n#include \"webrtc/base/common.h\"\n#include \"webrtc/base/constructormagic.h\"\n#include \"webrtc/base/messagehandler.h\"\n#include \"webrtc/base/refcount.h\"\n\n// DtmfSender is the native implementation of the RTCDTMFSender defined by\n// the WebRTC W3C Editor's Draft.\n// http://dev.w3.org/2011/webrtc/editor/webrtc.html\n\nnamespace rtc {\nclass Thread;\n}\n\nnamespace webrtc {\n\n// This interface is called by DtmfSender to talk to the actual audio channel\n// to send DTMF.\nclass DtmfProviderInterface {\n public:\n // Returns true if the audio track with given id (|track_id|) is capable\n // of sending DTMF. Otherwise returns false.\n virtual bool CanInsertDtmf(const std::string& track_id) = 0;\n // Sends DTMF |code| via the audio track with given id (|track_id|).\n // The |duration| indicates the length of the DTMF tone in ms.\n // Returns true on success and false on failure.\n virtual bool InsertDtmf(const std::string& track_id,\n int code, int duration) = 0;\n // Returns a |sigslot::signal0<>| signal. The signal should fire before\n // the provider is destroyed.\n virtual sigslot::signal0<>* GetOnDestroyedSignal() = 0;\n\n protected:\n virtual ~DtmfProviderInterface() {}\n};\n\nclass DtmfSender\n : public DtmfSenderInterface,\n public sigslot::has_slots<>,\n public rtc::MessageHandler {\n public:\n static rtc::scoped_refptr<DtmfSender> Create(\n AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n\n // Implements DtmfSenderInterface.\n void RegisterObserver(DtmfSenderObserverInterface* observer) override;\n void UnregisterObserver() override;\n bool CanInsertDtmf() override;\n bool InsertDtmf(const std::string& tones,\n int duration,\n int inter_tone_gap) override;\n const AudioTrackInterface* track() const override;\n std::string tones() const override;\n int duration() const override;\n int inter_tone_gap() const override;\n\n protected:\n DtmfSender(AudioTrackInterface* track,\n rtc::Thread* signaling_thread,\n DtmfProviderInterface* provider);\n virtual ~DtmfSender();\n\n private:\n DtmfSender();\n\n // Implements MessageHandler.\n void OnMessage(rtc::Message* msg) override;\n\n // The DTMF sending task.\n void DoInsertDtmf();\n\n void OnProviderDestroyed();\n\n void StopSending();\n\n rtc::scoped_refptr<AudioTrackInterface> track_;\n DtmfSenderObserverInterface* observer_;\n rtc::Thread* signaling_thread_;\n DtmfProviderInterface* provider_;\n std::string tones_;\n int duration_;\n int inter_tone_gap_;\n\n RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender);\n};\n\n// Define proxy for DtmfSenderInterface.\nBEGIN_SIGNALING_PROXY_MAP(DtmfSender)\n PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*)\n PROXY_METHOD0(void, UnregisterObserver)\n PROXY_METHOD0(bool, CanInsertDtmf)\n PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int)\n PROXY_CONSTMETHOD0(const AudioTrackInterface*, track)\n PROXY_CONSTMETHOD0(std::string, tones)\n PROXY_CONSTMETHOD0(int, duration)\n PROXY_CONSTMETHOD0(int, inter_tone_gap)\nEND_SIGNALING_PROXY()\n\n// Get DTMF code from the DTMF event character.\nbool GetDtmfCode(char tone, int* code);\n\n} // namespace webrtc\n\n#endif // WEBRTC_API_DTMFSENDER_H_\n"}
80,324
c
#ifndef HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED #define HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED /* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (including but not limited to OpenSSL) that is licensed under separate terms, as designated in a particular file or component or in included license documentation. The authors of MySQL hereby grant you an additional permission to link the program and your derivative works with the separately licensed software that they have included with MySQL. 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, version 2.0, 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 St, Fifth Floor, Boston, MA 02110-1301 USA */ /** @file sql/histograms/equi_height_bucket.h Equi-height bucket. This file defines the class representing an equi-height bucket. A bucket holds four different values: - Lower inclusive value. - Upper inclusive value. - The cumulative frequency (between 0.0 and 1.0). - Number of distinct values in this bucket. */ #include "my_base.h" // ha_rows #include "my_inttypes.h" #include "mysql_time.h" #include "sql/my_decimal.h" #include "sql_string.h" class Json_array; namespace histograms { namespace equi_height { /** Equi-height bucket. */ template <class T> class Bucket { private: /// Lower inclusive value contained in this bucket. const T m_lower_inclusive; /// Upper inclusive value contained in this bucket. const T m_upper_inclusive; /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0 const double m_cumulative_frequency; /// Number of distinct values in this bucket. const ha_rows m_num_distinct; /** Add values to a JSON bucket This function adds the lower and upper inclusive value to the supplied JSON array. The lower value is added first. @param lower_value the lower inclusive value to add @param upper_value the upper inclusive value to add @param[out] json_array a JSON array where the bucket data is stored @return true on error, false otherwise. */ static bool add_values_json_bucket(const T &lower_value, const T &upper_value, Json_array *json_array); public: /** Equi-height bucket constructor. Does nothing more than setting the member variables. @param lower lower inclusive value @param upper upper inclusive value @param freq the cumulative frequency @param num_distinct number of distinct values in this bucket */ Bucket(T lower, T upper, double freq, ha_rows num_distinct); /** @return lower inclusive value */ const T &get_lower_inclusive() const { return m_lower_inclusive; } /** @return upper inclusive value */ const T &get_upper_inclusive() const { return m_upper_inclusive; } /** @return cumulative frequency */ double get_cumulative_frequency() const { return m_cumulative_frequency; } /** @return number of distinct values */ ha_rows get_num_distinct() const { return m_num_distinct; } /** Convert this equi-height bucket to a JSON array. This function will take the contents of the current equi-height bucket and put it in the output parameter "json_array". The result is an array with the following contents: Index 0: Lower inclusive value. Index 1: Upper inclusive value. Index 2: Cumulative frequency. Index 3: Number of distinct values. @param[out] json_array output where the bucket content is to be stored @return true on error, false otherwise */ bool bucket_to_json(Json_array *json_array) const; /** Returns the "distance" between lower inclusive value and the argument "value". The return value is a number between 0.0 and 1.0. A value of 0.0 indicates that "value" is equal to or less than the lower inclusive value. A value of 1.0 indicates that "value" is equal or greater to the upper inclusive value. @param value The value to caluclate the distance for @return The distance between "value" and lower inclusive value. */ double get_distance_from_lower(const T &value) const; /** Calculate how high the probability is for a single value existing in the bucket. This is basically equal to the number of distinct values in the bucket divided by the number of possible values in the bucket range. For strings, double, decimals and such, the probability will be very low since the number of possible values is VERY big. For integer values, the probability may be rather high if the difference between the lower and upper value is low. @return Probability of a value existing in the bucket, between 0.0 and 1.0 inclusive. */ double value_probability() const; }; } // namespace equi_height } // namespace histograms #endif
41.61
127
(translation_unit) "#ifndef HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n#define HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n\n/* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.\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, version 2.0,\n as published by the Free Software Foundation.\n\n This program is also distributed with certain software (including\n but not limited to OpenSSL) that is licensed under separate terms,\n as designated in a particular file or component or in included license\n documentation. The authors of MySQL hereby grant you an additional\n permission to link the program and your derivative works with the\n separately licensed software that they have included with MySQL.\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, version 2.0, 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\n Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */\n\n/**\n @file sql/histograms/equi_height_bucket.h\n Equi-height bucket.\n\n This file defines the class representing an equi-height bucket. A bucket holds\n four different values:\n - Lower inclusive value.\n - Upper inclusive value.\n - The cumulative frequency (between 0.0 and 1.0).\n - Number of distinct values in this bucket.\n*/\n\n#include "my_base.h" // ha_rows\n#include "my_inttypes.h"\n#include "mysql_time.h"\n#include "sql/my_decimal.h"\n#include "sql_string.h"\n\nclass Json_array;\n\nnamespace histograms {\nnamespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter "json_array". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the "distance" between lower inclusive value and the argument\n "value".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that "value" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that "value" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between "value" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n} // namespace equi_height\n} // namespace histograms\n\n#endif\n" (preproc_ifdef) "#ifndef HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n#define HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n\n/* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.\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, version 2.0,\n as published by the Free Software Foundation.\n\n This program is also distributed with certain software (including\n but not limited to OpenSSL) that is licensed under separate terms,\n as designated in a particular file or component or in included license\n documentation. The authors of MySQL hereby grant you an additional\n permission to link the program and your derivative works with the\n separately licensed software that they have included with MySQL.\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, version 2.0, 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\n Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */\n\n/**\n @file sql/histograms/equi_height_bucket.h\n Equi-height bucket.\n\n This file defines the class representing an equi-height bucket. A bucket holds\n four different values:\n - Lower inclusive value.\n - Upper inclusive value.\n - The cumulative frequency (between 0.0 and 1.0).\n - Number of distinct values in this bucket.\n*/\n\n#include "my_base.h" // ha_rows\n#include "my_inttypes.h"\n#include "mysql_time.h"\n#include "sql/my_decimal.h"\n#include "sql_string.h"\n\nclass Json_array;\n\nnamespace histograms {\nnamespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter "json_array". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the "distance" between lower inclusive value and the argument\n "value".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that "value" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that "value" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between "value" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n} // namespace equi_height\n} // namespace histograms\n\n#endif" (#ifndef) "#ifndef" (identifier) "HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED" (preproc_def) "#define HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n" (#define) "#define" (identifier) "HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED" (comment) "/* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.\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, version 2.0,\n as published by the Free Software Foundation.\n\n This program is also distributed with certain software (including\n but not limited to OpenSSL) that is licensed under separate terms,\n as designated in a particular file or component or in included license\n documentation. The authors of MySQL hereby grant you an additional\n permission to link the program and your derivative works with the\n separately licensed software that they have included with MySQL.\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, version 2.0, 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\n Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */" (comment) "/**\n @file sql/histograms/equi_height_bucket.h\n Equi-height bucket.\n\n This file defines the class representing an equi-height bucket. A bucket holds\n four different values:\n - Lower inclusive value.\n - Upper inclusive value.\n - The cumulative frequency (between 0.0 and 1.0).\n - Number of distinct values in this bucket.\n*/" (preproc_include) "#include "my_base.h" // ha_rows\n" (#include) "#include" (string_literal) ""my_base.h"" (") """ (string_content) "my_base.h" (") """ (comment) "// ha_rows" (preproc_include) "#include "my_inttypes.h"\n" (#include) "#include" (string_literal) ""my_inttypes.h"" (") """ (string_content) "my_inttypes.h" (") """ (preproc_include) "#include "mysql_time.h"\n" (#include) "#include" (string_literal) ""mysql_time.h"" (") """ (string_content) "mysql_time.h" (") """ (preproc_include) "#include "sql/my_decimal.h"\n" (#include) "#include" (string_literal) ""sql/my_decimal.h"" (") """ (string_content) "sql/my_decimal.h" (") """ (preproc_include) "#include "sql_string.h"\n" (#include) "#include" (string_literal) ""sql_string.h"" (") """ (string_content) "sql_string.h" (") """ (declaration) "class Json_array;" (type_identifier) "class" (identifier) "Json_array" (;) ";" (function_definition) "namespace histograms {\nnamespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter "json_array". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the "distance" between lower inclusive value and the argument\n "value".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that "value" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that "value" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between "value" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n} // namespace equi_height\n}" (type_identifier) "namespace" (identifier) "histograms" (compound_statement) "{\nnamespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter "json_array". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the "distance" between lower inclusive value and the argument\n "value".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that "value" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that "value" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between "value" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n} // namespace equi_height\n}" ({) "{" (function_definition) "namespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter "json_array". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the "distance" between lower inclusive value and the argument\n "value".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that "value" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that "value" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between "value" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n}" (type_identifier) "namespace" (identifier) "equi_height" (compound_statement) "{\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter "json_array". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the "distance" between lower inclusive value and the argument\n "value".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that "value" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that "value" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between "value" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n}" ({) "{" (comment) "/**\n Equi-height bucket.\n*/" (ERROR) "template <class T>\nclass Bucket" (binary_expression) "template <class T>\nclass" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (identifier) "Bucket" (compound_statement) "{\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter "json_array". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the "distance" between lower inclusive value and the argument\n "value".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that "value" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that "value" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between "value" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n}" ({) "{" (labeled_statement) "private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;" (statement_identifier) "private" (:) ":" (comment) "/// Lower inclusive value contained in this bucket." (declaration) "const T m_lower_inclusive;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (identifier) "m_lower_inclusive" (;) ";" (comment) "/// Upper inclusive value contained in this bucket." (declaration) "const T m_upper_inclusive;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (identifier) "m_upper_inclusive" (;) ";" (comment) "/// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0" (declaration) "const double m_cumulative_frequency;" (type_qualifier) "const" (const) "const" (primitive_type) "double" (identifier) "m_cumulative_frequency" (;) ";" (comment) "/// Number of distinct values in this bucket." (declaration) "const ha_rows m_num_distinct;" (type_qualifier) "const" (const) "const" (type_identifier) "ha_rows" (identifier) "m_num_distinct" (;) ";" (comment) "/**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */" (declaration) "static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array)" (identifier) "add_values_json_bucket" (parameter_list) "(const T &lower_value, const T &upper_value,\n Json_array *json_array)" (() "(" (parameter_declaration) "const T &lower_value" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (identifier) "lower_value" (,) "," (parameter_declaration) "const T &upper_value" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (identifier) "upper_value" (,) "," (parameter_declaration) "Json_array *json_array" (type_identifier) "Json_array" (pointer_declarator) "*json_array" (*) "*" (identifier) "json_array" ()) ")" (;) ";" (labeled_statement) "public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);" (statement_identifier) "public" (:) ":" (comment) "/**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */" (declaration) "Bucket(T lower, T upper, double freq, ha_rows num_distinct);" (macro_type_specifier) "Bucket(T" (identifier) "Bucket" (() "(" (type_descriptor) "T" (type_identifier) "T" ()) "" (identifier) "lower" (,) "," (ERROR) "T" (identifier) "T" (identifier) "upper" (,) "," (identifier) "double" (ERROR) "freq" (identifier) "freq" (,) "," (identifier) "ha_rows" (ERROR) "num_distinct)" (identifier) "num_distinct" ()) ")" (;) ";" (comment) "/**\n @return lower inclusive value\n */" (ERROR) "const T &get_lower_inclusive() const" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (function_declarator) "get_lower_inclusive()" (identifier) "get_lower_inclusive" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_lower_inclusive; }" ({) "{" (return_statement) "return m_lower_inclusive;" (return) "return" (identifier) "m_lower_inclusive" (;) ";" (}) "}" (comment) "/**\n @return upper inclusive value\n */" (ERROR) "const T &get_upper_inclusive() const" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (function_declarator) "get_upper_inclusive()" (identifier) "get_upper_inclusive" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_upper_inclusive; }" ({) "{" (return_statement) "return m_upper_inclusive;" (return) "return" (identifier) "m_upper_inclusive" (;) ";" (}) "}" (comment) "/**\n @return cumulative frequency\n */" (ERROR) "double get_cumulative_frequency() const" (primitive_type) "double" (function_declarator) "get_cumulative_frequency()" (identifier) "get_cumulative_frequency" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_cumulative_frequency; }" ({) "{" (return_statement) "return m_cumulative_frequency;" (return) "return" (identifier) "m_cumulative_frequency" (;) ";" (}) "}" (comment) "/**\n @return number of distinct values\n */" (ERROR) "ha_rows get_num_distinct() const" (type_identifier) "ha_rows" (function_declarator) "get_num_distinct()" (identifier) "get_num_distinct" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_num_distinct; }" ({) "{" (return_statement) "return m_num_distinct;" (return) "return" (identifier) "m_num_distinct" (;) ";" (}) "}" (comment) "/**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter "json_array". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */" (ERROR) "bool bucket_to_json(Json_array *json_array) const" (primitive_type) "bool" (function_declarator) "bucket_to_json(Json_array *json_array) const" (identifier) "bucket_to_json" (parameter_list) "(Json_array *json_array)" (() "(" (parameter_declaration) "Json_array *json_array" (type_identifier) "Json_array" (pointer_declarator) "*json_array" (*) "*" (identifier) "json_array" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n Returns the "distance" between lower inclusive value and the argument\n "value".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that "value" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that "value" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between "value" and lower inclusive value.\n */" (ERROR) "double get_distance_from_lower(const T &value) const" (primitive_type) "double" (function_declarator) "get_distance_from_lower(const T &value) const" (identifier) "get_distance_from_lower" (parameter_list) "(const T &value)" (() "(" (parameter_declaration) "const T &value" (type_qualifier) "const" (const) "const" (type_identifier) "T" (ERROR) "&" (&) "&" (identifier) "value" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (comment) "/**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */" (ERROR) "double value_probability() const" (primitive_type) "double" (function_declarator) "value_probability()" (identifier) "value_probability" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace equi_height" (}) "}" (comment) "// namespace histograms" (#endif) "#endif"
287
17
{"language": "c", "success": true, "metadata": {"lines": 127, "avg_line_length": 41.61, "nodes": 135, "errors": 0, "source_hash": "0709409911c3e0083c8b98329c61d8e0f489a755af9ac969137365417a8dca50", "categorized_nodes": 98}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n#define HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n\n/* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.\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, version 2.0,\n as published by the Free Software Foundation.\n\n This program is also distributed with certain software (including\n but not limited to OpenSSL) that is licensed under separate terms,\n as designated in a particular file or component or in included license\n documentation. The authors of MySQL hereby grant you an additional\n permission to link the program and your derivative works with the\n separately licensed software that they have included with MySQL.\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, version 2.0, 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\n Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */\n\n/**\n @file sql/histograms/equi_height_bucket.h\n Equi-height bucket.\n\n This file defines the class representing an equi-height bucket. A bucket holds\n four different values:\n - Lower inclusive value.\n - Upper inclusive value.\n - The cumulative frequency (between 0.0 and 1.0).\n - Number of distinct values in this bucket.\n*/\n\n#include \"my_base.h\" // ha_rows\n#include \"my_inttypes.h\"\n#include \"mysql_time.h\"\n#include \"sql/my_decimal.h\"\n#include \"sql_string.h\"\n\nclass Json_array;\n\nnamespace histograms {\nnamespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter \"json_array\". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the \"distance\" between lower inclusive value and the argument\n \"value\".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that \"value\" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that \"value\" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between \"value\" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n} // namespace equi_height\n} // namespace histograms\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 23, 134], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 164, "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": "HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 46}}, {"id": 3, "type": "preproc_def", "text": "#define HISTOGRAMS_EQUI_HEIGHT_BUCKET_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": "HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 46}}, {"id": 6, "type": "preproc_include", "text": "#include \"my_base.h\" // ha_rows\n", "parent": 0, "children": [7, 8], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"my_base.h\"", "parent": 6, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 20}}, {"id": 9, "type": "preproc_include", "text": "#include \"my_inttypes.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"my_inttypes.h\"", "parent": 9, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 24}}, {"id": 12, "type": "preproc_include", "text": "#include \"mysql_time.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"mysql_time.h\"", "parent": 12, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 23}}, {"id": 15, "type": "preproc_include", "text": "#include \"sql/my_decimal.h\"\n", "parent": 0, "children": [16, 17], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"sql/my_decimal.h\"", "parent": 15, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 27}}, {"id": 18, "type": "preproc_include", "text": "#include \"sql_string.h\"\n", "parent": 0, "children": [19, 20], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"sql_string.h\"", "parent": 18, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 23}}, {"id": 21, "type": "declaration", "text": "class Json_array;", "parent": 0, "children": [22], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 17}}, {"id": 22, "type": "identifier", "text": "Json_array", "parent": 21, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 16}}, {"id": 23, "type": "function_definition", "text": "namespace histograms {\nnamespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter \"json_array\". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the \"distance\" between lower inclusive value and the argument\n \"value\".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that \"value\" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that \"value\" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between \"value\" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n} // namespace equi_height\n}", "parent": 0, "children": [24, 25], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 162, "column": 1}}, {"id": 24, "type": "type_identifier", "text": "namespace", "parent": 23, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 9}}, {"id": 25, "type": "identifier", "text": "histograms", "parent": 23, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 20}}, {"id": 26, "type": "function_definition", "text": "namespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter \"json_array\". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the \"distance\" between lower inclusive value and the argument\n \"value\".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that \"value\" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that \"value\" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between \"value\" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n}", "parent": 23, "children": [27, 28], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 161, "column": 1}}, {"id": 27, "type": "type_identifier", "text": "namespace", "parent": 26, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 9}}, {"id": 28, "type": "identifier", "text": "equi_height", "parent": 26, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 21}}, {"id": 29, "type": "ERROR", "text": "template <class T>\nclass Bucket", "parent": 26, "children": [30, 37], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 12}}, {"id": 30, "type": "binary_expression", "text": "template <class T>\nclass", "parent": 29, "children": [31, 34, 36], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 5}}, {"id": 31, "type": "binary_expression", "text": "template <class", "parent": 30, "children": [32, 33], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 15}}, {"id": 32, "type": "identifier", "text": "template", "parent": 31, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 8}}, {"id": 33, "type": "<", "text": "<", "parent": 31, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 34, "type": "ERROR", "text": "T", "parent": 30, "children": [35], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 17}}, {"id": 35, "type": "identifier", "text": "T", "parent": 34, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 17}}, {"id": 36, "type": ">", "text": ">", "parent": 30, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 37, "type": "identifier", "text": "Bucket", "parent": 29, "children": [], "start_point": {"row": 52, "column": 6}, "end_point": {"row": 52, "column": 12}}, {"id": 38, "type": "labeled_statement", "text": "private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;", "parent": 26, "children": [39], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 55, "column": 28}}, {"id": 39, "type": "declaration", "text": "const T m_lower_inclusive;", "parent": 38, "children": [40, 41], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 28}}, {"id": 40, "type": "type_identifier", "text": "T", "parent": 39, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 9}}, {"id": 41, "type": "identifier", "text": "m_lower_inclusive", "parent": 39, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 27}}, {"id": 42, "type": "declaration", "text": "const T m_upper_inclusive;", "parent": 26, "children": [43, 44], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 28}}, {"id": 43, "type": "type_identifier", "text": "T", "parent": 42, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 9}}, {"id": 44, "type": "identifier", "text": "m_upper_inclusive", "parent": 42, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 27}}, {"id": 45, "type": "declaration", "text": "const double m_cumulative_frequency;", "parent": 26, "children": [46, 47], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 38}}, {"id": 46, "type": "primitive_type", "text": "double", "parent": 45, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 14}}, {"id": 47, "type": "identifier", "text": "m_cumulative_frequency", "parent": 45, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 37}}, {"id": 48, "type": "declaration", "text": "const ha_rows m_num_distinct;", "parent": 26, "children": [49, 50], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 31}}, {"id": 49, "type": "type_identifier", "text": "ha_rows", "parent": 48, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 15}}, {"id": 50, "type": "identifier", "text": "m_num_distinct", "parent": 48, "children": [], "start_point": {"row": 64, "column": 16}, "end_point": {"row": 64, "column": 30}}, {"id": 51, "type": "declaration", "text": "static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);", "parent": 26, "children": [52, 53], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 79, "column": 61}}, {"id": 52, "type": "primitive_type", "text": "bool", "parent": 51, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 13}}, {"id": 53, "type": "function_declarator", "text": "add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array)", "parent": 51, "children": [54, 55], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 79, "column": 60}}, {"id": 54, "type": "identifier", "text": "add_values_json_bucket", "parent": 53, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 36}}, {"id": 55, "type": "parameter_list", "text": "(const T &lower_value, const T &upper_value,\n Json_array *json_array)", "parent": 53, "children": [56, 59, 62], "start_point": {"row": 78, "column": 36}, "end_point": {"row": 79, "column": 60}}, {"id": 56, "type": "parameter_declaration", "text": "const T &lower_value", "parent": 55, "children": [57, 58], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 57}}, {"id": 57, "type": "type_identifier", "text": "T", "parent": 56, "children": [], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 44}}, {"id": 58, "type": "identifier", "text": "lower_value", "parent": 56, "children": [], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 57}}, {"id": 59, "type": "parameter_declaration", "text": "const T &upper_value", "parent": 55, "children": [60, 61], "start_point": {"row": 78, "column": 59}, "end_point": {"row": 78, "column": 79}}, {"id": 60, "type": "type_identifier", "text": "T", "parent": 59, "children": [], "start_point": {"row": 78, "column": 65}, "end_point": {"row": 78, "column": 66}}, {"id": 61, "type": "identifier", "text": "upper_value", "parent": 59, "children": [], "start_point": {"row": 78, "column": 68}, "end_point": {"row": 78, "column": 79}}, {"id": 62, "type": "parameter_declaration", "text": "Json_array *json_array", "parent": 55, "children": [63, 64], "start_point": {"row": 79, "column": 37}, "end_point": {"row": 79, "column": 59}}, {"id": 63, "type": "type_identifier", "text": "Json_array", "parent": 62, "children": [], "start_point": {"row": 79, "column": 37}, "end_point": {"row": 79, "column": 47}}, {"id": 64, "type": "pointer_declarator", "text": "*json_array", "parent": 62, "children": [65, 66], "start_point": {"row": 79, "column": 48}, "end_point": {"row": 79, "column": 59}}, {"id": 65, "type": "*", "text": "*", "parent": 64, "children": [], "start_point": {"row": 79, "column": 48}, "end_point": {"row": 79, "column": 49}}, {"id": 66, "type": "identifier", "text": "json_array", "parent": 64, "children": [], "start_point": {"row": 79, "column": 49}, "end_point": {"row": 79, "column": 59}}, {"id": 67, "type": "labeled_statement", "text": "public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);", "parent": 26, "children": [68], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 92, "column": 62}}, {"id": 68, "type": "declaration", "text": "Bucket(T lower, T upper, double freq, ha_rows num_distinct);", "parent": 67, "children": [69, 73, 74, 76, 77, 78, 80, 81], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 62}}, {"id": 69, "type": "macro_type_specifier", "text": "Bucket(T", "parent": 68, "children": [70, 71], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 10}}, {"id": 70, "type": "identifier", "text": "Bucket", "parent": 69, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 8}}, {"id": 71, "type": "type_descriptor", "text": "T", "parent": 69, "children": [72], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 10}}, {"id": 72, "type": "type_identifier", "text": "T", "parent": 71, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 10}}, {"id": 73, "type": "identifier", "text": "lower", "parent": 68, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 16}}, {"id": 74, "type": "ERROR", "text": "T", "parent": 68, "children": [75], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 19}}, {"id": 75, "type": "identifier", "text": "T", "parent": 74, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 19}}, {"id": 76, "type": "identifier", "text": "upper", "parent": 68, "children": [], "start_point": {"row": 92, "column": 20}, "end_point": {"row": 92, "column": 25}}, {"id": 77, "type": "identifier", "text": "double", "parent": 68, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 33}}, {"id": 78, "type": "ERROR", "text": "freq", "parent": 68, "children": [79], "start_point": {"row": 92, "column": 34}, "end_point": {"row": 92, "column": 38}}, {"id": 79, "type": "identifier", "text": "freq", "parent": 78, "children": [], "start_point": {"row": 92, "column": 34}, "end_point": {"row": 92, "column": 38}}, {"id": 80, "type": "identifier", "text": "ha_rows", "parent": 68, "children": [], "start_point": {"row": 92, "column": 40}, "end_point": {"row": 92, "column": 47}}, {"id": 81, "type": "ERROR", "text": "num_distinct)", "parent": 68, "children": [82], "start_point": {"row": 92, "column": 48}, "end_point": {"row": 92, "column": 61}}, {"id": 82, "type": "identifier", "text": "num_distinct", "parent": 81, "children": [], "start_point": {"row": 92, "column": 48}, "end_point": {"row": 92, "column": 60}}, {"id": 83, "type": "ERROR", "text": "const T &get_lower_inclusive() const", "parent": 26, "children": [84, 85], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 38}}, {"id": 84, "type": "type_identifier", "text": "T", "parent": 83, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 9}}, {"id": 85, "type": "function_declarator", "text": "get_lower_inclusive()", "parent": 83, "children": [86, 87], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 32}}, {"id": 86, "type": "identifier", "text": "get_lower_inclusive", "parent": 85, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 30}}, {"id": 87, "type": "parameter_list", "text": "()", "parent": 85, "children": [], "start_point": {"row": 97, "column": 30}, "end_point": {"row": 97, "column": 32}}, {"id": 88, "type": "return_statement", "text": "return m_lower_inclusive;", "parent": 26, "children": [89], "start_point": {"row": 97, "column": 41}, "end_point": {"row": 97, "column": 66}}, {"id": 89, "type": "identifier", "text": "m_lower_inclusive", "parent": 88, "children": [], "start_point": {"row": 97, "column": 48}, "end_point": {"row": 97, "column": 65}}, {"id": 90, "type": "ERROR", "text": "const T &get_upper_inclusive() const", "parent": 26, "children": [91, 92], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 38}}, {"id": 91, "type": "type_identifier", "text": "T", "parent": 90, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 9}}, {"id": 92, "type": "function_declarator", "text": "get_upper_inclusive()", "parent": 90, "children": [93, 94], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 32}}, {"id": 93, "type": "identifier", "text": "get_upper_inclusive", "parent": 92, "children": [], "start_point": {"row": 102, "column": 11}, "end_point": {"row": 102, "column": 30}}, {"id": 94, "type": "parameter_list", "text": "()", "parent": 92, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 32}}, {"id": 95, "type": "return_statement", "text": "return m_upper_inclusive;", "parent": 26, "children": [96], "start_point": {"row": 102, "column": 41}, "end_point": {"row": 102, "column": 66}}, {"id": 96, "type": "identifier", "text": "m_upper_inclusive", "parent": 95, "children": [], "start_point": {"row": 102, "column": 48}, "end_point": {"row": 102, "column": 65}}, {"id": 97, "type": "ERROR", "text": "double get_cumulative_frequency() const", "parent": 26, "children": [98, 99], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 41}}, {"id": 98, "type": "primitive_type", "text": "double", "parent": 97, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 8}}, {"id": 99, "type": "function_declarator", "text": "get_cumulative_frequency()", "parent": 97, "children": [100, 101], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 35}}, {"id": 100, "type": "identifier", "text": "get_cumulative_frequency", "parent": 99, "children": [], "start_point": {"row": 107, "column": 9}, "end_point": {"row": 107, "column": 33}}, {"id": 101, "type": "parameter_list", "text": "()", "parent": 99, "children": [], "start_point": {"row": 107, "column": 33}, "end_point": {"row": 107, "column": 35}}, {"id": 102, "type": "return_statement", "text": "return m_cumulative_frequency;", "parent": 26, "children": [103], "start_point": {"row": 107, "column": 44}, "end_point": {"row": 107, "column": 74}}, {"id": 103, "type": "identifier", "text": "m_cumulative_frequency", "parent": 102, "children": [], "start_point": {"row": 107, "column": 51}, "end_point": {"row": 107, "column": 73}}, {"id": 104, "type": "ERROR", "text": "ha_rows get_num_distinct() const", "parent": 26, "children": [105, 106], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 34}}, {"id": 105, "type": "type_identifier", "text": "ha_rows", "parent": 104, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 9}}, {"id": 106, "type": "function_declarator", "text": "get_num_distinct()", "parent": 104, "children": [107, 108], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 28}}, {"id": 107, "type": "identifier", "text": "get_num_distinct", "parent": 106, "children": [], "start_point": {"row": 112, "column": 10}, "end_point": {"row": 112, "column": 26}}, {"id": 108, "type": "parameter_list", "text": "()", "parent": 106, "children": [], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 28}}, {"id": 109, "type": "return_statement", "text": "return m_num_distinct;", "parent": 26, "children": [110], "start_point": {"row": 112, "column": 37}, "end_point": {"row": 112, "column": 59}}, {"id": 110, "type": "identifier", "text": "m_num_distinct", "parent": 109, "children": [], "start_point": {"row": 112, "column": 44}, "end_point": {"row": 112, "column": 58}}, {"id": 111, "type": "ERROR", "text": "bool bucket_to_json(Json_array *json_array) const", "parent": 26, "children": [112, 113], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 51}}, {"id": 112, "type": "primitive_type", "text": "bool", "parent": 111, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 6}}, {"id": 113, "type": "function_declarator", "text": "bucket_to_json(Json_array *json_array) const", "parent": 111, "children": [114, 115], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 51}}, {"id": 114, "type": "identifier", "text": "bucket_to_json", "parent": 113, "children": [], "start_point": {"row": 129, "column": 7}, "end_point": {"row": 129, "column": 21}}, {"id": 115, "type": "parameter_list", "text": "(Json_array *json_array)", "parent": 113, "children": [116], "start_point": {"row": 129, "column": 21}, "end_point": {"row": 129, "column": 45}}, {"id": 116, "type": "parameter_declaration", "text": "Json_array *json_array", "parent": 115, "children": [117, 118], "start_point": {"row": 129, "column": 22}, "end_point": {"row": 129, "column": 44}}, {"id": 117, "type": "type_identifier", "text": "Json_array", "parent": 116, "children": [], "start_point": {"row": 129, "column": 22}, "end_point": {"row": 129, "column": 32}}, {"id": 118, "type": "pointer_declarator", "text": "*json_array", "parent": 116, "children": [119, 120], "start_point": {"row": 129, "column": 33}, "end_point": {"row": 129, "column": 44}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 129, "column": 33}, "end_point": {"row": 129, "column": 34}}, {"id": 120, "type": "identifier", "text": "json_array", "parent": 118, "children": [], "start_point": {"row": 129, "column": 34}, "end_point": {"row": 129, "column": 44}}, {"id": 121, "type": "ERROR", "text": "double get_distance_from_lower(const T &value) const", "parent": 26, "children": [122, 123], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 54}}, {"id": 122, "type": "primitive_type", "text": "double", "parent": 121, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 8}}, {"id": 123, "type": "function_declarator", "text": "get_distance_from_lower(const T &value) const", "parent": 121, "children": [124, 125], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 54}}, {"id": 124, "type": "identifier", "text": "get_distance_from_lower", "parent": 123, "children": [], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 32}}, {"id": 125, "type": "parameter_list", "text": "(const T &value)", "parent": 123, "children": [126], "start_point": {"row": 143, "column": 32}, "end_point": {"row": 143, "column": 48}}, {"id": 126, "type": "parameter_declaration", "text": "const T &value", "parent": 125, "children": [127, 128], "start_point": {"row": 143, "column": 33}, "end_point": {"row": 143, "column": 47}}, {"id": 127, "type": "type_identifier", "text": "T", "parent": 126, "children": [], "start_point": {"row": 143, "column": 39}, "end_point": {"row": 143, "column": 40}}, {"id": 128, "type": "identifier", "text": "value", "parent": 126, "children": [], "start_point": {"row": 143, "column": 42}, "end_point": {"row": 143, "column": 47}}, {"id": 129, "type": "ERROR", "text": "double value_probability() const", "parent": 26, "children": [130, 131], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 34}}, {"id": 130, "type": "primitive_type", "text": "double", "parent": 129, "children": [], "start_point": {"row": 158, "column": 2}, "end_point": {"row": 158, "column": 8}}, {"id": 131, "type": "function_declarator", "text": "value_probability()", "parent": 129, "children": [132, 133], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 28}}, {"id": 132, "type": "identifier", "text": "value_probability", "parent": 131, "children": [], "start_point": {"row": 158, "column": 9}, "end_point": {"row": 158, "column": 26}}, {"id": 133, "type": "parameter_list", "text": "()", "parent": 131, "children": [], "start_point": {"row": 158, "column": 26}, "end_point": {"row": 158, "column": 28}}, {"id": 134, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 6}}]}, "node_categories": {"declarations": {"functions": [23, 26, 53, 85, 92, 99, 106, 113, 123, 131], "variables": [21, 39, 42, 45, 48, 51, 56, 59, 62, 68, 116, 126], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [30, 31], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 22, 24, 25, 27, 28, 32, 35, 37, 40, 41, 43, 44, 47, 49, 50, 54, 57, 58, 60, 61, 63, 66, 69, 70, 72, 73, 75, 76, 77, 79, 80, 82, 84, 86, 89, 91, 93, 96, 100, 103, 105, 107, 110, 114, 117, 120, 124, 127, 128, 132, 134], "returns": [88, 95, 102, 109], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "Bucket", "text_snippet": "namespace histograms {\nnamespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclas"}, {"node_id": 26, "universal_type": "function", "name": "Bucket", "text_snippet": "namespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n "}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "add_values_json_bucket(const T &lower_value, const T &upper_value,\n "}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "get_lower_inclusive()"}, {"node_id": 92, "universal_type": "function", "name": "unknown", "text_snippet": "get_upper_inclusive()"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "get_cumulative_frequency()"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "get_num_distinct()"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "bucket_to_json(Json_array *json_array) const"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "get_distance_from_lower(const T &value) const"}, {"node_id": 131, "universal_type": "function", "name": "unknown", "text_snippet": "value_probability()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"my_base.h\" // ha_rows\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"my_inttypes.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"mysql_time.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"sql/my_decimal.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"sql_string.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "#ifndef HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n#define HISTOGRAMS_EQUI_HEIGHT_BUCKET_INCLUDED\n\n/* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.\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, version 2.0,\n as published by the Free Software Foundation.\n\n This program is also distributed with certain software (including\n but not limited to OpenSSL) that is licensed under separate terms,\n as designated in a particular file or component or in included license\n documentation. The authors of MySQL hereby grant you an additional\n permission to link the program and your derivative works with the\n separately licensed software that they have included with MySQL.\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, version 2.0, 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\n Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */\n\n/**\n @file sql/histograms/equi_height_bucket.h\n Equi-height bucket.\n\n This file defines the class representing an equi-height bucket. A bucket holds\n four different values:\n - Lower inclusive value.\n - Upper inclusive value.\n - The cumulative frequency (between 0.0 and 1.0).\n - Number of distinct values in this bucket.\n*/\n\n#include \"my_base.h\" // ha_rows\n#include \"my_inttypes.h\"\n#include \"mysql_time.h\"\n#include \"sql/my_decimal.h\"\n#include \"sql_string.h\"\n\nclass Json_array;\n\nnamespace histograms {\nnamespace equi_height {\n\n/**\n Equi-height bucket.\n*/\ntemplate <class T>\nclass Bucket {\n private:\n /// Lower inclusive value contained in this bucket.\n const T m_lower_inclusive;\n\n /// Upper inclusive value contained in this bucket.\n const T m_upper_inclusive;\n\n /// The cumulative frequency. 0.0 <= m_cumulative_frequency <= 1.0\n const double m_cumulative_frequency;\n\n /// Number of distinct values in this bucket.\n const ha_rows m_num_distinct;\n\n /**\n Add values to a JSON bucket\n\n This function adds the lower and upper inclusive value to the supplied\n JSON array. The lower value is added first.\n\n @param lower_value the lower inclusive value to add\n @param upper_value the upper inclusive value to add\n @param[out] json_array a JSON array where the bucket data is stored\n\n @return true on error, false otherwise.\n */\n static bool add_values_json_bucket(const T &lower_value, const T &upper_value,\n Json_array *json_array);\n\n public:\n /**\n Equi-height bucket constructor.\n\n Does nothing more than setting the member variables.\n\n @param lower lower inclusive value\n @param upper upper inclusive value\n @param freq the cumulative frequency\n @param num_distinct number of distinct values in this bucket\n */\n Bucket(T lower, T upper, double freq, ha_rows num_distinct);\n\n /**\n @return lower inclusive value\n */\n const T &get_lower_inclusive() const { return m_lower_inclusive; }\n\n /**\n @return upper inclusive value\n */\n const T &get_upper_inclusive() const { return m_upper_inclusive; }\n\n /**\n @return cumulative frequency\n */\n double get_cumulative_frequency() const { return m_cumulative_frequency; }\n\n /**\n @return number of distinct values\n */\n ha_rows get_num_distinct() const { return m_num_distinct; }\n\n /**\n Convert this equi-height bucket to a JSON array.\n\n This function will take the contents of the current equi-height bucket\n and put it in the output parameter \"json_array\". The result is an array\n with the following contents:\n Index 0: Lower inclusive value.\n Index 1: Upper inclusive value.\n Index 2: Cumulative frequency.\n Index 3: Number of distinct values.\n\n @param[out] json_array output where the bucket content is to be stored\n\n @return true on error, false otherwise\n */\n bool bucket_to_json(Json_array *json_array) const;\n\n /**\n Returns the \"distance\" between lower inclusive value and the argument\n \"value\".\n\n The return value is a number between 0.0 and 1.0. A value of 0.0 indicates\n that \"value\" is equal to or less than the lower inclusive value. A value of\n 1.0 indicates that \"value\" is equal or greater to the upper inclusive value.\n\n @param value The value to caluclate the distance for\n\n @return The distance between \"value\" and lower inclusive value.\n */\n double get_distance_from_lower(const T &value) const;\n\n /**\n Calculate how high the probability is for a single value existing in the\n bucket.\n\n This is basically equal to the number of distinct values in the bucket\n divided by the number of possible values in the bucket range. For strings,\n double, decimals and such, the probability will be very low since the number\n of possible values is VERY big. For integer values, the probability may\n be rather high if the difference between the lower and upper value is low.\n\n @return Probability of a value existing in the bucket, between 0.0 and 1.0\n inclusive.\n */\n double value_probability() const;\n};\n\n} // namespace equi_height\n} // namespace histograms\n\n#endif\n"}
80,325
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @interface KSAudioQueueBuff : NSObject { struct AudioQueueBuffer *_audioBuffer; unsigned int _bufferSize; struct AudioStreamPacketDescription _packetDes[16]; } + (unsigned int)packDesCnt; @property(readonly, nonatomic) unsigned int bufSize; // @synthesize bufSize=_bufferSize; @property(readonly, nonatomic) struct AudioQueueBuffer *audioBuffer; // @synthesize audioBuffer=_audioBuffer; @property(readonly, nonatomic) struct AudioStreamPacketDescription *audioDes; - (void)dispose:(struct OpaqueAudioQueue *)arg1; - (void)dealloc; - (id)initWithAudioBuf:(struct AudioQueueBuffer *)arg1 size:(unsigned int)arg2; @end
40.6
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@interface KSAudioQueueBuff : NSObject\n{\n struct AudioQueueBuffer *_audioBuffer;\n unsigned int _bufferSize;\n struct AudioStreamPacketDescription _packetDes[16];\n}\n\n+ (unsigned int)packDesCnt;\n@property(readonly, nonatomic) unsigned int bufSize; // @synthesize bufSize=_bufferSize;\n@property(readonly, nonatomic) struct AudioQueueBuffer *audioBuffer; // @synthesize audioBuffer=_audioBuffer;\n@property(readonly, nonatomic) struct AudioStreamPacketDescription *audioDes;\n- (void)dispose:(struct OpaqueAudioQueue *)arg1;\n- (void)dealloc;\n- (id)initWithAudioBuf:(struct AudioQueueBuffer *)arg1 size:(unsigned int)arg2;\n\n@end\n\n" (comment) "//" (comment) "// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48)." (comment) "//" (comment) "// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>." (comment) "//" (preproc_call) "#import <objc/NSObject.h>\n" (preproc_directive) "#import" (preproc_arg) "<objc/NSObject.h>" (ERROR) "@" (ERROR) "@" (function_definition) "interface KSAudioQueueBuff : NSObject\n{\n struct AudioQueueBuffer *_audioBuffer;\n unsigned int _bufferSize;\n struct AudioStreamPacketDescription _packetDes[16];\n}" (type_identifier) "interface" (identifier) "KSAudioQueueBuff" (ERROR) ": NSObject" (:) ":" (identifier) "NSObject" (compound_statement) "{\n struct AudioQueueBuffer *_audioBuffer;\n unsigned int _bufferSize;\n struct AudioStreamPacketDescription _packetDes[16];\n}" ({) "{" (declaration) "struct AudioQueueBuffer *_audioBuffer;" (struct_specifier) "struct AudioQueueBuffer" (struct) "struct" (type_identifier) "AudioQueueBuffer" (pointer_declarator) "*_audioBuffer" (*) "*" (identifier) "_audioBuffer" (;) ";" (declaration) "unsigned int _bufferSize;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "_bufferSize" (;) ";" (declaration) "struct AudioStreamPacketDescription _packetDes[16];" (struct_specifier) "struct AudioStreamPacketDescription" (struct) "struct" (type_identifier) "AudioStreamPacketDescription" (array_declarator) "_packetDes[16]" (identifier) "_packetDes" ([) "[" (number_literal) "16" (]) "]" (;) ";" (}) "}" (expression_statement) "+ (unsigned int)packDesCnt;" (unary_expression) "+ (unsigned int)packDesCnt" (+) "+" (cast_expression) "(unsigned int)packDesCnt" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (identifier) "packDesCnt" (;) ";" (ERROR) "@property(readonly, nonatomic) unsigned" (ERROR) "@" (call_expression) "property(readonly, nonatomic)" (identifier) "property" (argument_list) "(readonly, nonatomic)" (() "(" (identifier) "readonly" (,) "," (identifier) "nonatomic" ()) ")" (identifier) "unsigned" (declaration) "int bufSize;" (primitive_type) "int" (identifier) "bufSize" (;) ";" (comment) "// @synthesize bufSize=_bufferSize;" (ERROR) "@property(readonly, nonatomic) struct" (ERROR) "@" (call_expression) "property(readonly, nonatomic)" (identifier) "property" (argument_list) "(readonly, nonatomic)" (() "(" (identifier) "readonly" (,) "," (identifier) "nonatomic" ()) ")" (identifier) "struct" (declaration) "AudioQueueBuffer *audioBuffer;" (type_identifier) "AudioQueueBuffer" (pointer_declarator) "*audioBuffer" (*) "*" (identifier) "audioBuffer" (;) ";" (comment) "// @synthesize audioBuffer=_audioBuffer;" (ERROR) "@property(readonly, nonatomic) struct" (ERROR) "@" (call_expression) "property(readonly, nonatomic)" (identifier) "property" (argument_list) "(readonly, nonatomic)" (() "(" (identifier) "readonly" (,) "," (identifier) "nonatomic" ()) ")" (identifier) "struct" (declaration) "AudioStreamPacketDescription *audioDes;" (type_identifier) "AudioStreamPacketDescription" (pointer_declarator) "*audioDes" (*) "*" (identifier) "audioDes" (;) ";" (ERROR) "- (void)dispose:(" (unary_expression) "- (void)dispose" (-) "-" (cast_expression) "(void)dispose" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "dispose" (:) ":" (() "(" (declaration) "struct OpaqueAudioQueue *)arg1;" (struct_specifier) "struct OpaqueAudioQueue" (struct) "struct" (type_identifier) "OpaqueAudioQueue" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (void)dealloc;" (unary_expression) "- (void)dealloc" (-) "-" (cast_expression) "(void)dealloc" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "dealloc" (;) ";" (ERROR) "- (id)initWithAudioBuf:(" (unary_expression) "- (id)initWithAudioBuf" (-) "-" (cast_expression) "(id)initWithAudioBuf" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithAudioBuf" (:) ":" (() "(" (declaration) "struct AudioQueueBuffer *)arg1" (struct_specifier) "struct AudioQueueBuffer" (struct) "struct" (type_identifier) "AudioQueueBuffer" (pointer_declarator) "*)arg1" (*) "*" (ERROR) ")" ()) ")" (identifier) "arg1" (;) "" (labeled_statement) "size:(unsigned int)arg2;" (statement_identifier) "size" (:) ":" (expression_statement) "(unsigned int)arg2;" (cast_expression) "(unsigned int)arg2" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (identifier) "arg2" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
177
15
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 40.6, "nodes": 118, "errors": 0, "source_hash": "98ee314f56d5dc378d95982e5ac05d8c6a7a141561f5688e08b65755f8f2ba01", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <objc/NSObject.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#import", "parent": 0, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "<objc/NSObject.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 25}}, {"id": 3, "type": "ERROR", "text": "@", "parent": null, "children": [4], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 3, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 5, "type": "function_definition", "text": "interface KSAudioQueueBuff : NSObject\n{\n struct AudioQueueBuffer *_audioBuffer;\n unsigned int _bufferSize;\n struct AudioStreamPacketDescription _packetDes[16];\n}", "parent": null, "children": [6, 7, 8], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 13, "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": "KSAudioQueueBuff", "parent": 5, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 27}}, {"id": 8, "type": "ERROR", "text": ": NSObject", "parent": 5, "children": [9], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 38}}, {"id": 9, "type": "identifier", "text": "NSObject", "parent": 8, "children": [], "start_point": {"row": 8, "column": 30}, "end_point": {"row": 8, "column": 38}}, {"id": 10, "type": "declaration", "text": "struct AudioQueueBuffer *_audioBuffer;", "parent": 5, "children": [11, 14], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 42}}, {"id": 11, "type": "struct_specifier", "text": "struct AudioQueueBuffer", "parent": 10, "children": [12, 13], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 27}}, {"id": 12, "type": "struct", "text": "struct", "parent": 11, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 10}}, {"id": 13, "type": "type_identifier", "text": "AudioQueueBuffer", "parent": 11, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 27}}, {"id": 14, "type": "pointer_declarator", "text": "*_audioBuffer", "parent": 10, "children": [15, 16], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 41}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 29}}, {"id": 16, "type": "identifier", "text": "_audioBuffer", "parent": 14, "children": [], "start_point": {"row": 10, "column": 29}, "end_point": {"row": 10, "column": 41}}, {"id": 17, "type": "declaration", "text": "unsigned int _bufferSize;", "parent": 5, "children": [18, 21], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 29}}, {"id": 18, "type": "sized_type_specifier", "text": "unsigned int", "parent": 17, "children": [19, 20], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 16}}, {"id": 19, "type": "unsigned", "text": "unsigned", "parent": 18, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 12}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 16}}, {"id": 21, "type": "identifier", "text": "_bufferSize", "parent": 17, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 28}}, {"id": 22, "type": "declaration", "text": "struct AudioStreamPacketDescription _packetDes[16];", "parent": 5, "children": [23, 26], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 55}}, {"id": 23, "type": "struct_specifier", "text": "struct AudioStreamPacketDescription", "parent": 22, "children": [24, 25], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 39}}, {"id": 24, "type": "struct", "text": "struct", "parent": 23, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 10}}, {"id": 25, "type": "type_identifier", "text": "AudioStreamPacketDescription", "parent": 23, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 39}}, {"id": 26, "type": "array_declarator", "text": "_packetDes[16]", "parent": 22, "children": [27, 28], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 54}}, {"id": 27, "type": "identifier", "text": "_packetDes", "parent": 26, "children": [], "start_point": {"row": 12, "column": 40}, "end_point": {"row": 12, "column": 50}}, {"id": 28, "type": "number_literal", "text": "16", "parent": 26, "children": [], "start_point": {"row": 12, "column": 51}, "end_point": {"row": 12, "column": 53}}, {"id": 29, "type": "unary_expression", "text": "+ (unsigned int)packDesCnt", "parent": null, "children": [30, 31], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 26}}, {"id": 30, "type": "+", "text": "+", "parent": 29, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 31, "type": "cast_expression", "text": "(unsigned int)packDesCnt", "parent": 29, "children": [32, 36], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 26}}, {"id": 32, "type": "type_descriptor", "text": "unsigned int", "parent": 31, "children": [33], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 15}}, {"id": 33, "type": "sized_type_specifier", "text": "unsigned int", "parent": 32, "children": [34, 35], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 15}}, {"id": 34, "type": "unsigned", "text": "unsigned", "parent": 33, "children": [], "start_point": {"row": 15, "column": 3}, "end_point": {"row": 15, "column": 11}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 33, "children": [], "start_point": {"row": 15, "column": 12}, "end_point": {"row": 15, "column": 15}}, {"id": 36, "type": "identifier", "text": "packDesCnt", "parent": 31, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 26}}, {"id": 37, "type": "ERROR", "text": "@property(readonly, nonatomic) unsigned", "parent": null, "children": [38, 39, 44], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 39}}, {"id": 38, "type": "ERROR", "text": "@", "parent": 37, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 39, "type": "call_expression", "text": "property(readonly, nonatomic)", "parent": 37, "children": [40, 41], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 30}}, {"id": 40, "type": "identifier", "text": "property", "parent": 39, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 41, "type": "argument_list", "text": "(readonly, nonatomic)", "parent": 39, "children": [42, 43], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 30}}, {"id": 42, "type": "identifier", "text": "readonly", "parent": 41, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 18}}, {"id": 43, "type": "identifier", "text": "nonatomic", "parent": 41, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 29}}, {"id": 44, "type": "identifier", "text": "unsigned", "parent": 37, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 39}}, {"id": 45, "type": "declaration", "text": "int bufSize;", "parent": null, "children": [46, 47], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 52}}, {"id": 46, "type": "primitive_type", "text": "int", "parent": 45, "children": [], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 43}}, {"id": 47, "type": "identifier", "text": "bufSize", "parent": 45, "children": [], "start_point": {"row": 16, "column": 44}, "end_point": {"row": 16, "column": 51}}, {"id": 48, "type": "ERROR", "text": "@property(readonly, nonatomic) struct", "parent": null, "children": [49, 50, 55], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 37}}, {"id": 49, "type": "ERROR", "text": "@", "parent": 48, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 50, "type": "call_expression", "text": "property(readonly, nonatomic)", "parent": 48, "children": [51, 52], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 30}}, {"id": 51, "type": "identifier", "text": "property", "parent": 50, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 9}}, {"id": 52, "type": "argument_list", "text": "(readonly, nonatomic)", "parent": 50, "children": [53, 54], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 30}}, {"id": 53, "type": "identifier", "text": "readonly", "parent": 52, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 18}}, {"id": 54, "type": "identifier", "text": "nonatomic", "parent": 52, "children": [], "start_point": {"row": 17, "column": 20}, "end_point": {"row": 17, "column": 29}}, {"id": 55, "type": "identifier", "text": "struct", "parent": 48, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 37}}, {"id": 56, "type": "declaration", "text": "AudioQueueBuffer *audioBuffer;", "parent": null, "children": [57, 58], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 68}}, {"id": 57, "type": "type_identifier", "text": "AudioQueueBuffer", "parent": 56, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 54}}, {"id": 58, "type": "pointer_declarator", "text": "*audioBuffer", "parent": 56, "children": [59, 60], "start_point": {"row": 17, "column": 55}, "end_point": {"row": 17, "column": 67}}, {"id": 59, "type": "*", "text": "*", "parent": 58, "children": [], "start_point": {"row": 17, "column": 55}, "end_point": {"row": 17, "column": 56}}, {"id": 60, "type": "identifier", "text": "audioBuffer", "parent": 58, "children": [], "start_point": {"row": 17, "column": 56}, "end_point": {"row": 17, "column": 67}}, {"id": 61, "type": "ERROR", "text": "@property(readonly, nonatomic) struct", "parent": null, "children": [62, 63, 68], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 37}}, {"id": 62, "type": "ERROR", "text": "@", "parent": 61, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 63, "type": "call_expression", "text": "property(readonly, nonatomic)", "parent": 61, "children": [64, 65], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 30}}, {"id": 64, "type": "identifier", "text": "property", "parent": 63, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 9}}, {"id": 65, "type": "argument_list", "text": "(readonly, nonatomic)", "parent": 63, "children": [66, 67], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 30}}, {"id": 66, "type": "identifier", "text": "readonly", "parent": 65, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 18}}, {"id": 67, "type": "identifier", "text": "nonatomic", "parent": 65, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 29}}, {"id": 68, "type": "identifier", "text": "struct", "parent": 61, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 37}}, {"id": 69, "type": "declaration", "text": "AudioStreamPacketDescription *audioDes;", "parent": null, "children": [70, 71], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 77}}, {"id": 70, "type": "type_identifier", "text": "AudioStreamPacketDescription", "parent": 69, "children": [], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 66}}, {"id": 71, "type": "pointer_declarator", "text": "*audioDes", "parent": 69, "children": [72, 73], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 76}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 68}}, {"id": 73, "type": "identifier", "text": "audioDes", "parent": 71, "children": [], "start_point": {"row": 18, "column": 68}, "end_point": {"row": 18, "column": 76}}, {"id": 74, "type": "ERROR", "text": "- (void)dispose:(", "parent": null, "children": [75], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 17}}, {"id": 75, "type": "unary_expression", "text": "- (void)dispose", "parent": 74, "children": [76, 77], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 15}}, {"id": 76, "type": "-", "text": "-", "parent": 75, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 77, "type": "cast_expression", "text": "(void)dispose", "parent": 75, "children": [78, 80], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 15}}, {"id": 78, "type": "type_descriptor", "text": "void", "parent": 77, "children": [79], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 79, "type": "primitive_type", "text": "void", "parent": 78, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 80, "type": "identifier", "text": "dispose", "parent": 77, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 15}}, {"id": 81, "type": "declaration", "text": "struct OpaqueAudioQueue *)arg1;", "parent": null, "children": [82, 85], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 48}}, {"id": 82, "type": "struct_specifier", "text": "struct OpaqueAudioQueue", "parent": 81, "children": [83, 84], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 40}}, {"id": 83, "type": "struct", "text": "struct", "parent": 82, "children": [], "start_point": {"row": 19, "column": 17}, "end_point": {"row": 19, "column": 23}}, {"id": 84, "type": "type_identifier", "text": "OpaqueAudioQueue", "parent": 82, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 40}}, {"id": 85, "type": "pointer_declarator", "text": "*)arg1", "parent": 81, "children": [86, 87], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 47}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 19, "column": 41}, "end_point": {"row": 19, "column": 42}}, {"id": 87, "type": "identifier", "text": "arg1", "parent": 85, "children": [], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 47}}, {"id": 88, "type": "unary_expression", "text": "- (void)dealloc", "parent": null, "children": [89, 90], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 15}}, {"id": 89, "type": "-", "text": "-", "parent": 88, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 90, "type": "cast_expression", "text": "(void)dealloc", "parent": 88, "children": [91, 93], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 15}}, {"id": 91, "type": "type_descriptor", "text": "void", "parent": 90, "children": [92], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 92, "type": "primitive_type", "text": "void", "parent": 91, "children": [], "start_point": {"row": 20, "column": 3}, "end_point": {"row": 20, "column": 7}}, {"id": 93, "type": "identifier", "text": "dealloc", "parent": 90, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 15}}, {"id": 94, "type": "ERROR", "text": "- (id)initWithAudioBuf:(", "parent": null, "children": [95], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 24}}, {"id": 95, "type": "unary_expression", "text": "- (id)initWithAudioBuf", "parent": 94, "children": [96, 97], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 22}}, {"id": 96, "type": "-", "text": "-", "parent": 95, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 97, "type": "cast_expression", "text": "(id)initWithAudioBuf", "parent": 95, "children": [98, 100], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 22}}, {"id": 98, "type": "type_descriptor", "text": "id", "parent": 97, "children": [99], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 99, "type": "type_identifier", "text": "id", "parent": 98, "children": [], "start_point": {"row": 21, "column": 3}, "end_point": {"row": 21, "column": 5}}, {"id": 100, "type": "identifier", "text": "initWithAudioBuf", "parent": 97, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 22}}, {"id": 101, "type": "declaration", "text": "struct AudioQueueBuffer *)arg1", "parent": null, "children": [102, 105], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 54}}, {"id": 102, "type": "struct_specifier", "text": "struct AudioQueueBuffer", "parent": 101, "children": [103, 104], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 47}}, {"id": 103, "type": "struct", "text": "struct", "parent": 102, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 30}}, {"id": 104, "type": "type_identifier", "text": "AudioQueueBuffer", "parent": 102, "children": [], "start_point": {"row": 21, "column": 31}, "end_point": {"row": 21, "column": 47}}, {"id": 105, "type": "pointer_declarator", "text": "*)arg1", "parent": 101, "children": [106, 107], "start_point": {"row": 21, "column": 48}, "end_point": {"row": 21, "column": 54}}, {"id": 106, "type": "*", "text": "*", "parent": 105, "children": [], "start_point": {"row": 21, "column": 48}, "end_point": {"row": 21, "column": 49}}, {"id": 107, "type": "identifier", "text": "arg1", "parent": 105, "children": [], "start_point": {"row": 21, "column": 50}, "end_point": {"row": 21, "column": 54}}, {"id": 108, "type": "labeled_statement", "text": "size:(unsigned int)arg2;", "parent": null, "children": [109], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 79}}, {"id": 109, "type": "statement_identifier", "text": "size", "parent": 108, "children": [], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 59}}, {"id": 110, "type": "cast_expression", "text": "(unsigned int)arg2", "parent": 108, "children": [111, 115], "start_point": {"row": 21, "column": 60}, "end_point": {"row": 21, "column": 78}}, {"id": 111, "type": "type_descriptor", "text": "unsigned int", "parent": 110, "children": [112], "start_point": {"row": 21, "column": 61}, "end_point": {"row": 21, "column": 73}}, {"id": 112, "type": "sized_type_specifier", "text": "unsigned int", "parent": 111, "children": [113, 114], "start_point": {"row": 21, "column": 61}, "end_point": {"row": 21, "column": 73}}, {"id": 113, "type": "unsigned", "text": "unsigned", "parent": 112, "children": [], "start_point": {"row": 21, "column": 61}, "end_point": {"row": 21, "column": 69}}, {"id": 114, "type": "primitive_type", "text": "int", "parent": 112, "children": [], "start_point": {"row": 21, "column": 70}, "end_point": {"row": 21, "column": 73}}, {"id": 115, "type": "identifier", "text": "arg2", "parent": 110, "children": [], "start_point": {"row": 21, "column": 74}, "end_point": {"row": 21, "column": 78}}, {"id": 116, "type": "ERROR", "text": "@", "parent": null, "children": [117], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 117, "type": "ERROR", "text": "@", "parent": 116, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}]}, "node_categories": {"declarations": {"functions": [5], "variables": [10, 17, 22, 45, 56, 69, 81, 101], "classes": [11, 12, 23, 24, 82, 83, 102, 103], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [29, 31, 39, 50, 63, 75, 77, 88, 90, 95, 97, 110], "assignments": [], "loops": [], "conditionals": [6, 7, 9, 13, 16, 18, 21, 25, 27, 33, 36, 40, 42, 43, 44, 47, 51, 53, 54, 55, 57, 60, 64, 66, 67, 68, 70, 73, 80, 84, 87, 93, 99, 100, 104, 107, 109, 112, 115], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [28], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 5, "universal_type": "function", "name": "KSAudioQueueBuff", "text_snippet": "interface KSAudioQueueBuff : NSObject\n{\n struct AudioQueueBuffer *_audioBuffer;\n unsigned int "}], "class_declarations": [{"node_id": 11, "universal_type": "class", "name": "AudioQueueBuffer", "text_snippet": "struct AudioQueueBuffer"}, {"node_id": 12, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 23, "universal_type": "class", "name": "AudioStreamPacketDescription", "text_snippet": "struct AudioStreamPacketDescription"}, {"node_id": 24, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 82, "universal_type": "class", "name": "OpaqueAudioQueue", "text_snippet": "struct OpaqueAudioQueue"}, {"node_id": 83, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 102, "universal_type": "class", "name": "AudioQueueBuffer", "text_snippet": "struct AudioQueueBuffer"}, {"node_id": 103, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import <objc/NSObject.h>\n\n@interface KSAudioQueueBuff : NSObject\n{\n struct AudioQueueBuffer *_audioBuffer;\n unsigned int _bufferSize;\n struct AudioStreamPacketDescription _packetDes[16];\n}\n\n+ (unsigned int)packDesCnt;\n@property(readonly, nonatomic) unsigned int bufSize; // @synthesize bufSize=_bufferSize;\n@property(readonly, nonatomic) struct AudioQueueBuffer *audioBuffer; // @synthesize audioBuffer=_audioBuffer;\n@property(readonly, nonatomic) struct AudioStreamPacketDescription *audioDes;\n- (void)dispose:(struct OpaqueAudioQueue *)arg1;\n- (void)dealloc;\n- (id)initWithAudioBuf:(struct AudioQueueBuffer *)arg1 size:(unsigned int)arg2;\n\n@end\n\n"}
80,326
c
#ifndef MODIO_MEDIA_H #define MODIO_MEDIA_H #include "../../c/schemas/ModioMedia.h" #include "Image.h" #include "../../Globals.h" namespace modio { class Media { public: std::vector<std::string> youtube; std::vector<std::string> sketchfab; std::vector<Image> images; void initialize(ModioMedia media); nlohmann::json toJson(); }; } #endif
19.39
18
(translation_unit) "#ifndef MODIO_MEDIA_H\n#define MODIO_MEDIA_H\n\n#include "../../c/schemas/ModioMedia.h"\n#include "Image.h"\n#include "../../Globals.h"\n\nnamespace modio\n{\n class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n };\n}\n\n#endif\n" (preproc_ifdef) "#ifndef MODIO_MEDIA_H\n#define MODIO_MEDIA_H\n\n#include "../../c/schemas/ModioMedia.h"\n#include "Image.h"\n#include "../../Globals.h"\n\nnamespace modio\n{\n class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n };\n}\n\n#endif" (#ifndef) "#ifndef" (identifier) "MODIO_MEDIA_H" (preproc_def) "#define MODIO_MEDIA_H\n" (#define) "#define" (identifier) "MODIO_MEDIA_H" (preproc_include) "#include "../../c/schemas/ModioMedia.h"\n" (#include) "#include" (string_literal) ""../../c/schemas/ModioMedia.h"" (") """ (string_content) "../../c/schemas/ModioMedia.h" (") """ (preproc_include) "#include "Image.h"\n" (#include) "#include" (string_literal) ""Image.h"" (") """ (string_content) "Image.h" (") """ (preproc_include) "#include "../../Globals.h"\n" (#include) "#include" (string_literal) ""../../Globals.h"" (") """ (string_content) "../../Globals.h" (") """ (function_definition) "namespace modio\n{\n class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n };\n}" (type_identifier) "namespace" (identifier) "modio" (compound_statement) "{\n class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n };\n}" ({) "{" (function_definition) "class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n }" (type_identifier) "class" (identifier) "Media" (compound_statement) "{\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n }" ({) "{" (labeled_statement) "public:\n std::vector<std::string> youtube;" (statement_identifier) "public" (:) ":" (labeled_statement) "std::vector<std::string> youtube;" (statement_identifier) "std" (ERROR) "::vector<std:" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> youtube;" (binary_expression) "string> youtube" (identifier) "string" (>) ">" (identifier) "youtube" (;) ";" (labeled_statement) "std::vector<std::string> sketchfab;" (statement_identifier) "std" (ERROR) "::vector<std:" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> sketchfab;" (binary_expression) "string> sketchfab" (identifier) "string" (>) ">" (identifier) "sketchfab" (;) ";" (labeled_statement) "std::vector<Image> images;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "vector<Image> images;" (binary_expression) "vector<Image> images" (binary_expression) "vector<Image" (identifier) "vector" (<) "<" (identifier) "Image" (>) ">" (identifier) "images" (;) ";" (declaration) "void initialize(ModioMedia media);" (primitive_type) "void" (function_declarator) "initialize(ModioMedia media)" (identifier) "initialize" (parameter_list) "(ModioMedia media)" (() "(" (parameter_declaration) "ModioMedia media" (type_identifier) "ModioMedia" (identifier) "media" ()) ")" (;) ";" (labeled_statement) "nlohmann::json toJson();" (statement_identifier) "nlohmann" (:) ":" (ERROR) ":" (:) ":" (declaration) "json toJson();" (type_identifier) "json" (function_declarator) "toJson()" (identifier) "toJson" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (#endif) "#endif"
115
4
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 19.39, "nodes": 68, "errors": 0, "source_hash": "7475ec2c4e0ad0d26a26fdd5cc15a88957692e75b76bbc5a012b8b3d7df87b55", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef MODIO_MEDIA_H\n#define MODIO_MEDIA_H\n\n#include \"../../c/schemas/ModioMedia.h\"\n#include \"Image.h\"\n#include \"../../Globals.h\"\n\nnamespace modio\n{\n class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n };\n}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 67], "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": "MODIO_MEDIA_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define MODIO_MEDIA_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": "MODIO_MEDIA_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 21}}, {"id": 6, "type": "preproc_include", "text": "#include \"../../c/schemas/ModioMedia.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": "\"../../c/schemas/ModioMedia.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 39}}, {"id": 9, "type": "preproc_include", "text": "#include \"Image.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": "\"Image.h\"", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include \"../../Globals.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": "\"../../Globals.h\"", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 26}}, {"id": 15, "type": "function_definition", "text": "namespace modio\n{\n class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n };\n}", "parent": 0, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 17, "type": "identifier", "text": "modio", "parent": 15, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 15}}, {"id": 18, "type": "function_definition", "text": "class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n }", "parent": 15, "children": [19], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 18, "column": 3}}, {"id": 19, "type": "identifier", "text": "Media", "parent": 18, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 13}}, {"id": 20, "type": "labeled_statement", "text": "public:\n std::vector<std::string> youtube;", "parent": 18, "children": [21], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 12, "column": 37}}, {"id": 21, "type": "labeled_statement", "text": "std::vector<std::string> youtube;", "parent": 20, "children": [22, 23], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 37}}, {"id": 22, "type": "statement_identifier", "text": "std", "parent": 21, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 7}}, {"id": 23, "type": "ERROR", "text": "::vector<std:", "parent": 21, "children": [24], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 20}}, {"id": 24, "type": "binary_expression", "text": "vector<std", "parent": 23, "children": [25, 26, 27], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 19}}, {"id": 25, "type": "identifier", "text": "vector", "parent": 24, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 15}}, {"id": 26, "type": "<", "text": "<", "parent": 24, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 16}}, {"id": 27, "type": "identifier", "text": "std", "parent": 24, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 19}}, {"id": 28, "type": "binary_expression", "text": "string> youtube", "parent": 21, "children": [29, 30, 31], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 36}}, {"id": 29, "type": "identifier", "text": "string", "parent": 28, "children": [], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 27}}, {"id": 30, "type": ">", "text": ">", "parent": 28, "children": [], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 28}}, {"id": 31, "type": "identifier", "text": "youtube", "parent": 28, "children": [], "start_point": {"row": 12, "column": 29}, "end_point": {"row": 12, "column": 36}}, {"id": 32, "type": "labeled_statement", "text": "std::vector<std::string> sketchfab;", "parent": 18, "children": [33, 34], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 39}}, {"id": 33, "type": "statement_identifier", "text": "std", "parent": 32, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 7}}, {"id": 34, "type": "ERROR", "text": "::vector<std:", "parent": 32, "children": [35], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 20}}, {"id": 35, "type": "binary_expression", "text": "vector<std", "parent": 34, "children": [36, 37, 38], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 19}}, {"id": 36, "type": "identifier", "text": "vector", "parent": 35, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 15}}, {"id": 37, "type": "<", "text": "<", "parent": 35, "children": [], "start_point": {"row": 13, "column": 15}, "end_point": {"row": 13, "column": 16}}, {"id": 38, "type": "identifier", "text": "std", "parent": 35, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 19}}, {"id": 39, "type": "binary_expression", "text": "string> sketchfab", "parent": 32, "children": [40, 41, 42], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 38}}, {"id": 40, "type": "identifier", "text": "string", "parent": 39, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 27}}, {"id": 41, "type": ">", "text": ">", "parent": 39, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 28}}, {"id": 42, "type": "identifier", "text": "sketchfab", "parent": 39, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 38}}, {"id": 43, "type": "labeled_statement", "text": "std::vector<Image> images;", "parent": 18, "children": [44], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 30}}, {"id": 44, "type": "statement_identifier", "text": "std", "parent": 43, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 7}}, {"id": 45, "type": "binary_expression", "text": "vector<Image> images", "parent": 43, "children": [46, 50, 51], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 29}}, {"id": 46, "type": "binary_expression", "text": "vector<Image", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 21}}, {"id": 47, "type": "identifier", "text": "vector", "parent": 46, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 15}}, {"id": 48, "type": "<", "text": "<", "parent": 46, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 16}}, {"id": 49, "type": "identifier", "text": "Image", "parent": 46, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 21}}, {"id": 50, "type": ">", "text": ">", "parent": 45, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 22}}, {"id": 51, "type": "identifier", "text": "images", "parent": 45, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 29}}, {"id": 52, "type": "declaration", "text": "void initialize(ModioMedia media);", "parent": 18, "children": [53, 54], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 38}}, {"id": 53, "type": "primitive_type", "text": "void", "parent": 52, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 54, "type": "function_declarator", "text": "initialize(ModioMedia media)", "parent": 52, "children": [55, 56], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 37}}, {"id": 55, "type": "identifier", "text": "initialize", "parent": 54, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 19}}, {"id": 56, "type": "parameter_list", "text": "(ModioMedia media)", "parent": 54, "children": [57], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 37}}, {"id": 57, "type": "parameter_declaration", "text": "ModioMedia media", "parent": 56, "children": [58, 59], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 36}}, {"id": 58, "type": "type_identifier", "text": "ModioMedia", "parent": 57, "children": [], "start_point": {"row": 16, "column": 20}, "end_point": {"row": 16, "column": 30}}, {"id": 59, "type": "identifier", "text": "media", "parent": 57, "children": [], "start_point": {"row": 16, "column": 31}, "end_point": {"row": 16, "column": 36}}, {"id": 60, "type": "labeled_statement", "text": "nlohmann::json toJson();", "parent": 18, "children": [61, 62], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 28}}, {"id": 61, "type": "statement_identifier", "text": "nlohmann", "parent": 60, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 12}}, {"id": 62, "type": "declaration", "text": "json toJson();", "parent": 60, "children": [63, 64], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 28}}, {"id": 63, "type": "type_identifier", "text": "json", "parent": 62, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 18}}, {"id": 64, "type": "function_declarator", "text": "toJson()", "parent": 62, "children": [65, 66], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 27}}, {"id": 65, "type": "identifier", "text": "toJson", "parent": 64, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 25}}, {"id": 66, "type": "parameter_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 27}}, {"id": 67, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}]}, "node_categories": {"declarations": {"functions": [15, 18, 54, 64], "variables": [52, 57, 62], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [24, 28, 35, 39, 45, 46], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 17, 19, 22, 25, 27, 29, 31, 33, 36, 38, 40, 42, 44, 47, 49, 51, 55, 58, 59, 61, 63, 65, 67], "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": "Media", "text_snippet": "namespace modio\n{\n class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<"}, {"node_id": 18, "universal_type": "function", "name": "Media", "text_snippet": "class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchf"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "initialize(ModioMedia media)"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "toJson()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"../../c/schemas/ModioMedia.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Image.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"../../Globals.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef MODIO_MEDIA_H\n#define MODIO_MEDIA_H\n\n#include \"../../c/schemas/ModioMedia.h\"\n#include \"Image.h\"\n#include \"../../Globals.h\"\n\nnamespace modio\n{\n class Media\n {\n public:\n std::vector<std::string> youtube;\n std::vector<std::string> sketchfab;\n std::vector<Image> images;\n\n void initialize(ModioMedia media);\n nlohmann::json toJson();\n };\n}\n\n#endif\n"}
80,327
c
// // KnownMetadata.c // Echo // // Created by <NAME> // Copyright © 2019 - 2020 <NAME>. All rights reserved. // #include "include/KnownMetadata.h" // Grab the metadata pointer that's appropriate for Swift. By default, // getting the address of the reference type metadata points to the full // metadata which points to the value witness table rather than the kind. // Move the pointer down one word to be correct. #define BUILTIN(NAME, SYMBOL) \ void *getBuiltin##NAME##Metadata() { \ return &$s##SYMBOL##N + sizeof(void*); \ } #include "include/Builtins.def" #undef BUILTIN
34.31
16
(translation_unit) "//\n// KnownMetadata.c\n// Echo\n//\n// Created by <NAME>\n// Copyright © 2019 - 2020 <NAME>. All rights reserved.\n//\n\n#include "include/KnownMetadata.h"\n\n// Grab the metadata pointer that's appropriate for Swift. By default,\n// getting the address of the reference type metadata points to the full\n// metadata which points to the value witness table rather than the kind.\n// Move the pointer down one word to be correct.\n#define BUILTIN(NAME, SYMBOL) \\nvoid *getBuiltin##NAME##Metadata() { \\n return &$s##SYMBOL##N + sizeof(void*); \\n}\n#include "include/Builtins.def"\n\n#undef BUILTIN\n" (comment) "//" (comment) "// KnownMetadata.c" (comment) "// Echo" (comment) "//" (comment) "// Created by <NAME>" (comment) "// Copyright © 2019 - 2020 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_include) "include "include/KnownMetadata.h"\n\n" (#include) "include " (string_literal) "include/KnownMetadata.h"\n" (") "i" (string_content) "nclude/KnownMetadata.h"" (") "\n" (comment) "/ Grab the metadata pointer that's appropriate for Swift. By default,\n" (comment) "/ getting the address of the reference type metadata points to the full\n" (comment) "/ metadata which points to the value witness table rather than the kind.\n" (comment) "/ Move the pointer down one word to be correct.\n" (preproc_function_def) "define BUILTIN(NAME, SYMBOL) \\nvoid *getBuiltin##NAME##Metadata() { \\n return &$s##SYMBOL##N + sizeof(void*); \\n}\n#" (#define) "define " (identifier) "UILTIN(" (preproc_params) "NAME, SYMBOL) " (() "N" (identifier) "AME," (,) " " (identifier) "YMBOL)" ()) " " (preproc_arg) "oid *getBuiltin##NAME##Metadata() { \\n return &$s##SYMBOL##N + sizeof(void*); \\n}\n" (preproc_include) "include "include/Builtins.def"\n\n" (#include) "include " (string_literal) "include/Builtins.def"\n" (") "i" (string_content) "nclude/Builtins.def"" (") "\n" (preproc_call) "undef BUILTIN\n" (preproc_directive) "undef " (preproc_arg) "UILTIN\n"
37
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 34.31, "nodes": 16, "errors": 0, "source_hash": "f049f674de0b66d4848b5e6038006c4853178321a91ee9bb236b94c51b7f3725", "categorized_nodes": 11}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "include \"include/KnownMetadata.h\"\n\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": "string_literal", "text": "include/KnownMetadata.h\"\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 34}}, {"id": 3, "type": "preproc_function_def", "text": "define BUILTIN(NAME, SYMBOL) \\\nvoid *getBuiltin##NAME##Metadata() { \\\n return &$s##SYMBOL##N + sizeof(void*); \\\n}\n#", "parent": null, "children": [4, 5, 6, 9], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#define", "text": "define ", "parent": 3, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 5, "type": "identifier", "text": "UILTIN(", "parent": 3, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 15}}, {"id": 6, "type": "preproc_params", "text": "NAME, SYMBOL) ", "parent": 3, "children": [7, 8], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 29}}, {"id": 7, "type": "identifier", "text": "AME,", "parent": 6, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 20}}, {"id": 8, "type": "identifier", "text": "YMBOL)", "parent": 6, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 28}}, {"id": 9, "type": "preproc_arg", "text": "oid *getBuiltin##NAME##Metadata() { \\\n return &$s##SYMBOL##N + sizeof(void*); \\\n}\n", "parent": 3, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 10, "type": "preproc_include", "text": "include \"include/Builtins.def\"\n\n", "parent": null, "children": [11, 12], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 11, "type": "#include", "text": "include ", "parent": 10, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 12, "type": "string_literal", "text": "include/Builtins.def\"\n", "parent": 10, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 31}}, {"id": 13, "type": "preproc_call", "text": "undef BUILTIN\n", "parent": null, "children": [14, 15], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 14, "type": "preproc_directive", "text": "undef ", "parent": 13, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 6}}, {"id": 15, "type": "preproc_arg", "text": "UILTIN\n", "parent": 13, "children": [], "start_point": {"row": 20, "column": 7}, "end_point": {"row": 20, "column": 14}}]}, "node_categories": {"declarations": {"functions": [3], "variables": [], "classes": [], "imports": [0, 1, 10, 11], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [5, 7, 8], "returns": [], "exceptions": []}, "expressions": {"calls": [13], "literals": [2, 12], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "*getBuiltin##NAME##Metadata", "text_snippet": "define BUILTIN(NAME, SYMBOL) \\\nvoid *getBuiltin##NAME##Metadata() { \\\n return &$s##SYMBOL##N + size"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "include \"include/KnownMetadata.h\"\n\n"}, {"node_id": 1, "text": "include "}, {"node_id": 10, "text": "include \"include/Builtins.def\"\n\n"}, {"node_id": 11, "text": "include "}]}, "original_source_code": "//\n// KnownMetadata.c\n// Echo\n//\n// Created by <NAME>\n// Copyright \u00a9 2019 - 2020 <NAME>. All rights reserved.\n//\n\n#include \"include/KnownMetadata.h\"\n\n// Grab the metadata pointer that's appropriate for Swift. By default,\n// getting the address of the reference type metadata points to the full\n// metadata which points to the value witness table rather than the kind.\n// Move the pointer down one word to be correct.\n#define BUILTIN(NAME, SYMBOL) \\\nvoid *getBuiltin##NAME##Metadata() { \\\n return &$s##SYMBOL##N + sizeof(void*); \\\n}\n#include \"include/Builtins.def\"\n\n#undef BUILTIN\n"}
80,328
c
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import <IBFoundation/IBICMultipartImageRepSlotComponent.h> @interface IBICExtent : IBICMultipartImageRepSlotComponent { int _extentValue; } + (id)itemWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(int)arg4 displayOrder:(double)arg5; + (id)contentsJSONKey; @property(readonly) int extentValue; // @synthesize extentValue=_extentValue; - (BOOL)isEqualToSchemaImageRepIDComponent:(id)arg1; - (BOOL)isEqualToExtent:(id)arg1; - (id)initWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(int)arg4 displayOrder:(double)arg5; @end
40.94
17
(translation_unit) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import <IBFoundation/IBICMultipartImageRepSlotComponent.h>\n\n@interface IBICExtent : IBICMultipartImageRepSlotComponent\n{\n int _extentValue;\n}\n\n+ (id)itemWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(int)arg4 displayOrder:(double)arg5;\n+ (id)contentsJSONKey;\n@property(readonly) int extentValue; // @synthesize extentValue=_extentValue;\n- (BOOL)isEqualToSchemaImageRepIDComponent:(id)arg1;\n- (BOOL)isEqualToExtent:(id)arg1;\n- (id)initWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(int)arg4 displayOrder:(double)arg5;\n\n@end\n\n" (comment) "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */" (preproc_call) "#import <IBFoundation/IBICMultipartImageRepSlotComponent.h>\n" (preproc_directive) "#import" (preproc_arg) "<IBFoundation/IBICMultipartImageRepSlotComponent.h>" (ERROR) "@" (ERROR) "@" (function_definition) "interface IBICExtent : IBICMultipartImageRepSlotComponent\n{\n int _extentValue;\n}" (type_identifier) "interface" (ERROR) "IBICExtent :" (identifier) "IBICExtent" (:) ":" (identifier) "IBICMultipartImageRepSlotComponent" (compound_statement) "{\n int _extentValue;\n}" ({) "{" (declaration) "int _extentValue;" (primitive_type) "int" (identifier) "_extentValue" (;) ";" (}) "}" (ERROR) "+ (id)itemWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(" (unary_expression) "+ (id)itemWithIdentifier" (+) "+" (cast_expression) "(id)itemWithIdentifier" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "itemWithIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (type_identifier) "arg1" (identifier) "fileNameComponent" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "title" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (identifier) "extent" (:) ":" (() "(" (declaration) "int)arg4" (primitive_type) "int" (ERROR) ")" ()) ")" (identifier) "arg4" (;) "" (labeled_statement) "displayOrder:(double)arg5;" (statement_identifier) "displayOrder" (:) ":" (expression_statement) "(double)arg5;" (cast_expression) "(double)arg5" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (identifier) "arg5" (;) ";" (expression_statement) "+ (id)contentsJSONKey;" (unary_expression) "+ (id)contentsJSONKey" (+) "+" (cast_expression) "(id)contentsJSONKey" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "contentsJSONKey" (;) ";" (ERROR) "@" (ERROR) "@" (declaration) "property(readonly) int extentValue;" (macro_type_specifier) "property(readonly)" (identifier) "property" (() "(" (type_descriptor) "readonly" (type_identifier) "readonly" ()) ")" (ERROR) "int" (identifier) "int" (identifier) "extentValue" (;) ";" (comment) "// @synthesize extentValue=_extentValue;" (expression_statement) "- (BOOL)isEqualToSchemaImageRepIDComponent:(id)arg1;" (unary_expression) "- (BOOL)isEqualToSchemaImageRepIDComponent" (-) "-" (cast_expression) "(BOOL)isEqualToSchemaImageRepIDComponent" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isEqualToSchemaImageRepIDComponent" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (expression_statement) "- (BOOL)isEqualToExtent:(id)arg1;" (unary_expression) "- (BOOL)isEqualToExtent" (-) "-" (cast_expression) "(BOOL)isEqualToExtent" (() "(" (type_descriptor) "BOOL" (type_identifier) "BOOL" ()) ")" (identifier) "isEqualToExtent" (ERROR) ":(id)arg1" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg1" (;) ";" (ERROR) "- (id)initWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(" (unary_expression) "- (id)initWithIdentifier" (-) "-" (cast_expression) "(id)initWithIdentifier" (() "(" (type_descriptor) "id" (type_identifier) "id" ()) ")" (identifier) "initWithIdentifier" (:) ":" (() "(" (identifier) "id" ()) ")" (type_identifier) "arg1" (identifier) "fileNameComponent" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg2" (identifier) "title" (:) ":" (() "(" (identifier) "id" ()) ")" (identifier) "arg3" (identifier) "extent" (:) ":" (() "(" (declaration) "int)arg4" (primitive_type) "int" (ERROR) ")" ()) ")" (identifier) "arg4" (;) "" (labeled_statement) "displayOrder:(double)arg5;" (statement_identifier) "displayOrder" (:) ":" (expression_statement) "(double)arg5;" (cast_expression) "(double)arg5" (() "(" (type_descriptor) "double" (primitive_type) "double" ()) ")" (identifier) "arg5" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
173
14
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 40.94, "nodes": 99, "errors": 0, "source_hash": "0a6c0af1be1254489b7c88124cc3b6faa9e37c018ff7bdb011a4aa3f2d9b6953", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <IBFoundation/IBICMultipartImageRepSlotComponent.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": "<IBFoundation/IBICMultipartImageRepSlotComponent.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 59}}, {"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 IBICExtent : IBICMultipartImageRepSlotComponent\n{\n int _extentValue;\n}", "parent": null, "children": [6, 7, 9], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 11, "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": "ERROR", "text": "IBICExtent :", "parent": 5, "children": [8], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 23}}, {"id": 8, "type": "identifier", "text": "IBICExtent", "parent": 7, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 21}}, {"id": 9, "type": "identifier", "text": "IBICMultipartImageRepSlotComponent", "parent": 5, "children": [], "start_point": {"row": 8, "column": 24}, "end_point": {"row": 8, "column": 58}}, {"id": 10, "type": "declaration", "text": "int _extentValue;", "parent": 5, "children": [11, 12], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 21}}, {"id": 11, "type": "primitive_type", "text": "int", "parent": 10, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 7}}, {"id": 12, "type": "identifier", "text": "_extentValue", "parent": 10, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 20}}, {"id": 13, "type": "ERROR", "text": "+ (id)itemWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(", "parent": null, "children": [14, 20, 21, 22, 23, 24, 25, 26, 27, 28], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 84}}, {"id": 14, "type": "unary_expression", "text": "+ (id)itemWithIdentifier", "parent": 13, "children": [15, 16], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 24}}, {"id": 15, "type": "+", "text": "+", "parent": 14, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 16, "type": "cast_expression", "text": "(id)itemWithIdentifier", "parent": 14, "children": [17, 19], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 24}}, {"id": 17, "type": "type_descriptor", "text": "id", "parent": 16, "children": [18], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 5}}, {"id": 18, "type": "type_identifier", "text": "id", "parent": 17, "children": [], "start_point": {"row": 13, "column": 3}, "end_point": {"row": 13, "column": 5}}, {"id": 19, "type": "identifier", "text": "itemWithIdentifier", "parent": 16, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 24}}, {"id": 20, "type": "identifier", "text": "id", "parent": 13, "children": [], "start_point": {"row": 13, "column": 26}, "end_point": {"row": 13, "column": 28}}, {"id": 21, "type": "type_identifier", "text": "arg1", "parent": 13, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 33}}, {"id": 22, "type": "identifier", "text": "fileNameComponent", "parent": 13, "children": [], "start_point": {"row": 13, "column": 34}, "end_point": {"row": 13, "column": 51}}, {"id": 23, "type": "identifier", "text": "id", "parent": 13, "children": [], "start_point": {"row": 13, "column": 53}, "end_point": {"row": 13, "column": 55}}, {"id": 24, "type": "identifier", "text": "arg2", "parent": 13, "children": [], "start_point": {"row": 13, "column": 56}, "end_point": {"row": 13, "column": 60}}, {"id": 25, "type": "identifier", "text": "title", "parent": 13, "children": [], "start_point": {"row": 13, "column": 61}, "end_point": {"row": 13, "column": 66}}, {"id": 26, "type": "identifier", "text": "id", "parent": 13, "children": [], "start_point": {"row": 13, "column": 68}, "end_point": {"row": 13, "column": 70}}, {"id": 27, "type": "identifier", "text": "arg3", "parent": 13, "children": [], "start_point": {"row": 13, "column": 71}, "end_point": {"row": 13, "column": 75}}, {"id": 28, "type": "identifier", "text": "extent", "parent": 13, "children": [], "start_point": {"row": 13, "column": 76}, "end_point": {"row": 13, "column": 82}}, {"id": 29, "type": "declaration", "text": "int)arg4", "parent": null, "children": [30, 31], "start_point": {"row": 13, "column": 84}, "end_point": {"row": 13, "column": 92}}, {"id": 30, "type": "primitive_type", "text": "int", "parent": 29, "children": [], "start_point": {"row": 13, "column": 84}, "end_point": {"row": 13, "column": 87}}, {"id": 31, "type": "identifier", "text": "arg4", "parent": 29, "children": [], "start_point": {"row": 13, "column": 88}, "end_point": {"row": 13, "column": 92}}, {"id": 32, "type": "labeled_statement", "text": "displayOrder:(double)arg5;", "parent": null, "children": [33], "start_point": {"row": 13, "column": 93}, "end_point": {"row": 13, "column": 119}}, {"id": 33, "type": "statement_identifier", "text": "displayOrder", "parent": 32, "children": [], "start_point": {"row": 13, "column": 93}, "end_point": {"row": 13, "column": 105}}, {"id": 34, "type": "cast_expression", "text": "(double)arg5", "parent": 32, "children": [35, 37], "start_point": {"row": 13, "column": 106}, "end_point": {"row": 13, "column": 118}}, {"id": 35, "type": "type_descriptor", "text": "double", "parent": 34, "children": [36], "start_point": {"row": 13, "column": 107}, "end_point": {"row": 13, "column": 113}}, {"id": 36, "type": "primitive_type", "text": "double", "parent": 35, "children": [], "start_point": {"row": 13, "column": 107}, "end_point": {"row": 13, "column": 113}}, {"id": 37, "type": "identifier", "text": "arg5", "parent": 34, "children": [], "start_point": {"row": 13, "column": 114}, "end_point": {"row": 13, "column": 118}}, {"id": 38, "type": "unary_expression", "text": "+ (id)contentsJSONKey", "parent": null, "children": [39, 40], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 21}}, {"id": 39, "type": "+", "text": "+", "parent": 38, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 40, "type": "cast_expression", "text": "(id)contentsJSONKey", "parent": 38, "children": [41, 43], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 21}}, {"id": 41, "type": "type_descriptor", "text": "id", "parent": 40, "children": [42], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 42, "type": "type_identifier", "text": "id", "parent": 41, "children": [], "start_point": {"row": 14, "column": 3}, "end_point": {"row": 14, "column": 5}}, {"id": 43, "type": "identifier", "text": "contentsJSONKey", "parent": 40, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 21}}, {"id": 44, "type": "ERROR", "text": "@", "parent": null, "children": [45], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 45, "type": "ERROR", "text": "@", "parent": 44, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 46, "type": "declaration", "text": "property(readonly) int extentValue;", "parent": null, "children": [47, 51, 53], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 36}}, {"id": 47, "type": "macro_type_specifier", "text": "property(readonly)", "parent": 46, "children": [48, 49], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 19}}, {"id": 48, "type": "identifier", "text": "property", "parent": 47, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 49, "type": "type_descriptor", "text": "readonly", "parent": 47, "children": [50], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 18}}, {"id": 50, "type": "type_identifier", "text": "readonly", "parent": 49, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 18}}, {"id": 51, "type": "ERROR", "text": "int", "parent": 46, "children": [52], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 23}}, {"id": 52, "type": "identifier", "text": "int", "parent": 51, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 23}}, {"id": 53, "type": "identifier", "text": "extentValue", "parent": 46, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 35}}, {"id": 54, "type": "unary_expression", "text": "- (BOOL)isEqualToSchemaImageRepIDComponent", "parent": null, "children": [55, 56], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 42}}, {"id": 55, "type": "-", "text": "-", "parent": 54, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 56, "type": "cast_expression", "text": "(BOOL)isEqualToSchemaImageRepIDComponent", "parent": 54, "children": [57, 59], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 42}}, {"id": 57, "type": "type_descriptor", "text": "BOOL", "parent": 56, "children": [58], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 58, "type": "type_identifier", "text": "BOOL", "parent": 57, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 59, "type": "identifier", "text": "isEqualToSchemaImageRepIDComponent", "parent": 56, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 42}}, {"id": 60, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [61, 62], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 16, "column": 51}}, {"id": 61, "type": "identifier", "text": "id", "parent": 60, "children": [], "start_point": {"row": 16, "column": 44}, "end_point": {"row": 16, "column": 46}}, {"id": 62, "type": "identifier", "text": "arg1", "parent": 60, "children": [], "start_point": {"row": 16, "column": 47}, "end_point": {"row": 16, "column": 51}}, {"id": 63, "type": "unary_expression", "text": "- (BOOL)isEqualToExtent", "parent": null, "children": [64, 65], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 23}}, {"id": 64, "type": "-", "text": "-", "parent": 63, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 65, "type": "cast_expression", "text": "(BOOL)isEqualToExtent", "parent": 63, "children": [66, 68], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 23}}, {"id": 66, "type": "type_descriptor", "text": "BOOL", "parent": 65, "children": [67], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 7}}, {"id": 67, "type": "type_identifier", "text": "BOOL", "parent": 66, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 7}}, {"id": 68, "type": "identifier", "text": "isEqualToExtent", "parent": 65, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 23}}, {"id": 69, "type": "ERROR", "text": ":(id)arg1", "parent": null, "children": [70, 71], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 32}}, {"id": 70, "type": "identifier", "text": "id", "parent": 69, "children": [], "start_point": {"row": 17, "column": 25}, "end_point": {"row": 17, "column": 27}}, {"id": 71, "type": "identifier", "text": "arg1", "parent": 69, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 32}}, {"id": 72, "type": "ERROR", "text": "- (id)initWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(", "parent": null, "children": [73, 79, 80, 81, 82, 83, 84, 85, 86, 87], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 84}}, {"id": 73, "type": "unary_expression", "text": "- (id)initWithIdentifier", "parent": 72, "children": [74, 75], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 24}}, {"id": 74, "type": "-", "text": "-", "parent": 73, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 75, "type": "cast_expression", "text": "(id)initWithIdentifier", "parent": 73, "children": [76, 78], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 24}}, {"id": 76, "type": "type_descriptor", "text": "id", "parent": 75, "children": [77], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 77, "type": "type_identifier", "text": "id", "parent": 76, "children": [], "start_point": {"row": 18, "column": 3}, "end_point": {"row": 18, "column": 5}}, {"id": 78, "type": "identifier", "text": "initWithIdentifier", "parent": 75, "children": [], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 18, "column": 24}}, {"id": 79, "type": "identifier", "text": "id", "parent": 72, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 28}}, {"id": 80, "type": "type_identifier", "text": "arg1", "parent": 72, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 33}}, {"id": 81, "type": "identifier", "text": "fileNameComponent", "parent": 72, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 51}}, {"id": 82, "type": "identifier", "text": "id", "parent": 72, "children": [], "start_point": {"row": 18, "column": 53}, "end_point": {"row": 18, "column": 55}}, {"id": 83, "type": "identifier", "text": "arg2", "parent": 72, "children": [], "start_point": {"row": 18, "column": 56}, "end_point": {"row": 18, "column": 60}}, {"id": 84, "type": "identifier", "text": "title", "parent": 72, "children": [], "start_point": {"row": 18, "column": 61}, "end_point": {"row": 18, "column": 66}}, {"id": 85, "type": "identifier", "text": "id", "parent": 72, "children": [], "start_point": {"row": 18, "column": 68}, "end_point": {"row": 18, "column": 70}}, {"id": 86, "type": "identifier", "text": "arg3", "parent": 72, "children": [], "start_point": {"row": 18, "column": 71}, "end_point": {"row": 18, "column": 75}}, {"id": 87, "type": "identifier", "text": "extent", "parent": 72, "children": [], "start_point": {"row": 18, "column": 76}, "end_point": {"row": 18, "column": 82}}, {"id": 88, "type": "declaration", "text": "int)arg4", "parent": null, "children": [89, 90], "start_point": {"row": 18, "column": 84}, "end_point": {"row": 18, "column": 92}}, {"id": 89, "type": "primitive_type", "text": "int", "parent": 88, "children": [], "start_point": {"row": 18, "column": 84}, "end_point": {"row": 18, "column": 87}}, {"id": 90, "type": "identifier", "text": "arg4", "parent": 88, "children": [], "start_point": {"row": 18, "column": 88}, "end_point": {"row": 18, "column": 92}}, {"id": 91, "type": "labeled_statement", "text": "displayOrder:(double)arg5;", "parent": null, "children": [92], "start_point": {"row": 18, "column": 93}, "end_point": {"row": 18, "column": 119}}, {"id": 92, "type": "statement_identifier", "text": "displayOrder", "parent": 91, "children": [], "start_point": {"row": 18, "column": 93}, "end_point": {"row": 18, "column": 105}}, {"id": 93, "type": "cast_expression", "text": "(double)arg5", "parent": 91, "children": [94, 96], "start_point": {"row": 18, "column": 106}, "end_point": {"row": 18, "column": 118}}, {"id": 94, "type": "type_descriptor", "text": "double", "parent": 93, "children": [95], "start_point": {"row": 18, "column": 107}, "end_point": {"row": 18, "column": 113}}, {"id": 95, "type": "primitive_type", "text": "double", "parent": 94, "children": [], "start_point": {"row": 18, "column": 107}, "end_point": {"row": 18, "column": 113}}, {"id": 96, "type": "identifier", "text": "arg5", "parent": 93, "children": [], "start_point": {"row": 18, "column": 114}, "end_point": {"row": 18, "column": 118}}, {"id": 97, "type": "ERROR", "text": "@", "parent": null, "children": [98], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 98, "type": "ERROR", "text": "@", "parent": 97, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 1}}]}, "node_categories": {"declarations": {"functions": [5], "variables": [10, 29, 46, 88], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [14, 16, 34, 38, 40, 54, 56, 63, 65, 73, 75, 93], "assignments": [], "loops": [], "conditionals": [6, 8, 9, 12, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 31, 33, 37, 42, 43, 47, 48, 50, 52, 53, 58, 59, 61, 62, 67, 68, 70, 71, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 90, 92, 96], "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": "IBICExtent", "text_snippet": "interface IBICExtent : IBICMultipartImageRepSlotComponent\n{\n int _extentValue;\n}"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/*\n * Generated by class-dump 3.3.4 (64 bit).\n *\n * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>.\n */\n\n#import <IBFoundation/IBICMultipartImageRepSlotComponent.h>\n\n@interface IBICExtent : IBICMultipartImageRepSlotComponent\n{\n int _extentValue;\n}\n\n+ (id)itemWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(int)arg4 displayOrder:(double)arg5;\n+ (id)contentsJSONKey;\n@property(readonly) int extentValue; // @synthesize extentValue=_extentValue;\n- (BOOL)isEqualToSchemaImageRepIDComponent:(id)arg1;\n- (BOOL)isEqualToExtent:(id)arg1;\n- (id)initWithIdentifier:(id)arg1 fileNameComponent:(id)arg2 title:(id)arg3 extent:(int)arg4 displayOrder:(double)arg5;\n\n@end\n\n"}
80,329
c
#ifndef __CLIENT_INTERFACE__ #define __CLIENT_INTERFACE__ #include <Addons/scriptarray.h> #include <Defines.Public.h> #include <Item.h> #include <Types.h> #define TB_DEBUG "Debug" #define TI_FPS "00:FPS" #define TI_SCREENS "01:Engine" #define TI_SCREENZ "02:PGUI" #define TI_COORD "03:Coords" #define TI_FIELD "04:Field" namespace PGUI { class Core; class Screen; }; namespace FOC { namespace Screen { class Login; class Game; class MiniMap; }; class InterfaceManager { public: struct TextInfo { std::string Text; uint8 Font; uint Color; uint Flags; bool ShowName; TextInfo() : Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ), ShowName( true ) {} }; struct TextBlock { uint StartX; uint StartY; uint SpacingY; std::map<std::string, TextInfo> Map; TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {} }; private: std::set<int> CustomScreens; std::set<int> EngineScreens; struct MouseData { int LastX; int LastY; }; MouseData Mouse; public: PGUI::Core* UI; std::map<std::string, TextBlock> TextBlocks; public: InterfaceManager(); ~InterfaceManager(); void UI_ScreenAdd( uint id, PGUI::Screen* screen ); void UI_ScreenRemove( uint id, PGUI::Screen* screen ); // reserved functions processing bool ProcessStart(); void ProcessFinish(); void ProcessLoop(); void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 ); void ProcessGetActiveScreens( ScriptArray& screens ); void ProcessRenderInterface( uint layer ); void ProcessRenderMap(); bool ProcessKeyDown( uint8 key, std::string& keyText ); bool ProcessKeyUp( uint8 key, std::string& keyText ); bool ProcessMouseDown( int click ); void ProcessMouseMove( int x, int y ); bool ProcessMouseUp( int click ); void ProcessInputLost(); void ProcessItemInvIn( Item& item ); void ProcessItemInvOut( Item& item ); void DrawTextBlocks(); }; }; #endif // __CLIENT_INTERFACE__ //
29.03
86
(translation_unit) "#ifndef __CLIENT_INTERFACE__\n#define __CLIENT_INTERFACE__\n\n#include <Addons/scriptarray.h>\n#include <Defines.Public.h>\n#include <Item.h>\n#include <Types.h>\n\n#define TB_DEBUG "Debug"\n#define TI_FPS "00:FPS"\n#define TI_SCREENS "01:Engine"\n#define TI_SCREENZ "02:PGUI"\n#define TI_COORD "03:Coords"\n#define TI_FIELD "04:Field"\n\nnamespace PGUI\n{\n class Core;\n class Screen;\n};\n\nnamespace FOC\n{\n namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n };\n\n class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n };\n\n struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n };\n};\n\n#endif // __CLIENT_INTERFACE__ //\n" (preproc_ifdef) "#ifndef __CLIENT_INTERFACE__\n#define __CLIENT_INTERFACE__\n\n#include <Addons/scriptarray.h>\n#include <Defines.Public.h>\n#include <Item.h>\n#include <Types.h>\n\n#define TB_DEBUG "Debug"\n#define TI_FPS "00:FPS"\n#define TI_SCREENS "01:Engine"\n#define TI_SCREENZ "02:PGUI"\n#define TI_COORD "03:Coords"\n#define TI_FIELD "04:Field"\n\nnamespace PGUI\n{\n class Core;\n class Screen;\n};\n\nnamespace FOC\n{\n namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n };\n\n class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n };\n\n struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n };\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "__CLIENT_INTERFACE__" (preproc_def) "#define __CLIENT_INTERFACE__\n" (#define) "#define" (identifier) "__CLIENT_INTERFACE__" (preproc_include) "#include <Addons/scriptarray.h>\n" (#include) "#include" (system_lib_string) "<Addons/scriptarray.h>" (preproc_include) "#include <Defines.Public.h>\n" (#include) "#include" (system_lib_string) "<Defines.Public.h>" (preproc_include) "#include <Item.h>\n" (#include) "#include" (system_lib_string) "<Item.h>" (preproc_include) "#include <Types.h>\n" (#include) "#include" (system_lib_string) "<Types.h>" (preproc_def) "#define TB_DEBUG "Debug"\n" (#define) "#define" (identifier) "TB_DEBUG" (preproc_arg) ""Debug"" (preproc_def) "#define TI_FPS "00:FPS"\n" (#define) "#define" (identifier) "TI_FPS" (preproc_arg) ""00:FPS"" (preproc_def) "#define TI_SCREENS "01:Engine"\n" (#define) "#define" (identifier) "TI_SCREENS" (preproc_arg) ""01:Engine"" (preproc_def) "#define TI_SCREENZ "02:PGUI"\n" (#define) "#define" (identifier) "TI_SCREENZ" (preproc_arg) ""02:PGUI"" (preproc_def) "#define TI_COORD "03:Coords"\n" (#define) "#define" (identifier) "TI_COORD" (preproc_arg) ""03:Coords"" (preproc_def) "#define TI_FIELD "04:Field"\n" (#define) "#define" (identifier) "TI_FIELD" (preproc_arg) ""04:Field"" (function_definition) "namespace PGUI\n{\n class Core;\n class Screen;\n}" (type_identifier) "namespace" (identifier) "PGUI" (compound_statement) "{\n class Core;\n class Screen;\n}" ({) "{" (declaration) "class Core;" (type_identifier) "class" (identifier) "Core" (;) ";" (declaration) "class Screen;" (type_identifier) "class" (identifier) "Screen" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "namespace FOC\n{\n namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n };\n\n class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n };\n\n struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n };\n}" (type_identifier) "namespace" (identifier) "FOC" (compound_statement) "{\n namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n };\n\n class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n };\n\n struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n };\n}" ({) "{" (function_definition) "namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n }" (type_identifier) "namespace" (identifier) "Screen" (compound_statement) "{\n class Login;\n class Game;\n class MiniMap;\n }" ({) "{" (declaration) "class Login;" (type_identifier) "class" (identifier) "Login" (;) ";" (declaration) "class Game;" (type_identifier) "class" (identifier) "Game" (;) ";" (declaration) "class MiniMap;" (type_identifier) "class" (identifier) "MiniMap" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n }" (type_identifier) "class" (identifier) "InterfaceManager" (compound_statement) "{\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n }" ({) "{" (labeled_statement) "public:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}" (statement_identifier) "public" (:) ":" (ERROR) "struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( "" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )" (struct) "struct" (identifier) "TextInfo" ({) "{" (field_declaration) "std::string Text;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "Text" (;) ";" (field_declaration) "uint8 Font;" (type_identifier) "uint8" (field_identifier) "Font" (;) ";" (field_declaration) "uint Color;" (type_identifier) "uint" (field_identifier) "Color" (;) ";" (field_declaration) "uint Flags;" (type_identifier) "uint" (field_identifier) "Flags" (;) ";" (field_declaration) "bool ShowName;" (primitive_type) "bool" (field_identifier) "ShowName" (;) ";" (identifier) "TextInfo" (() "(" (ERROR) ") :" ()) ")" (:) ":" (identifier) "Text" (() "(" (") """ (") """ (string_content) " ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED )," (macro_type_specifier) "ShowName( true )" (identifier) "ShowName" (() "(" (type_descriptor) "true" (type_identifier) "true" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (struct_specifier) "struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n }" (struct) "struct" (type_identifier) "TextBlock" (field_declaration_list) "{\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n }" ({) "{" (field_declaration) "uint StartX;" (type_identifier) "uint" (field_identifier) "StartX" (;) ";" (field_declaration) "uint StartY;" (type_identifier) "uint" (field_identifier) "StartY" (;) ";" (field_declaration) "uint SpacingY;" (type_identifier) "uint" (field_identifier) "SpacingY" (;) ";" (field_declaration) "std::map<std::string, TextInfo> Map;" (type_identifier) "std" (ERROR) "::map<" (:) ":" (:) ":" (field_identifier) "map" (<) "<" (field_identifier) "std" (ERROR) ":" (:) ":" (bitfield_clause) ":string" (:) ":" (identifier) "string" (,) "," (field_identifier) "TextInfo" (ERROR) "> Map" (>) ">" (identifier) "Map" (;) ";" (ERROR) "TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();" (identifier) "TextBlock" (() "(" (ERROR) ") :" ()) ")" (:) ":" (identifier) "StartX" (() "(" (ERROR) "0 )," (number_literal) "0" ()) ")" (,) "," (identifier) "StartY" (() "(" (ERROR) "0 )," (number_literal) "0" ()) ")" (,) "," (identifier) "SpacingY" (() "(" (ERROR) "2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map" (number_literal) "2" ()) ")" ({) "{" (}) "}" (}) "}" (;) ";" (type_descriptor) "private" (type_identifier) "private" (:) ":" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (identifier) "set" (<) "<" (primitive_type) "int" (>) ">" (identifier) "CustomScreens" (;) ";" (identifier) "std" (:) ":" (:) ":" (identifier) "set" (<) "<" (primitive_type) "int" (>) ">" (identifier) "EngineScreens" (;) ";" (struct_specifier) "struct MouseData\n {\n int LastX;\n int LastY;\n }" (struct) "struct" (type_identifier) "MouseData" (field_declaration_list) "{\n int LastX;\n int LastY;\n }" ({) "{" (field_declaration) "int LastX;" (primitive_type) "int" (field_identifier) "LastX" (;) ";" (field_declaration) "int LastY;" (primitive_type) "int" (field_identifier) "LastY" (;) ";" (}) "}" (;) ";" (type_identifier) "MouseData" (identifier) "Mouse" (;) ";" (type_descriptor) "public" (type_identifier) "public" (:) ":" (type_descriptor) "PGUI" (type_identifier) "PGUI" (:) ":" (:) ":" (type_descriptor) "Core*" (type_identifier) "Core" (abstract_pointer_declarator) "*" (*) "*" (identifier) "UI" (;) ";" (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (type_identifier) "map" (ERROR) "<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (,) "," (identifier) "TextBlock" (>) ">" (identifier) "TextBlocks" (;) ";" (type_descriptor) "public" (type_identifier) "public" (:) ":" (type_descriptor) "InterfaceManager()" (type_identifier) "InterfaceManager" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (~) "~" (type_descriptor) "InterfaceManager()" (type_identifier) "InterfaceManager" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "UI_ScreenAdd( uint id, PGUI::Screen* screen )" (type_identifier) "UI_ScreenAdd" (abstract_function_declarator) "( uint id, PGUI::Screen* screen )" (parameter_list) "( uint id, PGUI::Screen* screen )" (() "(" (parameter_declaration) "uint id" (type_identifier) "uint" (identifier) "id" (,) "," (parameter_declaration) "PGUI::Screen* screen" (type_identifier) "PGUI" (ERROR) "::Screen" (:) ":" (:) ":" (identifier) "Screen" (pointer_declarator) "* screen" (*) "*" (identifier) "screen" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "UI_ScreenRemove( uint id, PGUI::Screen* screen )" (type_identifier) "UI_ScreenRemove" (abstract_function_declarator) "( uint id, PGUI::Screen* screen )" (parameter_list) "( uint id, PGUI::Screen* screen )" (() "(" (parameter_declaration) "uint id" (type_identifier) "uint" (identifier) "id" (,) "," (parameter_declaration) "PGUI::Screen* screen" (type_identifier) "PGUI" (ERROR) "::Screen" (:) ":" (:) ":" (identifier) "Screen" (pointer_declarator) "* screen" (*) "*" (identifier) "screen" ()) ")" (;) ";" (comment) "// reserved functions processing" (ERROR) "bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void" (primitive_type) "bool" (type_descriptor) "ProcessStart()" (type_identifier) "ProcessStart" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessFinish()" (type_identifier) "ProcessFinish" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessLoop()" (type_identifier) "ProcessLoop" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 )" (type_identifier) "ProcessScreenChange" (abstract_function_declarator) "( bool show, int screen, int p0, int p1, int p2 )" (parameter_list) "( bool show, int screen, int p0, int p1, int p2 )" (() "(" (parameter_declaration) "bool show" (primitive_type) "bool" (identifier) "show" (,) "," (parameter_declaration) "int screen" (primitive_type) "int" (identifier) "screen" (,) "," (parameter_declaration) "int p0" (primitive_type) "int" (identifier) "p0" (,) "," (parameter_declaration) "int p1" (primitive_type) "int" (identifier) "p1" (,) "," (parameter_declaration) "int p2" (primitive_type) "int" (identifier) "p2" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessGetActiveScreens( ScriptArray& screens )" (type_identifier) "ProcessGetActiveScreens" (abstract_function_declarator) "( ScriptArray& screens )" (parameter_list) "( ScriptArray& screens )" (() "(" (parameter_declaration) "ScriptArray& screens" (type_identifier) "ScriptArray" (ERROR) "&" (&) "&" (identifier) "screens" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessRenderInterface( uint layer )" (type_identifier) "ProcessRenderInterface" (abstract_function_declarator) "( uint layer )" (parameter_list) "( uint layer )" (() "(" (parameter_declaration) "uint layer" (type_identifier) "uint" (identifier) "layer" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessRenderMap()" (type_identifier) "ProcessRenderMap" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (primitive_type) "bool" (type_descriptor) "ProcessKeyDown( uint8 key, std::string& keyText )" (type_identifier) "ProcessKeyDown" (abstract_function_declarator) "( uint8 key, std::string& keyText )" (parameter_list) "( uint8 key, std::string& keyText )" (() "(" (parameter_declaration) "uint8 key" (type_identifier) "uint8" (identifier) "key" (,) "," (parameter_declaration) "std::string& keyText" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "keyText" ()) ")" (;) ";" (primitive_type) "bool" (type_descriptor) "ProcessKeyUp( uint8 key, std::string& keyText )" (type_identifier) "ProcessKeyUp" (abstract_function_declarator) "( uint8 key, std::string& keyText )" (parameter_list) "( uint8 key, std::string& keyText )" (() "(" (parameter_declaration) "uint8 key" (type_identifier) "uint8" (identifier) "key" (,) "," (parameter_declaration) "std::string& keyText" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "keyText" ()) ")" (;) ";" (primitive_type) "bool" (type_descriptor) "ProcessMouseDown( int click )" (type_identifier) "ProcessMouseDown" (abstract_function_declarator) "( int click )" (parameter_list) "( int click )" (() "(" (parameter_declaration) "int click" (primitive_type) "int" (identifier) "click" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessMouseMove( int x, int y )" (type_identifier) "ProcessMouseMove" (abstract_function_declarator) "( int x, int y )" (parameter_list) "( int x, int y )" (() "(" (parameter_declaration) "int x" (primitive_type) "int" (identifier) "x" (,) "," (parameter_declaration) "int y" (primitive_type) "int" (identifier) "y" ()) ")" (;) ";" (primitive_type) "bool" (type_descriptor) "ProcessMouseUp( int click )" (type_identifier) "ProcessMouseUp" (abstract_function_declarator) "( int click )" (parameter_list) "( int click )" (() "(" (parameter_declaration) "int click" (primitive_type) "int" (identifier) "click" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessInputLost()" (type_identifier) "ProcessInputLost" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessItemInvIn( Item& item )" (type_identifier) "ProcessItemInvIn" (abstract_function_declarator) "( Item& item )" (parameter_list) "( Item& item )" (() "(" (parameter_declaration) "Item& item" (type_identifier) "Item" (ERROR) "&" (&) "&" (identifier) "item" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "ProcessItemInvOut( Item& item )" (type_identifier) "ProcessItemInvOut" (abstract_function_declarator) "( Item& item )" (parameter_list) "( Item& item )" (() "(" (parameter_declaration) "Item& item" (type_identifier) "Item" (ERROR) "&" (&) "&" (identifier) "item" ()) ")" (;) ";" (primitive_type) "void" (type_descriptor) "DrawTextBlocks()" (type_identifier) "DrawTextBlocks" (abstract_function_declarator) "()" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// __CLIENT_INTERFACE__ //"
545
20
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 29.03, "nodes": 344, "errors": 0, "source_hash": "2effb0ead3670ddabf12dc87ee06141889d7467842ae1884549a527c2c8cda65", "categorized_nodes": 215}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __CLIENT_INTERFACE__\n#define __CLIENT_INTERFACE__\n\n#include <Addons/scriptarray.h>\n#include <Defines.Public.h>\n#include <Item.h>\n#include <Types.h>\n\n#define TB_DEBUG \"Debug\"\n#define TI_FPS \"00:FPS\"\n#define TI_SCREENS \"01:Engine\"\n#define TI_SCREENZ \"02:PGUI\"\n#define TI_COORD \"03:Coords\"\n#define TI_FIELD \"04:Field\"\n\nnamespace PGUI\n{\n class Core;\n class Screen;\n};\n\nnamespace FOC\n{\n namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n };\n\n class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( \"\" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n };\n\n struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n };\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 22, 26, 30, 34, 38, 42, 49, 343], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 105, "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": "__CLIENT_INTERFACE__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define __CLIENT_INTERFACE__\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": "__CLIENT_INTERFACE__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include <Addons/scriptarray.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": "<Addons/scriptarray.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 31}}, {"id": 9, "type": "preproc_include", "text": "#include <Defines.Public.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": "<Defines.Public.h>", "parent": 9, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include <Item.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": "<Item.h>", "parent": 12, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <Types.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<Types.h>", "parent": 15, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 18, "type": "preproc_def", "text": "#define TB_DEBUG \"Debug\"\n", "parent": 0, "children": [19, 20, 21], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 20, "type": "identifier", "text": "TB_DEBUG", "parent": 18, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 16}}, {"id": 21, "type": "preproc_arg", "text": "\"Debug\"", "parent": 18, "children": [], "start_point": {"row": 8, "column": 22}, "end_point": {"row": 8, "column": 29}}, {"id": 22, "type": "preproc_def", "text": "#define TI_FPS \"00:FPS\"\n", "parent": 0, "children": [23, 24, 25], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 23, "type": "#define", "text": "#define", "parent": 22, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 24, "type": "identifier", "text": "TI_FPS", "parent": 22, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 14}}, {"id": 25, "type": "preproc_arg", "text": "\"00:FPS\"", "parent": 22, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 30}}, {"id": 26, "type": "preproc_def", "text": "#define TI_SCREENS \"01:Engine\"\n", "parent": 0, "children": [27, 28, 29], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 27, "type": "#define", "text": "#define", "parent": 26, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 28, "type": "identifier", "text": "TI_SCREENS", "parent": 26, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 18}}, {"id": 29, "type": "preproc_arg", "text": "\"01:Engine\"", "parent": 26, "children": [], "start_point": {"row": 10, "column": 22}, "end_point": {"row": 10, "column": 33}}, {"id": 30, "type": "preproc_def", "text": "#define TI_SCREENZ \"02:PGUI\"\n", "parent": 0, "children": [31, 32, 33], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 31, "type": "#define", "text": "#define", "parent": 30, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 32, "type": "identifier", "text": "TI_SCREENZ", "parent": 30, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 18}}, {"id": 33, "type": "preproc_arg", "text": "\"02:PGUI\"", "parent": 30, "children": [], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 31}}, {"id": 34, "type": "preproc_def", "text": "#define TI_COORD \"03:Coords\"\n", "parent": 0, "children": [35, 36, 37], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 35, "type": "#define", "text": "#define", "parent": 34, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 36, "type": "identifier", "text": "TI_COORD", "parent": 34, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 16}}, {"id": 37, "type": "preproc_arg", "text": "\"03:Coords\"", "parent": 34, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 33}}, {"id": 38, "type": "preproc_def", "text": "#define TI_FIELD \"04:Field\"\n", "parent": 0, "children": [39, 40, 41], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 39, "type": "#define", "text": "#define", "parent": 38, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 40, "type": "identifier", "text": "TI_FIELD", "parent": 38, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 16}}, {"id": 41, "type": "preproc_arg", "text": "\"04:Field\"", "parent": 38, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 32}}, {"id": 42, "type": "function_definition", "text": "namespace PGUI\n{\n class Core;\n class Screen;\n}", "parent": 0, "children": [43, 44], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 43, "type": "type_identifier", "text": "namespace", "parent": 42, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 9}}, {"id": 44, "type": "identifier", "text": "PGUI", "parent": 42, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 45, "type": "declaration", "text": "class Core;", "parent": 42, "children": [46], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 15}}, {"id": 46, "type": "identifier", "text": "Core", "parent": 45, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 14}}, {"id": 47, "type": "declaration", "text": "class Screen;", "parent": 42, "children": [48], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 17}}, {"id": 48, "type": "identifier", "text": "Screen", "parent": 47, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 16}}, {"id": 49, "type": "function_definition", "text": "namespace FOC\n{\n namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n };\n\n class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( \"\" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n };\n\n struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n };\n}", "parent": 0, "children": [50, 51], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 103, "column": 1}}, {"id": 50, "type": "type_identifier", "text": "namespace", "parent": 49, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 9}}, {"id": 51, "type": "identifier", "text": "FOC", "parent": 49, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 13}}, {"id": 52, "type": "function_definition", "text": "namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n }", "parent": 49, "children": [53, 54], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 28, "column": 5}}, {"id": 53, "type": "type_identifier", "text": "namespace", "parent": 52, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 13}}, {"id": 54, "type": "identifier", "text": "Screen", "parent": 52, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 20}}, {"id": 55, "type": "declaration", "text": "class Login;", "parent": 52, "children": [56], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 20}}, {"id": 56, "type": "identifier", "text": "Login", "parent": 55, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 19}}, {"id": 57, "type": "declaration", "text": "class Game;", "parent": 52, "children": [58], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 58, "type": "identifier", "text": "Game", "parent": 57, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 18}}, {"id": 59, "type": "declaration", "text": "class MiniMap;", "parent": 52, "children": [60], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 22}}, {"id": 60, "type": "identifier", "text": "MiniMap", "parent": 59, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 21}}, {"id": 61, "type": "function_definition", "text": "class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( \"\" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n }", "parent": 49, "children": [62], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 46, "column": 9}}, {"id": 62, "type": "identifier", "text": "InterfaceManager", "parent": 61, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 26}}, {"id": 63, "type": "labeled_statement", "text": "public:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( \"\" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}", "parent": 61, "children": [64], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 45, "column": 14}}, {"id": 64, "type": "ERROR", "text": "struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( \"\" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )", "parent": 63, "children": [65, 66, 67, 72, 75, 78, 81, 84, 85, 86, 87], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 44, "column": 32}}, {"id": 65, "type": "struct", "text": "struct", "parent": 64, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 14}}, {"id": 66, "type": "identifier", "text": "TextInfo", "parent": 64, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 23}}, {"id": 67, "type": "field_declaration", "text": "std::string Text;", "parent": 64, "children": [68, 69, 71], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 29}}, {"id": 68, "type": "type_identifier", "text": "std", "parent": 67, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 15}}, {"id": 69, "type": "ERROR", "text": "::string", "parent": 67, "children": [70], "start_point": {"row": 35, "column": 15}, "end_point": {"row": 35, "column": 23}}, {"id": 70, "type": "field_identifier", "text": "string", "parent": 69, "children": [], "start_point": {"row": 35, "column": 17}, "end_point": {"row": 35, "column": 23}}, {"id": 71, "type": "field_identifier", "text": "Text", "parent": 67, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 28}}, {"id": 72, "type": "field_declaration", "text": "uint8 Font;", "parent": 64, "children": [73, 74], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 29}}, {"id": 73, "type": "type_identifier", "text": "uint8", "parent": 72, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 17}}, {"id": 74, "type": "field_identifier", "text": "Font", "parent": 72, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 28}}, {"id": 75, "type": "field_declaration", "text": "uint Color;", "parent": 64, "children": [76, 77], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 30}}, {"id": 76, "type": "type_identifier", "text": "uint", "parent": 75, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 16}}, {"id": 77, "type": "field_identifier", "text": "Color", "parent": 75, "children": [], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 29}}, {"id": 78, "type": "field_declaration", "text": "uint Flags;", "parent": 64, "children": [79, 80], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 30}}, {"id": 79, "type": "type_identifier", "text": "uint", "parent": 78, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 16}}, {"id": 80, "type": "field_identifier", "text": "Flags", "parent": 78, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 29}}, {"id": 81, "type": "field_declaration", "text": "bool ShowName;", "parent": 64, "children": [82, 83], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 33}}, {"id": 82, "type": "primitive_type", "text": "bool", "parent": 81, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 16}}, {"id": 83, "type": "field_identifier", "text": "ShowName", "parent": 81, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 32}}, {"id": 84, "type": "identifier", "text": "TextInfo", "parent": 64, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 20}}, {"id": 85, "type": "ERROR", "text": ") :", "parent": 64, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 24}}, {"id": 86, "type": "identifier", "text": "Text", "parent": 64, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 20}}, {"id": 87, "type": "macro_type_specifier", "text": "ShowName( true )", "parent": 64, "children": [88, 89], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 32}}, {"id": 88, "type": "identifier", "text": "ShowName", "parent": 87, "children": [], "start_point": {"row": 44, "column": 16}, "end_point": {"row": 44, "column": 24}}, {"id": 89, "type": "type_descriptor", "text": "true", "parent": 87, "children": [90], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 30}}, {"id": 90, "type": "type_identifier", "text": "true", "parent": 89, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 30}}, {"id": 91, "type": "struct_specifier", "text": "struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n }", "parent": 49, "children": [92, 93], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 102, "column": 5}}, {"id": 92, "type": "struct", "text": "struct", "parent": 91, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 14}}, {"id": 93, "type": "type_identifier", "text": "TextBlock", "parent": 91, "children": [], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 24}}, {"id": 94, "type": "field_declaration", "text": "uint StartX;", "parent": 91, "children": [95, 96], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 51}}, {"id": 95, "type": "type_identifier", "text": "uint", "parent": 94, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 16}}, {"id": 96, "type": "field_identifier", "text": "StartX", "parent": 94, "children": [], "start_point": {"row": 50, "column": 44}, "end_point": {"row": 50, "column": 50}}, {"id": 97, "type": "field_declaration", "text": "uint StartY;", "parent": 91, "children": [98, 99], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 51}}, {"id": 98, "type": "type_identifier", "text": "uint", "parent": 97, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 16}}, {"id": 99, "type": "field_identifier", "text": "StartY", "parent": 97, "children": [], "start_point": {"row": 51, "column": 44}, "end_point": {"row": 51, "column": 50}}, {"id": 100, "type": "field_declaration", "text": "uint SpacingY;", "parent": 91, "children": [101, 102], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 53}}, {"id": 101, "type": "type_identifier", "text": "uint", "parent": 100, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 16}}, {"id": 102, "type": "field_identifier", "text": "SpacingY", "parent": 100, "children": [], "start_point": {"row": 52, "column": 44}, "end_point": {"row": 52, "column": 52}}, {"id": 103, "type": "field_declaration", "text": "std::map<std::string, TextInfo> Map;", "parent": 91, "children": [104, 105, 108, 109, 111, 112], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 48}}, {"id": 104, "type": "type_identifier", "text": "std", "parent": 103, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 15}}, {"id": 105, "type": "ERROR", "text": "::map<", "parent": 103, "children": [106, 107], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 21}}, {"id": 106, "type": "field_identifier", "text": "map", "parent": 105, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 20}}, {"id": 107, "type": "<", "text": "<", "parent": 105, "children": [], "start_point": {"row": 54, "column": 20}, "end_point": {"row": 54, "column": 21}}, {"id": 108, "type": "field_identifier", "text": "std", "parent": 103, "children": [], "start_point": {"row": 54, "column": 21}, "end_point": {"row": 54, "column": 24}}, {"id": 109, "type": "bitfield_clause", "text": ":string", "parent": 103, "children": [110], "start_point": {"row": 54, "column": 25}, "end_point": {"row": 54, "column": 32}}, {"id": 110, "type": "identifier", "text": "string", "parent": 109, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 32}}, {"id": 111, "type": "field_identifier", "text": "TextInfo", "parent": 103, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 42}}, {"id": 112, "type": "ERROR", "text": "> Map", "parent": 103, "children": [113, 114], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 47}}, {"id": 113, "type": ">", "text": ">", "parent": 112, "children": [], "start_point": {"row": 54, "column": 42}, "end_point": {"row": 54, "column": 43}}, {"id": 114, "type": "identifier", "text": "Map", "parent": 112, "children": [], "start_point": {"row": 54, "column": 44}, "end_point": {"row": 54, "column": 47}}, {"id": 115, "type": "ERROR", "text": "TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();", "parent": 91, "children": [116, 117, 118, 119, 121, 122, 124, 125, 161, 207, 339], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 101, "column": 30}}, {"id": 116, "type": "identifier", "text": "TextBlock", "parent": 115, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 21}}, {"id": 117, "type": "ERROR", "text": ") :", "parent": 115, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 25}}, {"id": 118, "type": "identifier", "text": "StartX", "parent": 115, "children": [], "start_point": {"row": 56, "column": 26}, "end_point": {"row": 56, "column": 32}}, {"id": 119, "type": "ERROR", "text": "0 ),", "parent": 115, "children": [120], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 38}}, {"id": 120, "type": "number_literal", "text": "0", "parent": 119, "children": [], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 35}}, {"id": 121, "type": "identifier", "text": "StartY", "parent": 115, "children": [], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 45}}, {"id": 122, "type": "ERROR", "text": "0 ),", "parent": 115, "children": [123], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 51}}, {"id": 123, "type": "number_literal", "text": "0", "parent": 122, "children": [], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 48}}, {"id": 124, "type": "identifier", "text": "SpacingY", "parent": 115, "children": [], "start_point": {"row": 56, "column": 52}, "end_point": {"row": 56, "column": 60}}, {"id": 125, "type": "ERROR", "text": "2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map", "parent": 115, "children": [126, 127, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 149, 150, 151, 153, 157, 158, 160], "start_point": {"row": 56, "column": 62}, "end_point": {"row": 74, "column": 16}}, {"id": 126, "type": "number_literal", "text": "2", "parent": 125, "children": [], "start_point": {"row": 56, "column": 62}, "end_point": {"row": 56, "column": 63}}, {"id": 127, "type": "type_descriptor", "text": "std", "parent": 125, "children": [128], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 11}}, {"id": 128, "type": "type_identifier", "text": "std", "parent": 127, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 11}}, {"id": 129, "type": "identifier", "text": "set", "parent": 125, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 16}}, {"id": 130, "type": "<", "text": "<", "parent": 125, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 17}}, {"id": 131, "type": "primitive_type", "text": "int", "parent": 125, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 20}}, {"id": 132, "type": ">", "text": ">", "parent": 125, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 21}}, {"id": 133, "type": "identifier", "text": "CustomScreens", "parent": 125, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 35}}, {"id": 134, "type": "identifier", "text": "std", "parent": 125, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 11}}, {"id": 135, "type": "identifier", "text": "set", "parent": 125, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 16}}, {"id": 136, "type": "<", "text": "<", "parent": 125, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 17}}, {"id": 137, "type": "primitive_type", "text": "int", "parent": 125, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 20}}, {"id": 138, "type": ">", "text": ">", "parent": 125, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 139, "type": "identifier", "text": "EngineScreens", "parent": 125, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 35}}, {"id": 140, "type": "struct_specifier", "text": "struct MouseData\n {\n int LastX;\n int LastY;\n }", "parent": 125, "children": [141, 142], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 68, "column": 9}}, {"id": 141, "type": "struct", "text": "struct", "parent": 140, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 14}}, {"id": 142, "type": "type_identifier", "text": "MouseData", "parent": 140, "children": [], "start_point": {"row": 64, "column": 15}, "end_point": {"row": 64, "column": 24}}, {"id": 143, "type": "field_declaration", "text": "int LastX;", "parent": 140, "children": [144, 145], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 22}}, {"id": 144, "type": "primitive_type", "text": "int", "parent": 143, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 15}}, {"id": 145, "type": "field_identifier", "text": "LastX", "parent": 143, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 21}}, {"id": 146, "type": "field_declaration", "text": "int LastY;", "parent": 140, "children": [147, 148], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 22}}, {"id": 147, "type": "primitive_type", "text": "int", "parent": 146, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 15}}, {"id": 148, "type": "field_identifier", "text": "LastY", "parent": 146, "children": [], "start_point": {"row": 67, "column": 16}, "end_point": {"row": 67, "column": 21}}, {"id": 149, "type": "type_identifier", "text": "MouseData", "parent": 125, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 17}}, {"id": 150, "type": "identifier", "text": "Mouse", "parent": 125, "children": [], "start_point": {"row": 70, "column": 41}, "end_point": {"row": 70, "column": 46}}, {"id": 151, "type": "type_descriptor", "text": "PGUI", "parent": 125, "children": [152], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 12}}, {"id": 152, "type": "type_identifier", "text": "PGUI", "parent": 151, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 12}}, {"id": 153, "type": "type_descriptor", "text": "Core*", "parent": 125, "children": [154, 155], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 19}}, {"id": 154, "type": "type_identifier", "text": "Core", "parent": 153, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 18}}, {"id": 155, "type": "abstract_pointer_declarator", "text": "*", "parent": 153, "children": [156], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 19}}, {"id": 156, "type": "*", "text": "*", "parent": 155, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 19}}, {"id": 157, "type": "identifier", "text": "UI", "parent": 125, "children": [], "start_point": {"row": 72, "column": 41}, "end_point": {"row": 72, "column": 43}}, {"id": 158, "type": "type_descriptor", "text": "std", "parent": 125, "children": [159], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 11}}, {"id": 159, "type": "type_identifier", "text": "std", "parent": 158, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 11}}, {"id": 160, "type": "type_identifier", "text": "map", "parent": 125, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 16}}, {"id": 161, "type": "ERROR", "text": "<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );", "parent": 115, "children": [162, 163, 164, 165, 166, 167, 168, 172, 173, 177, 178, 192, 193], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 81, "column": 62}}, {"id": 162, "type": "<", "text": "<", "parent": 161, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 17}}, {"id": 163, "type": "identifier", "text": "std", "parent": 161, "children": [], "start_point": {"row": 74, "column": 17}, "end_point": {"row": 74, "column": 20}}, {"id": 164, "type": "identifier", "text": "string", "parent": 161, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 28}}, {"id": 165, "type": "identifier", "text": "TextBlock", "parent": 161, "children": [], "start_point": {"row": 74, "column": 30}, "end_point": {"row": 74, "column": 39}}, {"id": 166, "type": ">", "text": ">", "parent": 161, "children": [], "start_point": {"row": 74, "column": 39}, "end_point": {"row": 74, "column": 40}}, {"id": 167, "type": "identifier", "text": "TextBlocks", "parent": 161, "children": [], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 51}}, {"id": 168, "type": "type_descriptor", "text": "InterfaceManager()", "parent": 161, "children": [169, 170], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 26}}, {"id": 169, "type": "type_identifier", "text": "InterfaceManager", "parent": 168, "children": [], "start_point": {"row": 77, "column": 8}, "end_point": {"row": 77, "column": 24}}, {"id": 170, "type": "abstract_function_declarator", "text": "()", "parent": 168, "children": [171], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 26}}, {"id": 171, "type": "parameter_list", "text": "()", "parent": 170, "children": [], "start_point": {"row": 77, "column": 24}, "end_point": {"row": 77, "column": 26}}, {"id": 172, "type": "~", "text": "~", "parent": 161, "children": [], "start_point": {"row": 78, "column": 8}, "end_point": {"row": 78, "column": 9}}, {"id": 173, "type": "type_descriptor", "text": "InterfaceManager()", "parent": 161, "children": [174, 175], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 27}}, {"id": 174, "type": "type_identifier", "text": "InterfaceManager", "parent": 173, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 25}}, {"id": 175, "type": "abstract_function_declarator", "text": "()", "parent": 173, "children": [176], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 27}}, {"id": 176, "type": "parameter_list", "text": "()", "parent": 175, "children": [], "start_point": {"row": 78, "column": 25}, "end_point": {"row": 78, "column": 27}}, {"id": 177, "type": "primitive_type", "text": "void", "parent": 161, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 12}}, {"id": 178, "type": "type_descriptor", "text": "UI_ScreenAdd( uint id, PGUI::Screen* screen )", "parent": 161, "children": [179, 180], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 58}}, {"id": 179, "type": "type_identifier", "text": "UI_ScreenAdd", "parent": 178, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 25}}, {"id": 180, "type": "abstract_function_declarator", "text": "( uint id, PGUI::Screen* screen )", "parent": 178, "children": [181], "start_point": {"row": 80, "column": 25}, "end_point": {"row": 80, "column": 58}}, {"id": 181, "type": "parameter_list", "text": "( uint id, PGUI::Screen* screen )", "parent": 180, "children": [182, 185], "start_point": {"row": 80, "column": 25}, "end_point": {"row": 80, "column": 58}}, {"id": 182, "type": "parameter_declaration", "text": "uint id", "parent": 181, "children": [183, 184], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 34}}, {"id": 183, "type": "type_identifier", "text": "uint", "parent": 182, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 31}}, {"id": 184, "type": "identifier", "text": "id", "parent": 182, "children": [], "start_point": {"row": 80, "column": 32}, "end_point": {"row": 80, "column": 34}}, {"id": 185, "type": "parameter_declaration", "text": "PGUI::Screen* screen", "parent": 181, "children": [186, 187, 189], "start_point": {"row": 80, "column": 36}, "end_point": {"row": 80, "column": 56}}, {"id": 186, "type": "type_identifier", "text": "PGUI", "parent": 185, "children": [], "start_point": {"row": 80, "column": 36}, "end_point": {"row": 80, "column": 40}}, {"id": 187, "type": "ERROR", "text": "::Screen", "parent": 185, "children": [188], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 48}}, {"id": 188, "type": "identifier", "text": "Screen", "parent": 187, "children": [], "start_point": {"row": 80, "column": 42}, "end_point": {"row": 80, "column": 48}}, {"id": 189, "type": "pointer_declarator", "text": "* screen", "parent": 185, "children": [190, 191], "start_point": {"row": 80, "column": 48}, "end_point": {"row": 80, "column": 56}}, {"id": 190, "type": "*", "text": "*", "parent": 189, "children": [], "start_point": {"row": 80, "column": 48}, "end_point": {"row": 80, "column": 49}}, {"id": 191, "type": "identifier", "text": "screen", "parent": 189, "children": [], "start_point": {"row": 80, "column": 50}, "end_point": {"row": 80, "column": 56}}, {"id": 192, "type": "primitive_type", "text": "void", "parent": 161, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 12}}, {"id": 193, "type": "type_descriptor", "text": "UI_ScreenRemove( uint id, PGUI::Screen* screen )", "parent": 161, "children": [194, 195], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 61}}, {"id": 194, "type": "type_identifier", "text": "UI_ScreenRemove", "parent": 193, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 28}}, {"id": 195, "type": "abstract_function_declarator", "text": "( uint id, PGUI::Screen* screen )", "parent": 193, "children": [196], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 61}}, {"id": 196, "type": "parameter_list", "text": "( uint id, PGUI::Screen* screen )", "parent": 195, "children": [197, 200], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 61}}, {"id": 197, "type": "parameter_declaration", "text": "uint id", "parent": 196, "children": [198, 199], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 37}}, {"id": 198, "type": "type_identifier", "text": "uint", "parent": 197, "children": [], "start_point": {"row": 81, "column": 30}, "end_point": {"row": 81, "column": 34}}, {"id": 199, "type": "identifier", "text": "id", "parent": 197, "children": [], "start_point": {"row": 81, "column": 35}, "end_point": {"row": 81, "column": 37}}, {"id": 200, "type": "parameter_declaration", "text": "PGUI::Screen* screen", "parent": 196, "children": [201, 202, 204], "start_point": {"row": 81, "column": 39}, "end_point": {"row": 81, "column": 59}}, {"id": 201, "type": "type_identifier", "text": "PGUI", "parent": 200, "children": [], "start_point": {"row": 81, "column": 39}, "end_point": {"row": 81, "column": 43}}, {"id": 202, "type": "ERROR", "text": "::Screen", "parent": 200, "children": [203], "start_point": {"row": 81, "column": 43}, "end_point": {"row": 81, "column": 51}}, {"id": 203, "type": "identifier", "text": "Screen", "parent": 202, "children": [], "start_point": {"row": 81, "column": 45}, "end_point": {"row": 81, "column": 51}}, {"id": 204, "type": "pointer_declarator", "text": "* screen", "parent": 200, "children": [205, 206], "start_point": {"row": 81, "column": 51}, "end_point": {"row": 81, "column": 59}}, {"id": 205, "type": "*", "text": "*", "parent": 204, "children": [], "start_point": {"row": 81, "column": 51}, "end_point": {"row": 81, "column": 52}}, {"id": 206, "type": "identifier", "text": "screen", "parent": 204, "children": [], "start_point": {"row": 81, "column": 53}, "end_point": {"row": 81, "column": 59}}, {"id": 207, "type": "ERROR", "text": "bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void", "parent": 115, "children": [208, 209, 213, 214, 218, 219, 223, 224, 243, 244, 251, 252, 259, 260, 264, 265, 277, 278, 290, 291, 298, 299, 309, 310, 317, 318, 322, 323, 330, 331, 338], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 101, "column": 12}}, {"id": 208, "type": "primitive_type", "text": "bool", "parent": 207, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 12}}, {"id": 209, "type": "type_descriptor", "text": "ProcessStart()", "parent": 207, "children": [210, 211], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 27}}, {"id": 210, "type": "type_identifier", "text": "ProcessStart", "parent": 209, "children": [], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 25}}, {"id": 211, "type": "abstract_function_declarator", "text": "()", "parent": 209, "children": [212], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 27}}, {"id": 212, "type": "parameter_list", "text": "()", "parent": 211, "children": [], "start_point": {"row": 84, "column": 25}, "end_point": {"row": 84, "column": 27}}, {"id": 213, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 12}}, {"id": 214, "type": "type_descriptor", "text": "ProcessFinish()", "parent": 207, "children": [215, 216], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 28}}, {"id": 215, "type": "type_identifier", "text": "ProcessFinish", "parent": 214, "children": [], "start_point": {"row": 85, "column": 13}, "end_point": {"row": 85, "column": 26}}, {"id": 216, "type": "abstract_function_declarator", "text": "()", "parent": 214, "children": [217], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 28}}, {"id": 217, "type": "parameter_list", "text": "()", "parent": 216, "children": [], "start_point": {"row": 85, "column": 26}, "end_point": {"row": 85, "column": 28}}, {"id": 218, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 12}}, {"id": 219, "type": "type_descriptor", "text": "ProcessLoop()", "parent": 207, "children": [220, 221], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 26}}, {"id": 220, "type": "type_identifier", "text": "ProcessLoop", "parent": 219, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 24}}, {"id": 221, "type": "abstract_function_declarator", "text": "()", "parent": 219, "children": [222], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 26}}, {"id": 222, "type": "parameter_list", "text": "()", "parent": 221, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 26}}, {"id": 223, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 12}}, {"id": 224, "type": "type_descriptor", "text": "ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 )", "parent": 207, "children": [225, 226], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 81}}, {"id": 225, "type": "type_identifier", "text": "ProcessScreenChange", "parent": 224, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 32}}, {"id": 226, "type": "abstract_function_declarator", "text": "( bool show, int screen, int p0, int p1, int p2 )", "parent": 224, "children": [227], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 81}}, {"id": 227, "type": "parameter_list", "text": "( bool show, int screen, int p0, int p1, int p2 )", "parent": 226, "children": [228, 231, 234, 237, 240], "start_point": {"row": 87, "column": 32}, "end_point": {"row": 87, "column": 81}}, {"id": 228, "type": "parameter_declaration", "text": "bool show", "parent": 227, "children": [229, 230], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 43}}, {"id": 229, "type": "primitive_type", "text": "bool", "parent": 228, "children": [], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 38}}, {"id": 230, "type": "identifier", "text": "show", "parent": 228, "children": [], "start_point": {"row": 87, "column": 39}, "end_point": {"row": 87, "column": 43}}, {"id": 231, "type": "parameter_declaration", "text": "int screen", "parent": 227, "children": [232, 233], "start_point": {"row": 87, "column": 45}, "end_point": {"row": 87, "column": 55}}, {"id": 232, "type": "primitive_type", "text": "int", "parent": 231, "children": [], "start_point": {"row": 87, "column": 45}, "end_point": {"row": 87, "column": 48}}, {"id": 233, "type": "identifier", "text": "screen", "parent": 231, "children": [], "start_point": {"row": 87, "column": 49}, "end_point": {"row": 87, "column": 55}}, {"id": 234, "type": "parameter_declaration", "text": "int p0", "parent": 227, "children": [235, 236], "start_point": {"row": 87, "column": 57}, "end_point": {"row": 87, "column": 63}}, {"id": 235, "type": "primitive_type", "text": "int", "parent": 234, "children": [], "start_point": {"row": 87, "column": 57}, "end_point": {"row": 87, "column": 60}}, {"id": 236, "type": "identifier", "text": "p0", "parent": 234, "children": [], "start_point": {"row": 87, "column": 61}, "end_point": {"row": 87, "column": 63}}, {"id": 237, "type": "parameter_declaration", "text": "int p1", "parent": 227, "children": [238, 239], "start_point": {"row": 87, "column": 65}, "end_point": {"row": 87, "column": 71}}, {"id": 238, "type": "primitive_type", "text": "int", "parent": 237, "children": [], "start_point": {"row": 87, "column": 65}, "end_point": {"row": 87, "column": 68}}, {"id": 239, "type": "identifier", "text": "p1", "parent": 237, "children": [], "start_point": {"row": 87, "column": 69}, "end_point": {"row": 87, "column": 71}}, {"id": 240, "type": "parameter_declaration", "text": "int p2", "parent": 227, "children": [241, 242], "start_point": {"row": 87, "column": 73}, "end_point": {"row": 87, "column": 79}}, {"id": 241, "type": "primitive_type", "text": "int", "parent": 240, "children": [], "start_point": {"row": 87, "column": 73}, "end_point": {"row": 87, "column": 76}}, {"id": 242, "type": "identifier", "text": "p2", "parent": 240, "children": [], "start_point": {"row": 87, "column": 77}, "end_point": {"row": 87, "column": 79}}, {"id": 243, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 12}}, {"id": 244, "type": "type_descriptor", "text": "ProcessGetActiveScreens( ScriptArray& screens )", "parent": 207, "children": [245, 246], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 60}}, {"id": 245, "type": "type_identifier", "text": "ProcessGetActiveScreens", "parent": 244, "children": [], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 36}}, {"id": 246, "type": "abstract_function_declarator", "text": "( ScriptArray& screens )", "parent": 244, "children": [247], "start_point": {"row": 88, "column": 36}, "end_point": {"row": 88, "column": 60}}, {"id": 247, "type": "parameter_list", "text": "( ScriptArray& screens )", "parent": 246, "children": [248], "start_point": {"row": 88, "column": 36}, "end_point": {"row": 88, "column": 60}}, {"id": 248, "type": "parameter_declaration", "text": "ScriptArray& screens", "parent": 247, "children": [249, 250], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 58}}, {"id": 249, "type": "type_identifier", "text": "ScriptArray", "parent": 248, "children": [], "start_point": {"row": 88, "column": 38}, "end_point": {"row": 88, "column": 49}}, {"id": 250, "type": "identifier", "text": "screens", "parent": 248, "children": [], "start_point": {"row": 88, "column": 51}, "end_point": {"row": 88, "column": 58}}, {"id": 251, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 12}}, {"id": 252, "type": "type_descriptor", "text": "ProcessRenderInterface( uint layer )", "parent": 207, "children": [253, 254], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 49}}, {"id": 253, "type": "type_identifier", "text": "ProcessRenderInterface", "parent": 252, "children": [], "start_point": {"row": 89, "column": 13}, "end_point": {"row": 89, "column": 35}}, {"id": 254, "type": "abstract_function_declarator", "text": "( uint layer )", "parent": 252, "children": [255], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 49}}, {"id": 255, "type": "parameter_list", "text": "( uint layer )", "parent": 254, "children": [256], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 49}}, {"id": 256, "type": "parameter_declaration", "text": "uint layer", "parent": 255, "children": [257, 258], "start_point": {"row": 89, "column": 37}, "end_point": {"row": 89, "column": 47}}, {"id": 257, "type": "type_identifier", "text": "uint", "parent": 256, "children": [], "start_point": {"row": 89, "column": 37}, "end_point": {"row": 89, "column": 41}}, {"id": 258, "type": "identifier", "text": "layer", "parent": 256, "children": [], "start_point": {"row": 89, "column": 42}, "end_point": {"row": 89, "column": 47}}, {"id": 259, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 12}}, {"id": 260, "type": "type_descriptor", "text": "ProcessRenderMap()", "parent": 207, "children": [261, 262], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 31}}, {"id": 261, "type": "type_identifier", "text": "ProcessRenderMap", "parent": 260, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 29}}, {"id": 262, "type": "abstract_function_declarator", "text": "()", "parent": 260, "children": [263], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 31}}, {"id": 263, "type": "parameter_list", "text": "()", "parent": 262, "children": [], "start_point": {"row": 90, "column": 29}, "end_point": {"row": 90, "column": 31}}, {"id": 264, "type": "primitive_type", "text": "bool", "parent": 207, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 12}}, {"id": 265, "type": "type_descriptor", "text": "ProcessKeyDown( uint8 key, std::string& keyText )", "parent": 207, "children": [266, 267], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 62}}, {"id": 266, "type": "type_identifier", "text": "ProcessKeyDown", "parent": 265, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 27}}, {"id": 267, "type": "abstract_function_declarator", "text": "( uint8 key, std::string& keyText )", "parent": 265, "children": [268], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 62}}, {"id": 268, "type": "parameter_list", "text": "( uint8 key, std::string& keyText )", "parent": 267, "children": [269, 272], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 62}}, {"id": 269, "type": "parameter_declaration", "text": "uint8 key", "parent": 268, "children": [270, 271], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 38}}, {"id": 270, "type": "type_identifier", "text": "uint8", "parent": 269, "children": [], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 34}}, {"id": 271, "type": "identifier", "text": "key", "parent": 269, "children": [], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 38}}, {"id": 272, "type": "parameter_declaration", "text": "std::string& keyText", "parent": 268, "children": [273, 274, 276], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 60}}, {"id": 273, "type": "type_identifier", "text": "std", "parent": 272, "children": [], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 43}}, {"id": 274, "type": "ERROR", "text": "::string&", "parent": 272, "children": [275], "start_point": {"row": 91, "column": 43}, "end_point": {"row": 91, "column": 52}}, {"id": 275, "type": "identifier", "text": "string", "parent": 274, "children": [], "start_point": {"row": 91, "column": 45}, "end_point": {"row": 91, "column": 51}}, {"id": 276, "type": "identifier", "text": "keyText", "parent": 272, "children": [], "start_point": {"row": 91, "column": 53}, "end_point": {"row": 91, "column": 60}}, {"id": 277, "type": "primitive_type", "text": "bool", "parent": 207, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 12}}, {"id": 278, "type": "type_descriptor", "text": "ProcessKeyUp( uint8 key, std::string& keyText )", "parent": 207, "children": [279, 280], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 60}}, {"id": 279, "type": "type_identifier", "text": "ProcessKeyUp", "parent": 278, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 25}}, {"id": 280, "type": "abstract_function_declarator", "text": "( uint8 key, std::string& keyText )", "parent": 278, "children": [281], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 60}}, {"id": 281, "type": "parameter_list", "text": "( uint8 key, std::string& keyText )", "parent": 280, "children": [282, 285], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 60}}, {"id": 282, "type": "parameter_declaration", "text": "uint8 key", "parent": 281, "children": [283, 284], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 36}}, {"id": 283, "type": "type_identifier", "text": "uint8", "parent": 282, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 32}}, {"id": 284, "type": "identifier", "text": "key", "parent": 282, "children": [], "start_point": {"row": 92, "column": 33}, "end_point": {"row": 92, "column": 36}}, {"id": 285, "type": "parameter_declaration", "text": "std::string& keyText", "parent": 281, "children": [286, 287, 289], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 58}}, {"id": 286, "type": "type_identifier", "text": "std", "parent": 285, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 41}}, {"id": 287, "type": "ERROR", "text": "::string&", "parent": 285, "children": [288], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 50}}, {"id": 288, "type": "identifier", "text": "string", "parent": 287, "children": [], "start_point": {"row": 92, "column": 43}, "end_point": {"row": 92, "column": 49}}, {"id": 289, "type": "identifier", "text": "keyText", "parent": 285, "children": [], "start_point": {"row": 92, "column": 51}, "end_point": {"row": 92, "column": 58}}, {"id": 290, "type": "primitive_type", "text": "bool", "parent": 207, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 12}}, {"id": 291, "type": "type_descriptor", "text": "ProcessMouseDown( int click )", "parent": 207, "children": [292, 293], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 42}}, {"id": 292, "type": "type_identifier", "text": "ProcessMouseDown", "parent": 291, "children": [], "start_point": {"row": 93, "column": 13}, "end_point": {"row": 93, "column": 29}}, {"id": 293, "type": "abstract_function_declarator", "text": "( int click )", "parent": 291, "children": [294], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 42}}, {"id": 294, "type": "parameter_list", "text": "( int click )", "parent": 293, "children": [295], "start_point": {"row": 93, "column": 29}, "end_point": {"row": 93, "column": 42}}, {"id": 295, "type": "parameter_declaration", "text": "int click", "parent": 294, "children": [296, 297], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 40}}, {"id": 296, "type": "primitive_type", "text": "int", "parent": 295, "children": [], "start_point": {"row": 93, "column": 31}, "end_point": {"row": 93, "column": 34}}, {"id": 297, "type": "identifier", "text": "click", "parent": 295, "children": [], "start_point": {"row": 93, "column": 35}, "end_point": {"row": 93, "column": 40}}, {"id": 298, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 12}}, {"id": 299, "type": "type_descriptor", "text": "ProcessMouseMove( int x, int y )", "parent": 207, "children": [300, 301], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 45}}, {"id": 300, "type": "type_identifier", "text": "ProcessMouseMove", "parent": 299, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 29}}, {"id": 301, "type": "abstract_function_declarator", "text": "( int x, int y )", "parent": 299, "children": [302], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 45}}, {"id": 302, "type": "parameter_list", "text": "( int x, int y )", "parent": 301, "children": [303, 306], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 45}}, {"id": 303, "type": "parameter_declaration", "text": "int x", "parent": 302, "children": [304, 305], "start_point": {"row": 94, "column": 31}, "end_point": {"row": 94, "column": 36}}, {"id": 304, "type": "primitive_type", "text": "int", "parent": 303, "children": [], "start_point": {"row": 94, "column": 31}, "end_point": {"row": 94, "column": 34}}, {"id": 305, "type": "identifier", "text": "x", "parent": 303, "children": [], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 36}}, {"id": 306, "type": "parameter_declaration", "text": "int y", "parent": 302, "children": [307, 308], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 43}}, {"id": 307, "type": "primitive_type", "text": "int", "parent": 306, "children": [], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 41}}, {"id": 308, "type": "identifier", "text": "y", "parent": 306, "children": [], "start_point": {"row": 94, "column": 42}, "end_point": {"row": 94, "column": 43}}, {"id": 309, "type": "primitive_type", "text": "bool", "parent": 207, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 12}}, {"id": 310, "type": "type_descriptor", "text": "ProcessMouseUp( int click )", "parent": 207, "children": [311, 312], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 40}}, {"id": 311, "type": "type_identifier", "text": "ProcessMouseUp", "parent": 310, "children": [], "start_point": {"row": 95, "column": 13}, "end_point": {"row": 95, "column": 27}}, {"id": 312, "type": "abstract_function_declarator", "text": "( int click )", "parent": 310, "children": [313], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 40}}, {"id": 313, "type": "parameter_list", "text": "( int click )", "parent": 312, "children": [314], "start_point": {"row": 95, "column": 27}, "end_point": {"row": 95, "column": 40}}, {"id": 314, "type": "parameter_declaration", "text": "int click", "parent": 313, "children": [315, 316], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 38}}, {"id": 315, "type": "primitive_type", "text": "int", "parent": 314, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 32}}, {"id": 316, "type": "identifier", "text": "click", "parent": 314, "children": [], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 38}}, {"id": 317, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 12}}, {"id": 318, "type": "type_descriptor", "text": "ProcessInputLost()", "parent": 207, "children": [319, 320], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 31}}, {"id": 319, "type": "type_identifier", "text": "ProcessInputLost", "parent": 318, "children": [], "start_point": {"row": 96, "column": 13}, "end_point": {"row": 96, "column": 29}}, {"id": 320, "type": "abstract_function_declarator", "text": "()", "parent": 318, "children": [321], "start_point": {"row": 96, "column": 29}, "end_point": {"row": 96, "column": 31}}, {"id": 321, "type": "parameter_list", "text": "()", "parent": 320, "children": [], "start_point": {"row": 96, "column": 29}, "end_point": {"row": 96, "column": 31}}, {"id": 322, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 12}}, {"id": 323, "type": "type_descriptor", "text": "ProcessItemInvIn( Item& item )", "parent": 207, "children": [324, 325], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 43}}, {"id": 324, "type": "type_identifier", "text": "ProcessItemInvIn", "parent": 323, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 29}}, {"id": 325, "type": "abstract_function_declarator", "text": "( Item& item )", "parent": 323, "children": [326], "start_point": {"row": 98, "column": 29}, "end_point": {"row": 98, "column": 43}}, {"id": 326, "type": "parameter_list", "text": "( Item& item )", "parent": 325, "children": [327], "start_point": {"row": 98, "column": 29}, "end_point": {"row": 98, "column": 43}}, {"id": 327, "type": "parameter_declaration", "text": "Item& item", "parent": 326, "children": [328, 329], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 41}}, {"id": 328, "type": "type_identifier", "text": "Item", "parent": 327, "children": [], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 35}}, {"id": 329, "type": "identifier", "text": "item", "parent": 327, "children": [], "start_point": {"row": 98, "column": 37}, "end_point": {"row": 98, "column": 41}}, {"id": 330, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 12}}, {"id": 331, "type": "type_descriptor", "text": "ProcessItemInvOut( Item& item )", "parent": 207, "children": [332, 333], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 44}}, {"id": 332, "type": "type_identifier", "text": "ProcessItemInvOut", "parent": 331, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 30}}, {"id": 333, "type": "abstract_function_declarator", "text": "( Item& item )", "parent": 331, "children": [334], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 44}}, {"id": 334, "type": "parameter_list", "text": "( Item& item )", "parent": 333, "children": [335], "start_point": {"row": 99, "column": 30}, "end_point": {"row": 99, "column": 44}}, {"id": 335, "type": "parameter_declaration", "text": "Item& item", "parent": 334, "children": [336, 337], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 42}}, {"id": 336, "type": "type_identifier", "text": "Item", "parent": 335, "children": [], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 36}}, {"id": 337, "type": "identifier", "text": "item", "parent": 335, "children": [], "start_point": {"row": 99, "column": 38}, "end_point": {"row": 99, "column": 42}}, {"id": 338, "type": "primitive_type", "text": "void", "parent": 207, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 12}}, {"id": 339, "type": "type_descriptor", "text": "DrawTextBlocks()", "parent": 115, "children": [340, 341], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 29}}, {"id": 340, "type": "type_identifier", "text": "DrawTextBlocks", "parent": 339, "children": [], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 27}}, {"id": 341, "type": "abstract_function_declarator", "text": "()", "parent": 339, "children": [342], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 29}}, {"id": 342, "type": "parameter_list", "text": "()", "parent": 341, "children": [], "start_point": {"row": 101, "column": 27}, "end_point": {"row": 101, "column": 29}}, {"id": 343, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 6}}]}, "node_categories": {"declarations": {"functions": [42, 49, 52, 61, 170, 175, 180, 195, 211, 216, 221, 226, 246, 254, 262, 267, 280, 293, 301, 312, 320, 325, 333, 341], "variables": [45, 47, 55, 57, 59, 67, 72, 75, 78, 81, 94, 97, 100, 103, 143, 146, 182, 185, 197, 200, 228, 231, 234, 237, 240, 248, 256, 269, 272, 282, 285, 295, 303, 306, 314, 327, 335], "classes": [65, 91, 92, 140, 141], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 20, 24, 28, 32, 36, 40, 43, 44, 46, 48, 50, 51, 53, 54, 56, 58, 60, 62, 66, 68, 70, 71, 73, 74, 76, 77, 79, 80, 83, 84, 86, 87, 88, 90, 93, 95, 96, 98, 99, 101, 102, 104, 106, 108, 110, 111, 114, 116, 118, 121, 124, 128, 129, 133, 134, 135, 139, 142, 145, 148, 149, 150, 152, 154, 157, 159, 160, 163, 164, 165, 167, 169, 174, 179, 183, 184, 186, 188, 191, 194, 198, 199, 201, 203, 206, 210, 215, 220, 225, 230, 233, 236, 239, 242, 245, 249, 250, 253, 257, 258, 261, 266, 270, 271, 273, 275, 276, 279, 283, 284, 286, 288, 289, 292, 297, 300, 305, 308, 311, 316, 319, 324, 328, 329, 332, 336, 337, 340, 343], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 120, 123, 126], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [109]}}, "cross_language_map": {"function_declarations": [{"node_id": 42, "universal_type": "function", "name": "Core;", "text_snippet": "namespace PGUI\n{\n class Core;\n class Screen;\n}"}, {"node_id": 49, "universal_type": "function", "name": "Login;", "text_snippet": "namespace FOC\n{\n namespace Screen\n {\n class Login;\n class Game;\n class Mi"}, {"node_id": 52, "universal_type": "function", "name": "Login;", "text_snippet": "namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n }"}, {"node_id": 61, "universal_type": "function", "name": "InterfaceManager", "text_snippet": "class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;"}, {"node_id": 170, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "( uint id, PGUI::Screen* screen )"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "( uint id, PGUI::Screen* screen )"}, {"node_id": 211, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 216, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 221, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 226, "universal_type": "function", "name": "show,", "text_snippet": "( bool show, int screen, int p0, int p1, int p2 )"}, {"node_id": 246, "universal_type": "function", "name": "unknown", "text_snippet": "( ScriptArray& screens )"}, {"node_id": 254, "universal_type": "function", "name": "unknown", "text_snippet": "( uint layer )"}, {"node_id": 262, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 267, "universal_type": "function", "name": "unknown", "text_snippet": "( uint8 key, std::string& keyText )"}, {"node_id": 280, "universal_type": "function", "name": "unknown", "text_snippet": "( uint8 key, std::string& keyText )"}, {"node_id": 293, "universal_type": "function", "name": "click", "text_snippet": "( int click )"}, {"node_id": 301, "universal_type": "function", "name": "x,", "text_snippet": "( int x, int y )"}, {"node_id": 312, "universal_type": "function", "name": "click", "text_snippet": "( int click )"}, {"node_id": 320, "universal_type": "function", "name": "unknown", "text_snippet": "()"}, {"node_id": 325, "universal_type": "function", "name": "unknown", "text_snippet": "( Item& item )"}, {"node_id": 333, "universal_type": "function", "name": "unknown", "text_snippet": "( Item& item )"}, {"node_id": 341, "universal_type": "function", "name": "unknown", "text_snippet": "()"}], "class_declarations": [{"node_id": 65, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 91, "universal_type": "class", "name": "TextBlock", "text_snippet": "struct TextBlock\n {\n uint StartX;\n uint "}, {"node_id": 92, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 140, "universal_type": "class", "name": "MouseData", "text_snippet": "struct MouseData\n {\n int LastX;\n int LastY;\n }"}, {"node_id": 141, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <Addons/scriptarray.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <Defines.Public.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <Item.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <Types.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "#ifndef __CLIENT_INTERFACE__\n#define __CLIENT_INTERFACE__\n\n#include <Addons/scriptarray.h>\n#include <Defines.Public.h>\n#include <Item.h>\n#include <Types.h>\n\n#define TB_DEBUG \"Debug\"\n#define TI_FPS \"00:FPS\"\n#define TI_SCREENS \"01:Engine\"\n#define TI_SCREENZ \"02:PGUI\"\n#define TI_COORD \"03:Coords\"\n#define TI_FIELD \"04:Field\"\n\nnamespace PGUI\n{\n class Core;\n class Screen;\n};\n\nnamespace FOC\n{\n namespace Screen\n {\n class Login;\n class Game;\n class MiniMap;\n };\n\n class InterfaceManager\n {\npublic:\n struct TextInfo\n {\n std::string Text;\n uint8 Font;\n uint Color;\n uint Flags;\n\n bool ShowName;\n\n TextInfo() :\n Text( \"\" ), Font( FONT_TYPE_DEFAULT ), Color( 0 ), Flags( FONT_FLAG_BORDERED ),\n ShowName( true )\n {}\n };\n\n struct TextBlock\n {\n uint StartX;\n uint StartY;\n uint SpacingY;\n\n std::map<std::string, TextInfo> Map;\n\n TextBlock() : StartX( 0 ), StartY( 0 ), SpacingY( 2 ) {}\n };\n\nprivate:\n std::set<int> CustomScreens;\n std::set<int> EngineScreens;\n\n\n struct MouseData\n {\n int LastX;\n int LastY;\n };\n\n MouseData Mouse;\npublic:\n PGUI::Core* UI;\n\n std::map<std::string, TextBlock> TextBlocks;\n\npublic:\n InterfaceManager();\n ~InterfaceManager();\n\n void UI_ScreenAdd( uint id, PGUI::Screen* screen );\n void UI_ScreenRemove( uint id, PGUI::Screen* screen );\n\n // reserved functions processing\n bool ProcessStart();\n void ProcessFinish();\n void ProcessLoop();\n void ProcessScreenChange( bool show, int screen, int p0, int p1, int p2 );\n void ProcessGetActiveScreens( ScriptArray& screens );\n void ProcessRenderInterface( uint layer );\n void ProcessRenderMap();\n bool ProcessKeyDown( uint8 key, std::string& keyText );\n bool ProcessKeyUp( uint8 key, std::string& keyText );\n bool ProcessMouseDown( int click );\n void ProcessMouseMove( int x, int y );\n bool ProcessMouseUp( int click );\n void ProcessInputLost();\n\n void ProcessItemInvIn( Item& item );\n void ProcessItemInvOut( Item& item );\n\n void DrawTextBlocks();\n };\n};\n\n#endif // __CLIENT_INTERFACE__ //\n"}
80,330
c
#ifndef INFORMATION_PANEL_H #define INFORMATION_PANEL_H #include "PanelForm.h" #include "Settings.h" #include "DrawUtil.h" class CInformationPanel : public CPanelForm::CPage, public CSettingsBase { public: class ABSTRACT_CLASS(CEventHandler) { public: virtual ~CEventHandler() {} virtual bool OnProgramInfoUpdate(bool fNext) { return false; } }; enum { ITEM_VIDEO, ITEM_DECODER, ITEM_VIDEORENDERER, ITEM_AUDIODEVICE, ITEM_SIGNALLEVEL, ITEM_MEDIABITRATE, ITEM_ERROR, ITEM_RECORD, ITEM_PROGRAMINFO, NUM_ITEMS, }; private: static const LPCTSTR m_pszClassName; static HINSTANCE m_hinst; HWND m_hwndProgramInfo; WNDPROC m_pOldProgramInfoProc; HWND m_hwndProgramInfoPrev; HWND m_hwndProgramInfoNext; CEventHandler *m_pEventHandler; COLORREF m_crBackColor; COLORREF m_crTextColor; COLORREF m_crProgramInfoBackColor; COLORREF m_crProgramInfoTextColor; DrawUtil::CBrush m_BackBrush; DrawUtil::CBrush m_ProgramInfoBackBrush; DrawUtil::CFont m_Font; int m_FontHeight; int m_LineMargin; DrawUtil::COffscreen m_Offscreen; unsigned int m_ItemVisibility; int m_OriginalVideoWidth; int m_OriginalVideoHeight; int m_DisplayVideoWidth; int m_DisplayVideoHeight; int m_AspectX; int m_AspectY; CDynamicString m_VideoDecoderName; CDynamicString m_VideoRendererName; CDynamicString m_AudioDeviceName; bool m_fSignalLevel; float m_SignalLevel; DWORD m_BitRate; DWORD m_VideoBitRate; DWORD m_AudioBitRate; bool m_fRecording; ULONGLONG m_RecordWroteSize; unsigned int m_RecordTime; ULONGLONG m_DiskFreeSpace; CDynamicString m_ProgramInfo; bool m_fNextProgramInfo; static const LPCTSTR m_pszItemNameList[]; static LRESULT CALLBACK ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam); void GetItemRect(int Item,RECT *pRect) const; void UpdateItem(int Item); void CalcFontHeight(); void Draw(HDC hdc,const RECT &PaintRect); bool GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const; void DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect); // CCustomWindow LRESULT OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override; public: static bool Initialize(HINSTANCE hinst); CInformationPanel(); ~CInformationPanel(); // CBasicWindow bool Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0,int ID=0) override; // CSettingsBase bool ReadSettings(CSettings &Settings) override; bool WriteSettings(CSettings &Settings) override; // CInformationPanel void ResetStatistics(); bool IsVisible() const; void SetColor(COLORREF crBackColor,COLORREF crTextColor); void SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor); bool SetFont(const LOGFONT *pFont); bool SetItemVisible(int Item,bool fVisible); bool IsItemVisible(int Item) const; void SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight); void SetAspectRatio(int AspectX,int AspectY); void SetVideoDecoderName(LPCTSTR pszName); void SetVideoRendererName(LPCTSTR pszName); void SetAudioDeviceName(LPCTSTR pszName); void SetSignalLevel(float Level); void ShowSignalLevel(bool fShow); bool IsSignalLevelEnabled() const { return m_fSignalLevel; } void SetBitRate(DWORD BitRate); void SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate); void UpdateErrorCount(); void SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL, ULONGLONG WroteSize=0,unsigned int RecordTime=0, ULONGLONG FreeSpace=0); void SetProgramInfo(LPCTSTR pszInfo); bool GetProgramInfoNext() const { return m_fNextProgramInfo; } bool SetEventHandler(CEventHandler *pHandler); }; #endif
30.66
113
(translation_unit) "#ifndef INFORMATION_PANEL_H\n#define INFORMATION_PANEL_H\n\n\n#include "PanelForm.h"\n#include "Settings.h"\n#include "DrawUtil.h"\n\n\nclass CInformationPanel : public CPanelForm::CPage, public CSettingsBase\n{\npublic:\n class ABSTRACT_CLASS(CEventHandler) {\n public:\n virtual ~CEventHandler() {}\n virtual bool OnProgramInfoUpdate(bool fNext) { return false; }\n };\n\n enum {\n ITEM_VIDEO,\n ITEM_DECODER,\n ITEM_VIDEORENDERER,\n ITEM_AUDIODEVICE,\n ITEM_SIGNALLEVEL,\n ITEM_MEDIABITRATE,\n ITEM_ERROR,\n ITEM_RECORD,\n ITEM_PROGRAMINFO,\n NUM_ITEMS,\n };\n\nprivate:\n static const LPCTSTR m_pszClassName;\n static HINSTANCE m_hinst;\n\n HWND m_hwndProgramInfo;\n WNDPROC m_pOldProgramInfoProc;\n HWND m_hwndProgramInfoPrev;\n HWND m_hwndProgramInfoNext;\n CEventHandler *m_pEventHandler;\n\n COLORREF m_crBackColor;\n COLORREF m_crTextColor;\n COLORREF m_crProgramInfoBackColor;\n COLORREF m_crProgramInfoTextColor;\n DrawUtil::CBrush m_BackBrush;\n DrawUtil::CBrush m_ProgramInfoBackBrush;\n DrawUtil::CFont m_Font;\n int m_FontHeight;\n int m_LineMargin;\n DrawUtil::COffscreen m_Offscreen;\n unsigned int m_ItemVisibility;\n\n int m_OriginalVideoWidth;\n int m_OriginalVideoHeight;\n int m_DisplayVideoWidth;\n int m_DisplayVideoHeight;\n int m_AspectX;\n int m_AspectY;\n CDynamicString m_VideoDecoderName;\n CDynamicString m_VideoRendererName;\n CDynamicString m_AudioDeviceName;\n bool m_fSignalLevel;\n float m_SignalLevel;\n DWORD m_BitRate;\n DWORD m_VideoBitRate;\n DWORD m_AudioBitRate;\n bool m_fRecording;\n ULONGLONG m_RecordWroteSize;\n unsigned int m_RecordTime;\n ULONGLONG m_DiskFreeSpace;\n CDynamicString m_ProgramInfo;\n bool m_fNextProgramInfo;\n\n static const LPCTSTR m_pszItemNameList[];\n\n static LRESULT CALLBACK ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);\n void GetItemRect(int Item,RECT *pRect) const;\n void UpdateItem(int Item);\n void CalcFontHeight();\n void Draw(HDC hdc,const RECT &PaintRect);\n bool GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const;\n void DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect);\n// CCustomWindow\n LRESULT OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override;\n\npublic:\n static bool Initialize(HINSTANCE hinst);\n\n CInformationPanel();\n ~CInformationPanel();\n// CBasicWindow\n bool Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0,int ID=0) override;\n// CSettingsBase\n bool ReadSettings(CSettings &Settings) override;\n bool WriteSettings(CSettings &Settings) override;\n// CInformationPanel\n void ResetStatistics();\n bool IsVisible() const;\n void SetColor(COLORREF crBackColor,COLORREF crTextColor);\n void SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);\n bool SetFont(const LOGFONT *pFont);\n bool SetItemVisible(int Item,bool fVisible);\n bool IsItemVisible(int Item) const;\n void SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);\n void SetAspectRatio(int AspectX,int AspectY);\n void SetVideoDecoderName(LPCTSTR pszName);\n void SetVideoRendererName(LPCTSTR pszName);\n void SetAudioDeviceName(LPCTSTR pszName);\n void SetSignalLevel(float Level);\n void ShowSignalLevel(bool fShow);\n bool IsSignalLevelEnabled() const { return m_fSignalLevel; }\n void SetBitRate(DWORD BitRate);\n void SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate);\n void UpdateErrorCount();\n void SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL,\n ULONGLONG WroteSize=0,unsigned int RecordTime=0,\n ULONGLONG FreeSpace=0);\n void SetProgramInfo(LPCTSTR pszInfo);\n bool GetProgramInfoNext() const { return m_fNextProgramInfo; }\n bool SetEventHandler(CEventHandler *pHandler);\n};\n\n\n#endif\n" (preproc_ifdef) "#ifndef INFORMATION_PANEL_H\n#define INFORMATION_PANEL_H\n\n\n#include "PanelForm.h"\n#include "Settings.h"\n#include "DrawUtil.h"\n\n\nclass CInformationPanel : public CPanelForm::CPage, public CSettingsBase\n{\npublic:\n class ABSTRACT_CLASS(CEventHandler) {\n public:\n virtual ~CEventHandler() {}\n virtual bool OnProgramInfoUpdate(bool fNext) { return false; }\n };\n\n enum {\n ITEM_VIDEO,\n ITEM_DECODER,\n ITEM_VIDEORENDERER,\n ITEM_AUDIODEVICE,\n ITEM_SIGNALLEVEL,\n ITEM_MEDIABITRATE,\n ITEM_ERROR,\n ITEM_RECORD,\n ITEM_PROGRAMINFO,\n NUM_ITEMS,\n };\n\nprivate:\n static const LPCTSTR m_pszClassName;\n static HINSTANCE m_hinst;\n\n HWND m_hwndProgramInfo;\n WNDPROC m_pOldProgramInfoProc;\n HWND m_hwndProgramInfoPrev;\n HWND m_hwndProgramInfoNext;\n CEventHandler *m_pEventHandler;\n\n COLORREF m_crBackColor;\n COLORREF m_crTextColor;\n COLORREF m_crProgramInfoBackColor;\n COLORREF m_crProgramInfoTextColor;\n DrawUtil::CBrush m_BackBrush;\n DrawUtil::CBrush m_ProgramInfoBackBrush;\n DrawUtil::CFont m_Font;\n int m_FontHeight;\n int m_LineMargin;\n DrawUtil::COffscreen m_Offscreen;\n unsigned int m_ItemVisibility;\n\n int m_OriginalVideoWidth;\n int m_OriginalVideoHeight;\n int m_DisplayVideoWidth;\n int m_DisplayVideoHeight;\n int m_AspectX;\n int m_AspectY;\n CDynamicString m_VideoDecoderName;\n CDynamicString m_VideoRendererName;\n CDynamicString m_AudioDeviceName;\n bool m_fSignalLevel;\n float m_SignalLevel;\n DWORD m_BitRate;\n DWORD m_VideoBitRate;\n DWORD m_AudioBitRate;\n bool m_fRecording;\n ULONGLONG m_RecordWroteSize;\n unsigned int m_RecordTime;\n ULONGLONG m_DiskFreeSpace;\n CDynamicString m_ProgramInfo;\n bool m_fNextProgramInfo;\n\n static const LPCTSTR m_pszItemNameList[];\n\n static LRESULT CALLBACK ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);\n void GetItemRect(int Item,RECT *pRect) const;\n void UpdateItem(int Item);\n void CalcFontHeight();\n void Draw(HDC hdc,const RECT &PaintRect);\n bool GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const;\n void DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect);\n// CCustomWindow\n LRESULT OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override;\n\npublic:\n static bool Initialize(HINSTANCE hinst);\n\n CInformationPanel();\n ~CInformationPanel();\n// CBasicWindow\n bool Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0,int ID=0) override;\n// CSettingsBase\n bool ReadSettings(CSettings &Settings) override;\n bool WriteSettings(CSettings &Settings) override;\n// CInformationPanel\n void ResetStatistics();\n bool IsVisible() const;\n void SetColor(COLORREF crBackColor,COLORREF crTextColor);\n void SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);\n bool SetFont(const LOGFONT *pFont);\n bool SetItemVisible(int Item,bool fVisible);\n bool IsItemVisible(int Item) const;\n void SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);\n void SetAspectRatio(int AspectX,int AspectY);\n void SetVideoDecoderName(LPCTSTR pszName);\n void SetVideoRendererName(LPCTSTR pszName);\n void SetAudioDeviceName(LPCTSTR pszName);\n void SetSignalLevel(float Level);\n void ShowSignalLevel(bool fShow);\n bool IsSignalLevelEnabled() const { return m_fSignalLevel; }\n void SetBitRate(DWORD BitRate);\n void SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate);\n void UpdateErrorCount();\n void SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL,\n ULONGLONG WroteSize=0,unsigned int RecordTime=0,\n ULONGLONG FreeSpace=0);\n void SetProgramInfo(LPCTSTR pszInfo);\n bool GetProgramInfoNext() const { return m_fNextProgramInfo; }\n bool SetEventHandler(CEventHandler *pHandler);\n};\n\n\n#endif" (#ifndef) "#ifndef" (identifier) "INFORMATION_PANEL_H" (preproc_def) "#define INFORMATION_PANEL_H\n" (#define) "#define" (identifier) "INFORMATION_PANEL_H" (preproc_include) "#include "PanelForm.h"\n" (#include) "#include" (string_literal) ""PanelForm.h"" (") """ (string_content) "PanelForm.h" (") """ (preproc_include) "#include "Settings.h"\n" (#include) "#include" (string_literal) ""Settings.h"" (") """ (string_content) "Settings.h" (") """ (preproc_include) "#include "DrawUtil.h"\n" (#include) "#include" (string_literal) ""DrawUtil.h"" (") """ (string_content) "DrawUtil.h" (") """ (ERROR) "class CInformationPanel : public CPanelForm::CPage, public CSettingsBase" (type_identifier) "class" (identifier) "CInformationPanel" (ERROR) ": public CPanelForm::CPage" (:) ":" (identifier) "public" (identifier) "CPanelForm" (:) ":" (:) ":" (identifier) "CPage" (,) "," (identifier) "public" (identifier) "CSettingsBase" (compound_statement) "{\npublic:\n class ABSTRACT_CLASS(CEventHandler) {\n public:\n virtual ~CEventHandler() {}\n virtual bool OnProgramInfoUpdate(bool fNext) { return false; }\n };\n\n enum {\n ITEM_VIDEO,\n ITEM_DECODER,\n ITEM_VIDEORENDERER,\n ITEM_AUDIODEVICE,\n ITEM_SIGNALLEVEL,\n ITEM_MEDIABITRATE,\n ITEM_ERROR,\n ITEM_RECORD,\n ITEM_PROGRAMINFO,\n NUM_ITEMS,\n };\n\nprivate:\n static const LPCTSTR m_pszClassName;\n static HINSTANCE m_hinst;\n\n HWND m_hwndProgramInfo;\n WNDPROC m_pOldProgramInfoProc;\n HWND m_hwndProgramInfoPrev;\n HWND m_hwndProgramInfoNext;\n CEventHandler *m_pEventHandler;\n\n COLORREF m_crBackColor;\n COLORREF m_crTextColor;\n COLORREF m_crProgramInfoBackColor;\n COLORREF m_crProgramInfoTextColor;\n DrawUtil::CBrush m_BackBrush;\n DrawUtil::CBrush m_ProgramInfoBackBrush;\n DrawUtil::CFont m_Font;\n int m_FontHeight;\n int m_LineMargin;\n DrawUtil::COffscreen m_Offscreen;\n unsigned int m_ItemVisibility;\n\n int m_OriginalVideoWidth;\n int m_OriginalVideoHeight;\n int m_DisplayVideoWidth;\n int m_DisplayVideoHeight;\n int m_AspectX;\n int m_AspectY;\n CDynamicString m_VideoDecoderName;\n CDynamicString m_VideoRendererName;\n CDynamicString m_AudioDeviceName;\n bool m_fSignalLevel;\n float m_SignalLevel;\n DWORD m_BitRate;\n DWORD m_VideoBitRate;\n DWORD m_AudioBitRate;\n bool m_fRecording;\n ULONGLONG m_RecordWroteSize;\n unsigned int m_RecordTime;\n ULONGLONG m_DiskFreeSpace;\n CDynamicString m_ProgramInfo;\n bool m_fNextProgramInfo;\n\n static const LPCTSTR m_pszItemNameList[];\n\n static LRESULT CALLBACK ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);\n void GetItemRect(int Item,RECT *pRect) const;\n void UpdateItem(int Item);\n void CalcFontHeight();\n void Draw(HDC hdc,const RECT &PaintRect);\n bool GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const;\n void DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect);\n// CCustomWindow\n LRESULT OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override;\n\npublic:\n static bool Initialize(HINSTANCE hinst);\n\n CInformationPanel();\n ~CInformationPanel();\n// CBasicWindow\n bool Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0,int ID=0) override;\n// CSettingsBase\n bool ReadSettings(CSettings &Settings) override;\n bool WriteSettings(CSettings &Settings) override;\n// CInformationPanel\n void ResetStatistics();\n bool IsVisible() const;\n void SetColor(COLORREF crBackColor,COLORREF crTextColor);\n void SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);\n bool SetFont(const LOGFONT *pFont);\n bool SetItemVisible(int Item,bool fVisible);\n bool IsItemVisible(int Item) const;\n void SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);\n void SetAspectRatio(int AspectX,int AspectY);\n void SetVideoDecoderName(LPCTSTR pszName);\n void SetVideoRendererName(LPCTSTR pszName);\n void SetAudioDeviceName(LPCTSTR pszName);\n void SetSignalLevel(float Level);\n void ShowSignalLevel(bool fShow);\n bool IsSignalLevelEnabled() const { return m_fSignalLevel; }\n void SetBitRate(DWORD BitRate);\n void SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate);\n void UpdateErrorCount();\n void SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL,\n ULONGLONG WroteSize=0,unsigned int RecordTime=0,\n ULONGLONG FreeSpace=0);\n void SetProgramInfo(LPCTSTR pszInfo);\n bool GetProgramInfoNext() const { return m_fNextProgramInfo; }\n bool SetEventHandler(CEventHandler *pHandler);\n}" ({) "{" (labeled_statement) "public:\n class ABSTRACT_CLASS(CEventHandler) {\n public:\n virtual ~CEventHandler() {}\n virtual bool OnProgramInfoUpdate(bool fNext) { return false; }\n }" (statement_identifier) "public" (:) ":" (ERROR) "class ABSTRACT_CLASS(CEventHandler)" (type_identifier) "class" (function_declarator) "ABSTRACT_CLASS(CEventHandler)" (identifier) "ABSTRACT_CLASS" (parameter_list) "(CEventHandler)" (() "(" (parameter_declaration) "CEventHandler" (type_identifier) "CEventHandler" ()) ")" (compound_statement) "{\n public:\n virtual ~CEventHandler() {}\n virtual bool OnProgramInfoUpdate(bool fNext) { return false; }\n }" ({) "{" (labeled_statement) "public:\n virtual ~CEventHandler() {}\n virtual bool OnProgramInfoUpdate(bool fNext) { return false; }" (statement_identifier) "public" (:) ":" (ERROR) "virtual ~CEventHandler() {}\n virtual bool OnProgramInfoUpdate(bool fNext)" (type_identifier) "virtual" (ERROR) "~CEventHandler() {}\n virtual bool" (~) "~" (function_declarator) "CEventHandler()" (identifier) "CEventHandler" (parameter_list) "()" (() "(" ()) ")" ({) "{" (}) "}" (identifier) "virtual" (identifier) "bool" (function_declarator) "OnProgramInfoUpdate(bool fNext)" (identifier) "OnProgramInfoUpdate" (parameter_list) "(bool fNext)" (() "(" (parameter_declaration) "bool fNext" (primitive_type) "bool" (identifier) "fNext" ()) ")" (compound_statement) "{ return false; }" ({) "{" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (enum_specifier) "enum {\n ITEM_VIDEO,\n ITEM_DECODER,\n ITEM_VIDEORENDERER,\n ITEM_AUDIODEVICE,\n ITEM_SIGNALLEVEL,\n ITEM_MEDIABITRATE,\n ITEM_ERROR,\n ITEM_RECORD,\n ITEM_PROGRAMINFO,\n NUM_ITEMS,\n }" (enum) "enum" (enumerator_list) "{\n ITEM_VIDEO,\n ITEM_DECODER,\n ITEM_VIDEORENDERER,\n ITEM_AUDIODEVICE,\n ITEM_SIGNALLEVEL,\n ITEM_MEDIABITRATE,\n ITEM_ERROR,\n ITEM_RECORD,\n ITEM_PROGRAMINFO,\n NUM_ITEMS,\n }" ({) "{" (enumerator) "ITEM_VIDEO" (identifier) "ITEM_VIDEO" (,) "," (enumerator) "ITEM_DECODER" (identifier) "ITEM_DECODER" (,) "," (enumerator) "ITEM_VIDEORENDERER" (identifier) "ITEM_VIDEORENDERER" (,) "," (enumerator) "ITEM_AUDIODEVICE" (identifier) "ITEM_AUDIODEVICE" (,) "," (enumerator) "ITEM_SIGNALLEVEL" (identifier) "ITEM_SIGNALLEVEL" (,) "," (enumerator) "ITEM_MEDIABITRATE" (identifier) "ITEM_MEDIABITRATE" (,) "," (enumerator) "ITEM_ERROR" (identifier) "ITEM_ERROR" (,) "," (enumerator) "ITEM_RECORD" (identifier) "ITEM_RECORD" (,) "," (enumerator) "ITEM_PROGRAMINFO" (identifier) "ITEM_PROGRAMINFO" (,) "," (enumerator) "NUM_ITEMS" (identifier) "NUM_ITEMS" (,) "," (}) "}" (;) ";" (labeled_statement) "private:\n static const LPCTSTR m_pszClassName;" (statement_identifier) "private" (:) ":" (declaration) "static const LPCTSTR m_pszClassName;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "LPCTSTR" (identifier) "m_pszClassName" (;) ";" (declaration) "static HINSTANCE m_hinst;" (storage_class_specifier) "static" (static) "static" (type_identifier) "HINSTANCE" (identifier) "m_hinst" (;) ";" (declaration) "HWND m_hwndProgramInfo;" (type_identifier) "HWND" (identifier) "m_hwndProgramInfo" (;) ";" (declaration) "WNDPROC m_pOldProgramInfoProc;" (type_identifier) "WNDPROC" (identifier) "m_pOldProgramInfoProc" (;) ";" (declaration) "HWND m_hwndProgramInfoPrev;" (type_identifier) "HWND" (identifier) "m_hwndProgramInfoPrev" (;) ";" (declaration) "HWND m_hwndProgramInfoNext;" (type_identifier) "HWND" (identifier) "m_hwndProgramInfoNext" (;) ";" (declaration) "CEventHandler *m_pEventHandler;" (type_identifier) "CEventHandler" (pointer_declarator) "*m_pEventHandler" (*) "*" (identifier) "m_pEventHandler" (;) ";" (declaration) "COLORREF m_crBackColor;" (type_identifier) "COLORREF" (identifier) "m_crBackColor" (;) ";" (declaration) "COLORREF m_crTextColor;" (type_identifier) "COLORREF" (identifier) "m_crTextColor" (;) ";" (declaration) "COLORREF m_crProgramInfoBackColor;" (type_identifier) "COLORREF" (identifier) "m_crProgramInfoBackColor" (;) ";" (declaration) "COLORREF m_crProgramInfoTextColor;" (type_identifier) "COLORREF" (identifier) "m_crProgramInfoTextColor" (;) ";" (labeled_statement) "DrawUtil::CBrush m_BackBrush;" (statement_identifier) "DrawUtil" (:) ":" (ERROR) ":" (:) ":" (declaration) "CBrush m_BackBrush;" (type_identifier) "CBrush" (identifier) "m_BackBrush" (;) ";" (labeled_statement) "DrawUtil::CBrush m_ProgramInfoBackBrush;" (statement_identifier) "DrawUtil" (:) ":" (ERROR) ":" (:) ":" (declaration) "CBrush m_ProgramInfoBackBrush;" (type_identifier) "CBrush" (identifier) "m_ProgramInfoBackBrush" (;) ";" (labeled_statement) "DrawUtil::CFont m_Font;" (statement_identifier) "DrawUtil" (:) ":" (ERROR) ":" (:) ":" (declaration) "CFont m_Font;" (type_identifier) "CFont" (identifier) "m_Font" (;) ";" (declaration) "int m_FontHeight;" (primitive_type) "int" (identifier) "m_FontHeight" (;) ";" (declaration) "int m_LineMargin;" (primitive_type) "int" (identifier) "m_LineMargin" (;) ";" (labeled_statement) "DrawUtil::COffscreen m_Offscreen;" (statement_identifier) "DrawUtil" (:) ":" (ERROR) ":" (:) ":" (declaration) "COffscreen m_Offscreen;" (type_identifier) "COffscreen" (identifier) "m_Offscreen" (;) ";" (declaration) "unsigned int m_ItemVisibility;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "m_ItemVisibility" (;) ";" (declaration) "int m_OriginalVideoWidth;" (primitive_type) "int" (identifier) "m_OriginalVideoWidth" (;) ";" (declaration) "int m_OriginalVideoHeight;" (primitive_type) "int" (identifier) "m_OriginalVideoHeight" (;) ";" (declaration) "int m_DisplayVideoWidth;" (primitive_type) "int" (identifier) "m_DisplayVideoWidth" (;) ";" (declaration) "int m_DisplayVideoHeight;" (primitive_type) "int" (identifier) "m_DisplayVideoHeight" (;) ";" (declaration) "int m_AspectX;" (primitive_type) "int" (identifier) "m_AspectX" (;) ";" (declaration) "int m_AspectY;" (primitive_type) "int" (identifier) "m_AspectY" (;) ";" (declaration) "CDynamicString m_VideoDecoderName;" (type_identifier) "CDynamicString" (identifier) "m_VideoDecoderName" (;) ";" (declaration) "CDynamicString m_VideoRendererName;" (type_identifier) "CDynamicString" (identifier) "m_VideoRendererName" (;) ";" (declaration) "CDynamicString m_AudioDeviceName;" (type_identifier) "CDynamicString" (identifier) "m_AudioDeviceName" (;) ";" (declaration) "bool m_fSignalLevel;" (primitive_type) "bool" (identifier) "m_fSignalLevel" (;) ";" (declaration) "float m_SignalLevel;" (primitive_type) "float" (identifier) "m_SignalLevel" (;) ";" (declaration) "DWORD m_BitRate;" (type_identifier) "DWORD" (identifier) "m_BitRate" (;) ";" (declaration) "DWORD m_VideoBitRate;" (type_identifier) "DWORD" (identifier) "m_VideoBitRate" (;) ";" (declaration) "DWORD m_AudioBitRate;" (type_identifier) "DWORD" (identifier) "m_AudioBitRate" (;) ";" (declaration) "bool m_fRecording;" (primitive_type) "bool" (identifier) "m_fRecording" (;) ";" (declaration) "ULONGLONG m_RecordWroteSize;" (type_identifier) "ULONGLONG" (identifier) "m_RecordWroteSize" (;) ";" (declaration) "unsigned int m_RecordTime;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "m_RecordTime" (;) ";" (declaration) "ULONGLONG m_DiskFreeSpace;" (type_identifier) "ULONGLONG" (identifier) "m_DiskFreeSpace" (;) ";" (declaration) "CDynamicString m_ProgramInfo;" (type_identifier) "CDynamicString" (identifier) "m_ProgramInfo" (;) ";" (declaration) "bool m_fNextProgramInfo;" (primitive_type) "bool" (identifier) "m_fNextProgramInfo" (;) ";" (declaration) "static const LPCTSTR m_pszItemNameList[];" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "LPCTSTR" (array_declarator) "m_pszItemNameList[]" (identifier) "m_pszItemNameList" ([) "[" (]) "]" (;) ";" (declaration) "static LRESULT CALLBACK ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);" (storage_class_specifier) "static" (static) "static" (type_identifier) "LRESULT" (ERROR) "CALLBACK" (identifier) "CALLBACK" (function_declarator) "ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)" (identifier) "ProgramInfoHookProc" (parameter_list) "(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)" (() "(" (parameter_declaration) "HWND hwnd" (type_identifier) "HWND" (identifier) "hwnd" (,) "," (parameter_declaration) "UINT uMsg" (type_identifier) "UINT" (identifier) "uMsg" (,) "," (parameter_declaration) "WPARAM wParam" (type_identifier) "WPARAM" (identifier) "wParam" (,) "," (parameter_declaration) "LPARAM lParam" (type_identifier) "LPARAM" (identifier) "lParam" ()) ")" (;) ";" (ERROR) "void GetItemRect(int Item,RECT *pRect) const" (primitive_type) "void" (function_declarator) "GetItemRect(int Item,RECT *pRect) const" (identifier) "GetItemRect" (parameter_list) "(int Item,RECT *pRect)" (() "(" (parameter_declaration) "int Item" (primitive_type) "int" (identifier) "Item" (,) "," (parameter_declaration) "RECT *pRect" (type_identifier) "RECT" (pointer_declarator) "*pRect" (*) "*" (identifier) "pRect" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (declaration) "void UpdateItem(int Item);" (primitive_type) "void" (function_declarator) "UpdateItem(int Item)" (identifier) "UpdateItem" (parameter_list) "(int Item)" (() "(" (parameter_declaration) "int Item" (primitive_type) "int" (identifier) "Item" ()) ")" (;) ";" (declaration) "void CalcFontHeight();" (primitive_type) "void" (function_declarator) "CalcFontHeight()" (identifier) "CalcFontHeight" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void Draw(HDC hdc,const RECT &PaintRect);" (primitive_type) "void" (function_declarator) "Draw(HDC hdc,const RECT &PaintRect)" (identifier) "Draw" (parameter_list) "(HDC hdc,const RECT &PaintRect)" (() "(" (parameter_declaration) "HDC hdc" (type_identifier) "HDC" (identifier) "hdc" (,) "," (parameter_declaration) "const RECT &PaintRect" (type_qualifier) "const" (const) "const" (type_identifier) "RECT" (ERROR) "&" (&) "&" (identifier) "PaintRect" ()) ")" (;) ";" (ERROR) "bool GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const" (primitive_type) "bool" (function_declarator) "GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const" (identifier) "GetDrawItemRect" (parameter_list) "(int Item,RECT *pRect,const RECT &PaintRect)" (() "(" (parameter_declaration) "int Item" (primitive_type) "int" (identifier) "Item" (,) "," (parameter_declaration) "RECT *pRect" (type_identifier) "RECT" (pointer_declarator) "*pRect" (*) "*" (identifier) "pRect" (,) "," (parameter_declaration) "const RECT &PaintRect" (type_qualifier) "const" (const) "const" (type_identifier) "RECT" (ERROR) "&" (&) "&" (identifier) "PaintRect" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (declaration) "void DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect);" (primitive_type) "void" (function_declarator) "DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect)" (identifier) "DrawItem" (parameter_list) "(HDC hdc,LPCTSTR pszText,const RECT &Rect)" (() "(" (parameter_declaration) "HDC hdc" (type_identifier) "HDC" (identifier) "hdc" (,) "," (parameter_declaration) "LPCTSTR pszText" (type_identifier) "LPCTSTR" (identifier) "pszText" (,) "," (parameter_declaration) "const RECT &Rect" (type_qualifier) "const" (const) "const" (type_identifier) "RECT" (ERROR) "&" (&) "&" (identifier) "Rect" ()) ")" (;) ";" (comment) "// CCustomWindow" (ERROR) "LRESULT OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override" (type_identifier) "LRESULT" (function_declarator) "OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override" (identifier) "OnMessage" (parameter_list) "(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)" (() "(" (parameter_declaration) "HWND hwnd" (type_identifier) "HWND" (identifier) "hwnd" (,) "," (parameter_declaration) "UINT uMsg" (type_identifier) "UINT" (identifier) "uMsg" (,) "," (parameter_declaration) "WPARAM wParam" (type_identifier) "WPARAM" (identifier) "wParam" (,) "," (parameter_declaration) "LPARAM lParam" (type_identifier) "LPARAM" (identifier) "lParam" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "public:\n static bool Initialize(HINSTANCE hinst);" (statement_identifier) "public" (:) ":" (declaration) "static bool Initialize(HINSTANCE hinst);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "Initialize(HINSTANCE hinst)" (identifier) "Initialize" (parameter_list) "(HINSTANCE hinst)" (() "(" (parameter_declaration) "HINSTANCE hinst" (type_identifier) "HINSTANCE" (identifier) "hinst" ()) ")" (;) ";" (expression_statement) "CInformationPanel();" (call_expression) "CInformationPanel()" (identifier) "CInformationPanel" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~CInformationPanel();" (unary_expression) "~CInformationPanel()" (~) "~" (call_expression) "CInformationPanel()" (identifier) "CInformationPanel" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// CBasicWindow" (declaration) "bool Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0,int ID=0) override;" (primitive_type) "bool" (init_declarator) "Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0" (function_declarator) "Create(HWND hwndParent,DWORD Style,DWORD ExStyle" (identifier) "Create" (parameter_list) "(HWND hwndParent,DWORD Style,DWORD ExStyle" (() "(" (parameter_declaration) "HWND hwndParent" (type_identifier) "HWND" (identifier) "hwndParent" (,) "," (parameter_declaration) "DWORD Style" (type_identifier) "DWORD" (identifier) "Style" (,) "," (parameter_declaration) "DWORD ExStyle" (type_identifier) "DWORD" (identifier) "ExStyle" ()) "" (=) "=" (number_literal) "0" (,) "," (init_declarator) "int ID=0) override" (identifier) "int" (ERROR) "ID" (identifier) "ID" (=) "=" (ERROR) "0)" (number_literal) "0" ()) ")" (identifier) "override" (;) ";" (comment) "// CSettingsBase" (ERROR) "bool ReadSettings(CSettings &Settings) override" (primitive_type) "bool" (function_declarator) "ReadSettings(CSettings &Settings) override" (identifier) "ReadSettings" (parameter_list) "(CSettings &Settings)" (() "(" (parameter_declaration) "CSettings &Settings" (type_identifier) "CSettings" (ERROR) "&" (&) "&" (identifier) "Settings" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "bool WriteSettings(CSettings &Settings) override" (primitive_type) "bool" (function_declarator) "WriteSettings(CSettings &Settings) override" (identifier) "WriteSettings" (parameter_list) "(CSettings &Settings)" (() "(" (parameter_declaration) "CSettings &Settings" (type_identifier) "CSettings" (ERROR) "&" (&) "&" (identifier) "Settings" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (comment) "// CInformationPanel" (declaration) "void ResetStatistics();" (primitive_type) "void" (function_declarator) "ResetStatistics()" (identifier) "ResetStatistics" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "bool IsVisible() const;\n void SetColor(COLORREF crBackColor,COLORREF crTextColor);\n void SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);\n bool SetFont(const LOGFONT *pFont);\n bool SetItemVisible(int Item,bool fVisible);\n bool IsItemVisible(int Item) const;\n void SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);\n void SetAspectRatio(int AspectX,int AspectY);\n void SetVideoDecoderName(LPCTSTR pszName);\n void SetVideoRendererName(LPCTSTR pszName);\n void SetAudioDeviceName(LPCTSTR pszName);\n void SetSignalLevel(float Level);\n void ShowSignalLevel(bool fShow);\n bool IsSignalLevelEnabled() const { return m_fSignalLevel; }" (primitive_type) "bool" (function_declarator) "IsVisible()" (identifier) "IsVisible" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n void SetColor(COLORREF crBackColor,COLORREF crTextColor);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "void" (function_declarator) "SetColor(COLORREF crBackColor,COLORREF crTextColor)" (identifier) "SetColor" (parameter_list) "(COLORREF crBackColor,COLORREF crTextColor)" (() "(" (parameter_declaration) "COLORREF crBackColor" (type_identifier) "COLORREF" (identifier) "crBackColor" (,) "," (parameter_declaration) "COLORREF crTextColor" (type_identifier) "COLORREF" (identifier) "crTextColor" ()) ")" (;) ";" (declaration) "void SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);" (primitive_type) "void" (function_declarator) "SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor)" (identifier) "SetProgramInfoColor" (parameter_list) "(COLORREF crBackColor,COLORREF crTextColor)" (() "(" (parameter_declaration) "COLORREF crBackColor" (type_identifier) "COLORREF" (identifier) "crBackColor" (,) "," (parameter_declaration) "COLORREF crTextColor" (type_identifier) "COLORREF" (identifier) "crTextColor" ()) ")" (;) ";" (declaration) "bool SetFont(const LOGFONT *pFont);" (primitive_type) "bool" (function_declarator) "SetFont(const LOGFONT *pFont)" (identifier) "SetFont" (parameter_list) "(const LOGFONT *pFont)" (() "(" (parameter_declaration) "const LOGFONT *pFont" (type_qualifier) "const" (const) "const" (type_identifier) "LOGFONT" (pointer_declarator) "*pFont" (*) "*" (identifier) "pFont" ()) ")" (;) ";" (declaration) "bool SetItemVisible(int Item,bool fVisible);" (primitive_type) "bool" (function_declarator) "SetItemVisible(int Item,bool fVisible)" (identifier) "SetItemVisible" (parameter_list) "(int Item,bool fVisible)" (() "(" (parameter_declaration) "int Item" (primitive_type) "int" (identifier) "Item" (,) "," (parameter_declaration) "bool fVisible" (primitive_type) "bool" (identifier) "fVisible" ()) ")" (;) ";" (ERROR) "bool IsItemVisible(int Item) const;" (primitive_type) "bool" (function_declarator) "IsItemVisible(int Item) const" (identifier) "IsItemVisible" (parameter_list) "(int Item)" (() "(" (parameter_declaration) "int Item" (primitive_type) "int" (identifier) "Item" ()) ")" (identifier) "const" (;) ";" (declaration) "void SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);" (primitive_type) "void" (function_declarator) "SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight)" (identifier) "SetVideoSize" (parameter_list) "(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight)" (() "(" (parameter_declaration) "int OriginalWidth" (primitive_type) "int" (identifier) "OriginalWidth" (,) "," (parameter_declaration) "int OriginalHeight" (primitive_type) "int" (identifier) "OriginalHeight" (,) "," (parameter_declaration) "int DisplayWidth" (primitive_type) "int" (identifier) "DisplayWidth" (,) "," (parameter_declaration) "int DisplayHeight" (primitive_type) "int" (identifier) "DisplayHeight" ()) ")" (;) ";" (declaration) "void SetAspectRatio(int AspectX,int AspectY);" (primitive_type) "void" (function_declarator) "SetAspectRatio(int AspectX,int AspectY)" (identifier) "SetAspectRatio" (parameter_list) "(int AspectX,int AspectY)" (() "(" (parameter_declaration) "int AspectX" (primitive_type) "int" (identifier) "AspectX" (,) "," (parameter_declaration) "int AspectY" (primitive_type) "int" (identifier) "AspectY" ()) ")" (;) ";" (declaration) "void SetVideoDecoderName(LPCTSTR pszName);" (primitive_type) "void" (function_declarator) "SetVideoDecoderName(LPCTSTR pszName)" (identifier) "SetVideoDecoderName" (parameter_list) "(LPCTSTR pszName)" (() "(" (parameter_declaration) "LPCTSTR pszName" (type_identifier) "LPCTSTR" (identifier) "pszName" ()) ")" (;) ";" (declaration) "void SetVideoRendererName(LPCTSTR pszName);" (primitive_type) "void" (function_declarator) "SetVideoRendererName(LPCTSTR pszName)" (identifier) "SetVideoRendererName" (parameter_list) "(LPCTSTR pszName)" (() "(" (parameter_declaration) "LPCTSTR pszName" (type_identifier) "LPCTSTR" (identifier) "pszName" ()) ")" (;) ";" (declaration) "void SetAudioDeviceName(LPCTSTR pszName);" (primitive_type) "void" (function_declarator) "SetAudioDeviceName(LPCTSTR pszName)" (identifier) "SetAudioDeviceName" (parameter_list) "(LPCTSTR pszName)" (() "(" (parameter_declaration) "LPCTSTR pszName" (type_identifier) "LPCTSTR" (identifier) "pszName" ()) ")" (;) ";" (declaration) "void SetSignalLevel(float Level);" (primitive_type) "void" (function_declarator) "SetSignalLevel(float Level)" (identifier) "SetSignalLevel" (parameter_list) "(float Level)" (() "(" (parameter_declaration) "float Level" (primitive_type) "float" (identifier) "Level" ()) ")" (;) ";" (declaration) "void ShowSignalLevel(bool fShow);" (primitive_type) "void" (function_declarator) "ShowSignalLevel(bool fShow)" (identifier) "ShowSignalLevel" (parameter_list) "(bool fShow)" (() "(" (parameter_declaration) "bool fShow" (primitive_type) "bool" (identifier) "fShow" ()) ")" (;) ";" (ERROR) "bool IsSignalLevelEnabled() const" (primitive_type) "bool" (function_declarator) "IsSignalLevelEnabled() const" (identifier) "IsSignalLevelEnabled" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (compound_statement) "{ return m_fSignalLevel; }" ({) "{" (return_statement) "return m_fSignalLevel;" (return) "return" (identifier) "m_fSignalLevel" (;) ";" (}) "}" (declaration) "void SetBitRate(DWORD BitRate);" (primitive_type) "void" (function_declarator) "SetBitRate(DWORD BitRate)" (identifier) "SetBitRate" (parameter_list) "(DWORD BitRate)" (() "(" (parameter_declaration) "DWORD BitRate" (type_identifier) "DWORD" (identifier) "BitRate" ()) ")" (;) ";" (declaration) "void SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate);" (primitive_type) "void" (function_declarator) "SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate)" (identifier) "SetMediaBitRate" (parameter_list) "(DWORD VideoBitRate,DWORD AudioBitRate)" (() "(" (parameter_declaration) "DWORD VideoBitRate" (type_identifier) "DWORD" (identifier) "VideoBitRate" (,) "," (parameter_declaration) "DWORD AudioBitRate" (type_identifier) "DWORD" (identifier) "AudioBitRate" ()) ")" (;) ";" (declaration) "void UpdateErrorCount();" (primitive_type) "void" (function_declarator) "UpdateErrorCount()" (identifier) "UpdateErrorCount" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL,\n ULONGLONG WroteSize=0,unsigned int RecordTime=0,\n ULONGLONG FreeSpace=0);" (primitive_type) "void" (init_declarator) "SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL" (function_declarator) "SetRecordStatus(bool fRecording,LPCTSTR pszFileName" (identifier) "SetRecordStatus" (parameter_list) "(bool fRecording,LPCTSTR pszFileName" (() "(" (parameter_declaration) "bool fRecording" (primitive_type) "bool" (identifier) "fRecording" (,) "," (parameter_declaration) "LPCTSTR pszFileName" (type_identifier) "LPCTSTR" (identifier) "pszFileName" ()) "" (=) "=" (null) "NULL" (NULL) "NULL" (,) "," (ERROR) "ULONGLONG" (identifier) "ULONGLONG" (init_declarator) "WroteSize=0" (identifier) "WroteSize" (=) "=" (number_literal) "0" (,) "," (ERROR) "unsigned int" (identifier) "unsigned" (identifier) "int" (init_declarator) "RecordTime=0" (identifier) "RecordTime" (=) "=" (number_literal) "0" (,) "," (ERROR) "ULONGLONG" (identifier) "ULONGLONG" (init_declarator) "FreeSpace=0" (identifier) "FreeSpace" (=) "=" (number_literal) "0" (ERROR) ")" ()) ")" (;) ";" (declaration) "void SetProgramInfo(LPCTSTR pszInfo);" (primitive_type) "void" (function_declarator) "SetProgramInfo(LPCTSTR pszInfo)" (identifier) "SetProgramInfo" (parameter_list) "(LPCTSTR pszInfo)" (() "(" (parameter_declaration) "LPCTSTR pszInfo" (type_identifier) "LPCTSTR" (identifier) "pszInfo" ()) ")" (;) ";" (ERROR) "bool GetProgramInfoNext() const" (primitive_type) "bool" (function_declarator) "GetProgramInfoNext()" (identifier) "GetProgramInfoNext" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return m_fNextProgramInfo; }" ({) "{" (return_statement) "return m_fNextProgramInfo;" (return) "return" (identifier) "m_fNextProgramInfo" (;) ";" (}) "}" (declaration) "bool SetEventHandler(CEventHandler *pHandler);" (primitive_type) "bool" (function_declarator) "SetEventHandler(CEventHandler *pHandler)" (identifier) "SetEventHandler" (parameter_list) "(CEventHandler *pHandler)" (() "(" (parameter_declaration) "CEventHandler *pHandler" (type_identifier) "CEventHandler" (pointer_declarator) "*pHandler" (*) "*" (identifier) "pHandler" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
899
30
{"language": "c", "success": true, "metadata": {"lines": 113, "avg_line_length": 30.66, "nodes": 586, "errors": 0, "source_hash": "1523589d9619a7a02a6f45fe7f3164a1c89114a33f6f952393839911ac6ff5ac", "categorized_nodes": 426}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef INFORMATION_PANEL_H\n#define INFORMATION_PANEL_H\n\n\n#include \"PanelForm.h\"\n#include \"Settings.h\"\n#include \"DrawUtil.h\"\n\n\nclass CInformationPanel : public CPanelForm::CPage, public CSettingsBase\n{\npublic:\n\tclass ABSTRACT_CLASS(CEventHandler) {\n\tpublic:\n\t\tvirtual ~CEventHandler() {}\n\t\tvirtual bool OnProgramInfoUpdate(bool fNext) { return false; }\n\t};\n\n\tenum {\n\t\tITEM_VIDEO,\n\t\tITEM_DECODER,\n\t\tITEM_VIDEORENDERER,\n\t\tITEM_AUDIODEVICE,\n\t\tITEM_SIGNALLEVEL,\n\t\tITEM_MEDIABITRATE,\n\t\tITEM_ERROR,\n\t\tITEM_RECORD,\n\t\tITEM_PROGRAMINFO,\n\t\tNUM_ITEMS,\n\t};\n\nprivate:\n\tstatic const LPCTSTR m_pszClassName;\n\tstatic HINSTANCE m_hinst;\n\n\tHWND m_hwndProgramInfo;\n\tWNDPROC m_pOldProgramInfoProc;\n\tHWND m_hwndProgramInfoPrev;\n\tHWND m_hwndProgramInfoNext;\n\tCEventHandler *m_pEventHandler;\n\n\tCOLORREF m_crBackColor;\n\tCOLORREF m_crTextColor;\n\tCOLORREF m_crProgramInfoBackColor;\n\tCOLORREF m_crProgramInfoTextColor;\n\tDrawUtil::CBrush m_BackBrush;\n\tDrawUtil::CBrush m_ProgramInfoBackBrush;\n\tDrawUtil::CFont m_Font;\n\tint m_FontHeight;\n\tint m_LineMargin;\n\tDrawUtil::COffscreen m_Offscreen;\n\tunsigned int m_ItemVisibility;\n\n\tint m_OriginalVideoWidth;\n\tint m_OriginalVideoHeight;\n\tint m_DisplayVideoWidth;\n\tint m_DisplayVideoHeight;\n\tint m_AspectX;\n\tint m_AspectY;\n\tCDynamicString m_VideoDecoderName;\n\tCDynamicString m_VideoRendererName;\n\tCDynamicString m_AudioDeviceName;\n\tbool m_fSignalLevel;\n\tfloat m_SignalLevel;\n\tDWORD m_BitRate;\n\tDWORD m_VideoBitRate;\n\tDWORD m_AudioBitRate;\n\tbool m_fRecording;\n\tULONGLONG m_RecordWroteSize;\n\tunsigned int m_RecordTime;\n\tULONGLONG m_DiskFreeSpace;\n\tCDynamicString m_ProgramInfo;\n\tbool m_fNextProgramInfo;\n\n\tstatic const LPCTSTR m_pszItemNameList[];\n\n\tstatic LRESULT CALLBACK ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);\n\tvoid GetItemRect(int Item,RECT *pRect) const;\n\tvoid UpdateItem(int Item);\n\tvoid CalcFontHeight();\n\tvoid Draw(HDC hdc,const RECT &PaintRect);\n\tbool GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const;\n\tvoid DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect);\n// CCustomWindow\n\tLRESULT OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override;\n\npublic:\n\tstatic bool Initialize(HINSTANCE hinst);\n\n\tCInformationPanel();\n\t~CInformationPanel();\n// CBasicWindow\n\tbool Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0,int ID=0) override;\n// CSettingsBase\n\tbool ReadSettings(CSettings &Settings) override;\n\tbool WriteSettings(CSettings &Settings) override;\n// CInformationPanel\n\tvoid ResetStatistics();\n\tbool IsVisible() const;\n\tvoid SetColor(COLORREF crBackColor,COLORREF crTextColor);\n\tvoid SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);\n\tbool SetFont(const LOGFONT *pFont);\n\tbool SetItemVisible(int Item,bool fVisible);\n\tbool IsItemVisible(int Item) const;\n\tvoid SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);\n\tvoid SetAspectRatio(int AspectX,int AspectY);\n\tvoid SetVideoDecoderName(LPCTSTR pszName);\n\tvoid SetVideoRendererName(LPCTSTR pszName);\n\tvoid SetAudioDeviceName(LPCTSTR pszName);\n\tvoid SetSignalLevel(float Level);\n\tvoid ShowSignalLevel(bool fShow);\n\tbool IsSignalLevelEnabled() const { return m_fSignalLevel; }\n\tvoid SetBitRate(DWORD BitRate);\n\tvoid SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate);\n\tvoid UpdateErrorCount();\n\tvoid SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL,\n\t\t\t\t\t\t ULONGLONG WroteSize=0,unsigned int RecordTime=0,\n\t\t\t\t\t\t ULONGLONG FreeSpace=0);\n\tvoid SetProgramInfo(LPCTSTR pszInfo);\n\tbool GetProgramInfoNext() const { return m_fNextProgramInfo; }\n\tbool SetEventHandler(CEventHandler *pHandler);\n};\n\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 585], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 124, "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": "INFORMATION_PANEL_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define INFORMATION_PANEL_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": "INFORMATION_PANEL_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include \"PanelForm.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": "\"PanelForm.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include \"Settings.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"Settings.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include \"DrawUtil.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"DrawUtil.h\"", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 21}}, {"id": 15, "type": "ERROR", "text": "class CInformationPanel : public CPanelForm::CPage, public CSettingsBase", "parent": 0, "children": [16, 17, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 72}}, {"id": 16, "type": "identifier", "text": "CInformationPanel", "parent": 15, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 23}}, {"id": 17, "type": "ERROR", "text": ": public CPanelForm::CPage", "parent": 15, "children": [18, 19], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 50}}, {"id": 18, "type": "identifier", "text": "CPanelForm", "parent": 17, "children": [], "start_point": {"row": 9, "column": 33}, "end_point": {"row": 9, "column": 43}}, {"id": 19, "type": "identifier", "text": "CPage", "parent": 17, "children": [], "start_point": {"row": 9, "column": 45}, "end_point": {"row": 9, "column": 50}}, {"id": 20, "type": "identifier", "text": "CSettingsBase", "parent": 15, "children": [], "start_point": {"row": 9, "column": 59}, "end_point": {"row": 9, "column": 72}}, {"id": 21, "type": "labeled_statement", "text": "public:\n\tclass ABSTRACT_CLASS(CEventHandler) {\n\tpublic:\n\t\tvirtual ~CEventHandler() {}\n\t\tvirtual bool OnProgramInfoUpdate(bool fNext) { return false; }\n\t}", "parent": 0, "children": [22], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 16, "column": 2}}, {"id": 22, "type": "ERROR", "text": "class ABSTRACT_CLASS(CEventHandler)", "parent": 21, "children": [23], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 36}}, {"id": 23, "type": "function_declarator", "text": "ABSTRACT_CLASS(CEventHandler)", "parent": 22, "children": [24, 25], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 36}}, {"id": 24, "type": "identifier", "text": "ABSTRACT_CLASS", "parent": 23, "children": [], "start_point": {"row": 12, "column": 7}, "end_point": {"row": 12, "column": 21}}, {"id": 25, "type": "parameter_list", "text": "(CEventHandler)", "parent": 23, "children": [26], "start_point": {"row": 12, "column": 21}, "end_point": {"row": 12, "column": 36}}, {"id": 26, "type": "parameter_declaration", "text": "CEventHandler", "parent": 25, "children": [27], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 35}}, {"id": 27, "type": "type_identifier", "text": "CEventHandler", "parent": 26, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 35}}, {"id": 28, "type": "labeled_statement", "text": "public:\n\t\tvirtual ~CEventHandler() {}\n\t\tvirtual bool OnProgramInfoUpdate(bool fNext) { return false; }", "parent": 21, "children": [29], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 15, "column": 64}}, {"id": 29, "type": "ERROR", "text": "virtual ~CEventHandler() {}\n\t\tvirtual bool OnProgramInfoUpdate(bool fNext)", "parent": 28, "children": [30, 31, 38], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 15, "column": 46}}, {"id": 30, "type": "type_identifier", "text": "virtual", "parent": 29, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 9}}, {"id": 31, "type": "ERROR", "text": "~CEventHandler() {}\n\t\tvirtual bool", "parent": 29, "children": [32, 33, 36, 37], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 32, "type": "~", "text": "~", "parent": 31, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 11}}, {"id": 33, "type": "function_declarator", "text": "CEventHandler()", "parent": 31, "children": [34, 35], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 26}}, {"id": 34, "type": "identifier", "text": "CEventHandler", "parent": 33, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 24}}, {"id": 35, "type": "parameter_list", "text": "()", "parent": 33, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 26}}, {"id": 36, "type": "identifier", "text": "virtual", "parent": 31, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 9}}, {"id": 37, "type": "identifier", "text": "bool", "parent": 31, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 14}}, {"id": 38, "type": "function_declarator", "text": "OnProgramInfoUpdate(bool fNext)", "parent": 29, "children": [39, 40], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 46}}, {"id": 39, "type": "identifier", "text": "OnProgramInfoUpdate", "parent": 38, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 34}}, {"id": 40, "type": "parameter_list", "text": "(bool fNext)", "parent": 38, "children": [41], "start_point": {"row": 15, "column": 34}, "end_point": {"row": 15, "column": 46}}, {"id": 41, "type": "parameter_declaration", "text": "bool fNext", "parent": 40, "children": [42, 43], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 45}}, {"id": 42, "type": "primitive_type", "text": "bool", "parent": 41, "children": [], "start_point": {"row": 15, "column": 35}, "end_point": {"row": 15, "column": 39}}, {"id": 43, "type": "identifier", "text": "fNext", "parent": 41, "children": [], "start_point": {"row": 15, "column": 40}, "end_point": {"row": 15, "column": 45}}, {"id": 44, "type": "return_statement", "text": "return false;", "parent": 28, "children": [45], "start_point": {"row": 15, "column": 49}, "end_point": {"row": 15, "column": 62}}, {"id": 45, "type": "false", "text": "false", "parent": 44, "children": [], "start_point": {"row": 15, "column": 56}, "end_point": {"row": 15, "column": 61}}, {"id": 46, "type": "enum_specifier", "text": "enum {\n\t\tITEM_VIDEO,\n\t\tITEM_DECODER,\n\t\tITEM_VIDEORENDERER,\n\t\tITEM_AUDIODEVICE,\n\t\tITEM_SIGNALLEVEL,\n\t\tITEM_MEDIABITRATE,\n\t\tITEM_ERROR,\n\t\tITEM_RECORD,\n\t\tITEM_PROGRAMINFO,\n\t\tNUM_ITEMS,\n\t}", "parent": 0, "children": [47, 48], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 29, "column": 2}}, {"id": 47, "type": "enum", "text": "enum", "parent": 46, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 5}}, {"id": 48, "type": "enumerator_list", "text": "{\n\t\tITEM_VIDEO,\n\t\tITEM_DECODER,\n\t\tITEM_VIDEORENDERER,\n\t\tITEM_AUDIODEVICE,\n\t\tITEM_SIGNALLEVEL,\n\t\tITEM_MEDIABITRATE,\n\t\tITEM_ERROR,\n\t\tITEM_RECORD,\n\t\tITEM_PROGRAMINFO,\n\t\tNUM_ITEMS,\n\t}", "parent": 46, "children": [49, 51, 53, 55, 57, 59, 61, 63, 65, 67], "start_point": {"row": 18, "column": 6}, "end_point": {"row": 29, "column": 2}}, {"id": 49, "type": "enumerator", "text": "ITEM_VIDEO", "parent": 48, "children": [50], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 12}}, {"id": 50, "type": "identifier", "text": "ITEM_VIDEO", "parent": 49, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 12}}, {"id": 51, "type": "enumerator", "text": "ITEM_DECODER", "parent": 48, "children": [52], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 14}}, {"id": 52, "type": "identifier", "text": "ITEM_DECODER", "parent": 51, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 14}}, {"id": 53, "type": "enumerator", "text": "ITEM_VIDEORENDERER", "parent": 48, "children": [54], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 20}}, {"id": 54, "type": "identifier", "text": "ITEM_VIDEORENDERER", "parent": 53, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 20}}, {"id": 55, "type": "enumerator", "text": "ITEM_AUDIODEVICE", "parent": 48, "children": [56], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 18}}, {"id": 56, "type": "identifier", "text": "ITEM_AUDIODEVICE", "parent": 55, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 18}}, {"id": 57, "type": "enumerator", "text": "ITEM_SIGNALLEVEL", "parent": 48, "children": [58], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 18}}, {"id": 58, "type": "identifier", "text": "ITEM_SIGNALLEVEL", "parent": 57, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 18}}, {"id": 59, "type": "enumerator", "text": "ITEM_MEDIABITRATE", "parent": 48, "children": [60], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 19}}, {"id": 60, "type": "identifier", "text": "ITEM_MEDIABITRATE", "parent": 59, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 19}}, {"id": 61, "type": "enumerator", "text": "ITEM_ERROR", "parent": 48, "children": [62], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 12}}, {"id": 62, "type": "identifier", "text": "ITEM_ERROR", "parent": 61, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 12}}, {"id": 63, "type": "enumerator", "text": "ITEM_RECORD", "parent": 48, "children": [64], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 13}}, {"id": 64, "type": "identifier", "text": "ITEM_RECORD", "parent": 63, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 13}}, {"id": 65, "type": "enumerator", "text": "ITEM_PROGRAMINFO", "parent": 48, "children": [66], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 18}}, {"id": 66, "type": "identifier", "text": "ITEM_PROGRAMINFO", "parent": 65, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 18}}, {"id": 67, "type": "enumerator", "text": "NUM_ITEMS", "parent": 48, "children": [68], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 11}}, {"id": 68, "type": "identifier", "text": "NUM_ITEMS", "parent": 67, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 11}}, {"id": 69, "type": "labeled_statement", "text": "private:\n\tstatic const LPCTSTR m_pszClassName;", "parent": 0, "children": [70], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 37}}, {"id": 70, "type": "declaration", "text": "static const LPCTSTR m_pszClassName;", "parent": 69, "children": [71, 72], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 37}}, {"id": 71, "type": "type_identifier", "text": "LPCTSTR", "parent": 70, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 21}}, {"id": 72, "type": "identifier", "text": "m_pszClassName", "parent": 70, "children": [], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 36}}, {"id": 73, "type": "declaration", "text": "static HINSTANCE m_hinst;", "parent": 0, "children": [74, 75], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 26}}, {"id": 74, "type": "type_identifier", "text": "HINSTANCE", "parent": 73, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 17}}, {"id": 75, "type": "identifier", "text": "m_hinst", "parent": 73, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 25}}, {"id": 76, "type": "declaration", "text": "HWND m_hwndProgramInfo;", "parent": 0, "children": [77, 78], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 24}}, {"id": 77, "type": "type_identifier", "text": "HWND", "parent": 76, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 5}}, {"id": 78, "type": "identifier", "text": "m_hwndProgramInfo", "parent": 76, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 23}}, {"id": 79, "type": "declaration", "text": "WNDPROC m_pOldProgramInfoProc;", "parent": 0, "children": [80, 81], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 31}}, {"id": 80, "type": "type_identifier", "text": "WNDPROC", "parent": 79, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 8}}, {"id": 81, "type": "identifier", "text": "m_pOldProgramInfoProc", "parent": 79, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 30}}, {"id": 82, "type": "declaration", "text": "HWND m_hwndProgramInfoPrev;", "parent": 0, "children": [83, 84], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 28}}, {"id": 83, "type": "type_identifier", "text": "HWND", "parent": 82, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 5}}, {"id": 84, "type": "identifier", "text": "m_hwndProgramInfoPrev", "parent": 82, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 27}}, {"id": 85, "type": "declaration", "text": "HWND m_hwndProgramInfoNext;", "parent": 0, "children": [86, 87], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 28}}, {"id": 86, "type": "type_identifier", "text": "HWND", "parent": 85, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 5}}, {"id": 87, "type": "identifier", "text": "m_hwndProgramInfoNext", "parent": 85, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 27}}, {"id": 88, "type": "declaration", "text": "CEventHandler *m_pEventHandler;", "parent": 0, "children": [89, 90], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 32}}, {"id": 89, "type": "type_identifier", "text": "CEventHandler", "parent": 88, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 14}}, {"id": 90, "type": "pointer_declarator", "text": "*m_pEventHandler", "parent": 88, "children": [91, 92], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 31}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 92, "type": "identifier", "text": "m_pEventHandler", "parent": 90, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 31}}, {"id": 93, "type": "declaration", "text": "COLORREF m_crBackColor;", "parent": 0, "children": [94, 95], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 24}}, {"id": 94, "type": "type_identifier", "text": "COLORREF", "parent": 93, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 9}}, {"id": 95, "type": "identifier", "text": "m_crBackColor", "parent": 93, "children": [], "start_point": {"row": 41, "column": 10}, "end_point": {"row": 41, "column": 23}}, {"id": 96, "type": "declaration", "text": "COLORREF m_crTextColor;", "parent": 0, "children": [97, 98], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 24}}, {"id": 97, "type": "type_identifier", "text": "COLORREF", "parent": 96, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 9}}, {"id": 98, "type": "identifier", "text": "m_crTextColor", "parent": 96, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 23}}, {"id": 99, "type": "declaration", "text": "COLORREF m_crProgramInfoBackColor;", "parent": 0, "children": [100, 101], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 35}}, {"id": 100, "type": "type_identifier", "text": "COLORREF", "parent": 99, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 9}}, {"id": 101, "type": "identifier", "text": "m_crProgramInfoBackColor", "parent": 99, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 34}}, {"id": 102, "type": "declaration", "text": "COLORREF m_crProgramInfoTextColor;", "parent": 0, "children": [103, 104], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 35}}, {"id": 103, "type": "type_identifier", "text": "COLORREF", "parent": 102, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 9}}, {"id": 104, "type": "identifier", "text": "m_crProgramInfoTextColor", "parent": 102, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 34}}, {"id": 105, "type": "labeled_statement", "text": "DrawUtil::CBrush m_BackBrush;", "parent": 0, "children": [106, 107], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 30}}, {"id": 106, "type": "statement_identifier", "text": "DrawUtil", "parent": 105, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 9}}, {"id": 107, "type": "declaration", "text": "CBrush m_BackBrush;", "parent": 105, "children": [108, 109], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 30}}, {"id": 108, "type": "type_identifier", "text": "CBrush", "parent": 107, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 17}}, {"id": 109, "type": "identifier", "text": "m_BackBrush", "parent": 107, "children": [], "start_point": {"row": 45, "column": 18}, "end_point": {"row": 45, "column": 29}}, {"id": 110, "type": "labeled_statement", "text": "DrawUtil::CBrush m_ProgramInfoBackBrush;", "parent": 0, "children": [111, 112], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 41}}, {"id": 111, "type": "statement_identifier", "text": "DrawUtil", "parent": 110, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 9}}, {"id": 112, "type": "declaration", "text": "CBrush m_ProgramInfoBackBrush;", "parent": 110, "children": [113, 114], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 41}}, {"id": 113, "type": "type_identifier", "text": "CBrush", "parent": 112, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 17}}, {"id": 114, "type": "identifier", "text": "m_ProgramInfoBackBrush", "parent": 112, "children": [], "start_point": {"row": 46, "column": 18}, "end_point": {"row": 46, "column": 40}}, {"id": 115, "type": "labeled_statement", "text": "DrawUtil::CFont m_Font;", "parent": 0, "children": [116, 117], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 24}}, {"id": 116, "type": "statement_identifier", "text": "DrawUtil", "parent": 115, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 9}}, {"id": 117, "type": "declaration", "text": "CFont m_Font;", "parent": 115, "children": [118, 119], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 24}}, {"id": 118, "type": "type_identifier", "text": "CFont", "parent": 117, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 16}}, {"id": 119, "type": "identifier", "text": "m_Font", "parent": 117, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 23}}, {"id": 120, "type": "declaration", "text": "int m_FontHeight;", "parent": 0, "children": [121, 122], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 18}}, {"id": 121, "type": "primitive_type", "text": "int", "parent": 120, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 4}}, {"id": 122, "type": "identifier", "text": "m_FontHeight", "parent": 120, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 17}}, {"id": 123, "type": "declaration", "text": "int m_LineMargin;", "parent": 0, "children": [124, 125], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 18}}, {"id": 124, "type": "primitive_type", "text": "int", "parent": 123, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 4}}, {"id": 125, "type": "identifier", "text": "m_LineMargin", "parent": 123, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 17}}, {"id": 126, "type": "labeled_statement", "text": "DrawUtil::COffscreen m_Offscreen;", "parent": 0, "children": [127, 128], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 34}}, {"id": 127, "type": "statement_identifier", "text": "DrawUtil", "parent": 126, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 9}}, {"id": 128, "type": "declaration", "text": "COffscreen m_Offscreen;", "parent": 126, "children": [129, 130], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 34}}, {"id": 129, "type": "type_identifier", "text": "COffscreen", "parent": 128, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 21}}, {"id": 130, "type": "identifier", "text": "m_Offscreen", "parent": 128, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 33}}, {"id": 131, "type": "declaration", "text": "unsigned int m_ItemVisibility;", "parent": 0, "children": [132, 135], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 31}}, {"id": 132, "type": "sized_type_specifier", "text": "unsigned int", "parent": 131, "children": [133, 134], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 13}}, {"id": 133, "type": "unsigned", "text": "unsigned", "parent": 132, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 9}}, {"id": 134, "type": "primitive_type", "text": "int", "parent": 132, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 13}}, {"id": 135, "type": "identifier", "text": "m_ItemVisibility", "parent": 131, "children": [], "start_point": {"row": 51, "column": 14}, "end_point": {"row": 51, "column": 30}}, {"id": 136, "type": "declaration", "text": "int m_OriginalVideoWidth;", "parent": 0, "children": [137, 138], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 26}}, {"id": 137, "type": "primitive_type", "text": "int", "parent": 136, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 4}}, {"id": 138, "type": "identifier", "text": "m_OriginalVideoWidth", "parent": 136, "children": [], "start_point": {"row": 53, "column": 5}, "end_point": {"row": 53, "column": 25}}, {"id": 139, "type": "declaration", "text": "int m_OriginalVideoHeight;", "parent": 0, "children": [140, 141], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 27}}, {"id": 140, "type": "primitive_type", "text": "int", "parent": 139, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 4}}, {"id": 141, "type": "identifier", "text": "m_OriginalVideoHeight", "parent": 139, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 26}}, {"id": 142, "type": "declaration", "text": "int m_DisplayVideoWidth;", "parent": 0, "children": [143, 144], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 25}}, {"id": 143, "type": "primitive_type", "text": "int", "parent": 142, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 4}}, {"id": 144, "type": "identifier", "text": "m_DisplayVideoWidth", "parent": 142, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 24}}, {"id": 145, "type": "declaration", "text": "int m_DisplayVideoHeight;", "parent": 0, "children": [146, 147], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 26}}, {"id": 146, "type": "primitive_type", "text": "int", "parent": 145, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 4}}, {"id": 147, "type": "identifier", "text": "m_DisplayVideoHeight", "parent": 145, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 25}}, {"id": 148, "type": "declaration", "text": "int m_AspectX;", "parent": 0, "children": [149, 150], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 15}}, {"id": 149, "type": "primitive_type", "text": "int", "parent": 148, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 4}}, {"id": 150, "type": "identifier", "text": "m_AspectX", "parent": 148, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 14}}, {"id": 151, "type": "declaration", "text": "int m_AspectY;", "parent": 0, "children": [152, 153], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 15}}, {"id": 152, "type": "primitive_type", "text": "int", "parent": 151, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 4}}, {"id": 153, "type": "identifier", "text": "m_AspectY", "parent": 151, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 14}}, {"id": 154, "type": "declaration", "text": "CDynamicString m_VideoDecoderName;", "parent": 0, "children": [155, 156], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 35}}, {"id": 155, "type": "type_identifier", "text": "CDynamicString", "parent": 154, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 15}}, {"id": 156, "type": "identifier", "text": "m_VideoDecoderName", "parent": 154, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 34}}, {"id": 157, "type": "declaration", "text": "CDynamicString m_VideoRendererName;", "parent": 0, "children": [158, 159], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 36}}, {"id": 158, "type": "type_identifier", "text": "CDynamicString", "parent": 157, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 15}}, {"id": 159, "type": "identifier", "text": "m_VideoRendererName", "parent": 157, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 35}}, {"id": 160, "type": "declaration", "text": "CDynamicString m_AudioDeviceName;", "parent": 0, "children": [161, 162], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 34}}, {"id": 161, "type": "type_identifier", "text": "CDynamicString", "parent": 160, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 15}}, {"id": 162, "type": "identifier", "text": "m_AudioDeviceName", "parent": 160, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 33}}, {"id": 163, "type": "declaration", "text": "bool m_fSignalLevel;", "parent": 0, "children": [164, 165], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 21}}, {"id": 164, "type": "primitive_type", "text": "bool", "parent": 163, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 5}}, {"id": 165, "type": "identifier", "text": "m_fSignalLevel", "parent": 163, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 20}}, {"id": 166, "type": "declaration", "text": "float m_SignalLevel;", "parent": 0, "children": [167, 168], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 21}}, {"id": 167, "type": "primitive_type", "text": "float", "parent": 166, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 6}}, {"id": 168, "type": "identifier", "text": "m_SignalLevel", "parent": 166, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 20}}, {"id": 169, "type": "declaration", "text": "DWORD m_BitRate;", "parent": 0, "children": [170, 171], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 17}}, {"id": 170, "type": "type_identifier", "text": "DWORD", "parent": 169, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 6}}, {"id": 171, "type": "identifier", "text": "m_BitRate", "parent": 169, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 16}}, {"id": 172, "type": "declaration", "text": "DWORD m_VideoBitRate;", "parent": 0, "children": [173, 174], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 22}}, {"id": 173, "type": "type_identifier", "text": "DWORD", "parent": 172, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 6}}, {"id": 174, "type": "identifier", "text": "m_VideoBitRate", "parent": 172, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 21}}, {"id": 175, "type": "declaration", "text": "DWORD m_AudioBitRate;", "parent": 0, "children": [176, 177], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 22}}, {"id": 176, "type": "type_identifier", "text": "DWORD", "parent": 175, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 6}}, {"id": 177, "type": "identifier", "text": "m_AudioBitRate", "parent": 175, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 21}}, {"id": 178, "type": "declaration", "text": "bool m_fRecording;", "parent": 0, "children": [179, 180], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 19}}, {"id": 179, "type": "primitive_type", "text": "bool", "parent": 178, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 5}}, {"id": 180, "type": "identifier", "text": "m_fRecording", "parent": 178, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 18}}, {"id": 181, "type": "declaration", "text": "ULONGLONG m_RecordWroteSize;", "parent": 0, "children": [182, 183], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 29}}, {"id": 182, "type": "type_identifier", "text": "ULONGLONG", "parent": 181, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 10}}, {"id": 183, "type": "identifier", "text": "m_RecordWroteSize", "parent": 181, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 28}}, {"id": 184, "type": "declaration", "text": "unsigned int m_RecordTime;", "parent": 0, "children": [185, 188], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 27}}, {"id": 185, "type": "sized_type_specifier", "text": "unsigned int", "parent": 184, "children": [186, 187], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 13}}, {"id": 186, "type": "unsigned", "text": "unsigned", "parent": 185, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 9}}, {"id": 187, "type": "primitive_type", "text": "int", "parent": 185, "children": [], "start_point": {"row": 69, "column": 10}, "end_point": {"row": 69, "column": 13}}, {"id": 188, "type": "identifier", "text": "m_RecordTime", "parent": 184, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 26}}, {"id": 189, "type": "declaration", "text": "ULONGLONG m_DiskFreeSpace;", "parent": 0, "children": [190, 191], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 27}}, {"id": 190, "type": "type_identifier", "text": "ULONGLONG", "parent": 189, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 10}}, {"id": 191, "type": "identifier", "text": "m_DiskFreeSpace", "parent": 189, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 26}}, {"id": 192, "type": "declaration", "text": "CDynamicString m_ProgramInfo;", "parent": 0, "children": [193, 194], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 30}}, {"id": 193, "type": "type_identifier", "text": "CDynamicString", "parent": 192, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 15}}, {"id": 194, "type": "identifier", "text": "m_ProgramInfo", "parent": 192, "children": [], "start_point": {"row": 71, "column": 16}, "end_point": {"row": 71, "column": 29}}, {"id": 195, "type": "declaration", "text": "bool m_fNextProgramInfo;", "parent": 0, "children": [196, 197], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 25}}, {"id": 196, "type": "primitive_type", "text": "bool", "parent": 195, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 5}}, {"id": 197, "type": "identifier", "text": "m_fNextProgramInfo", "parent": 195, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 24}}, {"id": 198, "type": "declaration", "text": "static const LPCTSTR m_pszItemNameList[];", "parent": 0, "children": [199, 200], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 42}}, {"id": 199, "type": "type_identifier", "text": "LPCTSTR", "parent": 198, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 21}}, {"id": 200, "type": "array_declarator", "text": "m_pszItemNameList[]", "parent": 198, "children": [201], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 41}}, {"id": 201, "type": "identifier", "text": "m_pszItemNameList", "parent": 200, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 39}}, {"id": 202, "type": "declaration", "text": "static LRESULT CALLBACK ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);", "parent": 0, "children": [203, 204, 206], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 94}}, {"id": 203, "type": "type_identifier", "text": "LRESULT", "parent": 202, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 15}}, {"id": 204, "type": "ERROR", "text": "CALLBACK", "parent": 202, "children": [205], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 24}}, {"id": 205, "type": "identifier", "text": "CALLBACK", "parent": 204, "children": [], "start_point": {"row": 76, "column": 16}, "end_point": {"row": 76, "column": 24}}, {"id": 206, "type": "function_declarator", "text": "ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)", "parent": 202, "children": [207, 208], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 93}}, {"id": 207, "type": "identifier", "text": "ProgramInfoHookProc", "parent": 206, "children": [], "start_point": {"row": 76, "column": 25}, "end_point": {"row": 76, "column": 44}}, {"id": 208, "type": "parameter_list", "text": "(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)", "parent": 206, "children": [209, 212, 215, 218], "start_point": {"row": 76, "column": 44}, "end_point": {"row": 76, "column": 93}}, {"id": 209, "type": "parameter_declaration", "text": "HWND hwnd", "parent": 208, "children": [210, 211], "start_point": {"row": 76, "column": 45}, "end_point": {"row": 76, "column": 54}}, {"id": 210, "type": "type_identifier", "text": "HWND", "parent": 209, "children": [], "start_point": {"row": 76, "column": 45}, "end_point": {"row": 76, "column": 49}}, {"id": 211, "type": "identifier", "text": "hwnd", "parent": 209, "children": [], "start_point": {"row": 76, "column": 50}, "end_point": {"row": 76, "column": 54}}, {"id": 212, "type": "parameter_declaration", "text": "UINT uMsg", "parent": 208, "children": [213, 214], "start_point": {"row": 76, "column": 55}, "end_point": {"row": 76, "column": 64}}, {"id": 213, "type": "type_identifier", "text": "UINT", "parent": 212, "children": [], "start_point": {"row": 76, "column": 55}, "end_point": {"row": 76, "column": 59}}, {"id": 214, "type": "identifier", "text": "uMsg", "parent": 212, "children": [], "start_point": {"row": 76, "column": 60}, "end_point": {"row": 76, "column": 64}}, {"id": 215, "type": "parameter_declaration", "text": "WPARAM wParam", "parent": 208, "children": [216, 217], "start_point": {"row": 76, "column": 65}, "end_point": {"row": 76, "column": 78}}, {"id": 216, "type": "type_identifier", "text": "WPARAM", "parent": 215, "children": [], "start_point": {"row": 76, "column": 65}, "end_point": {"row": 76, "column": 71}}, {"id": 217, "type": "identifier", "text": "wParam", "parent": 215, "children": [], "start_point": {"row": 76, "column": 72}, "end_point": {"row": 76, "column": 78}}, {"id": 218, "type": "parameter_declaration", "text": "LPARAM lParam", "parent": 208, "children": [219, 220], "start_point": {"row": 76, "column": 79}, "end_point": {"row": 76, "column": 92}}, {"id": 219, "type": "type_identifier", "text": "LPARAM", "parent": 218, "children": [], "start_point": {"row": 76, "column": 79}, "end_point": {"row": 76, "column": 85}}, {"id": 220, "type": "identifier", "text": "lParam", "parent": 218, "children": [], "start_point": {"row": 76, "column": 86}, "end_point": {"row": 76, "column": 92}}, {"id": 221, "type": "ERROR", "text": "void GetItemRect(int Item,RECT *pRect) const", "parent": 0, "children": [222, 223], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 45}}, {"id": 222, "type": "primitive_type", "text": "void", "parent": 221, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 5}}, {"id": 223, "type": "function_declarator", "text": "GetItemRect(int Item,RECT *pRect) const", "parent": 221, "children": [224, 225], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 45}}, {"id": 224, "type": "identifier", "text": "GetItemRect", "parent": 223, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 17}}, {"id": 225, "type": "parameter_list", "text": "(int Item,RECT *pRect)", "parent": 223, "children": [226, 229], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 39}}, {"id": 226, "type": "parameter_declaration", "text": "int Item", "parent": 225, "children": [227, 228], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 26}}, {"id": 227, "type": "primitive_type", "text": "int", "parent": 226, "children": [], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 21}}, {"id": 228, "type": "identifier", "text": "Item", "parent": 226, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 26}}, {"id": 229, "type": "parameter_declaration", "text": "RECT *pRect", "parent": 225, "children": [230, 231], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 38}}, {"id": 230, "type": "type_identifier", "text": "RECT", "parent": 229, "children": [], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 31}}, {"id": 231, "type": "pointer_declarator", "text": "*pRect", "parent": 229, "children": [232, 233], "start_point": {"row": 77, "column": 32}, "end_point": {"row": 77, "column": 38}}, {"id": 232, "type": "*", "text": "*", "parent": 231, "children": [], "start_point": {"row": 77, "column": 32}, "end_point": {"row": 77, "column": 33}}, {"id": 233, "type": "identifier", "text": "pRect", "parent": 231, "children": [], "start_point": {"row": 77, "column": 33}, "end_point": {"row": 77, "column": 38}}, {"id": 234, "type": "declaration", "text": "void UpdateItem(int Item);", "parent": 0, "children": [235, 236], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 27}}, {"id": 235, "type": "primitive_type", "text": "void", "parent": 234, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 5}}, {"id": 236, "type": "function_declarator", "text": "UpdateItem(int Item)", "parent": 234, "children": [237, 238], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 26}}, {"id": 237, "type": "identifier", "text": "UpdateItem", "parent": 236, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 16}}, {"id": 238, "type": "parameter_list", "text": "(int Item)", "parent": 236, "children": [239], "start_point": {"row": 78, "column": 16}, "end_point": {"row": 78, "column": 26}}, {"id": 239, "type": "parameter_declaration", "text": "int Item", "parent": 238, "children": [240, 241], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 25}}, {"id": 240, "type": "primitive_type", "text": "int", "parent": 239, "children": [], "start_point": {"row": 78, "column": 17}, "end_point": {"row": 78, "column": 20}}, {"id": 241, "type": "identifier", "text": "Item", "parent": 239, "children": [], "start_point": {"row": 78, "column": 21}, "end_point": {"row": 78, "column": 25}}, {"id": 242, "type": "declaration", "text": "void CalcFontHeight();", "parent": 0, "children": [243, 244], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 23}}, {"id": 243, "type": "primitive_type", "text": "void", "parent": 242, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 5}}, {"id": 244, "type": "function_declarator", "text": "CalcFontHeight()", "parent": 242, "children": [245, 246], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 22}}, {"id": 245, "type": "identifier", "text": "CalcFontHeight", "parent": 244, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 20}}, {"id": 246, "type": "parameter_list", "text": "()", "parent": 244, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 22}}, {"id": 247, "type": "declaration", "text": "void Draw(HDC hdc,const RECT &PaintRect);", "parent": 0, "children": [248, 249], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 42}}, {"id": 248, "type": "primitive_type", "text": "void", "parent": 247, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 5}}, {"id": 249, "type": "function_declarator", "text": "Draw(HDC hdc,const RECT &PaintRect)", "parent": 247, "children": [250, 251], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 41}}, {"id": 250, "type": "identifier", "text": "Draw", "parent": 249, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 10}}, {"id": 251, "type": "parameter_list", "text": "(HDC hdc,const RECT &PaintRect)", "parent": 249, "children": [252, 255], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 41}}, {"id": 252, "type": "parameter_declaration", "text": "HDC hdc", "parent": 251, "children": [253, 254], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 18}}, {"id": 253, "type": "type_identifier", "text": "HDC", "parent": 252, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 14}}, {"id": 254, "type": "identifier", "text": "hdc", "parent": 252, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 18}}, {"id": 255, "type": "parameter_declaration", "text": "const RECT &PaintRect", "parent": 251, "children": [256, 257], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 40}}, {"id": 256, "type": "type_identifier", "text": "RECT", "parent": 255, "children": [], "start_point": {"row": 80, "column": 25}, "end_point": {"row": 80, "column": 29}}, {"id": 257, "type": "identifier", "text": "PaintRect", "parent": 255, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 40}}, {"id": 258, "type": "ERROR", "text": "bool GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const", "parent": 0, "children": [259, 260], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 71}}, {"id": 259, "type": "primitive_type", "text": "bool", "parent": 258, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 5}}, {"id": 260, "type": "function_declarator", "text": "GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const", "parent": 258, "children": [261, 262], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 71}}, {"id": 261, "type": "identifier", "text": "GetDrawItemRect", "parent": 260, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 21}}, {"id": 262, "type": "parameter_list", "text": "(int Item,RECT *pRect,const RECT &PaintRect)", "parent": 260, "children": [263, 266, 271], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 65}}, {"id": 263, "type": "parameter_declaration", "text": "int Item", "parent": 262, "children": [264, 265], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 30}}, {"id": 264, "type": "primitive_type", "text": "int", "parent": 263, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 25}}, {"id": 265, "type": "identifier", "text": "Item", "parent": 263, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 30}}, {"id": 266, "type": "parameter_declaration", "text": "RECT *pRect", "parent": 262, "children": [267, 268], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 42}}, {"id": 267, "type": "type_identifier", "text": "RECT", "parent": 266, "children": [], "start_point": {"row": 81, "column": 31}, "end_point": {"row": 81, "column": 35}}, {"id": 268, "type": "pointer_declarator", "text": "*pRect", "parent": 266, "children": [269, 270], "start_point": {"row": 81, "column": 36}, "end_point": {"row": 81, "column": 42}}, {"id": 269, "type": "*", "text": "*", "parent": 268, "children": [], "start_point": {"row": 81, "column": 36}, "end_point": {"row": 81, "column": 37}}, {"id": 270, "type": "identifier", "text": "pRect", "parent": 268, "children": [], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 42}}, {"id": 271, "type": "parameter_declaration", "text": "const RECT &PaintRect", "parent": 262, "children": [272, 273], "start_point": {"row": 81, "column": 43}, "end_point": {"row": 81, "column": 64}}, {"id": 272, "type": "type_identifier", "text": "RECT", "parent": 271, "children": [], "start_point": {"row": 81, "column": 49}, "end_point": {"row": 81, "column": 53}}, {"id": 273, "type": "identifier", "text": "PaintRect", "parent": 271, "children": [], "start_point": {"row": 81, "column": 55}, "end_point": {"row": 81, "column": 64}}, {"id": 274, "type": "declaration", "text": "void DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect);", "parent": 0, "children": [275, 276], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 57}}, {"id": 275, "type": "primitive_type", "text": "void", "parent": 274, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 5}}, {"id": 276, "type": "function_declarator", "text": "DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect)", "parent": 274, "children": [277, 278], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 56}}, {"id": 277, "type": "identifier", "text": "DrawItem", "parent": 276, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 14}}, {"id": 278, "type": "parameter_list", "text": "(HDC hdc,LPCTSTR pszText,const RECT &Rect)", "parent": 276, "children": [279, 282, 285], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 56}}, {"id": 279, "type": "parameter_declaration", "text": "HDC hdc", "parent": 278, "children": [280, 281], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 22}}, {"id": 280, "type": "type_identifier", "text": "HDC", "parent": 279, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 18}}, {"id": 281, "type": "identifier", "text": "hdc", "parent": 279, "children": [], "start_point": {"row": 82, "column": 19}, "end_point": {"row": 82, "column": 22}}, {"id": 282, "type": "parameter_declaration", "text": "LPCTSTR pszText", "parent": 278, "children": [283, 284], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 38}}, {"id": 283, "type": "type_identifier", "text": "LPCTSTR", "parent": 282, "children": [], "start_point": {"row": 82, "column": 23}, "end_point": {"row": 82, "column": 30}}, {"id": 284, "type": "identifier", "text": "pszText", "parent": 282, "children": [], "start_point": {"row": 82, "column": 31}, "end_point": {"row": 82, "column": 38}}, {"id": 285, "type": "parameter_declaration", "text": "const RECT &Rect", "parent": 278, "children": [286, 287], "start_point": {"row": 82, "column": 39}, "end_point": {"row": 82, "column": 55}}, {"id": 286, "type": "type_identifier", "text": "RECT", "parent": 285, "children": [], "start_point": {"row": 82, "column": 45}, "end_point": {"row": 82, "column": 49}}, {"id": 287, "type": "identifier", "text": "Rect", "parent": 285, "children": [], "start_point": {"row": 82, "column": 51}, "end_point": {"row": 82, "column": 55}}, {"id": 288, "type": "ERROR", "text": "LRESULT OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override", "parent": 0, "children": [289, 290], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 76}}, {"id": 289, "type": "type_identifier", "text": "LRESULT", "parent": 288, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 8}}, {"id": 290, "type": "function_declarator", "text": "OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override", "parent": 288, "children": [291, 292, 305], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 76}}, {"id": 291, "type": "identifier", "text": "OnMessage", "parent": 290, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 18}}, {"id": 292, "type": "parameter_list", "text": "(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)", "parent": 290, "children": [293, 296, 299, 302], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 67}}, {"id": 293, "type": "parameter_declaration", "text": "HWND hwnd", "parent": 292, "children": [294, 295], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 28}}, {"id": 294, "type": "type_identifier", "text": "HWND", "parent": 293, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 23}}, {"id": 295, "type": "identifier", "text": "hwnd", "parent": 293, "children": [], "start_point": {"row": 84, "column": 24}, "end_point": {"row": 84, "column": 28}}, {"id": 296, "type": "parameter_declaration", "text": "UINT uMsg", "parent": 292, "children": [297, 298], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 38}}, {"id": 297, "type": "type_identifier", "text": "UINT", "parent": 296, "children": [], "start_point": {"row": 84, "column": 29}, "end_point": {"row": 84, "column": 33}}, {"id": 298, "type": "identifier", "text": "uMsg", "parent": 296, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 38}}, {"id": 299, "type": "parameter_declaration", "text": "WPARAM wParam", "parent": 292, "children": [300, 301], "start_point": {"row": 84, "column": 39}, "end_point": {"row": 84, "column": 52}}, {"id": 300, "type": "type_identifier", "text": "WPARAM", "parent": 299, "children": [], "start_point": {"row": 84, "column": 39}, "end_point": {"row": 84, "column": 45}}, {"id": 301, "type": "identifier", "text": "wParam", "parent": 299, "children": [], "start_point": {"row": 84, "column": 46}, "end_point": {"row": 84, "column": 52}}, {"id": 302, "type": "parameter_declaration", "text": "LPARAM lParam", "parent": 292, "children": [303, 304], "start_point": {"row": 84, "column": 53}, "end_point": {"row": 84, "column": 66}}, {"id": 303, "type": "type_identifier", "text": "LPARAM", "parent": 302, "children": [], "start_point": {"row": 84, "column": 53}, "end_point": {"row": 84, "column": 59}}, {"id": 304, "type": "identifier", "text": "lParam", "parent": 302, "children": [], "start_point": {"row": 84, "column": 60}, "end_point": {"row": 84, "column": 66}}, {"id": 305, "type": "identifier", "text": "override", "parent": 290, "children": [], "start_point": {"row": 84, "column": 68}, "end_point": {"row": 84, "column": 76}}, {"id": 306, "type": "labeled_statement", "text": "public:\n\tstatic bool Initialize(HINSTANCE hinst);", "parent": 0, "children": [307], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 87, "column": 41}}, {"id": 307, "type": "declaration", "text": "static bool Initialize(HINSTANCE hinst);", "parent": 306, "children": [308, 309], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 41}}, {"id": 308, "type": "primitive_type", "text": "bool", "parent": 307, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 12}}, {"id": 309, "type": "function_declarator", "text": "Initialize(HINSTANCE hinst)", "parent": 307, "children": [310, 311], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 40}}, {"id": 310, "type": "identifier", "text": "Initialize", "parent": 309, "children": [], "start_point": {"row": 87, "column": 13}, "end_point": {"row": 87, "column": 23}}, {"id": 311, "type": "parameter_list", "text": "(HINSTANCE hinst)", "parent": 309, "children": [312], "start_point": {"row": 87, "column": 23}, "end_point": {"row": 87, "column": 40}}, {"id": 312, "type": "parameter_declaration", "text": "HINSTANCE hinst", "parent": 311, "children": [313, 314], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 39}}, {"id": 313, "type": "type_identifier", "text": "HINSTANCE", "parent": 312, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 33}}, {"id": 314, "type": "identifier", "text": "hinst", "parent": 312, "children": [], "start_point": {"row": 87, "column": 34}, "end_point": {"row": 87, "column": 39}}, {"id": 315, "type": "call_expression", "text": "CInformationPanel()", "parent": 0, "children": [316, 317], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 20}}, {"id": 316, "type": "identifier", "text": "CInformationPanel", "parent": 315, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 18}}, {"id": 317, "type": "argument_list", "text": "()", "parent": 315, "children": [], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 20}}, {"id": 318, "type": "unary_expression", "text": "~CInformationPanel()", "parent": 0, "children": [319, 320], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 21}}, {"id": 319, "type": "~", "text": "~", "parent": 318, "children": [], "start_point": {"row": 90, "column": 1}, "end_point": {"row": 90, "column": 2}}, {"id": 320, "type": "call_expression", "text": "CInformationPanel()", "parent": 318, "children": [321, 322], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 21}}, {"id": 321, "type": "identifier", "text": "CInformationPanel", "parent": 320, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 19}}, {"id": 322, "type": "argument_list", "text": "()", "parent": 320, "children": [], "start_point": {"row": 90, "column": 19}, "end_point": {"row": 90, "column": 21}}, {"id": 323, "type": "declaration", "text": "bool Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0,int ID=0) override;", "parent": 0, "children": [324, 325, 340], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 76}}, {"id": 324, "type": "primitive_type", "text": "bool", "parent": 323, "children": [], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 92, "column": 5}}, {"id": 325, "type": "init_declarator", "text": "Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0", "parent": 323, "children": [326, 338, 339], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 56}}, {"id": 326, "type": "function_declarator", "text": "Create(HWND hwndParent,DWORD Style,DWORD ExStyle", "parent": 325, "children": [327, 328], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 54}}, {"id": 327, "type": "identifier", "text": "Create", "parent": 326, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 12}}, {"id": 328, "type": "parameter_list", "text": "(HWND hwndParent,DWORD Style,DWORD ExStyle", "parent": 326, "children": [329, 332, 335], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 54}}, {"id": 329, "type": "parameter_declaration", "text": "HWND hwndParent", "parent": 328, "children": [330, 331], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 28}}, {"id": 330, "type": "type_identifier", "text": "HWND", "parent": 329, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 17}}, {"id": 331, "type": "identifier", "text": "hwndParent", "parent": 329, "children": [], "start_point": {"row": 92, "column": 18}, "end_point": {"row": 92, "column": 28}}, {"id": 332, "type": "parameter_declaration", "text": "DWORD Style", "parent": 328, "children": [333, 334], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 40}}, {"id": 333, "type": "type_identifier", "text": "DWORD", "parent": 332, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 34}}, {"id": 334, "type": "identifier", "text": "Style", "parent": 332, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 40}}, {"id": 335, "type": "parameter_declaration", "text": "DWORD ExStyle", "parent": 328, "children": [336, 337], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 54}}, {"id": 336, "type": "type_identifier", "text": "DWORD", "parent": 335, "children": [], "start_point": {"row": 92, "column": 41}, "end_point": {"row": 92, "column": 46}}, {"id": 337, "type": "identifier", "text": "ExStyle", "parent": 335, "children": [], "start_point": {"row": 92, "column": 47}, "end_point": {"row": 92, "column": 54}}, {"id": 338, "type": "=", "text": "=", "parent": 325, "children": [], "start_point": {"row": 92, "column": 54}, "end_point": {"row": 92, "column": 55}}, {"id": 339, "type": "number_literal", "text": "0", "parent": 325, "children": [], "start_point": {"row": 92, "column": 55}, "end_point": {"row": 92, "column": 56}}, {"id": 340, "type": "init_declarator", "text": "int ID=0) override", "parent": 323, "children": [341, 342, 344, 345, 347], "start_point": {"row": 92, "column": 57}, "end_point": {"row": 92, "column": 75}}, {"id": 341, "type": "identifier", "text": "int", "parent": 340, "children": [], "start_point": {"row": 92, "column": 57}, "end_point": {"row": 92, "column": 60}}, {"id": 342, "type": "ERROR", "text": "ID", "parent": 340, "children": [343], "start_point": {"row": 92, "column": 61}, "end_point": {"row": 92, "column": 63}}, {"id": 343, "type": "identifier", "text": "ID", "parent": 342, "children": [], "start_point": {"row": 92, "column": 61}, "end_point": {"row": 92, "column": 63}}, {"id": 344, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 92, "column": 63}, "end_point": {"row": 92, "column": 64}}, {"id": 345, "type": "ERROR", "text": "0)", "parent": 340, "children": [346], "start_point": {"row": 92, "column": 64}, "end_point": {"row": 92, "column": 66}}, {"id": 346, "type": "number_literal", "text": "0", "parent": 345, "children": [], "start_point": {"row": 92, "column": 64}, "end_point": {"row": 92, "column": 65}}, {"id": 347, "type": "identifier", "text": "override", "parent": 340, "children": [], "start_point": {"row": 92, "column": 67}, "end_point": {"row": 92, "column": 75}}, {"id": 348, "type": "ERROR", "text": "bool ReadSettings(CSettings &Settings) override", "parent": 0, "children": [349, 350], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 48}}, {"id": 349, "type": "primitive_type", "text": "bool", "parent": 348, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 5}}, {"id": 350, "type": "function_declarator", "text": "ReadSettings(CSettings &Settings) override", "parent": 348, "children": [351, 352, 356], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 48}}, {"id": 351, "type": "identifier", "text": "ReadSettings", "parent": 350, "children": [], "start_point": {"row": 94, "column": 6}, "end_point": {"row": 94, "column": 18}}, {"id": 352, "type": "parameter_list", "text": "(CSettings &Settings)", "parent": 350, "children": [353], "start_point": {"row": 94, "column": 18}, "end_point": {"row": 94, "column": 39}}, {"id": 353, "type": "parameter_declaration", "text": "CSettings &Settings", "parent": 352, "children": [354, 355], "start_point": {"row": 94, "column": 19}, "end_point": {"row": 94, "column": 38}}, {"id": 354, "type": "type_identifier", "text": "CSettings", "parent": 353, "children": [], "start_point": {"row": 94, "column": 19}, "end_point": {"row": 94, "column": 28}}, {"id": 355, "type": "identifier", "text": "Settings", "parent": 353, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 38}}, {"id": 356, "type": "identifier", "text": "override", "parent": 350, "children": [], "start_point": {"row": 94, "column": 40}, "end_point": {"row": 94, "column": 48}}, {"id": 357, "type": "ERROR", "text": "bool WriteSettings(CSettings &Settings) override", "parent": 0, "children": [358, 359], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 49}}, {"id": 358, "type": "primitive_type", "text": "bool", "parent": 357, "children": [], "start_point": {"row": 95, "column": 1}, "end_point": {"row": 95, "column": 5}}, {"id": 359, "type": "function_declarator", "text": "WriteSettings(CSettings &Settings) override", "parent": 357, "children": [360, 361, 365], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 49}}, {"id": 360, "type": "identifier", "text": "WriteSettings", "parent": 359, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 19}}, {"id": 361, "type": "parameter_list", "text": "(CSettings &Settings)", "parent": 359, "children": [362], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 40}}, {"id": 362, "type": "parameter_declaration", "text": "CSettings &Settings", "parent": 361, "children": [363, 364], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 39}}, {"id": 363, "type": "type_identifier", "text": "CSettings", "parent": 362, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 29}}, {"id": 364, "type": "identifier", "text": "Settings", "parent": 362, "children": [], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 39}}, {"id": 365, "type": "identifier", "text": "override", "parent": 359, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 49}}, {"id": 366, "type": "declaration", "text": "void ResetStatistics();", "parent": 0, "children": [367, 368], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 24}}, {"id": 367, "type": "primitive_type", "text": "void", "parent": 366, "children": [], "start_point": {"row": 97, "column": 1}, "end_point": {"row": 97, "column": 5}}, {"id": 368, "type": "function_declarator", "text": "ResetStatistics()", "parent": 366, "children": [369, 370], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 23}}, {"id": 369, "type": "identifier", "text": "ResetStatistics", "parent": 368, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 21}}, {"id": 370, "type": "parameter_list", "text": "()", "parent": 368, "children": [], "start_point": {"row": 97, "column": 21}, "end_point": {"row": 97, "column": 23}}, {"id": 371, "type": "function_definition", "text": "bool IsVisible() const;\n\tvoid SetColor(COLORREF crBackColor,COLORREF crTextColor);\n\tvoid SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);\n\tbool SetFont(const LOGFONT *pFont);\n\tbool SetItemVisible(int Item,bool fVisible);\n\tbool IsItemVisible(int Item) const;\n\tvoid SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);\n\tvoid SetAspectRatio(int AspectX,int AspectY);\n\tvoid SetVideoDecoderName(LPCTSTR pszName);\n\tvoid SetVideoRendererName(LPCTSTR pszName);\n\tvoid SetAudioDeviceName(LPCTSTR pszName);\n\tvoid SetSignalLevel(float Level);\n\tvoid ShowSignalLevel(bool fShow);\n\tbool IsSignalLevelEnabled() const { return m_fSignalLevel; }", "parent": 0, "children": [372, 373, 376, 387, 398, 408, 419, 427, 444, 455, 463, 471, 479, 487, 495], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 111, "column": 61}}, {"id": 372, "type": "primitive_type", "text": "bool", "parent": 371, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 5}}, {"id": 373, "type": "function_declarator", "text": "IsVisible()", "parent": 371, "children": [374, 375], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 17}}, {"id": 374, "type": "identifier", "text": "IsVisible", "parent": 373, "children": [], "start_point": {"row": 98, "column": 6}, "end_point": {"row": 98, "column": 15}}, {"id": 375, "type": "parameter_list", "text": "()", "parent": 373, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 17}}, {"id": 376, "type": "declaration", "text": "const;\n\tvoid SetColor(COLORREF crBackColor,COLORREF crTextColor);", "parent": 371, "children": [377, 378], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 99, "column": 58}}, {"id": 377, "type": "primitive_type", "text": "void", "parent": 376, "children": [], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 5}}, {"id": 378, "type": "function_declarator", "text": "SetColor(COLORREF crBackColor,COLORREF crTextColor)", "parent": 376, "children": [379, 380], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 57}}, {"id": 379, "type": "identifier", "text": "SetColor", "parent": 378, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 14}}, {"id": 380, "type": "parameter_list", "text": "(COLORREF crBackColor,COLORREF crTextColor)", "parent": 378, "children": [381, 384], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 57}}, {"id": 381, "type": "parameter_declaration", "text": "COLORREF crBackColor", "parent": 380, "children": [382, 383], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 35}}, {"id": 382, "type": "type_identifier", "text": "COLORREF", "parent": 381, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 23}}, {"id": 383, "type": "identifier", "text": "crBackColor", "parent": 381, "children": [], "start_point": {"row": 99, "column": 24}, "end_point": {"row": 99, "column": 35}}, {"id": 384, "type": "parameter_declaration", "text": "COLORREF crTextColor", "parent": 380, "children": [385, 386], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 56}}, {"id": 385, "type": "type_identifier", "text": "COLORREF", "parent": 384, "children": [], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 44}}, {"id": 386, "type": "identifier", "text": "crTextColor", "parent": 384, "children": [], "start_point": {"row": 99, "column": 45}, "end_point": {"row": 99, "column": 56}}, {"id": 387, "type": "declaration", "text": "void SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);", "parent": 371, "children": [388, 389], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 69}}, {"id": 388, "type": "primitive_type", "text": "void", "parent": 387, "children": [], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 100, "column": 5}}, {"id": 389, "type": "function_declarator", "text": "SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor)", "parent": 387, "children": [390, 391], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 68}}, {"id": 390, "type": "identifier", "text": "SetProgramInfoColor", "parent": 389, "children": [], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 25}}, {"id": 391, "type": "parameter_list", "text": "(COLORREF crBackColor,COLORREF crTextColor)", "parent": 389, "children": [392, 395], "start_point": {"row": 100, "column": 25}, "end_point": {"row": 100, "column": 68}}, {"id": 392, "type": "parameter_declaration", "text": "COLORREF crBackColor", "parent": 391, "children": [393, 394], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 46}}, {"id": 393, "type": "type_identifier", "text": "COLORREF", "parent": 392, "children": [], "start_point": {"row": 100, "column": 26}, "end_point": {"row": 100, "column": 34}}, {"id": 394, "type": "identifier", "text": "crBackColor", "parent": 392, "children": [], "start_point": {"row": 100, "column": 35}, "end_point": {"row": 100, "column": 46}}, {"id": 395, "type": "parameter_declaration", "text": "COLORREF crTextColor", "parent": 391, "children": [396, 397], "start_point": {"row": 100, "column": 47}, "end_point": {"row": 100, "column": 67}}, {"id": 396, "type": "type_identifier", "text": "COLORREF", "parent": 395, "children": [], "start_point": {"row": 100, "column": 47}, "end_point": {"row": 100, "column": 55}}, {"id": 397, "type": "identifier", "text": "crTextColor", "parent": 395, "children": [], "start_point": {"row": 100, "column": 56}, "end_point": {"row": 100, "column": 67}}, {"id": 398, "type": "declaration", "text": "bool SetFont(const LOGFONT *pFont);", "parent": 371, "children": [399, 400], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 36}}, {"id": 399, "type": "primitive_type", "text": "bool", "parent": 398, "children": [], "start_point": {"row": 101, "column": 1}, "end_point": {"row": 101, "column": 5}}, {"id": 400, "type": "function_declarator", "text": "SetFont(const LOGFONT *pFont)", "parent": 398, "children": [401, 402], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 35}}, {"id": 401, "type": "identifier", "text": "SetFont", "parent": 400, "children": [], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 13}}, {"id": 402, "type": "parameter_list", "text": "(const LOGFONT *pFont)", "parent": 400, "children": [403], "start_point": {"row": 101, "column": 13}, "end_point": {"row": 101, "column": 35}}, {"id": 403, "type": "parameter_declaration", "text": "const LOGFONT *pFont", "parent": 402, "children": [404, 405], "start_point": {"row": 101, "column": 14}, "end_point": {"row": 101, "column": 34}}, {"id": 404, "type": "type_identifier", "text": "LOGFONT", "parent": 403, "children": [], "start_point": {"row": 101, "column": 20}, "end_point": {"row": 101, "column": 27}}, {"id": 405, "type": "pointer_declarator", "text": "*pFont", "parent": 403, "children": [406, 407], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 34}}, {"id": 406, "type": "*", "text": "*", "parent": 405, "children": [], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 29}}, {"id": 407, "type": "identifier", "text": "pFont", "parent": 405, "children": [], "start_point": {"row": 101, "column": 29}, "end_point": {"row": 101, "column": 34}}, {"id": 408, "type": "declaration", "text": "bool SetItemVisible(int Item,bool fVisible);", "parent": 371, "children": [409, 410], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 45}}, {"id": 409, "type": "primitive_type", "text": "bool", "parent": 408, "children": [], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 102, "column": 5}}, {"id": 410, "type": "function_declarator", "text": "SetItemVisible(int Item,bool fVisible)", "parent": 408, "children": [411, 412], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 44}}, {"id": 411, "type": "identifier", "text": "SetItemVisible", "parent": 410, "children": [], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 20}}, {"id": 412, "type": "parameter_list", "text": "(int Item,bool fVisible)", "parent": 410, "children": [413, 416], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 44}}, {"id": 413, "type": "parameter_declaration", "text": "int Item", "parent": 412, "children": [414, 415], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 29}}, {"id": 414, "type": "primitive_type", "text": "int", "parent": 413, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 24}}, {"id": 415, "type": "identifier", "text": "Item", "parent": 413, "children": [], "start_point": {"row": 102, "column": 25}, "end_point": {"row": 102, "column": 29}}, {"id": 416, "type": "parameter_declaration", "text": "bool fVisible", "parent": 412, "children": [417, 418], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 43}}, {"id": 417, "type": "primitive_type", "text": "bool", "parent": 416, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 34}}, {"id": 418, "type": "identifier", "text": "fVisible", "parent": 416, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 43}}, {"id": 419, "type": "ERROR", "text": "bool IsItemVisible(int Item) const;", "parent": 371, "children": [420, 421], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 36}}, {"id": 420, "type": "primitive_type", "text": "bool", "parent": 419, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 5}}, {"id": 421, "type": "function_declarator", "text": "IsItemVisible(int Item) const", "parent": 419, "children": [422, 423], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 35}}, {"id": 422, "type": "identifier", "text": "IsItemVisible", "parent": 421, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 19}}, {"id": 423, "type": "parameter_list", "text": "(int Item)", "parent": 421, "children": [424], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 29}}, {"id": 424, "type": "parameter_declaration", "text": "int Item", "parent": 423, "children": [425, 426], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 28}}, {"id": 425, "type": "primitive_type", "text": "int", "parent": 424, "children": [], "start_point": {"row": 103, "column": 20}, "end_point": {"row": 103, "column": 23}}, {"id": 426, "type": "identifier", "text": "Item", "parent": 424, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 28}}, {"id": 427, "type": "declaration", "text": "void SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);", "parent": 371, "children": [428, 429], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 92}}, {"id": 428, "type": "primitive_type", "text": "void", "parent": 427, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 5}}, {"id": 429, "type": "function_declarator", "text": "SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight)", "parent": 427, "children": [430, 431], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 91}}, {"id": 430, "type": "identifier", "text": "SetVideoSize", "parent": 429, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 18}}, {"id": 431, "type": "parameter_list", "text": "(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight)", "parent": 429, "children": [432, 435, 438, 441], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 91}}, {"id": 432, "type": "parameter_declaration", "text": "int OriginalWidth", "parent": 431, "children": [433, 434], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 36}}, {"id": 433, "type": "primitive_type", "text": "int", "parent": 432, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 22}}, {"id": 434, "type": "identifier", "text": "OriginalWidth", "parent": 432, "children": [], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 36}}, {"id": 435, "type": "parameter_declaration", "text": "int OriginalHeight", "parent": 431, "children": [436, 437], "start_point": {"row": 104, "column": 37}, "end_point": {"row": 104, "column": 55}}, {"id": 436, "type": "primitive_type", "text": "int", "parent": 435, "children": [], "start_point": {"row": 104, "column": 37}, "end_point": {"row": 104, "column": 40}}, {"id": 437, "type": "identifier", "text": "OriginalHeight", "parent": 435, "children": [], "start_point": {"row": 104, "column": 41}, "end_point": {"row": 104, "column": 55}}, {"id": 438, "type": "parameter_declaration", "text": "int DisplayWidth", "parent": 431, "children": [439, 440], "start_point": {"row": 104, "column": 56}, "end_point": {"row": 104, "column": 72}}, {"id": 439, "type": "primitive_type", "text": "int", "parent": 438, "children": [], "start_point": {"row": 104, "column": 56}, "end_point": {"row": 104, "column": 59}}, {"id": 440, "type": "identifier", "text": "DisplayWidth", "parent": 438, "children": [], "start_point": {"row": 104, "column": 60}, "end_point": {"row": 104, "column": 72}}, {"id": 441, "type": "parameter_declaration", "text": "int DisplayHeight", "parent": 431, "children": [442, 443], "start_point": {"row": 104, "column": 73}, "end_point": {"row": 104, "column": 90}}, {"id": 442, "type": "primitive_type", "text": "int", "parent": 441, "children": [], "start_point": {"row": 104, "column": 73}, "end_point": {"row": 104, "column": 76}}, {"id": 443, "type": "identifier", "text": "DisplayHeight", "parent": 441, "children": [], "start_point": {"row": 104, "column": 77}, "end_point": {"row": 104, "column": 90}}, {"id": 444, "type": "declaration", "text": "void SetAspectRatio(int AspectX,int AspectY);", "parent": 371, "children": [445, 446], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 46}}, {"id": 445, "type": "primitive_type", "text": "void", "parent": 444, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 5}}, {"id": 446, "type": "function_declarator", "text": "SetAspectRatio(int AspectX,int AspectY)", "parent": 444, "children": [447, 448], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 45}}, {"id": 447, "type": "identifier", "text": "SetAspectRatio", "parent": 446, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 20}}, {"id": 448, "type": "parameter_list", "text": "(int AspectX,int AspectY)", "parent": 446, "children": [449, 452], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 45}}, {"id": 449, "type": "parameter_declaration", "text": "int AspectX", "parent": 448, "children": [450, 451], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 32}}, {"id": 450, "type": "primitive_type", "text": "int", "parent": 449, "children": [], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 24}}, {"id": 451, "type": "identifier", "text": "AspectX", "parent": 449, "children": [], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 32}}, {"id": 452, "type": "parameter_declaration", "text": "int AspectY", "parent": 448, "children": [453, 454], "start_point": {"row": 105, "column": 33}, "end_point": {"row": 105, "column": 44}}, {"id": 453, "type": "primitive_type", "text": "int", "parent": 452, "children": [], "start_point": {"row": 105, "column": 33}, "end_point": {"row": 105, "column": 36}}, {"id": 454, "type": "identifier", "text": "AspectY", "parent": 452, "children": [], "start_point": {"row": 105, "column": 37}, "end_point": {"row": 105, "column": 44}}, {"id": 455, "type": "declaration", "text": "void SetVideoDecoderName(LPCTSTR pszName);", "parent": 371, "children": [456, 457], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 43}}, {"id": 456, "type": "primitive_type", "text": "void", "parent": 455, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 5}}, {"id": 457, "type": "function_declarator", "text": "SetVideoDecoderName(LPCTSTR pszName)", "parent": 455, "children": [458, 459], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 42}}, {"id": 458, "type": "identifier", "text": "SetVideoDecoderName", "parent": 457, "children": [], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 25}}, {"id": 459, "type": "parameter_list", "text": "(LPCTSTR pszName)", "parent": 457, "children": [460], "start_point": {"row": 106, "column": 25}, "end_point": {"row": 106, "column": 42}}, {"id": 460, "type": "parameter_declaration", "text": "LPCTSTR pszName", "parent": 459, "children": [461, 462], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 41}}, {"id": 461, "type": "type_identifier", "text": "LPCTSTR", "parent": 460, "children": [], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 33}}, {"id": 462, "type": "identifier", "text": "pszName", "parent": 460, "children": [], "start_point": {"row": 106, "column": 34}, "end_point": {"row": 106, "column": 41}}, {"id": 463, "type": "declaration", "text": "void SetVideoRendererName(LPCTSTR pszName);", "parent": 371, "children": [464, 465], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 44}}, {"id": 464, "type": "primitive_type", "text": "void", "parent": 463, "children": [], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 5}}, {"id": 465, "type": "function_declarator", "text": "SetVideoRendererName(LPCTSTR pszName)", "parent": 463, "children": [466, 467], "start_point": {"row": 107, "column": 6}, "end_point": {"row": 107, "column": 43}}, {"id": 466, "type": "identifier", "text": "SetVideoRendererName", "parent": 465, "children": [], "start_point": {"row": 107, "column": 6}, "end_point": {"row": 107, "column": 26}}, {"id": 467, "type": "parameter_list", "text": "(LPCTSTR pszName)", "parent": 465, "children": [468], "start_point": {"row": 107, "column": 26}, "end_point": {"row": 107, "column": 43}}, {"id": 468, "type": "parameter_declaration", "text": "LPCTSTR pszName", "parent": 467, "children": [469, 470], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 42}}, {"id": 469, "type": "type_identifier", "text": "LPCTSTR", "parent": 468, "children": [], "start_point": {"row": 107, "column": 27}, "end_point": {"row": 107, "column": 34}}, {"id": 470, "type": "identifier", "text": "pszName", "parent": 468, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 42}}, {"id": 471, "type": "declaration", "text": "void SetAudioDeviceName(LPCTSTR pszName);", "parent": 371, "children": [472, 473], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 42}}, {"id": 472, "type": "primitive_type", "text": "void", "parent": 471, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 5}}, {"id": 473, "type": "function_declarator", "text": "SetAudioDeviceName(LPCTSTR pszName)", "parent": 471, "children": [474, 475], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 41}}, {"id": 474, "type": "identifier", "text": "SetAudioDeviceName", "parent": 473, "children": [], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 24}}, {"id": 475, "type": "parameter_list", "text": "(LPCTSTR pszName)", "parent": 473, "children": [476], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 41}}, {"id": 476, "type": "parameter_declaration", "text": "LPCTSTR pszName", "parent": 475, "children": [477, 478], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 40}}, {"id": 477, "type": "type_identifier", "text": "LPCTSTR", "parent": 476, "children": [], "start_point": {"row": 108, "column": 25}, "end_point": {"row": 108, "column": 32}}, {"id": 478, "type": "identifier", "text": "pszName", "parent": 476, "children": [], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 40}}, {"id": 479, "type": "declaration", "text": "void SetSignalLevel(float Level);", "parent": 371, "children": [480, 481], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 34}}, {"id": 480, "type": "primitive_type", "text": "void", "parent": 479, "children": [], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 109, "column": 5}}, {"id": 481, "type": "function_declarator", "text": "SetSignalLevel(float Level)", "parent": 479, "children": [482, 483], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 33}}, {"id": 482, "type": "identifier", "text": "SetSignalLevel", "parent": 481, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 20}}, {"id": 483, "type": "parameter_list", "text": "(float Level)", "parent": 481, "children": [484], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 33}}, {"id": 484, "type": "parameter_declaration", "text": "float Level", "parent": 483, "children": [485, 486], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 32}}, {"id": 485, "type": "primitive_type", "text": "float", "parent": 484, "children": [], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 26}}, {"id": 486, "type": "identifier", "text": "Level", "parent": 484, "children": [], "start_point": {"row": 109, "column": 27}, "end_point": {"row": 109, "column": 32}}, {"id": 487, "type": "declaration", "text": "void ShowSignalLevel(bool fShow);", "parent": 371, "children": [488, 489], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 34}}, {"id": 488, "type": "primitive_type", "text": "void", "parent": 487, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 5}}, {"id": 489, "type": "function_declarator", "text": "ShowSignalLevel(bool fShow)", "parent": 487, "children": [490, 491], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 33}}, {"id": 490, "type": "identifier", "text": "ShowSignalLevel", "parent": 489, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 21}}, {"id": 491, "type": "parameter_list", "text": "(bool fShow)", "parent": 489, "children": [492], "start_point": {"row": 110, "column": 21}, "end_point": {"row": 110, "column": 33}}, {"id": 492, "type": "parameter_declaration", "text": "bool fShow", "parent": 491, "children": [493, 494], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 32}}, {"id": 493, "type": "primitive_type", "text": "bool", "parent": 492, "children": [], "start_point": {"row": 110, "column": 22}, "end_point": {"row": 110, "column": 26}}, {"id": 494, "type": "identifier", "text": "fShow", "parent": 492, "children": [], "start_point": {"row": 110, "column": 27}, "end_point": {"row": 110, "column": 32}}, {"id": 495, "type": "ERROR", "text": "bool IsSignalLevelEnabled() const", "parent": 371, "children": [496, 497], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 34}}, {"id": 496, "type": "primitive_type", "text": "bool", "parent": 495, "children": [], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 111, "column": 5}}, {"id": 497, "type": "function_declarator", "text": "IsSignalLevelEnabled() const", "parent": 495, "children": [498, 499], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 34}}, {"id": 498, "type": "identifier", "text": "IsSignalLevelEnabled", "parent": 497, "children": [], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 26}}, {"id": 499, "type": "parameter_list", "text": "()", "parent": 497, "children": [], "start_point": {"row": 111, "column": 26}, "end_point": {"row": 111, "column": 28}}, {"id": 500, "type": "return_statement", "text": "return m_fSignalLevel;", "parent": 371, "children": [501], "start_point": {"row": 111, "column": 37}, "end_point": {"row": 111, "column": 59}}, {"id": 501, "type": "identifier", "text": "m_fSignalLevel", "parent": 500, "children": [], "start_point": {"row": 111, "column": 44}, "end_point": {"row": 111, "column": 58}}, {"id": 502, "type": "declaration", "text": "void SetBitRate(DWORD BitRate);", "parent": 0, "children": [503, 504], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 32}}, {"id": 503, "type": "primitive_type", "text": "void", "parent": 502, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 5}}, {"id": 504, "type": "function_declarator", "text": "SetBitRate(DWORD BitRate)", "parent": 502, "children": [505, 506], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 31}}, {"id": 505, "type": "identifier", "text": "SetBitRate", "parent": 504, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 16}}, {"id": 506, "type": "parameter_list", "text": "(DWORD BitRate)", "parent": 504, "children": [507], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 31}}, {"id": 507, "type": "parameter_declaration", "text": "DWORD BitRate", "parent": 506, "children": [508, 509], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 30}}, {"id": 508, "type": "type_identifier", "text": "DWORD", "parent": 507, "children": [], "start_point": {"row": 112, "column": 17}, "end_point": {"row": 112, "column": 22}}, {"id": 509, "type": "identifier", "text": "BitRate", "parent": 507, "children": [], "start_point": {"row": 112, "column": 23}, "end_point": {"row": 112, "column": 30}}, {"id": 510, "type": "declaration", "text": "void SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate);", "parent": 0, "children": [511, 512], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 61}}, {"id": 511, "type": "primitive_type", "text": "void", "parent": 510, "children": [], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 5}}, {"id": 512, "type": "function_declarator", "text": "SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate)", "parent": 510, "children": [513, 514], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 60}}, {"id": 513, "type": "identifier", "text": "SetMediaBitRate", "parent": 512, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 21}}, {"id": 514, "type": "parameter_list", "text": "(DWORD VideoBitRate,DWORD AudioBitRate)", "parent": 512, "children": [515, 518], "start_point": {"row": 113, "column": 21}, "end_point": {"row": 113, "column": 60}}, {"id": 515, "type": "parameter_declaration", "text": "DWORD VideoBitRate", "parent": 514, "children": [516, 517], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 40}}, {"id": 516, "type": "type_identifier", "text": "DWORD", "parent": 515, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 27}}, {"id": 517, "type": "identifier", "text": "VideoBitRate", "parent": 515, "children": [], "start_point": {"row": 113, "column": 28}, "end_point": {"row": 113, "column": 40}}, {"id": 518, "type": "parameter_declaration", "text": "DWORD AudioBitRate", "parent": 514, "children": [519, 520], "start_point": {"row": 113, "column": 41}, "end_point": {"row": 113, "column": 59}}, {"id": 519, "type": "type_identifier", "text": "DWORD", "parent": 518, "children": [], "start_point": {"row": 113, "column": 41}, "end_point": {"row": 113, "column": 46}}, {"id": 520, "type": "identifier", "text": "AudioBitRate", "parent": 518, "children": [], "start_point": {"row": 113, "column": 47}, "end_point": {"row": 113, "column": 59}}, {"id": 521, "type": "declaration", "text": "void UpdateErrorCount();", "parent": 0, "children": [522, 523], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 25}}, {"id": 522, "type": "primitive_type", "text": "void", "parent": 521, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 5}}, {"id": 523, "type": "function_declarator", "text": "UpdateErrorCount()", "parent": 521, "children": [524, 525], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 24}}, {"id": 524, "type": "identifier", "text": "UpdateErrorCount", "parent": 523, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 22}}, {"id": 525, "type": "parameter_list", "text": "()", "parent": 523, "children": [], "start_point": {"row": 114, "column": 22}, "end_point": {"row": 114, "column": 24}}, {"id": 526, "type": "declaration", "text": "void SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL,\n\t\t\t\t\t\t ULONGLONG WroteSize=0,unsigned int RecordTime=0,\n\t\t\t\t\t\t ULONGLONG FreeSpace=0);", "parent": 0, "children": [527, 528, 541, 543, 547, 550, 554, 556], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 117, "column": 30}}, {"id": 527, "type": "primitive_type", "text": "void", "parent": 526, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 115, "column": 5}}, {"id": 528, "type": "init_declarator", "text": "SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL", "parent": 526, "children": [529, 538, 539], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 62}}, {"id": 529, "type": "function_declarator", "text": "SetRecordStatus(bool fRecording,LPCTSTR pszFileName", "parent": 528, "children": [530, 531], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 57}}, {"id": 530, "type": "identifier", "text": "SetRecordStatus", "parent": 529, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 21}}, {"id": 531, "type": "parameter_list", "text": "(bool fRecording,LPCTSTR pszFileName", "parent": 529, "children": [532, 535], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 57}}, {"id": 532, "type": "parameter_declaration", "text": "bool fRecording", "parent": 531, "children": [533, 534], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 37}}, {"id": 533, "type": "primitive_type", "text": "bool", "parent": 532, "children": [], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 26}}, {"id": 534, "type": "identifier", "text": "fRecording", "parent": 532, "children": [], "start_point": {"row": 115, "column": 27}, "end_point": {"row": 115, "column": 37}}, {"id": 535, "type": "parameter_declaration", "text": "LPCTSTR pszFileName", "parent": 531, "children": [536, 537], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 57}}, {"id": 536, "type": "type_identifier", "text": "LPCTSTR", "parent": 535, "children": [], "start_point": {"row": 115, "column": 38}, "end_point": {"row": 115, "column": 45}}, {"id": 537, "type": "identifier", "text": "pszFileName", "parent": 535, "children": [], "start_point": {"row": 115, "column": 46}, "end_point": {"row": 115, "column": 57}}, {"id": 538, "type": "=", "text": "=", "parent": 528, "children": [], "start_point": {"row": 115, "column": 57}, "end_point": {"row": 115, "column": 58}}, {"id": 539, "type": "null", "text": "NULL", "parent": 528, "children": [540], "start_point": {"row": 115, "column": 58}, "end_point": {"row": 115, "column": 62}}, {"id": 540, "type": "NULL", "text": "NULL", "parent": 539, "children": [], "start_point": {"row": 115, "column": 58}, "end_point": {"row": 115, "column": 62}}, {"id": 541, "type": "ERROR", "text": "ULONGLONG", "parent": 526, "children": [542], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 16}}, {"id": 542, "type": "identifier", "text": "ULONGLONG", "parent": 541, "children": [], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 16}}, {"id": 543, "type": "init_declarator", "text": "WroteSize=0", "parent": 526, "children": [544, 545, 546], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 28}}, {"id": 544, "type": "identifier", "text": "WroteSize", "parent": 543, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 26}}, {"id": 545, "type": "=", "text": "=", "parent": 543, "children": [], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 27}}, {"id": 546, "type": "number_literal", "text": "0", "parent": 543, "children": [], "start_point": {"row": 116, "column": 27}, "end_point": {"row": 116, "column": 28}}, {"id": 547, "type": "ERROR", "text": "unsigned int", "parent": 526, "children": [548, 549], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 41}}, {"id": 548, "type": "identifier", "text": "unsigned", "parent": 547, "children": [], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 37}}, {"id": 549, "type": "identifier", "text": "int", "parent": 547, "children": [], "start_point": {"row": 116, "column": 38}, "end_point": {"row": 116, "column": 41}}, {"id": 550, "type": "init_declarator", "text": "RecordTime=0", "parent": 526, "children": [551, 552, 553], "start_point": {"row": 116, "column": 42}, "end_point": {"row": 116, "column": 54}}, {"id": 551, "type": "identifier", "text": "RecordTime", "parent": 550, "children": [], "start_point": {"row": 116, "column": 42}, "end_point": {"row": 116, "column": 52}}, {"id": 552, "type": "=", "text": "=", "parent": 550, "children": [], "start_point": {"row": 116, "column": 52}, "end_point": {"row": 116, "column": 53}}, {"id": 553, "type": "number_literal", "text": "0", "parent": 550, "children": [], "start_point": {"row": 116, "column": 53}, "end_point": {"row": 116, "column": 54}}, {"id": 554, "type": "ERROR", "text": "ULONGLONG", "parent": 526, "children": [555], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 16}}, {"id": 555, "type": "identifier", "text": "ULONGLONG", "parent": 554, "children": [], "start_point": {"row": 117, "column": 7}, "end_point": {"row": 117, "column": 16}}, {"id": 556, "type": "init_declarator", "text": "FreeSpace=0", "parent": 526, "children": [557, 558, 559], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 28}}, {"id": 557, "type": "identifier", "text": "FreeSpace", "parent": 556, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 26}}, {"id": 558, "type": "=", "text": "=", "parent": 556, "children": [], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 27}}, {"id": 559, "type": "number_literal", "text": "0", "parent": 556, "children": [], "start_point": {"row": 117, "column": 27}, "end_point": {"row": 117, "column": 28}}, {"id": 560, "type": "declaration", "text": "void SetProgramInfo(LPCTSTR pszInfo);", "parent": 0, "children": [561, 562], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 38}}, {"id": 561, "type": "primitive_type", "text": "void", "parent": 560, "children": [], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 5}}, {"id": 562, "type": "function_declarator", "text": "SetProgramInfo(LPCTSTR pszInfo)", "parent": 560, "children": [563, 564], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 37}}, {"id": 563, "type": "identifier", "text": "SetProgramInfo", "parent": 562, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 20}}, {"id": 564, "type": "parameter_list", "text": "(LPCTSTR pszInfo)", "parent": 562, "children": [565], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 37}}, {"id": 565, "type": "parameter_declaration", "text": "LPCTSTR pszInfo", "parent": 564, "children": [566, 567], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 36}}, {"id": 566, "type": "type_identifier", "text": "LPCTSTR", "parent": 565, "children": [], "start_point": {"row": 118, "column": 21}, "end_point": {"row": 118, "column": 28}}, {"id": 567, "type": "identifier", "text": "pszInfo", "parent": 565, "children": [], "start_point": {"row": 118, "column": 29}, "end_point": {"row": 118, "column": 36}}, {"id": 568, "type": "ERROR", "text": "bool GetProgramInfoNext() const", "parent": 0, "children": [569, 570], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 32}}, {"id": 569, "type": "primitive_type", "text": "bool", "parent": 568, "children": [], "start_point": {"row": 119, "column": 1}, "end_point": {"row": 119, "column": 5}}, {"id": 570, "type": "function_declarator", "text": "GetProgramInfoNext()", "parent": 568, "children": [571, 572], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 26}}, {"id": 571, "type": "identifier", "text": "GetProgramInfoNext", "parent": 570, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 24}}, {"id": 572, "type": "parameter_list", "text": "()", "parent": 570, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 26}}, {"id": 573, "type": "return_statement", "text": "return m_fNextProgramInfo;", "parent": 0, "children": [574], "start_point": {"row": 119, "column": 35}, "end_point": {"row": 119, "column": 61}}, {"id": 574, "type": "identifier", "text": "m_fNextProgramInfo", "parent": 573, "children": [], "start_point": {"row": 119, "column": 42}, "end_point": {"row": 119, "column": 60}}, {"id": 575, "type": "declaration", "text": "bool SetEventHandler(CEventHandler *pHandler);", "parent": 0, "children": [576, 577], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 47}}, {"id": 576, "type": "primitive_type", "text": "bool", "parent": 575, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 5}}, {"id": 577, "type": "function_declarator", "text": "SetEventHandler(CEventHandler *pHandler)", "parent": 575, "children": [578, 579], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 46}}, {"id": 578, "type": "identifier", "text": "SetEventHandler", "parent": 577, "children": [], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 21}}, {"id": 579, "type": "parameter_list", "text": "(CEventHandler *pHandler)", "parent": 577, "children": [580], "start_point": {"row": 120, "column": 21}, "end_point": {"row": 120, "column": 46}}, {"id": 580, "type": "parameter_declaration", "text": "CEventHandler *pHandler", "parent": 579, "children": [581, 582], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 45}}, {"id": 581, "type": "type_identifier", "text": "CEventHandler", "parent": 580, "children": [], "start_point": {"row": 120, "column": 22}, "end_point": {"row": 120, "column": 35}}, {"id": 582, "type": "pointer_declarator", "text": "*pHandler", "parent": 580, "children": [583, 584], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 45}}, {"id": 583, "type": "*", "text": "*", "parent": 582, "children": [], "start_point": {"row": 120, "column": 36}, "end_point": {"row": 120, "column": 37}}, {"id": 584, "type": "identifier", "text": "pHandler", "parent": 582, "children": [], "start_point": {"row": 120, "column": 37}, "end_point": {"row": 120, "column": 45}}, {"id": 585, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 124, "column": 6}}]}, "node_categories": {"declarations": {"functions": [23, 33, 38, 206, 223, 236, 244, 249, 260, 276, 290, 309, 326, 350, 359, 368, 371, 373, 378, 389, 400, 410, 421, 429, 446, 457, 465, 473, 481, 489, 497, 504, 512, 523, 529, 562, 570, 577], "variables": [26, 41, 70, 73, 76, 79, 82, 85, 88, 93, 96, 99, 102, 107, 112, 117, 120, 123, 128, 131, 136, 139, 142, 145, 148, 151, 154, 157, 160, 163, 166, 169, 172, 175, 178, 181, 184, 189, 192, 195, 198, 202, 209, 212, 215, 218, 226, 229, 234, 239, 242, 247, 252, 255, 263, 266, 271, 274, 279, 282, 285, 293, 296, 299, 302, 307, 312, 323, 329, 332, 335, 353, 362, 366, 376, 381, 384, 387, 392, 395, 398, 403, 408, 413, 416, 424, 427, 432, 435, 438, 441, 444, 449, 452, 455, 460, 463, 468, 471, 476, 479, 484, 487, 492, 502, 507, 510, 515, 518, 521, 526, 532, 535, 560, 565, 575, 580], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": [46, 47, 48, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67]}, "statements": {"expressions": [315, 318, 320], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 18, 19, 20, 24, 27, 30, 34, 36, 37, 39, 43, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 71, 72, 74, 75, 77, 78, 80, 81, 83, 84, 86, 87, 89, 92, 94, 95, 97, 98, 100, 101, 103, 104, 106, 108, 109, 111, 113, 114, 116, 118, 119, 122, 125, 127, 129, 130, 132, 135, 138, 141, 144, 147, 150, 153, 155, 156, 158, 159, 161, 162, 165, 168, 170, 171, 173, 174, 176, 177, 180, 182, 183, 185, 188, 190, 191, 193, 194, 197, 199, 201, 203, 205, 207, 210, 211, 213, 214, 216, 217, 219, 220, 224, 228, 230, 233, 237, 241, 245, 250, 253, 254, 256, 257, 261, 265, 267, 270, 272, 273, 277, 280, 281, 283, 284, 286, 287, 289, 291, 294, 295, 297, 298, 300, 301, 303, 304, 305, 310, 313, 314, 316, 321, 327, 330, 331, 333, 334, 336, 337, 341, 343, 347, 351, 354, 355, 356, 360, 363, 364, 365, 369, 374, 379, 382, 383, 385, 386, 390, 393, 394, 396, 397, 401, 404, 407, 411, 415, 418, 422, 426, 430, 434, 437, 440, 443, 447, 451, 454, 458, 461, 462, 466, 469, 470, 474, 477, 478, 482, 486, 490, 494, 498, 501, 505, 508, 509, 513, 516, 517, 519, 520, 524, 530, 534, 536, 537, 542, 544, 548, 549, 551, 555, 557, 563, 566, 567, 571, 574, 578, 581, 584, 585], "returns": [44, 500, 573], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 339, 346, 546, 553, 559], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "ABSTRACT_CLASS(CEventHandler)"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "CEventHandler()"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "OnProgramInfoUpdate(bool fNext)"}, {"node_id": 206, "universal_type": "function", "name": "unknown", "text_snippet": "ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam)"}, {"node_id": 223, "universal_type": "function", "name": "unknown", "text_snippet": "GetItemRect(int Item,RECT *pRect) const"}, {"node_id": 236, "universal_type": "function", "name": "unknown", "text_snippet": "UpdateItem(int Item)"}, {"node_id": 244, "universal_type": "function", "name": "unknown", "text_snippet": "CalcFontHeight()"}, {"node_id": 249, "universal_type": "function", "name": "unknown", "text_snippet": "Draw(HDC hdc,const RECT &PaintRect)"}, {"node_id": 260, "universal_type": "function", "name": "unknown", "text_snippet": "GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const"}, {"node_id": 276, "universal_type": "function", "name": "unknown", "text_snippet": "DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect)"}, {"node_id": 290, "universal_type": "function", "name": "unknown", "text_snippet": "OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override"}, {"node_id": 309, "universal_type": "function", "name": "unknown", "text_snippet": "Initialize(HINSTANCE hinst)"}, {"node_id": 326, "universal_type": "function", "name": "unknown", "text_snippet": "Create(HWND hwndParent,DWORD Style,DWORD ExStyle"}, {"node_id": 350, "universal_type": "function", "name": "unknown", "text_snippet": "ReadSettings(CSettings &Settings) override"}, {"node_id": 359, "universal_type": "function", "name": "unknown", "text_snippet": "WriteSettings(CSettings &Settings) override"}, {"node_id": 368, "universal_type": "function", "name": "unknown", "text_snippet": "ResetStatistics()"}, {"node_id": 371, "universal_type": "function", "name": "IsVisible", "text_snippet": "bool IsVisible() const;\n\tvoid SetColor(COLORREF crBackColor,COLORREF crTextColor);\n\tvoid SetProgramI"}, {"node_id": 373, "universal_type": "function", "name": "unknown", "text_snippet": "IsVisible()"}, {"node_id": 378, "universal_type": "function", "name": "unknown", "text_snippet": "SetColor(COLORREF crBackColor,COLORREF crTextColor)"}, {"node_id": 389, "universal_type": "function", "name": "unknown", "text_snippet": "SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor)"}, {"node_id": 400, "universal_type": "function", "name": "unknown", "text_snippet": "SetFont(const LOGFONT *pFont)"}, {"node_id": 410, "universal_type": "function", "name": "unknown", "text_snippet": "SetItemVisible(int Item,bool fVisible)"}, {"node_id": 421, "universal_type": "function", "name": "unknown", "text_snippet": "IsItemVisible(int Item) const"}, {"node_id": 429, "universal_type": "function", "name": "unknown", "text_snippet": "SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight)"}, {"node_id": 446, "universal_type": "function", "name": "unknown", "text_snippet": "SetAspectRatio(int AspectX,int AspectY)"}, {"node_id": 457, "universal_type": "function", "name": "unknown", "text_snippet": "SetVideoDecoderName(LPCTSTR pszName)"}, {"node_id": 465, "universal_type": "function", "name": "unknown", "text_snippet": "SetVideoRendererName(LPCTSTR pszName)"}, {"node_id": 473, "universal_type": "function", "name": "unknown", "text_snippet": "SetAudioDeviceName(LPCTSTR pszName)"}, {"node_id": 481, "universal_type": "function", "name": "unknown", "text_snippet": "SetSignalLevel(float Level)"}, {"node_id": 489, "universal_type": "function", "name": "unknown", "text_snippet": "ShowSignalLevel(bool fShow)"}, {"node_id": 497, "universal_type": "function", "name": "unknown", "text_snippet": "IsSignalLevelEnabled() const"}, {"node_id": 504, "universal_type": "function", "name": "unknown", "text_snippet": "SetBitRate(DWORD BitRate)"}, {"node_id": 512, "universal_type": "function", "name": "unknown", "text_snippet": "SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate)"}, {"node_id": 523, "universal_type": "function", "name": "unknown", "text_snippet": "UpdateErrorCount()"}, {"node_id": 529, "universal_type": "function", "name": "unknown", "text_snippet": "SetRecordStatus(bool fRecording,LPCTSTR pszFileName"}, {"node_id": 562, "universal_type": "function", "name": "unknown", "text_snippet": "SetProgramInfo(LPCTSTR pszInfo)"}, {"node_id": 570, "universal_type": "function", "name": "unknown", "text_snippet": "GetProgramInfoNext()"}, {"node_id": 577, "universal_type": "function", "name": "unknown", "text_snippet": "SetEventHandler(CEventHandler *pHandler)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"PanelForm.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Settings.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"DrawUtil.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#ifndef INFORMATION_PANEL_H\n#define INFORMATION_PANEL_H\n\n\n#include \"PanelForm.h\"\n#include \"Settings.h\"\n#include \"DrawUtil.h\"\n\n\nclass CInformationPanel : public CPanelForm::CPage, public CSettingsBase\n{\npublic:\n\tclass ABSTRACT_CLASS(CEventHandler) {\n\tpublic:\n\t\tvirtual ~CEventHandler() {}\n\t\tvirtual bool OnProgramInfoUpdate(bool fNext) { return false; }\n\t};\n\n\tenum {\n\t\tITEM_VIDEO,\n\t\tITEM_DECODER,\n\t\tITEM_VIDEORENDERER,\n\t\tITEM_AUDIODEVICE,\n\t\tITEM_SIGNALLEVEL,\n\t\tITEM_MEDIABITRATE,\n\t\tITEM_ERROR,\n\t\tITEM_RECORD,\n\t\tITEM_PROGRAMINFO,\n\t\tNUM_ITEMS,\n\t};\n\nprivate:\n\tstatic const LPCTSTR m_pszClassName;\n\tstatic HINSTANCE m_hinst;\n\n\tHWND m_hwndProgramInfo;\n\tWNDPROC m_pOldProgramInfoProc;\n\tHWND m_hwndProgramInfoPrev;\n\tHWND m_hwndProgramInfoNext;\n\tCEventHandler *m_pEventHandler;\n\n\tCOLORREF m_crBackColor;\n\tCOLORREF m_crTextColor;\n\tCOLORREF m_crProgramInfoBackColor;\n\tCOLORREF m_crProgramInfoTextColor;\n\tDrawUtil::CBrush m_BackBrush;\n\tDrawUtil::CBrush m_ProgramInfoBackBrush;\n\tDrawUtil::CFont m_Font;\n\tint m_FontHeight;\n\tint m_LineMargin;\n\tDrawUtil::COffscreen m_Offscreen;\n\tunsigned int m_ItemVisibility;\n\n\tint m_OriginalVideoWidth;\n\tint m_OriginalVideoHeight;\n\tint m_DisplayVideoWidth;\n\tint m_DisplayVideoHeight;\n\tint m_AspectX;\n\tint m_AspectY;\n\tCDynamicString m_VideoDecoderName;\n\tCDynamicString m_VideoRendererName;\n\tCDynamicString m_AudioDeviceName;\n\tbool m_fSignalLevel;\n\tfloat m_SignalLevel;\n\tDWORD m_BitRate;\n\tDWORD m_VideoBitRate;\n\tDWORD m_AudioBitRate;\n\tbool m_fRecording;\n\tULONGLONG m_RecordWroteSize;\n\tunsigned int m_RecordTime;\n\tULONGLONG m_DiskFreeSpace;\n\tCDynamicString m_ProgramInfo;\n\tbool m_fNextProgramInfo;\n\n\tstatic const LPCTSTR m_pszItemNameList[];\n\n\tstatic LRESULT CALLBACK ProgramInfoHookProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);\n\tvoid GetItemRect(int Item,RECT *pRect) const;\n\tvoid UpdateItem(int Item);\n\tvoid CalcFontHeight();\n\tvoid Draw(HDC hdc,const RECT &PaintRect);\n\tbool GetDrawItemRect(int Item,RECT *pRect,const RECT &PaintRect) const;\n\tvoid DrawItem(HDC hdc,LPCTSTR pszText,const RECT &Rect);\n// CCustomWindow\n\tLRESULT OnMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) override;\n\npublic:\n\tstatic bool Initialize(HINSTANCE hinst);\n\n\tCInformationPanel();\n\t~CInformationPanel();\n// CBasicWindow\n\tbool Create(HWND hwndParent,DWORD Style,DWORD ExStyle=0,int ID=0) override;\n// CSettingsBase\n\tbool ReadSettings(CSettings &Settings) override;\n\tbool WriteSettings(CSettings &Settings) override;\n// CInformationPanel\n\tvoid ResetStatistics();\n\tbool IsVisible() const;\n\tvoid SetColor(COLORREF crBackColor,COLORREF crTextColor);\n\tvoid SetProgramInfoColor(COLORREF crBackColor,COLORREF crTextColor);\n\tbool SetFont(const LOGFONT *pFont);\n\tbool SetItemVisible(int Item,bool fVisible);\n\tbool IsItemVisible(int Item) const;\n\tvoid SetVideoSize(int OriginalWidth,int OriginalHeight,int DisplayWidth,int DisplayHeight);\n\tvoid SetAspectRatio(int AspectX,int AspectY);\n\tvoid SetVideoDecoderName(LPCTSTR pszName);\n\tvoid SetVideoRendererName(LPCTSTR pszName);\n\tvoid SetAudioDeviceName(LPCTSTR pszName);\n\tvoid SetSignalLevel(float Level);\n\tvoid ShowSignalLevel(bool fShow);\n\tbool IsSignalLevelEnabled() const { return m_fSignalLevel; }\n\tvoid SetBitRate(DWORD BitRate);\n\tvoid SetMediaBitRate(DWORD VideoBitRate,DWORD AudioBitRate);\n\tvoid UpdateErrorCount();\n\tvoid SetRecordStatus(bool fRecording,LPCTSTR pszFileName=NULL,\n\t\t\t\t\t\t ULONGLONG WroteSize=0,unsigned int RecordTime=0,\n\t\t\t\t\t\t ULONGLONG FreeSpace=0);\n\tvoid SetProgramInfo(LPCTSTR pszInfo);\n\tbool GetProgramInfoNext() const { return m_fNextProgramInfo; }\n\tbool SetEventHandler(CEventHandler *pHandler);\n};\n\n\n#endif\n"}
80,331
c
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once #include <v8.h> namespace napa { namespace v8_extensions { /// <summary> /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized. /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer. /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance /// created before in napa::v8_extensions::Utils::SerializeValue(). /// </summary> class ExternalizedContents { public: explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents); ExternalizedContents(ExternalizedContents&& other); ExternalizedContents& operator=(ExternalizedContents&& other); ~ExternalizedContents(); private: void* _data; size_t _size; ExternalizedContents(const ExternalizedContents&) = delete; ExternalizedContents& operator=(const ExternalizedContents&) = delete; }; } }
41.42
26
(translation_unit) "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n#pragma once\n\n#include <v8.h>\n\nnamespace napa {\nnamespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized.\n /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer.\n /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance\n /// created before in napa::v8_extensions::Utils::SerializeValue().\n /// </summary>\n class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n };\n}\n}\n" (comment) "// Copyright (c) Microsoft Corporation. All rights reserved." (comment) "// Licensed under the MIT license." (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <v8.h>\n" (#include) "#include" (system_lib_string) "<v8.h>" (function_definition) "namespace napa {\nnamespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized.\n /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer.\n /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance\n /// created before in napa::v8_extensions::Utils::SerializeValue().\n /// </summary>\n class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n };\n}\n}" (type_identifier) "namespace" (identifier) "napa" (compound_statement) "{\nnamespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized.\n /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer.\n /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance\n /// created before in napa::v8_extensions::Utils::SerializeValue().\n /// </summary>\n class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n };\n}\n}" ({) "{" (function_definition) "namespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized.\n /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer.\n /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance\n /// created before in napa::v8_extensions::Utils::SerializeValue().\n /// </summary>\n class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n };\n}" (type_identifier) "namespace" (identifier) "v8_extensions" (compound_statement) "{\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized.\n /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer.\n /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance\n /// created before in napa::v8_extensions::Utils::SerializeValue().\n /// </summary>\n class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n };\n}" ({) "{" (comment) "/// <summary> " (comment) "/// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized." (comment) "/// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer." (comment) "/// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance" (comment) "/// created before in napa::v8_extensions::Utils::SerializeValue()." (comment) "/// </summary>" (function_definition) "class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n }" (type_identifier) "class" (identifier) "ExternalizedContents" (compound_statement) "{\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n }" ({) "{" (labeled_statement) "public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);" (statement_identifier) "public" (:) ":" (declaration) "explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);" (type_identifier) "explicit" (function_declarator) "ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents)" (identifier) "ExternalizedContents" (parameter_list) "(const v8::SharedArrayBuffer::Contents& contents)" (() "(" (parameter_declaration) "const v8::SharedArrayBuffer::Contents& contents" (type_qualifier) "const" (const) "const" (type_identifier) "v8" (ERROR) "::SharedArrayBuffer::Contents&" (:) ":" (:) ":" (identifier) "SharedArrayBuffer" (:) ":" (:) ":" (identifier) "Contents" (&) "&" (identifier) "contents" ()) ")" (;) ";" (expression_statement) "ExternalizedContents(ExternalizedContents&& other);" (call_expression) "ExternalizedContents(ExternalizedContents&& other)" (identifier) "ExternalizedContents" (argument_list) "(ExternalizedContents&& other)" (() "(" (binary_expression) "ExternalizedContents&& other" (identifier) "ExternalizedContents" (&&) "&&" (identifier) "other" ()) ")" (;) ";" (expression_statement) "ExternalizedContents& operator=(ExternalizedContents&& other);" (binary_expression) "ExternalizedContents& operator=(ExternalizedContents&& other)" (identifier) "ExternalizedContents" (&) "&" (assignment_expression) "operator=(ExternalizedContents&& other)" (identifier) "operator" (=) "=" (parenthesized_expression) "(ExternalizedContents&& other)" (() "(" (binary_expression) "ExternalizedContents&& other" (identifier) "ExternalizedContents" (&&) "&&" (identifier) "other" ()) ")" (;) ";" (expression_statement) "~ExternalizedContents();" (unary_expression) "~ExternalizedContents()" (~) "~" (call_expression) "ExternalizedContents()" (identifier) "ExternalizedContents" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "private:\n void* _data;" (statement_identifier) "private" (:) ":" (declaration) "void* _data;" (primitive_type) "void" (pointer_declarator) "* _data" (*) "*" (identifier) "_data" (;) ";" (declaration) "size_t _size;" (primitive_type) "size_t" (identifier) "_size" (;) ";" (declaration) "ExternalizedContents(const ExternalizedContents&) = delete;" (macro_type_specifier) "ExternalizedContents(const ExternalizedContents&)" (identifier) "ExternalizedContents" (() "(" (type_descriptor) "const ExternalizedContents" (type_qualifier) "const" (const) "const" (type_identifier) "ExternalizedContents" (ERROR) "&" (&) "&" ()) ")" (ERROR) "=" (=) "=" (identifier) "delete" (;) ";" (expression_statement) "ExternalizedContents& operator=(const ExternalizedContents&) = delete;" (binary_expression) "ExternalizedContents& operator=(const ExternalizedContents&) = delete" (identifier) "ExternalizedContents" (&) "&" (assignment_expression) "operator=(const ExternalizedContents&) = delete" (identifier) "operator" (=) "=" (cast_expression) "(const ExternalizedContents&) = delete" (() "(" (type_descriptor) "const ExternalizedContents" (type_qualifier) "const" (const) "const" (type_identifier) "ExternalizedContents" (ERROR) "&" (&) "&" ()) ")" (ERROR) "=" (=) "=" (identifier) "delete" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}"
142
5
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 41.42, "nodes": 74, "errors": 0, "source_hash": "9472b423e8be837010c394bb36093c75018954eb01391a5a080224f8b5a2a928", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 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 <v8.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": "<v8.h>", "parent": 3, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 15}}, {"id": 6, "type": "function_definition", "text": "namespace napa {\nnamespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized.\n /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer.\n /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance\n /// created before in napa::v8_extensions::Utils::SerializeValue().\n /// </summary>\n class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n };\n}\n}", "parent": null, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 9}}, {"id": 8, "type": "identifier", "text": "napa", "parent": 6, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 14}}, {"id": 9, "type": "function_definition", "text": "namespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized.\n /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer.\n /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance\n /// created before in napa::v8_extensions::Utils::SerializeValue().\n /// </summary>\n class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n };\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 9}}, {"id": 11, "type": "identifier", "text": "v8_extensions", "parent": 9, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 23}}, {"id": 12, "type": "function_definition", "text": "class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n }", "parent": 9, "children": [13], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 32, "column": 5}}, {"id": 13, "type": "identifier", "text": "ExternalizedContents", "parent": 12, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 30}}, {"id": 14, "type": "labeled_statement", "text": "public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);", "parent": 12, "children": [15], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 18, "column": 87}}, {"id": 15, "type": "declaration", "text": "explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);", "parent": 14, "children": [16, 17], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 87}}, {"id": 16, "type": "type_identifier", "text": "explicit", "parent": 15, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 16}}, {"id": 17, "type": "function_declarator", "text": "ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents)", "parent": 15, "children": [18, 19], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 86}}, {"id": 18, "type": "identifier", "text": "ExternalizedContents", "parent": 17, "children": [], "start_point": {"row": 18, "column": 17}, "end_point": {"row": 18, "column": 37}}, {"id": 19, "type": "parameter_list", "text": "(const v8::SharedArrayBuffer::Contents& contents)", "parent": 17, "children": [20], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 86}}, {"id": 20, "type": "parameter_declaration", "text": "const v8::SharedArrayBuffer::Contents& contents", "parent": 19, "children": [21, 22, 25], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 85}}, {"id": 21, "type": "type_identifier", "text": "v8", "parent": 20, "children": [], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 46}}, {"id": 22, "type": "ERROR", "text": "::SharedArrayBuffer::Contents&", "parent": 20, "children": [23, 24], "start_point": {"row": 18, "column": 46}, "end_point": {"row": 18, "column": 76}}, {"id": 23, "type": "identifier", "text": "SharedArrayBuffer", "parent": 22, "children": [], "start_point": {"row": 18, "column": 48}, "end_point": {"row": 18, "column": 65}}, {"id": 24, "type": "identifier", "text": "Contents", "parent": 22, "children": [], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 75}}, {"id": 25, "type": "identifier", "text": "contents", "parent": 20, "children": [], "start_point": {"row": 18, "column": 77}, "end_point": {"row": 18, "column": 85}}, {"id": 26, "type": "call_expression", "text": "ExternalizedContents(ExternalizedContents&& other)", "parent": 12, "children": [27, 28], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 58}}, {"id": 27, "type": "identifier", "text": "ExternalizedContents", "parent": 26, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 28}}, {"id": 28, "type": "argument_list", "text": "(ExternalizedContents&& other)", "parent": 26, "children": [29], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 58}}, {"id": 29, "type": "binary_expression", "text": "ExternalizedContents&& other", "parent": 28, "children": [30, 31, 32], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 57}}, {"id": 30, "type": "identifier", "text": "ExternalizedContents", "parent": 29, "children": [], "start_point": {"row": 20, "column": 29}, "end_point": {"row": 20, "column": 49}}, {"id": 31, "type": "&&", "text": "&&", "parent": 29, "children": [], "start_point": {"row": 20, "column": 49}, "end_point": {"row": 20, "column": 51}}, {"id": 32, "type": "identifier", "text": "other", "parent": 29, "children": [], "start_point": {"row": 20, "column": 52}, "end_point": {"row": 20, "column": 57}}, {"id": 33, "type": "binary_expression", "text": "ExternalizedContents& operator=(ExternalizedContents&& other)", "parent": 12, "children": [34, 35], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 69}}, {"id": 34, "type": "identifier", "text": "ExternalizedContents", "parent": 33, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 28}}, {"id": 35, "type": "assignment_expression", "text": "operator=(ExternalizedContents&& other)", "parent": 33, "children": [36, 37, 38], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 69}}, {"id": 36, "type": "identifier", "text": "operator", "parent": 35, "children": [], "start_point": {"row": 22, "column": 30}, "end_point": {"row": 22, "column": 38}}, {"id": 37, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 39}}, {"id": 38, "type": "parenthesized_expression", "text": "(ExternalizedContents&& other)", "parent": 35, "children": [39], "start_point": {"row": 22, "column": 39}, "end_point": {"row": 22, "column": 69}}, {"id": 39, "type": "binary_expression", "text": "ExternalizedContents&& other", "parent": 38, "children": [40, 41, 42], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 68}}, {"id": 40, "type": "identifier", "text": "ExternalizedContents", "parent": 39, "children": [], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 60}}, {"id": 41, "type": "&&", "text": "&&", "parent": 39, "children": [], "start_point": {"row": 22, "column": 60}, "end_point": {"row": 22, "column": 62}}, {"id": 42, "type": "identifier", "text": "other", "parent": 39, "children": [], "start_point": {"row": 22, "column": 63}, "end_point": {"row": 22, "column": 68}}, {"id": 43, "type": "unary_expression", "text": "~ExternalizedContents()", "parent": 12, "children": [44, 45], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 31}}, {"id": 44, "type": "~", "text": "~", "parent": 43, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 9}}, {"id": 45, "type": "call_expression", "text": "ExternalizedContents()", "parent": 43, "children": [46, 47], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 31}}, {"id": 46, "type": "identifier", "text": "ExternalizedContents", "parent": 45, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 29}}, {"id": 47, "type": "argument_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 31}}, {"id": 48, "type": "labeled_statement", "text": "private:\n void* _data;", "parent": 12, "children": [49], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 27, "column": 20}}, {"id": 49, "type": "declaration", "text": "void* _data;", "parent": 48, "children": [50, 51], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 20}}, {"id": 50, "type": "primitive_type", "text": "void", "parent": 49, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 12}}, {"id": 51, "type": "pointer_declarator", "text": "* _data", "parent": 49, "children": [52, 53], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 19}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 13}}, {"id": 53, "type": "identifier", "text": "_data", "parent": 51, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 19}}, {"id": 54, "type": "declaration", "text": "size_t _size;", "parent": 12, "children": [55, 56], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 55, "type": "primitive_type", "text": "size_t", "parent": 54, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 14}}, {"id": 56, "type": "identifier", "text": "_size", "parent": 54, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 20}}, {"id": 57, "type": "declaration", "text": "ExternalizedContents(const ExternalizedContents&) = delete;", "parent": 12, "children": [58, 62], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 67}}, {"id": 58, "type": "macro_type_specifier", "text": "ExternalizedContents(const ExternalizedContents&)", "parent": 57, "children": [59, 60], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 57}}, {"id": 59, "type": "identifier", "text": "ExternalizedContents", "parent": 58, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 28}}, {"id": 60, "type": "type_descriptor", "text": "const ExternalizedContents", "parent": 58, "children": [61], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 55}}, {"id": 61, "type": "type_identifier", "text": "ExternalizedContents", "parent": 60, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 55}}, {"id": 62, "type": "ERROR", "text": "=", "parent": 57, "children": [63], "start_point": {"row": 30, "column": 58}, "end_point": {"row": 30, "column": 59}}, {"id": 63, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 30, "column": 58}, "end_point": {"row": 30, "column": 59}}, {"id": 64, "type": "binary_expression", "text": "ExternalizedContents& operator=(const ExternalizedContents&) = delete", "parent": 12, "children": [65, 66], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 77}}, {"id": 65, "type": "identifier", "text": "ExternalizedContents", "parent": 64, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 28}}, {"id": 66, "type": "assignment_expression", "text": "operator=(const ExternalizedContents&) = delete", "parent": 64, "children": [67, 68, 69], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 77}}, {"id": 67, "type": "identifier", "text": "operator", "parent": 66, "children": [], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 38}}, {"id": 68, "type": "=", "text": "=", "parent": 66, "children": [], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 39}}, {"id": 69, "type": "cast_expression", "text": "(const ExternalizedContents&) = delete", "parent": 66, "children": [70, 72], "start_point": {"row": 31, "column": 39}, "end_point": {"row": 31, "column": 77}}, {"id": 70, "type": "type_descriptor", "text": "const ExternalizedContents", "parent": 69, "children": [71], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 66}}, {"id": 71, "type": "type_identifier", "text": "ExternalizedContents", "parent": 70, "children": [], "start_point": {"row": 31, "column": 46}, "end_point": {"row": 31, "column": 66}}, {"id": 72, "type": "ERROR", "text": "=", "parent": 69, "children": [73], "start_point": {"row": 31, "column": 69}, "end_point": {"row": 31, "column": 70}}, {"id": 73, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 31, "column": 69}, "end_point": {"row": 31, "column": 70}}]}, "node_categories": {"declarations": {"functions": [6, 9, 12, 17], "variables": [15, 20, 49, 54, 57], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [26, 29, 33, 38, 39, 43, 45, 64, 69], "assignments": [35, 66], "loops": [], "conditionals": [7, 8, 10, 11, 13, 16, 18, 21, 23, 24, 25, 27, 30, 32, 34, 36, 40, 42, 46, 53, 56, 58, 59, 61, 65, 67, 71], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "ExternalizedContents", "text_snippet": "namespace napa {\nnamespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds"}, {"node_id": 9, "universal_type": "function", "name": "ExternalizedContents", "text_snippet": "namespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized"}, {"node_id": 12, "universal_type": "function", "name": "ExternalizedContents", "text_snippet": "class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArray"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <v8.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n#pragma once\n\n#include <v8.h>\n\nnamespace napa {\nnamespace v8_extensions {\n\n /// <summary> \n /// 1. ExternalizedContents holds the externalized memory of a SharedArrayBuffer once it is serialized.\n /// 2. Only 1 instance of ExternalizedContents would be generated for each SharedArrayBuffer.\n /// If a SharedArrayBuffer had been externalized, it will reuse the ExternalizedContents instance\n /// created before in napa::v8_extensions::Utils::SerializeValue().\n /// </summary>\n class ExternalizedContents {\n public:\n explicit ExternalizedContents(const v8::SharedArrayBuffer::Contents& contents);\n\n ExternalizedContents(ExternalizedContents&& other);\n\n ExternalizedContents& operator=(ExternalizedContents&& other);\n\n ~ExternalizedContents();\n\n private:\n void* _data;\n size_t _size;\n\n ExternalizedContents(const ExternalizedContents&) = delete;\n ExternalizedContents& operator=(const ExternalizedContents&) = delete;\n };\n}\n}\n"}
80,332
c
#ifndef TOKEN_H #define TOKEN_H class Token { public: enum class Type { Error, Digit, Add, Substract, Multiply, Divide, Modulo, Sqrt, Power, LeftBracket, RightBracket, Comma }; protected: Type m_type; std::string m_value; public: Token(); bool operator==(const Token& other) const; double value() const; Token::Type type() const; bool isError() const; bool isDigit() const; bool isSameType(const Token& token) const; std::string toString() const; bool append(const Token& token); bool pop(); static Token fromString(std::string s); }; #endif // TOKEN_H
18.16
37
(translation_unit) "#ifndef TOKEN_H\n#define TOKEN_H\n\nclass Token\n{\npublic:\n\n enum class Type\n {\n Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma\n };\n\nprotected:\n\n Type m_type;\n std::string m_value;\n\npublic:\n Token();\n\n bool operator==(const Token& other) const;\n\n double value() const;\n Token::Type type() const;\n\n bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);\n};\n\n#endif // TOKEN_H\n" (ERROR) "#ifndef TOKEN_H\n#define TOKEN_H\n\nclass Token\n{\npublic:\n\n enum class Type\n {\n Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma\n };\n\nprotected:\n\n Type m_type;\n std::string m_value;\n\npublic:\n Token();\n\n bool operator==(const Token& other) const;\n\n double value() const;\n Token::Type type() const;\n\n bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);\n};\n\n#endif // TOKEN_H\n" (#ifndef) "#ifndef" (identifier) "TOKEN_H" (preproc_def) "#define TOKEN_H\n" (#define) "#define" (identifier) "TOKEN_H" (type_identifier) "class" (identifier) "Token" ({) "{" (labeled_statement) "public:\n\n enum class Type\n {\n Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma\n };\n\nprotected:\n\n Type m_type;\n std::string m_value;\n\npublic:\n Token();\n\n bool operator==(const Token& other) const;\n\n double value() const;\n Token::Type type() const;\n\n bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);\n}" (statement_identifier) "public" (:) ":" (ERROR) "enum class Type" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "Type" (compound_statement) "{\n Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma\n };\n\nprotected:\n\n Type m_type;\n std::string m_value;\n\npublic:\n Token();\n\n bool operator==(const Token& other) const;\n\n double value() const;\n Token::Type type() const;\n\n bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);\n}" ({) "{" (expression_statement) "Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma\n };" (comma_expression) "Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Error" (,) "," (comma_expression) "Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Digit" (,) "," (comma_expression) "Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Add" (,) "," (comma_expression) "Substract,\n Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Substract" (,) "," (comma_expression) "Multiply,\n Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Multiply" (,) "," (comma_expression) "Divide,\n Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Divide" (,) "," (comma_expression) "Modulo,\n Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Modulo" (,) "," (comma_expression) "Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Sqrt" (,) "," (comma_expression) "Power,\n LeftBracket,\n RightBracket,\n Comma" (identifier) "Power" (,) "," (comma_expression) "LeftBracket,\n RightBracket,\n Comma" (identifier) "LeftBracket" (,) "," (comma_expression) "RightBracket,\n Comma" (identifier) "RightBracket" (,) "," (identifier) "Comma" (ERROR) "}" (}) "}" (;) ";" (labeled_statement) "protected:\n\n Type m_type;" (statement_identifier) "protected" (:) ":" (declaration) "Type m_type;" (type_identifier) "Type" (identifier) "m_type" (;) ";" (labeled_statement) "std::string m_value;" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (declaration) "string m_value;" (type_identifier) "string" (identifier) "m_value" (;) ";" (labeled_statement) "public:\n Token();" (statement_identifier) "public" (:) ":" (expression_statement) "Token();" (call_expression) "Token()" (identifier) "Token" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool operator==(const Token& other) const;" (primitive_type) "bool" (identifier) "operator" (ERROR) "==(const Token& other) const" (==) "==" (() "(" (const) "const" (identifier) "Token" (&) "&" (identifier) "other" ()) ")" (const) "const" (;) ";" (ERROR) "double value() const" (primitive_type) "double" (function_declarator) "value()" (identifier) "value" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (labeled_statement) "Token::Type type() const;" (statement_identifier) "Token" (:) ":" (ERROR) ":Type type() const" (:) ":" (type_identifier) "Type" (function_declarator) "type() const" (identifier) "type" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (ERROR) "bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);" (primitive_type) "bool" (function_declarator) "isError()" (identifier) "isError" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "bool" (ERROR) "isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool" (function_declarator) "isDigit() const" (identifier) "isDigit" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "bool" (function_declarator) "isSameType(const Token& token) const" (identifier) "isSameType" (parameter_list) "(const Token& token)" (() "(" (parameter_declaration) "const Token& token" (type_qualifier) "const" (const) "const" (type_identifier) "Token" (ERROR) "&" (&) "&" (identifier) "token" ()) ")" (identifier) "const" (;) ";" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (function_declarator) "toString() const" (identifier) "toString" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "bool" (function_declarator) "append(const Token& token)" (identifier) "append" (parameter_list) "(const Token& token)" (() "(" (parameter_declaration) "const Token& token" (type_qualifier) "const" (const) "const" (type_identifier) "Token" (ERROR) "&" (&) "&" (identifier) "token" ()) ")" (;) ";" (declaration) "bool pop();" (primitive_type) "bool" (function_declarator) "pop()" (identifier) "pop" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static Token fromString(std::string s);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Token" (function_declarator) "fromString(std::string s)" (identifier) "fromString" (parameter_list) "(std::string s)" (() "(" (parameter_declaration) "std::string s" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "s" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (preproc_call) "#endif // TOKEN_H\n" (preproc_directive) "#endif" (comment) "// TOKEN_H"
214
13
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 18.16, "nodes": 114, "errors": 0, "source_hash": "4cdd0939b93739bb11221caf709574d1d41e8f37c8d96d04257bc75ff3bfa5e4", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef TOKEN_H\n#define TOKEN_H\n\nclass Token\n{\npublic:\n\n enum class Type\n {\n Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma\n };\n\nprotected:\n\n Type m_type;\n std::string m_value;\n\npublic:\n Token();\n\n bool operator==(const Token& other) const;\n\n double value() const;\n Token::Type type() const;\n\n bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);\n};\n\n#endif // TOKEN_H\n", "parent": null, "children": [1, 2, 3, 6, 7, 112], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "TOKEN_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define TOKEN_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_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 15}}, {"id": 6, "type": "identifier", "text": "Token", "parent": 0, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 11}}, {"id": 7, "type": "labeled_statement", "text": "public:\n\n enum class Type\n {\n Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma\n };\n\nprotected:\n\n Type m_type;\n std::string m_value;\n\npublic:\n Token();\n\n bool operator==(const Token& other) const;\n\n double value() const;\n Token::Type type() const;\n\n bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);\n}", "parent": 0, "children": [8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 8, "type": "ERROR", "text": "enum class Type", "parent": 7, "children": [9, 11], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 19}}, {"id": 9, "type": "enum_specifier", "text": "enum class", "parent": 8, "children": [10], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 14}}, {"id": 10, "type": "enum", "text": "enum", "parent": 9, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 8}}, {"id": 11, "type": "identifier", "text": "Type", "parent": 8, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 19}}, {"id": 12, "type": "comma_expression", "text": "Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 7, "children": [13, 14], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 13, "type": "identifier", "text": "Error", "parent": 12, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 13}}, {"id": 14, "type": "comma_expression", "text": "Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 12, "children": [15, 16], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 15, "type": "identifier", "text": "Digit", "parent": 14, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 13}}, {"id": 16, "type": "comma_expression", "text": "Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 14, "children": [17, 18], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 17, "type": "identifier", "text": "Add", "parent": 16, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 11}}, {"id": 18, "type": "comma_expression", "text": "Substract,\n Multiply,\n Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 16, "children": [19, 20], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 19, "type": "identifier", "text": "Substract", "parent": 18, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 17}}, {"id": 20, "type": "comma_expression", "text": "Multiply,\n Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 18, "children": [21, 22], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 21, "type": "identifier", "text": "Multiply", "parent": 20, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 16}}, {"id": 22, "type": "comma_expression", "text": "Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 20, "children": [23, 24], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 23, "type": "identifier", "text": "Divide", "parent": 22, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 14}}, {"id": 24, "type": "comma_expression", "text": "Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 22, "children": [25, 26], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 25, "type": "identifier", "text": "Modulo", "parent": 24, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 14}}, {"id": 26, "type": "comma_expression", "text": "Sqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 24, "children": [27, 28], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 20, "column": 13}}, {"id": 27, "type": "identifier", "text": "Sqrt", "parent": 26, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 28, "type": "comma_expression", "text": "Power,\n LeftBracket,\n RightBracket,\n Comma", "parent": 26, "children": [29, 30], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 29, "type": "identifier", "text": "Power", "parent": 28, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 13}}, {"id": 30, "type": "comma_expression", "text": "LeftBracket,\n RightBracket,\n Comma", "parent": 28, "children": [31, 32], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 31, "type": "identifier", "text": "LeftBracket", "parent": 30, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 19}}, {"id": 32, "type": "comma_expression", "text": "RightBracket,\n Comma", "parent": 30, "children": [33, 34], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 33, "type": "identifier", "text": "RightBracket", "parent": 32, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 20}}, {"id": 34, "type": "identifier", "text": "Comma", "parent": 32, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 35, "type": "labeled_statement", "text": "protected:\n\n Type m_type;", "parent": 7, "children": [36], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 25, "column": 16}}, {"id": 36, "type": "declaration", "text": "Type m_type;", "parent": 35, "children": [37, 38], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 16}}, {"id": 37, "type": "type_identifier", "text": "Type", "parent": 36, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 38, "type": "identifier", "text": "m_type", "parent": 36, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 15}}, {"id": 39, "type": "labeled_statement", "text": "std::string m_value;", "parent": 7, "children": [40, 41], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 24}}, {"id": 40, "type": "statement_identifier", "text": "std", "parent": 39, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 7}}, {"id": 41, "type": "declaration", "text": "string m_value;", "parent": 39, "children": [42, 43], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 24}}, {"id": 42, "type": "type_identifier", "text": "string", "parent": 41, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 15}}, {"id": 43, "type": "identifier", "text": "m_value", "parent": 41, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 23}}, {"id": 44, "type": "labeled_statement", "text": "public:\n Token();", "parent": 7, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 12}}, {"id": 45, "type": "call_expression", "text": "Token()", "parent": 44, "children": [46, 47], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 11}}, {"id": 46, "type": "identifier", "text": "Token", "parent": 45, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 9}}, {"id": 47, "type": "argument_list", "text": "()", "parent": 45, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 11}}, {"id": 48, "type": "declaration", "text": "bool operator==(const Token& other) const;", "parent": 7, "children": [49, 50, 51], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 46}}, {"id": 49, "type": "primitive_type", "text": "bool", "parent": 48, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 50, "type": "identifier", "text": "operator", "parent": 48, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 17}}, {"id": 51, "type": "ERROR", "text": "==(const Token& other) const", "parent": 48, "children": [52, 53, 54], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 45}}, {"id": 52, "type": "==", "text": "==", "parent": 51, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 19}}, {"id": 53, "type": "identifier", "text": "Token", "parent": 51, "children": [], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 31}}, {"id": 54, "type": "identifier", "text": "other", "parent": 51, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 38}}, {"id": 55, "type": "ERROR", "text": "double value() const", "parent": 7, "children": [56, 57], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 24}}, {"id": 56, "type": "primitive_type", "text": "double", "parent": 55, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 10}}, {"id": 57, "type": "function_declarator", "text": "value()", "parent": 55, "children": [58, 59], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 18}}, {"id": 58, "type": "identifier", "text": "value", "parent": 57, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 16}}, {"id": 59, "type": "parameter_list", "text": "()", "parent": 57, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 18}}, {"id": 60, "type": "labeled_statement", "text": "Token::Type type() const;", "parent": 7, "children": [61, 62], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 29}}, {"id": 61, "type": "statement_identifier", "text": "Token", "parent": 60, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 9}}, {"id": 62, "type": "ERROR", "text": ":Type type() const", "parent": 60, "children": [63, 64], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 28}}, {"id": 63, "type": "type_identifier", "text": "Type", "parent": 62, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 15}}, {"id": 64, "type": "function_declarator", "text": "type() const", "parent": 62, "children": [65, 66], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 28}}, {"id": 65, "type": "identifier", "text": "type", "parent": 64, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 20}}, {"id": 66, "type": "parameter_list", "text": "()", "parent": 64, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 22}}, {"id": 67, "type": "ERROR", "text": "bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);", "parent": 7, "children": [68, 69, 72, 97, 102], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 45, "column": 43}}, {"id": 68, "type": "primitive_type", "text": "bool", "parent": 67, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 69, "type": "function_declarator", "text": "isError()", "parent": 67, "children": [70, 71], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 18}}, {"id": 70, "type": "identifier", "text": "isError", "parent": 69, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 16}}, {"id": 71, "type": "parameter_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 18}}, {"id": 72, "type": "declaration", "text": "const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);", "parent": 67, "children": [73, 74, 91], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 42, "column": 36}}, {"id": 73, "type": "primitive_type", "text": "bool", "parent": 72, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 8}}, {"id": 74, "type": "ERROR", "text": "isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool", "parent": 72, "children": [75, 78, 79, 85, 86, 87, 90], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 42, "column": 8}}, {"id": 75, "type": "function_declarator", "text": "isDigit() const", "parent": 74, "children": [76, 77], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 24}}, {"id": 76, "type": "identifier", "text": "isDigit", "parent": 75, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 16}}, {"id": 77, "type": "parameter_list", "text": "()", "parent": 75, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 18}}, {"id": 78, "type": "primitive_type", "text": "bool", "parent": 74, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 79, "type": "function_declarator", "text": "isSameType(const Token& token) const", "parent": 74, "children": [80, 81], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 45}}, {"id": 80, "type": "identifier", "text": "isSameType", "parent": 79, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 19}}, {"id": 81, "type": "parameter_list", "text": "(const Token& token)", "parent": 79, "children": [82], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 39}}, {"id": 82, "type": "parameter_declaration", "text": "const Token& token", "parent": 81, "children": [83, 84], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 38}}, {"id": 83, "type": "type_identifier", "text": "Token", "parent": 82, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 31}}, {"id": 84, "type": "identifier", "text": "token", "parent": 82, "children": [], "start_point": {"row": 38, "column": 33}, "end_point": {"row": 38, "column": 38}}, {"id": 85, "type": "identifier", "text": "std", "parent": 74, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 7}}, {"id": 86, "type": "identifier", "text": "string", "parent": 74, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 15}}, {"id": 87, "type": "function_declarator", "text": "toString() const", "parent": 74, "children": [88, 89], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 32}}, {"id": 88, "type": "identifier", "text": "toString", "parent": 87, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 24}}, {"id": 89, "type": "parameter_list", "text": "()", "parent": 87, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 26}}, {"id": 90, "type": "primitive_type", "text": "bool", "parent": 74, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 91, "type": "function_declarator", "text": "append(const Token& token)", "parent": 72, "children": [92, 93], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 35}}, {"id": 92, "type": "identifier", "text": "append", "parent": 91, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 15}}, {"id": 93, "type": "parameter_list", "text": "(const Token& token)", "parent": 91, "children": [94], "start_point": {"row": 42, "column": 15}, "end_point": {"row": 42, "column": 35}}, {"id": 94, "type": "parameter_declaration", "text": "const Token& token", "parent": 93, "children": [95, 96], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 34}}, {"id": 95, "type": "type_identifier", "text": "Token", "parent": 94, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 27}}, {"id": 96, "type": "identifier", "text": "token", "parent": 94, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 34}}, {"id": 97, "type": "declaration", "text": "bool pop();", "parent": 67, "children": [98, 99], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 15}}, {"id": 98, "type": "primitive_type", "text": "bool", "parent": 97, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 99, "type": "function_declarator", "text": "pop()", "parent": 97, "children": [100, 101], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 14}}, {"id": 100, "type": "identifier", "text": "pop", "parent": 99, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 12}}, {"id": 101, "type": "parameter_list", "text": "()", "parent": 99, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 14}}, {"id": 102, "type": "declaration", "text": "static Token fromString(std::string s);", "parent": 67, "children": [103, 104], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 43}}, {"id": 103, "type": "type_identifier", "text": "Token", "parent": 102, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 16}}, {"id": 104, "type": "function_declarator", "text": "fromString(std::string s)", "parent": 102, "children": [105, 106], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 42}}, {"id": 105, "type": "identifier", "text": "fromString", "parent": 104, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 27}}, {"id": 106, "type": "parameter_list", "text": "(std::string s)", "parent": 104, "children": [107], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 42}}, {"id": 107, "type": "parameter_declaration", "text": "std::string s", "parent": 106, "children": [108, 109, 111], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 41}}, {"id": 108, "type": "type_identifier", "text": "std", "parent": 107, "children": [], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 31}}, {"id": 109, "type": "ERROR", "text": "::string", "parent": 107, "children": [110], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 39}}, {"id": 110, "type": "identifier", "text": "string", "parent": 109, "children": [], "start_point": {"row": 45, "column": 33}, "end_point": {"row": 45, "column": 39}}, {"id": 111, "type": "identifier", "text": "s", "parent": 107, "children": [], "start_point": {"row": 45, "column": 40}, "end_point": {"row": 45, "column": 41}}, {"id": 112, "type": "preproc_call", "text": "#endif // TOKEN_H\n", "parent": 0, "children": [113], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 113, "type": "preproc_directive", "text": "#endif", "parent": 112, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}]}, "node_categories": {"declarations": {"functions": [57, 64, 69, 75, 79, 87, 91, 99, 104], "variables": [36, 41, 48, 72, 82, 94, 97, 102, 107], "classes": [], "imports": [], "modules": [], "enums": [9, 10]}, "statements": {"expressions": [12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 45], "assignments": [], "loops": [], "conditionals": [1, 2, 5, 6, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 34, 37, 38, 40, 42, 43, 46, 50, 53, 54, 58, 61, 63, 65, 70, 76, 80, 83, 84, 85, 86, 88, 92, 95, 96, 100, 103, 105, 108, 110, 111], "returns": [], "exceptions": []}, "expressions": {"calls": [112], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "value()"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "type() const"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "isError()"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "isDigit() const"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "isSameType(const Token& token) const"}, {"node_id": 87, "universal_type": "function", "name": "unknown", "text_snippet": "toString() const"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "append(const Token& token)"}, {"node_id": 99, "universal_type": "function", "name": "unknown", "text_snippet": "pop()"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "fromString(std::string s)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef TOKEN_H\n#define TOKEN_H\n\nclass Token\n{\npublic:\n\n enum class Type\n {\n Error,\n Digit,\n Add,\n Substract,\n Multiply,\n Divide,\n Modulo,\n\t\t\t\tSqrt,\n Power,\n LeftBracket,\n RightBracket,\n Comma\n };\n\nprotected:\n\n Type m_type;\n std::string m_value;\n\npublic:\n Token();\n\n bool operator==(const Token& other) const;\n\n double value() const;\n Token::Type type() const;\n\n bool isError() const;\n bool isDigit() const;\n bool isSameType(const Token& token) const;\n\n std::string toString() const;\n\n bool append(const Token& token);\n bool pop();\n\n static Token fromString(std::string s);\n};\n\n#endif // TOKEN_H\n"}
80,333
c
#ifndef PLANARCELLOBSERVATION_H #define PLANARCELLOBSERVATION_H class PlanarCellObservation { public: PlanarCellObservation() : o_(false), inverse_sensor_model_(0.0) { } PlanarCellObservation(bool o, double ism) : o_(o), inverse_sensor_model_(ism) { } bool getObservation() const { return o_; } double getISMValue() const { return inverse_sensor_model_; } private: bool o_; double inverse_sensor_model_; }; #endif // PLANARCELLOBSERVATION_H
20.71
24
(translation_unit) "#ifndef PLANARCELLOBSERVATION_H\n#define PLANARCELLOBSERVATION_H\n\nclass PlanarCellObservation\n{\npublic:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)\n {\n }\n\n PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;\n }\n\n double getISMValue() const {\n return inverse_sensor_model_;\n }\n\nprivate:\n bool o_;\n double inverse_sensor_model_;\n};\n\n#endif // PLANARCELLOBSERVATION_H\n" (preproc_ifdef) "#ifndef PLANARCELLOBSERVATION_H\n#define PLANARCELLOBSERVATION_H\n\nclass PlanarCellObservation\n{\npublic:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)\n {\n }\n\n PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;\n }\n\n double getISMValue() const {\n return inverse_sensor_model_;\n }\n\nprivate:\n bool o_;\n double inverse_sensor_model_;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "PLANARCELLOBSERVATION_H" (preproc_def) "#define PLANARCELLOBSERVATION_H\n" (#define) "#define" (identifier) "PLANARCELLOBSERVATION_H" (function_definition) "class PlanarCellObservation\n{\npublic:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)\n {\n }\n\n PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;\n }" (type_identifier) "class" (identifier) "PlanarCellObservation" (compound_statement) "{\npublic:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)\n {\n }\n\n PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;\n }" ({) "{" (labeled_statement) "public:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)" (statement_identifier) "public" (ERROR) ":\n PlanarCellObservation()" (:) ":" (call_expression) "PlanarCellObservation()" (identifier) "PlanarCellObservation" (argument_list) "()" (() "(" ()) ")" (:) ":" (expression_statement) "o_(false), inverse_sensor_model_(0.0)" (comma_expression) "o_(false), inverse_sensor_model_(0.0)" (call_expression) "o_(false)" (identifier) "o_" (argument_list) "(false)" (() "(" (false) "false" ()) ")" (,) "," (call_expression) "inverse_sensor_model_(0.0)" (identifier) "inverse_sensor_model_" (argument_list) "(0.0)" (() "(" (number_literal) "0.0" ()) ")" (;) "" (compound_statement) "{\n }" ({) "{" (}) "}" (declaration) "PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;" (macro_type_specifier) "PlanarCellObservation(bool" (identifier) "PlanarCellObservation" (() "(" (type_descriptor) "bool" (primitive_type) "bool" ()) "" (identifier) "o" (,) "," (ERROR) "double ism)\n :" (identifier) "double" (identifier) "ism" ()) ")" (:) ":" (function_declarator) "o_(o)" (identifier) "o_" (parameter_list) "(o)" (() "(" (parameter_declaration) "o" (type_identifier) "o" ()) ")" (,) "," (ERROR) "inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return" (function_declarator) "inverse_sensor_model_(ism)" (identifier) "inverse_sensor_model_" (parameter_list) "(ism)" (() "(" (parameter_declaration) "ism" (type_identifier) "ism" ()) ")" ({) "{" (}) "}" (primitive_type) "bool" (function_declarator) "getObservation() const" (identifier) "getObservation" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" ({) "{" (return) "return" (identifier) "o_" (;) ";" (}) "}" (ERROR) "double getISMValue() const" (primitive_type) "double" (function_declarator) "getISMValue()" (identifier) "getISMValue" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{\n return inverse_sensor_model_;\n }" ({) "{" (return_statement) "return inverse_sensor_model_;" (return) "return" (identifier) "inverse_sensor_model_" (;) ";" (}) "}" (labeled_statement) "private:\n bool o_;" (statement_identifier) "private" (:) ":" (declaration) "bool o_;" (primitive_type) "bool" (identifier) "o_" (;) ";" (declaration) "double inverse_sensor_model_;" (primitive_type) "double" (identifier) "inverse_sensor_model_" (;) ";" (ERROR) "}" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// PLANARCELLOBSERVATION_H"
118
5
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 20.71, "nodes": 62, "errors": 0, "source_hash": "078c0aff9a289d64168fe68d96b47ccea2e4fb1166ecd6490803f932e0a3d7c3", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef PLANARCELLOBSERVATION_H\n#define PLANARCELLOBSERVATION_H\n\nclass PlanarCellObservation\n{\npublic:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)\n {\n }\n\n PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;\n }\n\n double getISMValue() const {\n return inverse_sensor_model_;\n }\n\nprivate:\n bool o_;\n double inverse_sensor_model_;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 47, 54, 58, 61], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 29, "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": "PLANARCELLOBSERVATION_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 31}}, {"id": 3, "type": "preproc_def", "text": "#define PLANARCELLOBSERVATION_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": "PLANARCELLOBSERVATION_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 31}}, {"id": 6, "type": "function_definition", "text": "class PlanarCellObservation\n{\npublic:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)\n {\n }\n\n PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;\n }", "parent": 0, "children": [7], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 18, "column": 5}}, {"id": 7, "type": "identifier", "text": "PlanarCellObservation", "parent": 6, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 27}}, {"id": 8, "type": "labeled_statement", "text": "public:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)", "parent": 6, "children": [9], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 7, "column": 47}}, {"id": 9, "type": "ERROR", "text": ":\n PlanarCellObservation()", "parent": 8, "children": [10], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 6, "column": 27}}, {"id": 10, "type": "call_expression", "text": "PlanarCellObservation()", "parent": 9, "children": [11, 12], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 27}}, {"id": 11, "type": "identifier", "text": "PlanarCellObservation", "parent": 10, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 25}}, {"id": 12, "type": "argument_list", "text": "()", "parent": 10, "children": [], "start_point": {"row": 6, "column": 25}, "end_point": {"row": 6, "column": 27}}, {"id": 13, "type": "comma_expression", "text": "o_(false), inverse_sensor_model_(0.0)", "parent": 8, "children": [14, 18], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 47}}, {"id": 14, "type": "call_expression", "text": "o_(false)", "parent": 13, "children": [15, 16], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 19}}, {"id": 15, "type": "identifier", "text": "o_", "parent": 14, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 12}}, {"id": 16, "type": "argument_list", "text": "(false)", "parent": 14, "children": [17], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 19}}, {"id": 17, "type": "false", "text": "false", "parent": 16, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 18}}, {"id": 18, "type": "call_expression", "text": "inverse_sensor_model_(0.0)", "parent": 13, "children": [19, 20], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 47}}, {"id": 19, "type": "identifier", "text": "inverse_sensor_model_", "parent": 18, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 42}}, {"id": 20, "type": "argument_list", "text": "(0.0)", "parent": 18, "children": [21], "start_point": {"row": 7, "column": 42}, "end_point": {"row": 7, "column": 47}}, {"id": 21, "type": "number_literal", "text": "0.0", "parent": 20, "children": [], "start_point": {"row": 7, "column": 43}, "end_point": {"row": 7, "column": 46}}, {"id": 22, "type": "declaration", "text": "PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;", "parent": 6, "children": [23, 27, 28, 31, 36, 46], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 17, "column": 18}}, {"id": 23, "type": "macro_type_specifier", "text": "PlanarCellObservation(bool", "parent": 22, "children": [24, 25], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 30}}, {"id": 24, "type": "identifier", "text": "PlanarCellObservation", "parent": 23, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 25}}, {"id": 25, "type": "type_descriptor", "text": "bool", "parent": 23, "children": [26], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 30}}, {"id": 26, "type": "primitive_type", "text": "bool", "parent": 25, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 30}}, {"id": 27, "type": "identifier", "text": "o", "parent": 22, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 32}}, {"id": 28, "type": "ERROR", "text": "double ism)\n :", "parent": 22, "children": [29, 30], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 12, "column": 9}}, {"id": 29, "type": "identifier", "text": "double", "parent": 28, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 40}}, {"id": 30, "type": "identifier", "text": "ism", "parent": 28, "children": [], "start_point": {"row": 11, "column": 41}, "end_point": {"row": 11, "column": 44}}, {"id": 31, "type": "function_declarator", "text": "o_(o)", "parent": 22, "children": [32, 33], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 15}}, {"id": 32, "type": "identifier", "text": "o_", "parent": 31, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 12}}, {"id": 33, "type": "parameter_list", "text": "(o)", "parent": 31, "children": [34], "start_point": {"row": 12, "column": 12}, "end_point": {"row": 12, "column": 15}}, {"id": 34, "type": "parameter_declaration", "text": "o", "parent": 33, "children": [35], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 14}}, {"id": 35, "type": "type_identifier", "text": "o", "parent": 34, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 14}}, {"id": 36, "type": "ERROR", "text": "inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return", "parent": 22, "children": [37, 42, 43], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 17, "column": 14}}, {"id": 37, "type": "function_declarator", "text": "inverse_sensor_model_(ism)", "parent": 36, "children": [38, 39], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 43}}, {"id": 38, "type": "identifier", "text": "inverse_sensor_model_", "parent": 37, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 38}}, {"id": 39, "type": "parameter_list", "text": "(ism)", "parent": 37, "children": [40], "start_point": {"row": 12, "column": 38}, "end_point": {"row": 12, "column": 43}}, {"id": 40, "type": "parameter_declaration", "text": "ism", "parent": 39, "children": [41], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 42}}, {"id": 41, "type": "type_identifier", "text": "ism", "parent": 40, "children": [], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 42}}, {"id": 42, "type": "primitive_type", "text": "bool", "parent": 36, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 8}}, {"id": 43, "type": "function_declarator", "text": "getObservation() const", "parent": 36, "children": [44, 45], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 31}}, {"id": 44, "type": "identifier", "text": "getObservation", "parent": 43, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 23}}, {"id": 45, "type": "parameter_list", "text": "()", "parent": 43, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 25}}, {"id": 46, "type": "identifier", "text": "o_", "parent": 22, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 17}}, {"id": 47, "type": "ERROR", "text": "double getISMValue() const", "parent": 0, "children": [48, 49], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 30}}, {"id": 48, "type": "primitive_type", "text": "double", "parent": 47, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 49, "type": "function_declarator", "text": "getISMValue()", "parent": 47, "children": [50, 51], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 24}}, {"id": 50, "type": "identifier", "text": "getISMValue", "parent": 49, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 22}}, {"id": 51, "type": "parameter_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 24}}, {"id": 52, "type": "return_statement", "text": "return inverse_sensor_model_;", "parent": 0, "children": [53], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 37}}, {"id": 53, "type": "identifier", "text": "inverse_sensor_model_", "parent": 52, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 36}}, {"id": 54, "type": "labeled_statement", "text": "private:\n bool o_;", "parent": 0, "children": [55], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 12}}, {"id": 55, "type": "declaration", "text": "bool o_;", "parent": 54, "children": [56, 57], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 12}}, {"id": 56, "type": "primitive_type", "text": "bool", "parent": 55, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 57, "type": "identifier", "text": "o_", "parent": 55, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 11}}, {"id": 58, "type": "declaration", "text": "double inverse_sensor_model_;", "parent": 0, "children": [59, 60], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 33}}, {"id": 59, "type": "primitive_type", "text": "double", "parent": 58, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 10}}, {"id": 60, "type": "identifier", "text": "inverse_sensor_model_", "parent": 58, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 32}}, {"id": 61, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}]}, "node_categories": {"declarations": {"functions": [6, 31, 37, 43, 49], "variables": [22, 34, 40, 55, 58], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [10, 13, 14, 18], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 7, 11, 15, 19, 23, 24, 27, 29, 30, 32, 35, 38, 41, 44, 46, 50, 53, 57, 60, 61], "returns": [52], "exceptions": []}, "expressions": {"calls": [], "literals": [21], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "PlanarCellObservation", "text_snippet": "class PlanarCellObservation\n{\npublic:\n PlanarCellObservation()\n : o_(false), inverse_senso"}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "o_(o)"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "inverse_sensor_model_(ism)"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "getObservation() const"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "getISMValue()"}], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef PLANARCELLOBSERVATION_H\n#define PLANARCELLOBSERVATION_H\n\nclass PlanarCellObservation\n{\npublic:\n PlanarCellObservation()\n : o_(false), inverse_sensor_model_(0.0)\n {\n }\n\n PlanarCellObservation(bool o, double ism)\n : o_(o), inverse_sensor_model_(ism)\n {\n }\n\n bool getObservation() const {\n return o_;\n }\n\n double getISMValue() const {\n return inverse_sensor_model_;\n }\n\nprivate:\n bool o_;\n double inverse_sensor_model_;\n};\n\n#endif // PLANARCELLOBSERVATION_H\n"}
80,334
c
#include "stdio.h" /** * 本示例展示了指针的运算特性 * 当 + 1时表示是指针当前地址 + 指针类型的位数(sizeof(int)) */ int main(int argc, char const *argv[]) { int foo; int *p = &foo; printf("p : %p \n", p); p++; printf("p : %p \n", p); printf("p : %p \n", p + 3); return 0; }
17.2
15
(translation_unit) "#include "stdio.h"\n\n/**\n * 本示例展示了指针的运算特性\n * 当 + 1时表示是指针当前地址 + 指针类型的位数(sizeof(int))\n */\nint main(int argc, char const *argv[])\n{\n int foo;\n int *p = &foo;\n\n printf("p : %p \n", p);\n\n p++;\n\n printf("p : %p \n", p);\n printf("p : %p \n", p + 3);\n\n return 0;\n}\n" (preproc_include) "#include "stdio.h"\n" (#include) "#include" (string_literal) ""stdio.h"" (") """ (string_content) "stdio.h" (") """ (comment) "/**\n * 本示例展示了指针的运算特性\n * 当 + 1时表示是指针当前地址 + 指针类型的位数(sizeof(int))\n */\nint main(int argc, char const *argv[])\n{\n int foo;\n int *p " (function_definition) " &foo;\n\n printf("p : %p \n", p);\n\n p++;\n\n printf("p : %p \n", p);\n printf("p : %p \n", p + 3);\n\n return 0;\n}\n" (primitive_type) " &f" (function_declarator) "o;\n\n printf("p : %p \n", p);\n\n " (identifier) "o;\n\n" (parameter_list) " printf("p : %p \n", p);\n\n " (() " " (parameter_declaration) " print" (primitive_type) " " (identifier) "rint" (,) "f" (parameter_declaration) ""p : %p \n", p);\n\n" (primitive_type) ""p :" (type_qualifier) "%p \n" (const) "%p \n" (pointer_declarator) ", p);\n\n" (*) "," (array_declarator) " p);\n\n" (identifier) " p);" ([) "\n" (]) "\n" ()) " " (compound_statement) " p++;\n\n printf("p : %p \n", p);\n printf("p : %p \n", p + 3);\n\n return 0;\n}\n" ({) " " (declaration) "\n\n pr" (primitive_type) "\n\n " (identifier) " p" (;) "r" (declaration) ""p : %p \n", p" (primitive_type) ""p " (init_declarator) " %p \n", " (pointer_declarator) " %" (*) " " (identifier) "%" (=) " " (pointer_expression) "n", " (&) "n" (identifier) "", " (;) "p" (expression_statement) " printf("p : %p \n", p " (call_expression) " printf("p : %p \n", p" (identifier) " print" (argument_list) "f("p : %p \n", p" (() "f" (string_literal) "("p : %p \n" (") "(" (string_content) ""p : %p" (escape_sequence) " \" (") "n" (,) """ (identifier) " " ()) "p" (;) " " (expression_statement) "\n " (update_expression) "\n " (identifier) "\n" (++) " " (;) " " (expression_statement) "n 0;\n}\n" (call_expression) "n 0;\n}\n" (identifier) "n 0;\n}" (argument_list) "\n" (() "\n" (string_literal) "" (") "" (string_content) "" (escape_sequence) "" (") "" (,) "" (identifier) "" ()) "" (;) "" (expression_statement) "" (call_expression) "" (identifier) "" (argument_list) "" (() "" (string_literal) "" (") "" (string_content) "" (escape_sequence) "" (") "" (,) "" (binary_expression) "" (identifier) "" (+) "" (number_literal) "" ()) "" (;) "" (return_statement) "" (return) "" (number_literal) "" (;) "" (}) ""
101
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 17.2, "nodes": 56, "errors": 0, "source_hash": "e0e68685174c4aef8caf72782abeafb55a20a74f53345aa9f9e33edc81307d20", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"stdio.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"stdio.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "function_definition", "text": " &foo;\n\n printf(\"p : %p \\n\", p);\n\n p++;\n\n printf(\"p : %p \\n\", p);\n printf(\"p : %p \\n\", p + 3);\n\n return 0;\n}\n", "parent": null, "children": [4, 5], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 4, "type": "primitive_type", "text": " &f", "parent": 3, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "o;\n\n printf(\"p : %p \\n\", p);\n\n ", "parent": 3, "children": [6, 7], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 38}}, {"id": 6, "type": "identifier", "text": "o;\n\n", "parent": 5, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 8}}, {"id": 7, "type": "parameter_list", "text": " printf(\"p : %p \\n\", p);\n\n ", "parent": 5, "children": [8, 11], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 38}}, {"id": 8, "type": "parameter_declaration", "text": " print", "parent": 7, "children": [9, 10], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 9, "type": "primitive_type", "text": " ", "parent": 8, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 12}}, {"id": 10, "type": "identifier", "text": "rint", "parent": 8, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 17}}, {"id": 11, "type": "parameter_declaration", "text": "\"p : %p \\n\", p);\n\n", "parent": 7, "children": [12, 13, 14], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 37}}, {"id": 12, "type": "primitive_type", "text": "\"p :", "parent": 11, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 23}}, {"id": 13, "type": "type_qualifier", "text": "%p \\n", "parent": 11, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 29}}, {"id": 14, "type": "pointer_declarator", "text": ", p);\n\n", "parent": 11, "children": [15], "start_point": {"row": 6, "column": 30}, "end_point": {"row": 6, "column": 37}}, {"id": 15, "type": "array_declarator", "text": " p);\n\n", "parent": 14, "children": [16], "start_point": {"row": 6, "column": 31}, "end_point": {"row": 6, "column": 37}}, {"id": 16, "type": "identifier", "text": " p);", "parent": 15, "children": [], "start_point": {"row": 6, "column": 31}, "end_point": {"row": 6, "column": 35}}, {"id": 17, "type": "declaration", "text": "\n\n pr", "parent": 3, "children": [18, 19], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 12}}, {"id": 18, "type": "primitive_type", "text": "\n\n ", "parent": 17, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 7}}, {"id": 19, "type": "identifier", "text": " p", "parent": 17, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 20, "type": "declaration", "text": "\"p : %p \\n\", p", "parent": 3, "children": [21, 22], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 18}}, {"id": 21, "type": "primitive_type", "text": "\"p ", "parent": 20, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 7}}, {"id": 22, "type": "init_declarator", "text": " %p \\n\", ", "parent": 20, "children": [23, 26, 27], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 17}}, {"id": 23, "type": "pointer_declarator", "text": " %", "parent": 22, "children": [24, 25], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 10}}, {"id": 24, "type": "*", "text": " ", "parent": 23, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 9}}, {"id": 25, "type": "identifier", "text": "%", "parent": 23, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 10}}, {"id": 26, "type": "=", "text": " ", "parent": 22, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 27, "type": "pointer_expression", "text": "n\", ", "parent": 22, "children": [28, 29], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 17}}, {"id": 28, "type": "&", "text": "n", "parent": 27, "children": [], "start_point": {"row": 9, "column": 13}, "end_point": {"row": 9, "column": 14}}, {"id": 29, "type": "identifier", "text": "\", ", "parent": 27, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 17}}, {"id": 30, "type": "call_expression", "text": " printf(\"p : %p \\n\", p", "parent": 3, "children": [31, 32], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 26}}, {"id": 31, "type": "identifier", "text": " print", "parent": 30, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 10}}, {"id": 32, "type": "argument_list", "text": "f(\"p : %p \\n\", p", "parent": 30, "children": [33, 35], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 26}}, {"id": 33, "type": "string_literal", "text": "(\"p : %p \\n", "parent": 32, "children": [34], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 22}}, {"id": 34, "type": "escape_sequence", "text": " \\", "parent": 33, "children": [], "start_point": {"row": 11, "column": 19}, "end_point": {"row": 11, "column": 21}}, {"id": 35, "type": "identifier", "text": " ", "parent": 32, "children": [], "start_point": {"row": 11, "column": 24}, "end_point": {"row": 11, "column": 25}}, {"id": 36, "type": "update_expression", "text": "\n ", "parent": 3, "children": [37, 38], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 7}}, {"id": 37, "type": "identifier", "text": "\n", "parent": 36, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 5}}, {"id": 38, "type": "++", "text": " ", "parent": 36, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 7}}, {"id": 39, "type": "call_expression", "text": "n 0;\n}\n", "parent": 3, "children": [40, 41], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 26}}, {"id": 40, "type": "identifier", "text": "n 0;\n}", "parent": 39, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 41, "type": "argument_list", "text": "\n", "parent": 39, "children": [42, 44], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 26}}, {"id": 42, "type": "string_literal", "text": "", "parent": 41, "children": [43], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 22}}, {"id": 43, "type": "escape_sequence", "text": "", "parent": 42, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 21}}, {"id": 44, "type": "identifier", "text": "", "parent": 41, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 25}}, {"id": 45, "type": "call_expression", "text": "", "parent": 3, "children": [46, 47], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 30}}, {"id": 46, "type": "identifier", "text": "", "parent": 45, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 10}}, {"id": 47, "type": "argument_list", "text": "", "parent": 45, "children": [48, 50], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 30}}, {"id": 48, "type": "string_literal", "text": "", "parent": 47, "children": [49], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 22}}, {"id": 49, "type": "escape_sequence", "text": "", "parent": 48, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 21}}, {"id": 50, "type": "binary_expression", "text": "", "parent": 47, "children": [51, 52, 53], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 29}}, {"id": 51, "type": "identifier", "text": "", "parent": 50, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 25}}, {"id": 52, "type": "+", "text": "", "parent": 50, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 27}}, {"id": 53, "type": "number_literal", "text": "", "parent": 50, "children": [], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 29}}, {"id": 54, "type": "return_statement", "text": "", "parent": 3, "children": [55], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 13}}, {"id": 55, "type": "number_literal", "text": "", "parent": 54, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 11, 17, 20], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [27, 30, 36, 39, 45, 50], "assignments": [], "loops": [], "conditionals": [6, 10, 13, 16, 19, 25, 29, 31, 35, 37, 40, 44, 46, 51], "returns": [54], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 33, 42, 48, 53, 55], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "unknown", "text_snippet": " &foo;\n\n printf(\"p : %p \\n\", p);\n\n p++;\n\n printf(\"p : %p \\n\", p);\n printf(\"p : %p \\n\", p"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "o;\n\n printf(\"p : %p \\n\", p);\n\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\n/**\n * \u672c\u793a\u4f8b\u5c55\u793a\u4e86\u6307\u9488\u7684\u8fd0\u7b97\u7279\u6027\n * \u5f53 + 1\u65f6\u8868\u793a\u662f\u6307\u9488\u5f53\u524d\u5730\u5740 + \u6307\u9488\u7c7b\u578b\u7684\u4f4d\u6570\uff08sizeof(int)\uff09\n */\nint main(int argc, char const *argv[])\n{\n int foo;\n int *p = &foo;\n\n printf(\"p : %p \\n\", p);\n\n p++;\n\n printf(\"p : %p \\n\", p);\n printf(\"p : %p \\n\", p + 3);\n\n return 0;\n}\n"}
80,335
c
#include "extension.h" void _PG_init(void) { elog(DEBUG1, "loading DemoPGExtension extension...."); _guc_init(); } PG_FUNCTION_INFO_V1(get_welcome_message); Datum get_welcome_message(PG_FUNCTION_ARGS) { elog(DEBUG1, "Triggered get_welcome_message func"); int32 arg = PG_GETARG_INT32(0); int sprintf_output_code = 0; if (arg < 0) ereport(ERROR, ( errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE), errmsg("negative values are not allowed"), errdetail("value %d is negative", arg), errhint("should be positive") ) ); char *message_txt = GetConfigOptionByName("demopgextension.message_txt", NULL, true); if (message_txt == NULL) message_txt = "hello"; char *buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1); if ((sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg))) < 0) ereport(ERROR, ( errcode(ERRCODE_OUT_OF_MEMORY), errmsg("sprintf error: %i", sprintf_output_code) ) ); PG_RETURN_TEXT_P(cstring_to_text(buffer)); }
26.86
37
(translation_unit) "#include "extension.h"\n\nvoid\n_PG_init(void) {\n elog(DEBUG1, "loading DemoPGExtension extension....");\n \n _guc_init();\n}\n\nPG_FUNCTION_INFO_V1(get_welcome_message);\n\nDatum\nget_welcome_message(PG_FUNCTION_ARGS) {\n elog(DEBUG1, "Triggered get_welcome_message func");\n \n int32 arg = PG_GETARG_INT32(0);\n int sprintf_output_code = 0;\n\n if (arg < 0)\n ereport(ERROR,\n (\n errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")\n )\n );\n\n char *message_txt = GetConfigOptionByName("demopgextension.message_txt", NULL,\n true);\n\n if (message_txt == NULL)\n message_txt = "hello";\n\n char *buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1);\n if ((sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg))) < 0)\n ereport(ERROR,\n (\n errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)\n )\n );\n\n PG_RETURN_TEXT_P(cstring_to_text(buffer));\n}" (preproc_include) "#include "extension.h"\n" (#include) "#include" (string_literal) ""extension.h"" (") """ (string_content) "extension.h" (") """ (function_definition) "void\n_PG_init(void) {\n elog(DEBUG1, "loading DemoPGExtension extension....");\n \n _guc_init();\n}" (primitive_type) "void" (function_declarator) "_PG_init(void)" (identifier) "_PG_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n elog(DEBUG1, "loading DemoPGExtension extension....");\n \n _guc_init();\n}" ({) "{" (expression_statement) "elog(DEBUG1, "loading DemoPGExtension extension....");" (call_expression) "elog(DEBUG1, "loading DemoPGExtension extension....")" (identifier) "elog" (argument_list) "(DEBUG1, "loading DemoPGExtension extension....")" (() "(" (identifier) "DEBUG1" (,) "," (string_literal) ""loading DemoPGExtension extension...."" (") """ (string_content) "loading DemoPGExtension extension...." (") """ ()) ")" (;) ";" (expression_statement) "_guc_init();" (call_expression) "_guc_init()" (identifier) "_guc_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "PG_FUNCTION_INFO_V1(get_welcome_message);" (call_expression) "PG_FUNCTION_INFO_V1(get_welcome_message)" (identifier) "PG_FUNCTION_INFO_V1" (argument_list) "(get_welcome_message)" (() "(" (identifier) "get_welcome_message" ()) ")" (;) ";" (function_definition) "Datum\nget_welcome_message(PG_FUNCTION_ARGS) {\n elog(DEBUG1, "Triggered get_welcome_message func");\n \n int32 arg = PG_GETARG_INT32(0);\n int sprintf_output_code = 0;\n\n if (arg < 0)\n ereport(ERROR,\n (\n errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")\n )\n );\n\n char *message_txt = GetConfigOptionByName("demopgextension.message_txt", NULL,\n true);\n\n if (message_txt == NULL)\n message_txt = "hello";\n\n char *buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1);\n if ((sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg))) < 0)\n ereport(ERROR,\n (\n errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)\n )\n );\n\n PG_RETURN_TEXT_P(cstring_to_text(buffer));\n}" (type_identifier) "Datum" (function_declarator) "get_welcome_message(PG_FUNCTION_ARGS)" (identifier) "get_welcome_message" (parameter_list) "(PG_FUNCTION_ARGS)" (() "(" (parameter_declaration) "PG_FUNCTION_ARGS" (type_identifier) "PG_FUNCTION_ARGS" ()) ")" (compound_statement) "{\n elog(DEBUG1, "Triggered get_welcome_message func");\n \n int32 arg = PG_GETARG_INT32(0);\n int sprintf_output_code = 0;\n\n if (arg < 0)\n ereport(ERROR,\n (\n errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")\n )\n );\n\n char *message_txt = GetConfigOptionByName("demopgextension.message_txt", NULL,\n true);\n\n if (message_txt == NULL)\n message_txt = "hello";\n\n char *buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1);\n if ((sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg))) < 0)\n ereport(ERROR,\n (\n errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)\n )\n );\n\n PG_RETURN_TEXT_P(cstring_to_text(buffer));\n}" ({) "{" (expression_statement) "elog(DEBUG1, "Triggered get_welcome_message func");" (call_expression) "elog(DEBUG1, "Triggered get_welcome_message func")" (identifier) "elog" (argument_list) "(DEBUG1, "Triggered get_welcome_message func")" (() "(" (identifier) "DEBUG1" (,) "," (string_literal) ""Triggered get_welcome_message func"" (") """ (string_content) "Triggered get_welcome_message func" (") """ ()) ")" (;) ";" (declaration) "int32 arg = PG_GETARG_INT32(0);" (type_identifier) "int32" (init_declarator) "arg = PG_GETARG_INT32(0)" (identifier) "arg" (=) "=" (call_expression) "PG_GETARG_INT32(0)" (identifier) "PG_GETARG_INT32" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (declaration) "int sprintf_output_code = 0;" (primitive_type) "int" (init_declarator) "sprintf_output_code = 0" (identifier) "sprintf_output_code" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (arg < 0)\n ereport(ERROR,\n (\n errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")\n )\n );" (if) "if" (parenthesized_expression) "(arg < 0)" (() "(" (binary_expression) "arg < 0" (identifier) "arg" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "ereport(ERROR,\n (\n errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")\n )\n );" (call_expression) "ereport(ERROR,\n (\n errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")\n )\n )" (identifier) "ereport" (argument_list) "(ERROR,\n (\n errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")\n )\n )" (() "(" (identifier) "ERROR" (,) "," (parenthesized_expression) "(\n errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")\n )" (() "(" (comma_expression) "errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")" (call_expression) "errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE)" (identifier) "errcode" (argument_list) "(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE)" (() "(" (identifier) "ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE" ()) ")" (,) "," (comma_expression) "errmsg("negative values are not allowed"),\n errdetail("value %d is negative", arg),\n errhint("should be positive")" (call_expression) "errmsg("negative values are not allowed")" (identifier) "errmsg" (argument_list) "("negative values are not allowed")" (() "(" (string_literal) ""negative values are not allowed"" (") """ (string_content) "negative values are not allowed" (") """ ()) ")" (,) "," (comma_expression) "errdetail("value %d is negative", arg),\n errhint("should be positive")" (call_expression) "errdetail("value %d is negative", arg)" (identifier) "errdetail" (argument_list) "("value %d is negative", arg)" (() "(" (string_literal) ""value %d is negative"" (") """ (string_content) "value %d is negative" (") """ (,) "," (identifier) "arg" ()) ")" (,) "," (call_expression) "errhint("should be positive")" (identifier) "errhint" (argument_list) "("should be positive")" (() "(" (string_literal) ""should be positive"" (") """ (string_content) "should be positive" (") """ ()) ")" ()) ")" ()) ")" (;) ";" (declaration) "char *message_txt = GetConfigOptionByName("demopgextension.message_txt", NULL,\n true);" (primitive_type) "char" (init_declarator) "*message_txt = GetConfigOptionByName("demopgextension.message_txt", NULL,\n true)" (pointer_declarator) "*message_txt" (*) "*" (identifier) "message_txt" (=) "=" (call_expression) "GetConfigOptionByName("demopgextension.message_txt", NULL,\n true)" (identifier) "GetConfigOptionByName" (argument_list) "("demopgextension.message_txt", NULL,\n true)" (() "(" (string_literal) ""demopgextension.message_txt"" (") """ (string_content) "demopgextension.message_txt" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (true) "true" ()) ")" (;) ";" (if_statement) "if (message_txt == NULL)\n message_txt = "hello";" (if) "if" (parenthesized_expression) "(message_txt == NULL)" (() "(" (binary_expression) "message_txt == NULL" (identifier) "message_txt" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (expression_statement) "message_txt = "hello";" (assignment_expression) "message_txt = "hello"" (identifier) "message_txt" (=) "=" (string_literal) ""hello"" (") """ (string_content) "hello" (") """ (;) ";" (declaration) "char *buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1);" (primitive_type) "char" (init_declarator) "*buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1)" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" (=) "=" (call_expression) "palloc0(sizeof(message_txt) + sizeof(arg) + 1)" (identifier) "palloc0" (argument_list) "(sizeof(message_txt) + sizeof(arg) + 1)" (() "(" (binary_expression) "sizeof(message_txt) + sizeof(arg) + 1" (binary_expression) "sizeof(message_txt) + sizeof(arg)" (sizeof_expression) "sizeof(message_txt)" (sizeof) "sizeof" (parenthesized_expression) "(message_txt)" (() "(" (identifier) "message_txt" ()) ")" (+) "+" (sizeof_expression) "sizeof(arg)" (sizeof) "sizeof" (parenthesized_expression) "(arg)" (() "(" (identifier) "arg" ()) ")" (+) "+" (number_literal) "1" ()) ")" (;) ";" (if_statement) "if ((sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg))) < 0)\n ereport(ERROR,\n (\n errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)\n )\n );" (if) "if" (parenthesized_expression) "((sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg))) < 0)" (() "(" (binary_expression) "(sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg))) < 0" (parenthesized_expression) "(sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg)))" (() "(" (assignment_expression) "sprintf_output_code = (sprintf(buffer, "%s: %i", message_txt, arg))" (identifier) "sprintf_output_code" (=) "=" (parenthesized_expression) "(sprintf(buffer, "%s: %i", message_txt, arg))" (() "(" (call_expression) "sprintf(buffer, "%s: %i", message_txt, arg)" (identifier) "sprintf" (argument_list) "(buffer, "%s: %i", message_txt, arg)" (() "(" (identifier) "buffer" (,) "," (string_literal) ""%s: %i"" (") """ (string_content) "%s: %i" (") """ (,) "," (identifier) "message_txt" (,) "," (identifier) "arg" ()) ")" ()) ")" ()) ")" (<) "<" (number_literal) "0" ()) ")" (expression_statement) "ereport(ERROR,\n (\n errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)\n )\n );" (call_expression) "ereport(ERROR,\n (\n errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)\n )\n )" (identifier) "ereport" (argument_list) "(ERROR,\n (\n errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)\n )\n )" (() "(" (identifier) "ERROR" (,) "," (parenthesized_expression) "(\n errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)\n )" (() "(" (comma_expression) "errcode(ERRCODE_OUT_OF_MEMORY),\n errmsg("sprintf error: %i", sprintf_output_code)" (call_expression) "errcode(ERRCODE_OUT_OF_MEMORY)" (identifier) "errcode" (argument_list) "(ERRCODE_OUT_OF_MEMORY)" (() "(" (identifier) "ERRCODE_OUT_OF_MEMORY" ()) ")" (,) "," (call_expression) "errmsg("sprintf error: %i", sprintf_output_code)" (identifier) "errmsg" (argument_list) "("sprintf error: %i", sprintf_output_code)" (() "(" (string_literal) ""sprintf error: %i"" (") """ (string_content) "sprintf error: %i" (") """ (,) "," (identifier) "sprintf_output_code" ()) ")" ()) ")" ()) ")" (;) ";" (expression_statement) "PG_RETURN_TEXT_P(cstring_to_text(buffer));" (call_expression) "PG_RETURN_TEXT_P(cstring_to_text(buffer))" (identifier) "PG_RETURN_TEXT_P" (argument_list) "(cstring_to_text(buffer))" (() "(" (call_expression) "cstring_to_text(buffer)" (identifier) "cstring_to_text" (argument_list) "(buffer)" (() "(" (identifier) "buffer" ()) ")" ()) ")" (;) ";" (}) "}"
300
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 26.86, "nodes": 165, "errors": 0, "source_hash": "a79278df2aa5abdee20a398ecdfe6a60c7f845891bb34cd9b430eafbe0386861", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"extension.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": "\"extension.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 22}}, {"id": 3, "type": "function_definition", "text": "void\n_PG_init(void) {\n\telog(DEBUG1, \"loading DemoPGExtension extension....\");\n\t\n\t_guc_init();\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 7, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "void", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 4}}, {"id": 5, "type": "function_declarator", "text": "_PG_init(void)", "parent": 3, "children": [6, 7], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 14}}, {"id": 6, "type": "identifier", "text": "_PG_init", "parent": 5, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "(void)", "parent": 5, "children": [8], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 14}}, {"id": 8, "type": "parameter_declaration", "text": "void", "parent": 7, "children": [9], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 13}}, {"id": 9, "type": "primitive_type", "text": "void", "parent": 8, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 13}}, {"id": 10, "type": "call_expression", "text": "elog(DEBUG1, \"loading DemoPGExtension extension....\")", "parent": 3, "children": [11, 12], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 54}}, {"id": 11, "type": "identifier", "text": "elog", "parent": 10, "children": [], "start_point": {"row": 4, "column": 1}, "end_point": {"row": 4, "column": 5}}, {"id": 12, "type": "argument_list", "text": "(DEBUG1, \"loading DemoPGExtension extension....\")", "parent": 10, "children": [13, 14], "start_point": {"row": 4, "column": 5}, "end_point": {"row": 4, "column": 54}}, {"id": 13, "type": "identifier", "text": "DEBUG1", "parent": 12, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 12}}, {"id": 14, "type": "string_literal", "text": "\"loading DemoPGExtension extension....\"", "parent": 12, "children": [], "start_point": {"row": 4, "column": 14}, "end_point": {"row": 4, "column": 53}}, {"id": 15, "type": "call_expression", "text": "_guc_init()", "parent": 3, "children": [16, 17], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 12}}, {"id": 16, "type": "identifier", "text": "_guc_init", "parent": 15, "children": [], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 6, "column": 10}}, {"id": 17, "type": "argument_list", "text": "()", "parent": 15, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 12}}, {"id": 18, "type": "call_expression", "text": "PG_FUNCTION_INFO_V1(get_welcome_message)", "parent": null, "children": [19, 20], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 40}}, {"id": 19, "type": "identifier", "text": "PG_FUNCTION_INFO_V1", "parent": 18, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 19}}, {"id": 20, "type": "argument_list", "text": "(get_welcome_message)", "parent": 18, "children": [21], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 40}}, {"id": 21, "type": "identifier", "text": "get_welcome_message", "parent": 20, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 39}}, {"id": 22, "type": "function_definition", "text": "Datum\nget_welcome_message(PG_FUNCTION_ARGS) {\n\telog(DEBUG1, \"Triggered get_welcome_message func\");\n\t\n\tint32 arg = PG_GETARG_INT32(0);\n\tint sprintf_output_code = 0;\n\n\tif (arg < 0)\n\t\tereport(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n\t\t\t\t\t\t\t\terrmsg(\"negative values are not allowed\"),\n\t\t\t\t\t\t\t\terrdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")\n\t\t\t\t)\n\t\t);\n\n\tchar *message_txt = GetConfigOptionByName(\"demopgextension.message_txt\", NULL,\n\t\t\t\t\t\t\t\t\t\t\t true);\n\n\tif (message_txt == NULL)\n\t\tmessage_txt = \"hello\";\n\n\tchar *buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1);\n\tif ((sprintf_output_code = (sprintf(buffer, \"%s: %i\", message_txt, arg))) < 0)\n\t\tereport(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t\t\t\t\terrmsg(\"sprintf error: %i\", sprintf_output_code)\n\t\t\t\t)\n\t\t);\n\n\tPG_RETURN_TEXT_P(cstring_to_text(buffer));\n}", "parent": null, "children": [23, 24], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 23, "type": "type_identifier", "text": "Datum", "parent": 22, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 24, "type": "function_declarator", "text": "get_welcome_message(PG_FUNCTION_ARGS)", "parent": 22, "children": [25, 26], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 37}}, {"id": 25, "type": "identifier", "text": "get_welcome_message", "parent": 24, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 19}}, {"id": 26, "type": "parameter_list", "text": "(PG_FUNCTION_ARGS)", "parent": 24, "children": [27], "start_point": {"row": 12, "column": 19}, "end_point": {"row": 12, "column": 37}}, {"id": 27, "type": "parameter_declaration", "text": "PG_FUNCTION_ARGS", "parent": 26, "children": [28], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 36}}, {"id": 28, "type": "type_identifier", "text": "PG_FUNCTION_ARGS", "parent": 27, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 36}}, {"id": 29, "type": "call_expression", "text": "elog(DEBUG1, \"Triggered get_welcome_message func\")", "parent": 22, "children": [30, 31], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 51}}, {"id": 30, "type": "identifier", "text": "elog", "parent": 29, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 5}}, {"id": 31, "type": "argument_list", "text": "(DEBUG1, \"Triggered get_welcome_message func\")", "parent": 29, "children": [32, 33], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 51}}, {"id": 32, "type": "identifier", "text": "DEBUG1", "parent": 31, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 12}}, {"id": 33, "type": "string_literal", "text": "\"Triggered get_welcome_message func\"", "parent": 31, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 50}}, {"id": 34, "type": "declaration", "text": "int32 arg = PG_GETARG_INT32(0);", "parent": 22, "children": [35, 36], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 32}}, {"id": 35, "type": "type_identifier", "text": "int32", "parent": 34, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 6}}, {"id": 36, "type": "init_declarator", "text": "arg = PG_GETARG_INT32(0)", "parent": 34, "children": [37, 38, 39], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 31}}, {"id": 37, "type": "identifier", "text": "arg", "parent": 36, "children": [], "start_point": {"row": 15, "column": 7}, "end_point": {"row": 15, "column": 10}}, {"id": 38, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 12}}, {"id": 39, "type": "call_expression", "text": "PG_GETARG_INT32(0)", "parent": 36, "children": [40, 41], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 31}}, {"id": 40, "type": "identifier", "text": "PG_GETARG_INT32", "parent": 39, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 28}}, {"id": 41, "type": "argument_list", "text": "(0)", "parent": 39, "children": [42], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 31}}, {"id": 42, "type": "number_literal", "text": "0", "parent": 41, "children": [], "start_point": {"row": 15, "column": 29}, "end_point": {"row": 15, "column": 30}}, {"id": 43, "type": "declaration", "text": "int sprintf_output_code = 0;", "parent": 22, "children": [44, 45], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 29}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 4}}, {"id": 45, "type": "init_declarator", "text": "sprintf_output_code = 0", "parent": 43, "children": [46, 47, 48], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 28}}, {"id": 46, "type": "identifier", "text": "sprintf_output_code", "parent": 45, "children": [], "start_point": {"row": 16, "column": 5}, "end_point": {"row": 16, "column": 24}}, {"id": 47, "type": "=", "text": "=", "parent": 45, "children": [], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 26}}, {"id": 48, "type": "number_literal", "text": "0", "parent": 45, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 28}}, {"id": 49, "type": "if_statement", "text": "if (arg < 0)\n\t\tereport(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n\t\t\t\t\t\t\t\terrmsg(\"negative values are not allowed\"),\n\t\t\t\t\t\t\t\terrdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")\n\t\t\t\t)\n\t\t);", "parent": 22, "children": [50], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 26, "column": 4}}, {"id": 50, "type": "parenthesized_expression", "text": "(arg < 0)", "parent": 49, "children": [51], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 13}}, {"id": 51, "type": "binary_expression", "text": "arg < 0", "parent": 50, "children": [52, 53, 54], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 12}}, {"id": 52, "type": "identifier", "text": "arg", "parent": 51, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 8}}, {"id": 53, "type": "<", "text": "<", "parent": 51, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 10}}, {"id": 54, "type": "number_literal", "text": "0", "parent": 51, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 12}}, {"id": 55, "type": "call_expression", "text": "ereport(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n\t\t\t\t\t\t\t\terrmsg(\"negative values are not allowed\"),\n\t\t\t\t\t\t\t\terrdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")\n\t\t\t\t)\n\t\t)", "parent": 49, "children": [56, 57], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 26, "column": 3}}, {"id": 56, "type": "identifier", "text": "ereport", "parent": 55, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 9}}, {"id": 57, "type": "argument_list", "text": "(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n\t\t\t\t\t\t\t\terrmsg(\"negative values are not allowed\"),\n\t\t\t\t\t\t\t\terrdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")\n\t\t\t\t)\n\t\t)", "parent": 55, "children": [58, 59], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 26, "column": 3}}, {"id": 58, "type": "identifier", "text": "ERROR", "parent": 57, "children": [], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 15}}, {"id": 59, "type": "parenthesized_expression", "text": "(\n\t\t\t\t\t\terrcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n\t\t\t\t\t\t\t\terrmsg(\"negative values are not allowed\"),\n\t\t\t\t\t\t\t\terrdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")\n\t\t\t\t)", "parent": 57, "children": [60], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 25, "column": 5}}, {"id": 60, "type": "comma_expression", "text": "errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n\t\t\t\t\t\t\t\terrmsg(\"negative values are not allowed\"),\n\t\t\t\t\t\t\t\terrdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")", "parent": 59, "children": [61, 65], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 24, "column": 37}}, {"id": 61, "type": "call_expression", "text": "errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE)", "parent": 60, "children": [62, 63], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 49}}, {"id": 62, "type": "identifier", "text": "errcode", "parent": 61, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 13}}, {"id": 63, "type": "argument_list", "text": "(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE)", "parent": 61, "children": [64], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 49}}, {"id": 64, "type": "identifier", "text": "ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE", "parent": 63, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 48}}, {"id": 65, "type": "comma_expression", "text": "errmsg(\"negative values are not allowed\"),\n\t\t\t\t\t\t\t\terrdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")", "parent": 60, "children": [66, 70], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 24, "column": 37}}, {"id": 66, "type": "call_expression", "text": "errmsg(\"negative values are not allowed\")", "parent": 65, "children": [67, 68], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 49}}, {"id": 67, "type": "identifier", "text": "errmsg", "parent": 66, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 14}}, {"id": 68, "type": "argument_list", "text": "(\"negative values are not allowed\")", "parent": 66, "children": [69], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 49}}, {"id": 69, "type": "string_literal", "text": "\"negative values are not allowed\"", "parent": 68, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 48}}, {"id": 70, "type": "comma_expression", "text": "errdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")", "parent": 65, "children": [71, 76], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 24, "column": 37}}, {"id": 71, "type": "call_expression", "text": "errdetail(\"value %d is negative\", arg)", "parent": 70, "children": [72, 73], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 46}}, {"id": 72, "type": "identifier", "text": "errdetail", "parent": 71, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 17}}, {"id": 73, "type": "argument_list", "text": "(\"value %d is negative\", arg)", "parent": 71, "children": [74, 75], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 46}}, {"id": 74, "type": "string_literal", "text": "\"value %d is negative\"", "parent": 73, "children": [], "start_point": {"row": 23, "column": 18}, "end_point": {"row": 23, "column": 40}}, {"id": 75, "type": "identifier", "text": "arg", "parent": 73, "children": [], "start_point": {"row": 23, "column": 42}, "end_point": {"row": 23, "column": 45}}, {"id": 76, "type": "call_expression", "text": "errhint(\"should be positive\")", "parent": 70, "children": [77, 78], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 37}}, {"id": 77, "type": "identifier", "text": "errhint", "parent": 76, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 15}}, {"id": 78, "type": "argument_list", "text": "(\"should be positive\")", "parent": 76, "children": [79], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 37}}, {"id": 79, "type": "string_literal", "text": "\"should be positive\"", "parent": 78, "children": [], "start_point": {"row": 24, "column": 16}, "end_point": {"row": 24, "column": 36}}, {"id": 80, "type": "declaration", "text": "char *message_txt = GetConfigOptionByName(\"demopgextension.message_txt\", NULL,\n\t\t\t\t\t\t\t\t\t\t\t true);", "parent": 22, "children": [81, 82], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 29, "column": 19}}, {"id": 81, "type": "primitive_type", "text": "char", "parent": 80, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 5}}, {"id": 82, "type": "init_declarator", "text": "*message_txt = GetConfigOptionByName(\"demopgextension.message_txt\", NULL,\n\t\t\t\t\t\t\t\t\t\t\t true)", "parent": 80, "children": [83, 86, 87], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 29, "column": 18}}, {"id": 83, "type": "pointer_declarator", "text": "*message_txt", "parent": 82, "children": [84, 85], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 18}}, {"id": 84, "type": "*", "text": "*", "parent": 83, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 7}}, {"id": 85, "type": "identifier", "text": "message_txt", "parent": 83, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 18}}, {"id": 86, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 20}}, {"id": 87, "type": "call_expression", "text": "GetConfigOptionByName(\"demopgextension.message_txt\", NULL,\n\t\t\t\t\t\t\t\t\t\t\t true)", "parent": 82, "children": [88, 89], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 29, "column": 18}}, {"id": 88, "type": "identifier", "text": "GetConfigOptionByName", "parent": 87, "children": [], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 42}}, {"id": 89, "type": "argument_list", "text": "(\"demopgextension.message_txt\", NULL,\n\t\t\t\t\t\t\t\t\t\t\t true)", "parent": 87, "children": [90, 91, 93], "start_point": {"row": 28, "column": 42}, "end_point": {"row": 29, "column": 18}}, {"id": 90, "type": "string_literal", "text": "\"demopgextension.message_txt\"", "parent": 89, "children": [], "start_point": {"row": 28, "column": 43}, "end_point": {"row": 28, "column": 72}}, {"id": 91, "type": "null", "text": "NULL", "parent": 89, "children": [92], "start_point": {"row": 28, "column": 74}, "end_point": {"row": 28, "column": 78}}, {"id": 92, "type": "NULL", "text": "NULL", "parent": 91, "children": [], "start_point": {"row": 28, "column": 74}, "end_point": {"row": 28, "column": 78}}, {"id": 93, "type": "true", "text": "true", "parent": 89, "children": [], "start_point": {"row": 29, "column": 13}, "end_point": {"row": 29, "column": 17}}, {"id": 94, "type": "if_statement", "text": "if (message_txt == NULL)\n\t\tmessage_txt = \"hello\";", "parent": 22, "children": [95], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 32, "column": 24}}, {"id": 95, "type": "parenthesized_expression", "text": "(message_txt == NULL)", "parent": 94, "children": [96], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 25}}, {"id": 96, "type": "binary_expression", "text": "message_txt == NULL", "parent": 95, "children": [97, 98, 99], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 24}}, {"id": 97, "type": "identifier", "text": "message_txt", "parent": 96, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 16}}, {"id": 98, "type": "==", "text": "==", "parent": 96, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 19}}, {"id": 99, "type": "null", "text": "NULL", "parent": 96, "children": [100], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 24}}, {"id": 100, "type": "NULL", "text": "NULL", "parent": 99, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 24}}, {"id": 101, "type": "assignment_expression", "text": "message_txt = \"hello\"", "parent": 94, "children": [102, 103, 104], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 23}}, {"id": 102, "type": "identifier", "text": "message_txt", "parent": 101, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 13}}, {"id": 103, "type": "=", "text": "=", "parent": 101, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 15}}, {"id": 104, "type": "string_literal", "text": "\"hello\"", "parent": 101, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 23}}, {"id": 105, "type": "declaration", "text": "char *buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1);", "parent": 22, "children": [106, 107], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 63}}, {"id": 106, "type": "primitive_type", "text": "char", "parent": 105, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 5}}, {"id": 107, "type": "init_declarator", "text": "*buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1)", "parent": 105, "children": [108, 111, 112], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 62}}, {"id": 108, "type": "pointer_declarator", "text": "*buffer", "parent": 107, "children": [109, 110], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 13}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 7}}, {"id": 110, "type": "identifier", "text": "buffer", "parent": 108, "children": [], "start_point": {"row": 34, "column": 7}, "end_point": {"row": 34, "column": 13}}, {"id": 111, "type": "=", "text": "=", "parent": 107, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 15}}, {"id": 112, "type": "call_expression", "text": "palloc0(sizeof(message_txt) + sizeof(arg) + 1)", "parent": 107, "children": [113, 114], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 62}}, {"id": 113, "type": "identifier", "text": "palloc0", "parent": 112, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 23}}, {"id": 114, "type": "argument_list", "text": "(sizeof(message_txt) + sizeof(arg) + 1)", "parent": 112, "children": [115], "start_point": {"row": 34, "column": 23}, "end_point": {"row": 34, "column": 62}}, {"id": 115, "type": "binary_expression", "text": "sizeof(message_txt) + sizeof(arg) + 1", "parent": 114, "children": [116, 124, 125], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 61}}, {"id": 116, "type": "binary_expression", "text": "sizeof(message_txt) + sizeof(arg)", "parent": 115, "children": [117, 120, 121], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 57}}, {"id": 117, "type": "sizeof_expression", "text": "sizeof(message_txt)", "parent": 116, "children": [118], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 43}}, {"id": 118, "type": "parenthesized_expression", "text": "(message_txt)", "parent": 117, "children": [119], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 43}}, {"id": 119, "type": "identifier", "text": "message_txt", "parent": 118, "children": [], "start_point": {"row": 34, "column": 31}, "end_point": {"row": 34, "column": 42}}, {"id": 120, "type": "+", "text": "+", "parent": 116, "children": [], "start_point": {"row": 34, "column": 44}, "end_point": {"row": 34, "column": 45}}, {"id": 121, "type": "sizeof_expression", "text": "sizeof(arg)", "parent": 116, "children": [122], "start_point": {"row": 34, "column": 46}, "end_point": {"row": 34, "column": 57}}, {"id": 122, "type": "parenthesized_expression", "text": "(arg)", "parent": 121, "children": [123], "start_point": {"row": 34, "column": 52}, "end_point": {"row": 34, "column": 57}}, {"id": 123, "type": "identifier", "text": "arg", "parent": 122, "children": [], "start_point": {"row": 34, "column": 53}, "end_point": {"row": 34, "column": 56}}, {"id": 124, "type": "+", "text": "+", "parent": 115, "children": [], "start_point": {"row": 34, "column": 58}, "end_point": {"row": 34, "column": 59}}, {"id": 125, "type": "number_literal", "text": "1", "parent": 115, "children": [], "start_point": {"row": 34, "column": 60}, "end_point": {"row": 34, "column": 61}}, {"id": 126, "type": "if_statement", "text": "if ((sprintf_output_code = (sprintf(buffer, \"%s: %i\", message_txt, arg))) < 0)\n\t\tereport(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t\t\t\t\terrmsg(\"sprintf error: %i\", sprintf_output_code)\n\t\t\t\t)\n\t\t);", "parent": 22, "children": [127], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 41, "column": 4}}, {"id": 127, "type": "parenthesized_expression", "text": "((sprintf_output_code = (sprintf(buffer, \"%s: %i\", message_txt, arg))) < 0)", "parent": 126, "children": [128], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 79}}, {"id": 128, "type": "binary_expression", "text": "(sprintf_output_code = (sprintf(buffer, \"%s: %i\", message_txt, arg))) < 0", "parent": 127, "children": [129, 141, 142], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 78}}, {"id": 129, "type": "parenthesized_expression", "text": "(sprintf_output_code = (sprintf(buffer, \"%s: %i\", message_txt, arg)))", "parent": 128, "children": [130], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 74}}, {"id": 130, "type": "assignment_expression", "text": "sprintf_output_code = (sprintf(buffer, \"%s: %i\", message_txt, arg))", "parent": 129, "children": [131, 132, 133], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 73}}, {"id": 131, "type": "identifier", "text": "sprintf_output_code", "parent": 130, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 25}}, {"id": 132, "type": "=", "text": "=", "parent": 130, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 27}}, {"id": 133, "type": "parenthesized_expression", "text": "(sprintf(buffer, \"%s: %i\", message_txt, arg))", "parent": 130, "children": [134], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 73}}, {"id": 134, "type": "call_expression", "text": "sprintf(buffer, \"%s: %i\", message_txt, arg)", "parent": 133, "children": [135, 136], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 72}}, {"id": 135, "type": "identifier", "text": "sprintf", "parent": 134, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 36}}, {"id": 136, "type": "argument_list", "text": "(buffer, \"%s: %i\", message_txt, arg)", "parent": 134, "children": [137, 138, 139, 140], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 72}}, {"id": 137, "type": "identifier", "text": "buffer", "parent": 136, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 43}}, {"id": 138, "type": "string_literal", "text": "\"%s: %i\"", "parent": 136, "children": [], "start_point": {"row": 35, "column": 45}, "end_point": {"row": 35, "column": 53}}, {"id": 139, "type": "identifier", "text": "message_txt", "parent": 136, "children": [], "start_point": {"row": 35, "column": 55}, "end_point": {"row": 35, "column": 66}}, {"id": 140, "type": "identifier", "text": "arg", "parent": 136, "children": [], "start_point": {"row": 35, "column": 68}, "end_point": {"row": 35, "column": 71}}, {"id": 141, "type": "<", "text": "<", "parent": 128, "children": [], "start_point": {"row": 35, "column": 75}, "end_point": {"row": 35, "column": 76}}, {"id": 142, "type": "number_literal", "text": "0", "parent": 128, "children": [], "start_point": {"row": 35, "column": 77}, "end_point": {"row": 35, "column": 78}}, {"id": 143, "type": "call_expression", "text": "ereport(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t\t\t\t\terrmsg(\"sprintf error: %i\", sprintf_output_code)\n\t\t\t\t)\n\t\t)", "parent": 126, "children": [144, 145], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 41, "column": 3}}, {"id": 144, "type": "identifier", "text": "ereport", "parent": 143, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 9}}, {"id": 145, "type": "argument_list", "text": "(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t\t\t\t\terrmsg(\"sprintf error: %i\", sprintf_output_code)\n\t\t\t\t)\n\t\t)", "parent": 143, "children": [146, 147], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 41, "column": 3}}, {"id": 146, "type": "identifier", "text": "ERROR", "parent": 145, "children": [], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 15}}, {"id": 147, "type": "parenthesized_expression", "text": "(\n\t\t\t\t\t\terrcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t\t\t\t\terrmsg(\"sprintf error: %i\", sprintf_output_code)\n\t\t\t\t)", "parent": 145, "children": [148], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 40, "column": 5}}, {"id": 148, "type": "comma_expression", "text": "errcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t\t\t\t\terrmsg(\"sprintf error: %i\", sprintf_output_code)", "parent": 147, "children": [149, 153], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 39, "column": 56}}, {"id": 149, "type": "call_expression", "text": "errcode(ERRCODE_OUT_OF_MEMORY)", "parent": 148, "children": [150, 151], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 36}}, {"id": 150, "type": "identifier", "text": "errcode", "parent": 149, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 13}}, {"id": 151, "type": "argument_list", "text": "(ERRCODE_OUT_OF_MEMORY)", "parent": 149, "children": [152], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 36}}, {"id": 152, "type": "identifier", "text": "ERRCODE_OUT_OF_MEMORY", "parent": 151, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 35}}, {"id": 153, "type": "call_expression", "text": "errmsg(\"sprintf error: %i\", sprintf_output_code)", "parent": 148, "children": [154, 155], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 56}}, {"id": 154, "type": "identifier", "text": "errmsg", "parent": 153, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 155, "type": "argument_list", "text": "(\"sprintf error: %i\", sprintf_output_code)", "parent": 153, "children": [156, 157], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 56}}, {"id": 156, "type": "string_literal", "text": "\"sprintf error: %i\"", "parent": 155, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 34}}, {"id": 157, "type": "identifier", "text": "sprintf_output_code", "parent": 155, "children": [], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 55}}, {"id": 158, "type": "call_expression", "text": "PG_RETURN_TEXT_P(cstring_to_text(buffer))", "parent": 22, "children": [159, 160], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 42}}, {"id": 159, "type": "identifier", "text": "PG_RETURN_TEXT_P", "parent": 158, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 17}}, {"id": 160, "type": "argument_list", "text": "(cstring_to_text(buffer))", "parent": 158, "children": [161], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 42}}, {"id": 161, "type": "call_expression", "text": "cstring_to_text(buffer)", "parent": 160, "children": [162, 163], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 41}}, {"id": 162, "type": "identifier", "text": "cstring_to_text", "parent": 161, "children": [], "start_point": {"row": 43, "column": 18}, "end_point": {"row": 43, "column": 33}}, {"id": 163, "type": "argument_list", "text": "(buffer)", "parent": 161, "children": [164], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 41}}, {"id": 164, "type": "identifier", "text": "buffer", "parent": 163, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 40}}]}, "node_categories": {"declarations": {"functions": [3, 5, 22, 24], "variables": [8, 27, 34, 43, 80, 105], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [10, 15, 18, 29, 39, 50, 51, 55, 59, 60, 61, 65, 66, 70, 71, 76, 87, 95, 96, 112, 115, 116, 117, 118, 121, 122, 127, 128, 129, 133, 134, 143, 147, 148, 149, 153, 158, 161], "assignments": [101, 130], "loops": [], "conditionals": [6, 11, 13, 16, 19, 21, 23, 25, 28, 30, 32, 35, 37, 40, 46, 49, 52, 56, 58, 62, 64, 67, 72, 75, 77, 85, 88, 94, 97, 102, 110, 113, 119, 123, 126, 131, 135, 137, 139, 140, 144, 146, 150, 152, 154, 157, 159, 162, 164], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 14, 33, 42, 48, 54, 69, 74, 79, 90, 104, 125, 138, 142, 156], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "_PG_init", "text_snippet": "void\n_PG_init(void) {\n\telog(DEBUG1, \"loading DemoPGExtension extension....\");\n\t\n\t_guc_init();\n}"}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "_PG_init(void)"}, {"node_id": 22, "universal_type": "function", "name": "sprintf_output_code", "text_snippet": "Datum\nget_welcome_message(PG_FUNCTION_ARGS) {\n\telog(DEBUG1, \"Triggered get_welcome_message func\");\n\t"}, {"node_id": 24, "universal_type": "function", "name": "unknown", "text_snippet": "get_welcome_message(PG_FUNCTION_ARGS)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"extension.h\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"extension.h\"\n\nvoid\n_PG_init(void) {\n\telog(DEBUG1, \"loading DemoPGExtension extension....\");\n\t\n\t_guc_init();\n}\n\nPG_FUNCTION_INFO_V1(get_welcome_message);\n\nDatum\nget_welcome_message(PG_FUNCTION_ARGS) {\n\telog(DEBUG1, \"Triggered get_welcome_message func\");\n\t\n\tint32 arg = PG_GETARG_INT32(0);\n\tint sprintf_output_code = 0;\n\n\tif (arg < 0)\n\t\tereport(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),\n\t\t\t\t\t\t\t\terrmsg(\"negative values are not allowed\"),\n\t\t\t\t\t\t\t\terrdetail(\"value %d is negative\", arg),\n\t\t\t\t\t\t\t\terrhint(\"should be positive\")\n\t\t\t\t)\n\t\t);\n\n\tchar *message_txt = GetConfigOptionByName(\"demopgextension.message_txt\", NULL,\n\t\t\t\t\t\t\t\t\t\t\t true);\n\n\tif (message_txt == NULL)\n\t\tmessage_txt = \"hello\";\n\n\tchar *buffer = palloc0(sizeof(message_txt) + sizeof(arg) + 1);\n\tif ((sprintf_output_code = (sprintf(buffer, \"%s: %i\", message_txt, arg))) < 0)\n\t\tereport(ERROR,\n\t\t\t\t(\n\t\t\t\t\t\terrcode(ERRCODE_OUT_OF_MEMORY),\n\t\t\t\t\t\t\t\terrmsg(\"sprintf error: %i\", sprintf_output_code)\n\t\t\t\t)\n\t\t);\n\n\tPG_RETURN_TEXT_P(cstring_to_text(buffer));\n}"}
80,336
c
#pragma once #include <utility> namespace Testing { namespace Allocator { namespace Construct { template<typename Type, typename ... Args> constexpr static void InPlace(Type& Obj, Args&& ... args) { new(&Obj) Type{ std::forward<Args>(args)... }; } } template<typename Type> constexpr static void Destruct(Type& Place) { Place.~Type(); } } }
18.58
19
(translation_unit) "#pragma once\n#include <utility>\n\nnamespace Testing\n{\n namespace Allocator\n {\n namespace Construct\n {\n template<typename Type, typename ... Args>\n constexpr static void InPlace(Type& Obj, Args&& ... args) {\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }\n\n template<typename Type>\n constexpr static void Destruct(Type& Place) {\n Place.~Type();\n }\n }\n}" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <utility>\n" (#include) "#include" (system_lib_string) "<utility>" (function_definition) "namespace Testing\n{\n namespace Allocator\n {\n namespace Construct\n {\n template<typename Type, typename ... Args>\n constexpr static void InPlace(Type& Obj, Args&& ... args) {\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }\n\n template<typename Type>\n constexpr static void Destruct(Type& Place) {\n Place.~Type();\n }\n }\n}" (type_identifier) "namespace" (identifier) "Testing" (compound_statement) "{\n namespace Allocator\n {\n namespace Construct\n {\n template<typename Type, typename ... Args>\n constexpr static void InPlace(Type& Obj, Args&& ... args) {\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }\n\n template<typename Type>\n constexpr static void Destruct(Type& Place) {\n Place.~Type();\n }\n }\n}" ({) "{" (function_definition) "namespace Allocator\n {\n namespace Construct\n {\n template<typename Type, typename ... Args>\n constexpr static void InPlace(Type& Obj, Args&& ... args) {\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }\n\n template<typename Type>\n constexpr static void Destruct(Type& Place) {\n Place.~Type();\n }\n }\n}" (type_identifier) "namespace" (identifier) "Allocator" (compound_statement) "{\n namespace Construct\n {\n template<typename Type, typename ... Args>\n constexpr static void InPlace(Type& Obj, Args&& ... args) {\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }\n\n template<typename Type>\n constexpr static void Destruct(Type& Place) {\n Place.~Type();\n }\n }\n}" ({) "{" (function_definition) "namespace Construct\n {\n template<typename Type, typename ... Args>\n constexpr static void InPlace(Type& Obj, Args&& ... args) {\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }\n\n template<typename Type>\n constexpr static void Destruct(Type& Place) {\n Place.~Type();\n }\n }" (type_identifier) "namespace" (identifier) "Construct" (compound_statement) "{\n template<typename Type, typename ... Args>\n constexpr static void InPlace(Type& Obj, Args&& ... args) {\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }\n\n template<typename Type>\n constexpr static void Destruct(Type& Place) {\n Place.~Type();\n }\n }" ({) "{" (expression_statement) "template<typename Type, typename ... Args>\n constexpr" (comma_expression) "template<typename Type, typename ... Args>\n constexpr" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (,) "," (binary_expression) "typename ... Args>\n constexpr" (identifier) "typename" (ERROR) "... Args" (...) "..." (identifier) "Args" (>) ">" (identifier) "constexpr" (;) "" (function_definition) "static void InPlace(Type& Obj, Args&& ... args) {\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "InPlace(Type& Obj, Args&& ... args)" (identifier) "InPlace" (parameter_list) "(Type& Obj, Args&& ... args)" (() "(" (parameter_declaration) "Type& Obj" (type_identifier) "Type" (ERROR) "&" (&) "&" (identifier) "Obj" (,) "," (parameter_declaration) "Args&& ... args" (type_identifier) "Args" (ERROR) "&& ..." (&&) "&&" (...) "..." (identifier) "args" ()) ")" (compound_statement) "{\n new(&Obj) Type{ std::forward<Args>(args)... };\n }\n }" ({) "{" (ERROR) "new(&Obj) Type" (call_expression) "new(&Obj)" (identifier) "new" (argument_list) "(&Obj)" (() "(" (pointer_expression) "&Obj" (&) "&" (identifier) "Obj" ()) ")" (identifier) "Type" (compound_statement) "{ std::forward<Args>(args)... };\n }" ({) "{" (labeled_statement) "std::forward<Args>(args)... };" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "forward<Args>(args)... };" (binary_expression) "forward<Args>(args)" (binary_expression) "forward<Args" (identifier) "forward" (<) "<" (identifier) "Args" (>) ">" (parenthesized_expression) "(args)" (() "(" (identifier) "args" ()) ")" (ERROR) "... }" (...) "..." (}) "}" (;) ";" (}) "}" (}) "}" (expression_statement) "template<typename Type>\n constexpr" (binary_expression) "template<typename Type>\n constexpr" (binary_expression) "template<typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "Type" (identifier) "Type" (>) ">" (identifier) "constexpr" (;) "" (function_definition) "static void Destruct(Type& Place) {\n Place.~Type();\n }" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "Destruct(Type& Place)" (identifier) "Destruct" (parameter_list) "(Type& Place)" (() "(" (parameter_declaration) "Type& Place" (type_identifier) "Type" (ERROR) "&" (&) "&" (identifier) "Place" ()) ")" (compound_statement) "{\n Place.~Type();\n }" ({) "{" (expression_statement) "Place.~Type();" (call_expression) "Place.~Type()" (field_expression) "Place.~Type" (identifier) "Place" (.) "." (ERROR) "~" (~) "~" (field_identifier) "Type" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}" (}) ""
139
10
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 18.58, "nodes": 82, "errors": 0, "source_hash": "66732a1ccf7defa2292d17df7cdfcbf50b4d99b1efa4ea32b4fe00d2f1354b30", "categorized_nodes": 58}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <utility>\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": "<utility>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "function_definition", "text": "namespace Testing\n{\n\tnamespace Allocator\n\t{\n\t\tnamespace Construct\n\t\t{\n\t\t\ttemplate<typename Type, typename ... Args>\n\t\t\tconstexpr static void InPlace(Type& Obj, Args&& ... args) {\n\t\t\t\tnew(&Obj) Type{ std::forward<Args>(args)... };\n\t\t\t}\n\t\t}\n\n\t\ttemplate<typename Type>\n\t\tconstexpr static void Destruct(Type& Place) {\n\t\t\tPlace.~Type();\n\t\t}\n\t}\n}", "parent": null, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 9}}, {"id": 8, "type": "identifier", "text": "Testing", "parent": 6, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "function_definition", "text": "namespace Allocator\n\t{\n\t\tnamespace Construct\n\t\t{\n\t\t\ttemplate<typename Type, typename ... Args>\n\t\t\tconstexpr static void InPlace(Type& Obj, Args&& ... args) {\n\t\t\t\tnew(&Obj) Type{ std::forward<Args>(args)... };\n\t\t\t}\n\t\t}\n\n\t\ttemplate<typename Type>\n\t\tconstexpr static void Destruct(Type& Place) {\n\t\t\tPlace.~Type();\n\t\t}\n\t}\n}", "parent": 6, "children": [10, 11], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 20, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 5, "column": 1}, "end_point": {"row": 5, "column": 10}}, {"id": 11, "type": "identifier", "text": "Allocator", "parent": 9, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 20}}, {"id": 12, "type": "function_definition", "text": "namespace Construct\n\t\t{\n\t\t\ttemplate<typename Type, typename ... Args>\n\t\t\tconstexpr static void InPlace(Type& Obj, Args&& ... args) {\n\t\t\t\tnew(&Obj) Type{ std::forward<Args>(args)... };\n\t\t\t}\n\t\t}\n\n\t\ttemplate<typename Type>\n\t\tconstexpr static void Destruct(Type& Place) {\n\t\t\tPlace.~Type();\n\t\t}\n\t}", "parent": 9, "children": [13, 14], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 19, "column": 2}}, {"id": 13, "type": "type_identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 11}}, {"id": 14, "type": "identifier", "text": "Construct", "parent": 12, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 21}}, {"id": 15, "type": "comma_expression", "text": "template<typename Type, typename ... Args>\n\t\t\tconstexpr", "parent": 12, "children": [16, 20, 22], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 10, "column": 12}}, {"id": 16, "type": "binary_expression", "text": "template<typename", "parent": 15, "children": [17, 18, 19], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 20}}, {"id": 17, "type": "identifier", "text": "template", "parent": 16, "children": [], "start_point": {"row": 9, "column": 3}, "end_point": {"row": 9, "column": 11}}, {"id": 18, "type": "<", "text": "<", "parent": 16, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 12}}, {"id": 19, "type": "identifier", "text": "typename", "parent": 16, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 20}}, {"id": 20, "type": "ERROR", "text": "Type", "parent": 15, "children": [21], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 25}}, {"id": 21, "type": "identifier", "text": "Type", "parent": 20, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 25}}, {"id": 22, "type": "binary_expression", "text": "typename ... Args>\n\t\t\tconstexpr", "parent": 15, "children": [23, 24, 26, 27], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 10, "column": 12}}, {"id": 23, "type": "identifier", "text": "typename", "parent": 22, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 35}}, {"id": 24, "type": "ERROR", "text": "... Args", "parent": 22, "children": [25], "start_point": {"row": 9, "column": 36}, "end_point": {"row": 9, "column": 44}}, {"id": 25, "type": "identifier", "text": "Args", "parent": 24, "children": [], "start_point": {"row": 9, "column": 40}, "end_point": {"row": 9, "column": 44}}, {"id": 26, "type": ">", "text": ">", "parent": 22, "children": [], "start_point": {"row": 9, "column": 44}, "end_point": {"row": 9, "column": 45}}, {"id": 27, "type": "identifier", "text": "constexpr", "parent": 22, "children": [], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 12}}, {"id": 28, "type": "function_definition", "text": "static void InPlace(Type& Obj, Args&& ... args) {\n\t\t\t\tnew(&Obj) Type{ std::forward<Args>(args)... };\n\t\t\t}\n\t\t}", "parent": 12, "children": [29, 30], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 13, "column": 3}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 24}}, {"id": 30, "type": "function_declarator", "text": "InPlace(Type& Obj, Args&& ... args)", "parent": 28, "children": [31, 32], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 60}}, {"id": 31, "type": "identifier", "text": "InPlace", "parent": 30, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 32}}, {"id": 32, "type": "parameter_list", "text": "(Type& Obj, Args&& ... args)", "parent": 30, "children": [33, 36], "start_point": {"row": 10, "column": 32}, "end_point": {"row": 10, "column": 60}}, {"id": 33, "type": "parameter_declaration", "text": "Type& Obj", "parent": 32, "children": [34, 35], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 42}}, {"id": 34, "type": "type_identifier", "text": "Type", "parent": 33, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 37}}, {"id": 35, "type": "identifier", "text": "Obj", "parent": 33, "children": [], "start_point": {"row": 10, "column": 39}, "end_point": {"row": 10, "column": 42}}, {"id": 36, "type": "parameter_declaration", "text": "Args&& ... args", "parent": 32, "children": [37, 38, 40], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 59}}, {"id": 37, "type": "type_identifier", "text": "Args", "parent": 36, "children": [], "start_point": {"row": 10, "column": 44}, "end_point": {"row": 10, "column": 48}}, {"id": 38, "type": "ERROR", "text": "&& ...", "parent": 36, "children": [39], "start_point": {"row": 10, "column": 48}, "end_point": {"row": 10, "column": 54}}, {"id": 39, "type": "&&", "text": "&&", "parent": 38, "children": [], "start_point": {"row": 10, "column": 48}, "end_point": {"row": 10, "column": 50}}, {"id": 40, "type": "identifier", "text": "args", "parent": 36, "children": [], "start_point": {"row": 10, "column": 55}, "end_point": {"row": 10, "column": 59}}, {"id": 41, "type": "ERROR", "text": "new(&Obj) Type", "parent": 28, "children": [42, 46], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 18}}, {"id": 42, "type": "call_expression", "text": "new(&Obj)", "parent": 41, "children": [43], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 13}}, {"id": 43, "type": "argument_list", "text": "(&Obj)", "parent": 42, "children": [44], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 13}}, {"id": 44, "type": "pointer_expression", "text": "&Obj", "parent": 43, "children": [45], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 12}}, {"id": 45, "type": "identifier", "text": "Obj", "parent": 44, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 12}}, {"id": 46, "type": "identifier", "text": "Type", "parent": 41, "children": [], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 18}}, {"id": 47, "type": "labeled_statement", "text": "std::forward<Args>(args)... };", "parent": 28, "children": [48], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 50}}, {"id": 48, "type": "statement_identifier", "text": "std", "parent": 47, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 23}}, {"id": 49, "type": "binary_expression", "text": "forward<Args>(args)", "parent": 47, "children": [50, 54, 55], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 44}}, {"id": 50, "type": "binary_expression", "text": "forward<Args", "parent": 49, "children": [51, 52, 53], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 37}}, {"id": 51, "type": "identifier", "text": "forward", "parent": 50, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 32}}, {"id": 52, "type": "<", "text": "<", "parent": 50, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 33}}, {"id": 53, "type": "identifier", "text": "Args", "parent": 50, "children": [], "start_point": {"row": 11, "column": 33}, "end_point": {"row": 11, "column": 37}}, {"id": 54, "type": ">", "text": ">", "parent": 49, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 38}}, {"id": 55, "type": "parenthesized_expression", "text": "(args)", "parent": 49, "children": [56], "start_point": {"row": 11, "column": 38}, "end_point": {"row": 11, "column": 44}}, {"id": 56, "type": "identifier", "text": "args", "parent": 55, "children": [], "start_point": {"row": 11, "column": 39}, "end_point": {"row": 11, "column": 43}}, {"id": 57, "type": "ERROR", "text": "... }", "parent": 47, "children": [], "start_point": {"row": 11, "column": 44}, "end_point": {"row": 11, "column": 49}}, {"id": 58, "type": "binary_expression", "text": "template<typename Type>\n\t\tconstexpr", "parent": 12, "children": [59, 63, 65, 66], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 16, "column": 11}}, {"id": 59, "type": "binary_expression", "text": "template<typename", "parent": 58, "children": [60, 61, 62], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 19}}, {"id": 60, "type": "identifier", "text": "template", "parent": 59, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 10}}, {"id": 61, "type": "<", "text": "<", "parent": 59, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 11}}, {"id": 62, "type": "identifier", "text": "typename", "parent": 59, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 19}}, {"id": 63, "type": "ERROR", "text": "Type", "parent": 58, "children": [64], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 24}}, {"id": 64, "type": "identifier", "text": "Type", "parent": 63, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 24}}, {"id": 65, "type": ">", "text": ">", "parent": 58, "children": [], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 25}}, {"id": 66, "type": "identifier", "text": "constexpr", "parent": 58, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 11}}, {"id": 67, "type": "function_definition", "text": "static void Destruct(Type& Place) {\n\t\t\tPlace.~Type();\n\t\t}", "parent": 12, "children": [68, 69], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 18, "column": 3}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 23}}, {"id": 69, "type": "function_declarator", "text": "Destruct(Type& Place)", "parent": 67, "children": [70, 71], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 45}}, {"id": 70, "type": "identifier", "text": "Destruct", "parent": 69, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 32}}, {"id": 71, "type": "parameter_list", "text": "(Type& Place)", "parent": 69, "children": [72], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 45}}, {"id": 72, "type": "parameter_declaration", "text": "Type& Place", "parent": 71, "children": [73, 74], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 44}}, {"id": 73, "type": "type_identifier", "text": "Type", "parent": 72, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 37}}, {"id": 74, "type": "identifier", "text": "Place", "parent": 72, "children": [], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 44}}, {"id": 75, "type": "call_expression", "text": "Place.~Type()", "parent": 67, "children": [76, 81], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 16}}, {"id": 76, "type": "field_expression", "text": "Place.~Type", "parent": 75, "children": [77, 78, 80], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 14}}, {"id": 77, "type": "identifier", "text": "Place", "parent": 76, "children": [], "start_point": {"row": 17, "column": 3}, "end_point": {"row": 17, "column": 8}}, {"id": 78, "type": "ERROR", "text": "~", "parent": 76, "children": [79], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 79, "type": "~", "text": "~", "parent": 78, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 80, "type": "field_identifier", "text": "Type", "parent": 76, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 14}}, {"id": 81, "type": "argument_list", "text": "()", "parent": 75, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 16}}]}, "node_categories": {"declarations": {"functions": [6, 9, 12, 28, 30, 67, 69], "variables": [33, 36, 72], "classes": [], "imports": [3, 4], "modules": [], "enums": []}, "statements": {"expressions": [15, 16, 22, 42, 44, 49, 50, 55, 58, 59, 75, 76], "assignments": [], "loops": [], "conditionals": [7, 8, 10, 11, 13, 14, 17, 19, 21, 23, 25, 27, 31, 34, 35, 37, 40, 45, 46, 48, 51, 53, 56, 60, 62, 64, 66, 70, 73, 74, 77, 80], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "InPlace", "text_snippet": "namespace Testing\n{\n\tnamespace Allocator\n\t{\n\t\tnamespace Construct\n\t\t{\n\t\t\ttemplate<typename Type, typ"}, {"node_id": 9, "universal_type": "function", "name": "InPlace", "text_snippet": "namespace Allocator\n\t{\n\t\tnamespace Construct\n\t\t{\n\t\t\ttemplate<typename Type, typename ... Args>\n\t\t\tco"}, {"node_id": 12, "universal_type": "function", "name": "InPlace", "text_snippet": "namespace Construct\n\t\t{\n\t\t\ttemplate<typename Type, typename ... Args>\n\t\t\tconstexpr static void InPla"}, {"node_id": 28, "universal_type": "function", "name": "InPlace", "text_snippet": "static void InPlace(Type& Obj, Args&& ... args) {\n\t\t\t\tnew(&Obj) Type{ std::forward<Args>(args)... };"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "InPlace(Type& Obj, Args&& ... args)"}, {"node_id": 67, "universal_type": "function", "name": "Destruct", "text_snippet": "static void Destruct(Type& Place) {\n\t\t\tPlace.~Type();\n\t\t}"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "Destruct(Type& Place)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <utility>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#pragma once\n#include <utility>\n\nnamespace Testing\n{\n\tnamespace Allocator\n\t{\n\t\tnamespace Construct\n\t\t{\n\t\t\ttemplate<typename Type, typename ... Args>\n\t\t\tconstexpr static void InPlace(Type& Obj, Args&& ... args) {\n\t\t\t\tnew(&Obj) Type{ std::forward<Args>(args)... };\n\t\t\t}\n\t\t}\n\n\t\ttemplate<typename Type>\n\t\tconstexpr static void Destruct(Type& Place) {\n\t\t\tPlace.~Type();\n\t\t}\n\t}\n}"}
80,337
c
// File Name: BST.h // Programmer: <NAME> // Date: 10/17/2017 #ifndef BST_H #define BST_H #include "List.h" #define BUFFER 50 template <class T> class element { public: element(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {}; node<T> * getNode() {return ptrToNode;}; int getRank() { return ranking; }; int getOrder() { return order; }; void setOrder(int o) { order = o; }; element<T> * left() { return leftPtr; }; element<T> * right() { return rightPtr; }; void setLeft(element<T> * ptr) { leftPtr = ptr; }; void setRight(element<T> * ptr) { rightPtr = ptr; }; private: int ranking; int order; node<T> * ptrToNode; element<T> * leftPtr; element<T> * rightPtr; }; template <class T> class BST { public: BST() : root(NULL) {}; ~BST() { deleteTree(root); }; element<T> * getRoot() { return root; }; bool isEmpty() const { return root == NULL; }; int getSize() {return size;}; bool insert(int rank, node<T>* ptr, element<T>* curr); void print(ostream& out, element<T>* curr); void print() { print(cout, root); }; //ostream and root default void setOrder(element<T>* curr); element<T> * searchOrder(int listOrder, element<T> * curr); void deleteTree(element<T>* curr); node<T>* getInput(); static int order; private: element<T> * root; int size; }; template <class T> int BST<T>::order = 0; //initialize static variable template <class T> bool BST<T>::insert(int rank, node<T>* ptr, element<T>* curr) { bool canInsert = true; element<T> * tempPtr = NULL; if (curr == NULL) { curr = new element<T>(rank, ptr); if (isEmpty()) { root = curr; size++; } setOrder(curr); } else { if (rank < curr->getRank()) { if (curr->left() == NULL) { curr->setLeft(tempPtr = new element<T>(rank, ptr)); size++; } else return insert(rank, ptr, curr->left()); } else if (rank >= curr->getRank()) { if (curr->right() == NULL) { curr->setRight(tempPtr = new element<T>(rank, ptr)); size++; } else return insert(rank, ptr, curr->right()); } order = 0; setOrder(root); } return canInsert; } template <class T> void BST<T>::print(ostream& out, element<T>* curr) { if (curr != NULL) { print(out, curr->right()); out << curr->getOrder() << ": " << curr->getNode()->thing.getName() << endl; print(out, curr ->left()); } } template <class T> void BST<T>::setOrder(element<T>* curr) { if (curr != NULL) { setOrder(curr->right()); curr->setOrder(++order); setOrder(curr->left()); } } template <class T> void BST<T>::deleteTree(element<T>* curr) { if (curr != NULL) { deleteTree(curr->left()); deleteTree(curr->right()); delete curr; curr = NULL; order = 0; } } //Big O notation = O(log n) because for every iteration the path is cut down by half template <class T> element<T> * BST<T>::searchOrder(int listOrder, element<T> * curr) { if (listOrder == curr->getOrder()) return curr; else if (listOrder < curr->getOrder()) { if (curr->right() == NULL) return NULL; else return searchOrder(listOrder, curr->right()); } else if (listOrder > curr->getOrder()) { if (curr->left() == NULL) return NULL; else return searchOrder(listOrder, curr->left()); } return NULL; } // input & output used in function to cancel input enter Q template <class T> node<T>* BST<T>::getInput() { int input; char check = cin.peek(); while (!(cin >> input)|| input < 1 || input > size) { if (toupper(check) == 'Q') { cin.clear(); cin.ignore(BUFFER, '\n'); return NULL; } cin.clear(); cin.ignore(BUFFER, '\n'); cout << "Invalid Input. Please enter a menu number or 'Q': " << endl; check = cin.peek(); } cin.clear(); cin.ignore(BUFFER, '\n'); element<T> * nodeOutput = searchOrder(input, root); return nodeOutput->getNode(); } #endif
21.22
180
(translation_unit) "// File Name: BST.h \n// Programmer: <NAME> \n// Date: 10/17/2017 \n#ifndef BST_H \n#define BST_H \n \n#include "List.h" \n#define BUFFER 50 \ntemplate <class T> \nclass element \n{ \npublic: \n element(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {}; \n node<T> * getNode() {return ptrToNode;}; \n int getRank() { return ranking; }; \n int getOrder() { return order; }; \n void setOrder(int o) { order = o; }; \n element<T> * left() { return leftPtr; }; \n element<T> * right() { return rightPtr; }; \n void setLeft(element<T> * ptr) { leftPtr = ptr; }; \n void setRight(element<T> * ptr) { rightPtr = ptr; }; \nprivate: \n int ranking; \n int order; \n node<T> * ptrToNode; \n element<T> * leftPtr; \n element<T> * rightPtr; \n}; \n \ntemplate <class T> \nclass BST \n{ \npublic: \n BST() : root(NULL) {}; \n ~BST() { deleteTree(root); }; \n element<T> * getRoot() { return root; }; \n bool isEmpty() const { return root == NULL; }; \n int getSize() {return size;}; \n bool insert(int rank, node<T>* ptr, element<T>* curr); \n void print(ostream& out, element<T>* curr); \n void print() { print(cout, root); }; //ostream and root default \n void setOrder(element<T>* curr); \n element<T> * searchOrder(int listOrder, element<T> * curr); \n void deleteTree(element<T>* curr); \n node<T>* getInput(); \n static int order; \nprivate: \n element<T> * root; \n int size; \n}; \n \ntemplate <class T> \nint BST<T>::order = 0; //initialize static variable \n \ntemplate <class T> \nbool BST<T>::insert(int rank, node<T>* ptr, element<T>* curr) \n{ \n bool canInsert = true; \n element<T> * tempPtr = NULL; \n if (curr == NULL) \n { \n curr = new element<T>(rank, ptr); \n if (isEmpty()) \n { \n root = curr; \n size++; \n } \n setOrder(curr); \n } \n else \n { \n if (rank < curr->getRank()) \n { \n if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left()); \n } \n else if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n } \n order = 0; \n setOrder(root); \n } \n return canInsert; \n} \n \ntemplate <class T> \nvoid BST<T>::print(ostream& out, element<T>* curr) \n{ \n if (curr != NULL) \n { \n print(out, curr->right()); \n out << curr->getOrder() << ": " << curr->getNode()->thing.getName() << endl; \n print(out, curr ->left()); \n } \n} \n \ntemplate <class T> \nvoid BST<T>::setOrder(element<T>* curr) \n{ \n if (curr != NULL) \n { \n setOrder(curr->right()); \n curr->setOrder(++order); \n setOrder(curr->left()); \n } \n} \ntemplate <class T> \nvoid BST<T>::deleteTree(element<T>* curr) \n{ \n if (curr != NULL) \n { \n deleteTree(curr->left()); \n deleteTree(curr->right()); \n delete curr; \n curr = NULL; \n order = 0; \n } \n} \n//Big O notation = O(log n) because for every iteration the path is cut down by half \ntemplate <class T> \nelement<T> * BST<T>::searchOrder(int listOrder, element<T> * curr) \n{ \n if (listOrder == curr->getOrder()) \n return curr; \n else if (listOrder < curr->getOrder()) \n { \n if (curr->right() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->right()); \n } \n else if (listOrder > curr->getOrder()) \n { \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n } \n return NULL; \n \n} \n// input & output used in function to cancel input enter Q \ntemplate <class T> \nnode<T>* BST<T>::getInput() \n{ \n int input; \n char check = cin.peek(); \n while (!(cin >> input)|| input < 1 || input > size) \n { \n if (toupper(check) == 'Q') \n { \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n return NULL; \n } \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n cout << "Invalid Input. Please enter a menu number or 'Q': " << endl; \n check = cin.peek(); \n } \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n \n element<T> * nodeOutput = searchOrder(input, root); \n return nodeOutput->getNode(); \n} \n \n#endif" (comment) "// File Name: BST.h " (comment) "// Programmer: <NAME> " (comment) "// Date: 10/17/2017 " (preproc_ifdef) "#ifndef BST_H \n#define BST_H \n \n#include "List.h" \n#define BUFFER 50 \ntemplate <class T> \nclass element \n{ \npublic: \n element(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {}; \n node<T> * getNode() {return ptrToNode;}; \n int getRank() { return ranking; }; \n int getOrder() { return order; }; \n void setOrder(int o) { order = o; }; \n element<T> * left() { return leftPtr; }; \n element<T> * right() { return rightPtr; }; \n void setLeft(element<T> * ptr) { leftPtr = ptr; }; \n void setRight(element<T> * ptr) { rightPtr = ptr; }; \nprivate: \n int ranking; \n int order; \n node<T> * ptrToNode; \n element<T> * leftPtr; \n element<T> * rightPtr; \n}; \n \ntemplate <class T> \nclass BST \n{ \npublic: \n BST() : root(NULL) {}; \n ~BST() { deleteTree(root); }; \n element<T> * getRoot() { return root; }; \n bool isEmpty() const { return root == NULL; }; \n int getSize() {return size;}; \n bool insert(int rank, node<T>* ptr, element<T>* curr); \n void print(ostream& out, element<T>* curr); \n void print() { print(cout, root); }; //ostream and root default \n void setOrder(element<T>* curr); \n element<T> * searchOrder(int listOrder, element<T> * curr); \n void deleteTree(element<T>* curr); \n node<T>* getInput(); \n static int order; \nprivate: \n element<T> * root; \n int size; \n}; \n \ntemplate <class T> \nint BST<T>::order = 0; //initialize static variable \n \ntemplate <class T> \nbool BST<T>::insert(int rank, node<T>* ptr, element<T>* curr) \n{ \n bool canInsert = true; \n element<T> * tempPtr = NULL; \n if (curr == NULL) \n { \n curr = new element<T>(rank, ptr); \n if (isEmpty()) \n { \n root = curr; \n size++; \n } \n setOrder(curr); \n } \n else \n { \n if (rank < curr->getRank()) \n { \n if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left()); \n } \n else if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n } \n order = 0; \n setOrder(root); \n } \n return canInsert; \n} \n \ntemplate <class T> \nvoid BST<T>::print(ostream& out, element<T>* curr) \n{ \n if (curr != NULL) \n { \n print(out, curr->right()); \n out << curr->getOrder() << ": " << curr->getNode()->thing.getName() << endl; \n print(out, curr ->left()); \n } \n} \n \ntemplate <class T> \nvoid BST<T>::setOrder(element<T>* curr) \n{ \n if (curr != NULL) \n { \n setOrder(curr->right()); \n curr->setOrder(++order); \n setOrder(curr->left()); \n } \n} \ntemplate <class T> \nvoid BST<T>::deleteTree(element<T>* curr) \n{ \n if (curr != NULL) \n { \n deleteTree(curr->left()); \n deleteTree(curr->right()); \n delete curr; \n curr = NULL; \n order = 0; \n } \n} \n//Big O notation = O(log n) because for every iteration the path is cut down by half \ntemplate <class T> \nelement<T> * BST<T>::searchOrder(int listOrder, element<T> * curr) \n{ \n if (listOrder == curr->getOrder()) \n return curr; \n else if (listOrder < curr->getOrder()) \n { \n if (curr->right() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->right()); \n } \n else if (listOrder > curr->getOrder()) \n { \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n } \n return NULL; \n \n} \n// input & output used in function to cancel input enter Q \ntemplate <class T> \nnode<T>* BST<T>::getInput() \n{ \n int input; \n char check = cin.peek(); \n while (!(cin >> input)|| input < 1 || input > size) \n { \n if (toupper(check) == 'Q') \n { \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n return NULL; \n } \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n cout << "Invalid Input. Please enter a menu number or 'Q': " << endl; \n check = cin.peek(); \n } \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n \n element<T> * nodeOutput = searchOrder(input, root); \n return nodeOutput->getNode(); \n} \n \n#endif" (#ifndef) "#ifndef" (identifier) "BST_H" (preproc_def) "#define BST_H \n" (#define) "#define" (identifier) "BST_H" (preproc_include) "#include "List.h" \n" (#include) "#include" (string_literal) ""List.h"" (") """ (string_content) "List.h" (") """ (preproc_def) "#define BUFFER 50 \n" (#define) "#define" (identifier) "BUFFER" (preproc_arg) "50 " (ERROR) "template <class T> \nclass element" (binary_expression) "template <class T> \nclass" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (identifier) "element" (compound_statement) "{ \npublic: \n element(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {}; \n node<T> * getNode() {return ptrToNode;}; \n int getRank() { return ranking; }; \n int getOrder() { return order; }; \n void setOrder(int o) { order = o; }; \n element<T> * left() { return leftPtr; }; \n element<T> * right() { return rightPtr; }; \n void setLeft(element<T> * ptr) { leftPtr = ptr; }; \n void setRight(element<T> * ptr) { rightPtr = ptr; }; \nprivate: \n int ranking; \n int order; \n node<T> * ptrToNode; \n element<T> * leftPtr; \n element<T> * rightPtr; \n}" ({) "{" (labeled_statement) "public: \n element(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {};" (statement_identifier) "public" (:) ":" (declaration) "element(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {};" (macro_type_specifier) "element(int" (identifier) "element" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) "" (identifier) "ranking" (,) "," (ERROR) "node<T> * ptr) :" (identifier) "node" (<) "<" (identifier) "T" (>) ">" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (:) ":" (function_declarator) "ranking(ranking)" (identifier) "ranking" (parameter_list) "(ranking)" (() "(" (parameter_declaration) "ranking" (type_identifier) "ranking" ()) ")" (,) "," (function_declarator) "ptrToNode(ptr)" (identifier) "ptrToNode" (parameter_list) "(ptr)" (() "(" (parameter_declaration) "ptr" (type_identifier) "ptr" ()) ")" (ERROR) ", order(0) {}" (,) "," (function_declarator) "order(0)" (identifier) "order" (parameter_list) "(0)" (() "(" (ERROR) "0" (number_literal) "0" ()) ")" ({) "{" (}) "}" (;) ";" (expression_statement) "node<T> * getNode()" (binary_expression) "node<T> * getNode()" (binary_expression) "node<T" (identifier) "node" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* getNode()" (*) "*" (call_expression) "getNode()" (identifier) "getNode" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{return ptrToNode;}" ({) "{" (return_statement) "return ptrToNode;" (return) "return" (identifier) "ptrToNode" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "int getRank() { return ranking; }" (primitive_type) "int" (function_declarator) "getRank()" (identifier) "getRank" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return ranking; }" ({) "{" (return_statement) "return ranking;" (return) "return" (identifier) "ranking" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "int getOrder() { return order; }" (primitive_type) "int" (function_declarator) "getOrder()" (identifier) "getOrder" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return order; }" ({) "{" (return_statement) "return order;" (return) "return" (identifier) "order" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setOrder(int o) { order = o; }" (primitive_type) "void" (function_declarator) "setOrder(int o)" (identifier) "setOrder" (parameter_list) "(int o)" (() "(" (parameter_declaration) "int o" (primitive_type) "int" (identifier) "o" ()) ")" (compound_statement) "{ order = o; }" ({) "{" (expression_statement) "order = o;" (assignment_expression) "order = o" (identifier) "order" (=) "=" (identifier) "o" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "element<T> * left()" (binary_expression) "element<T> * left()" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* left()" (*) "*" (call_expression) "left()" (identifier) "left" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ return leftPtr; }" ({) "{" (return_statement) "return leftPtr;" (return) "return" (identifier) "leftPtr" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "element<T> * right()" (binary_expression) "element<T> * right()" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* right()" (*) "*" (call_expression) "right()" (identifier) "right" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ return rightPtr; }" ({) "{" (return_statement) "return rightPtr;" (return) "return" (identifier) "rightPtr" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setLeft(element<T> * ptr) { leftPtr = ptr; }" (primitive_type) "void" (function_declarator) "setLeft(element<T> * ptr)" (identifier) "setLeft" (parameter_list) "(element<T> * ptr)" (() "(" (parameter_declaration) "element<T> * ptr" (type_identifier) "element" (ERROR) "<T>" (<) "<" (identifier) "T" (>) ">" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{ leftPtr = ptr; }" ({) "{" (expression_statement) "leftPtr = ptr;" (assignment_expression) "leftPtr = ptr" (identifier) "leftPtr" (=) "=" (identifier) "ptr" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setRight(element<T> * ptr) { rightPtr = ptr; }" (primitive_type) "void" (function_declarator) "setRight(element<T> * ptr)" (identifier) "setRight" (parameter_list) "(element<T> * ptr)" (() "(" (parameter_declaration) "element<T> * ptr" (type_identifier) "element" (ERROR) "<T>" (<) "<" (identifier) "T" (>) ">" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" ()) ")" (compound_statement) "{ rightPtr = ptr; }" ({) "{" (expression_statement) "rightPtr = ptr;" (assignment_expression) "rightPtr = ptr" (identifier) "rightPtr" (=) "=" (identifier) "ptr" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (labeled_statement) "private: \n int ranking;" (statement_identifier) "private" (:) ":" (declaration) "int ranking;" (primitive_type) "int" (identifier) "ranking" (;) ";" (declaration) "int order;" (primitive_type) "int" (identifier) "order" (;) ";" (expression_statement) "node<T> * ptrToNode;" (binary_expression) "node<T> * ptrToNode" (binary_expression) "node<T" (identifier) "node" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* ptrToNode" (*) "*" (identifier) "ptrToNode" (;) ";" (expression_statement) "element<T> * leftPtr;" (binary_expression) "element<T> * leftPtr" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* leftPtr" (*) "*" (identifier) "leftPtr" (;) ";" (expression_statement) "element<T> * rightPtr;" (binary_expression) "element<T> * rightPtr" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* rightPtr" (*) "*" (identifier) "rightPtr" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "template <class T> \nclass BST" (binary_expression) "template <class T> \nclass" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "class" (identifier) "BST" (compound_statement) "{ \npublic: \n BST() : root(NULL) {}; \n ~BST() { deleteTree(root); }; \n element<T> * getRoot() { return root; }; \n bool isEmpty() const { return root == NULL; }; \n int getSize() {return size;}; \n bool insert(int rank, node<T>* ptr, element<T>* curr); \n void print(ostream& out, element<T>* curr); \n void print() { print(cout, root); }; //ostream and root default \n void setOrder(element<T>* curr); \n element<T> * searchOrder(int listOrder, element<T> * curr); \n void deleteTree(element<T>* curr); \n node<T>* getInput(); \n static int order; \nprivate: \n element<T> * root; \n int size; \n}" ({) "{" (labeled_statement) "public: \n BST() : root(NULL) {}" (statement_identifier) "public" (:) ":" (ERROR) "BST() : root(NULL)" (call_expression) "BST()" (identifier) "BST" (argument_list) "()" (() "(" ()) ")" (:) ":" (macro_type_specifier) "root(NULL)" (identifier) "root" (() "(" (type_descriptor) "NULL" (type_identifier) "NULL" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "~BST()" (unary_expression) "~BST()" (~) "~" (call_expression) "BST()" (identifier) "BST" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ deleteTree(root); }" ({) "{" (expression_statement) "deleteTree(root);" (call_expression) "deleteTree(root)" (identifier) "deleteTree" (argument_list) "(root)" (() "(" (identifier) "root" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "element<T> * getRoot()" (binary_expression) "element<T> * getRoot()" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* getRoot()" (*) "*" (call_expression) "getRoot()" (identifier) "getRoot" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ return root; }" ({) "{" (return_statement) "return root;" (return) "return" (identifier) "root" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "bool isEmpty() const" (primitive_type) "bool" (function_declarator) "isEmpty()" (identifier) "isEmpty" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (compound_statement) "{ return root == NULL; }" ({) "{" (return_statement) "return root == NULL;" (return) "return" (binary_expression) "root == NULL" (identifier) "root" (==) "==" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "int getSize() {return size;}" (primitive_type) "int" (function_declarator) "getSize()" (identifier) "getSize" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{return size;}" ({) "{" (return_statement) "return size;" (return) "return" (identifier) "size" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "bool insert(int rank, node<T>* ptr, element<T>* curr);" (primitive_type) "bool" (function_declarator) "insert(int rank, node<T>* ptr, element<T>* curr)" (identifier) "insert" (parameter_list) "(int rank, node<T>* ptr, element<T>* curr)" (() "(" (parameter_declaration) "int rank" (primitive_type) "int" (identifier) "rank" (,) "," (parameter_declaration) "node<T>* ptr" (type_identifier) "node" (ERROR) "<T>" (<) "<" (identifier) "T" (>) ">" (pointer_declarator) "* ptr" (*) "*" (identifier) "ptr" (,) "," (parameter_declaration) "element<T>* curr" (type_identifier) "element" (ERROR) "<T>" (<) "<" (identifier) "T" (>) ">" (pointer_declarator) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) ";" (declaration) "void print(ostream& out, element<T>* curr);" (primitive_type) "void" (function_declarator) "print(ostream& out, element<T>* curr)" (identifier) "print" (parameter_list) "(ostream& out, element<T>* curr)" (() "(" (parameter_declaration) "ostream& out" (type_identifier) "ostream" (ERROR) "&" (&) "&" (identifier) "out" (,) "," (parameter_declaration) "element<T>* curr" (type_identifier) "element" (ERROR) "<T>" (<) "<" (identifier) "T" (>) ">" (pointer_declarator) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) ";" (function_definition) "void print() { print(cout, root); }" (primitive_type) "void" (function_declarator) "print()" (identifier) "print" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ print(cout, root); }" ({) "{" (expression_statement) "print(cout, root);" (call_expression) "print(cout, root)" (identifier) "print" (argument_list) "(cout, root)" (() "(" (identifier) "cout" (,) "," (identifier) "root" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "//ostream and root default " (declaration) "void setOrder(element<T>* curr);" (primitive_type) "void" (function_declarator) "setOrder(element<T>* curr)" (identifier) "setOrder" (parameter_list) "(element<T>* curr)" (() "(" (parameter_declaration) "element<T>* curr" (type_identifier) "element" (ERROR) "<T>" (<) "<" (identifier) "T" (>) ">" (pointer_declarator) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) ";" (expression_statement) "element<T> * searchOrder(int listOrder, element<T> * curr);" (binary_expression) "element<T> * searchOrder(int listOrder, element<T> * curr)" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* searchOrder(int listOrder, element<T> * curr)" (*) "*" (call_expression) "searchOrder(int listOrder, element<T> * curr)" (identifier) "searchOrder" (argument_list) "(int listOrder, element<T> * curr)" (() "(" (ERROR) "int" (identifier) "int" (identifier) "listOrder" (,) "," (binary_expression) "element<T> * curr" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) ";" (declaration) "void deleteTree(element<T>* curr);" (primitive_type) "void" (function_declarator) "deleteTree(element<T>* curr)" (identifier) "deleteTree" (parameter_list) "(element<T>* curr)" (() "(" (parameter_declaration) "element<T>* curr" (type_identifier) "element" (ERROR) "<T>" (<) "<" (identifier) "T" (>) ">" (pointer_declarator) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) ";" (expression_statement) "node<T>* getInput();" (binary_expression) "node<T>* getInput()" (binary_expression) "node<T" (identifier) "node" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* getInput()" (*) "*" (call_expression) "getInput()" (identifier) "getInput" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static int order;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (identifier) "order" (;) ";" (labeled_statement) "private: \n element<T> * root;" (statement_identifier) "private" (:) ":" (expression_statement) "element<T> * root;" (binary_expression) "element<T> * root" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* root" (*) "*" (identifier) "root" (;) ";" (declaration) "int size;" (primitive_type) "int" (identifier) "size" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (expression_statement) "template <class T> \nint BST<T>::order = 0;" (binary_expression) "template <class T> \nint BST<T>::order = 0" (binary_expression) "template <class T> \nint BST<T" (binary_expression) "template <class T> \nint" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "int" (ERROR) "BST" (identifier) "BST" (<) "<" (identifier) "T" (>) ">" (ERROR) "::" (:) ":" (:) ":" (assignment_expression) "order = 0" (identifier) "order" (=) "=" (number_literal) "0" (;) ";" (comment) "//initialize static variable " (expression_statement) "template <class T> \nbool BST<T>::insert(int rank, node<T>* ptr, element<T>* curr)" (binary_expression) "template <class T> \nbool BST<T>::insert(int rank, node<T>* ptr, element<T>* curr)" (binary_expression) "template <class T> \nbool BST<T" (binary_expression) "template <class T> \nbool" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "bool" (ERROR) "BST" (identifier) "BST" (<) "<" (identifier) "T" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "insert(int rank, node<T>* ptr, element<T>* curr)" (identifier) "insert" (argument_list) "(int rank, node<T>* ptr, element<T>* curr)" (() "(" (ERROR) "int" (identifier) "int" (identifier) "rank" (,) "," (binary_expression) "node<T>* ptr" (binary_expression) "node<T" (identifier) "node" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* ptr" (*) "*" (identifier) "ptr" (,) "," (binary_expression) "element<T>* curr" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) "" (compound_statement) "{ \n bool canInsert = true; \n element<T> * tempPtr = NULL; \n if (curr == NULL) \n { \n curr = new element<T>(rank, ptr); \n if (isEmpty()) \n { \n root = curr; \n size++; \n } \n setOrder(curr); \n } \n else \n { \n if (rank < curr->getRank()) \n { \n if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left()); \n } \n else if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n } \n order = 0; \n setOrder(root); \n } \n return canInsert; \n}" ({) "{" (declaration) "bool canInsert = true;" (primitive_type) "bool" (init_declarator) "canInsert = true" (identifier) "canInsert" (=) "=" (true) "true" (;) ";" (expression_statement) "element<T> * tempPtr = NULL;" (binary_expression) "element<T> * tempPtr = NULL" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (assignment_expression) "* tempPtr = NULL" (pointer_expression) "* tempPtr" (*) "*" (identifier) "tempPtr" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (if_statement) "if (curr == NULL) \n { \n curr = new element<T>(rank, ptr); \n if (isEmpty()) \n { \n root = curr; \n size++; \n } \n setOrder(curr); \n } \n else \n { \n if (rank < curr->getRank()) \n { \n if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left()); \n } \n else if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n } \n order = 0; \n setOrder(root); \n }" (if) "if" (parenthesized_expression) "(curr == NULL)" (() "(" (binary_expression) "curr == NULL" (identifier) "curr" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{ \n curr = new element<T>(rank, ptr); \n if (isEmpty()) \n { \n root = curr; \n size++; \n } \n setOrder(curr); \n }" ({) "{" (expression_statement) "curr = new element<T>(rank, ptr);" (assignment_expression) "curr = new element<T>(rank, ptr)" (identifier) "curr" (=) "=" (ERROR) "new" (identifier) "new" (binary_expression) "element<T>(rank, ptr)" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(rank, ptr)" (() "(" (comma_expression) "rank, ptr" (identifier) "rank" (,) "," (identifier) "ptr" ()) ")" (;) ";" (if_statement) "if (isEmpty()) \n { \n root = curr; \n size++; \n }" (if) "if" (parenthesized_expression) "(isEmpty())" (() "(" (call_expression) "isEmpty()" (identifier) "isEmpty" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n root = curr; \n size++; \n }" ({) "{" (expression_statement) "root = curr;" (assignment_expression) "root = curr" (identifier) "root" (=) "=" (identifier) "curr" (;) ";" (expression_statement) "size++;" (update_expression) "size++" (identifier) "size" (++) "++" (;) ";" (}) "}" (expression_statement) "setOrder(curr);" (call_expression) "setOrder(curr)" (identifier) "setOrder" (argument_list) "(curr)" (() "(" (identifier) "curr" ()) ")" (;) ";" (}) "}" (else_clause) "else \n { \n if (rank < curr->getRank()) \n { \n if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left()); \n } \n else if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n } \n order = 0; \n setOrder(root); \n }" (else) "else" (compound_statement) "{ \n if (rank < curr->getRank()) \n { \n if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left()); \n } \n else if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n } \n order = 0; \n setOrder(root); \n }" ({) "{" (if_statement) "if (rank < curr->getRank()) \n { \n if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left()); \n } \n else if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n }" (if) "if" (parenthesized_expression) "(rank < curr->getRank())" (() "(" (binary_expression) "rank < curr->getRank()" (identifier) "rank" (<) "<" (call_expression) "curr->getRank()" (field_expression) "curr->getRank" (identifier) "curr" (->) "->" (field_identifier) "getRank" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left()); \n }" ({) "{" (if_statement) "if (curr->left() == NULL) \n { \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->left());" (if) "if" (parenthesized_expression) "(curr->left() == NULL)" (() "(" (binary_expression) "curr->left() == NULL" (call_expression) "curr->left()" (field_expression) "curr->left" (identifier) "curr" (->) "->" (field_identifier) "left" (argument_list) "()" (() "(" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{ \n curr->setLeft(tempPtr = new element<T>(rank, ptr)); \n size++; \n }" ({) "{" (expression_statement) "curr->setLeft(tempPtr = new element<T>(rank, ptr));" (call_expression) "curr->setLeft(tempPtr = new element<T>(rank, ptr))" (field_expression) "curr->setLeft" (identifier) "curr" (->) "->" (field_identifier) "setLeft" (argument_list) "(tempPtr = new element<T>(rank, ptr))" (() "(" (assignment_expression) "tempPtr = new element<T>(rank, ptr)" (identifier) "tempPtr" (=) "=" (ERROR) "new" (identifier) "new" (binary_expression) "element<T>(rank, ptr)" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(rank, ptr)" (() "(" (comma_expression) "rank, ptr" (identifier) "rank" (,) "," (identifier) "ptr" ()) ")" ()) ")" (;) ";" (expression_statement) "size++;" (update_expression) "size++" (identifier) "size" (++) "++" (;) ";" (}) "}" (else_clause) "else \n return insert(rank, ptr, curr->left());" (else) "else" (return_statement) "return insert(rank, ptr, curr->left());" (return) "return" (call_expression) "insert(rank, ptr, curr->left())" (identifier) "insert" (argument_list) "(rank, ptr, curr->left())" (() "(" (identifier) "rank" (,) "," (identifier) "ptr" (,) "," (call_expression) "curr->left()" (field_expression) "curr->left" (identifier) "curr" (->) "->" (field_identifier) "left" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n }" (else) "else" (if_statement) "if (rank >= curr->getRank()) \n { \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n }" (if) "if" (parenthesized_expression) "(rank >= curr->getRank())" (() "(" (binary_expression) "rank >= curr->getRank()" (identifier) "rank" (>=) ">=" (call_expression) "curr->getRank()" (field_expression) "curr->getRank" (identifier) "curr" (->) "->" (field_identifier) "getRank" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right()); \n }" ({) "{" (if_statement) "if (curr->right() == NULL) \n { \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n } \n else \n return insert(rank, ptr, curr->right());" (if) "if" (parenthesized_expression) "(curr->right() == NULL)" (() "(" (binary_expression) "curr->right() == NULL" (call_expression) "curr->right()" (field_expression) "curr->right" (identifier) "curr" (->) "->" (field_identifier) "right" (argument_list) "()" (() "(" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{ \n curr->setRight(tempPtr = new element<T>(rank, ptr)); \n size++; \n }" ({) "{" (expression_statement) "curr->setRight(tempPtr = new element<T>(rank, ptr));" (call_expression) "curr->setRight(tempPtr = new element<T>(rank, ptr))" (field_expression) "curr->setRight" (identifier) "curr" (->) "->" (field_identifier) "setRight" (argument_list) "(tempPtr = new element<T>(rank, ptr))" (() "(" (assignment_expression) "tempPtr = new element<T>(rank, ptr)" (identifier) "tempPtr" (=) "=" (ERROR) "new" (identifier) "new" (binary_expression) "element<T>(rank, ptr)" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (parenthesized_expression) "(rank, ptr)" (() "(" (comma_expression) "rank, ptr" (identifier) "rank" (,) "," (identifier) "ptr" ()) ")" ()) ")" (;) ";" (expression_statement) "size++;" (update_expression) "size++" (identifier) "size" (++) "++" (;) ";" (}) "}" (else_clause) "else \n return insert(rank, ptr, curr->right());" (else) "else" (return_statement) "return insert(rank, ptr, curr->right());" (return) "return" (call_expression) "insert(rank, ptr, curr->right())" (identifier) "insert" (argument_list) "(rank, ptr, curr->right())" (() "(" (identifier) "rank" (,) "," (identifier) "ptr" (,) "," (call_expression) "curr->right()" (field_expression) "curr->right" (identifier) "curr" (->) "->" (field_identifier) "right" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "order = 0;" (assignment_expression) "order = 0" (identifier) "order" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "setOrder(root);" (call_expression) "setOrder(root)" (identifier) "setOrder" (argument_list) "(root)" (() "(" (identifier) "root" ()) ")" (;) ";" (}) "}" (return_statement) "return canInsert;" (return) "return" (identifier) "canInsert" (;) ";" (}) "}" (expression_statement) "template <class T> \nvoid BST<T>::print(ostream& out, element<T>* curr)" (binary_expression) "template <class T> \nvoid BST<T>::print(ostream& out, element<T>* curr)" (binary_expression) "template <class T> \nvoid BST<T" (binary_expression) "template <class T> \nvoid" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "void" (ERROR) "BST" (identifier) "BST" (<) "<" (identifier) "T" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "print(ostream& out, element<T>* curr)" (identifier) "print" (argument_list) "(ostream& out, element<T>* curr)" (() "(" (binary_expression) "ostream& out" (identifier) "ostream" (&) "&" (identifier) "out" (,) "," (binary_expression) "element<T>* curr" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) "" (compound_statement) "{ \n if (curr != NULL) \n { \n print(out, curr->right()); \n out << curr->getOrder() << ": " << curr->getNode()->thing.getName() << endl; \n print(out, curr ->left()); \n } \n}" ({) "{" (if_statement) "if (curr != NULL) \n { \n print(out, curr->right()); \n out << curr->getOrder() << ": " << curr->getNode()->thing.getName() << endl; \n print(out, curr ->left()); \n }" (if) "if" (parenthesized_expression) "(curr != NULL)" (() "(" (binary_expression) "curr != NULL" (identifier) "curr" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{ \n print(out, curr->right()); \n out << curr->getOrder() << ": " << curr->getNode()->thing.getName() << endl; \n print(out, curr ->left()); \n }" ({) "{" (expression_statement) "print(out, curr->right());" (call_expression) "print(out, curr->right())" (identifier) "print" (argument_list) "(out, curr->right())" (() "(" (identifier) "out" (,) "," (call_expression) "curr->right()" (field_expression) "curr->right" (identifier) "curr" (->) "->" (field_identifier) "right" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "out << curr->getOrder() << ": " << curr->getNode()->thing.getName() << endl;" (binary_expression) "out << curr->getOrder() << ": " << curr->getNode()->thing.getName() << endl" (binary_expression) "out << curr->getOrder() << ": " << curr->getNode()->thing.getName()" (binary_expression) "out << curr->getOrder() << ": "" (binary_expression) "out << curr->getOrder()" (identifier) "out" (<<) "<<" (call_expression) "curr->getOrder()" (field_expression) "curr->getOrder" (identifier) "curr" (->) "->" (field_identifier) "getOrder" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (string_literal) "": "" (") """ (string_content) ": " (") """ (<<) "<<" (call_expression) "curr->getNode()->thing.getName()" (field_expression) "curr->getNode()->thing.getName" (field_expression) "curr->getNode()->thing" (call_expression) "curr->getNode()" (field_expression) "curr->getNode" (identifier) "curr" (->) "->" (field_identifier) "getNode" (argument_list) "()" (() "(" ()) ")" (->) "->" (field_identifier) "thing" (.) "." (field_identifier) "getName" (argument_list) "()" (() "(" ()) ")" (<<) "<<" (identifier) "endl" (;) ";" (expression_statement) "print(out, curr ->left());" (call_expression) "print(out, curr ->left())" (identifier) "print" (argument_list) "(out, curr ->left())" (() "(" (identifier) "out" (,) "," (call_expression) "curr ->left()" (field_expression) "curr ->left" (identifier) "curr" (->) "->" (field_identifier) "left" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "template <class T> \nvoid BST<T>::setOrder(element<T>* curr)" (binary_expression) "template <class T> \nvoid BST<T>::setOrder(element<T>* curr)" (binary_expression) "template <class T> \nvoid BST<T" (binary_expression) "template <class T> \nvoid" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "void" (ERROR) "BST" (identifier) "BST" (<) "<" (identifier) "T" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "setOrder(element<T>* curr)" (identifier) "setOrder" (argument_list) "(element<T>* curr)" (() "(" (binary_expression) "element<T>* curr" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) "" (compound_statement) "{ \n if (curr != NULL) \n { \n setOrder(curr->right()); \n curr->setOrder(++order); \n setOrder(curr->left()); \n } \n}" ({) "{" (if_statement) "if (curr != NULL) \n { \n setOrder(curr->right()); \n curr->setOrder(++order); \n setOrder(curr->left()); \n }" (if) "if" (parenthesized_expression) "(curr != NULL)" (() "(" (binary_expression) "curr != NULL" (identifier) "curr" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{ \n setOrder(curr->right()); \n curr->setOrder(++order); \n setOrder(curr->left()); \n }" ({) "{" (expression_statement) "setOrder(curr->right());" (call_expression) "setOrder(curr->right())" (identifier) "setOrder" (argument_list) "(curr->right())" (() "(" (call_expression) "curr->right()" (field_expression) "curr->right" (identifier) "curr" (->) "->" (field_identifier) "right" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "curr->setOrder(++order);" (call_expression) "curr->setOrder(++order)" (field_expression) "curr->setOrder" (identifier) "curr" (->) "->" (field_identifier) "setOrder" (argument_list) "(++order)" (() "(" (update_expression) "++order" (++) "++" (identifier) "order" ()) ")" (;) ";" (expression_statement) "setOrder(curr->left());" (call_expression) "setOrder(curr->left())" (identifier) "setOrder" (argument_list) "(curr->left())" (() "(" (call_expression) "curr->left()" (field_expression) "curr->left" (identifier) "curr" (->) "->" (field_identifier) "left" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (expression_statement) "template <class T> \nvoid BST<T>::deleteTree(element<T>* curr)" (binary_expression) "template <class T> \nvoid BST<T>::deleteTree(element<T>* curr)" (binary_expression) "template <class T> \nvoid BST<T" (binary_expression) "template <class T> \nvoid" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "void" (ERROR) "BST" (identifier) "BST" (<) "<" (identifier) "T" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "deleteTree(element<T>* curr)" (identifier) "deleteTree" (argument_list) "(element<T>* curr)" (() "(" (binary_expression) "element<T>* curr" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) "" (compound_statement) "{ \n if (curr != NULL) \n { \n deleteTree(curr->left()); \n deleteTree(curr->right()); \n delete curr; \n curr = NULL; \n order = 0; \n } \n}" ({) "{" (if_statement) "if (curr != NULL) \n { \n deleteTree(curr->left()); \n deleteTree(curr->right()); \n delete curr; \n curr = NULL; \n order = 0; \n }" (if) "if" (parenthesized_expression) "(curr != NULL)" (() "(" (binary_expression) "curr != NULL" (identifier) "curr" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{ \n deleteTree(curr->left()); \n deleteTree(curr->right()); \n delete curr; \n curr = NULL; \n order = 0; \n }" ({) "{" (expression_statement) "deleteTree(curr->left());" (call_expression) "deleteTree(curr->left())" (identifier) "deleteTree" (argument_list) "(curr->left())" (() "(" (call_expression) "curr->left()" (field_expression) "curr->left" (identifier) "curr" (->) "->" (field_identifier) "left" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "deleteTree(curr->right());" (call_expression) "deleteTree(curr->right())" (identifier) "deleteTree" (argument_list) "(curr->right())" (() "(" (call_expression) "curr->right()" (field_expression) "curr->right" (identifier) "curr" (->) "->" (field_identifier) "right" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (declaration) "delete curr;" (type_identifier) "delete" (identifier) "curr" (;) ";" (expression_statement) "curr = NULL;" (assignment_expression) "curr = NULL" (identifier) "curr" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "order = 0;" (assignment_expression) "order = 0" (identifier) "order" (=) "=" (number_literal) "0" (;) ";" (}) "}" (}) "}" (comment) "//Big O notation = O(log n) because for every iteration the path is cut down by half " (expression_statement) "template <class T> \nelement<T> * BST<T>::searchOrder(int listOrder, element<T> * curr)" (binary_expression) "template <class T> \nelement<T> * BST<T>::searchOrder(int listOrder, element<T> * curr)" (binary_expression) "template <class T> \nelement<T> * BST<T" (binary_expression) "template <class T> \nelement<T> * BST" (binary_expression) "template <class T> \nelement<T" (binary_expression) "template <class T> \nelement" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* BST" (*) "*" (identifier) "BST" (<) "<" (identifier) "T" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "searchOrder(int listOrder, element<T> * curr)" (identifier) "searchOrder" (argument_list) "(int listOrder, element<T> * curr)" (() "(" (ERROR) "int" (identifier) "int" (identifier) "listOrder" (,) "," (binary_expression) "element<T> * curr" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* curr" (*) "*" (identifier) "curr" ()) ")" (;) "" (compound_statement) "{ \n if (listOrder == curr->getOrder()) \n return curr; \n else if (listOrder < curr->getOrder()) \n { \n if (curr->right() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->right()); \n } \n else if (listOrder > curr->getOrder()) \n { \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n } \n return NULL; \n \n}" ({) "{" (if_statement) "if (listOrder == curr->getOrder()) \n return curr; \n else if (listOrder < curr->getOrder()) \n { \n if (curr->right() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->right()); \n } \n else if (listOrder > curr->getOrder()) \n { \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n }" (if) "if" (parenthesized_expression) "(listOrder == curr->getOrder())" (() "(" (binary_expression) "listOrder == curr->getOrder()" (identifier) "listOrder" (==) "==" (call_expression) "curr->getOrder()" (field_expression) "curr->getOrder" (identifier) "curr" (->) "->" (field_identifier) "getOrder" (argument_list) "()" (() "(" ()) ")" ()) ")" (return_statement) "return curr;" (return) "return" (identifier) "curr" (;) ";" (else_clause) "else if (listOrder < curr->getOrder()) \n { \n if (curr->right() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->right()); \n } \n else if (listOrder > curr->getOrder()) \n { \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n }" (else) "else" (if_statement) "if (listOrder < curr->getOrder()) \n { \n if (curr->right() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->right()); \n } \n else if (listOrder > curr->getOrder()) \n { \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n }" (if) "if" (parenthesized_expression) "(listOrder < curr->getOrder())" (() "(" (binary_expression) "listOrder < curr->getOrder()" (identifier) "listOrder" (<) "<" (call_expression) "curr->getOrder()" (field_expression) "curr->getOrder" (identifier) "curr" (->) "->" (field_identifier) "getOrder" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n if (curr->right() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->right()); \n }" ({) "{" (if_statement) "if (curr->right() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->right());" (if) "if" (parenthesized_expression) "(curr->right() == NULL)" (() "(" (binary_expression) "curr->right() == NULL" (call_expression) "curr->right()" (field_expression) "curr->right" (identifier) "curr" (->) "->" (field_identifier) "right" (argument_list) "()" (() "(" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (else_clause) "else \n return searchOrder(listOrder, curr->right());" (else) "else" (return_statement) "return searchOrder(listOrder, curr->right());" (return) "return" (call_expression) "searchOrder(listOrder, curr->right())" (identifier) "searchOrder" (argument_list) "(listOrder, curr->right())" (() "(" (identifier) "listOrder" (,) "," (call_expression) "curr->right()" (field_expression) "curr->right" (identifier) "curr" (->) "->" (field_identifier) "right" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (else_clause) "else if (listOrder > curr->getOrder()) \n { \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n }" (else) "else" (if_statement) "if (listOrder > curr->getOrder()) \n { \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n }" (if) "if" (parenthesized_expression) "(listOrder > curr->getOrder())" (() "(" (binary_expression) "listOrder > curr->getOrder()" (identifier) "listOrder" (>) ">" (call_expression) "curr->getOrder()" (field_expression) "curr->getOrder" (identifier) "curr" (->) "->" (field_identifier) "getOrder" (argument_list) "()" (() "(" ()) ")" ()) ")" (compound_statement) "{ \n if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left()); \n }" ({) "{" (if_statement) "if (curr->left() == NULL) \n return NULL; \n else \n return searchOrder(listOrder, curr->left());" (if) "if" (parenthesized_expression) "(curr->left() == NULL)" (() "(" (binary_expression) "curr->left() == NULL" (call_expression) "curr->left()" (field_expression) "curr->left" (identifier) "curr" (->) "->" (field_identifier) "left" (argument_list) "()" (() "(" ()) ")" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (else_clause) "else \n return searchOrder(listOrder, curr->left());" (else) "else" (return_statement) "return searchOrder(listOrder, curr->left());" (return) "return" (call_expression) "searchOrder(listOrder, curr->left())" (identifier) "searchOrder" (argument_list) "(listOrder, curr->left())" (() "(" (identifier) "listOrder" (,) "," (call_expression) "curr->left()" (field_expression) "curr->left" (identifier) "curr" (->) "->" (field_identifier) "left" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (}) "}" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (comment) "// input & output used in function to cancel input enter Q " (expression_statement) "template <class T> \nnode<T>* BST<T>::getInput()" (binary_expression) "template <class T> \nnode<T>* BST<T>::getInput()" (binary_expression) "template <class T> \nnode<T>* BST<T" (binary_expression) "template <class T> \nnode<T>* BST" (binary_expression) "template <class T> \nnode<T" (binary_expression) "template <class T> \nnode" (binary_expression) "template <class" (identifier) "template" (<) "<" (identifier) "class" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "node" (<) "<" (identifier) "T" (>) ">" (pointer_expression) "* BST" (*) "*" (identifier) "BST" (<) "<" (identifier) "T" (>) ">" (ERROR) "::" (:) ":" (:) ":" (call_expression) "getInput()" (identifier) "getInput" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{ \n int input; \n char check = cin.peek(); \n while (!(cin >> input)|| input < 1 || input > size) \n { \n if (toupper(check) == 'Q') \n { \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n return NULL; \n } \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n cout << "Invalid Input. Please enter a menu number or 'Q': " << endl; \n check = cin.peek(); \n } \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n \n element<T> * nodeOutput = searchOrder(input, root); \n return nodeOutput->getNode(); \n}" ({) "{" (declaration) "int input;" (primitive_type) "int" (identifier) "input" (;) ";" (declaration) "char check = cin.peek();" (primitive_type) "char" (init_declarator) "check = cin.peek()" (identifier) "check" (=) "=" (call_expression) "cin.peek()" (field_expression) "cin.peek" (identifier) "cin" (.) "." (field_identifier) "peek" (argument_list) "()" (() "(" ()) ")" (;) ";" (while_statement) "while (!(cin >> input)|| input < 1 || input > size) \n { \n if (toupper(check) == 'Q') \n { \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n return NULL; \n } \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n cout << "Invalid Input. Please enter a menu number or 'Q': " << endl; \n check = cin.peek(); \n }" (while) "while" (parenthesized_expression) "(!(cin >> input)|| input < 1 || input > size)" (() "(" (binary_expression) "!(cin >> input)|| input < 1 || input > size" (binary_expression) "!(cin >> input)|| input < 1" (unary_expression) "!(cin >> input)" (!) "!" (parenthesized_expression) "(cin >> input)" (() "(" (binary_expression) "cin >> input" (identifier) "cin" (>>) ">>" (identifier) "input" ()) ")" (||) "||" (binary_expression) "input < 1" (identifier) "input" (<) "<" (number_literal) "1" (||) "||" (binary_expression) "input > size" (identifier) "input" (>) ">" (identifier) "size" ()) ")" (compound_statement) "{ \n if (toupper(check) == 'Q') \n { \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n return NULL; \n } \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n cout << "Invalid Input. Please enter a menu number or 'Q': " << endl; \n check = cin.peek(); \n }" ({) "{" (if_statement) "if (toupper(check) == 'Q') \n { \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n return NULL; \n }" (if) "if" (parenthesized_expression) "(toupper(check) == 'Q')" (() "(" (binary_expression) "toupper(check) == 'Q'" (call_expression) "toupper(check)" (identifier) "toupper" (argument_list) "(check)" (() "(" (identifier) "check" ()) ")" (==) "==" (char_literal) "'Q'" (') "'" (character) "Q" (') "'" ()) ")" (compound_statement) "{ \n cin.clear(); \n cin.ignore(BUFFER, '\n'); \n return NULL; \n }" ({) "{" (expression_statement) "cin.clear();" (call_expression) "cin.clear()" (field_expression) "cin.clear" (identifier) "cin" (.) "." (field_identifier) "clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "cin.ignore(BUFFER, '\n');" (call_expression) "cin.ignore(BUFFER, '\n')" (field_expression) "cin.ignore" (identifier) "cin" (.) "." (field_identifier) "ignore" (argument_list) "(BUFFER, '\n')" (() "(" (identifier) "BUFFER" (,) "," (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (;) ";" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (expression_statement) "cin.clear();" (call_expression) "cin.clear()" (field_expression) "cin.clear" (identifier) "cin" (.) "." (field_identifier) "clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "cin.ignore(BUFFER, '\n');" (call_expression) "cin.ignore(BUFFER, '\n')" (field_expression) "cin.ignore" (identifier) "cin" (.) "." (field_identifier) "ignore" (argument_list) "(BUFFER, '\n')" (() "(" (identifier) "BUFFER" (,) "," (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (;) ";" (expression_statement) "cout << "Invalid Input. Please enter a menu number or 'Q': " << endl;" (binary_expression) "cout << "Invalid Input. Please enter a menu number or 'Q': " << endl" (binary_expression) "cout << "Invalid Input. Please enter a menu number or 'Q': "" (identifier) "cout" (<<) "<<" (string_literal) ""Invalid Input. Please enter a menu number or 'Q': "" (") """ (string_content) "Invalid Input. Please enter a menu number or 'Q': " (") """ (<<) "<<" (identifier) "endl" (;) ";" (expression_statement) "check = cin.peek();" (assignment_expression) "check = cin.peek()" (identifier) "check" (=) "=" (call_expression) "cin.peek()" (field_expression) "cin.peek" (identifier) "cin" (.) "." (field_identifier) "peek" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) "cin.clear();" (call_expression) "cin.clear()" (field_expression) "cin.clear" (identifier) "cin" (.) "." (field_identifier) "clear" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "cin.ignore(BUFFER, '\n');" (call_expression) "cin.ignore(BUFFER, '\n')" (field_expression) "cin.ignore" (identifier) "cin" (.) "." (field_identifier) "ignore" (argument_list) "(BUFFER, '\n')" (() "(" (identifier) "BUFFER" (,) "," (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" (;) ";" (expression_statement) "element<T> * nodeOutput = searchOrder(input, root);" (binary_expression) "element<T> * nodeOutput = searchOrder(input, root)" (binary_expression) "element<T" (identifier) "element" (<) "<" (identifier) "T" (>) ">" (assignment_expression) "* nodeOutput = searchOrder(input, root)" (pointer_expression) "* nodeOutput" (*) "*" (identifier) "nodeOutput" (=) "=" (call_expression) "searchOrder(input, root)" (identifier) "searchOrder" (argument_list) "(input, root)" (() "(" (identifier) "input" (,) "," (identifier) "root" ()) ")" (;) ";" (return_statement) "return nodeOutput->getNode();" (return) "return" (call_expression) "nodeOutput->getNode()" (field_expression) "nodeOutput->getNode" (identifier) "nodeOutput" (->) "->" (field_identifier) "getNode" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (#endif) "#endif"
1,753
42
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 21.22, "nodes": 1090, "errors": 0, "source_hash": "6fe3a7f521f0e25758ec86be75f088c22461994c7fb2e218035f4a6cd9c2d549", "categorized_nodes": 712}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef BST_H\r\n#define BST_H\r\n\r\n#include \"List.h\"\r\n#define BUFFER 50\r\ntemplate <class T>\r\nclass element\r\n{\r\npublic:\r\n\telement(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {};\r\n\tnode<T> * getNode() {return ptrToNode;};\r\n\tint getRank() { return ranking; };\r\n\tint getOrder() { return order; };\r\n\tvoid setOrder(int o) { order = o; };\r\n\telement<T> * left() { return leftPtr; };\r\n\telement<T> * right() { return rightPtr; };\r\n\tvoid setLeft(element<T> * ptr) { leftPtr = ptr; };\r\n\tvoid setRight(element<T> * ptr) { rightPtr = ptr; };\r\nprivate:\r\n\tint ranking;\r\n\tint order;\r\n\tnode<T> * ptrToNode;\r\n\telement<T> * leftPtr;\r\n\telement<T> * rightPtr;\r\n};\r\n\r\ntemplate <class T>\r\nclass BST\r\n{\r\npublic:\r\n\tBST() : root(NULL) {};\r\n\t~BST() { deleteTree(root); };\r\n\telement<T> * getRoot() { return root; };\r\n\tbool isEmpty() const { return root == NULL; };\r\n\tint getSize() {return size;};\r\n\tbool insert(int rank, node<T>* ptr, element<T>* curr);\r\n\tvoid print(ostream& out, element<T>* curr);\r\n\tvoid print() { print(cout, root); }; //ostream and root default\r\n\tvoid setOrder(element<T>* curr);\r\n\telement<T> * searchOrder(int listOrder, element<T> * curr);\r\n\tvoid deleteTree(element<T>* curr);\r\n\tnode<T>* getInput();\r\n\tstatic int order;\r\nprivate:\r\n\telement<T> * root;\r\n\tint size;\r\n};\r\n\r\ntemplate <class T>\r\nint BST<T>::order = 0; //initialize static variable\r\n\r\ntemplate <class T>\r\nbool BST<T>::insert(int rank, node<T>* ptr, element<T>* curr)\r\n{\r\n\tbool canInsert = true;\r\n\telement<T> * tempPtr = NULL;\r\n\tif (curr == NULL)\r\n\t{\r\n\t\tcurr = new element<T>(rank, ptr);\r\n\t\tif (isEmpty())\r\n\t\t{\r\n\t\t\troot = curr;\r\n\t\t\tsize++;\r\n\t\t}\r\n\t\tsetOrder(curr);\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif (rank < curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->left() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setLeft(tempPtr = new element<T>(rank, ptr)); \r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->left());\r\n\t\t}\r\n\t\telse if (rank >= curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->right() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setRight(tempPtr = new element<T>(rank, ptr));\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->right());\r\n\t\t}\r\n\t\torder = 0;\r\n\t\tsetOrder(root);\r\n\t}\r\n\treturn canInsert;\r\n}\r\n\r\ntemplate <class T>\r\nvoid BST<T>::print(ostream& out, element<T>* curr)\r\n{\r\n\tif (curr != NULL)\r\n\t{\r\n\t\tprint(out, curr->right());\r\n\t\tout << curr->getOrder() << \": \" << curr->getNode()->thing.getName() << endl;\r\n\t\tprint(out, curr ->left());\r\n\t}\r\n}\r\n\r\ntemplate <class T>\r\nvoid BST<T>::setOrder(element<T>* curr)\r\n{\r\n\tif (curr != NULL)\r\n\t{\r\n\t\tsetOrder(curr->right());\r\n\t\tcurr->setOrder(++order);\r\n\t\tsetOrder(curr->left());\r\n\t}\r\n}\r\ntemplate <class T>\r\nvoid BST<T>::deleteTree(element<T>* curr)\r\n{\r\n\tif (curr != NULL)\r\n\t{\r\n\t\tdeleteTree(curr->left());\r\n\t\tdeleteTree(curr->right());\r\n\t\tdelete curr;\r\n\t\tcurr = NULL;\r\n\t\torder = 0;\r\n\t}\r\n}\r\n//Big O notation = O(log n) because for every iteration the path is cut down by half\r\ntemplate <class T>\r\nelement<T> * BST<T>::searchOrder(int listOrder, element<T> * curr)\r\n{\r\n\tif (listOrder == curr->getOrder())\r\n\t\treturn curr;\r\n\telse if (listOrder < curr->getOrder())\r\n\t{\r\n\t\tif (curr->right() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->right());\r\n\t}\r\n\telse if (listOrder > curr->getOrder())\r\n\t{\r\n\t\tif (curr->left() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->left());\r\n\t}\r\n\treturn NULL;\r\n\t\t\r\n}\r\n// input & output used in function to cancel input enter Q\r\ntemplate <class T>\r\nnode<T>* BST<T>::getInput()\r\n{\r\n\tint input;\r\n\tchar check = cin.peek();\r\n\twhile (!(cin >> input)|| input < 1 || input > size)\r\n\t{\r\n\t\tif (toupper(check) == 'Q')\r\n\t\t{\r\n\t\t\tcin.clear();\r\n\t\t\tcin.ignore(BUFFER, '\\n'); \r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t\tcin.clear();\r\n\t\tcin.ignore(BUFFER, '\\n');\r\n\t\tcout << \"Invalid Input. Please enter a menu number or 'Q': \" << endl;\r\n\t\tcheck = cin.peek();\r\n\t}\r\n\tcin.clear();\r\n\tcin.ignore(BUFFER, '\\n');\r\n\r\n\telement<T> * nodeOutput = searchOrder(input, root);\r\n\treturn nodeOutput->getNode();\r\n}\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 13, 188, 1089], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 179, "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": "BST_H", "parent": 0, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 13}}, {"id": 3, "type": "preproc_def", "text": "#define BST_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 7}}, {"id": 5, "type": "identifier", "text": "BST_H", "parent": 3, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 13}}, {"id": 6, "type": "preproc_include", "text": "#include \"List.h\"\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"List.h\"", "parent": 6, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 17}}, {"id": 9, "type": "preproc_def", "text": "#define BUFFER 50\r\n", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 11, "type": "identifier", "text": "BUFFER", "parent": 9, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 14}}, {"id": 12, "type": "preproc_arg", "text": "50\r", "parent": 9, "children": [], "start_point": {"row": 7, "column": 15}, "end_point": {"row": 7, "column": 18}}, {"id": 13, "type": "ERROR", "text": "template <class T>\r\nclass element", "parent": 0, "children": [14, 21], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 13}}, {"id": 14, "type": "binary_expression", "text": "template <class T>\r\nclass", "parent": 13, "children": [15, 18, 20], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 5}}, {"id": 15, "type": "binary_expression", "text": "template <class", "parent": 14, "children": [16, 17], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 15}}, {"id": 16, "type": "identifier", "text": "template", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 17, "type": "<", "text": "<", "parent": 15, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 10}}, {"id": 18, "type": "ERROR", "text": "T", "parent": 14, "children": [19], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 17}}, {"id": 19, "type": "identifier", "text": "T", "parent": 18, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 17}}, {"id": 20, "type": ">", "text": ">", "parent": 14, "children": [], "start_point": {"row": 8, "column": 17}, "end_point": {"row": 8, "column": 18}}, {"id": 21, "type": "identifier", "text": "element", "parent": 13, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 13}}, {"id": 22, "type": "labeled_statement", "text": "public:\r\n\telement(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {};", "parent": 0, "children": [23], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 85}}, {"id": 23, "type": "declaration", "text": "element(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {};", "parent": 22, "children": [24, 28, 29, 37, 42, 47], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 85}}, {"id": 24, "type": "macro_type_specifier", "text": "element(int", "parent": 23, "children": [25, 26], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 12}}, {"id": 25, "type": "identifier", "text": "element", "parent": 24, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 8}}, {"id": 26, "type": "type_descriptor", "text": "int", "parent": 24, "children": [27], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 12}}, {"id": 27, "type": "primitive_type", "text": "int", "parent": 26, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 12}}, {"id": 28, "type": "identifier", "text": "ranking", "parent": 23, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 20}}, {"id": 29, "type": "ERROR", "text": "node<T> * ptr) :", "parent": 23, "children": [30, 31, 32, 33, 34], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 38}}, {"id": 30, "type": "identifier", "text": "node", "parent": 29, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 26}}, {"id": 31, "type": "<", "text": "<", "parent": 29, "children": [], "start_point": {"row": 12, "column": 26}, "end_point": {"row": 12, "column": 27}}, {"id": 32, "type": "identifier", "text": "T", "parent": 29, "children": [], "start_point": {"row": 12, "column": 27}, "end_point": {"row": 12, "column": 28}}, {"id": 33, "type": ">", "text": ">", "parent": 29, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 29}}, {"id": 34, "type": "pointer_declarator", "text": "* ptr", "parent": 29, "children": [35, 36], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 35}}, {"id": 35, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 12, "column": 30}, "end_point": {"row": 12, "column": 31}}, {"id": 36, "type": "identifier", "text": "ptr", "parent": 34, "children": [], "start_point": {"row": 12, "column": 32}, "end_point": {"row": 12, "column": 35}}, {"id": 37, "type": "function_declarator", "text": "ranking(ranking)", "parent": 23, "children": [38, 39], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 55}}, {"id": 38, "type": "identifier", "text": "ranking", "parent": 37, "children": [], "start_point": {"row": 12, "column": 39}, "end_point": {"row": 12, "column": 46}}, {"id": 39, "type": "parameter_list", "text": "(ranking)", "parent": 37, "children": [40], "start_point": {"row": 12, "column": 46}, "end_point": {"row": 12, "column": 55}}, {"id": 40, "type": "parameter_declaration", "text": "ranking", "parent": 39, "children": [41], "start_point": {"row": 12, "column": 47}, "end_point": {"row": 12, "column": 54}}, {"id": 41, "type": "type_identifier", "text": "ranking", "parent": 40, "children": [], "start_point": {"row": 12, "column": 47}, "end_point": {"row": 12, "column": 54}}, {"id": 42, "type": "function_declarator", "text": "ptrToNode(ptr)", "parent": 23, "children": [43, 44], "start_point": {"row": 12, "column": 57}, "end_point": {"row": 12, "column": 71}}, {"id": 43, "type": "identifier", "text": "ptrToNode", "parent": 42, "children": [], "start_point": {"row": 12, "column": 57}, "end_point": {"row": 12, "column": 66}}, {"id": 44, "type": "parameter_list", "text": "(ptr)", "parent": 42, "children": [45], "start_point": {"row": 12, "column": 66}, "end_point": {"row": 12, "column": 71}}, {"id": 45, "type": "parameter_declaration", "text": "ptr", "parent": 44, "children": [46], "start_point": {"row": 12, "column": 67}, "end_point": {"row": 12, "column": 70}}, {"id": 46, "type": "type_identifier", "text": "ptr", "parent": 45, "children": [], "start_point": {"row": 12, "column": 67}, "end_point": {"row": 12, "column": 70}}, {"id": 47, "type": "ERROR", "text": ", order(0) {}", "parent": 23, "children": [48], "start_point": {"row": 12, "column": 71}, "end_point": {"row": 12, "column": 84}}, {"id": 48, "type": "function_declarator", "text": "order(0)", "parent": 47, "children": [49, 50], "start_point": {"row": 12, "column": 73}, "end_point": {"row": 12, "column": 81}}, {"id": 49, "type": "identifier", "text": "order", "parent": 48, "children": [], "start_point": {"row": 12, "column": 73}, "end_point": {"row": 12, "column": 78}}, {"id": 50, "type": "parameter_list", "text": "(0)", "parent": 48, "children": [51], "start_point": {"row": 12, "column": 78}, "end_point": {"row": 12, "column": 81}}, {"id": 51, "type": "ERROR", "text": "0", "parent": 50, "children": [52], "start_point": {"row": 12, "column": 79}, "end_point": {"row": 12, "column": 80}}, {"id": 52, "type": "number_literal", "text": "0", "parent": 51, "children": [], "start_point": {"row": 12, "column": 79}, "end_point": {"row": 12, "column": 80}}, {"id": 53, "type": "binary_expression", "text": "node<T> * getNode()", "parent": 0, "children": [54, 58, 59], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 20}}, {"id": 54, "type": "binary_expression", "text": "node<T", "parent": 53, "children": [55, 56, 57], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 7}}, {"id": 55, "type": "identifier", "text": "node", "parent": 54, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 5}}, {"id": 56, "type": "<", "text": "<", "parent": 54, "children": [], "start_point": {"row": 13, "column": 5}, "end_point": {"row": 13, "column": 6}}, {"id": 57, "type": "identifier", "text": "T", "parent": 54, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 7}}, {"id": 58, "type": ">", "text": ">", "parent": 53, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 8}}, {"id": 59, "type": "pointer_expression", "text": "* getNode()", "parent": 53, "children": [60, 61], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 20}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 61, "type": "call_expression", "text": "getNode()", "parent": 59, "children": [62, 63], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 62, "type": "identifier", "text": "getNode", "parent": 61, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 18}}, {"id": 63, "type": "argument_list", "text": "()", "parent": 61, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 20}}, {"id": 64, "type": "return_statement", "text": "return ptrToNode;", "parent": 0, "children": [65], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 39}}, {"id": 65, "type": "identifier", "text": "ptrToNode", "parent": 64, "children": [], "start_point": {"row": 13, "column": 29}, "end_point": {"row": 13, "column": 38}}, {"id": 66, "type": "function_definition", "text": "int getRank() { return ranking; }", "parent": 0, "children": [67, 68], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 34}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 66, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 4}}, {"id": 68, "type": "function_declarator", "text": "getRank()", "parent": 66, "children": [69, 70], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 14}}, {"id": 69, "type": "identifier", "text": "getRank", "parent": 68, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 12}}, {"id": 70, "type": "parameter_list", "text": "()", "parent": 68, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 14}}, {"id": 71, "type": "return_statement", "text": "return ranking;", "parent": 66, "children": [72], "start_point": {"row": 14, "column": 17}, "end_point": {"row": 14, "column": 32}}, {"id": 72, "type": "identifier", "text": "ranking", "parent": 71, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 31}}, {"id": 73, "type": "function_definition", "text": "int getOrder() { return order; }", "parent": 0, "children": [74, 75], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 33}}, {"id": 74, "type": "primitive_type", "text": "int", "parent": 73, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 4}}, {"id": 75, "type": "function_declarator", "text": "getOrder()", "parent": 73, "children": [76, 77], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 15}}, {"id": 76, "type": "identifier", "text": "getOrder", "parent": 75, "children": [], "start_point": {"row": 15, "column": 5}, "end_point": {"row": 15, "column": 13}}, {"id": 77, "type": "parameter_list", "text": "()", "parent": 75, "children": [], "start_point": {"row": 15, "column": 13}, "end_point": {"row": 15, "column": 15}}, {"id": 78, "type": "return_statement", "text": "return order;", "parent": 73, "children": [79], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 31}}, {"id": 79, "type": "identifier", "text": "order", "parent": 78, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 30}}, {"id": 80, "type": "function_definition", "text": "void setOrder(int o) { order = o; }", "parent": 0, "children": [81, 82], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 36}}, {"id": 81, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 5}}, {"id": 82, "type": "function_declarator", "text": "setOrder(int o)", "parent": 80, "children": [83, 84], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 21}}, {"id": 83, "type": "identifier", "text": "setOrder", "parent": 82, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 14}}, {"id": 84, "type": "parameter_list", "text": "(int o)", "parent": 82, "children": [85], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 21}}, {"id": 85, "type": "parameter_declaration", "text": "int o", "parent": 84, "children": [86, 87], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 20}}, {"id": 86, "type": "primitive_type", "text": "int", "parent": 85, "children": [], "start_point": {"row": 16, "column": 15}, "end_point": {"row": 16, "column": 18}}, {"id": 87, "type": "identifier", "text": "o", "parent": 85, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 20}}, {"id": 88, "type": "assignment_expression", "text": "order = o", "parent": 80, "children": [89, 90, 91], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 33}}, {"id": 89, "type": "identifier", "text": "order", "parent": 88, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 29}}, {"id": 90, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 16, "column": 30}, "end_point": {"row": 16, "column": 31}}, {"id": 91, "type": "identifier", "text": "o", "parent": 88, "children": [], "start_point": {"row": 16, "column": 32}, "end_point": {"row": 16, "column": 33}}, {"id": 92, "type": "binary_expression", "text": "element<T> * left()", "parent": 0, "children": [93, 97, 98], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 20}}, {"id": 93, "type": "binary_expression", "text": "element<T", "parent": 92, "children": [94, 95, 96], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 10}}, {"id": 94, "type": "identifier", "text": "element", "parent": 93, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 8}}, {"id": 95, "type": "<", "text": "<", "parent": 93, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 96, "type": "identifier", "text": "T", "parent": 93, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 10}}, {"id": 97, "type": ">", "text": ">", "parent": 92, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}, {"id": 98, "type": "pointer_expression", "text": "* left()", "parent": 92, "children": [99, 100], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 20}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 13}}, {"id": 100, "type": "call_expression", "text": "left()", "parent": 98, "children": [101, 102], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 20}}, {"id": 101, "type": "identifier", "text": "left", "parent": 100, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 18}}, {"id": 102, "type": "argument_list", "text": "()", "parent": 100, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 20}}, {"id": 103, "type": "return_statement", "text": "return leftPtr;", "parent": 0, "children": [104], "start_point": {"row": 17, "column": 23}, "end_point": {"row": 17, "column": 38}}, {"id": 104, "type": "identifier", "text": "leftPtr", "parent": 103, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 37}}, {"id": 105, "type": "binary_expression", "text": "element<T> * right()", "parent": 0, "children": [106, 110, 111], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 21}}, {"id": 106, "type": "binary_expression", "text": "element<T", "parent": 105, "children": [107, 108, 109], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 10}}, {"id": 107, "type": "identifier", "text": "element", "parent": 106, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 8}}, {"id": 108, "type": "<", "text": "<", "parent": 106, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 9}}, {"id": 109, "type": "identifier", "text": "T", "parent": 106, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 10}}, {"id": 110, "type": ">", "text": ">", "parent": 105, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 11}}, {"id": 111, "type": "pointer_expression", "text": "* right()", "parent": 105, "children": [112, 113], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 21}}, {"id": 112, "type": "*", "text": "*", "parent": 111, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 13}}, {"id": 113, "type": "call_expression", "text": "right()", "parent": 111, "children": [114, 115], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 21}}, {"id": 114, "type": "identifier", "text": "right", "parent": 113, "children": [], "start_point": {"row": 18, "column": 14}, "end_point": {"row": 18, "column": 19}}, {"id": 115, "type": "argument_list", "text": "()", "parent": 113, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 21}}, {"id": 116, "type": "return_statement", "text": "return rightPtr;", "parent": 0, "children": [117], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 40}}, {"id": 117, "type": "identifier", "text": "rightPtr", "parent": 116, "children": [], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 39}}, {"id": 118, "type": "function_definition", "text": "void setLeft(element<T> * ptr) { leftPtr = ptr; }", "parent": 0, "children": [119, 120], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 50}}, {"id": 119, "type": "primitive_type", "text": "void", "parent": 118, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 5}}, {"id": 120, "type": "function_declarator", "text": "setLeft(element<T> * ptr)", "parent": 118, "children": [121, 122], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 31}}, {"id": 121, "type": "identifier", "text": "setLeft", "parent": 120, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 13}}, {"id": 122, "type": "parameter_list", "text": "(element<T> * ptr)", "parent": 120, "children": [123], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 31}}, {"id": 123, "type": "parameter_declaration", "text": "element<T> * ptr", "parent": 122, "children": [124, 125, 129], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 30}}, {"id": 124, "type": "type_identifier", "text": "element", "parent": 123, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 21}}, {"id": 125, "type": "ERROR", "text": "<T>", "parent": 123, "children": [126, 127, 128], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 24}}, {"id": 126, "type": "<", "text": "<", "parent": 125, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 22}}, {"id": 127, "type": "identifier", "text": "T", "parent": 125, "children": [], "start_point": {"row": 19, "column": 22}, "end_point": {"row": 19, "column": 23}}, {"id": 128, "type": ">", "text": ">", "parent": 125, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 24}}, {"id": 129, "type": "pointer_declarator", "text": "* ptr", "parent": 123, "children": [130, 131], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 30}}, {"id": 130, "type": "*", "text": "*", "parent": 129, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 26}}, {"id": 131, "type": "identifier", "text": "ptr", "parent": 129, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 30}}, {"id": 132, "type": "assignment_expression", "text": "leftPtr = ptr", "parent": 118, "children": [133, 134, 135], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 47}}, {"id": 133, "type": "identifier", "text": "leftPtr", "parent": 132, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 41}}, {"id": 134, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 19, "column": 42}, "end_point": {"row": 19, "column": 43}}, {"id": 135, "type": "identifier", "text": "ptr", "parent": 132, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 47}}, {"id": 136, "type": "function_definition", "text": "void setRight(element<T> * ptr) { rightPtr = ptr; }", "parent": 0, "children": [137, 138], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 52}}, {"id": 137, "type": "primitive_type", "text": "void", "parent": 136, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 5}}, {"id": 138, "type": "function_declarator", "text": "setRight(element<T> * ptr)", "parent": 136, "children": [139, 140], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 32}}, {"id": 139, "type": "identifier", "text": "setRight", "parent": 138, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 14}}, {"id": 140, "type": "parameter_list", "text": "(element<T> * ptr)", "parent": 138, "children": [141], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 32}}, {"id": 141, "type": "parameter_declaration", "text": "element<T> * ptr", "parent": 140, "children": [142, 143, 147], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 31}}, {"id": 142, "type": "type_identifier", "text": "element", "parent": 141, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 22}}, {"id": 143, "type": "ERROR", "text": "<T>", "parent": 141, "children": [144, 145, 146], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 25}}, {"id": 144, "type": "<", "text": "<", "parent": 143, "children": [], "start_point": {"row": 20, "column": 22}, "end_point": {"row": 20, "column": 23}}, {"id": 145, "type": "identifier", "text": "T", "parent": 143, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 24}}, {"id": 146, "type": ">", "text": ">", "parent": 143, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 25}}, {"id": 147, "type": "pointer_declarator", "text": "* ptr", "parent": 141, "children": [148, 149], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 31}}, {"id": 148, "type": "*", "text": "*", "parent": 147, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 27}}, {"id": 149, "type": "identifier", "text": "ptr", "parent": 147, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 31}}, {"id": 150, "type": "assignment_expression", "text": "rightPtr = ptr", "parent": 136, "children": [151, 152, 153], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 49}}, {"id": 151, "type": "identifier", "text": "rightPtr", "parent": 150, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 43}}, {"id": 152, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 20, "column": 44}, "end_point": {"row": 20, "column": 45}}, {"id": 153, "type": "identifier", "text": "ptr", "parent": 150, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 49}}, {"id": 154, "type": "labeled_statement", "text": "private:\r\n\tint ranking;", "parent": 0, "children": [155], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 13}}, {"id": 155, "type": "declaration", "text": "int ranking;", "parent": 154, "children": [156, 157], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 13}}, {"id": 156, "type": "primitive_type", "text": "int", "parent": 155, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 4}}, {"id": 157, "type": "identifier", "text": "ranking", "parent": 155, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 12}}, {"id": 158, "type": "declaration", "text": "int order;", "parent": 0, "children": [159, 160], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 11}}, {"id": 159, "type": "primitive_type", "text": "int", "parent": 158, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 4}}, {"id": 160, "type": "identifier", "text": "order", "parent": 158, "children": [], "start_point": {"row": 23, "column": 5}, "end_point": {"row": 23, "column": 10}}, {"id": 161, "type": "binary_expression", "text": "node<T> * ptrToNode", "parent": 0, "children": [162, 166, 167], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 20}}, {"id": 162, "type": "binary_expression", "text": "node<T", "parent": 161, "children": [163, 164, 165], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 7}}, {"id": 163, "type": "identifier", "text": "node", "parent": 162, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 5}}, {"id": 164, "type": "<", "text": "<", "parent": 162, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 6}}, {"id": 165, "type": "identifier", "text": "T", "parent": 162, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 7}}, {"id": 166, "type": ">", "text": ">", "parent": 161, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 8}}, {"id": 167, "type": "pointer_expression", "text": "* ptrToNode", "parent": 161, "children": [168, 169], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 20}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 169, "type": "identifier", "text": "ptrToNode", "parent": 167, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 20}}, {"id": 170, "type": "binary_expression", "text": "element<T> * leftPtr", "parent": 0, "children": [171, 175, 176], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 21}}, {"id": 171, "type": "binary_expression", "text": "element<T", "parent": 170, "children": [172, 173, 174], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 10}}, {"id": 172, "type": "identifier", "text": "element", "parent": 171, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 8}}, {"id": 173, "type": "<", "text": "<", "parent": 171, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 9}}, {"id": 174, "type": "identifier", "text": "T", "parent": 171, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 10}}, {"id": 175, "type": ">", "text": ">", "parent": 170, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 11}}, {"id": 176, "type": "pointer_expression", "text": "* leftPtr", "parent": 170, "children": [177, 178], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 21}}, {"id": 177, "type": "*", "text": "*", "parent": 176, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 178, "type": "identifier", "text": "leftPtr", "parent": 176, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 21}}, {"id": 179, "type": "binary_expression", "text": "element<T> * rightPtr", "parent": 0, "children": [180, 184, 185], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 22}}, {"id": 180, "type": "binary_expression", "text": "element<T", "parent": 179, "children": [181, 182, 183], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 10}}, {"id": 181, "type": "identifier", "text": "element", "parent": 180, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 8}}, {"id": 182, "type": "<", "text": "<", "parent": 180, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 9}}, {"id": 183, "type": "identifier", "text": "T", "parent": 180, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 10}}, {"id": 184, "type": ">", "text": ">", "parent": 179, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 11}}, {"id": 185, "type": "pointer_expression", "text": "* rightPtr", "parent": 179, "children": [186, 187], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 22}}, {"id": 186, "type": "*", "text": "*", "parent": 185, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 13}}, {"id": 187, "type": "identifier", "text": "rightPtr", "parent": 185, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 22}}, {"id": 188, "type": "ERROR", "text": "template <class T>\r\nclass BST", "parent": 0, "children": [189, 196], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 9}}, {"id": 189, "type": "binary_expression", "text": "template <class T>\r\nclass", "parent": 188, "children": [190, 193, 195], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 5}}, {"id": 190, "type": "binary_expression", "text": "template <class", "parent": 189, "children": [191, 192], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 15}}, {"id": 191, "type": "identifier", "text": "template", "parent": 190, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 192, "type": "<", "text": "<", "parent": 190, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 10}}, {"id": 193, "type": "ERROR", "text": "T", "parent": 189, "children": [194], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 194, "type": "identifier", "text": "T", "parent": 193, "children": [], "start_point": {"row": 29, "column": 16}, "end_point": {"row": 29, "column": 17}}, {"id": 195, "type": ">", "text": ">", "parent": 189, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 196, "type": "identifier", "text": "BST", "parent": 188, "children": [], "start_point": {"row": 30, "column": 6}, "end_point": {"row": 30, "column": 9}}, {"id": 197, "type": "labeled_statement", "text": "public:\r\n\tBST() : root(NULL) {}", "parent": 0, "children": [198], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 22}}, {"id": 198, "type": "ERROR", "text": "BST() : root(NULL)", "parent": 197, "children": [199, 202], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 19}}, {"id": 199, "type": "call_expression", "text": "BST()", "parent": 198, "children": [200, 201], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 6}}, {"id": 200, "type": "identifier", "text": "BST", "parent": 199, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 4}}, {"id": 201, "type": "argument_list", "text": "()", "parent": 199, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 6}}, {"id": 202, "type": "macro_type_specifier", "text": "root(NULL)", "parent": 198, "children": [203, 204], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 19}}, {"id": 203, "type": "identifier", "text": "root", "parent": 202, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 13}}, {"id": 204, "type": "type_descriptor", "text": "NULL", "parent": 202, "children": [205], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 18}}, {"id": 205, "type": "type_identifier", "text": "NULL", "parent": 204, "children": [], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 18}}, {"id": 206, "type": "unary_expression", "text": "~BST()", "parent": 0, "children": [207, 208], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 7}}, {"id": 207, "type": "~", "text": "~", "parent": 206, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 2}}, {"id": 208, "type": "call_expression", "text": "BST()", "parent": 206, "children": [209, 210], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 7}}, {"id": 209, "type": "identifier", "text": "BST", "parent": 208, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 5}}, {"id": 210, "type": "argument_list", "text": "()", "parent": 208, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 7}}, {"id": 211, "type": "call_expression", "text": "deleteTree(root)", "parent": 0, "children": [212, 213], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 26}}, {"id": 212, "type": "identifier", "text": "deleteTree", "parent": 211, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 20}}, {"id": 213, "type": "argument_list", "text": "(root)", "parent": 211, "children": [214], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 26}}, {"id": 214, "type": "identifier", "text": "root", "parent": 213, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 25}}, {"id": 215, "type": "binary_expression", "text": "element<T> * getRoot()", "parent": 0, "children": [216, 220, 221], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 23}}, {"id": 216, "type": "binary_expression", "text": "element<T", "parent": 215, "children": [217, 218, 219], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 10}}, {"id": 217, "type": "identifier", "text": "element", "parent": 216, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 8}}, {"id": 218, "type": "<", "text": "<", "parent": 216, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 9}}, {"id": 219, "type": "identifier", "text": "T", "parent": 216, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 10}}, {"id": 220, "type": ">", "text": ">", "parent": 215, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 11}}, {"id": 221, "type": "pointer_expression", "text": "* getRoot()", "parent": 215, "children": [222, 223], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 23}}, {"id": 222, "type": "*", "text": "*", "parent": 221, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 223, "type": "call_expression", "text": "getRoot()", "parent": 221, "children": [224, 225], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 23}}, {"id": 224, "type": "identifier", "text": "getRoot", "parent": 223, "children": [], "start_point": {"row": 35, "column": 14}, "end_point": {"row": 35, "column": 21}}, {"id": 225, "type": "argument_list", "text": "()", "parent": 223, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 23}}, {"id": 226, "type": "return_statement", "text": "return root;", "parent": 0, "children": [227], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 38}}, {"id": 227, "type": "identifier", "text": "root", "parent": 226, "children": [], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 37}}, {"id": 228, "type": "ERROR", "text": "bool isEmpty() const", "parent": 0, "children": [229, 230], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 21}}, {"id": 229, "type": "primitive_type", "text": "bool", "parent": 228, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 230, "type": "function_declarator", "text": "isEmpty()", "parent": 228, "children": [231, 232], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 15}}, {"id": 231, "type": "identifier", "text": "isEmpty", "parent": 230, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 13}}, {"id": 232, "type": "parameter_list", "text": "()", "parent": 230, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 15}}, {"id": 233, "type": "return_statement", "text": "return root == NULL;", "parent": 0, "children": [234], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 44}}, {"id": 234, "type": "binary_expression", "text": "root == NULL", "parent": 233, "children": [235, 236, 237], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 43}}, {"id": 235, "type": "identifier", "text": "root", "parent": 234, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 35}}, {"id": 236, "type": "==", "text": "==", "parent": 234, "children": [], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 38}}, {"id": 237, "type": "null", "text": "NULL", "parent": 234, "children": [238], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 43}}, {"id": 238, "type": "NULL", "text": "NULL", "parent": 237, "children": [], "start_point": {"row": 36, "column": 39}, "end_point": {"row": 36, "column": 43}}, {"id": 239, "type": "function_definition", "text": "int getSize() {return size;}", "parent": 0, "children": [240, 241], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 29}}, {"id": 240, "type": "primitive_type", "text": "int", "parent": 239, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 4}}, {"id": 241, "type": "function_declarator", "text": "getSize()", "parent": 239, "children": [242, 243], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 14}}, {"id": 242, "type": "identifier", "text": "getSize", "parent": 241, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 12}}, {"id": 243, "type": "parameter_list", "text": "()", "parent": 241, "children": [], "start_point": {"row": 37, "column": 12}, "end_point": {"row": 37, "column": 14}}, {"id": 244, "type": "return_statement", "text": "return size;", "parent": 239, "children": [245], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 28}}, {"id": 245, "type": "identifier", "text": "size", "parent": 244, "children": [], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 27}}, {"id": 246, "type": "declaration", "text": "bool insert(int rank, node<T>* ptr, element<T>* curr);", "parent": 0, "children": [247, 248], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 55}}, {"id": 247, "type": "primitive_type", "text": "bool", "parent": 246, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 5}}, {"id": 248, "type": "function_declarator", "text": "insert(int rank, node<T>* ptr, element<T>* curr)", "parent": 246, "children": [249, 250], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 54}}, {"id": 249, "type": "identifier", "text": "insert", "parent": 248, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 12}}, {"id": 250, "type": "parameter_list", "text": "(int rank, node<T>* ptr, element<T>* curr)", "parent": 248, "children": [251, 254, 263], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 54}}, {"id": 251, "type": "parameter_declaration", "text": "int rank", "parent": 250, "children": [252, 253], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 21}}, {"id": 252, "type": "primitive_type", "text": "int", "parent": 251, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 16}}, {"id": 253, "type": "identifier", "text": "rank", "parent": 251, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 21}}, {"id": 254, "type": "parameter_declaration", "text": "node<T>* ptr", "parent": 250, "children": [255, 256, 260], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 35}}, {"id": 255, "type": "type_identifier", "text": "node", "parent": 254, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 27}}, {"id": 256, "type": "ERROR", "text": "<T>", "parent": 254, "children": [257, 258, 259], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 30}}, {"id": 257, "type": "<", "text": "<", "parent": 256, "children": [], "start_point": {"row": 38, "column": 27}, "end_point": {"row": 38, "column": 28}}, {"id": 258, "type": "identifier", "text": "T", "parent": 256, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 29}}, {"id": 259, "type": ">", "text": ">", "parent": 256, "children": [], "start_point": {"row": 38, "column": 29}, "end_point": {"row": 38, "column": 30}}, {"id": 260, "type": "pointer_declarator", "text": "* ptr", "parent": 254, "children": [261, 262], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 35}}, {"id": 261, "type": "*", "text": "*", "parent": 260, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 31}}, {"id": 262, "type": "identifier", "text": "ptr", "parent": 260, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 35}}, {"id": 263, "type": "parameter_declaration", "text": "element<T>* curr", "parent": 250, "children": [264, 265, 269], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 53}}, {"id": 264, "type": "type_identifier", "text": "element", "parent": 263, "children": [], "start_point": {"row": 38, "column": 37}, "end_point": {"row": 38, "column": 44}}, {"id": 265, "type": "ERROR", "text": "<T>", "parent": 263, "children": [266, 267, 268], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 47}}, {"id": 266, "type": "<", "text": "<", "parent": 265, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 45}}, {"id": 267, "type": "identifier", "text": "T", "parent": 265, "children": [], "start_point": {"row": 38, "column": 45}, "end_point": {"row": 38, "column": 46}}, {"id": 268, "type": ">", "text": ">", "parent": 265, "children": [], "start_point": {"row": 38, "column": 46}, "end_point": {"row": 38, "column": 47}}, {"id": 269, "type": "pointer_declarator", "text": "* curr", "parent": 263, "children": [270, 271], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 53}}, {"id": 270, "type": "*", "text": "*", "parent": 269, "children": [], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 48}}, {"id": 271, "type": "identifier", "text": "curr", "parent": 269, "children": [], "start_point": {"row": 38, "column": 49}, "end_point": {"row": 38, "column": 53}}, {"id": 272, "type": "declaration", "text": "void print(ostream& out, element<T>* curr);", "parent": 0, "children": [273, 274], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 44}}, {"id": 273, "type": "primitive_type", "text": "void", "parent": 272, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 5}}, {"id": 274, "type": "function_declarator", "text": "print(ostream& out, element<T>* curr)", "parent": 272, "children": [275, 276], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 43}}, {"id": 275, "type": "identifier", "text": "print", "parent": 274, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 11}}, {"id": 276, "type": "parameter_list", "text": "(ostream& out, element<T>* curr)", "parent": 274, "children": [277, 280], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 43}}, {"id": 277, "type": "parameter_declaration", "text": "ostream& out", "parent": 276, "children": [278, 279], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 24}}, {"id": 278, "type": "type_identifier", "text": "ostream", "parent": 277, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 19}}, {"id": 279, "type": "identifier", "text": "out", "parent": 277, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 24}}, {"id": 280, "type": "parameter_declaration", "text": "element<T>* curr", "parent": 276, "children": [281, 282, 286], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 42}}, {"id": 281, "type": "type_identifier", "text": "element", "parent": 280, "children": [], "start_point": {"row": 39, "column": 26}, "end_point": {"row": 39, "column": 33}}, {"id": 282, "type": "ERROR", "text": "<T>", "parent": 280, "children": [283, 284, 285], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 36}}, {"id": 283, "type": "<", "text": "<", "parent": 282, "children": [], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 34}}, {"id": 284, "type": "identifier", "text": "T", "parent": 282, "children": [], "start_point": {"row": 39, "column": 34}, "end_point": {"row": 39, "column": 35}}, {"id": 285, "type": ">", "text": ">", "parent": 282, "children": [], "start_point": {"row": 39, "column": 35}, "end_point": {"row": 39, "column": 36}}, {"id": 286, "type": "pointer_declarator", "text": "* curr", "parent": 280, "children": [287, 288], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 42}}, {"id": 287, "type": "*", "text": "*", "parent": 286, "children": [], "start_point": {"row": 39, "column": 36}, "end_point": {"row": 39, "column": 37}}, {"id": 288, "type": "identifier", "text": "curr", "parent": 286, "children": [], "start_point": {"row": 39, "column": 38}, "end_point": {"row": 39, "column": 42}}, {"id": 289, "type": "function_definition", "text": "void print() { print(cout, root); }", "parent": 0, "children": [290, 291], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 36}}, {"id": 290, "type": "primitive_type", "text": "void", "parent": 289, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 5}}, {"id": 291, "type": "function_declarator", "text": "print()", "parent": 289, "children": [292, 293], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 13}}, {"id": 292, "type": "identifier", "text": "print", "parent": 291, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 11}}, {"id": 293, "type": "parameter_list", "text": "()", "parent": 291, "children": [], "start_point": {"row": 40, "column": 11}, "end_point": {"row": 40, "column": 13}}, {"id": 294, "type": "call_expression", "text": "print(cout, root)", "parent": 289, "children": [295, 296], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 33}}, {"id": 295, "type": "identifier", "text": "print", "parent": 294, "children": [], "start_point": {"row": 40, "column": 16}, "end_point": {"row": 40, "column": 21}}, {"id": 296, "type": "argument_list", "text": "(cout, root)", "parent": 294, "children": [297, 298], "start_point": {"row": 40, "column": 21}, "end_point": {"row": 40, "column": 33}}, {"id": 297, "type": "identifier", "text": "cout", "parent": 296, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 26}}, {"id": 298, "type": "identifier", "text": "root", "parent": 296, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 32}}, {"id": 299, "type": "declaration", "text": "void setOrder(element<T>* curr);", "parent": 0, "children": [300, 301], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 33}}, {"id": 300, "type": "primitive_type", "text": "void", "parent": 299, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 5}}, {"id": 301, "type": "function_declarator", "text": "setOrder(element<T>* curr)", "parent": 299, "children": [302, 303], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 32}}, {"id": 302, "type": "identifier", "text": "setOrder", "parent": 301, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 14}}, {"id": 303, "type": "parameter_list", "text": "(element<T>* curr)", "parent": 301, "children": [304], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 32}}, {"id": 304, "type": "parameter_declaration", "text": "element<T>* curr", "parent": 303, "children": [305, 306, 310], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 31}}, {"id": 305, "type": "type_identifier", "text": "element", "parent": 304, "children": [], "start_point": {"row": 41, "column": 15}, "end_point": {"row": 41, "column": 22}}, {"id": 306, "type": "ERROR", "text": "<T>", "parent": 304, "children": [307, 308, 309], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 25}}, {"id": 307, "type": "<", "text": "<", "parent": 306, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 23}}, {"id": 308, "type": "identifier", "text": "T", "parent": 306, "children": [], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 24}}, {"id": 309, "type": ">", "text": ">", "parent": 306, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 25}}, {"id": 310, "type": "pointer_declarator", "text": "* curr", "parent": 304, "children": [311, 312], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 31}}, {"id": 311, "type": "*", "text": "*", "parent": 310, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 26}}, {"id": 312, "type": "identifier", "text": "curr", "parent": 310, "children": [], "start_point": {"row": 41, "column": 27}, "end_point": {"row": 41, "column": 31}}, {"id": 313, "type": "binary_expression", "text": "element<T> * searchOrder(int listOrder, element<T> * curr)", "parent": 0, "children": [314, 318, 319], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 59}}, {"id": 314, "type": "binary_expression", "text": "element<T", "parent": 313, "children": [315, 316, 317], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 10}}, {"id": 315, "type": "identifier", "text": "element", "parent": 314, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 8}}, {"id": 316, "type": "<", "text": "<", "parent": 314, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 9}}, {"id": 317, "type": "identifier", "text": "T", "parent": 314, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 10}}, {"id": 318, "type": ">", "text": ">", "parent": 313, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 11}}, {"id": 319, "type": "pointer_expression", "text": "* searchOrder(int listOrder, element<T> * curr)", "parent": 313, "children": [320, 321], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 59}}, {"id": 320, "type": "*", "text": "*", "parent": 319, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 13}}, {"id": 321, "type": "call_expression", "text": "searchOrder(int listOrder, element<T> * curr)", "parent": 319, "children": [322, 323], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 59}}, {"id": 322, "type": "identifier", "text": "searchOrder", "parent": 321, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 25}}, {"id": 323, "type": "argument_list", "text": "(int listOrder, element<T> * curr)", "parent": 321, "children": [324, 326, 327], "start_point": {"row": 42, "column": 25}, "end_point": {"row": 42, "column": 59}}, {"id": 324, "type": "ERROR", "text": "int", "parent": 323, "children": [325], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 29}}, {"id": 325, "type": "identifier", "text": "int", "parent": 324, "children": [], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 29}}, {"id": 326, "type": "identifier", "text": "listOrder", "parent": 323, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 39}}, {"id": 327, "type": "binary_expression", "text": "element<T> * curr", "parent": 323, "children": [328, 332, 333], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 58}}, {"id": 328, "type": "binary_expression", "text": "element<T", "parent": 327, "children": [329, 330, 331], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 50}}, {"id": 329, "type": "identifier", "text": "element", "parent": 328, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 48}}, {"id": 330, "type": "<", "text": "<", "parent": 328, "children": [], "start_point": {"row": 42, "column": 48}, "end_point": {"row": 42, "column": 49}}, {"id": 331, "type": "identifier", "text": "T", "parent": 328, "children": [], "start_point": {"row": 42, "column": 49}, "end_point": {"row": 42, "column": 50}}, {"id": 332, "type": ">", "text": ">", "parent": 327, "children": [], "start_point": {"row": 42, "column": 50}, "end_point": {"row": 42, "column": 51}}, {"id": 333, "type": "pointer_expression", "text": "* curr", "parent": 327, "children": [334, 335], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 58}}, {"id": 334, "type": "*", "text": "*", "parent": 333, "children": [], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 53}}, {"id": 335, "type": "identifier", "text": "curr", "parent": 333, "children": [], "start_point": {"row": 42, "column": 54}, "end_point": {"row": 42, "column": 58}}, {"id": 336, "type": "declaration", "text": "void deleteTree(element<T>* curr);", "parent": 0, "children": [337, 338], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 35}}, {"id": 337, "type": "primitive_type", "text": "void", "parent": 336, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 5}}, {"id": 338, "type": "function_declarator", "text": "deleteTree(element<T>* curr)", "parent": 336, "children": [339, 340], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 34}}, {"id": 339, "type": "identifier", "text": "deleteTree", "parent": 338, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 16}}, {"id": 340, "type": "parameter_list", "text": "(element<T>* curr)", "parent": 338, "children": [341], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 34}}, {"id": 341, "type": "parameter_declaration", "text": "element<T>* curr", "parent": 340, "children": [342, 343, 347], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 33}}, {"id": 342, "type": "type_identifier", "text": "element", "parent": 341, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 24}}, {"id": 343, "type": "ERROR", "text": "<T>", "parent": 341, "children": [344, 345, 346], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 27}}, {"id": 344, "type": "<", "text": "<", "parent": 343, "children": [], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 25}}, {"id": 345, "type": "identifier", "text": "T", "parent": 343, "children": [], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 26}}, {"id": 346, "type": ">", "text": ">", "parent": 343, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 27}}, {"id": 347, "type": "pointer_declarator", "text": "* curr", "parent": 341, "children": [348, 349], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 33}}, {"id": 348, "type": "*", "text": "*", "parent": 347, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 28}}, {"id": 349, "type": "identifier", "text": "curr", "parent": 347, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 33}}, {"id": 350, "type": "binary_expression", "text": "node<T>* getInput()", "parent": 0, "children": [351, 355, 356], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 20}}, {"id": 351, "type": "binary_expression", "text": "node<T", "parent": 350, "children": [352, 353, 354], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 7}}, {"id": 352, "type": "identifier", "text": "node", "parent": 351, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 5}}, {"id": 353, "type": "<", "text": "<", "parent": 351, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 6}}, {"id": 354, "type": "identifier", "text": "T", "parent": 351, "children": [], "start_point": {"row": 44, "column": 6}, "end_point": {"row": 44, "column": 7}}, {"id": 355, "type": ">", "text": ">", "parent": 350, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 8}}, {"id": 356, "type": "pointer_expression", "text": "* getInput()", "parent": 350, "children": [357, 358], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 20}}, {"id": 357, "type": "*", "text": "*", "parent": 356, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 9}}, {"id": 358, "type": "call_expression", "text": "getInput()", "parent": 356, "children": [359, 360], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 20}}, {"id": 359, "type": "identifier", "text": "getInput", "parent": 358, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 18}}, {"id": 360, "type": "argument_list", "text": "()", "parent": 358, "children": [], "start_point": {"row": 44, "column": 18}, "end_point": {"row": 44, "column": 20}}, {"id": 361, "type": "declaration", "text": "static int order;", "parent": 0, "children": [362, 363], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 18}}, {"id": 362, "type": "primitive_type", "text": "int", "parent": 361, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 11}}, {"id": 363, "type": "identifier", "text": "order", "parent": 361, "children": [], "start_point": {"row": 45, "column": 12}, "end_point": {"row": 45, "column": 17}}, {"id": 364, "type": "labeled_statement", "text": "private:\r\n\telement<T> * root;", "parent": 0, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 19}}, {"id": 365, "type": "binary_expression", "text": "element<T> * root", "parent": 364, "children": [366, 370, 371], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 18}}, {"id": 366, "type": "binary_expression", "text": "element<T", "parent": 365, "children": [367, 368, 369], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 10}}, {"id": 367, "type": "identifier", "text": "element", "parent": 366, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 8}}, {"id": 368, "type": "<", "text": "<", "parent": 366, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 9}}, {"id": 369, "type": "identifier", "text": "T", "parent": 366, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 10}}, {"id": 370, "type": ">", "text": ">", "parent": 365, "children": [], "start_point": {"row": 47, "column": 10}, "end_point": {"row": 47, "column": 11}}, {"id": 371, "type": "pointer_expression", "text": "* root", "parent": 365, "children": [372, 373], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 18}}, {"id": 372, "type": "*", "text": "*", "parent": 371, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 13}}, {"id": 373, "type": "identifier", "text": "root", "parent": 371, "children": [], "start_point": {"row": 47, "column": 14}, "end_point": {"row": 47, "column": 18}}, {"id": 374, "type": "declaration", "text": "int size;", "parent": 0, "children": [375, 376], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 10}}, {"id": 375, "type": "primitive_type", "text": "int", "parent": 374, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 4}}, {"id": 376, "type": "identifier", "text": "size", "parent": 374, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 9}}, {"id": 377, "type": "binary_expression", "text": "template <class T>\r\nint BST<T>::order = 0", "parent": 0, "children": [378, 391, 392], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 21}}, {"id": 378, "type": "binary_expression", "text": "template <class T>\r\nint BST<T", "parent": 377, "children": [379, 387, 389, 390], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 9}}, {"id": 379, "type": "binary_expression", "text": "template <class T>\r\nint", "parent": 378, "children": [380, 383, 385, 386], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 3}}, {"id": 380, "type": "binary_expression", "text": "template <class", "parent": 379, "children": [381, 382], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 15}}, {"id": 381, "type": "identifier", "text": "template", "parent": 380, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 8}}, {"id": 382, "type": "<", "text": "<", "parent": 380, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 383, "type": "ERROR", "text": "T", "parent": 379, "children": [384], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 17}}, {"id": 384, "type": "identifier", "text": "T", "parent": 383, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 17}}, {"id": 385, "type": ">", "text": ">", "parent": 379, "children": [], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 18}}, {"id": 386, "type": "identifier", "text": "int", "parent": 379, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 3}}, {"id": 387, "type": "ERROR", "text": "BST", "parent": 378, "children": [388], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 7}}, {"id": 388, "type": "identifier", "text": "BST", "parent": 387, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 7}}, {"id": 389, "type": "<", "text": "<", "parent": 378, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 8}}, {"id": 390, "type": "identifier", "text": "T", "parent": 378, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 9}}, {"id": 391, "type": ">", "text": ">", "parent": 377, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 10}}, {"id": 392, "type": "assignment_expression", "text": "order = 0", "parent": 377, "children": [393, 394, 395], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 21}}, {"id": 393, "type": "identifier", "text": "order", "parent": 392, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 17}}, {"id": 394, "type": "=", "text": "=", "parent": 392, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 395, "type": "number_literal", "text": "0", "parent": 392, "children": [], "start_point": {"row": 52, "column": 20}, "end_point": {"row": 52, "column": 21}}, {"id": 396, "type": "binary_expression", "text": "template <class T>\r\nbool BST<T>::insert(int rank, node<T>* ptr, element<T>* curr)", "parent": 0, "children": [397, 410, 411], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 61}}, {"id": 397, "type": "binary_expression", "text": "template <class T>\r\nbool BST<T", "parent": 396, "children": [398, 406, 408, 409], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 10}}, {"id": 398, "type": "binary_expression", "text": "template <class T>\r\nbool", "parent": 397, "children": [399, 402, 404, 405], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 399, "type": "binary_expression", "text": "template <class", "parent": 398, "children": [400, 401], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 15}}, {"id": 400, "type": "identifier", "text": "template", "parent": 399, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 8}}, {"id": 401, "type": "<", "text": "<", "parent": 399, "children": [], "start_point": {"row": 54, "column": 9}, "end_point": {"row": 54, "column": 10}}, {"id": 402, "type": "ERROR", "text": "T", "parent": 398, "children": [403], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 17}}, {"id": 403, "type": "identifier", "text": "T", "parent": 402, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 17}}, {"id": 404, "type": ">", "text": ">", "parent": 398, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 18}}, {"id": 405, "type": "identifier", "text": "bool", "parent": 398, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 4}}, {"id": 406, "type": "ERROR", "text": "BST", "parent": 397, "children": [407], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 8}}, {"id": 407, "type": "identifier", "text": "BST", "parent": 406, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 8}}, {"id": 408, "type": "<", "text": "<", "parent": 397, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 9}}, {"id": 409, "type": "identifier", "text": "T", "parent": 397, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 10}}, {"id": 410, "type": ">", "text": ">", "parent": 396, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 11}}, {"id": 411, "type": "call_expression", "text": "insert(int rank, node<T>* ptr, element<T>* curr)", "parent": 396, "children": [412, 413], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 61}}, {"id": 412, "type": "identifier", "text": "insert", "parent": 411, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 19}}, {"id": 413, "type": "argument_list", "text": "(int rank, node<T>* ptr, element<T>* curr)", "parent": 411, "children": [414, 416, 417, 426], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 61}}, {"id": 414, "type": "ERROR", "text": "int", "parent": 413, "children": [415], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 23}}, {"id": 415, "type": "identifier", "text": "int", "parent": 414, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 23}}, {"id": 416, "type": "identifier", "text": "rank", "parent": 413, "children": [], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 28}}, {"id": 417, "type": "binary_expression", "text": "node<T>* ptr", "parent": 413, "children": [418, 422, 423], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 42}}, {"id": 418, "type": "binary_expression", "text": "node<T", "parent": 417, "children": [419, 420, 421], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 36}}, {"id": 419, "type": "identifier", "text": "node", "parent": 418, "children": [], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 34}}, {"id": 420, "type": "<", "text": "<", "parent": 418, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 35}}, {"id": 421, "type": "identifier", "text": "T", "parent": 418, "children": [], "start_point": {"row": 55, "column": 35}, "end_point": {"row": 55, "column": 36}}, {"id": 422, "type": ">", "text": ">", "parent": 417, "children": [], "start_point": {"row": 55, "column": 36}, "end_point": {"row": 55, "column": 37}}, {"id": 423, "type": "pointer_expression", "text": "* ptr", "parent": 417, "children": [424, 425], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 42}}, {"id": 424, "type": "*", "text": "*", "parent": 423, "children": [], "start_point": {"row": 55, "column": 37}, "end_point": {"row": 55, "column": 38}}, {"id": 425, "type": "identifier", "text": "ptr", "parent": 423, "children": [], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 42}}, {"id": 426, "type": "binary_expression", "text": "element<T>* curr", "parent": 413, "children": [427, 431, 432], "start_point": {"row": 55, "column": 44}, "end_point": {"row": 55, "column": 60}}, {"id": 427, "type": "binary_expression", "text": "element<T", "parent": 426, "children": [428, 429, 430], "start_point": {"row": 55, "column": 44}, "end_point": {"row": 55, "column": 53}}, {"id": 428, "type": "identifier", "text": "element", "parent": 427, "children": [], "start_point": {"row": 55, "column": 44}, "end_point": {"row": 55, "column": 51}}, {"id": 429, "type": "<", "text": "<", "parent": 427, "children": [], "start_point": {"row": 55, "column": 51}, "end_point": {"row": 55, "column": 52}}, {"id": 430, "type": "identifier", "text": "T", "parent": 427, "children": [], "start_point": {"row": 55, "column": 52}, "end_point": {"row": 55, "column": 53}}, {"id": 431, "type": ">", "text": ">", "parent": 426, "children": [], "start_point": {"row": 55, "column": 53}, "end_point": {"row": 55, "column": 54}}, {"id": 432, "type": "pointer_expression", "text": "* curr", "parent": 426, "children": [433, 434], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 60}}, {"id": 433, "type": "*", "text": "*", "parent": 432, "children": [], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 55}}, {"id": 434, "type": "identifier", "text": "curr", "parent": 432, "children": [], "start_point": {"row": 55, "column": 56}, "end_point": {"row": 55, "column": 60}}, {"id": 435, "type": "declaration", "text": "bool canInsert = true;", "parent": 0, "children": [436, 437], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 23}}, {"id": 436, "type": "primitive_type", "text": "bool", "parent": 435, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 5}}, {"id": 437, "type": "init_declarator", "text": "canInsert = true", "parent": 435, "children": [438, 439, 440], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 22}}, {"id": 438, "type": "identifier", "text": "canInsert", "parent": 437, "children": [], "start_point": {"row": 57, "column": 6}, "end_point": {"row": 57, "column": 15}}, {"id": 439, "type": "=", "text": "=", "parent": 437, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 17}}, {"id": 440, "type": "true", "text": "true", "parent": 437, "children": [], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 22}}, {"id": 441, "type": "binary_expression", "text": "element<T> * tempPtr = NULL", "parent": 0, "children": [442, 446, 447], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 28}}, {"id": 442, "type": "binary_expression", "text": "element<T", "parent": 441, "children": [443, 444, 445], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 10}}, {"id": 443, "type": "identifier", "text": "element", "parent": 442, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 8}}, {"id": 444, "type": "<", "text": "<", "parent": 442, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 9}}, {"id": 445, "type": "identifier", "text": "T", "parent": 442, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 446, "type": ">", "text": ">", "parent": 441, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 11}}, {"id": 447, "type": "assignment_expression", "text": "* tempPtr = NULL", "parent": 441, "children": [448, 451, 452], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 28}}, {"id": 448, "type": "pointer_expression", "text": "* tempPtr", "parent": 447, "children": [449, 450], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 21}}, {"id": 449, "type": "*", "text": "*", "parent": 448, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 450, "type": "identifier", "text": "tempPtr", "parent": 448, "children": [], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 21}}, {"id": 451, "type": "=", "text": "=", "parent": 447, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 23}}, {"id": 452, "type": "null", "text": "NULL", "parent": 447, "children": [453], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 28}}, {"id": 453, "type": "NULL", "text": "NULL", "parent": 452, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 28}}, {"id": 454, "type": "if_statement", "text": "if (curr == NULL)\r\n\t{\r\n\t\tcurr = new element<T>(rank, ptr);\r\n\t\tif (isEmpty())\r\n\t\t{\r\n\t\t\troot = curr;\r\n\t\t\tsize++;\r\n\t\t}\r\n\t\tsetOrder(curr);\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif (rank < curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->left() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setLeft(tempPtr = new element<T>(rank, ptr)); \r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->left());\r\n\t\t}\r\n\t\telse if (rank >= curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->right() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setRight(tempPtr = new element<T>(rank, ptr));\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->right());\r\n\t\t}\r\n\t\torder = 0;\r\n\t\tsetOrder(root);\r\n\t}", "parent": 0, "children": [455, 490], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 93, "column": 2}}, {"id": 455, "type": "parenthesized_expression", "text": "(curr == NULL)", "parent": 454, "children": [456], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 18}}, {"id": 456, "type": "binary_expression", "text": "curr == NULL", "parent": 455, "children": [457, 458, 459], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 17}}, {"id": 457, "type": "identifier", "text": "curr", "parent": 456, "children": [], "start_point": {"row": 59, "column": 5}, "end_point": {"row": 59, "column": 9}}, {"id": 458, "type": "==", "text": "==", "parent": 456, "children": [], "start_point": {"row": 59, "column": 10}, "end_point": {"row": 59, "column": 12}}, {"id": 459, "type": "null", "text": "NULL", "parent": 456, "children": [460], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 17}}, {"id": 460, "type": "NULL", "text": "NULL", "parent": 459, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 17}}, {"id": 461, "type": "assignment_expression", "text": "curr = new element<T>(rank, ptr)", "parent": 454, "children": [462, 463, 464], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 34}}, {"id": 462, "type": "identifier", "text": "curr", "parent": 461, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 6}}, {"id": 463, "type": "=", "text": "=", "parent": 461, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 464, "type": "binary_expression", "text": "element<T>(rank, ptr)", "parent": 461, "children": [465, 469, 470], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 34}}, {"id": 465, "type": "binary_expression", "text": "element<T", "parent": 464, "children": [466, 467, 468], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 22}}, {"id": 466, "type": "identifier", "text": "element", "parent": 465, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 20}}, {"id": 467, "type": "<", "text": "<", "parent": 465, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 468, "type": "identifier", "text": "T", "parent": 465, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 22}}, {"id": 469, "type": ">", "text": ">", "parent": 464, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 23}}, {"id": 470, "type": "parenthesized_expression", "text": "(rank, ptr)", "parent": 464, "children": [471], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 34}}, {"id": 471, "type": "comma_expression", "text": "rank, ptr", "parent": 470, "children": [472, 473], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 33}}, {"id": 472, "type": "identifier", "text": "rank", "parent": 471, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 28}}, {"id": 473, "type": "identifier", "text": "ptr", "parent": 471, "children": [], "start_point": {"row": 61, "column": 30}, "end_point": {"row": 61, "column": 33}}, {"id": 474, "type": "if_statement", "text": "if (isEmpty())\r\n\t\t{\r\n\t\t\troot = curr;\r\n\t\t\tsize++;\r\n\t\t}", "parent": 454, "children": [475], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 66, "column": 3}}, {"id": 475, "type": "parenthesized_expression", "text": "(isEmpty())", "parent": 474, "children": [476], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 16}}, {"id": 476, "type": "call_expression", "text": "isEmpty()", "parent": 475, "children": [477, 478], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 15}}, {"id": 477, "type": "identifier", "text": "isEmpty", "parent": 476, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 13}}, {"id": 478, "type": "argument_list", "text": "()", "parent": 476, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 15}}, {"id": 479, "type": "assignment_expression", "text": "root = curr", "parent": 474, "children": [480, 481, 482], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 14}}, {"id": 480, "type": "identifier", "text": "root", "parent": 479, "children": [], "start_point": {"row": 64, "column": 3}, "end_point": {"row": 64, "column": 7}}, {"id": 481, "type": "=", "text": "=", "parent": 479, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 9}}, {"id": 482, "type": "identifier", "text": "curr", "parent": 479, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 14}}, {"id": 483, "type": "update_expression", "text": "size++", "parent": 474, "children": [484, 485], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 9}}, {"id": 484, "type": "identifier", "text": "size", "parent": 483, "children": [], "start_point": {"row": 65, "column": 3}, "end_point": {"row": 65, "column": 7}}, {"id": 485, "type": "++", "text": "++", "parent": 483, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 9}}, {"id": 486, "type": "call_expression", "text": "setOrder(curr)", "parent": 454, "children": [487, 488], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 16}}, {"id": 487, "type": "identifier", "text": "setOrder", "parent": 486, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 10}}, {"id": 488, "type": "argument_list", "text": "(curr)", "parent": 486, "children": [489], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 16}}, {"id": 489, "type": "identifier", "text": "curr", "parent": 488, "children": [], "start_point": {"row": 67, "column": 11}, "end_point": {"row": 67, "column": 15}}, {"id": 490, "type": "else_clause", "text": "else\r\n\t{\r\n\t\tif (rank < curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->left() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setLeft(tempPtr = new element<T>(rank, ptr)); \r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->left());\r\n\t\t}\r\n\t\telse if (rank >= curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->right() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setRight(tempPtr = new element<T>(rank, ptr));\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->right());\r\n\t\t}\r\n\t\torder = 0;\r\n\t\tsetOrder(root);\r\n\t}", "parent": 454, "children": [], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 93, "column": 2}}, {"id": 491, "type": "if_statement", "text": "if (rank < curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->left() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setLeft(tempPtr = new element<T>(rank, ptr)); \r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->left());\r\n\t\t}\r\n\t\telse if (rank >= curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->right() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setRight(tempPtr = new element<T>(rank, ptr));\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->right());\r\n\t\t}", "parent": 490, "children": [492, 545], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 90, "column": 3}}, {"id": 492, "type": "parenthesized_expression", "text": "(rank < curr->getRank())", "parent": 491, "children": [493], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 29}}, {"id": 493, "type": "binary_expression", "text": "rank < curr->getRank()", "parent": 492, "children": [494, 495, 496], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 28}}, {"id": 494, "type": "identifier", "text": "rank", "parent": 493, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 10}}, {"id": 495, "type": "<", "text": "<", "parent": 493, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 12}}, {"id": 496, "type": "call_expression", "text": "curr->getRank()", "parent": 493, "children": [497, 500], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 28}}, {"id": 497, "type": "field_expression", "text": "curr->getRank", "parent": 496, "children": [498, 499], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 26}}, {"id": 498, "type": "identifier", "text": "curr", "parent": 497, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 17}}, {"id": 499, "type": "field_identifier", "text": "getRank", "parent": 497, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 26}}, {"id": 500, "type": "argument_list", "text": "()", "parent": 496, "children": [], "start_point": {"row": 71, "column": 26}, "end_point": {"row": 71, "column": 28}}, {"id": 501, "type": "if_statement", "text": "if (curr->left() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setLeft(tempPtr = new element<T>(rank, ptr)); \r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->left());", "parent": 491, "children": [502, 533], "start_point": {"row": 73, "column": 3}, "end_point": {"row": 79, "column": 43}}, {"id": 502, "type": "parenthesized_expression", "text": "(curr->left() == NULL)", "parent": 501, "children": [503], "start_point": {"row": 73, "column": 6}, "end_point": {"row": 73, "column": 28}}, {"id": 503, "type": "binary_expression", "text": "curr->left() == NULL", "parent": 502, "children": [504, 509, 510], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 27}}, {"id": 504, "type": "call_expression", "text": "curr->left()", "parent": 503, "children": [505, 508], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 19}}, {"id": 505, "type": "field_expression", "text": "curr->left", "parent": 504, "children": [506, 507], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 17}}, {"id": 506, "type": "identifier", "text": "curr", "parent": 505, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 11}}, {"id": 507, "type": "field_identifier", "text": "left", "parent": 505, "children": [], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 17}}, {"id": 508, "type": "argument_list", "text": "()", "parent": 504, "children": [], "start_point": {"row": 73, "column": 17}, "end_point": {"row": 73, "column": 19}}, {"id": 509, "type": "==", "text": "==", "parent": 503, "children": [], "start_point": {"row": 73, "column": 20}, "end_point": {"row": 73, "column": 22}}, {"id": 510, "type": "null", "text": "NULL", "parent": 503, "children": [511], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 27}}, {"id": 511, "type": "NULL", "text": "NULL", "parent": 510, "children": [], "start_point": {"row": 73, "column": 23}, "end_point": {"row": 73, "column": 27}}, {"id": 512, "type": "call_expression", "text": "curr->setLeft(tempPtr = new element<T>(rank, ptr))", "parent": 501, "children": [513, 516], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 54}}, {"id": 513, "type": "field_expression", "text": "curr->setLeft", "parent": 512, "children": [514, 515], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 17}}, {"id": 514, "type": "identifier", "text": "curr", "parent": 513, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 8}}, {"id": 515, "type": "field_identifier", "text": "setLeft", "parent": 513, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 17}}, {"id": 516, "type": "argument_list", "text": "(tempPtr = new element<T>(rank, ptr))", "parent": 512, "children": [517], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 54}}, {"id": 517, "type": "assignment_expression", "text": "tempPtr = new element<T>(rank, ptr)", "parent": 516, "children": [518, 519, 520], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 53}}, {"id": 518, "type": "identifier", "text": "tempPtr", "parent": 517, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 25}}, {"id": 519, "type": "=", "text": "=", "parent": 517, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 27}}, {"id": 520, "type": "binary_expression", "text": "element<T>(rank, ptr)", "parent": 517, "children": [521, 525, 526], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 53}}, {"id": 521, "type": "binary_expression", "text": "element<T", "parent": 520, "children": [522, 523, 524], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 41}}, {"id": 522, "type": "identifier", "text": "element", "parent": 521, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 39}}, {"id": 523, "type": "<", "text": "<", "parent": 521, "children": [], "start_point": {"row": 75, "column": 39}, "end_point": {"row": 75, "column": 40}}, {"id": 524, "type": "identifier", "text": "T", "parent": 521, "children": [], "start_point": {"row": 75, "column": 40}, "end_point": {"row": 75, "column": 41}}, {"id": 525, "type": ">", "text": ">", "parent": 520, "children": [], "start_point": {"row": 75, "column": 41}, "end_point": {"row": 75, "column": 42}}, {"id": 526, "type": "parenthesized_expression", "text": "(rank, ptr)", "parent": 520, "children": [527], "start_point": {"row": 75, "column": 42}, "end_point": {"row": 75, "column": 53}}, {"id": 527, "type": "comma_expression", "text": "rank, ptr", "parent": 526, "children": [528, 529], "start_point": {"row": 75, "column": 43}, "end_point": {"row": 75, "column": 52}}, {"id": 528, "type": "identifier", "text": "rank", "parent": 527, "children": [], "start_point": {"row": 75, "column": 43}, "end_point": {"row": 75, "column": 47}}, {"id": 529, "type": "identifier", "text": "ptr", "parent": 527, "children": [], "start_point": {"row": 75, "column": 49}, "end_point": {"row": 75, "column": 52}}, {"id": 530, "type": "update_expression", "text": "size++", "parent": 501, "children": [531, 532], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 10}}, {"id": 531, "type": "identifier", "text": "size", "parent": 530, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 8}}, {"id": 532, "type": "++", "text": "++", "parent": 530, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 10}}, {"id": 533, "type": "else_clause", "text": "else\r\n\t\t\t\treturn insert(rank, ptr, curr->left());", "parent": 501, "children": [534], "start_point": {"row": 78, "column": 3}, "end_point": {"row": 79, "column": 43}}, {"id": 534, "type": "return_statement", "text": "return insert(rank, ptr, curr->left());", "parent": 533, "children": [535], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 43}}, {"id": 535, "type": "call_expression", "text": "insert(rank, ptr, curr->left())", "parent": 534, "children": [536, 537], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 42}}, {"id": 536, "type": "identifier", "text": "insert", "parent": 535, "children": [], "start_point": {"row": 79, "column": 11}, "end_point": {"row": 79, "column": 17}}, {"id": 537, "type": "argument_list", "text": "(rank, ptr, curr->left())", "parent": 535, "children": [538, 539, 540], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 42}}, {"id": 538, "type": "identifier", "text": "rank", "parent": 537, "children": [], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 22}}, {"id": 539, "type": "identifier", "text": "ptr", "parent": 537, "children": [], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 27}}, {"id": 540, "type": "call_expression", "text": "curr->left()", "parent": 537, "children": [541, 544], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 41}}, {"id": 541, "type": "field_expression", "text": "curr->left", "parent": 540, "children": [542, 543], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 39}}, {"id": 542, "type": "identifier", "text": "curr", "parent": 541, "children": [], "start_point": {"row": 79, "column": 29}, "end_point": {"row": 79, "column": 33}}, {"id": 543, "type": "field_identifier", "text": "left", "parent": 541, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 39}}, {"id": 544, "type": "argument_list", "text": "()", "parent": 540, "children": [], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 41}}, {"id": 545, "type": "else_clause", "text": "else if (rank >= curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->right() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setRight(tempPtr = new element<T>(rank, ptr));\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->right());\r\n\t\t}", "parent": 491, "children": [546], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 90, "column": 3}}, {"id": 546, "type": "if_statement", "text": "if (rank >= curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->right() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setRight(tempPtr = new element<T>(rank, ptr));\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->right());\r\n\t\t}", "parent": 545, "children": [547], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 90, "column": 3}}, {"id": 547, "type": "parenthesized_expression", "text": "(rank >= curr->getRank())", "parent": 546, "children": [548], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 35}}, {"id": 548, "type": "binary_expression", "text": "rank >= curr->getRank()", "parent": 547, "children": [549, 550, 551], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 34}}, {"id": 549, "type": "identifier", "text": "rank", "parent": 548, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 15}}, {"id": 550, "type": ">=", "text": ">=", "parent": 548, "children": [], "start_point": {"row": 81, "column": 16}, "end_point": {"row": 81, "column": 18}}, {"id": 551, "type": "call_expression", "text": "curr->getRank()", "parent": 548, "children": [552, 555], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 34}}, {"id": 552, "type": "field_expression", "text": "curr->getRank", "parent": 551, "children": [553, 554], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 32}}, {"id": 553, "type": "identifier", "text": "curr", "parent": 552, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 23}}, {"id": 554, "type": "field_identifier", "text": "getRank", "parent": 552, "children": [], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 32}}, {"id": 555, "type": "argument_list", "text": "()", "parent": 551, "children": [], "start_point": {"row": 81, "column": 32}, "end_point": {"row": 81, "column": 34}}, {"id": 556, "type": "if_statement", "text": "if (curr->right() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setRight(tempPtr = new element<T>(rank, ptr));\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->right());", "parent": 546, "children": [557, 588], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 89, "column": 44}}, {"id": 557, "type": "parenthesized_expression", "text": "(curr->right() == NULL)", "parent": 556, "children": [558], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 29}}, {"id": 558, "type": "binary_expression", "text": "curr->right() == NULL", "parent": 557, "children": [559, 564, 565], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 28}}, {"id": 559, "type": "call_expression", "text": "curr->right()", "parent": 558, "children": [560, 563], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 20}}, {"id": 560, "type": "field_expression", "text": "curr->right", "parent": 559, "children": [561, 562], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 18}}, {"id": 561, "type": "identifier", "text": "curr", "parent": 560, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 11}}, {"id": 562, "type": "field_identifier", "text": "right", "parent": 560, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 18}}, {"id": 563, "type": "argument_list", "text": "()", "parent": 559, "children": [], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 20}}, {"id": 564, "type": "==", "text": "==", "parent": 558, "children": [], "start_point": {"row": 83, "column": 21}, "end_point": {"row": 83, "column": 23}}, {"id": 565, "type": "null", "text": "NULL", "parent": 558, "children": [566], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 28}}, {"id": 566, "type": "NULL", "text": "NULL", "parent": 565, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 28}}, {"id": 567, "type": "call_expression", "text": "curr->setRight(tempPtr = new element<T>(rank, ptr))", "parent": 556, "children": [568, 571], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 55}}, {"id": 568, "type": "field_expression", "text": "curr->setRight", "parent": 567, "children": [569, 570], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 18}}, {"id": 569, "type": "identifier", "text": "curr", "parent": 568, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 8}}, {"id": 570, "type": "field_identifier", "text": "setRight", "parent": 568, "children": [], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 18}}, {"id": 571, "type": "argument_list", "text": "(tempPtr = new element<T>(rank, ptr))", "parent": 567, "children": [572], "start_point": {"row": 85, "column": 18}, "end_point": {"row": 85, "column": 55}}, {"id": 572, "type": "assignment_expression", "text": "tempPtr = new element<T>(rank, ptr)", "parent": 571, "children": [573, 574, 575], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 54}}, {"id": 573, "type": "identifier", "text": "tempPtr", "parent": 572, "children": [], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 26}}, {"id": 574, "type": "=", "text": "=", "parent": 572, "children": [], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 28}}, {"id": 575, "type": "binary_expression", "text": "element<T>(rank, ptr)", "parent": 572, "children": [576, 580, 581], "start_point": {"row": 85, "column": 33}, "end_point": {"row": 85, "column": 54}}, {"id": 576, "type": "binary_expression", "text": "element<T", "parent": 575, "children": [577, 578, 579], "start_point": {"row": 85, "column": 33}, "end_point": {"row": 85, "column": 42}}, {"id": 577, "type": "identifier", "text": "element", "parent": 576, "children": [], "start_point": {"row": 85, "column": 33}, "end_point": {"row": 85, "column": 40}}, {"id": 578, "type": "<", "text": "<", "parent": 576, "children": [], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 41}}, {"id": 579, "type": "identifier", "text": "T", "parent": 576, "children": [], "start_point": {"row": 85, "column": 41}, "end_point": {"row": 85, "column": 42}}, {"id": 580, "type": ">", "text": ">", "parent": 575, "children": [], "start_point": {"row": 85, "column": 42}, "end_point": {"row": 85, "column": 43}}, {"id": 581, "type": "parenthesized_expression", "text": "(rank, ptr)", "parent": 575, "children": [582], "start_point": {"row": 85, "column": 43}, "end_point": {"row": 85, "column": 54}}, {"id": 582, "type": "comma_expression", "text": "rank, ptr", "parent": 581, "children": [583, 584], "start_point": {"row": 85, "column": 44}, "end_point": {"row": 85, "column": 53}}, {"id": 583, "type": "identifier", "text": "rank", "parent": 582, "children": [], "start_point": {"row": 85, "column": 44}, "end_point": {"row": 85, "column": 48}}, {"id": 584, "type": "identifier", "text": "ptr", "parent": 582, "children": [], "start_point": {"row": 85, "column": 50}, "end_point": {"row": 85, "column": 53}}, {"id": 585, "type": "update_expression", "text": "size++", "parent": 556, "children": [586, 587], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 10}}, {"id": 586, "type": "identifier", "text": "size", "parent": 585, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 8}}, {"id": 587, "type": "++", "text": "++", "parent": 585, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 10}}, {"id": 588, "type": "else_clause", "text": "else\r\n\t\t\t\treturn insert(rank, ptr, curr->right());", "parent": 556, "children": [589], "start_point": {"row": 88, "column": 3}, "end_point": {"row": 89, "column": 44}}, {"id": 589, "type": "return_statement", "text": "return insert(rank, ptr, curr->right());", "parent": 588, "children": [590], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 44}}, {"id": 590, "type": "call_expression", "text": "insert(rank, ptr, curr->right())", "parent": 589, "children": [591, 592], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 43}}, {"id": 591, "type": "identifier", "text": "insert", "parent": 590, "children": [], "start_point": {"row": 89, "column": 11}, "end_point": {"row": 89, "column": 17}}, {"id": 592, "type": "argument_list", "text": "(rank, ptr, curr->right())", "parent": 590, "children": [593, 594, 595], "start_point": {"row": 89, "column": 17}, "end_point": {"row": 89, "column": 43}}, {"id": 593, "type": "identifier", "text": "rank", "parent": 592, "children": [], "start_point": {"row": 89, "column": 18}, "end_point": {"row": 89, "column": 22}}, {"id": 594, "type": "identifier", "text": "ptr", "parent": 592, "children": [], "start_point": {"row": 89, "column": 24}, "end_point": {"row": 89, "column": 27}}, {"id": 595, "type": "call_expression", "text": "curr->right()", "parent": 592, "children": [596, 599], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 42}}, {"id": 596, "type": "field_expression", "text": "curr->right", "parent": 595, "children": [597, 598], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 40}}, {"id": 597, "type": "identifier", "text": "curr", "parent": 596, "children": [], "start_point": {"row": 89, "column": 29}, "end_point": {"row": 89, "column": 33}}, {"id": 598, "type": "field_identifier", "text": "right", "parent": 596, "children": [], "start_point": {"row": 89, "column": 35}, "end_point": {"row": 89, "column": 40}}, {"id": 599, "type": "argument_list", "text": "()", "parent": 595, "children": [], "start_point": {"row": 89, "column": 40}, "end_point": {"row": 89, "column": 42}}, {"id": 600, "type": "assignment_expression", "text": "order = 0", "parent": 490, "children": [601, 602, 603], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 11}}, {"id": 601, "type": "identifier", "text": "order", "parent": 600, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 7}}, {"id": 602, "type": "=", "text": "=", "parent": 600, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 9}}, {"id": 603, "type": "number_literal", "text": "0", "parent": 600, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 11}}, {"id": 604, "type": "call_expression", "text": "setOrder(root)", "parent": 490, "children": [605, 606], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 16}}, {"id": 605, "type": "identifier", "text": "setOrder", "parent": 604, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 10}}, {"id": 606, "type": "argument_list", "text": "(root)", "parent": 604, "children": [607], "start_point": {"row": 92, "column": 10}, "end_point": {"row": 92, "column": 16}}, {"id": 607, "type": "identifier", "text": "root", "parent": 606, "children": [], "start_point": {"row": 92, "column": 11}, "end_point": {"row": 92, "column": 15}}, {"id": 608, "type": "return_statement", "text": "return canInsert;", "parent": 0, "children": [609], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 18}}, {"id": 609, "type": "identifier", "text": "canInsert", "parent": 608, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 17}}, {"id": 610, "type": "binary_expression", "text": "template <class T>\r\nvoid BST<T>::print(ostream& out, element<T>* curr)", "parent": 0, "children": [611, 624, 625], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 98, "column": 50}}, {"id": 611, "type": "binary_expression", "text": "template <class T>\r\nvoid BST<T", "parent": 610, "children": [612, 620, 622, 623], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 98, "column": 10}}, {"id": 612, "type": "binary_expression", "text": "template <class T>\r\nvoid", "parent": 611, "children": [613, 616, 618, 619], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 98, "column": 4}}, {"id": 613, "type": "binary_expression", "text": "template <class", "parent": 612, "children": [614, 615], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 15}}, {"id": 614, "type": "identifier", "text": "template", "parent": 613, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 8}}, {"id": 615, "type": "<", "text": "<", "parent": 613, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 10}}, {"id": 616, "type": "ERROR", "text": "T", "parent": 612, "children": [617], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 17}}, {"id": 617, "type": "identifier", "text": "T", "parent": 616, "children": [], "start_point": {"row": 97, "column": 16}, "end_point": {"row": 97, "column": 17}}, {"id": 618, "type": ">", "text": ">", "parent": 612, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 18}}, {"id": 619, "type": "identifier", "text": "void", "parent": 612, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 4}}, {"id": 620, "type": "ERROR", "text": "BST", "parent": 611, "children": [621], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 8}}, {"id": 621, "type": "identifier", "text": "BST", "parent": 620, "children": [], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 8}}, {"id": 622, "type": "<", "text": "<", "parent": 611, "children": [], "start_point": {"row": 98, "column": 8}, "end_point": {"row": 98, "column": 9}}, {"id": 623, "type": "identifier", "text": "T", "parent": 611, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 624, "type": ">", "text": ">", "parent": 610, "children": [], "start_point": {"row": 98, "column": 10}, "end_point": {"row": 98, "column": 11}}, {"id": 625, "type": "call_expression", "text": "print(ostream& out, element<T>* curr)", "parent": 610, "children": [626, 627], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 50}}, {"id": 626, "type": "identifier", "text": "print", "parent": 625, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 18}}, {"id": 627, "type": "argument_list", "text": "(ostream& out, element<T>* curr)", "parent": 625, "children": [628, 631], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 50}}, {"id": 628, "type": "binary_expression", "text": "ostream& out", "parent": 627, "children": [629, 630], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 31}}, {"id": 629, "type": "identifier", "text": "ostream", "parent": 628, "children": [], "start_point": {"row": 98, "column": 19}, "end_point": {"row": 98, "column": 26}}, {"id": 630, "type": "identifier", "text": "out", "parent": 628, "children": [], "start_point": {"row": 98, "column": 28}, "end_point": {"row": 98, "column": 31}}, {"id": 631, "type": "binary_expression", "text": "element<T>* curr", "parent": 627, "children": [632, 636, 637], "start_point": {"row": 98, "column": 33}, "end_point": {"row": 98, "column": 49}}, {"id": 632, "type": "binary_expression", "text": "element<T", "parent": 631, "children": [633, 634, 635], "start_point": {"row": 98, "column": 33}, "end_point": {"row": 98, "column": 42}}, {"id": 633, "type": "identifier", "text": "element", "parent": 632, "children": [], "start_point": {"row": 98, "column": 33}, "end_point": {"row": 98, "column": 40}}, {"id": 634, "type": "<", "text": "<", "parent": 632, "children": [], "start_point": {"row": 98, "column": 40}, "end_point": {"row": 98, "column": 41}}, {"id": 635, "type": "identifier", "text": "T", "parent": 632, "children": [], "start_point": {"row": 98, "column": 41}, "end_point": {"row": 98, "column": 42}}, {"id": 636, "type": ">", "text": ">", "parent": 631, "children": [], "start_point": {"row": 98, "column": 42}, "end_point": {"row": 98, "column": 43}}, {"id": 637, "type": "pointer_expression", "text": "* curr", "parent": 631, "children": [638, 639], "start_point": {"row": 98, "column": 43}, "end_point": {"row": 98, "column": 49}}, {"id": 638, "type": "*", "text": "*", "parent": 637, "children": [], "start_point": {"row": 98, "column": 43}, "end_point": {"row": 98, "column": 44}}, {"id": 639, "type": "identifier", "text": "curr", "parent": 637, "children": [], "start_point": {"row": 98, "column": 45}, "end_point": {"row": 98, "column": 49}}, {"id": 640, "type": "if_statement", "text": "if (curr != NULL)\r\n\t{\r\n\t\tprint(out, curr->right());\r\n\t\tout << curr->getOrder() << \": \" << curr->getNode()->thing.getName() << endl;\r\n\t\tprint(out, curr ->left());\r\n\t}", "parent": 0, "children": [641], "start_point": {"row": 100, "column": 1}, "end_point": {"row": 105, "column": 2}}, {"id": 641, "type": "parenthesized_expression", "text": "(curr != NULL)", "parent": 640, "children": [642], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 18}}, {"id": 642, "type": "binary_expression", "text": "curr != NULL", "parent": 641, "children": [643, 644, 645], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 17}}, {"id": 643, "type": "identifier", "text": "curr", "parent": 642, "children": [], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 9}}, {"id": 644, "type": "!=", "text": "!=", "parent": 642, "children": [], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 12}}, {"id": 645, "type": "null", "text": "NULL", "parent": 642, "children": [646], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 17}}, {"id": 646, "type": "NULL", "text": "NULL", "parent": 645, "children": [], "start_point": {"row": 100, "column": 13}, "end_point": {"row": 100, "column": 17}}, {"id": 647, "type": "call_expression", "text": "print(out, curr->right())", "parent": 640, "children": [648, 649], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 27}}, {"id": 648, "type": "identifier", "text": "print", "parent": 647, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 7}}, {"id": 649, "type": "argument_list", "text": "(out, curr->right())", "parent": 647, "children": [650, 651], "start_point": {"row": 102, "column": 7}, "end_point": {"row": 102, "column": 27}}, {"id": 650, "type": "identifier", "text": "out", "parent": 649, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 11}}, {"id": 651, "type": "call_expression", "text": "curr->right()", "parent": 649, "children": [652, 655], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 26}}, {"id": 652, "type": "field_expression", "text": "curr->right", "parent": 651, "children": [653, 654], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 24}}, {"id": 653, "type": "identifier", "text": "curr", "parent": 652, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 17}}, {"id": 654, "type": "field_identifier", "text": "right", "parent": 652, "children": [], "start_point": {"row": 102, "column": 19}, "end_point": {"row": 102, "column": 24}}, {"id": 655, "type": "argument_list", "text": "()", "parent": 651, "children": [], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 26}}, {"id": 656, "type": "binary_expression", "text": "out << curr->getOrder() << \": \" << curr->getNode()->thing.getName() << endl", "parent": 640, "children": [657, 681, 682], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 77}}, {"id": 657, "type": "binary_expression", "text": "out << curr->getOrder() << \": \" << curr->getNode()->thing.getName()", "parent": 656, "children": [658, 669, 670], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 69}}, {"id": 658, "type": "binary_expression", "text": "out << curr->getOrder() << \": \"", "parent": 657, "children": [659, 667, 668], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 33}}, {"id": 659, "type": "binary_expression", "text": "out << curr->getOrder()", "parent": 658, "children": [660, 661, 662], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 25}}, {"id": 660, "type": "identifier", "text": "out", "parent": 659, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 5}}, {"id": 661, "type": "<<", "text": "<<", "parent": 659, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 8}}, {"id": 662, "type": "call_expression", "text": "curr->getOrder()", "parent": 659, "children": [663, 666], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 25}}, {"id": 663, "type": "field_expression", "text": "curr->getOrder", "parent": 662, "children": [664, 665], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 23}}, {"id": 664, "type": "identifier", "text": "curr", "parent": 663, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 13}}, {"id": 665, "type": "field_identifier", "text": "getOrder", "parent": 663, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 23}}, {"id": 666, "type": "argument_list", "text": "()", "parent": 662, "children": [], "start_point": {"row": 103, "column": 23}, "end_point": {"row": 103, "column": 25}}, {"id": 667, "type": "<<", "text": "<<", "parent": 658, "children": [], "start_point": {"row": 103, "column": 26}, "end_point": {"row": 103, "column": 28}}, {"id": 668, "type": "string_literal", "text": "\": \"", "parent": 658, "children": [], "start_point": {"row": 103, "column": 29}, "end_point": {"row": 103, "column": 33}}, {"id": 669, "type": "<<", "text": "<<", "parent": 657, "children": [], "start_point": {"row": 103, "column": 34}, "end_point": {"row": 103, "column": 36}}, {"id": 670, "type": "call_expression", "text": "curr->getNode()->thing.getName()", "parent": 657, "children": [671, 680], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 69}}, {"id": 671, "type": "field_expression", "text": "curr->getNode()->thing.getName", "parent": 670, "children": [672, 679], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 67}}, {"id": 672, "type": "field_expression", "text": "curr->getNode()->thing", "parent": 671, "children": [673, 678], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 59}}, {"id": 673, "type": "call_expression", "text": "curr->getNode()", "parent": 672, "children": [674, 677], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 52}}, {"id": 674, "type": "field_expression", "text": "curr->getNode", "parent": 673, "children": [675, 676], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 50}}, {"id": 675, "type": "identifier", "text": "curr", "parent": 674, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 41}}, {"id": 676, "type": "field_identifier", "text": "getNode", "parent": 674, "children": [], "start_point": {"row": 103, "column": 43}, "end_point": {"row": 103, "column": 50}}, {"id": 677, "type": "argument_list", "text": "()", "parent": 673, "children": [], "start_point": {"row": 103, "column": 50}, "end_point": {"row": 103, "column": 52}}, {"id": 678, "type": "field_identifier", "text": "thing", "parent": 672, "children": [], "start_point": {"row": 103, "column": 54}, "end_point": {"row": 103, "column": 59}}, {"id": 679, "type": "field_identifier", "text": "getName", "parent": 671, "children": [], "start_point": {"row": 103, "column": 60}, "end_point": {"row": 103, "column": 67}}, {"id": 680, "type": "argument_list", "text": "()", "parent": 670, "children": [], "start_point": {"row": 103, "column": 67}, "end_point": {"row": 103, "column": 69}}, {"id": 681, "type": "<<", "text": "<<", "parent": 656, "children": [], "start_point": {"row": 103, "column": 70}, "end_point": {"row": 103, "column": 72}}, {"id": 682, "type": "identifier", "text": "endl", "parent": 656, "children": [], "start_point": {"row": 103, "column": 73}, "end_point": {"row": 103, "column": 77}}, {"id": 683, "type": "call_expression", "text": "print(out, curr ->left())", "parent": 640, "children": [684, 685], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 27}}, {"id": 684, "type": "identifier", "text": "print", "parent": 683, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 7}}, {"id": 685, "type": "argument_list", "text": "(out, curr ->left())", "parent": 683, "children": [686, 687], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 27}}, {"id": 686, "type": "identifier", "text": "out", "parent": 685, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 11}}, {"id": 687, "type": "call_expression", "text": "curr ->left()", "parent": 685, "children": [688, 691], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 26}}, {"id": 688, "type": "field_expression", "text": "curr ->left", "parent": 687, "children": [689, 690], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 24}}, {"id": 689, "type": "identifier", "text": "curr", "parent": 688, "children": [], "start_point": {"row": 104, "column": 13}, "end_point": {"row": 104, "column": 17}}, {"id": 690, "type": "field_identifier", "text": "left", "parent": 688, "children": [], "start_point": {"row": 104, "column": 20}, "end_point": {"row": 104, "column": 24}}, {"id": 691, "type": "argument_list", "text": "()", "parent": 687, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 26}}, {"id": 692, "type": "binary_expression", "text": "template <class T>\r\nvoid BST<T>::setOrder(element<T>* curr)", "parent": 0, "children": [693, 706, 707], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 109, "column": 39}}, {"id": 693, "type": "binary_expression", "text": "template <class T>\r\nvoid BST<T", "parent": 692, "children": [694, 702, 704, 705], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 109, "column": 10}}, {"id": 694, "type": "binary_expression", "text": "template <class T>\r\nvoid", "parent": 693, "children": [695, 698, 700, 701], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 109, "column": 4}}, {"id": 695, "type": "binary_expression", "text": "template <class", "parent": 694, "children": [696, 697], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 15}}, {"id": 696, "type": "identifier", "text": "template", "parent": 695, "children": [], "start_point": {"row": 108, "column": 0}, "end_point": {"row": 108, "column": 8}}, {"id": 697, "type": "<", "text": "<", "parent": 695, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 10}}, {"id": 698, "type": "ERROR", "text": "T", "parent": 694, "children": [699], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 17}}, {"id": 699, "type": "identifier", "text": "T", "parent": 698, "children": [], "start_point": {"row": 108, "column": 16}, "end_point": {"row": 108, "column": 17}}, {"id": 700, "type": ">", "text": ">", "parent": 694, "children": [], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 18}}, {"id": 701, "type": "identifier", "text": "void", "parent": 694, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 4}}, {"id": 702, "type": "ERROR", "text": "BST", "parent": 693, "children": [703], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 8}}, {"id": 703, "type": "identifier", "text": "BST", "parent": 702, "children": [], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 8}}, {"id": 704, "type": "<", "text": "<", "parent": 693, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 9}}, {"id": 705, "type": "identifier", "text": "T", "parent": 693, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 10}}, {"id": 706, "type": ">", "text": ">", "parent": 692, "children": [], "start_point": {"row": 109, "column": 10}, "end_point": {"row": 109, "column": 11}}, {"id": 707, "type": "call_expression", "text": "setOrder(element<T>* curr)", "parent": 692, "children": [708, 709], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 39}}, {"id": 708, "type": "identifier", "text": "setOrder", "parent": 707, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 21}}, {"id": 709, "type": "argument_list", "text": "(element<T>* curr)", "parent": 707, "children": [710], "start_point": {"row": 109, "column": 21}, "end_point": {"row": 109, "column": 39}}, {"id": 710, "type": "binary_expression", "text": "element<T>* curr", "parent": 709, "children": [711, 715, 716], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 38}}, {"id": 711, "type": "binary_expression", "text": "element<T", "parent": 710, "children": [712, 713, 714], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 31}}, {"id": 712, "type": "identifier", "text": "element", "parent": 711, "children": [], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 29}}, {"id": 713, "type": "<", "text": "<", "parent": 711, "children": [], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 30}}, {"id": 714, "type": "identifier", "text": "T", "parent": 711, "children": [], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 31}}, {"id": 715, "type": ">", "text": ">", "parent": 710, "children": [], "start_point": {"row": 109, "column": 31}, "end_point": {"row": 109, "column": 32}}, {"id": 716, "type": "pointer_expression", "text": "* curr", "parent": 710, "children": [717, 718], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 38}}, {"id": 717, "type": "*", "text": "*", "parent": 716, "children": [], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 109, "column": 33}}, {"id": 718, "type": "identifier", "text": "curr", "parent": 716, "children": [], "start_point": {"row": 109, "column": 34}, "end_point": {"row": 109, "column": 38}}, {"id": 719, "type": "if_statement", "text": "if (curr != NULL)\r\n\t{\r\n\t\tsetOrder(curr->right());\r\n\t\tcurr->setOrder(++order);\r\n\t\tsetOrder(curr->left());\r\n\t}", "parent": 0, "children": [720], "start_point": {"row": 111, "column": 1}, "end_point": {"row": 116, "column": 2}}, {"id": 720, "type": "parenthesized_expression", "text": "(curr != NULL)", "parent": 719, "children": [721], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 18}}, {"id": 721, "type": "binary_expression", "text": "curr != NULL", "parent": 720, "children": [722, 723, 724], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 17}}, {"id": 722, "type": "identifier", "text": "curr", "parent": 721, "children": [], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 9}}, {"id": 723, "type": "!=", "text": "!=", "parent": 721, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 12}}, {"id": 724, "type": "null", "text": "NULL", "parent": 721, "children": [725], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 17}}, {"id": 725, "type": "NULL", "text": "NULL", "parent": 724, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 17}}, {"id": 726, "type": "call_expression", "text": "setOrder(curr->right())", "parent": 719, "children": [727, 728], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 25}}, {"id": 727, "type": "identifier", "text": "setOrder", "parent": 726, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 10}}, {"id": 728, "type": "argument_list", "text": "(curr->right())", "parent": 726, "children": [729], "start_point": {"row": 113, "column": 10}, "end_point": {"row": 113, "column": 25}}, {"id": 729, "type": "call_expression", "text": "curr->right()", "parent": 728, "children": [730, 733], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 24}}, {"id": 730, "type": "field_expression", "text": "curr->right", "parent": 729, "children": [731, 732], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 22}}, {"id": 731, "type": "identifier", "text": "curr", "parent": 730, "children": [], "start_point": {"row": 113, "column": 11}, "end_point": {"row": 113, "column": 15}}, {"id": 732, "type": "field_identifier", "text": "right", "parent": 730, "children": [], "start_point": {"row": 113, "column": 17}, "end_point": {"row": 113, "column": 22}}, {"id": 733, "type": "argument_list", "text": "()", "parent": 729, "children": [], "start_point": {"row": 113, "column": 22}, "end_point": {"row": 113, "column": 24}}, {"id": 734, "type": "call_expression", "text": "curr->setOrder(++order)", "parent": 719, "children": [735, 738], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 25}}, {"id": 735, "type": "field_expression", "text": "curr->setOrder", "parent": 734, "children": [736, 737], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 16}}, {"id": 736, "type": "identifier", "text": "curr", "parent": 735, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 6}}, {"id": 737, "type": "field_identifier", "text": "setOrder", "parent": 735, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 16}}, {"id": 738, "type": "argument_list", "text": "(++order)", "parent": 734, "children": [739], "start_point": {"row": 114, "column": 16}, "end_point": {"row": 114, "column": 25}}, {"id": 739, "type": "update_expression", "text": "++order", "parent": 738, "children": [740, 741], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 24}}, {"id": 740, "type": "++", "text": "++", "parent": 739, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 19}}, {"id": 741, "type": "identifier", "text": "order", "parent": 739, "children": [], "start_point": {"row": 114, "column": 19}, "end_point": {"row": 114, "column": 24}}, {"id": 742, "type": "call_expression", "text": "setOrder(curr->left())", "parent": 719, "children": [743, 744], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 24}}, {"id": 743, "type": "identifier", "text": "setOrder", "parent": 742, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 10}}, {"id": 744, "type": "argument_list", "text": "(curr->left())", "parent": 742, "children": [745], "start_point": {"row": 115, "column": 10}, "end_point": {"row": 115, "column": 24}}, {"id": 745, "type": "call_expression", "text": "curr->left()", "parent": 744, "children": [746, 749], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 23}}, {"id": 746, "type": "field_expression", "text": "curr->left", "parent": 745, "children": [747, 748], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 21}}, {"id": 747, "type": "identifier", "text": "curr", "parent": 746, "children": [], "start_point": {"row": 115, "column": 11}, "end_point": {"row": 115, "column": 15}}, {"id": 748, "type": "field_identifier", "text": "left", "parent": 746, "children": [], "start_point": {"row": 115, "column": 17}, "end_point": {"row": 115, "column": 21}}, {"id": 749, "type": "argument_list", "text": "()", "parent": 745, "children": [], "start_point": {"row": 115, "column": 21}, "end_point": {"row": 115, "column": 23}}, {"id": 750, "type": "binary_expression", "text": "template <class T>\r\nvoid BST<T>::deleteTree(element<T>* curr)", "parent": 0, "children": [751, 764, 765], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 119, "column": 42}}, {"id": 751, "type": "binary_expression", "text": "template <class T>\r\nvoid BST<T", "parent": 750, "children": [752, 760, 762, 763], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 119, "column": 10}}, {"id": 752, "type": "binary_expression", "text": "template <class T>\r\nvoid", "parent": 751, "children": [753, 756, 758, 759], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 119, "column": 4}}, {"id": 753, "type": "binary_expression", "text": "template <class", "parent": 752, "children": [754, 755], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 15}}, {"id": 754, "type": "identifier", "text": "template", "parent": 753, "children": [], "start_point": {"row": 118, "column": 0}, "end_point": {"row": 118, "column": 8}}, {"id": 755, "type": "<", "text": "<", "parent": 753, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 10}}, {"id": 756, "type": "ERROR", "text": "T", "parent": 752, "children": [757], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 17}}, {"id": 757, "type": "identifier", "text": "T", "parent": 756, "children": [], "start_point": {"row": 118, "column": 16}, "end_point": {"row": 118, "column": 17}}, {"id": 758, "type": ">", "text": ">", "parent": 752, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 18}}, {"id": 759, "type": "identifier", "text": "void", "parent": 752, "children": [], "start_point": {"row": 119, "column": 0}, "end_point": {"row": 119, "column": 4}}, {"id": 760, "type": "ERROR", "text": "BST", "parent": 751, "children": [761], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 8}}, {"id": 761, "type": "identifier", "text": "BST", "parent": 760, "children": [], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 8}}, {"id": 762, "type": "<", "text": "<", "parent": 751, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 9}}, {"id": 763, "type": "identifier", "text": "T", "parent": 751, "children": [], "start_point": {"row": 119, "column": 9}, "end_point": {"row": 119, "column": 10}}, {"id": 764, "type": ">", "text": ">", "parent": 750, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 11}}, {"id": 765, "type": "call_expression", "text": "deleteTree(element<T>* curr)", "parent": 750, "children": [766, 767], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 42}}, {"id": 766, "type": "identifier", "text": "deleteTree", "parent": 765, "children": [], "start_point": {"row": 119, "column": 13}, "end_point": {"row": 119, "column": 23}}, {"id": 767, "type": "argument_list", "text": "(element<T>* curr)", "parent": 765, "children": [768], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 42}}, {"id": 768, "type": "binary_expression", "text": "element<T>* curr", "parent": 767, "children": [769, 773, 774], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 41}}, {"id": 769, "type": "binary_expression", "text": "element<T", "parent": 768, "children": [770, 771, 772], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 33}}, {"id": 770, "type": "identifier", "text": "element", "parent": 769, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 31}}, {"id": 771, "type": "<", "text": "<", "parent": 769, "children": [], "start_point": {"row": 119, "column": 31}, "end_point": {"row": 119, "column": 32}}, {"id": 772, "type": "identifier", "text": "T", "parent": 769, "children": [], "start_point": {"row": 119, "column": 32}, "end_point": {"row": 119, "column": 33}}, {"id": 773, "type": ">", "text": ">", "parent": 768, "children": [], "start_point": {"row": 119, "column": 33}, "end_point": {"row": 119, "column": 34}}, {"id": 774, "type": "pointer_expression", "text": "* curr", "parent": 768, "children": [775, 776], "start_point": {"row": 119, "column": 34}, "end_point": {"row": 119, "column": 41}}, {"id": 775, "type": "*", "text": "*", "parent": 774, "children": [], "start_point": {"row": 119, "column": 34}, "end_point": {"row": 119, "column": 35}}, {"id": 776, "type": "identifier", "text": "curr", "parent": 774, "children": [], "start_point": {"row": 119, "column": 37}, "end_point": {"row": 119, "column": 41}}, {"id": 777, "type": "if_statement", "text": "if (curr != NULL)\r\n\t{\r\n\t\tdeleteTree(curr->left());\r\n\t\tdeleteTree(curr->right());\r\n\t\tdelete curr;\r\n\t\tcurr = NULL;\r\n\t\torder = 0;\r\n\t}", "parent": 0, "children": [778], "start_point": {"row": 121, "column": 1}, "end_point": {"row": 128, "column": 2}}, {"id": 778, "type": "parenthesized_expression", "text": "(curr != NULL)", "parent": 777, "children": [779], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 18}}, {"id": 779, "type": "binary_expression", "text": "curr != NULL", "parent": 778, "children": [780, 781, 782], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 17}}, {"id": 780, "type": "identifier", "text": "curr", "parent": 779, "children": [], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 9}}, {"id": 781, "type": "!=", "text": "!=", "parent": 779, "children": [], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 12}}, {"id": 782, "type": "null", "text": "NULL", "parent": 779, "children": [783], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 17}}, {"id": 783, "type": "NULL", "text": "NULL", "parent": 782, "children": [], "start_point": {"row": 121, "column": 13}, "end_point": {"row": 121, "column": 17}}, {"id": 784, "type": "call_expression", "text": "deleteTree(curr->left())", "parent": 777, "children": [785, 786], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 26}}, {"id": 785, "type": "identifier", "text": "deleteTree", "parent": 784, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 12}}, {"id": 786, "type": "argument_list", "text": "(curr->left())", "parent": 784, "children": [787], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 26}}, {"id": 787, "type": "call_expression", "text": "curr->left()", "parent": 786, "children": [788, 791], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 25}}, {"id": 788, "type": "field_expression", "text": "curr->left", "parent": 787, "children": [789, 790], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 23}}, {"id": 789, "type": "identifier", "text": "curr", "parent": 788, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 17}}, {"id": 790, "type": "field_identifier", "text": "left", "parent": 788, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 23}}, {"id": 791, "type": "argument_list", "text": "()", "parent": 787, "children": [], "start_point": {"row": 123, "column": 23}, "end_point": {"row": 123, "column": 25}}, {"id": 792, "type": "call_expression", "text": "deleteTree(curr->right())", "parent": 777, "children": [793, 794], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 27}}, {"id": 793, "type": "identifier", "text": "deleteTree", "parent": 792, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 12}}, {"id": 794, "type": "argument_list", "text": "(curr->right())", "parent": 792, "children": [795], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 27}}, {"id": 795, "type": "call_expression", "text": "curr->right()", "parent": 794, "children": [796, 799], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 26}}, {"id": 796, "type": "field_expression", "text": "curr->right", "parent": 795, "children": [797, 798], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 24}}, {"id": 797, "type": "identifier", "text": "curr", "parent": 796, "children": [], "start_point": {"row": 124, "column": 13}, "end_point": {"row": 124, "column": 17}}, {"id": 798, "type": "field_identifier", "text": "right", "parent": 796, "children": [], "start_point": {"row": 124, "column": 19}, "end_point": {"row": 124, "column": 24}}, {"id": 799, "type": "argument_list", "text": "()", "parent": 795, "children": [], "start_point": {"row": 124, "column": 24}, "end_point": {"row": 124, "column": 26}}, {"id": 800, "type": "declaration", "text": "delete curr;", "parent": 777, "children": [801], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 14}}, {"id": 801, "type": "identifier", "text": "curr", "parent": 800, "children": [], "start_point": {"row": 125, "column": 9}, "end_point": {"row": 125, "column": 13}}, {"id": 802, "type": "assignment_expression", "text": "curr = NULL", "parent": 777, "children": [803, 804, 805], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 13}}, {"id": 803, "type": "identifier", "text": "curr", "parent": 802, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 6}}, {"id": 804, "type": "=", "text": "=", "parent": 802, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 8}}, {"id": 805, "type": "null", "text": "NULL", "parent": 802, "children": [806], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 13}}, {"id": 806, "type": "NULL", "text": "NULL", "parent": 805, "children": [], "start_point": {"row": 126, "column": 9}, "end_point": {"row": 126, "column": 13}}, {"id": 807, "type": "assignment_expression", "text": "order = 0", "parent": 777, "children": [808, 809, 810], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 11}}, {"id": 808, "type": "identifier", "text": "order", "parent": 807, "children": [], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 7}}, {"id": 809, "type": "=", "text": "=", "parent": 807, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 9}}, {"id": 810, "type": "number_literal", "text": "0", "parent": 807, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 11}}, {"id": 811, "type": "binary_expression", "text": "template <class T>\r\nelement<T> * BST<T>::searchOrder(int listOrder, element<T> * curr)", "parent": 0, "children": [812, 831, 832], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 66}}, {"id": 812, "type": "binary_expression", "text": "template <class T>\r\nelement<T> * BST<T", "parent": 811, "children": [813, 829, 830], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 18}}, {"id": 813, "type": "binary_expression", "text": "template <class T>\r\nelement<T> * BST", "parent": 812, "children": [814, 825, 826], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 16}}, {"id": 814, "type": "binary_expression", "text": "template <class T>\r\nelement<T", "parent": 813, "children": [815, 823, 824], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 9}}, {"id": 815, "type": "binary_expression", "text": "template <class T>\r\nelement", "parent": 814, "children": [816, 819, 821, 822], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 7}}, {"id": 816, "type": "binary_expression", "text": "template <class", "parent": 815, "children": [817, 818], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 15}}, {"id": 817, "type": "identifier", "text": "template", "parent": 816, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 8}}, {"id": 818, "type": "<", "text": "<", "parent": 816, "children": [], "start_point": {"row": 131, "column": 9}, "end_point": {"row": 131, "column": 10}}, {"id": 819, "type": "ERROR", "text": "T", "parent": 815, "children": [820], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 17}}, {"id": 820, "type": "identifier", "text": "T", "parent": 819, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 17}}, {"id": 821, "type": ">", "text": ">", "parent": 815, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 18}}, {"id": 822, "type": "identifier", "text": "element", "parent": 815, "children": [], "start_point": {"row": 132, "column": 0}, "end_point": {"row": 132, "column": 7}}, {"id": 823, "type": "<", "text": "<", "parent": 814, "children": [], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 132, "column": 8}}, {"id": 824, "type": "identifier", "text": "T", "parent": 814, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 9}}, {"id": 825, "type": ">", "text": ">", "parent": 813, "children": [], "start_point": {"row": 132, "column": 9}, "end_point": {"row": 132, "column": 10}}, {"id": 826, "type": "pointer_expression", "text": "* BST", "parent": 813, "children": [827, 828], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 16}}, {"id": 827, "type": "*", "text": "*", "parent": 826, "children": [], "start_point": {"row": 132, "column": 11}, "end_point": {"row": 132, "column": 12}}, {"id": 828, "type": "identifier", "text": "BST", "parent": 826, "children": [], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 16}}, {"id": 829, "type": "<", "text": "<", "parent": 812, "children": [], "start_point": {"row": 132, "column": 16}, "end_point": {"row": 132, "column": 17}}, {"id": 830, "type": "identifier", "text": "T", "parent": 812, "children": [], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 18}}, {"id": 831, "type": ">", "text": ">", "parent": 811, "children": [], "start_point": {"row": 132, "column": 18}, "end_point": {"row": 132, "column": 19}}, {"id": 832, "type": "call_expression", "text": "searchOrder(int listOrder, element<T> * curr)", "parent": 811, "children": [833, 834], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 66}}, {"id": 833, "type": "identifier", "text": "searchOrder", "parent": 832, "children": [], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 32}}, {"id": 834, "type": "argument_list", "text": "(int listOrder, element<T> * curr)", "parent": 832, "children": [835, 837, 838], "start_point": {"row": 132, "column": 32}, "end_point": {"row": 132, "column": 66}}, {"id": 835, "type": "ERROR", "text": "int", "parent": 834, "children": [836], "start_point": {"row": 132, "column": 33}, "end_point": {"row": 132, "column": 36}}, {"id": 836, "type": "identifier", "text": "int", "parent": 835, "children": [], "start_point": {"row": 132, "column": 33}, "end_point": {"row": 132, "column": 36}}, {"id": 837, "type": "identifier", "text": "listOrder", "parent": 834, "children": [], "start_point": {"row": 132, "column": 37}, "end_point": {"row": 132, "column": 46}}, {"id": 838, "type": "binary_expression", "text": "element<T> * curr", "parent": 834, "children": [839, 843, 844], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 65}}, {"id": 839, "type": "binary_expression", "text": "element<T", "parent": 838, "children": [840, 841, 842], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 57}}, {"id": 840, "type": "identifier", "text": "element", "parent": 839, "children": [], "start_point": {"row": 132, "column": 48}, "end_point": {"row": 132, "column": 55}}, {"id": 841, "type": "<", "text": "<", "parent": 839, "children": [], "start_point": {"row": 132, "column": 55}, "end_point": {"row": 132, "column": 56}}, {"id": 842, "type": "identifier", "text": "T", "parent": 839, "children": [], "start_point": {"row": 132, "column": 56}, "end_point": {"row": 132, "column": 57}}, {"id": 843, "type": ">", "text": ">", "parent": 838, "children": [], "start_point": {"row": 132, "column": 57}, "end_point": {"row": 132, "column": 58}}, {"id": 844, "type": "pointer_expression", "text": "* curr", "parent": 838, "children": [845, 846], "start_point": {"row": 132, "column": 59}, "end_point": {"row": 132, "column": 65}}, {"id": 845, "type": "*", "text": "*", "parent": 844, "children": [], "start_point": {"row": 132, "column": 59}, "end_point": {"row": 132, "column": 60}}, {"id": 846, "type": "identifier", "text": "curr", "parent": 844, "children": [], "start_point": {"row": 132, "column": 61}, "end_point": {"row": 132, "column": 65}}, {"id": 847, "type": "if_statement", "text": "if (listOrder == curr->getOrder())\r\n\t\treturn curr;\r\n\telse if (listOrder < curr->getOrder())\r\n\t{\r\n\t\tif (curr->right() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->right());\r\n\t}\r\n\telse if (listOrder > curr->getOrder())\r\n\t{\r\n\t\tif (curr->left() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->left());\r\n\t}", "parent": 0, "children": [848, 857, 859], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 149, "column": 2}}, {"id": 848, "type": "parenthesized_expression", "text": "(listOrder == curr->getOrder())", "parent": 847, "children": [849], "start_point": {"row": 134, "column": 4}, "end_point": {"row": 134, "column": 35}}, {"id": 849, "type": "binary_expression", "text": "listOrder == curr->getOrder()", "parent": 848, "children": [850, 851, 852], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 34}}, {"id": 850, "type": "identifier", "text": "listOrder", "parent": 849, "children": [], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 14}}, {"id": 851, "type": "==", "text": "==", "parent": 849, "children": [], "start_point": {"row": 134, "column": 15}, "end_point": {"row": 134, "column": 17}}, {"id": 852, "type": "call_expression", "text": "curr->getOrder()", "parent": 849, "children": [853, 856], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 34}}, {"id": 853, "type": "field_expression", "text": "curr->getOrder", "parent": 852, "children": [854, 855], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 32}}, {"id": 854, "type": "identifier", "text": "curr", "parent": 853, "children": [], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 22}}, {"id": 855, "type": "field_identifier", "text": "getOrder", "parent": 853, "children": [], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 32}}, {"id": 856, "type": "argument_list", "text": "()", "parent": 852, "children": [], "start_point": {"row": 134, "column": 32}, "end_point": {"row": 134, "column": 34}}, {"id": 857, "type": "return_statement", "text": "return curr;", "parent": 847, "children": [858], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 14}}, {"id": 858, "type": "identifier", "text": "curr", "parent": 857, "children": [], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 13}}, {"id": 859, "type": "else_clause", "text": "else if (listOrder < curr->getOrder())\r\n\t{\r\n\t\tif (curr->right() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->right());\r\n\t}\r\n\telse if (listOrder > curr->getOrder())\r\n\t{\r\n\t\tif (curr->left() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->left());\r\n\t}", "parent": 847, "children": [860], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 149, "column": 2}}, {"id": 860, "type": "if_statement", "text": "if (listOrder < curr->getOrder())\r\n\t{\r\n\t\tif (curr->right() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->right());\r\n\t}\r\n\telse if (listOrder > curr->getOrder())\r\n\t{\r\n\t\tif (curr->left() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->left());\r\n\t}", "parent": 859, "children": [861, 895], "start_point": {"row": 136, "column": 6}, "end_point": {"row": 149, "column": 2}}, {"id": 861, "type": "parenthesized_expression", "text": "(listOrder < curr->getOrder())", "parent": 860, "children": [862], "start_point": {"row": 136, "column": 9}, "end_point": {"row": 136, "column": 39}}, {"id": 862, "type": "binary_expression", "text": "listOrder < curr->getOrder()", "parent": 861, "children": [863, 864, 865], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 38}}, {"id": 863, "type": "identifier", "text": "listOrder", "parent": 862, "children": [], "start_point": {"row": 136, "column": 10}, "end_point": {"row": 136, "column": 19}}, {"id": 864, "type": "<", "text": "<", "parent": 862, "children": [], "start_point": {"row": 136, "column": 20}, "end_point": {"row": 136, "column": 21}}, {"id": 865, "type": "call_expression", "text": "curr->getOrder()", "parent": 862, "children": [866, 869], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 38}}, {"id": 866, "type": "field_expression", "text": "curr->getOrder", "parent": 865, "children": [867, 868], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 36}}, {"id": 867, "type": "identifier", "text": "curr", "parent": 866, "children": [], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 26}}, {"id": 868, "type": "field_identifier", "text": "getOrder", "parent": 866, "children": [], "start_point": {"row": 136, "column": 28}, "end_point": {"row": 136, "column": 36}}, {"id": 869, "type": "argument_list", "text": "()", "parent": 865, "children": [], "start_point": {"row": 136, "column": 36}, "end_point": {"row": 136, "column": 38}}, {"id": 870, "type": "if_statement", "text": "if (curr->right() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->right());", "parent": 860, "children": [871, 881, 884], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 141, "column": 48}}, {"id": 871, "type": "parenthesized_expression", "text": "(curr->right() == NULL)", "parent": 870, "children": [872], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 28}}, {"id": 872, "type": "binary_expression", "text": "curr->right() == NULL", "parent": 871, "children": [873, 878, 879], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 27}}, {"id": 873, "type": "call_expression", "text": "curr->right()", "parent": 872, "children": [874, 877], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 19}}, {"id": 874, "type": "field_expression", "text": "curr->right", "parent": 873, "children": [875, 876], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 17}}, {"id": 875, "type": "identifier", "text": "curr", "parent": 874, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 10}}, {"id": 876, "type": "field_identifier", "text": "right", "parent": 874, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 17}}, {"id": 877, "type": "argument_list", "text": "()", "parent": 873, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 19}}, {"id": 878, "type": "==", "text": "==", "parent": 872, "children": [], "start_point": {"row": 138, "column": 20}, "end_point": {"row": 138, "column": 22}}, {"id": 879, "type": "null", "text": "NULL", "parent": 872, "children": [880], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 138, "column": 27}}, {"id": 880, "type": "NULL", "text": "NULL", "parent": 879, "children": [], "start_point": {"row": 138, "column": 23}, "end_point": {"row": 138, "column": 27}}, {"id": 881, "type": "return_statement", "text": "return NULL;", "parent": 870, "children": [882], "start_point": {"row": 139, "column": 3}, "end_point": {"row": 139, "column": 15}}, {"id": 882, "type": "null", "text": "NULL", "parent": 881, "children": [883], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 14}}, {"id": 883, "type": "NULL", "text": "NULL", "parent": 882, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 14}}, {"id": 884, "type": "else_clause", "text": "else\r\n\t\t\treturn searchOrder(listOrder, curr->right());", "parent": 870, "children": [885], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 141, "column": 48}}, {"id": 885, "type": "return_statement", "text": "return searchOrder(listOrder, curr->right());", "parent": 884, "children": [886], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 48}}, {"id": 886, "type": "call_expression", "text": "searchOrder(listOrder, curr->right())", "parent": 885, "children": [887, 888], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 47}}, {"id": 887, "type": "identifier", "text": "searchOrder", "parent": 886, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 21}}, {"id": 888, "type": "argument_list", "text": "(listOrder, curr->right())", "parent": 886, "children": [889, 890], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 47}}, {"id": 889, "type": "identifier", "text": "listOrder", "parent": 888, "children": [], "start_point": {"row": 141, "column": 22}, "end_point": {"row": 141, "column": 31}}, {"id": 890, "type": "call_expression", "text": "curr->right()", "parent": 888, "children": [891, 894], "start_point": {"row": 141, "column": 33}, "end_point": {"row": 141, "column": 46}}, {"id": 891, "type": "field_expression", "text": "curr->right", "parent": 890, "children": [892, 893], "start_point": {"row": 141, "column": 33}, "end_point": {"row": 141, "column": 44}}, {"id": 892, "type": "identifier", "text": "curr", "parent": 891, "children": [], "start_point": {"row": 141, "column": 33}, "end_point": {"row": 141, "column": 37}}, {"id": 893, "type": "field_identifier", "text": "right", "parent": 891, "children": [], "start_point": {"row": 141, "column": 39}, "end_point": {"row": 141, "column": 44}}, {"id": 894, "type": "argument_list", "text": "()", "parent": 890, "children": [], "start_point": {"row": 141, "column": 44}, "end_point": {"row": 141, "column": 46}}, {"id": 895, "type": "else_clause", "text": "else if (listOrder > curr->getOrder())\r\n\t{\r\n\t\tif (curr->left() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->left());\r\n\t}", "parent": 860, "children": [896], "start_point": {"row": 143, "column": 1}, "end_point": {"row": 149, "column": 2}}, {"id": 896, "type": "if_statement", "text": "if (listOrder > curr->getOrder())\r\n\t{\r\n\t\tif (curr->left() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->left());\r\n\t}", "parent": 895, "children": [897], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 149, "column": 2}}, {"id": 897, "type": "parenthesized_expression", "text": "(listOrder > curr->getOrder())", "parent": 896, "children": [898], "start_point": {"row": 143, "column": 9}, "end_point": {"row": 143, "column": 39}}, {"id": 898, "type": "binary_expression", "text": "listOrder > curr->getOrder()", "parent": 897, "children": [899, 900, 901], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 38}}, {"id": 899, "type": "identifier", "text": "listOrder", "parent": 898, "children": [], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 19}}, {"id": 900, "type": ">", "text": ">", "parent": 898, "children": [], "start_point": {"row": 143, "column": 20}, "end_point": {"row": 143, "column": 21}}, {"id": 901, "type": "call_expression", "text": "curr->getOrder()", "parent": 898, "children": [902, 905], "start_point": {"row": 143, "column": 22}, "end_point": {"row": 143, "column": 38}}, {"id": 902, "type": "field_expression", "text": "curr->getOrder", "parent": 901, "children": [903, 904], "start_point": {"row": 143, "column": 22}, "end_point": {"row": 143, "column": 36}}, {"id": 903, "type": "identifier", "text": "curr", "parent": 902, "children": [], "start_point": {"row": 143, "column": 22}, "end_point": {"row": 143, "column": 26}}, {"id": 904, "type": "field_identifier", "text": "getOrder", "parent": 902, "children": [], "start_point": {"row": 143, "column": 28}, "end_point": {"row": 143, "column": 36}}, {"id": 905, "type": "argument_list", "text": "()", "parent": 901, "children": [], "start_point": {"row": 143, "column": 36}, "end_point": {"row": 143, "column": 38}}, {"id": 906, "type": "if_statement", "text": "if (curr->left() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->left());", "parent": 896, "children": [907, 917, 920], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 148, "column": 47}}, {"id": 907, "type": "parenthesized_expression", "text": "(curr->left() == NULL)", "parent": 906, "children": [908], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 27}}, {"id": 908, "type": "binary_expression", "text": "curr->left() == NULL", "parent": 907, "children": [909, 914, 915], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 26}}, {"id": 909, "type": "call_expression", "text": "curr->left()", "parent": 908, "children": [910, 913], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 18}}, {"id": 910, "type": "field_expression", "text": "curr->left", "parent": 909, "children": [911, 912], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 16}}, {"id": 911, "type": "identifier", "text": "curr", "parent": 910, "children": [], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 10}}, {"id": 912, "type": "field_identifier", "text": "left", "parent": 910, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 16}}, {"id": 913, "type": "argument_list", "text": "()", "parent": 909, "children": [], "start_point": {"row": 145, "column": 16}, "end_point": {"row": 145, "column": 18}}, {"id": 914, "type": "==", "text": "==", "parent": 908, "children": [], "start_point": {"row": 145, "column": 19}, "end_point": {"row": 145, "column": 21}}, {"id": 915, "type": "null", "text": "NULL", "parent": 908, "children": [916], "start_point": {"row": 145, "column": 22}, "end_point": {"row": 145, "column": 26}}, {"id": 916, "type": "NULL", "text": "NULL", "parent": 915, "children": [], "start_point": {"row": 145, "column": 22}, "end_point": {"row": 145, "column": 26}}, {"id": 917, "type": "return_statement", "text": "return NULL;", "parent": 906, "children": [918], "start_point": {"row": 146, "column": 3}, "end_point": {"row": 146, "column": 15}}, {"id": 918, "type": "null", "text": "NULL", "parent": 917, "children": [919], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 14}}, {"id": 919, "type": "NULL", "text": "NULL", "parent": 918, "children": [], "start_point": {"row": 146, "column": 10}, "end_point": {"row": 146, "column": 14}}, {"id": 920, "type": "else_clause", "text": "else\r\n\t\t\treturn searchOrder(listOrder, curr->left());", "parent": 906, "children": [921], "start_point": {"row": 147, "column": 2}, "end_point": {"row": 148, "column": 47}}, {"id": 921, "type": "return_statement", "text": "return searchOrder(listOrder, curr->left());", "parent": 920, "children": [922], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 47}}, {"id": 922, "type": "call_expression", "text": "searchOrder(listOrder, curr->left())", "parent": 921, "children": [923, 924], "start_point": {"row": 148, "column": 10}, "end_point": {"row": 148, "column": 46}}, {"id": 923, "type": "identifier", "text": "searchOrder", "parent": 922, "children": [], "start_point": {"row": 148, "column": 10}, "end_point": {"row": 148, "column": 21}}, {"id": 924, "type": "argument_list", "text": "(listOrder, curr->left())", "parent": 922, "children": [925, 926], "start_point": {"row": 148, "column": 21}, "end_point": {"row": 148, "column": 46}}, {"id": 925, "type": "identifier", "text": "listOrder", "parent": 924, "children": [], "start_point": {"row": 148, "column": 22}, "end_point": {"row": 148, "column": 31}}, {"id": 926, "type": "call_expression", "text": "curr->left()", "parent": 924, "children": [927, 930], "start_point": {"row": 148, "column": 33}, "end_point": {"row": 148, "column": 45}}, {"id": 927, "type": "field_expression", "text": "curr->left", "parent": 926, "children": [928, 929], "start_point": {"row": 148, "column": 33}, "end_point": {"row": 148, "column": 43}}, {"id": 928, "type": "identifier", "text": "curr", "parent": 927, "children": [], "start_point": {"row": 148, "column": 33}, "end_point": {"row": 148, "column": 37}}, {"id": 929, "type": "field_identifier", "text": "left", "parent": 927, "children": [], "start_point": {"row": 148, "column": 39}, "end_point": {"row": 148, "column": 43}}, {"id": 930, "type": "argument_list", "text": "()", "parent": 926, "children": [], "start_point": {"row": 148, "column": 43}, "end_point": {"row": 148, "column": 45}}, {"id": 931, "type": "return_statement", "text": "return NULL;", "parent": 0, "children": [932], "start_point": {"row": 150, "column": 1}, "end_point": {"row": 150, "column": 13}}, {"id": 932, "type": "null", "text": "NULL", "parent": 931, "children": [933], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 12}}, {"id": 933, "type": "NULL", "text": "NULL", "parent": 932, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 12}}, {"id": 934, "type": "binary_expression", "text": "template <class T>\r\nnode<T>* BST<T>::getInput()", "parent": 0, "children": [935, 954, 955], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 155, "column": 27}}, {"id": 935, "type": "binary_expression", "text": "template <class T>\r\nnode<T>* BST<T", "parent": 934, "children": [936, 952, 953], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 155, "column": 14}}, {"id": 936, "type": "binary_expression", "text": "template <class T>\r\nnode<T>* BST", "parent": 935, "children": [937, 948, 949], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 155, "column": 12}}, {"id": 937, "type": "binary_expression", "text": "template <class T>\r\nnode<T", "parent": 936, "children": [938, 946, 947], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 155, "column": 6}}, {"id": 938, "type": "binary_expression", "text": "template <class T>\r\nnode", "parent": 937, "children": [939, 942, 944, 945], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 155, "column": 4}}, {"id": 939, "type": "binary_expression", "text": "template <class", "parent": 938, "children": [940, 941], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 15}}, {"id": 940, "type": "identifier", "text": "template", "parent": 939, "children": [], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 154, "column": 8}}, {"id": 941, "type": "<", "text": "<", "parent": 939, "children": [], "start_point": {"row": 154, "column": 9}, "end_point": {"row": 154, "column": 10}}, {"id": 942, "type": "ERROR", "text": "T", "parent": 938, "children": [943], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 17}}, {"id": 943, "type": "identifier", "text": "T", "parent": 942, "children": [], "start_point": {"row": 154, "column": 16}, "end_point": {"row": 154, "column": 17}}, {"id": 944, "type": ">", "text": ">", "parent": 938, "children": [], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 154, "column": 18}}, {"id": 945, "type": "identifier", "text": "node", "parent": 938, "children": [], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 155, "column": 4}}, {"id": 946, "type": "<", "text": "<", "parent": 937, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 5}}, {"id": 947, "type": "identifier", "text": "T", "parent": 937, "children": [], "start_point": {"row": 155, "column": 5}, "end_point": {"row": 155, "column": 6}}, {"id": 948, "type": ">", "text": ">", "parent": 936, "children": [], "start_point": {"row": 155, "column": 6}, "end_point": {"row": 155, "column": 7}}, {"id": 949, "type": "pointer_expression", "text": "* BST", "parent": 936, "children": [950, 951], "start_point": {"row": 155, "column": 7}, "end_point": {"row": 155, "column": 12}}, {"id": 950, "type": "*", "text": "*", "parent": 949, "children": [], "start_point": {"row": 155, "column": 7}, "end_point": {"row": 155, "column": 8}}, {"id": 951, "type": "identifier", "text": "BST", "parent": 949, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 12}}, {"id": 952, "type": "<", "text": "<", "parent": 935, "children": [], "start_point": {"row": 155, "column": 12}, "end_point": {"row": 155, "column": 13}}, {"id": 953, "type": "identifier", "text": "T", "parent": 935, "children": [], "start_point": {"row": 155, "column": 13}, "end_point": {"row": 155, "column": 14}}, {"id": 954, "type": ">", "text": ">", "parent": 934, "children": [], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 15}}, {"id": 955, "type": "call_expression", "text": "getInput()", "parent": 934, "children": [956, 957], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 27}}, {"id": 956, "type": "identifier", "text": "getInput", "parent": 955, "children": [], "start_point": {"row": 155, "column": 17}, "end_point": {"row": 155, "column": 25}}, {"id": 957, "type": "argument_list", "text": "()", "parent": 955, "children": [], "start_point": {"row": 155, "column": 25}, "end_point": {"row": 155, "column": 27}}, {"id": 958, "type": "declaration", "text": "int input;", "parent": 0, "children": [959, 960], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 11}}, {"id": 959, "type": "primitive_type", "text": "int", "parent": 958, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 4}}, {"id": 960, "type": "identifier", "text": "input", "parent": 958, "children": [], "start_point": {"row": 157, "column": 5}, "end_point": {"row": 157, "column": 10}}, {"id": 961, "type": "declaration", "text": "char check = cin.peek();", "parent": 0, "children": [962, 963], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 25}}, {"id": 962, "type": "primitive_type", "text": "char", "parent": 961, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 5}}, {"id": 963, "type": "init_declarator", "text": "check = cin.peek()", "parent": 961, "children": [964, 965, 966], "start_point": {"row": 158, "column": 6}, "end_point": {"row": 158, "column": 24}}, {"id": 964, "type": "identifier", "text": "check", "parent": 963, "children": [], "start_point": {"row": 158, "column": 6}, "end_point": {"row": 158, "column": 11}}, {"id": 965, "type": "=", "text": "=", "parent": 963, "children": [], "start_point": {"row": 158, "column": 12}, "end_point": {"row": 158, "column": 13}}, {"id": 966, "type": "call_expression", "text": "cin.peek()", "parent": 963, "children": [967, 970], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 24}}, {"id": 967, "type": "field_expression", "text": "cin.peek", "parent": 966, "children": [968, 969], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 22}}, {"id": 968, "type": "identifier", "text": "cin", "parent": 967, "children": [], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 17}}, {"id": 969, "type": "field_identifier", "text": "peek", "parent": 967, "children": [], "start_point": {"row": 158, "column": 18}, "end_point": {"row": 158, "column": 22}}, {"id": 970, "type": "argument_list", "text": "()", "parent": 966, "children": [], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 24}}, {"id": 971, "type": "while_statement", "text": "while (!(cin >> input)|| input < 1 || input > size)\r\n\t{\r\n\t\tif (toupper(check) == 'Q')\r\n\t\t{\r\n\t\t\tcin.clear();\r\n\t\t\tcin.ignore(BUFFER, '\\n'); \r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t\tcin.clear();\r\n\t\tcin.ignore(BUFFER, '\\n');\r\n\t\tcout << \"Invalid Input. Please enter a menu number or 'Q': \" << endl;\r\n\t\tcheck = cin.peek();\r\n\t}", "parent": 0, "children": [972], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 171, "column": 2}}, {"id": 972, "type": "parenthesized_expression", "text": "(!(cin >> input)|| input < 1 || input > size)", "parent": 971, "children": [973], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 52}}, {"id": 973, "type": "binary_expression", "text": "!(cin >> input)|| input < 1 || input > size", "parent": 972, "children": [974, 987, 988], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 51}}, {"id": 974, "type": "binary_expression", "text": "!(cin >> input)|| input < 1", "parent": 973, "children": [975, 982, 983], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 35}}, {"id": 975, "type": "unary_expression", "text": "!(cin >> input)", "parent": 974, "children": [976, 977], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 23}}, {"id": 976, "type": "!", "text": "!", "parent": 975, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 9}}, {"id": 977, "type": "parenthesized_expression", "text": "(cin >> input)", "parent": 975, "children": [978], "start_point": {"row": 159, "column": 9}, "end_point": {"row": 159, "column": 23}}, {"id": 978, "type": "binary_expression", "text": "cin >> input", "parent": 977, "children": [979, 980, 981], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 22}}, {"id": 979, "type": "identifier", "text": "cin", "parent": 978, "children": [], "start_point": {"row": 159, "column": 10}, "end_point": {"row": 159, "column": 13}}, {"id": 980, "type": ">>", "text": ">>", "parent": 978, "children": [], "start_point": {"row": 159, "column": 14}, "end_point": {"row": 159, "column": 16}}, {"id": 981, "type": "identifier", "text": "input", "parent": 978, "children": [], "start_point": {"row": 159, "column": 17}, "end_point": {"row": 159, "column": 22}}, {"id": 982, "type": "||", "text": "||", "parent": 974, "children": [], "start_point": {"row": 159, "column": 23}, "end_point": {"row": 159, "column": 25}}, {"id": 983, "type": "binary_expression", "text": "input < 1", "parent": 974, "children": [984, 985, 986], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 35}}, {"id": 984, "type": "identifier", "text": "input", "parent": 983, "children": [], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 31}}, {"id": 985, "type": "<", "text": "<", "parent": 983, "children": [], "start_point": {"row": 159, "column": 32}, "end_point": {"row": 159, "column": 33}}, {"id": 986, "type": "number_literal", "text": "1", "parent": 983, "children": [], "start_point": {"row": 159, "column": 34}, "end_point": {"row": 159, "column": 35}}, {"id": 987, "type": "||", "text": "||", "parent": 973, "children": [], "start_point": {"row": 159, "column": 36}, "end_point": {"row": 159, "column": 38}}, {"id": 988, "type": "binary_expression", "text": "input > size", "parent": 973, "children": [989, 990, 991], "start_point": {"row": 159, "column": 39}, "end_point": {"row": 159, "column": 51}}, {"id": 989, "type": "identifier", "text": "input", "parent": 988, "children": [], "start_point": {"row": 159, "column": 39}, "end_point": {"row": 159, "column": 44}}, {"id": 990, "type": ">", "text": ">", "parent": 988, "children": [], "start_point": {"row": 159, "column": 45}, "end_point": {"row": 159, "column": 46}}, {"id": 991, "type": "identifier", "text": "size", "parent": 988, "children": [], "start_point": {"row": 159, "column": 47}, "end_point": {"row": 159, "column": 51}}, {"id": 992, "type": "if_statement", "text": "if (toupper(check) == 'Q')\r\n\t\t{\r\n\t\t\tcin.clear();\r\n\t\t\tcin.ignore(BUFFER, '\\n'); \r\n\t\t\treturn NULL;\r\n\t\t}", "parent": 971, "children": [993], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 166, "column": 3}}, {"id": 993, "type": "parenthesized_expression", "text": "(toupper(check) == 'Q')", "parent": 992, "children": [994], "start_point": {"row": 161, "column": 5}, "end_point": {"row": 161, "column": 28}}, {"id": 994, "type": "binary_expression", "text": "toupper(check) == 'Q'", "parent": 993, "children": [995, 999, 1000], "start_point": {"row": 161, "column": 6}, "end_point": {"row": 161, "column": 27}}, {"id": 995, "type": "call_expression", "text": "toupper(check)", "parent": 994, "children": [996, 997], "start_point": {"row": 161, "column": 6}, "end_point": {"row": 161, "column": 20}}, {"id": 996, "type": "identifier", "text": "toupper", "parent": 995, "children": [], "start_point": {"row": 161, "column": 6}, "end_point": {"row": 161, "column": 13}}, {"id": 997, "type": "argument_list", "text": "(check)", "parent": 995, "children": [998], "start_point": {"row": 161, "column": 13}, "end_point": {"row": 161, "column": 20}}, {"id": 998, "type": "identifier", "text": "check", "parent": 997, "children": [], "start_point": {"row": 161, "column": 14}, "end_point": {"row": 161, "column": 19}}, {"id": 999, "type": "==", "text": "==", "parent": 994, "children": [], "start_point": {"row": 161, "column": 21}, "end_point": {"row": 161, "column": 23}}, {"id": 1000, "type": "char_literal", "text": "'Q'", "parent": 994, "children": [1001, 1002, 1003], "start_point": {"row": 161, "column": 24}, "end_point": {"row": 161, "column": 27}}, {"id": 1001, "type": "'", "text": "'", "parent": 1000, "children": [], "start_point": {"row": 161, "column": 24}, "end_point": {"row": 161, "column": 25}}, {"id": 1002, "type": "character", "text": "Q", "parent": 1000, "children": [], "start_point": {"row": 161, "column": 25}, "end_point": {"row": 161, "column": 26}}, {"id": 1003, "type": "'", "text": "'", "parent": 1000, "children": [], "start_point": {"row": 161, "column": 26}, "end_point": {"row": 161, "column": 27}}, {"id": 1004, "type": "call_expression", "text": "cin.clear()", "parent": 992, "children": [1005, 1008], "start_point": {"row": 163, "column": 3}, "end_point": {"row": 163, "column": 14}}, {"id": 1005, "type": "field_expression", "text": "cin.clear", "parent": 1004, "children": [1006, 1007], "start_point": {"row": 163, "column": 3}, "end_point": {"row": 163, "column": 12}}, {"id": 1006, "type": "identifier", "text": "cin", "parent": 1005, "children": [], "start_point": {"row": 163, "column": 3}, "end_point": {"row": 163, "column": 6}}, {"id": 1007, "type": "field_identifier", "text": "clear", "parent": 1005, "children": [], "start_point": {"row": 163, "column": 7}, "end_point": {"row": 163, "column": 12}}, {"id": 1008, "type": "argument_list", "text": "()", "parent": 1004, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 14}}, {"id": 1009, "type": "call_expression", "text": "cin.ignore(BUFFER, '\\n')", "parent": 992, "children": [1010, 1013], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 27}}, {"id": 1010, "type": "field_expression", "text": "cin.ignore", "parent": 1009, "children": [1011, 1012], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 13}}, {"id": 1011, "type": "identifier", "text": "cin", "parent": 1010, "children": [], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 6}}, {"id": 1012, "type": "field_identifier", "text": "ignore", "parent": 1010, "children": [], "start_point": {"row": 164, "column": 7}, "end_point": {"row": 164, "column": 13}}, {"id": 1013, "type": "argument_list", "text": "(BUFFER, '\\n')", "parent": 1009, "children": [1014, 1015], "start_point": {"row": 164, "column": 13}, "end_point": {"row": 164, "column": 27}}, {"id": 1014, "type": "identifier", "text": "BUFFER", "parent": 1013, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 20}}, {"id": 1015, "type": "char_literal", "text": "'\\n'", "parent": 1013, "children": [1016, 1017, 1018], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 26}}, {"id": 1016, "type": "'", "text": "'", "parent": 1015, "children": [], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 23}}, {"id": 1017, "type": "escape_sequence", "text": "\\n", "parent": 1015, "children": [], "start_point": {"row": 164, "column": 23}, "end_point": {"row": 164, "column": 25}}, {"id": 1018, "type": "'", "text": "'", "parent": 1015, "children": [], "start_point": {"row": 164, "column": 25}, "end_point": {"row": 164, "column": 26}}, {"id": 1019, "type": "return_statement", "text": "return NULL;", "parent": 992, "children": [1020], "start_point": {"row": 165, "column": 3}, "end_point": {"row": 165, "column": 15}}, {"id": 1020, "type": "null", "text": "NULL", "parent": 1019, "children": [1021], "start_point": {"row": 165, "column": 10}, "end_point": {"row": 165, "column": 14}}, {"id": 1021, "type": "NULL", "text": "NULL", "parent": 1020, "children": [], "start_point": {"row": 165, "column": 10}, "end_point": {"row": 165, "column": 14}}, {"id": 1022, "type": "call_expression", "text": "cin.clear()", "parent": 971, "children": [1023, 1026], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 13}}, {"id": 1023, "type": "field_expression", "text": "cin.clear", "parent": 1022, "children": [1024, 1025], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 11}}, {"id": 1024, "type": "identifier", "text": "cin", "parent": 1023, "children": [], "start_point": {"row": 167, "column": 2}, "end_point": {"row": 167, "column": 5}}, {"id": 1025, "type": "field_identifier", "text": "clear", "parent": 1023, "children": [], "start_point": {"row": 167, "column": 6}, "end_point": {"row": 167, "column": 11}}, {"id": 1026, "type": "argument_list", "text": "()", "parent": 1022, "children": [], "start_point": {"row": 167, "column": 11}, "end_point": {"row": 167, "column": 13}}, {"id": 1027, "type": "call_expression", "text": "cin.ignore(BUFFER, '\\n')", "parent": 971, "children": [1028, 1031], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 26}}, {"id": 1028, "type": "field_expression", "text": "cin.ignore", "parent": 1027, "children": [1029, 1030], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 12}}, {"id": 1029, "type": "identifier", "text": "cin", "parent": 1028, "children": [], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 168, "column": 5}}, {"id": 1030, "type": "field_identifier", "text": "ignore", "parent": 1028, "children": [], "start_point": {"row": 168, "column": 6}, "end_point": {"row": 168, "column": 12}}, {"id": 1031, "type": "argument_list", "text": "(BUFFER, '\\n')", "parent": 1027, "children": [1032, 1033], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 26}}, {"id": 1032, "type": "identifier", "text": "BUFFER", "parent": 1031, "children": [], "start_point": {"row": 168, "column": 13}, "end_point": {"row": 168, "column": 19}}, {"id": 1033, "type": "char_literal", "text": "'\\n'", "parent": 1031, "children": [1034, 1035, 1036], "start_point": {"row": 168, "column": 21}, "end_point": {"row": 168, "column": 25}}, {"id": 1034, "type": "'", "text": "'", "parent": 1033, "children": [], "start_point": {"row": 168, "column": 21}, "end_point": {"row": 168, "column": 22}}, {"id": 1035, "type": "escape_sequence", "text": "\\n", "parent": 1033, "children": [], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 24}}, {"id": 1036, "type": "'", "text": "'", "parent": 1033, "children": [], "start_point": {"row": 168, "column": 24}, "end_point": {"row": 168, "column": 25}}, {"id": 1037, "type": "binary_expression", "text": "cout << \"Invalid Input. Please enter a menu number or 'Q': \" << endl", "parent": 971, "children": [1038, 1042, 1043], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 70}}, {"id": 1038, "type": "binary_expression", "text": "cout << \"Invalid Input. Please enter a menu number or 'Q': \"", "parent": 1037, "children": [1039, 1040, 1041], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 62}}, {"id": 1039, "type": "identifier", "text": "cout", "parent": 1038, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 6}}, {"id": 1040, "type": "<<", "text": "<<", "parent": 1038, "children": [], "start_point": {"row": 169, "column": 7}, "end_point": {"row": 169, "column": 9}}, {"id": 1041, "type": "string_literal", "text": "\"Invalid Input. Please enter a menu number or 'Q': \"", "parent": 1038, "children": [], "start_point": {"row": 169, "column": 10}, "end_point": {"row": 169, "column": 62}}, {"id": 1042, "type": "<<", "text": "<<", "parent": 1037, "children": [], "start_point": {"row": 169, "column": 63}, "end_point": {"row": 169, "column": 65}}, {"id": 1043, "type": "identifier", "text": "endl", "parent": 1037, "children": [], "start_point": {"row": 169, "column": 66}, "end_point": {"row": 169, "column": 70}}, {"id": 1044, "type": "assignment_expression", "text": "check = cin.peek()", "parent": 971, "children": [1045, 1046, 1047], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 20}}, {"id": 1045, "type": "identifier", "text": "check", "parent": 1044, "children": [], "start_point": {"row": 170, "column": 2}, "end_point": {"row": 170, "column": 7}}, {"id": 1046, "type": "=", "text": "=", "parent": 1044, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 9}}, {"id": 1047, "type": "call_expression", "text": "cin.peek()", "parent": 1044, "children": [1048, 1051], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 20}}, {"id": 1048, "type": "field_expression", "text": "cin.peek", "parent": 1047, "children": [1049, 1050], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 18}}, {"id": 1049, "type": "identifier", "text": "cin", "parent": 1048, "children": [], "start_point": {"row": 170, "column": 10}, "end_point": {"row": 170, "column": 13}}, {"id": 1050, "type": "field_identifier", "text": "peek", "parent": 1048, "children": [], "start_point": {"row": 170, "column": 14}, "end_point": {"row": 170, "column": 18}}, {"id": 1051, "type": "argument_list", "text": "()", "parent": 1047, "children": [], "start_point": {"row": 170, "column": 18}, "end_point": {"row": 170, "column": 20}}, {"id": 1052, "type": "call_expression", "text": "cin.clear()", "parent": 0, "children": [1053, 1056], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 12}}, {"id": 1053, "type": "field_expression", "text": "cin.clear", "parent": 1052, "children": [1054, 1055], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 10}}, {"id": 1054, "type": "identifier", "text": "cin", "parent": 1053, "children": [], "start_point": {"row": 172, "column": 1}, "end_point": {"row": 172, "column": 4}}, {"id": 1055, "type": "field_identifier", "text": "clear", "parent": 1053, "children": [], "start_point": {"row": 172, "column": 5}, "end_point": {"row": 172, "column": 10}}, {"id": 1056, "type": "argument_list", "text": "()", "parent": 1052, "children": [], "start_point": {"row": 172, "column": 10}, "end_point": {"row": 172, "column": 12}}, {"id": 1057, "type": "call_expression", "text": "cin.ignore(BUFFER, '\\n')", "parent": 0, "children": [1058, 1061], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 25}}, {"id": 1058, "type": "field_expression", "text": "cin.ignore", "parent": 1057, "children": [1059, 1060], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 11}}, {"id": 1059, "type": "identifier", "text": "cin", "parent": 1058, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 4}}, {"id": 1060, "type": "field_identifier", "text": "ignore", "parent": 1058, "children": [], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 11}}, {"id": 1061, "type": "argument_list", "text": "(BUFFER, '\\n')", "parent": 1057, "children": [1062, 1063], "start_point": {"row": 173, "column": 11}, "end_point": {"row": 173, "column": 25}}, {"id": 1062, "type": "identifier", "text": "BUFFER", "parent": 1061, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 18}}, {"id": 1063, "type": "char_literal", "text": "'\\n'", "parent": 1061, "children": [1064, 1065, 1066], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 24}}, {"id": 1064, "type": "'", "text": "'", "parent": 1063, "children": [], "start_point": {"row": 173, "column": 20}, "end_point": {"row": 173, "column": 21}}, {"id": 1065, "type": "escape_sequence", "text": "\\n", "parent": 1063, "children": [], "start_point": {"row": 173, "column": 21}, "end_point": {"row": 173, "column": 23}}, {"id": 1066, "type": "'", "text": "'", "parent": 1063, "children": [], "start_point": {"row": 173, "column": 23}, "end_point": {"row": 173, "column": 24}}, {"id": 1067, "type": "binary_expression", "text": "element<T> * nodeOutput = searchOrder(input, root)", "parent": 0, "children": [1068, 1072, 1073], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 51}}, {"id": 1068, "type": "binary_expression", "text": "element<T", "parent": 1067, "children": [1069, 1070, 1071], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 10}}, {"id": 1069, "type": "identifier", "text": "element", "parent": 1068, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 8}}, {"id": 1070, "type": "<", "text": "<", "parent": 1068, "children": [], "start_point": {"row": 175, "column": 8}, "end_point": {"row": 175, "column": 9}}, {"id": 1071, "type": "identifier", "text": "T", "parent": 1068, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 10}}, {"id": 1072, "type": ">", "text": ">", "parent": 1067, "children": [], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 11}}, {"id": 1073, "type": "assignment_expression", "text": "* nodeOutput = searchOrder(input, root)", "parent": 1067, "children": [1074, 1077, 1078], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 51}}, {"id": 1074, "type": "pointer_expression", "text": "* nodeOutput", "parent": 1073, "children": [1075, 1076], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 24}}, {"id": 1075, "type": "*", "text": "*", "parent": 1074, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 13}}, {"id": 1076, "type": "identifier", "text": "nodeOutput", "parent": 1074, "children": [], "start_point": {"row": 175, "column": 14}, "end_point": {"row": 175, "column": 24}}, {"id": 1077, "type": "=", "text": "=", "parent": 1073, "children": [], "start_point": {"row": 175, "column": 25}, "end_point": {"row": 175, "column": 26}}, {"id": 1078, "type": "call_expression", "text": "searchOrder(input, root)", "parent": 1073, "children": [1079, 1080], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 51}}, {"id": 1079, "type": "identifier", "text": "searchOrder", "parent": 1078, "children": [], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 38}}, {"id": 1080, "type": "argument_list", "text": "(input, root)", "parent": 1078, "children": [1081, 1082], "start_point": {"row": 175, "column": 38}, "end_point": {"row": 175, "column": 51}}, {"id": 1081, "type": "identifier", "text": "input", "parent": 1080, "children": [], "start_point": {"row": 175, "column": 39}, "end_point": {"row": 175, "column": 44}}, {"id": 1082, "type": "identifier", "text": "root", "parent": 1080, "children": [], "start_point": {"row": 175, "column": 46}, "end_point": {"row": 175, "column": 50}}, {"id": 1083, "type": "return_statement", "text": "return nodeOutput->getNode();", "parent": 0, "children": [1084], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 30}}, {"id": 1084, "type": "call_expression", "text": "nodeOutput->getNode()", "parent": 1083, "children": [1085, 1088], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 29}}, {"id": 1085, "type": "field_expression", "text": "nodeOutput->getNode", "parent": 1084, "children": [1086, 1087], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 27}}, {"id": 1086, "type": "identifier", "text": "nodeOutput", "parent": 1085, "children": [], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 18}}, {"id": 1087, "type": "field_identifier", "text": "getNode", "parent": 1085, "children": [], "start_point": {"row": 176, "column": 20}, "end_point": {"row": 176, "column": 27}}, {"id": 1088, "type": "argument_list", "text": "()", "parent": 1084, "children": [], "start_point": {"row": 176, "column": 27}, "end_point": {"row": 176, "column": 29}}, {"id": 1089, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 6}}]}, "node_categories": {"declarations": {"functions": [37, 42, 48, 66, 68, 73, 75, 80, 82, 118, 120, 136, 138, 230, 239, 241, 248, 274, 289, 291, 301, 338], "variables": [23, 40, 45, 85, 123, 141, 155, 158, 246, 251, 254, 263, 272, 277, 280, 299, 304, 336, 341, 361, 374, 435, 800, 958, 961], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [14, 15, 53, 54, 59, 61, 92, 93, 98, 100, 105, 106, 111, 113, 161, 162, 167, 170, 171, 176, 179, 180, 185, 189, 190, 199, 206, 208, 211, 215, 216, 221, 223, 234, 294, 313, 314, 319, 321, 327, 328, 333, 350, 351, 356, 358, 365, 366, 371, 377, 378, 379, 380, 396, 397, 398, 399, 411, 417, 418, 423, 426, 427, 432, 441, 442, 448, 455, 456, 464, 465, 470, 471, 475, 476, 483, 486, 492, 493, 496, 497, 502, 503, 504, 505, 512, 513, 520, 521, 526, 527, 530, 535, 540, 541, 547, 548, 551, 552, 557, 558, 559, 560, 567, 568, 575, 576, 581, 582, 585, 590, 595, 596, 604, 610, 611, 612, 613, 625, 628, 631, 632, 637, 641, 642, 647, 651, 652, 656, 657, 658, 659, 662, 663, 670, 671, 672, 673, 674, 683, 687, 688, 692, 693, 694, 695, 707, 710, 711, 716, 720, 721, 726, 729, 730, 734, 735, 739, 742, 745, 746, 750, 751, 752, 753, 765, 768, 769, 774, 778, 779, 784, 787, 788, 792, 795, 796, 811, 812, 813, 814, 815, 816, 826, 832, 838, 839, 844, 848, 849, 852, 853, 861, 862, 865, 866, 871, 872, 873, 874, 886, 890, 891, 897, 898, 901, 902, 907, 908, 909, 910, 922, 926, 927, 934, 935, 936, 937, 938, 939, 949, 955, 966, 967, 972, 973, 974, 975, 977, 978, 983, 988, 993, 994, 995, 1004, 1005, 1009, 1010, 1022, 1023, 1027, 1028, 1037, 1038, 1047, 1048, 1052, 1053, 1057, 1058, 1067, 1068, 1074, 1078, 1084, 1085], "assignments": [88, 132, 150, 392, 447, 461, 479, 517, 572, 600, 802, 807, 1044, 1073], "loops": [971], "conditionals": [0, 1, 2, 5, 11, 16, 19, 21, 24, 25, 28, 30, 32, 36, 38, 41, 43, 46, 49, 55, 57, 62, 65, 69, 72, 76, 79, 83, 87, 89, 91, 94, 96, 101, 104, 107, 109, 114, 117, 121, 124, 127, 131, 133, 135, 139, 142, 145, 149, 151, 153, 157, 160, 163, 165, 169, 172, 174, 178, 181, 183, 187, 191, 194, 196, 200, 202, 203, 205, 209, 212, 214, 217, 219, 224, 227, 231, 235, 242, 245, 249, 253, 255, 258, 262, 264, 267, 271, 275, 278, 279, 281, 284, 288, 292, 295, 297, 298, 302, 305, 308, 312, 315, 317, 322, 325, 326, 329, 331, 335, 339, 342, 345, 349, 352, 354, 359, 363, 367, 369, 373, 376, 381, 384, 386, 388, 390, 393, 400, 403, 405, 407, 409, 412, 415, 416, 419, 421, 425, 428, 430, 434, 438, 443, 445, 450, 454, 457, 462, 466, 468, 472, 473, 474, 477, 480, 482, 484, 487, 489, 491, 494, 498, 499, 501, 506, 507, 514, 515, 518, 522, 524, 528, 529, 531, 536, 538, 539, 542, 543, 546, 549, 553, 554, 556, 561, 562, 569, 570, 573, 577, 579, 583, 584, 586, 591, 593, 594, 597, 598, 601, 605, 607, 609, 614, 617, 619, 621, 623, 626, 629, 630, 633, 635, 639, 640, 643, 648, 650, 653, 654, 660, 664, 665, 675, 676, 678, 679, 682, 684, 686, 689, 690, 696, 699, 701, 703, 705, 708, 712, 714, 718, 719, 722, 727, 731, 732, 736, 737, 741, 743, 747, 748, 754, 757, 759, 761, 763, 766, 770, 772, 776, 777, 780, 785, 789, 790, 793, 797, 798, 801, 803, 808, 817, 820, 822, 824, 828, 830, 833, 836, 837, 840, 842, 846, 847, 850, 854, 855, 858, 860, 863, 867, 868, 870, 875, 876, 887, 889, 892, 893, 896, 899, 903, 904, 906, 911, 912, 923, 925, 928, 929, 940, 943, 945, 947, 951, 953, 956, 960, 964, 968, 969, 979, 981, 984, 989, 991, 992, 996, 998, 1006, 1007, 1011, 1012, 1014, 1024, 1025, 1029, 1030, 1032, 1039, 1043, 1045, 1049, 1050, 1054, 1055, 1059, 1060, 1062, 1069, 1071, 1076, 1079, 1081, 1082, 1086, 1087, 1089], "returns": [64, 71, 78, 103, 116, 226, 233, 244, 534, 589, 608, 857, 881, 885, 917, 921, 931, 1019, 1083], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 52, 395, 603, 668, 810, 986, 1000, 1015, 1033, 1041, 1063], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "ranking(ranking)"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "ptrToNode(ptr)"}, {"node_id": 48, "universal_type": "function", "name": "unknown", "text_snippet": "order(0)"}, {"node_id": 66, "universal_type": "function", "name": "getRank", "text_snippet": "int getRank() { return ranking; }"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "getRank()"}, {"node_id": 73, "universal_type": "function", "name": "getOrder", "text_snippet": "int getOrder() { return order; }"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "getOrder()"}, {"node_id": 80, "universal_type": "function", "name": "setOrder", "text_snippet": "void setOrder(int o) { order = o; }"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "setOrder(int o)"}, {"node_id": 118, "universal_type": "function", "name": "setLeft", "text_snippet": "void setLeft(element<T> * ptr) { leftPtr = ptr; }"}, {"node_id": 120, "universal_type": "function", "name": "unknown", "text_snippet": "setLeft(element<T> * ptr)"}, {"node_id": 136, "universal_type": "function", "name": "setRight", "text_snippet": "void setRight(element<T> * ptr) { rightPtr = ptr; }"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "setRight(element<T> * ptr)"}, {"node_id": 230, "universal_type": "function", "name": "unknown", "text_snippet": "isEmpty()"}, {"node_id": 239, "universal_type": "function", "name": "getSize", "text_snippet": "int getSize() {return size;}"}, {"node_id": 241, "universal_type": "function", "name": "unknown", "text_snippet": "getSize()"}, {"node_id": 248, "universal_type": "function", "name": "unknown", "text_snippet": "insert(int rank, node<T>* ptr, element<T>* curr)"}, {"node_id": 274, "universal_type": "function", "name": "unknown", "text_snippet": "print(ostream& out, element<T>* curr)"}, {"node_id": 289, "universal_type": "function", "name": "print", "text_snippet": "void print() { print(cout, root); }"}, {"node_id": 291, "universal_type": "function", "name": "unknown", "text_snippet": "print()"}, {"node_id": 301, "universal_type": "function", "name": "unknown", "text_snippet": "setOrder(element<T>* curr)"}, {"node_id": 338, "universal_type": "function", "name": "unknown", "text_snippet": "deleteTree(element<T>* curr)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"List.h\"\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// File Name: BST.h\r\n// Programmer: <NAME>\r\n// Date: 10/17/2017\r\n#ifndef BST_H\r\n#define BST_H\r\n\r\n#include \"List.h\"\r\n#define BUFFER 50\r\ntemplate <class T>\r\nclass element\r\n{\r\npublic:\r\n\telement(int ranking, node<T> * ptr) : ranking(ranking), ptrToNode(ptr), order(0) {};\r\n\tnode<T> * getNode() {return ptrToNode;};\r\n\tint getRank() { return ranking; };\r\n\tint getOrder() { return order; };\r\n\tvoid setOrder(int o) { order = o; };\r\n\telement<T> * left() { return leftPtr; };\r\n\telement<T> * right() { return rightPtr; };\r\n\tvoid setLeft(element<T> * ptr) { leftPtr = ptr; };\r\n\tvoid setRight(element<T> * ptr) { rightPtr = ptr; };\r\nprivate:\r\n\tint ranking;\r\n\tint order;\r\n\tnode<T> * ptrToNode;\r\n\telement<T> * leftPtr;\r\n\telement<T> * rightPtr;\r\n};\r\n\r\ntemplate <class T>\r\nclass BST\r\n{\r\npublic:\r\n\tBST() : root(NULL) {};\r\n\t~BST() { deleteTree(root); };\r\n\telement<T> * getRoot() { return root; };\r\n\tbool isEmpty() const { return root == NULL; };\r\n\tint getSize() {return size;};\r\n\tbool insert(int rank, node<T>* ptr, element<T>* curr);\r\n\tvoid print(ostream& out, element<T>* curr);\r\n\tvoid print() { print(cout, root); }; //ostream and root default\r\n\tvoid setOrder(element<T>* curr);\r\n\telement<T> * searchOrder(int listOrder, element<T> * curr);\r\n\tvoid deleteTree(element<T>* curr);\r\n\tnode<T>* getInput();\r\n\tstatic int order;\r\nprivate:\r\n\telement<T> * root;\r\n\tint size;\r\n};\r\n\r\ntemplate <class T>\r\nint BST<T>::order = 0; //initialize static variable\r\n\r\ntemplate <class T>\r\nbool BST<T>::insert(int rank, node<T>* ptr, element<T>* curr)\r\n{\r\n\tbool canInsert = true;\r\n\telement<T> * tempPtr = NULL;\r\n\tif (curr == NULL)\r\n\t{\r\n\t\tcurr = new element<T>(rank, ptr);\r\n\t\tif (isEmpty())\r\n\t\t{\r\n\t\t\troot = curr;\r\n\t\t\tsize++;\r\n\t\t}\r\n\t\tsetOrder(curr);\r\n\t}\r\n\telse\r\n\t{\r\n\t\tif (rank < curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->left() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setLeft(tempPtr = new element<T>(rank, ptr)); \r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->left());\r\n\t\t}\r\n\t\telse if (rank >= curr->getRank())\r\n\t\t{\r\n\t\t\tif (curr->right() == NULL)\r\n\t\t\t{\r\n\t\t\t\tcurr->setRight(tempPtr = new element<T>(rank, ptr));\r\n\t\t\t\tsize++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\treturn insert(rank, ptr, curr->right());\r\n\t\t}\r\n\t\torder = 0;\r\n\t\tsetOrder(root);\r\n\t}\r\n\treturn canInsert;\r\n}\r\n\r\ntemplate <class T>\r\nvoid BST<T>::print(ostream& out, element<T>* curr)\r\n{\r\n\tif (curr != NULL)\r\n\t{\r\n\t\tprint(out, curr->right());\r\n\t\tout << curr->getOrder() << \": \" << curr->getNode()->thing.getName() << endl;\r\n\t\tprint(out, curr ->left());\r\n\t}\r\n}\r\n\r\ntemplate <class T>\r\nvoid BST<T>::setOrder(element<T>* curr)\r\n{\r\n\tif (curr != NULL)\r\n\t{\r\n\t\tsetOrder(curr->right());\r\n\t\tcurr->setOrder(++order);\r\n\t\tsetOrder(curr->left());\r\n\t}\r\n}\r\ntemplate <class T>\r\nvoid BST<T>::deleteTree(element<T>* curr)\r\n{\r\n\tif (curr != NULL)\r\n\t{\r\n\t\tdeleteTree(curr->left());\r\n\t\tdeleteTree(curr->right());\r\n\t\tdelete curr;\r\n\t\tcurr = NULL;\r\n\t\torder = 0;\r\n\t}\r\n}\r\n//Big O notation = O(log n) because for every iteration the path is cut down by half\r\ntemplate <class T>\r\nelement<T> * BST<T>::searchOrder(int listOrder, element<T> * curr)\r\n{\r\n\tif (listOrder == curr->getOrder())\r\n\t\treturn curr;\r\n\telse if (listOrder < curr->getOrder())\r\n\t{\r\n\t\tif (curr->right() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->right());\r\n\t}\r\n\telse if (listOrder > curr->getOrder())\r\n\t{\r\n\t\tif (curr->left() == NULL)\r\n\t\t\treturn NULL;\r\n\t\telse\r\n\t\t\treturn searchOrder(listOrder, curr->left());\r\n\t}\r\n\treturn NULL;\r\n\t\t\r\n}\r\n// input & output used in function to cancel input enter Q\r\ntemplate <class T>\r\nnode<T>* BST<T>::getInput()\r\n{\r\n\tint input;\r\n\tchar check = cin.peek();\r\n\twhile (!(cin >> input)|| input < 1 || input > size)\r\n\t{\r\n\t\tif (toupper(check) == 'Q')\r\n\t\t{\r\n\t\t\tcin.clear();\r\n\t\t\tcin.ignore(BUFFER, '\\n'); \r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t\tcin.clear();\r\n\t\tcin.ignore(BUFFER, '\\n');\r\n\t\tcout << \"Invalid Input. Please enter a menu number or 'Q': \" << endl;\r\n\t\tcheck = cin.peek();\r\n\t}\r\n\tcin.clear();\r\n\tcin.ignore(BUFFER, '\\n');\r\n\r\n\telement<T> * nodeOutput = searchOrder(input, root);\r\n\treturn nodeOutput->getNode();\r\n}\r\n\r\n#endif"}
80,338
c
/* Copyright (c) Members of the EGEE Collaboration. 2004. See http://www.eu-egee.org/partners/ for details on the copyright holders. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // File: ism_utils.h // Author: <NAME>, INFN #ifndef GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H #define GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H #include <boost/noncopyable.hpp> #include <boost/shared_ptr.hpp> #include "glite/wms/ism/purchaser/ism-purchaser.h" namespace purchaser = glite::wms::ism::purchaser; namespace glite { namespace wms { namespace manager { namespace main { class ISM_manager: boost::noncopyable { class Impl; boost::shared_ptr<Impl> m_impl; public: std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers(); ISM_manager(); }; }}}} // glite::wms::manager::main #endif
33
37
(translation_unit) "/*\nCopyright (c) Members of the EGEE Collaboration. 2004.\nSee http://www.eu-egee.org/partners/ for details on the\ncopyright holders.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\neither express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// File: ism_utils.h\n// Author: <NAME>, INFN\n\n#ifndef GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n#define GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n\n#include <boost/noncopyable.hpp>\n#include <boost/shared_ptr.hpp>\n\n#include "glite/wms/ism/purchaser/ism-purchaser.h"\n\nnamespace purchaser = glite::wms::ism::purchaser;\n\nnamespace glite {\nnamespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}} // glite::wms::manager::main\n\n#endif\n" (comment) "/*\nCopyright (c) Members of the EGEE Collaboration. 2004.\nSee http://www.eu-egee.org/partners/ for details on the\ncopyright holders.\n\nLicensed under the Apache License, Version 2.0 (the "License");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\neither express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/" (comment) "// File: ism_utils.h" (comment) "// Author: <NAME>, INFN" (preproc_ifdef) "#ifndef GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n#define GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n\n#include <boost/noncopyable.hpp>\n#include <boost/shared_ptr.hpp>\n\n#include "glite/wms/ism/purchaser/ism-purchaser.h"\n\nnamespace purchaser = glite::wms::ism::purchaser;\n\nnamespace glite {\nnamespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}} // glite::wms::manager::main\n\n#endif" (#ifndef) "#ifndef" (identifier) "GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H" (preproc_def) "#define GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n" (#define) "#define" (identifier) "GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H" (preproc_include) "#include <boost/noncopyable.hpp>\n" (#include) "#include" (system_lib_string) "<boost/noncopyable.hpp>" (preproc_include) "#include <boost/shared_ptr.hpp>\n" (#include) "#include" (system_lib_string) "<boost/shared_ptr.hpp>" (preproc_include) "#include "glite/wms/ism/purchaser/ism-purchaser.h"\n" (#include) "#include" (string_literal) ""glite/wms/ism/purchaser/ism-purchaser.h"" (") """ (string_content) "glite/wms/ism/purchaser/ism-purchaser.h" (") """ (declaration) "namespace purchaser = glite::wms::ism::purchaser;" (type_identifier) "namespace" (init_declarator) "purchaser = glite::wms::ism::purchaser" (identifier) "purchaser" (=) "=" (ERROR) "glite::wms::ism::" (identifier) "glite" (:) ":" (:) ":" (identifier) "wms" (:) ":" (:) ":" (identifier) "ism" (:) ":" (:) ":" (identifier) "purchaser" (;) ";" (function_definition) "namespace glite {\nnamespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}}" (type_identifier) "namespace" (identifier) "glite" (compound_statement) "{\nnamespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}}" ({) "{" (function_definition) "namespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}" (type_identifier) "namespace" (identifier) "wms" (compound_statement) "{\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}" ({) "{" (function_definition) "namespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}" (type_identifier) "namespace" (identifier) "manager" (compound_statement) "{\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}" ({) "{" (function_definition) "namespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}" (type_identifier) "namespace" (identifier) "main" (compound_statement) "{\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}" ({) "{" (function_definition) "class ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n}" (type_identifier) "class" (identifier) "ISM_manager" (ERROR) ": boost::noncopyable" (:) ":" (identifier) "boost" (:) ":" (:) ":" (identifier) "noncopyable" (compound_statement) "{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n}" ({) "{" (declaration) "class Impl;" (type_identifier) "class" (identifier) "Impl" (;) ";" (labeled_statement) "boost::shared_ptr<Impl> m_impl;" (statement_identifier) "boost" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "shared_ptr<Impl> m_impl;" (binary_expression) "shared_ptr<Impl> m_impl" (binary_expression) "shared_ptr<Impl" (identifier) "shared_ptr" (<) "<" (identifier) "Impl" (>) ">" (identifier) "m_impl" (;) ";" (labeled_statement) "public:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();" (statement_identifier) "public" (:) ":" (expression_statement) "std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();" (binary_expression) "std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers()" (identifier) "std" (ERROR) "::vector<boost::shared_ptr<purchaser::ism_purchaser>" (:) ":" (:) ":" (binary_expression) "vector<boost" (identifier) "vector" (<) "<" (identifier) "boost" (:) ":" (:) ":" (binary_expression) "shared_ptr<purchaser" (identifier) "shared_ptr" (<) "<" (identifier) "purchaser" (:) ":" (:) ":" (identifier) "ism_purchaser" (>) ">" (>) ">" (pointer_expression) "& purchasers()" (&) "&" (call_expression) "purchasers()" (identifier) "purchasers" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "ISM_manager();" (call_expression) "ISM_manager()" (identifier) "ISM_manager" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}" (}) "}" (}) "}" (comment) "// glite::wms::manager::main" (#endif) "#endif"
136
4
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.0, "nodes": 76, "errors": 0, "source_hash": "db54d344685907bd07797a5156e159ed2c602fe2909e609afb08fe4845e764f2", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n#define GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n\n#include <boost/noncopyable.hpp>\n#include <boost/shared_ptr.hpp>\n\n#include \"glite/wms/ism/purchaser/ism-purchaser.h\"\n\nnamespace purchaser = glite::wms::ism::purchaser;\n\nnamespace glite {\nnamespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}} // glite::wms::manager::main\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 25, 75], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 2, "type": "identifier", "text": "GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H", "parent": 0, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 42}}, {"id": 3, "type": "preproc_def", "text": "#define GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 5, "type": "identifier", "text": "GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H", "parent": 3, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 42}}, {"id": 6, "type": "preproc_include", "text": "#include <boost/noncopyable.hpp>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<boost/noncopyable.hpp>", "parent": 6, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 32}}, {"id": 9, "type": "preproc_include", "text": "#include <boost/shared_ptr.hpp>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<boost/shared_ptr.hpp>", "parent": 9, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 31}}, {"id": 12, "type": "preproc_include", "text": "#include \"glite/wms/ism/purchaser/ism-purchaser.h\"\n", "parent": 0, "children": [13, 14], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"glite/wms/ism/purchaser/ism-purchaser.h\"", "parent": 12, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 50}}, {"id": 15, "type": "declaration", "text": "namespace purchaser = glite::wms::ism::purchaser;", "parent": 0, "children": [16, 17], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 49}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 9}}, {"id": 17, "type": "init_declarator", "text": "purchaser = glite::wms::ism::purchaser", "parent": 15, "children": [18, 19, 20, 24], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 48}}, {"id": 18, "type": "identifier", "text": "purchaser", "parent": 17, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 19}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 21}}, {"id": 20, "type": "ERROR", "text": "glite::wms::ism::", "parent": 17, "children": [21, 22, 23], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 39}}, {"id": 21, "type": "identifier", "text": "glite", "parent": 20, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 27}}, {"id": 22, "type": "identifier", "text": "wms", "parent": 20, "children": [], "start_point": {"row": 30, "column": 29}, "end_point": {"row": 30, "column": 32}}, {"id": 23, "type": "identifier", "text": "ism", "parent": 20, "children": [], "start_point": {"row": 30, "column": 34}, "end_point": {"row": 30, "column": 37}}, {"id": 24, "type": "identifier", "text": "purchaser", "parent": 17, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 48}}, {"id": 25, "type": "function_definition", "text": "namespace glite {\nnamespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}}", "parent": 0, "children": [26, 27], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 46, "column": 4}}, {"id": 26, "type": "type_identifier", "text": "namespace", "parent": 25, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 9}}, {"id": 27, "type": "identifier", "text": "glite", "parent": 25, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 15}}, {"id": 28, "type": "function_definition", "text": "namespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}", "parent": 25, "children": [29, 30], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 46, "column": 3}}, {"id": 29, "type": "type_identifier", "text": "namespace", "parent": 28, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 9}}, {"id": 30, "type": "identifier", "text": "wms", "parent": 28, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 13}}, {"id": 31, "type": "function_definition", "text": "namespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}", "parent": 28, "children": [32, 33], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 46, "column": 2}}, {"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": "manager", "parent": 31, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 17}}, {"id": 34, "type": "function_definition", "text": "namespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}", "parent": 31, "children": [35, 36], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 35, "type": "type_identifier", "text": "namespace", "parent": 34, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 9}}, {"id": 36, "type": "identifier", "text": "main", "parent": 34, "children": [], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 35, "column": 14}}, {"id": 37, "type": "function_definition", "text": "class ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n}", "parent": 34, "children": [38, 39], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 44, "column": 1}}, {"id": 38, "type": "identifier", "text": "ISM_manager", "parent": 37, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 17}}, {"id": 39, "type": "ERROR", "text": ": boost::noncopyable", "parent": 37, "children": [40, 41], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 37, "column": 37}}, {"id": 40, "type": "identifier", "text": "boost", "parent": 39, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 24}}, {"id": 41, "type": "identifier", "text": "noncopyable", "parent": 39, "children": [], "start_point": {"row": 37, "column": 26}, "end_point": {"row": 37, "column": 37}}, {"id": 42, "type": "declaration", "text": "class Impl;", "parent": 37, "children": [43], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 13}}, {"id": 43, "type": "identifier", "text": "Impl", "parent": 42, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 12}}, {"id": 44, "type": "labeled_statement", "text": "boost::shared_ptr<Impl> m_impl;", "parent": 37, "children": [45], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 33}}, {"id": 45, "type": "statement_identifier", "text": "boost", "parent": 44, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 7}}, {"id": 46, "type": "binary_expression", "text": "shared_ptr<Impl> m_impl", "parent": 44, "children": [47, 51, 52], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 32}}, {"id": 47, "type": "binary_expression", "text": "shared_ptr<Impl", "parent": 46, "children": [48, 49, 50], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 24}}, {"id": 48, "type": "identifier", "text": "shared_ptr", "parent": 47, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 19}}, {"id": 49, "type": "<", "text": "<", "parent": 47, "children": [], "start_point": {"row": 40, "column": 19}, "end_point": {"row": 40, "column": 20}}, {"id": 50, "type": "identifier", "text": "Impl", "parent": 47, "children": [], "start_point": {"row": 40, "column": 20}, "end_point": {"row": 40, "column": 24}}, {"id": 51, "type": ">", "text": ">", "parent": 46, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 25}}, {"id": 52, "type": "identifier", "text": "m_impl", "parent": 46, "children": [], "start_point": {"row": 40, "column": 26}, "end_point": {"row": 40, "column": 32}}, {"id": 53, "type": "labeled_statement", "text": "public:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();", "parent": 37, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 74}}, {"id": 54, "type": "binary_expression", "text": "std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers()", "parent": 53, "children": [55, 56, 67, 68], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 73}}, {"id": 55, "type": "identifier", "text": "std", "parent": 54, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 5}}, {"id": 56, "type": "ERROR", "text": "::vector<boost::shared_ptr<purchaser::ism_purchaser>", "parent": 54, "children": [57, 61, 65, 66], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 57}}, {"id": 57, "type": "binary_expression", "text": "vector<boost", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 19}}, {"id": 58, "type": "identifier", "text": "vector", "parent": 57, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 13}}, {"id": 59, "type": "<", "text": "<", "parent": 57, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 14}}, {"id": 60, "type": "identifier", "text": "boost", "parent": 57, "children": [], "start_point": {"row": 42, "column": 14}, "end_point": {"row": 42, "column": 19}}, {"id": 61, "type": "binary_expression", "text": "shared_ptr<purchaser", "parent": 56, "children": [62, 63, 64], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 41}}, {"id": 62, "type": "identifier", "text": "shared_ptr", "parent": 61, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 31}}, {"id": 63, "type": "<", "text": "<", "parent": 61, "children": [], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 32}}, {"id": 64, "type": "identifier", "text": "purchaser", "parent": 61, "children": [], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 42, "column": 41}}, {"id": 65, "type": "identifier", "text": "ism_purchaser", "parent": 56, "children": [], "start_point": {"row": 42, "column": 43}, "end_point": {"row": 42, "column": 56}}, {"id": 66, "type": ">", "text": ">", "parent": 56, "children": [], "start_point": {"row": 42, "column": 56}, "end_point": {"row": 42, "column": 57}}, {"id": 67, "type": ">", "text": ">", "parent": 54, "children": [], "start_point": {"row": 42, "column": 58}, "end_point": {"row": 42, "column": 59}}, {"id": 68, "type": "pointer_expression", "text": "& purchasers()", "parent": 54, "children": [69], "start_point": {"row": 42, "column": 59}, "end_point": {"row": 42, "column": 73}}, {"id": 69, "type": "call_expression", "text": "purchasers()", "parent": 68, "children": [70, 71], "start_point": {"row": 42, "column": 61}, "end_point": {"row": 42, "column": 73}}, {"id": 70, "type": "identifier", "text": "purchasers", "parent": 69, "children": [], "start_point": {"row": 42, "column": 61}, "end_point": {"row": 42, "column": 71}}, {"id": 71, "type": "argument_list", "text": "()", "parent": 69, "children": [], "start_point": {"row": 42, "column": 71}, "end_point": {"row": 42, "column": 73}}, {"id": 72, "type": "call_expression", "text": "ISM_manager()", "parent": 37, "children": [73, 74], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 15}}, {"id": 73, "type": "identifier", "text": "ISM_manager", "parent": 72, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 13}}, {"id": 74, "type": "argument_list", "text": "()", "parent": 72, "children": [], "start_point": {"row": 43, "column": 13}, "end_point": {"row": 43, "column": 15}}, {"id": 75, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}]}, "node_categories": {"declarations": {"functions": [25, 28, 31, 34, 37], "variables": [15, 42], "classes": [], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [46, 47, 54, 57, 61, 68, 69, 72], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 16, 18, 21, 22, 23, 24, 26, 27, 29, 30, 32, 33, 35, 36, 38, 40, 41, 43, 45, 48, 50, 52, 55, 58, 60, 62, 64, 65, 70, 73, 75], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 25, "universal_type": "function", "name": "ISM_manager:", "text_snippet": "namespace glite {\nnamespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::no"}, {"node_id": 28, "universal_type": "function", "name": "ISM_manager:", "text_snippet": "namespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n clas"}, {"node_id": 31, "universal_type": "function", "name": "ISM_manager:", "text_snippet": "namespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost:"}, {"node_id": 34, "universal_type": "function", "name": "ISM_manager:", "text_snippet": "namespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_"}, {"node_id": 37, "universal_type": "function", "name": "ISM_manager:", "text_snippet": "class ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n st"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <boost/noncopyable.hpp>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <boost/shared_ptr.hpp>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"glite/wms/ism/purchaser/ism-purchaser.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*\nCopyright (c) Members of the EGEE Collaboration. 2004.\nSee http://www.eu-egee.org/partners/ for details on the\ncopyright holders.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\neither express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\n// File: ism_utils.h\n// Author: <NAME>, INFN\n\n#ifndef GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n#define GLITE_WMS_MANAGER_MAIN_ISM_UTILS_H\n\n#include <boost/noncopyable.hpp>\n#include <boost/shared_ptr.hpp>\n\n#include \"glite/wms/ism/purchaser/ism-purchaser.h\"\n\nnamespace purchaser = glite::wms::ism::purchaser;\n\nnamespace glite {\nnamespace wms {\nnamespace manager {\nnamespace main {\n\nclass ISM_manager: boost::noncopyable\n{\n class Impl;\n boost::shared_ptr<Impl> m_impl;\npublic:\n std::vector<boost::shared_ptr<purchaser::ism_purchaser> >& purchasers();\n ISM_manager();\n};\n\n}}}} // glite::wms::manager::main\n\n#endif\n"}
80,339
c
#ifndef _ASM_IRQ_H #define _ASM_IRQ_H /* * linux/include/asm/irq.h * * (C) 1992, 1993 <NAME>, (C) 1997 <NAME> * * IRQ/IPI changes taken from work by <NAME> * <<EMAIL>> */ #define TIMER_IRQ 0 /* * 16 8259A IRQ's, 208 potential APIC interrupt sources. * Right now the APIC is mostly only used for SMP. * 256 vectors is an architectural limit. (we can have * more than 256 devices theoretically, but they will * have to use shared interrupts) * Since vectors 0x00-0x1f are used/reserved for the CPU, * the usable vector space is 0x20-0xff (224 vectors) */ #define NR_IRQS 224 static __inline__ int irq_cannonicalize(int irq) { return ((irq == 2) ? 9 : irq); } extern void disable_irq(unsigned int); extern void disable_irq_nosync(unsigned int); extern void enable_irq(unsigned int); #endif /* _ASM_IRQ_H */
27.28
29
(translation_unit) "#ifndef _ASM_IRQ_H\n#define _ASM_IRQ_H\n\n/*\n * linux/include/asm/irq.h\n *\n * (C) 1992, 1993 <NAME>, (C) 1997 <NAME>\n *\n * IRQ/IPI changes taken from work by <NAME>\n * <<EMAIL>>\n */\n\n#define TIMER_IRQ 0\n\n/*\n * 16 8259A IRQ's, 208 potential APIC interrupt sources.\n * Right now the APIC is mostly only used for SMP.\n * 256 vectors is an architectural limit. (we can have\n * more than 256 devices theoretically, but they will\n * have to use shared interrupts)\n * Since vectors 0x00-0x1f are used/reserved for the CPU,\n * the usable vector space is 0x20-0xff (224 vectors)\n */\n#define NR_IRQS 224\n\nstatic __inline__ int irq_cannonicalize(int irq)\n{\n return ((irq == 2) ? 9 : irq);\n}\n\nextern void disable_irq(unsigned int);\nextern void disable_irq_nosync(unsigned int);\nextern void enable_irq(unsigned int);\n\n#endif /* _ASM_IRQ_H */\n" (preproc_ifdef) "#ifndef _ASM_IRQ_H\n#define _ASM_IRQ_H\n\n/*\n * linux/include/asm/irq.h\n *\n * (C) 1992, 1993 <NAME>, (C) 1997 <NAME>\n *\n * IRQ/IPI changes taken from work by <NAME>\n * <<EMAIL>>\n */\n\n#define TIMER_IRQ 0\n\n/*\n * 16 8259A IRQ's, 208 potential APIC interrupt sources.\n * Right now the APIC is mostly only used for SMP.\n * 256 vectors is an architectural limit. (we can have\n * more than 256 devices theoretically, but they will\n * have to use shared interrupts)\n * Since vectors 0x00-0x1f are used/reserved for the CPU,\n * the usable vector space is 0x20-0xff (224 vectors)\n */\n#define NR_IRQS 224\n\nstatic __inline__ int irq_cannonicalize(int irq)\n{\n return ((irq == 2) ? 9 : irq);\n}\n\nextern void disable_irq(unsigned int);\nextern void disable_irq_nosync(unsigned int);\nextern void enable_irq(unsigned int);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_ASM_IRQ_H" (preproc_def) "#define _ASM_IRQ_H\n" (#define) "#define" (identifier) "_ASM_IRQ_H" (comment) "/*\n * linux/include/asm/irq.h\n *\n * (C) 1992, 1993 <NAME>, (C) 1997 <NAME>\n *\n * IRQ/IPI changes taken from work by <NAME>\n * <<EMAIL>>\n */" (preproc_def) "#define TIMER_IRQ 0\n" (#define) "#define" (identifier) "TIMER_IRQ" (preproc_arg) "0" (comment) "/*\n * 16 8259A IRQ's, 208 potential APIC interrupt sources.\n * Right now the APIC is mostly only used for SMP.\n * 256 vectors is an architectural limit. (we can have\n * more than 256 devices theoretically, but they will\n * have to use shared interrupts)\n * Since vectors 0x00-0x1f are used/reserved for the CPU,\n * the usable vector space is 0x20-0xff (224 vectors)\n */" (preproc_def) "#define NR_IRQS 224\n" (#define) "#define" (identifier) "NR_IRQS" (preproc_arg) "224" (function_definition) "static __inline__ int irq_cannonicalize(int irq)\n{\n return ((irq == 2) ? 9 : irq);\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "__inline__" (__inline__) "__inline__" (primitive_type) "int" (function_declarator) "irq_cannonicalize(int irq)" (identifier) "irq_cannonicalize" (parameter_list) "(int irq)" (() "(" (parameter_declaration) "int irq" (primitive_type) "int" (identifier) "irq" ()) ")" (compound_statement) "{\n return ((irq == 2) ? 9 : irq);\n}" ({) "{" (return_statement) "return ((irq == 2) ? 9 : irq);" (return) "return" (parenthesized_expression) "((irq == 2) ? 9 : irq)" (() "(" (conditional_expression) "(irq == 2) ? 9 : irq" (parenthesized_expression) "(irq == 2)" (() "(" (binary_expression) "irq == 2" (identifier) "irq" (==) "==" (number_literal) "2" ()) ")" (?) "?" (number_literal) "9" (:) ":" (identifier) "irq" ()) ")" (;) ";" (}) "}" (declaration) "extern void disable_irq(unsigned int);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "disable_irq(unsigned int)" (identifier) "disable_irq" (parameter_list) "(unsigned int)" (() "(" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (;) ";" (declaration) "extern void disable_irq_nosync(unsigned int);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "disable_irq_nosync(unsigned int)" (identifier) "disable_irq_nosync" (parameter_list) "(unsigned int)" (() "(" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (;) ";" (declaration) "extern void enable_irq(unsigned int);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (function_declarator) "enable_irq(unsigned int)" (identifier) "enable_irq" (parameter_list) "(unsigned int)" (() "(" (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* _ASM_IRQ_H */"
96
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 27.28, "nodes": 69, "errors": 0, "source_hash": "0b39d5f2882171ad65d663014bfbfebd71e905a9adeaf0df13964e9461ff3cd4", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _ASM_IRQ_H\n#define _ASM_IRQ_H\n\n/*\n *\tlinux/include/asm/irq.h\n *\n *\t(C) 1992, 1993 <NAME>, (C) 1997 <NAME>\n *\n *\tIRQ/IPI changes taken from work by <NAME>\n *\t<<EMAIL>>\n */\n\n#define TIMER_IRQ 0\n\n/*\n * 16 8259A IRQ's, 208 potential APIC interrupt sources.\n * Right now the APIC is mostly only used for SMP.\n * 256 vectors is an architectural limit. (we can have\n * more than 256 devices theoretically, but they will\n * have to use shared interrupts)\n * Since vectors 0x00-0x1f are used/reserved for the CPU,\n * the usable vector space is 0x20-0xff (224 vectors)\n */\n#define NR_IRQS 224\n\nstatic __inline__ int irq_cannonicalize(int irq)\n{\n\treturn ((irq == 2) ? 9 : irq);\n}\n\nextern void disable_irq(unsigned int);\nextern void disable_irq_nosync(unsigned int);\nextern void enable_irq(unsigned int);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 10, 14, 35, 46, 57, 68], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 34, "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": "_ASM_IRQ_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_def", "text": "#define _ASM_IRQ_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": "_ASM_IRQ_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_def", "text": "#define TIMER_IRQ 0\n", "parent": 0, "children": [7, 8, 9], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 8, "type": "identifier", "text": "TIMER_IRQ", "parent": 6, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 17}}, {"id": 9, "type": "preproc_arg", "text": "0", "parent": 6, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 19}}, {"id": 10, "type": "preproc_def", "text": "#define NR_IRQS 224\n", "parent": 0, "children": [11, 12, 13], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 11, "type": "#define", "text": "#define", "parent": 10, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 12, "type": "identifier", "text": "NR_IRQS", "parent": 10, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 15}}, {"id": 13, "type": "preproc_arg", "text": "224", "parent": 10, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 19}}, {"id": 14, "type": "function_definition", "text": "static __inline__ int irq_cannonicalize(int irq)\n{\n\treturn ((irq == 2) ? 9 : irq);\n}", "parent": 0, "children": [15, 17, 18], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 15, "type": "storage_class_specifier", "text": "__inline__", "parent": 14, "children": [16], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 17}}, {"id": 16, "type": "__inline__", "text": "__inline__", "parent": 15, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 17}}, {"id": 17, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 21}}, {"id": 18, "type": "function_declarator", "text": "irq_cannonicalize(int irq)", "parent": 14, "children": [19, 20], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 48}}, {"id": 19, "type": "identifier", "text": "irq_cannonicalize", "parent": 18, "children": [], "start_point": {"row": 25, "column": 22}, "end_point": {"row": 25, "column": 39}}, {"id": 20, "type": "parameter_list", "text": "(int irq)", "parent": 18, "children": [21], "start_point": {"row": 25, "column": 39}, "end_point": {"row": 25, "column": 48}}, {"id": 21, "type": "parameter_declaration", "text": "int irq", "parent": 20, "children": [22, 23], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 47}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 43}}, {"id": 23, "type": "identifier", "text": "irq", "parent": 21, "children": [], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 47}}, {"id": 24, "type": "return_statement", "text": "return ((irq == 2) ? 9 : irq);", "parent": 14, "children": [25], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 31}}, {"id": 25, "type": "parenthesized_expression", "text": "((irq == 2) ? 9 : irq)", "parent": 24, "children": [26], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 30}}, {"id": 26, "type": "conditional_expression", "text": "(irq == 2) ? 9 : irq", "parent": 25, "children": [27, 32, 33, 34], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 29}}, {"id": 27, "type": "parenthesized_expression", "text": "(irq == 2)", "parent": 26, "children": [28], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 19}}, {"id": 28, "type": "binary_expression", "text": "irq == 2", "parent": 27, "children": [29, 30, 31], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 18}}, {"id": 29, "type": "identifier", "text": "irq", "parent": 28, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 13}}, {"id": 30, "type": "==", "text": "==", "parent": 28, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 16}}, {"id": 31, "type": "number_literal", "text": "2", "parent": 28, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 18}}, {"id": 32, "type": "?", "text": "?", "parent": 26, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 33, "type": "number_literal", "text": "9", "parent": 26, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 34, "type": "identifier", "text": "irq", "parent": 26, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 29}}, {"id": 35, "type": "declaration", "text": "extern void disable_irq(unsigned int);", "parent": 0, "children": [36, 38, 39], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 38}}, {"id": 36, "type": "storage_class_specifier", "text": "extern", "parent": 35, "children": [37], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 37, "type": "extern", "text": "extern", "parent": 36, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 6}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 35, "children": [], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 11}}, {"id": 39, "type": "function_declarator", "text": "disable_irq(unsigned int)", "parent": 35, "children": [40, 41], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 37}}, {"id": 40, "type": "identifier", "text": "disable_irq", "parent": 39, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 23}}, {"id": 41, "type": "parameter_list", "text": "(unsigned int)", "parent": 39, "children": [42], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 37}}, {"id": 42, "type": "parameter_declaration", "text": "unsigned int", "parent": 41, "children": [43], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 36}}, {"id": 43, "type": "sized_type_specifier", "text": "unsigned int", "parent": 42, "children": [44, 45], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 36}}, {"id": 44, "type": "unsigned", "text": "unsigned", "parent": 43, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 32}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 36}}, {"id": 46, "type": "declaration", "text": "extern void disable_irq_nosync(unsigned int);", "parent": 0, "children": [47, 49, 50], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 45}}, {"id": 47, "type": "storage_class_specifier", "text": "extern", "parent": 46, "children": [48], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 48, "type": "extern", "text": "extern", "parent": 47, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 46, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 11}}, {"id": 50, "type": "function_declarator", "text": "disable_irq_nosync(unsigned int)", "parent": 46, "children": [51, 52], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 44}}, {"id": 51, "type": "identifier", "text": "disable_irq_nosync", "parent": 50, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 30}}, {"id": 52, "type": "parameter_list", "text": "(unsigned int)", "parent": 50, "children": [53], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 44}}, {"id": 53, "type": "parameter_declaration", "text": "unsigned int", "parent": 52, "children": [54], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 43}}, {"id": 54, "type": "sized_type_specifier", "text": "unsigned int", "parent": 53, "children": [55, 56], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 43}}, {"id": 55, "type": "unsigned", "text": "unsigned", "parent": 54, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 39}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 43}}, {"id": 57, "type": "declaration", "text": "extern void enable_irq(unsigned int);", "parent": 0, "children": [58, 60, 61], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 37}}, {"id": 58, "type": "storage_class_specifier", "text": "extern", "parent": 57, "children": [59], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 59, "type": "extern", "text": "extern", "parent": 58, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 11}}, {"id": 61, "type": "function_declarator", "text": "enable_irq(unsigned int)", "parent": 57, "children": [62, 63], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 36}}, {"id": 62, "type": "identifier", "text": "enable_irq", "parent": 61, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 22}}, {"id": 63, "type": "parameter_list", "text": "(unsigned int)", "parent": 61, "children": [64], "start_point": {"row": 32, "column": 22}, "end_point": {"row": 32, "column": 36}}, {"id": 64, "type": "parameter_declaration", "text": "unsigned int", "parent": 63, "children": [65], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 35}}, {"id": 65, "type": "sized_type_specifier", "text": "unsigned int", "parent": 64, "children": [66, 67], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 35}}, {"id": 66, "type": "unsigned", "text": "unsigned", "parent": 65, "children": [], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 32, "column": 31}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 32, "column": 32}, "end_point": {"row": 32, "column": 35}}, {"id": 68, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 6}}]}, "node_categories": {"declarations": {"functions": [14, 18, 39, 50, 61], "variables": [21, 35, 42, 46, 53, 57, 64], "classes": [15, 36, 47, 58], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [25, 27, 28], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 8, 12, 19, 23, 26, 29, 34, 40, 43, 51, 54, 62, 65, 68], "returns": [24], "exceptions": []}, "expressions": {"calls": [], "literals": [31, 33], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 14, "universal_type": "function", "name": "irq_cannonicalize", "text_snippet": "static __inline__ int irq_cannonicalize(int irq)\n{\n\treturn ((irq == 2) ? 9 : irq);\n}"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "irq_cannonicalize(int irq)"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "disable_irq(unsigned int)"}, {"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "disable_irq_nosync(unsigned int)"}, {"node_id": 61, "universal_type": "function", "name": "unknown", "text_snippet": "enable_irq(unsigned int)"}], "class_declarations": [{"node_id": 15, "universal_type": "class", "name": "unknown", "text_snippet": "__inline__"}, {"node_id": 36, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 47, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 58, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "#ifndef _ASM_IRQ_H\n#define _ASM_IRQ_H\n\n/*\n *\tlinux/include/asm/irq.h\n *\n *\t(C) 1992, 1993 <NAME>, (C) 1997 <NAME>\n *\n *\tIRQ/IPI changes taken from work by <NAME>\n *\t<<EMAIL>>\n */\n\n#define TIMER_IRQ 0\n\n/*\n * 16 8259A IRQ's, 208 potential APIC interrupt sources.\n * Right now the APIC is mostly only used for SMP.\n * 256 vectors is an architectural limit. (we can have\n * more than 256 devices theoretically, but they will\n * have to use shared interrupts)\n * Since vectors 0x00-0x1f are used/reserved for the CPU,\n * the usable vector space is 0x20-0xff (224 vectors)\n */\n#define NR_IRQS 224\n\nstatic __inline__ int irq_cannonicalize(int irq)\n{\n\treturn ((irq == 2) ? 9 : irq);\n}\n\nextern void disable_irq(unsigned int);\nextern void disable_irq_nosync(unsigned int);\nextern void enable_irq(unsigned int);\n\n#endif /* _ASM_IRQ_H */\n"}
80,340
c
#pragma once #include "LibLsp/JsonRpc/RequestInMessage.h" #include "LibLsp/JsonRpc/lsResponseMessage.h" #include <LibLsp/lsp/lsCodeAction.h> #include "LibLsp/lsp/CodeActionParams.h" struct LspVariableBinding { std::string bindingKey; std::string name; std::string type; bool isField; void swap(LspVariableBinding& arg) noexcept { bindingKey.swap(arg.bindingKey); name.swap(arg.name); type.swap(arg.type); std::swap(isField, arg.isField); } }; MAKE_REFLECT_STRUCT(LspVariableBinding, bindingKey, name, type, isField) struct CheckHashCodeEqualsResponse { std::string type; std::vector<LspVariableBinding> fields; std::vector<std::string> existingMethods; MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods) }; MAKE_REFLECT_STRUCT(CheckHashCodeEqualsResponse, type, fields, type, existingMethods) DEFINE_REQUEST_RESPONSE_TYPE(java_checkHashCodeEqualsStatus, lsCodeActionParams, CheckHashCodeEqualsResponse, "java/checkHashCodeEqualsStatus")
34.5
28
(translation_unit) "#pragma once\n\n#include "LibLsp/JsonRpc/RequestInMessage.h"\n#include "LibLsp/JsonRpc/lsResponseMessage.h"\n\n#include <LibLsp/lsp/lsCodeAction.h>\n\n#include "LibLsp/lsp/CodeActionParams.h"\n\nstruct LspVariableBinding {\n std::string bindingKey;\n std::string name;\n std::string type;\n bool isField;\n void swap(LspVariableBinding& arg) noexcept\n {\n bindingKey.swap(arg.bindingKey);\n name.swap(arg.name);\n type.swap(arg.type);\n std::swap(isField, arg.isField);\n }\n};\nMAKE_REFLECT_STRUCT(LspVariableBinding, bindingKey, name, type, isField)\n\nstruct CheckHashCodeEqualsResponse {\n std::string type;\n std::vector<LspVariableBinding> fields;\n std::vector<std::string> existingMethods;\n MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)\n};\nMAKE_REFLECT_STRUCT(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)\n\nDEFINE_REQUEST_RESPONSE_TYPE(java_checkHashCodeEqualsStatus,\n lsCodeActionParams, CheckHashCodeEqualsResponse, "java/checkHashCodeEqualsStatus")\n\n\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "LibLsp/JsonRpc/RequestInMessage.h"\n" (#include) "#include" (string_literal) ""LibLsp/JsonRpc/RequestInMessage.h"" (") """ (string_content) "LibLsp/JsonRpc/RequestInMessage.h" (") """ (preproc_include) "#include "LibLsp/JsonRpc/lsResponseMessage.h"\n" (#include) "#include" (string_literal) ""LibLsp/JsonRpc/lsResponseMessage.h"" (") """ (string_content) "LibLsp/JsonRpc/lsResponseMessage.h" (") """ (preproc_include) "#include <LibLsp/lsp/lsCodeAction.h>\n" (#include) "#include" (system_lib_string) "<LibLsp/lsp/lsCodeAction.h>" (preproc_include) "#include "LibLsp/lsp/CodeActionParams.h"\n" (#include) "#include" (string_literal) ""LibLsp/lsp/CodeActionParams.h"" (") """ (string_content) "LibLsp/lsp/CodeActionParams.h" (") """ (struct_specifier) "struct LspVariableBinding {\n std::string bindingKey;\n std::string name;\n std::string type;\n bool isField;\n void swap(LspVariableBinding& arg) noexcept\n {\n bindingKey.swap(arg.bindingKey);\n name.swap(arg.name);\n type.swap(arg.type);\n std::swap(isField, arg.isField);\n }" (struct) "struct" (type_identifier) "LspVariableBinding" (field_declaration_list) "{\n std::string bindingKey;\n std::string name;\n std::string type;\n bool isField;\n void swap(LspVariableBinding& arg) noexcept\n {\n bindingKey.swap(arg.bindingKey);\n name.swap(arg.name);\n type.swap(arg.type);\n std::swap(isField, arg.isField);\n }" ({) "{" (field_declaration) "std::string bindingKey;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "bindingKey" (;) ";" (field_declaration) "std::string name;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "name" (;) ";" (field_declaration) "std::string type;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "type" (;) ";" (field_declaration) "bool isField;" (primitive_type) "bool" (field_identifier) "isField" (;) ";" (field_declaration) "void swap(LspVariableBinding& arg) noexcept\n {\n bindingKey.swap(arg.bindingKey);" (primitive_type) "void" (ERROR) "swap(LspVariableBinding& arg) noexcept\n {\n bindingKey." (function_declarator) "swap(LspVariableBinding& arg)" (field_identifier) "swap" (parameter_list) "(LspVariableBinding& arg)" (() "(" (parameter_declaration) "LspVariableBinding& arg" (type_identifier) "LspVariableBinding" (ERROR) "&" (&) "&" (identifier) "arg" ()) ")" (identifier) "noexcept" ({) "{" (field_identifier) "bindingKey" (.) "." (function_declarator) "swap(arg.bindingKey)" (field_identifier) "swap" (parameter_list) "(arg.bindingKey)" (() "(" (parameter_declaration) "arg.bindingKey" (type_identifier) "arg" (ERROR) "." (.) "." (identifier) "bindingKey" ()) ")" (;) ";" (field_declaration) "name.swap(arg.name);" (type_identifier) "name" (ERROR) "." (.) "." (function_declarator) "swap(arg.name)" (field_identifier) "swap" (parameter_list) "(arg.name)" (() "(" (parameter_declaration) "arg.name" (type_identifier) "arg" (ERROR) "." (.) "." (identifier) "name" ()) ")" (;) ";" (field_declaration) "type.swap(arg.type);" (type_identifier) "type" (ERROR) "." (.) "." (function_declarator) "swap(arg.type)" (field_identifier) "swap" (parameter_list) "(arg.type)" (() "(" (parameter_declaration) "arg.type" (type_identifier) "arg" (ERROR) "." (.) "." (identifier) "type" ()) ")" (;) ";" (field_declaration) "std::swap(isField, arg.isField);" (type_identifier) "std" (ERROR) "::" (:) ":" (:) ":" (function_declarator) "swap(isField, arg.isField)" (field_identifier) "swap" (parameter_list) "(isField, arg.isField)" (() "(" (parameter_declaration) "isField" (type_identifier) "isField" (,) "," (parameter_declaration) "arg.isField" (type_identifier) "arg" (ERROR) "." (.) "." (identifier) "isField" ()) ")" (;) ";" (}) "}" (ERROR) "}" (}) "}" (;) ";" (expression_statement) "MAKE_REFLECT_STRUCT(LspVariableBinding, bindingKey, name, type, isField)" (call_expression) "MAKE_REFLECT_STRUCT(LspVariableBinding, bindingKey, name, type, isField)" (identifier) "MAKE_REFLECT_STRUCT" (argument_list) "(LspVariableBinding, bindingKey, name, type, isField)" (() "(" (identifier) "LspVariableBinding" (,) "," (identifier) "bindingKey" (,) "," (identifier) "name" (,) "," (identifier) "type" (,) "," (identifier) "isField" ()) ")" (;) "" (struct_specifier) "struct CheckHashCodeEqualsResponse {\n std::string type;\n std::vector<LspVariableBinding> fields;\n std::vector<std::string> existingMethods;\n MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)\n}" (struct) "struct" (type_identifier) "CheckHashCodeEqualsResponse" (field_declaration_list) "{\n std::string type;\n std::vector<LspVariableBinding> fields;\n std::vector<std::string> existingMethods;\n MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)\n}" ({) "{" (field_declaration) "std::string type;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (field_identifier) "string" (field_identifier) "type" (;) ";" (field_declaration) "std::vector<LspVariableBinding> fields;" (type_identifier) "std" (ERROR) "::vector<LspVariableBinding>" (:) ":" (:) ":" (field_identifier) "vector" (<) "<" (field_identifier) "LspVariableBinding" (>) ">" (field_identifier) "fields" (;) ";" (field_declaration) "std::vector<std::string> existingMethods;" (type_identifier) "std" (ERROR) "::vector<" (:) ":" (:) ":" (field_identifier) "vector" (<) "<" (field_identifier) "std" (ERROR) ":" (:) ":" (bitfield_clause) ":string> existingMethods" (:) ":" (binary_expression) "string> existingMethods" (identifier) "string" (>) ">" (identifier) "existingMethods" (;) ";" (field_declaration) "MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)" (macro_type_specifier) "MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)" (identifier) "MAKE_SWAP_METHOD" (() "(" (type_descriptor) "CheckHashCodeEqualsResponse" (type_identifier) "CheckHashCodeEqualsResponse" (ERROR) ", type, fields, type, existingMethods" (,) "," (identifier) "type" (,) "," (identifier) "fields" (,) "," (identifier) "type" (,) "," (identifier) "existingMethods" ()) ")" (;) "" (}) "}" (;) ";" (expression_statement) "MAKE_REFLECT_STRUCT(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)" (call_expression) "MAKE_REFLECT_STRUCT(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)" (identifier) "MAKE_REFLECT_STRUCT" (argument_list) "(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)" (() "(" (identifier) "CheckHashCodeEqualsResponse" (,) "," (identifier) "type" (,) "," (identifier) "fields" (,) "," (identifier) "type" (,) "," (identifier) "existingMethods" ()) ")" (;) "" (expression_statement) "DEFINE_REQUEST_RESPONSE_TYPE(java_checkHashCodeEqualsStatus,\n lsCodeActionParams, CheckHashCodeEqualsResponse, "java/checkHashCodeEqualsStatus")" (call_expression) "DEFINE_REQUEST_RESPONSE_TYPE(java_checkHashCodeEqualsStatus,\n lsCodeActionParams, CheckHashCodeEqualsResponse, "java/checkHashCodeEqualsStatus")" (identifier) "DEFINE_REQUEST_RESPONSE_TYPE" (argument_list) "(java_checkHashCodeEqualsStatus,\n lsCodeActionParams, CheckHashCodeEqualsResponse, "java/checkHashCodeEqualsStatus")" (() "(" (identifier) "java_checkHashCodeEqualsStatus" (,) "," (identifier) "lsCodeActionParams" (,) "," (identifier) "CheckHashCodeEqualsResponse" (,) "," (string_literal) ""java/checkHashCodeEqualsStatus"" (") """ (string_content) "java/checkHashCodeEqualsStatus" (") """ ()) ")" (;) ""
248
18
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 34.5, "nodes": 139, "errors": 0, "source_hash": "95b2aefd591f8f8bd52d8284a1e1f5f9d3a275fc1a2bdc3dc295238d09eacbb1", "categorized_nodes": 114}, "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 \"LibLsp/JsonRpc/RequestInMessage.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": "\"LibLsp/JsonRpc/RequestInMessage.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 44}}, {"id": 6, "type": "preproc_include", "text": "#include \"LibLsp/JsonRpc/lsResponseMessage.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": "\"LibLsp/JsonRpc/lsResponseMessage.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 45}}, {"id": 9, "type": "preproc_include", "text": "#include <LibLsp/lsp/lsCodeAction.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": "<LibLsp/lsp/lsCodeAction.h>", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 36}}, {"id": 12, "type": "preproc_include", "text": "#include \"LibLsp/lsp/CodeActionParams.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"LibLsp/lsp/CodeActionParams.h\"", "parent": 12, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 40}}, {"id": 15, "type": "struct_specifier", "text": "struct LspVariableBinding {\n\tstd::string bindingKey;\n\tstd::string name;\n\tstd::string type;\n\tbool isField;\n\tvoid swap(LspVariableBinding& arg) noexcept\n\t{\n\t\tbindingKey.swap(arg.bindingKey);\n\t\tname.swap(arg.name);\n\t\ttype.swap(arg.type);\n\t\tstd::swap(isField, arg.isField);\n\t}", "parent": null, "children": [16, 17], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 20, "column": 2}}, {"id": 16, "type": "struct", "text": "struct", "parent": 15, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 17, "type": "type_identifier", "text": "LspVariableBinding", "parent": 15, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 25}}, {"id": 18, "type": "field_declaration", "text": "std::string bindingKey;", "parent": 15, "children": [19, 20, 22], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 24}}, {"id": 19, "type": "type_identifier", "text": "std", "parent": 18, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 4}}, {"id": 20, "type": "ERROR", "text": "::string", "parent": 18, "children": [21], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 12}}, {"id": 21, "type": "field_identifier", "text": "string", "parent": 20, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 12}}, {"id": 22, "type": "field_identifier", "text": "bindingKey", "parent": 18, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 23}}, {"id": 23, "type": "field_declaration", "text": "std::string name;", "parent": 15, "children": [24, 25, 27], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 18}}, {"id": 24, "type": "type_identifier", "text": "std", "parent": 23, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 4}}, {"id": 25, "type": "ERROR", "text": "::string", "parent": 23, "children": [26], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 12}}, {"id": 26, "type": "field_identifier", "text": "string", "parent": 25, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 12}}, {"id": 27, "type": "field_identifier", "text": "name", "parent": 23, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 17}}, {"id": 28, "type": "field_declaration", "text": "std::string type;", "parent": 15, "children": [29, 30, 32], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 18}}, {"id": 29, "type": "type_identifier", "text": "std", "parent": 28, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 4}}, {"id": 30, "type": "ERROR", "text": "::string", "parent": 28, "children": [31], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 12}}, {"id": 31, "type": "field_identifier", "text": "string", "parent": 30, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 12}}, {"id": 32, "type": "field_identifier", "text": "type", "parent": 28, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 17}}, {"id": 33, "type": "field_declaration", "text": "bool isField;", "parent": 15, "children": [34, 35], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 14}}, {"id": 34, "type": "primitive_type", "text": "bool", "parent": 33, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 5}}, {"id": 35, "type": "field_identifier", "text": "isField", "parent": 33, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 13}}, {"id": 36, "type": "field_declaration", "text": "void swap(LspVariableBinding& arg) noexcept\n\t{\n\t\tbindingKey.swap(arg.bindingKey);", "parent": 15, "children": [37, 38, 47], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 16, "column": 34}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 5}}, {"id": 38, "type": "ERROR", "text": "swap(LspVariableBinding& arg) noexcept\n\t{\n\t\tbindingKey.", "parent": 36, "children": [39, 45, 46], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 16, "column": 13}}, {"id": 39, "type": "function_declarator", "text": "swap(LspVariableBinding& arg)", "parent": 38, "children": [40, 41], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 35}}, {"id": 40, "type": "field_identifier", "text": "swap", "parent": 39, "children": [], "start_point": {"row": 14, "column": 6}, "end_point": {"row": 14, "column": 10}}, {"id": 41, "type": "parameter_list", "text": "(LspVariableBinding& arg)", "parent": 39, "children": [42], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 35}}, {"id": 42, "type": "parameter_declaration", "text": "LspVariableBinding& arg", "parent": 41, "children": [43, 44], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 34}}, {"id": 43, "type": "type_identifier", "text": "LspVariableBinding", "parent": 42, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 29}}, {"id": 44, "type": "identifier", "text": "arg", "parent": 42, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 34}}, {"id": 45, "type": "identifier", "text": "noexcept", "parent": 38, "children": [], "start_point": {"row": 14, "column": 36}, "end_point": {"row": 14, "column": 44}}, {"id": 46, "type": "field_identifier", "text": "bindingKey", "parent": 38, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 12}}, {"id": 47, "type": "function_declarator", "text": "swap(arg.bindingKey)", "parent": 36, "children": [48, 49], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 33}}, {"id": 48, "type": "field_identifier", "text": "swap", "parent": 47, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 17}}, {"id": 49, "type": "parameter_list", "text": "(arg.bindingKey)", "parent": 47, "children": [50], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 33}}, {"id": 50, "type": "parameter_declaration", "text": "arg.bindingKey", "parent": 49, "children": [51, 52], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 32}}, {"id": 51, "type": "type_identifier", "text": "arg", "parent": 50, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 21}}, {"id": 52, "type": "identifier", "text": "bindingKey", "parent": 50, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 32}}, {"id": 53, "type": "field_declaration", "text": "name.swap(arg.name);", "parent": 15, "children": [54, 55], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 22}}, {"id": 54, "type": "type_identifier", "text": "name", "parent": 53, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 55, "type": "function_declarator", "text": "swap(arg.name)", "parent": 53, "children": [56, 57], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 21}}, {"id": 56, "type": "field_identifier", "text": "swap", "parent": 55, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 11}}, {"id": 57, "type": "parameter_list", "text": "(arg.name)", "parent": 55, "children": [58], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 21}}, {"id": 58, "type": "parameter_declaration", "text": "arg.name", "parent": 57, "children": [59, 60], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 20}}, {"id": 59, "type": "type_identifier", "text": "arg", "parent": 58, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 15}}, {"id": 60, "type": "identifier", "text": "name", "parent": 58, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 20}}, {"id": 61, "type": "field_declaration", "text": "type.swap(arg.type);", "parent": 15, "children": [62, 63], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 22}}, {"id": 62, "type": "type_identifier", "text": "type", "parent": 61, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 63, "type": "function_declarator", "text": "swap(arg.type)", "parent": 61, "children": [64, 65], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 21}}, {"id": 64, "type": "field_identifier", "text": "swap", "parent": 63, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 11}}, {"id": 65, "type": "parameter_list", "text": "(arg.type)", "parent": 63, "children": [66], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 21}}, {"id": 66, "type": "parameter_declaration", "text": "arg.type", "parent": 65, "children": [67, 68], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 20}}, {"id": 67, "type": "type_identifier", "text": "arg", "parent": 66, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 15}}, {"id": 68, "type": "identifier", "text": "type", "parent": 66, "children": [], "start_point": {"row": 18, "column": 16}, "end_point": {"row": 18, "column": 20}}, {"id": 69, "type": "field_declaration", "text": "std::swap(isField, arg.isField);", "parent": 15, "children": [70, 71], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 34}}, {"id": 70, "type": "type_identifier", "text": "std", "parent": 69, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 5}}, {"id": 71, "type": "function_declarator", "text": "swap(isField, arg.isField)", "parent": 69, "children": [72, 73], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 33}}, {"id": 72, "type": "field_identifier", "text": "swap", "parent": 71, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 11}}, {"id": 73, "type": "parameter_list", "text": "(isField, arg.isField)", "parent": 71, "children": [74, 76], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 33}}, {"id": 74, "type": "parameter_declaration", "text": "isField", "parent": 73, "children": [75], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 19}}, {"id": 75, "type": "type_identifier", "text": "isField", "parent": 74, "children": [], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 19}}, {"id": 76, "type": "parameter_declaration", "text": "arg.isField", "parent": 73, "children": [77, 78], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 32}}, {"id": 77, "type": "type_identifier", "text": "arg", "parent": 76, "children": [], "start_point": {"row": 19, "column": 21}, "end_point": {"row": 19, "column": 24}}, {"id": 78, "type": "identifier", "text": "isField", "parent": 76, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 32}}, {"id": 79, "type": "call_expression", "text": "MAKE_REFLECT_STRUCT(LspVariableBinding, bindingKey, name, type, isField)", "parent": null, "children": [80, 81], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 72}}, {"id": 80, "type": "identifier", "text": "MAKE_REFLECT_STRUCT", "parent": 79, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 19}}, {"id": 81, "type": "argument_list", "text": "(LspVariableBinding, bindingKey, name, type, isField)", "parent": 79, "children": [82, 83, 84, 85, 86], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 72}}, {"id": 82, "type": "identifier", "text": "LspVariableBinding", "parent": 81, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 38}}, {"id": 83, "type": "identifier", "text": "bindingKey", "parent": 81, "children": [], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 50}}, {"id": 84, "type": "identifier", "text": "name", "parent": 81, "children": [], "start_point": {"row": 22, "column": 52}, "end_point": {"row": 22, "column": 56}}, {"id": 85, "type": "identifier", "text": "type", "parent": 81, "children": [], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 62}}, {"id": 86, "type": "identifier", "text": "isField", "parent": 81, "children": [], "start_point": {"row": 22, "column": 64}, "end_point": {"row": 22, "column": 71}}, {"id": 87, "type": "struct_specifier", "text": "struct CheckHashCodeEqualsResponse {\n\t std::string type;\n\t std::vector<LspVariableBinding> fields;\n\t std::vector<std::string> existingMethods;\n\t MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)\n}", "parent": null, "children": [88, 89], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 88, "type": "struct", "text": "struct", "parent": 87, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 89, "type": "type_identifier", "text": "CheckHashCodeEqualsResponse", "parent": 87, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 34}}, {"id": 90, "type": "field_declaration", "text": "std::string type;", "parent": 87, "children": [91, 92, 94], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 19}}, {"id": 91, "type": "type_identifier", "text": "std", "parent": 90, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 5}}, {"id": 92, "type": "ERROR", "text": "::string", "parent": 90, "children": [93], "start_point": {"row": 25, "column": 5}, "end_point": {"row": 25, "column": 13}}, {"id": 93, "type": "field_identifier", "text": "string", "parent": 92, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 13}}, {"id": 94, "type": "field_identifier", "text": "type", "parent": 90, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 18}}, {"id": 95, "type": "field_declaration", "text": "std::vector<LspVariableBinding> fields;", "parent": 87, "children": [96, 97, 102], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 42}}, {"id": 96, "type": "type_identifier", "text": "std", "parent": 95, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 5}}, {"id": 97, "type": "ERROR", "text": "::vector<LspVariableBinding>", "parent": 95, "children": [98, 99, 100, 101], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 26, "column": 33}}, {"id": 98, "type": "field_identifier", "text": "vector", "parent": 97, "children": [], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 13}}, {"id": 99, "type": "<", "text": "<", "parent": 97, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 100, "type": "field_identifier", "text": "LspVariableBinding", "parent": 97, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 32}}, {"id": 101, "type": ">", "text": ">", "parent": 97, "children": [], "start_point": {"row": 26, "column": 32}, "end_point": {"row": 26, "column": 33}}, {"id": 102, "type": "field_identifier", "text": "fields", "parent": 95, "children": [], "start_point": {"row": 26, "column": 35}, "end_point": {"row": 26, "column": 41}}, {"id": 103, "type": "field_declaration", "text": "std::vector<std::string> existingMethods;", "parent": 87, "children": [104, 105, 108, 109], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 43}}, {"id": 104, "type": "type_identifier", "text": "std", "parent": 103, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 5}}, {"id": 105, "type": "ERROR", "text": "::vector<", "parent": 103, "children": [106, 107], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 14}}, {"id": 106, "type": "field_identifier", "text": "vector", "parent": 105, "children": [], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 13}}, {"id": 107, "type": "<", "text": "<", "parent": 105, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 108, "type": "field_identifier", "text": "std", "parent": 103, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 17}}, {"id": 109, "type": "bitfield_clause", "text": ":string> existingMethods", "parent": 103, "children": [110], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 42}}, {"id": 110, "type": "binary_expression", "text": "string> existingMethods", "parent": 109, "children": [111, 112, 113], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 42}}, {"id": 111, "type": "identifier", "text": "string", "parent": 110, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 25}}, {"id": 112, "type": ">", "text": ">", "parent": 110, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 26}}, {"id": 113, "type": "identifier", "text": "existingMethods", "parent": 110, "children": [], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 42}}, {"id": 114, "type": "field_declaration", "text": "MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)", "parent": 87, "children": [115], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 84}}, {"id": 115, "type": "macro_type_specifier", "text": "MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)", "parent": 114, "children": [116, 117, 119], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 84}}, {"id": 116, "type": "identifier", "text": "MAKE_SWAP_METHOD", "parent": 115, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 18}}, {"id": 117, "type": "type_descriptor", "text": "CheckHashCodeEqualsResponse", "parent": 115, "children": [118], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 46}}, {"id": 118, "type": "type_identifier", "text": "CheckHashCodeEqualsResponse", "parent": 117, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 46}}, {"id": 119, "type": "ERROR", "text": ", type, fields, type, existingMethods", "parent": 115, "children": [120, 121, 122, 123], "start_point": {"row": 28, "column": 46}, "end_point": {"row": 28, "column": 83}}, {"id": 120, "type": "identifier", "text": "type", "parent": 119, "children": [], "start_point": {"row": 28, "column": 48}, "end_point": {"row": 28, "column": 52}}, {"id": 121, "type": "identifier", "text": "fields", "parent": 119, "children": [], "start_point": {"row": 28, "column": 54}, "end_point": {"row": 28, "column": 60}}, {"id": 122, "type": "identifier", "text": "type", "parent": 119, "children": [], "start_point": {"row": 28, "column": 62}, "end_point": {"row": 28, "column": 66}}, {"id": 123, "type": "identifier", "text": "existingMethods", "parent": 119, "children": [], "start_point": {"row": 28, "column": 68}, "end_point": {"row": 28, "column": 83}}, {"id": 124, "type": "call_expression", "text": "MAKE_REFLECT_STRUCT(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)", "parent": null, "children": [125, 126], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 85}}, {"id": 125, "type": "identifier", "text": "MAKE_REFLECT_STRUCT", "parent": 124, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 19}}, {"id": 126, "type": "argument_list", "text": "(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)", "parent": 124, "children": [127, 128, 129, 130, 131], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 85}}, {"id": 127, "type": "identifier", "text": "CheckHashCodeEqualsResponse", "parent": 126, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 47}}, {"id": 128, "type": "identifier", "text": "type", "parent": 126, "children": [], "start_point": {"row": 30, "column": 49}, "end_point": {"row": 30, "column": 53}}, {"id": 129, "type": "identifier", "text": "fields", "parent": 126, "children": [], "start_point": {"row": 30, "column": 55}, "end_point": {"row": 30, "column": 61}}, {"id": 130, "type": "identifier", "text": "type", "parent": 126, "children": [], "start_point": {"row": 30, "column": 63}, "end_point": {"row": 30, "column": 67}}, {"id": 131, "type": "identifier", "text": "existingMethods", "parent": 126, "children": [], "start_point": {"row": 30, "column": 69}, "end_point": {"row": 30, "column": 84}}, {"id": 132, "type": "call_expression", "text": "DEFINE_REQUEST_RESPONSE_TYPE(java_checkHashCodeEqualsStatus,\n\tlsCodeActionParams, CheckHashCodeEqualsResponse, \"java/checkHashCodeEqualsStatus\")", "parent": null, "children": [133, 134], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 83}}, {"id": 133, "type": "identifier", "text": "DEFINE_REQUEST_RESPONSE_TYPE", "parent": 132, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 28}}, {"id": 134, "type": "argument_list", "text": "(java_checkHashCodeEqualsStatus,\n\tlsCodeActionParams, CheckHashCodeEqualsResponse, \"java/checkHashCodeEqualsStatus\")", "parent": 132, "children": [135, 136, 137, 138], "start_point": {"row": 32, "column": 28}, "end_point": {"row": 33, "column": 83}}, {"id": 135, "type": "identifier", "text": "java_checkHashCodeEqualsStatus", "parent": 134, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 59}}, {"id": 136, "type": "identifier", "text": "lsCodeActionParams", "parent": 134, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 19}}, {"id": 137, "type": "identifier", "text": "CheckHashCodeEqualsResponse", "parent": 134, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 48}}, {"id": 138, "type": "string_literal", "text": "\"java/checkHashCodeEqualsStatus\"", "parent": 134, "children": [], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 82}}]}, "node_categories": {"declarations": {"functions": [39, 47, 55, 63, 71], "variables": [18, 23, 28, 33, 36, 42, 50, 53, 58, 61, 66, 69, 74, 76, 90, 95, 103, 114], "classes": [15, 16, 87, 88], "imports": [3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [79, 110, 124, 132], "assignments": [], "loops": [], "conditionals": [17, 19, 21, 22, 24, 26, 27, 29, 31, 32, 35, 40, 43, 44, 45, 46, 48, 51, 52, 54, 56, 59, 60, 62, 64, 67, 68, 70, 72, 75, 77, 78, 80, 82, 83, 84, 85, 86, 89, 91, 93, 94, 96, 98, 100, 102, 104, 106, 108, 111, 113, 115, 116, 118, 120, 121, 122, 123, 125, 127, 128, 129, 130, 131, 133, 135, 136, 137], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 138], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [109]}}, "cross_language_map": {"function_declarations": [{"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "swap(LspVariableBinding& arg)"}, {"node_id": 47, "universal_type": "function", "name": "unknown", "text_snippet": "swap(arg.bindingKey)"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "swap(arg.name)"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "swap(arg.type)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "swap(isField, arg.isField)"}], "class_declarations": [{"node_id": 15, "universal_type": "class", "name": "LspVariableBinding", "text_snippet": "struct LspVariableBinding {\n\tstd::string bindingKey;\n\tstd::string name;\n\tstd::string type;\n\tbool isF"}, {"node_id": 16, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 87, "universal_type": "class", "name": "CheckHashCodeEqualsResponse", "text_snippet": "struct CheckHashCodeEqualsResponse {\n\t std::string type;\n\t std::vector<LspVariableBinding> fields;\n"}, {"node_id": 88, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 3, "text": "#include \"LibLsp/JsonRpc/RequestInMessage.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"LibLsp/JsonRpc/lsResponseMessage.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <LibLsp/lsp/lsCodeAction.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"LibLsp/lsp/CodeActionParams.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"LibLsp/JsonRpc/RequestInMessage.h\"\n#include \"LibLsp/JsonRpc/lsResponseMessage.h\"\n\n#include <LibLsp/lsp/lsCodeAction.h>\n\n#include \"LibLsp/lsp/CodeActionParams.h\"\n\nstruct LspVariableBinding {\n\tstd::string bindingKey;\n\tstd::string name;\n\tstd::string type;\n\tbool isField;\n\tvoid swap(LspVariableBinding& arg) noexcept\n\t{\n\t\tbindingKey.swap(arg.bindingKey);\n\t\tname.swap(arg.name);\n\t\ttype.swap(arg.type);\n\t\tstd::swap(isField, arg.isField);\n\t}\n};\nMAKE_REFLECT_STRUCT(LspVariableBinding, bindingKey, name, type, isField)\n\nstruct CheckHashCodeEqualsResponse {\n\t std::string type;\n\t std::vector<LspVariableBinding> fields;\n\t std::vector<std::string> existingMethods;\n\t MAKE_SWAP_METHOD(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)\n};\nMAKE_REFLECT_STRUCT(CheckHashCodeEqualsResponse, type, fields, type, existingMethods)\n\nDEFINE_REQUEST_RESPONSE_TYPE(java_checkHashCodeEqualsStatus,\n\tlsCodeActionParams, CheckHashCodeEqualsResponse, \"java/checkHashCodeEqualsStatus\")\n\n\n"}
80,341
c
/* * Copyright 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef SF_RENDERENGINE_H_ #define SF_RENDERENGINE_H_ #include <stdint.h> #include <sys/types.h> #include <EGL/egl.h> #include <EGL/eglext.h> #include <ui/mat4.h> #include <Transform.h> #define EGL_NO_CONFIG ((EGLConfig)0) // --------------------------------------------------------------------------- namespace android { // --------------------------------------------------------------------------- class String8; class Rect; class Region; class Mesh; class Texture; class RenderEngine { enum GlesVersion { GLES_VERSION_1_0 = 0x10000, GLES_VERSION_1_1 = 0x10001, GLES_VERSION_2_0 = 0x20000, GLES_VERSION_3_0 = 0x30000, }; static GlesVersion parseGlesVersion(const char* str); EGLConfig mEGLConfig; EGLContext mEGLContext; void setEGLHandles(EGLConfig config, EGLContext ctxt); virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0; virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0; protected: RenderEngine(); virtual ~RenderEngine() = 0; public: static RenderEngine* create(EGLDisplay display, int hwcFormat); static EGLConfig chooseEglConfig(EGLDisplay display, int format); // dump the extension strings. always call the base class. virtual void dump(String8& result); // helpers void flush(); void clearWithColor(float red, float green, float blue, float alpha); void fillRegionWithColor(const Region& region, uint32_t height, float red, float green, float blue, float alpha); // common to all GL versions void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top); void disableScissor(); void genTextures(size_t count, uint32_t* names); void deleteTextures(size_t count, uint32_t const* names); void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels); class BindImageAsFramebuffer { RenderEngine& mEngine; uint32_t mTexName, mFbName; uint32_t mStatus; public: BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image); ~BindImageAsFramebuffer(); int getStatus() const; }; // set-up virtual void checkErrors() const; virtual void setViewportAndProjection(size_t vpw, size_t vph, Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0; #ifdef USE_HWC2 virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0; virtual void setupDimLayerBlending(float alpha) = 0; #else virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0; virtual void setupDimLayerBlending(int alpha) = 0; #endif virtual void setupLayerTexturing(const Texture& texture) = 0; virtual void setupLayerBlackedOut() = 0; virtual void setupFillWithColor(float r, float g, float b, float a) = 0; virtual mat4 setupColorTransform(const mat4& /* colorTransform */) { return mat4(); } virtual void disableTexturing() = 0; virtual void disableBlending() = 0; // drawing virtual void drawMesh(const Mesh& mesh) = 0; // queries virtual size_t getMaxTextureSize() const = 0; virtual size_t getMaxViewportDims() const = 0; EGLConfig getEGLConfig() const; EGLContext getEGLContext() const; }; // --------------------------------------------------------------------------- }; // namespace android // --------------------------------------------------------------------------- #endif /* SF_RENDERENGINE_H_ */
39.1
105
(translation_unit) "/*\n * Copyright 2013 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n#ifndef SF_RENDERENGINE_H_\n#define SF_RENDERENGINE_H_\n\n#include <stdint.h>\n#include <sys/types.h>\n\n#include <EGL/egl.h>\n#include <EGL/eglext.h>\n#include <ui/mat4.h>\n#include <Transform.h>\n\n#define EGL_NO_CONFIG ((EGLConfig)0)\n\n// ---------------------------------------------------------------------------\nnamespace android {\n// ---------------------------------------------------------------------------\n\nclass String8;\nclass Rect;\nclass Region;\nclass Mesh;\nclass Texture;\n\nclass RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n};\n\n// ---------------------------------------------------------------------------\n}; // namespace android\n// ---------------------------------------------------------------------------\n\n#endif /* SF_RENDERENGINE_H_ */\n" (comment) "/*\n * Copyright 2013 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */" (preproc_ifdef) "#ifndef SF_RENDERENGINE_H_\n#define SF_RENDERENGINE_H_\n\n#include <stdint.h>\n#include <sys/types.h>\n\n#include <EGL/egl.h>\n#include <EGL/eglext.h>\n#include <ui/mat4.h>\n#include <Transform.h>\n\n#define EGL_NO_CONFIG ((EGLConfig)0)\n\n// ---------------------------------------------------------------------------\nnamespace android {\n// ---------------------------------------------------------------------------\n\nclass String8;\nclass Rect;\nclass Region;\nclass Mesh;\nclass Texture;\n\nclass RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n};\n\n// ---------------------------------------------------------------------------\n}; // namespace android\n// ---------------------------------------------------------------------------\n\n#endif" (#ifndef) "#ifndef" (identifier) "SF_RENDERENGINE_H_" (preproc_def) "#define SF_RENDERENGINE_H_\n" (#define) "#define" (identifier) "SF_RENDERENGINE_H_" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <EGL/egl.h>\n" (#include) "#include" (system_lib_string) "<EGL/egl.h>" (preproc_include) "#include <EGL/eglext.h>\n" (#include) "#include" (system_lib_string) "<EGL/eglext.h>" (preproc_include) "#include <ui/mat4.h>\n" (#include) "#include" (system_lib_string) "<ui/mat4.h>" (preproc_include) "#include <Transform.h>\n" (#include) "#include" (system_lib_string) "<Transform.h>" (preproc_def) "#define EGL_NO_CONFIG ((EGLConfig)0)\n" (#define) "#define" (identifier) "EGL_NO_CONFIG" (preproc_arg) "((EGLConfig)0)" (comment) "// ---------------------------------------------------------------------------" (function_definition) "namespace android {\n// ---------------------------------------------------------------------------\n\nclass String8;\nclass Rect;\nclass Region;\nclass Mesh;\nclass Texture;\n\nclass RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n};\n\n// ---------------------------------------------------------------------------\n}" (type_identifier) "namespace" (identifier) "android" (compound_statement) "{\n// ---------------------------------------------------------------------------\n\nclass String8;\nclass Rect;\nclass Region;\nclass Mesh;\nclass Texture;\n\nclass RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n};\n\n// ---------------------------------------------------------------------------\n}" ({) "{" (comment) "// ---------------------------------------------------------------------------" (declaration) "class String8;" (type_identifier) "class" (identifier) "String8" (;) ";" (declaration) "class Rect;" (type_identifier) "class" (identifier) "Rect" (;) ";" (declaration) "class Region;" (type_identifier) "class" (identifier) "Region" (;) ";" (declaration) "class Mesh;" (type_identifier) "class" (identifier) "Mesh" (;) ";" (declaration) "class Texture;" (type_identifier) "class" (identifier) "Texture" (;) ";" (function_definition) "class RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n}" (type_identifier) "class" (identifier) "RenderEngine" (compound_statement) "{\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n}" ({) "{" (enum_specifier) "enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n }" (enum) "enum" (type_identifier) "GlesVersion" (enumerator_list) "{\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n }" ({) "{" (enumerator) "GLES_VERSION_1_0 = 0x10000" (identifier) "GLES_VERSION_1_0" (=) "=" (number_literal) "0x10000" (,) "," (enumerator) "GLES_VERSION_1_1 = 0x10001" (identifier) "GLES_VERSION_1_1" (=) "=" (number_literal) "0x10001" (,) "," (enumerator) "GLES_VERSION_2_0 = 0x20000" (identifier) "GLES_VERSION_2_0" (=) "=" (number_literal) "0x20000" (,) "," (enumerator) "GLES_VERSION_3_0 = 0x30000" (identifier) "GLES_VERSION_3_0" (=) "=" (number_literal) "0x30000" (,) "," (}) "}" (;) ";" (declaration) "static GlesVersion parseGlesVersion(const char* str);" (storage_class_specifier) "static" (static) "static" (type_identifier) "GlesVersion" (function_declarator) "parseGlesVersion(const char* str)" (identifier) "parseGlesVersion" (parameter_list) "(const char* str)" (() "(" (parameter_declaration) "const char* str" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* str" (*) "*" (identifier) "str" ()) ")" (;) ";" (declaration) "EGLConfig mEGLConfig;" (type_identifier) "EGLConfig" (identifier) "mEGLConfig" (;) ";" (declaration) "EGLContext mEGLContext;" (type_identifier) "EGLContext" (identifier) "mEGLContext" (;) ";" (declaration) "void setEGLHandles(EGLConfig config, EGLContext ctxt);" (primitive_type) "void" (function_declarator) "setEGLHandles(EGLConfig config, EGLContext ctxt)" (identifier) "setEGLHandles" (parameter_list) "(EGLConfig config, EGLContext ctxt)" (() "(" (parameter_declaration) "EGLConfig config" (type_identifier) "EGLConfig" (identifier) "config" (,) "," (parameter_declaration) "EGLContext ctxt" (type_identifier) "EGLContext" (identifier) "ctxt" ()) ")" (;) ";" (declaration) "virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0" (function_declarator) "bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status)" (identifier) "bindImageAsFramebuffer" (parameter_list) "(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status)" (() "(" (parameter_declaration) "EGLImageKHR image" (type_identifier) "EGLImageKHR" (identifier) "image" (,) "," (parameter_declaration) "uint32_t* texName" (primitive_type) "uint32_t" (pointer_declarator) "* texName" (*) "*" (identifier) "texName" (,) "," (parameter_declaration) "uint32_t* fbName" (primitive_type) "uint32_t" (pointer_declarator) "* fbName" (*) "*" (identifier) "fbName" (,) "," (parameter_declaration) "uint32_t* status" (primitive_type) "uint32_t" (pointer_declarator) "* status" (*) "*" (identifier) "status" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0" (function_declarator) "unbindFramebuffer(uint32_t texName, uint32_t fbName)" (identifier) "unbindFramebuffer" (parameter_list) "(uint32_t texName, uint32_t fbName)" (() "(" (parameter_declaration) "uint32_t texName" (primitive_type) "uint32_t" (identifier) "texName" (,) "," (parameter_declaration) "uint32_t fbName" (primitive_type) "uint32_t" (identifier) "fbName" ()) ")" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "protected:\n RenderEngine();" (statement_identifier) "protected" (:) ":" (expression_statement) "RenderEngine();" (call_expression) "RenderEngine()" (identifier) "RenderEngine" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual ~RenderEngine() = 0;" (type_identifier) "virtual" (ERROR) "~" (~) "~" (init_declarator) "RenderEngine() = 0" (function_declarator) "RenderEngine()" (identifier) "RenderEngine" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (labeled_statement) "public:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);" (statement_identifier) "public" (:) ":" (declaration) "static RenderEngine* create(EGLDisplay display, int hwcFormat);" (storage_class_specifier) "static" (static) "static" (type_identifier) "RenderEngine" (pointer_declarator) "* create(EGLDisplay display, int hwcFormat)" (*) "*" (function_declarator) "create(EGLDisplay display, int hwcFormat)" (identifier) "create" (parameter_list) "(EGLDisplay display, int hwcFormat)" (() "(" (parameter_declaration) "EGLDisplay display" (type_identifier) "EGLDisplay" (identifier) "display" (,) "," (parameter_declaration) "int hwcFormat" (primitive_type) "int" (identifier) "hwcFormat" ()) ")" (;) ";" (declaration) "static EGLConfig chooseEglConfig(EGLDisplay display, int format);" (storage_class_specifier) "static" (static) "static" (type_identifier) "EGLConfig" (function_declarator) "chooseEglConfig(EGLDisplay display, int format)" (identifier) "chooseEglConfig" (parameter_list) "(EGLDisplay display, int format)" (() "(" (parameter_declaration) "EGLDisplay display" (type_identifier) "EGLDisplay" (identifier) "display" (,) "," (parameter_declaration) "int format" (primitive_type) "int" (identifier) "format" ()) ")" (;) ";" (comment) "// dump the extension strings. always call the base class." (declaration) "virtual void" (type_identifier) "virtual" (identifier) "void" (;) "" (expression_statement) "dump(String8& result);" (call_expression) "dump(String8& result)" (identifier) "dump" (argument_list) "(String8& result)" (() "(" (binary_expression) "String8& result" (identifier) "String8" (&) "&" (identifier) "result" ()) ")" (;) ";" (comment) "// helpers" (declaration) "void flush();" (primitive_type) "void" (function_declarator) "flush()" (identifier) "flush" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void clearWithColor(float red, float green, float blue, float alpha);" (primitive_type) "void" (function_declarator) "clearWithColor(float red, float green, float blue, float alpha)" (identifier) "clearWithColor" (parameter_list) "(float red, float green, float blue, float alpha)" (() "(" (parameter_declaration) "float red" (primitive_type) "float" (identifier) "red" (,) "," (parameter_declaration) "float green" (primitive_type) "float" (identifier) "green" (,) "," (parameter_declaration) "float blue" (primitive_type) "float" (identifier) "blue" (,) "," (parameter_declaration) "float alpha" (primitive_type) "float" (identifier) "alpha" ()) ")" (;) ";" (declaration) "void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);" (primitive_type) "void" (function_declarator) "fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha)" (identifier) "fillRegionWithColor" (parameter_list) "(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha)" (() "(" (parameter_declaration) "const Region& region" (type_qualifier) "const" (const) "const" (type_identifier) "Region" (ERROR) "&" (&) "&" (identifier) "region" (,) "," (parameter_declaration) "uint32_t height" (primitive_type) "uint32_t" (identifier) "height" (,) "," (parameter_declaration) "float red" (primitive_type) "float" (identifier) "red" (,) "," (parameter_declaration) "float green" (primitive_type) "float" (identifier) "green" (,) "," (parameter_declaration) "float blue" (primitive_type) "float" (identifier) "blue" (,) "," (parameter_declaration) "float alpha" (primitive_type) "float" (identifier) "alpha" ()) ")" (;) ";" (comment) "// common to all GL versions" (declaration) "void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);" (primitive_type) "void" (function_declarator) "setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top)" (identifier) "setScissor" (parameter_list) "(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top)" (() "(" (parameter_declaration) "uint32_t left" (primitive_type) "uint32_t" (identifier) "left" (,) "," (parameter_declaration) "uint32_t bottom" (primitive_type) "uint32_t" (identifier) "bottom" (,) "," (parameter_declaration) "uint32_t right" (primitive_type) "uint32_t" (identifier) "right" (,) "," (parameter_declaration) "uint32_t top" (primitive_type) "uint32_t" (identifier) "top" ()) ")" (;) ";" (declaration) "void disableScissor();" (primitive_type) "void" (function_declarator) "disableScissor()" (identifier) "disableScissor" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void genTextures(size_t count, uint32_t* names);" (primitive_type) "void" (function_declarator) "genTextures(size_t count, uint32_t* names)" (identifier) "genTextures" (parameter_list) "(size_t count, uint32_t* names)" (() "(" (parameter_declaration) "size_t count" (primitive_type) "size_t" (identifier) "count" (,) "," (parameter_declaration) "uint32_t* names" (primitive_type) "uint32_t" (pointer_declarator) "* names" (*) "*" (identifier) "names" ()) ")" (;) ";" (declaration) "void deleteTextures(size_t count, uint32_t const* names);" (primitive_type) "void" (function_declarator) "deleteTextures(size_t count, uint32_t const* names)" (identifier) "deleteTextures" (parameter_list) "(size_t count, uint32_t const* names)" (() "(" (parameter_declaration) "size_t count" (primitive_type) "size_t" (identifier) "count" (,) "," (parameter_declaration) "uint32_t const* names" (primitive_type) "uint32_t" (type_qualifier) "const" (const) "const" (pointer_declarator) "* names" (*) "*" (identifier) "names" ()) ")" (;) ";" (declaration) "void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);" (primitive_type) "void" (function_declarator) "readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels)" (identifier) "readPixels" (parameter_list) "(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels)" (() "(" (parameter_declaration) "size_t l" (primitive_type) "size_t" (identifier) "l" (,) "," (parameter_declaration) "size_t b" (primitive_type) "size_t" (identifier) "b" (,) "," (parameter_declaration) "size_t w" (primitive_type) "size_t" (identifier) "w" (,) "," (parameter_declaration) "size_t h" (primitive_type) "size_t" (identifier) "h" (,) "," (parameter_declaration) "uint32_t* pixels" (primitive_type) "uint32_t" (pointer_declarator) "* pixels" (*) "*" (identifier) "pixels" ()) ")" (;) ";" (function_definition) "class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n }" (type_identifier) "class" (identifier) "BindImageAsFramebuffer" (compound_statement) "{\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n }" ({) "{" (expression_statement) "RenderEngine& mEngine;" (binary_expression) "RenderEngine& mEngine" (identifier) "RenderEngine" (&) "&" (identifier) "mEngine" (;) ";" (declaration) "uint32_t mTexName, mFbName;" (primitive_type) "uint32_t" (identifier) "mTexName" (,) "," (identifier) "mFbName" (;) ";" (declaration) "uint32_t mStatus;" (primitive_type) "uint32_t" (identifier) "mStatus" (;) ";" (labeled_statement) "public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);" (statement_identifier) "public" (:) ":" (expression_statement) "BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);" (call_expression) "BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image)" (identifier) "BindImageAsFramebuffer" (argument_list) "(RenderEngine& engine, EGLImageKHR image)" (() "(" (binary_expression) "RenderEngine& engine" (identifier) "RenderEngine" (&) "&" (identifier) "engine" (,) "," (identifier) "EGLImageKHR" (ERROR) "image" (identifier) "image" ()) ")" (;) ";" (expression_statement) "~BindImageAsFramebuffer();" (unary_expression) "~BindImageAsFramebuffer()" (~) "~" (call_expression) "BindImageAsFramebuffer()" (identifier) "BindImageAsFramebuffer" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "int getStatus() const" (primitive_type) "int" (function_declarator) "getStatus()" (identifier) "getStatus" (parameter_list) "()" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// set-up" (ERROR) "virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "checkErrors()" (identifier) "checkErrors" (parameter_list) "()" (() "(" ()) ")" (declaration) "const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0" (function_declarator) "setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation)" (identifier) "setViewportAndProjection" (parameter_list) "(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation)" (() "(" (parameter_declaration) "size_t vpw" (primitive_type) "size_t" (identifier) "vpw" (,) "," (parameter_declaration) "size_t vph" (primitive_type) "size_t" (identifier) "vph" (,) "," (parameter_declaration) "Rect sourceCrop" (type_identifier) "Rect" (identifier) "sourceCrop" (,) "," (parameter_declaration) "size_t hwh" (primitive_type) "size_t" (identifier) "hwh" (,) "," (parameter_declaration) "bool yswap" (primitive_type) "bool" (identifier) "yswap" (,) "," (parameter_declaration) "Transform::orientation_flags rotation" (type_identifier) "Transform" (ERROR) "::orientation_flags" (:) ":" (:) ":" (identifier) "orientation_flags" (identifier) "rotation" ()) ")" (=) "=" (number_literal) "0" (;) ";" (ERROR) "#ifdef" (#ifdef) "#ifdef" (declaration) "USE_HWC2\n virtual" (type_identifier) "USE_HWC2" (identifier) "virtual" (;) "" (declaration) "void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;" (primitive_type) "void" (init_declarator) "setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0" (function_declarator) "setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha)" (identifier) "setupLayerBlending" (parameter_list) "(bool premultipliedAlpha, bool opaque, float alpha)" (() "(" (parameter_declaration) "bool premultipliedAlpha" (primitive_type) "bool" (identifier) "premultipliedAlpha" (,) "," (parameter_declaration) "bool opaque" (primitive_type) "bool" (identifier) "opaque" (,) "," (parameter_declaration) "float alpha" (primitive_type) "float" (identifier) "alpha" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void setupDimLayerBlending(float alpha) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setupDimLayerBlending(float alpha) = 0" (function_declarator) "setupDimLayerBlending(float alpha)" (identifier) "setupDimLayerBlending" (parameter_list) "(float alpha)" (() "(" (parameter_declaration) "float alpha" (primitive_type) "float" (identifier) "alpha" ()) ")" (=) "=" (number_literal) "0" (;) ";" (ERROR) "#else" (#else) "#else" (declaration) "virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0" (function_declarator) "setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha)" (identifier) "setupLayerBlending" (parameter_list) "(bool premultipliedAlpha, bool opaque, int alpha)" (() "(" (parameter_declaration) "bool premultipliedAlpha" (primitive_type) "bool" (identifier) "premultipliedAlpha" (,) "," (parameter_declaration) "bool opaque" (primitive_type) "bool" (identifier) "opaque" (,) "," (parameter_declaration) "int alpha" (primitive_type) "int" (identifier) "alpha" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void setupDimLayerBlending(int alpha) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setupDimLayerBlending(int alpha) = 0" (function_declarator) "setupDimLayerBlending(int alpha)" (identifier) "setupDimLayerBlending" (parameter_list) "(int alpha)" (() "(" (parameter_declaration) "int alpha" (primitive_type) "int" (identifier) "alpha" ()) ")" (=) "=" (number_literal) "0" (;) ";" (ERROR) "#endif" (#endif) "#endif" (declaration) "virtual void setupLayerTexturing(const Texture& texture) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setupLayerTexturing(const Texture& texture) = 0" (function_declarator) "setupLayerTexturing(const Texture& texture)" (identifier) "setupLayerTexturing" (parameter_list) "(const Texture& texture)" (() "(" (parameter_declaration) "const Texture& texture" (type_qualifier) "const" (const) "const" (type_identifier) "Texture" (ERROR) "&" (&) "&" (identifier) "texture" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void setupLayerBlackedOut() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setupLayerBlackedOut() = 0" (function_declarator) "setupLayerBlackedOut()" (identifier) "setupLayerBlackedOut" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void setupFillWithColor(float r, float g, float b, float a) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "setupFillWithColor(float r, float g, float b, float a) = 0" (function_declarator) "setupFillWithColor(float r, float g, float b, float a)" (identifier) "setupFillWithColor" (parameter_list) "(float r, float g, float b, float a)" (() "(" (parameter_declaration) "float r" (primitive_type) "float" (identifier) "r" (,) "," (parameter_declaration) "float g" (primitive_type) "float" (identifier) "g" (,) "," (parameter_declaration) "float b" (primitive_type) "float" (identifier) "b" (,) "," (parameter_declaration) "float a" (primitive_type) "float" (identifier) "a" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();" (type_identifier) "virtual" (ERROR) "mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return" (identifier) "mat4" (function_declarator) "setupColorTransform(const mat4& /* colorTransform */)" (identifier) "setupColorTransform" (parameter_list) "(const mat4& /* colorTransform */)" (() "(" (parameter_declaration) "const mat4" (type_qualifier) "const" (const) "const" (type_identifier) "mat4" (ERROR) "&" (&) "&" (comment) "/* colorTransform */" ()) ")" ({) "{" (return) "return" (function_declarator) "mat4()" (identifier) "mat4" (parameter_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "}" (}) "}" (declaration) "virtual void disableTexturing() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "disableTexturing() = 0" (function_declarator) "disableTexturing()" (identifier) "disableTexturing" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual void disableBlending() = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "disableBlending() = 0" (function_declarator) "disableBlending()" (identifier) "disableBlending" (parameter_list) "()" (() "(" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "// drawing" (declaration) "virtual void drawMesh(const Mesh& mesh) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "drawMesh(const Mesh& mesh) = 0" (function_declarator) "drawMesh(const Mesh& mesh)" (identifier) "drawMesh" (parameter_list) "(const Mesh& mesh)" (() "(" (parameter_declaration) "const Mesh& mesh" (type_qualifier) "const" (const) "const" (type_identifier) "Mesh" (ERROR) "&" (&) "&" (identifier) "mesh" ()) ")" (=) "=" (number_literal) "0" (;) ";" (comment) "// queries" (declaration) "virtual size_t getMaxTextureSize() const = 0;" (type_identifier) "virtual" (ERROR) "size_t" (identifier) "size_t" (init_declarator) "getMaxTextureSize() const = 0" (function_declarator) "getMaxTextureSize() const" (identifier) "getMaxTextureSize" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual size_t getMaxViewportDims() const = 0;" (type_identifier) "virtual" (ERROR) "size_t" (identifier) "size_t" (init_declarator) "getMaxViewportDims() const = 0" (function_declarator) "getMaxViewportDims() const" (identifier) "getMaxViewportDims" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (=) "=" (number_literal) "0" (;) ";" (type_identifier) "EGLConfig" (ERROR) "getEGLConfig() const;\n EGLContext" (function_declarator) "getEGLConfig() const" (identifier) "getEGLConfig" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (identifier) "EGLContext" (function_declarator) "getEGLContext() const" (identifier) "getEGLContext" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// ---------------------------------------------------------------------------" (}) "}" (expression_statement) ";" (;) ";" (comment) "// namespace android" (comment) "// ---------------------------------------------------------------------------" (#endif) "#endif" (comment) "/* SF_RENDERENGINE_H_ */"
821
31
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 39.1, "nodes": 557, "errors": 0, "source_hash": "a320bae3c91b9567bc03fae886861caf3fa08fe72f8e874d79810913ab453706", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef SF_RENDERENGINE_H_\n#define SF_RENDERENGINE_H_\n\n#include <stdint.h>\n#include <sys/types.h>\n\n#include <EGL/egl.h>\n#include <EGL/eglext.h>\n#include <ui/mat4.h>\n#include <Transform.h>\n\n#define EGL_NO_CONFIG ((EGLConfig)0)\n\n// ---------------------------------------------------------------------------\nnamespace android {\n// ---------------------------------------------------------------------------\n\nclass String8;\nclass Rect;\nclass Region;\nclass Mesh;\nclass Texture;\n\nclass RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n};\n\n// ---------------------------------------------------------------------------\n}; // namespace android\n// ---------------------------------------------------------------------------\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 21, 24, 28, 556], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 128, "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": "SF_RENDERENGINE_H_", "parent": 0, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "#define SF_RENDERENGINE_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": "SF_RENDERENGINE_H_", "parent": 3, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include <stdint.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": "<stdint.h>", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <sys/types.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": "<sys/types.h>", "parent": 9, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 22}}, {"id": 12, "type": "preproc_include", "text": "#include <EGL/egl.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<EGL/egl.h>", "parent": 12, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 20}}, {"id": 15, "type": "preproc_include", "text": "#include <EGL/eglext.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<EGL/eglext.h>", "parent": 15, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 23}}, {"id": 18, "type": "preproc_include", "text": "#include <ui/mat4.h>\n", "parent": 0, "children": [19, 20], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<ui/mat4.h>", "parent": 18, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 20}}, {"id": 21, "type": "preproc_include", "text": "#include <Transform.h>\n", "parent": 0, "children": [22, 23], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<Transform.h>", "parent": 21, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 22}}, {"id": 24, "type": "preproc_def", "text": "#define EGL_NO_CONFIG ((EGLConfig)0)\n", "parent": 0, "children": [25, 26, 27], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 26, "type": "identifier", "text": "EGL_NO_CONFIG", "parent": 24, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 27, "type": "preproc_arg", "text": "((EGLConfig)0)", "parent": 24, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 36}}, {"id": 28, "type": "function_definition", "text": "namespace android {\n// ---------------------------------------------------------------------------\n\nclass String8;\nclass Rect;\nclass Region;\nclass Mesh;\nclass Texture;\n\nclass RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n};\n\n// ---------------------------------------------------------------------------\n}", "parent": 0, "children": [29, 30], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 125, "column": 1}}, {"id": 29, "type": "type_identifier", "text": "namespace", "parent": 28, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 9}}, {"id": 30, "type": "identifier", "text": "android", "parent": 28, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 17}}, {"id": 31, "type": "declaration", "text": "class String8;", "parent": 28, "children": [32], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 14}}, {"id": 32, "type": "identifier", "text": "String8", "parent": 31, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 13}}, {"id": 33, "type": "declaration", "text": "class Rect;", "parent": 28, "children": [34], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 11}}, {"id": 34, "type": "identifier", "text": "Rect", "parent": 33, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 10}}, {"id": 35, "type": "declaration", "text": "class Region;", "parent": 28, "children": [36], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 13}}, {"id": 36, "type": "identifier", "text": "Region", "parent": 35, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 12}}, {"id": 37, "type": "declaration", "text": "class Mesh;", "parent": 28, "children": [38], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 11}}, {"id": 38, "type": "identifier", "text": "Mesh", "parent": 37, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 10}}, {"id": 39, "type": "declaration", "text": "class Texture;", "parent": 28, "children": [40], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 14}}, {"id": 40, "type": "identifier", "text": "Texture", "parent": 39, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 13}}, {"id": 41, "type": "function_definition", "text": "class RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n}", "parent": 28, "children": [42], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 42, "type": "identifier", "text": "RenderEngine", "parent": 41, "children": [], "start_point": {"row": 40, "column": 6}, "end_point": {"row": 40, "column": 18}}, {"id": 43, "type": "enum_specifier", "text": "enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n }", "parent": 41, "children": [44, 45, 46], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 44, "type": "enum", "text": "enum", "parent": 43, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 8}}, {"id": 45, "type": "type_identifier", "text": "GlesVersion", "parent": 43, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 20}}, {"id": 46, "type": "enumerator_list", "text": "{\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n }", "parent": 43, "children": [47, 51, 55, 59], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 46, "column": 5}}, {"id": 47, "type": "enumerator", "text": "GLES_VERSION_1_0 = 0x10000", "parent": 46, "children": [48, 49, 50], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 37}}, {"id": 48, "type": "identifier", "text": "GLES_VERSION_1_0", "parent": 47, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 24}}, {"id": 49, "type": "=", "text": "=", "parent": 47, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 29}}, {"id": 50, "type": "number_literal", "text": "0x10000", "parent": 47, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 37}}, {"id": 51, "type": "enumerator", "text": "GLES_VERSION_1_1 = 0x10001", "parent": 46, "children": [52, 53, 54], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 37}}, {"id": 52, "type": "identifier", "text": "GLES_VERSION_1_1", "parent": 51, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 24}}, {"id": 53, "type": "=", "text": "=", "parent": 51, "children": [], "start_point": {"row": 43, "column": 28}, "end_point": {"row": 43, "column": 29}}, {"id": 54, "type": "number_literal", "text": "0x10001", "parent": 51, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 37}}, {"id": 55, "type": "enumerator", "text": "GLES_VERSION_2_0 = 0x20000", "parent": 46, "children": [56, 57, 58], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 37}}, {"id": 56, "type": "identifier", "text": "GLES_VERSION_2_0", "parent": 55, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 24}}, {"id": 57, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 29}}, {"id": 58, "type": "number_literal", "text": "0x20000", "parent": 55, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 37}}, {"id": 59, "type": "enumerator", "text": "GLES_VERSION_3_0 = 0x30000", "parent": 46, "children": [60, 61, 62], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 37}}, {"id": 60, "type": "identifier", "text": "GLES_VERSION_3_0", "parent": 59, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 24}}, {"id": 61, "type": "=", "text": "=", "parent": 59, "children": [], "start_point": {"row": 45, "column": 28}, "end_point": {"row": 45, "column": 29}}, {"id": 62, "type": "number_literal", "text": "0x30000", "parent": 59, "children": [], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 37}}, {"id": 63, "type": "declaration", "text": "static GlesVersion parseGlesVersion(const char* str);", "parent": 41, "children": [64, 65], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 57}}, {"id": 64, "type": "type_identifier", "text": "GlesVersion", "parent": 63, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 22}}, {"id": 65, "type": "function_declarator", "text": "parseGlesVersion(const char* str)", "parent": 63, "children": [66, 67], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 56}}, {"id": 66, "type": "identifier", "text": "parseGlesVersion", "parent": 65, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 39}}, {"id": 67, "type": "parameter_list", "text": "(const char* str)", "parent": 65, "children": [68], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 56}}, {"id": 68, "type": "parameter_declaration", "text": "const char* str", "parent": 67, "children": [69, 70], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 55}}, {"id": 69, "type": "primitive_type", "text": "char", "parent": 68, "children": [], "start_point": {"row": 47, "column": 46}, "end_point": {"row": 47, "column": 50}}, {"id": 70, "type": "pointer_declarator", "text": "* str", "parent": 68, "children": [71, 72], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 55}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 51}}, {"id": 72, "type": "identifier", "text": "str", "parent": 70, "children": [], "start_point": {"row": 47, "column": 52}, "end_point": {"row": 47, "column": 55}}, {"id": 73, "type": "declaration", "text": "EGLConfig mEGLConfig;", "parent": 41, "children": [74, 75], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 25}}, {"id": 74, "type": "type_identifier", "text": "EGLConfig", "parent": 73, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 13}}, {"id": 75, "type": "identifier", "text": "mEGLConfig", "parent": 73, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 24}}, {"id": 76, "type": "declaration", "text": "EGLContext mEGLContext;", "parent": 41, "children": [77, 78], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 27}}, {"id": 77, "type": "type_identifier", "text": "EGLContext", "parent": 76, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 14}}, {"id": 78, "type": "identifier", "text": "mEGLContext", "parent": 76, "children": [], "start_point": {"row": 50, "column": 15}, "end_point": {"row": 50, "column": 26}}, {"id": 79, "type": "declaration", "text": "void setEGLHandles(EGLConfig config, EGLContext ctxt);", "parent": 41, "children": [80, 81], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 58}}, {"id": 80, "type": "primitive_type", "text": "void", "parent": 79, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 8}}, {"id": 81, "type": "function_declarator", "text": "setEGLHandles(EGLConfig config, EGLContext ctxt)", "parent": 79, "children": [82, 83], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 57}}, {"id": 82, "type": "identifier", "text": "setEGLHandles", "parent": 81, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 22}}, {"id": 83, "type": "parameter_list", "text": "(EGLConfig config, EGLContext ctxt)", "parent": 81, "children": [84, 87], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 57}}, {"id": 84, "type": "parameter_declaration", "text": "EGLConfig config", "parent": 83, "children": [85, 86], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 39}}, {"id": 85, "type": "type_identifier", "text": "EGLConfig", "parent": 84, "children": [], "start_point": {"row": 51, "column": 23}, "end_point": {"row": 51, "column": 32}}, {"id": 86, "type": "identifier", "text": "config", "parent": 84, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 39}}, {"id": 87, "type": "parameter_declaration", "text": "EGLContext ctxt", "parent": 83, "children": [88, 89], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 56}}, {"id": 88, "type": "type_identifier", "text": "EGLContext", "parent": 87, "children": [], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 51}}, {"id": 89, "type": "identifier", "text": "ctxt", "parent": 87, "children": [], "start_point": {"row": 51, "column": 52}, "end_point": {"row": 51, "column": 56}}, {"id": 90, "type": "declaration", "text": "virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;", "parent": 41, "children": [91, 92, 94], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 118}}, {"id": 91, "type": "type_identifier", "text": "virtual", "parent": 90, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 11}}, {"id": 92, "type": "ERROR", "text": "void", "parent": 90, "children": [93], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 16}}, {"id": 93, "type": "identifier", "text": "void", "parent": 92, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 16}}, {"id": 94, "type": "init_declarator", "text": "bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0", "parent": 90, "children": [95, 116, 117], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 117}}, {"id": 95, "type": "function_declarator", "text": "bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status)", "parent": 94, "children": [96, 97], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 113}}, {"id": 96, "type": "identifier", "text": "bindImageAsFramebuffer", "parent": 95, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 39}}, {"id": 97, "type": "parameter_list", "text": "(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status)", "parent": 95, "children": [98, 101, 106, 111], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 113}}, {"id": 98, "type": "parameter_declaration", "text": "EGLImageKHR image", "parent": 97, "children": [99, 100], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 57}}, {"id": 99, "type": "type_identifier", "text": "EGLImageKHR", "parent": 98, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 51}}, {"id": 100, "type": "identifier", "text": "image", "parent": 98, "children": [], "start_point": {"row": 53, "column": 52}, "end_point": {"row": 53, "column": 57}}, {"id": 101, "type": "parameter_declaration", "text": "uint32_t* texName", "parent": 97, "children": [102, 103], "start_point": {"row": 53, "column": 59}, "end_point": {"row": 53, "column": 76}}, {"id": 102, "type": "primitive_type", "text": "uint32_t", "parent": 101, "children": [], "start_point": {"row": 53, "column": 59}, "end_point": {"row": 53, "column": 67}}, {"id": 103, "type": "pointer_declarator", "text": "* texName", "parent": 101, "children": [104, 105], "start_point": {"row": 53, "column": 67}, "end_point": {"row": 53, "column": 76}}, {"id": 104, "type": "*", "text": "*", "parent": 103, "children": [], "start_point": {"row": 53, "column": 67}, "end_point": {"row": 53, "column": 68}}, {"id": 105, "type": "identifier", "text": "texName", "parent": 103, "children": [], "start_point": {"row": 53, "column": 69}, "end_point": {"row": 53, "column": 76}}, {"id": 106, "type": "parameter_declaration", "text": "uint32_t* fbName", "parent": 97, "children": [107, 108], "start_point": {"row": 53, "column": 78}, "end_point": {"row": 53, "column": 94}}, {"id": 107, "type": "primitive_type", "text": "uint32_t", "parent": 106, "children": [], "start_point": {"row": 53, "column": 78}, "end_point": {"row": 53, "column": 86}}, {"id": 108, "type": "pointer_declarator", "text": "* fbName", "parent": 106, "children": [109, 110], "start_point": {"row": 53, "column": 86}, "end_point": {"row": 53, "column": 94}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 53, "column": 86}, "end_point": {"row": 53, "column": 87}}, {"id": 110, "type": "identifier", "text": "fbName", "parent": 108, "children": [], "start_point": {"row": 53, "column": 88}, "end_point": {"row": 53, "column": 94}}, {"id": 111, "type": "parameter_declaration", "text": "uint32_t* status", "parent": 97, "children": [112, 113], "start_point": {"row": 53, "column": 96}, "end_point": {"row": 53, "column": 112}}, {"id": 112, "type": "primitive_type", "text": "uint32_t", "parent": 111, "children": [], "start_point": {"row": 53, "column": 96}, "end_point": {"row": 53, "column": 104}}, {"id": 113, "type": "pointer_declarator", "text": "* status", "parent": 111, "children": [114, 115], "start_point": {"row": 53, "column": 104}, "end_point": {"row": 53, "column": 112}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 53, "column": 104}, "end_point": {"row": 53, "column": 105}}, {"id": 115, "type": "identifier", "text": "status", "parent": 113, "children": [], "start_point": {"row": 53, "column": 106}, "end_point": {"row": 53, "column": 112}}, {"id": 116, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 53, "column": 114}, "end_point": {"row": 53, "column": 115}}, {"id": 117, "type": "number_literal", "text": "0", "parent": 94, "children": [], "start_point": {"row": 53, "column": 116}, "end_point": {"row": 53, "column": 117}}, {"id": 118, "type": "declaration", "text": "virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;", "parent": 41, "children": [119, 120, 122], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 74}}, {"id": 119, "type": "type_identifier", "text": "virtual", "parent": 118, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 11}}, {"id": 120, "type": "ERROR", "text": "void", "parent": 118, "children": [121], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 16}}, {"id": 121, "type": "identifier", "text": "void", "parent": 120, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 16}}, {"id": 122, "type": "init_declarator", "text": "unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0", "parent": 118, "children": [123, 132, 133], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 73}}, {"id": 123, "type": "function_declarator", "text": "unbindFramebuffer(uint32_t texName, uint32_t fbName)", "parent": 122, "children": [124, 125], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 69}}, {"id": 124, "type": "identifier", "text": "unbindFramebuffer", "parent": 123, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 34}}, {"id": 125, "type": "parameter_list", "text": "(uint32_t texName, uint32_t fbName)", "parent": 123, "children": [126, 129], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 69}}, {"id": 126, "type": "parameter_declaration", "text": "uint32_t texName", "parent": 125, "children": [127, 128], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 51}}, {"id": 127, "type": "primitive_type", "text": "uint32_t", "parent": 126, "children": [], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 43}}, {"id": 128, "type": "identifier", "text": "texName", "parent": 126, "children": [], "start_point": {"row": 54, "column": 44}, "end_point": {"row": 54, "column": 51}}, {"id": 129, "type": "parameter_declaration", "text": "uint32_t fbName", "parent": 125, "children": [130, 131], "start_point": {"row": 54, "column": 53}, "end_point": {"row": 54, "column": 68}}, {"id": 130, "type": "primitive_type", "text": "uint32_t", "parent": 129, "children": [], "start_point": {"row": 54, "column": 53}, "end_point": {"row": 54, "column": 61}}, {"id": 131, "type": "identifier", "text": "fbName", "parent": 129, "children": [], "start_point": {"row": 54, "column": 62}, "end_point": {"row": 54, "column": 68}}, {"id": 132, "type": "=", "text": "=", "parent": 122, "children": [], "start_point": {"row": 54, "column": 70}, "end_point": {"row": 54, "column": 71}}, {"id": 133, "type": "number_literal", "text": "0", "parent": 122, "children": [], "start_point": {"row": 54, "column": 72}, "end_point": {"row": 54, "column": 73}}, {"id": 134, "type": "labeled_statement", "text": "protected:\n RenderEngine();", "parent": 41, "children": [], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 57, "column": 19}}, {"id": 135, "type": "call_expression", "text": "RenderEngine()", "parent": 134, "children": [136, 137], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 18}}, {"id": 136, "type": "identifier", "text": "RenderEngine", "parent": 135, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 16}}, {"id": 137, "type": "argument_list", "text": "()", "parent": 135, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 18}}, {"id": 138, "type": "declaration", "text": "virtual ~RenderEngine() = 0;", "parent": 41, "children": [139, 140, 142], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 32}}, {"id": 139, "type": "type_identifier", "text": "virtual", "parent": 138, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 11}}, {"id": 140, "type": "ERROR", "text": "~", "parent": 138, "children": [141], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 141, "type": "~", "text": "~", "parent": 140, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 13}}, {"id": 142, "type": "init_declarator", "text": "RenderEngine() = 0", "parent": 138, "children": [143, 146, 147], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 31}}, {"id": 143, "type": "function_declarator", "text": "RenderEngine()", "parent": 142, "children": [144, 145], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 27}}, {"id": 144, "type": "identifier", "text": "RenderEngine", "parent": 143, "children": [], "start_point": {"row": 58, "column": 13}, "end_point": {"row": 58, "column": 25}}, {"id": 145, "type": "parameter_list", "text": "()", "parent": 143, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 27}}, {"id": 146, "type": "=", "text": "=", "parent": 142, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 29}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 142, "children": [], "start_point": {"row": 58, "column": 30}, "end_point": {"row": 58, "column": 31}}, {"id": 148, "type": "labeled_statement", "text": "public:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);", "parent": 41, "children": [149], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 67}}, {"id": 149, "type": "declaration", "text": "static RenderEngine* create(EGLDisplay display, int hwcFormat);", "parent": 148, "children": [150, 151], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 67}}, {"id": 150, "type": "type_identifier", "text": "RenderEngine", "parent": 149, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 23}}, {"id": 151, "type": "pointer_declarator", "text": "* create(EGLDisplay display, int hwcFormat)", "parent": 149, "children": [152, 153], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 66}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 61, "column": 23}, "end_point": {"row": 61, "column": 24}}, {"id": 153, "type": "function_declarator", "text": "create(EGLDisplay display, int hwcFormat)", "parent": 151, "children": [154, 155], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 66}}, {"id": 154, "type": "identifier", "text": "create", "parent": 153, "children": [], "start_point": {"row": 61, "column": 25}, "end_point": {"row": 61, "column": 31}}, {"id": 155, "type": "parameter_list", "text": "(EGLDisplay display, int hwcFormat)", "parent": 153, "children": [156, 159], "start_point": {"row": 61, "column": 31}, "end_point": {"row": 61, "column": 66}}, {"id": 156, "type": "parameter_declaration", "text": "EGLDisplay display", "parent": 155, "children": [157, 158], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 50}}, {"id": 157, "type": "type_identifier", "text": "EGLDisplay", "parent": 156, "children": [], "start_point": {"row": 61, "column": 32}, "end_point": {"row": 61, "column": 42}}, {"id": 158, "type": "identifier", "text": "display", "parent": 156, "children": [], "start_point": {"row": 61, "column": 43}, "end_point": {"row": 61, "column": 50}}, {"id": 159, "type": "parameter_declaration", "text": "int hwcFormat", "parent": 155, "children": [160, 161], "start_point": {"row": 61, "column": 52}, "end_point": {"row": 61, "column": 65}}, {"id": 160, "type": "primitive_type", "text": "int", "parent": 159, "children": [], "start_point": {"row": 61, "column": 52}, "end_point": {"row": 61, "column": 55}}, {"id": 161, "type": "identifier", "text": "hwcFormat", "parent": 159, "children": [], "start_point": {"row": 61, "column": 56}, "end_point": {"row": 61, "column": 65}}, {"id": 162, "type": "declaration", "text": "static EGLConfig chooseEglConfig(EGLDisplay display, int format);", "parent": 41, "children": [163, 164], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 69}}, {"id": 163, "type": "type_identifier", "text": "EGLConfig", "parent": 162, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 20}}, {"id": 164, "type": "function_declarator", "text": "chooseEglConfig(EGLDisplay display, int format)", "parent": 162, "children": [165, 166], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 68}}, {"id": 165, "type": "identifier", "text": "chooseEglConfig", "parent": 164, "children": [], "start_point": {"row": 63, "column": 21}, "end_point": {"row": 63, "column": 36}}, {"id": 166, "type": "parameter_list", "text": "(EGLDisplay display, int format)", "parent": 164, "children": [167, 170], "start_point": {"row": 63, "column": 36}, "end_point": {"row": 63, "column": 68}}, {"id": 167, "type": "parameter_declaration", "text": "EGLDisplay display", "parent": 166, "children": [168, 169], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 55}}, {"id": 168, "type": "type_identifier", "text": "EGLDisplay", "parent": 167, "children": [], "start_point": {"row": 63, "column": 37}, "end_point": {"row": 63, "column": 47}}, {"id": 169, "type": "identifier", "text": "display", "parent": 167, "children": [], "start_point": {"row": 63, "column": 48}, "end_point": {"row": 63, "column": 55}}, {"id": 170, "type": "parameter_declaration", "text": "int format", "parent": 166, "children": [171, 172], "start_point": {"row": 63, "column": 57}, "end_point": {"row": 63, "column": 67}}, {"id": 171, "type": "primitive_type", "text": "int", "parent": 170, "children": [], "start_point": {"row": 63, "column": 57}, "end_point": {"row": 63, "column": 60}}, {"id": 172, "type": "identifier", "text": "format", "parent": 170, "children": [], "start_point": {"row": 63, "column": 61}, "end_point": {"row": 63, "column": 67}}, {"id": 173, "type": "declaration", "text": "virtual void", "parent": 41, "children": [174, 175], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 16}}, {"id": 174, "type": "type_identifier", "text": "virtual", "parent": 173, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 11}}, {"id": 175, "type": "identifier", "text": "void", "parent": 173, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 16}}, {"id": 176, "type": "call_expression", "text": "dump(String8& result)", "parent": 41, "children": [177, 178], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 38}}, {"id": 177, "type": "identifier", "text": "dump", "parent": 176, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 21}}, {"id": 178, "type": "argument_list", "text": "(String8& result)", "parent": 176, "children": [179], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 38}}, {"id": 179, "type": "binary_expression", "text": "String8& result", "parent": 178, "children": [180, 181], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 37}}, {"id": 180, "type": "identifier", "text": "String8", "parent": 179, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 29}}, {"id": 181, "type": "identifier", "text": "result", "parent": 179, "children": [], "start_point": {"row": 66, "column": 31}, "end_point": {"row": 66, "column": 37}}, {"id": 182, "type": "declaration", "text": "void flush();", "parent": 41, "children": [183, 184], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 17}}, {"id": 183, "type": "primitive_type", "text": "void", "parent": 182, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 8}}, {"id": 184, "type": "function_declarator", "text": "flush()", "parent": 182, "children": [185, 186], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 16}}, {"id": 185, "type": "identifier", "text": "flush", "parent": 184, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 14}}, {"id": 186, "type": "parameter_list", "text": "()", "parent": 184, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 16}}, {"id": 187, "type": "declaration", "text": "void clearWithColor(float red, float green, float blue, float alpha);", "parent": 41, "children": [188, 189], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 73}}, {"id": 188, "type": "primitive_type", "text": "void", "parent": 187, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 8}}, {"id": 189, "type": "function_declarator", "text": "clearWithColor(float red, float green, float blue, float alpha)", "parent": 187, "children": [190, 191], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 72}}, {"id": 190, "type": "identifier", "text": "clearWithColor", "parent": 189, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 23}}, {"id": 191, "type": "parameter_list", "text": "(float red, float green, float blue, float alpha)", "parent": 189, "children": [192, 195, 198, 201], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 72}}, {"id": 192, "type": "parameter_declaration", "text": "float red", "parent": 191, "children": [193, 194], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 33}}, {"id": 193, "type": "primitive_type", "text": "float", "parent": 192, "children": [], "start_point": {"row": 70, "column": 24}, "end_point": {"row": 70, "column": 29}}, {"id": 194, "type": "identifier", "text": "red", "parent": 192, "children": [], "start_point": {"row": 70, "column": 30}, "end_point": {"row": 70, "column": 33}}, {"id": 195, "type": "parameter_declaration", "text": "float green", "parent": 191, "children": [196, 197], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 46}}, {"id": 196, "type": "primitive_type", "text": "float", "parent": 195, "children": [], "start_point": {"row": 70, "column": 35}, "end_point": {"row": 70, "column": 40}}, {"id": 197, "type": "identifier", "text": "green", "parent": 195, "children": [], "start_point": {"row": 70, "column": 41}, "end_point": {"row": 70, "column": 46}}, {"id": 198, "type": "parameter_declaration", "text": "float blue", "parent": 191, "children": [199, 200], "start_point": {"row": 70, "column": 48}, "end_point": {"row": 70, "column": 58}}, {"id": 199, "type": "primitive_type", "text": "float", "parent": 198, "children": [], "start_point": {"row": 70, "column": 48}, "end_point": {"row": 70, "column": 53}}, {"id": 200, "type": "identifier", "text": "blue", "parent": 198, "children": [], "start_point": {"row": 70, "column": 54}, "end_point": {"row": 70, "column": 58}}, {"id": 201, "type": "parameter_declaration", "text": "float alpha", "parent": 191, "children": [202, 203], "start_point": {"row": 70, "column": 60}, "end_point": {"row": 70, "column": 71}}, {"id": 202, "type": "primitive_type", "text": "float", "parent": 201, "children": [], "start_point": {"row": 70, "column": 60}, "end_point": {"row": 70, "column": 65}}, {"id": 203, "type": "identifier", "text": "alpha", "parent": 201, "children": [], "start_point": {"row": 70, "column": 66}, "end_point": {"row": 70, "column": 71}}, {"id": 204, "type": "declaration", "text": "void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);", "parent": 41, "children": [205, 206], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 72, "column": 61}}, {"id": 205, "type": "primitive_type", "text": "void", "parent": 204, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 8}}, {"id": 206, "type": "function_declarator", "text": "fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha)", "parent": 204, "children": [207, 208], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 72, "column": 60}}, {"id": 207, "type": "identifier", "text": "fillRegionWithColor", "parent": 206, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 28}}, {"id": 208, "type": "parameter_list", "text": "(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha)", "parent": 206, "children": [209, 212, 215, 218, 221, 224], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 72, "column": 60}}, {"id": 209, "type": "parameter_declaration", "text": "const Region& region", "parent": 208, "children": [210, 211], "start_point": {"row": 71, "column": 29}, "end_point": {"row": 71, "column": 49}}, {"id": 210, "type": "type_identifier", "text": "Region", "parent": 209, "children": [], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 71, "column": 41}}, {"id": 211, "type": "identifier", "text": "region", "parent": 209, "children": [], "start_point": {"row": 71, "column": 43}, "end_point": {"row": 71, "column": 49}}, {"id": 212, "type": "parameter_declaration", "text": "uint32_t height", "parent": 208, "children": [213, 214], "start_point": {"row": 71, "column": 51}, "end_point": {"row": 71, "column": 66}}, {"id": 213, "type": "primitive_type", "text": "uint32_t", "parent": 212, "children": [], "start_point": {"row": 71, "column": 51}, "end_point": {"row": 71, "column": 59}}, {"id": 214, "type": "identifier", "text": "height", "parent": 212, "children": [], "start_point": {"row": 71, "column": 60}, "end_point": {"row": 71, "column": 66}}, {"id": 215, "type": "parameter_declaration", "text": "float red", "parent": 208, "children": [216, 217], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 21}}, {"id": 216, "type": "primitive_type", "text": "float", "parent": 215, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 17}}, {"id": 217, "type": "identifier", "text": "red", "parent": 215, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 21}}, {"id": 218, "type": "parameter_declaration", "text": "float green", "parent": 208, "children": [219, 220], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 34}}, {"id": 219, "type": "primitive_type", "text": "float", "parent": 218, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 28}}, {"id": 220, "type": "identifier", "text": "green", "parent": 218, "children": [], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 34}}, {"id": 221, "type": "parameter_declaration", "text": "float blue", "parent": 208, "children": [222, 223], "start_point": {"row": 72, "column": 36}, "end_point": {"row": 72, "column": 46}}, {"id": 222, "type": "primitive_type", "text": "float", "parent": 221, "children": [], "start_point": {"row": 72, "column": 36}, "end_point": {"row": 72, "column": 41}}, {"id": 223, "type": "identifier", "text": "blue", "parent": 221, "children": [], "start_point": {"row": 72, "column": 42}, "end_point": {"row": 72, "column": 46}}, {"id": 224, "type": "parameter_declaration", "text": "float alpha", "parent": 208, "children": [225, 226], "start_point": {"row": 72, "column": 48}, "end_point": {"row": 72, "column": 59}}, {"id": 225, "type": "primitive_type", "text": "float", "parent": 224, "children": [], "start_point": {"row": 72, "column": 48}, "end_point": {"row": 72, "column": 53}}, {"id": 226, "type": "identifier", "text": "alpha", "parent": 224, "children": [], "start_point": {"row": 72, "column": 54}, "end_point": {"row": 72, "column": 59}}, {"id": 227, "type": "declaration", "text": "void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);", "parent": 41, "children": [228, 229], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 82}}, {"id": 228, "type": "primitive_type", "text": "void", "parent": 227, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 8}}, {"id": 229, "type": "function_declarator", "text": "setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top)", "parent": 227, "children": [230, 231], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 81}}, {"id": 230, "type": "identifier", "text": "setScissor", "parent": 229, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 19}}, {"id": 231, "type": "parameter_list", "text": "(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top)", "parent": 229, "children": [232, 235, 238, 241], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 81}}, {"id": 232, "type": "parameter_declaration", "text": "uint32_t left", "parent": 231, "children": [233, 234], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 33}}, {"id": 233, "type": "primitive_type", "text": "uint32_t", "parent": 232, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 28}}, {"id": 234, "type": "identifier", "text": "left", "parent": 232, "children": [], "start_point": {"row": 75, "column": 29}, "end_point": {"row": 75, "column": 33}}, {"id": 235, "type": "parameter_declaration", "text": "uint32_t bottom", "parent": 231, "children": [236, 237], "start_point": {"row": 75, "column": 35}, "end_point": {"row": 75, "column": 50}}, {"id": 236, "type": "primitive_type", "text": "uint32_t", "parent": 235, "children": [], "start_point": {"row": 75, "column": 35}, "end_point": {"row": 75, "column": 43}}, {"id": 237, "type": "identifier", "text": "bottom", "parent": 235, "children": [], "start_point": {"row": 75, "column": 44}, "end_point": {"row": 75, "column": 50}}, {"id": 238, "type": "parameter_declaration", "text": "uint32_t right", "parent": 231, "children": [239, 240], "start_point": {"row": 75, "column": 52}, "end_point": {"row": 75, "column": 66}}, {"id": 239, "type": "primitive_type", "text": "uint32_t", "parent": 238, "children": [], "start_point": {"row": 75, "column": 52}, "end_point": {"row": 75, "column": 60}}, {"id": 240, "type": "identifier", "text": "right", "parent": 238, "children": [], "start_point": {"row": 75, "column": 61}, "end_point": {"row": 75, "column": 66}}, {"id": 241, "type": "parameter_declaration", "text": "uint32_t top", "parent": 231, "children": [242, 243], "start_point": {"row": 75, "column": 68}, "end_point": {"row": 75, "column": 80}}, {"id": 242, "type": "primitive_type", "text": "uint32_t", "parent": 241, "children": [], "start_point": {"row": 75, "column": 68}, "end_point": {"row": 75, "column": 76}}, {"id": 243, "type": "identifier", "text": "top", "parent": 241, "children": [], "start_point": {"row": 75, "column": 77}, "end_point": {"row": 75, "column": 80}}, {"id": 244, "type": "declaration", "text": "void disableScissor();", "parent": 41, "children": [245, 246], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 26}}, {"id": 245, "type": "primitive_type", "text": "void", "parent": 244, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 8}}, {"id": 246, "type": "function_declarator", "text": "disableScissor()", "parent": 244, "children": [247, 248], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 25}}, {"id": 247, "type": "identifier", "text": "disableScissor", "parent": 246, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 23}}, {"id": 248, "type": "parameter_list", "text": "()", "parent": 246, "children": [], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 25}}, {"id": 249, "type": "declaration", "text": "void genTextures(size_t count, uint32_t* names);", "parent": 41, "children": [250, 251], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 52}}, {"id": 250, "type": "primitive_type", "text": "void", "parent": 249, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 8}}, {"id": 251, "type": "function_declarator", "text": "genTextures(size_t count, uint32_t* names)", "parent": 249, "children": [252, 253], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 51}}, {"id": 252, "type": "identifier", "text": "genTextures", "parent": 251, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 20}}, {"id": 253, "type": "parameter_list", "text": "(size_t count, uint32_t* names)", "parent": 251, "children": [254, 257], "start_point": {"row": 77, "column": 20}, "end_point": {"row": 77, "column": 51}}, {"id": 254, "type": "parameter_declaration", "text": "size_t count", "parent": 253, "children": [255, 256], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 33}}, {"id": 255, "type": "primitive_type", "text": "size_t", "parent": 254, "children": [], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 27}}, {"id": 256, "type": "identifier", "text": "count", "parent": 254, "children": [], "start_point": {"row": 77, "column": 28}, "end_point": {"row": 77, "column": 33}}, {"id": 257, "type": "parameter_declaration", "text": "uint32_t* names", "parent": 253, "children": [258, 259], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 50}}, {"id": 258, "type": "primitive_type", "text": "uint32_t", "parent": 257, "children": [], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 43}}, {"id": 259, "type": "pointer_declarator", "text": "* names", "parent": 257, "children": [260, 261], "start_point": {"row": 77, "column": 43}, "end_point": {"row": 77, "column": 50}}, {"id": 260, "type": "*", "text": "*", "parent": 259, "children": [], "start_point": {"row": 77, "column": 43}, "end_point": {"row": 77, "column": 44}}, {"id": 261, "type": "identifier", "text": "names", "parent": 259, "children": [], "start_point": {"row": 77, "column": 45}, "end_point": {"row": 77, "column": 50}}, {"id": 262, "type": "declaration", "text": "void deleteTextures(size_t count, uint32_t const* names);", "parent": 41, "children": [263, 264], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 61}}, {"id": 263, "type": "primitive_type", "text": "void", "parent": 262, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 8}}, {"id": 264, "type": "function_declarator", "text": "deleteTextures(size_t count, uint32_t const* names)", "parent": 262, "children": [265, 266], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 60}}, {"id": 265, "type": "identifier", "text": "deleteTextures", "parent": 264, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 23}}, {"id": 266, "type": "parameter_list", "text": "(size_t count, uint32_t const* names)", "parent": 264, "children": [267, 270], "start_point": {"row": 78, "column": 23}, "end_point": {"row": 78, "column": 60}}, {"id": 267, "type": "parameter_declaration", "text": "size_t count", "parent": 266, "children": [268, 269], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 36}}, {"id": 268, "type": "primitive_type", "text": "size_t", "parent": 267, "children": [], "start_point": {"row": 78, "column": 24}, "end_point": {"row": 78, "column": 30}}, {"id": 269, "type": "identifier", "text": "count", "parent": 267, "children": [], "start_point": {"row": 78, "column": 31}, "end_point": {"row": 78, "column": 36}}, {"id": 270, "type": "parameter_declaration", "text": "uint32_t const* names", "parent": 266, "children": [271, 272], "start_point": {"row": 78, "column": 38}, "end_point": {"row": 78, "column": 59}}, {"id": 271, "type": "primitive_type", "text": "uint32_t", "parent": 270, "children": [], "start_point": {"row": 78, "column": 38}, "end_point": {"row": 78, "column": 46}}, {"id": 272, "type": "pointer_declarator", "text": "* names", "parent": 270, "children": [273, 274], "start_point": {"row": 78, "column": 52}, "end_point": {"row": 78, "column": 59}}, {"id": 273, "type": "*", "text": "*", "parent": 272, "children": [], "start_point": {"row": 78, "column": 52}, "end_point": {"row": 78, "column": 53}}, {"id": 274, "type": "identifier", "text": "names", "parent": 272, "children": [], "start_point": {"row": 78, "column": 54}, "end_point": {"row": 78, "column": 59}}, {"id": 275, "type": "declaration", "text": "void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);", "parent": 41, "children": [276, 277], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 78}}, {"id": 276, "type": "primitive_type", "text": "void", "parent": 275, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 8}}, {"id": 277, "type": "function_declarator", "text": "readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels)", "parent": 275, "children": [278, 279], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 77}}, {"id": 278, "type": "identifier", "text": "readPixels", "parent": 277, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 19}}, {"id": 279, "type": "parameter_list", "text": "(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels)", "parent": 277, "children": [280, 283, 286, 289, 292], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 77}}, {"id": 280, "type": "parameter_declaration", "text": "size_t l", "parent": 279, "children": [281, 282], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 28}}, {"id": 281, "type": "primitive_type", "text": "size_t", "parent": 280, "children": [], "start_point": {"row": 79, "column": 20}, "end_point": {"row": 79, "column": 26}}, {"id": 282, "type": "identifier", "text": "l", "parent": 280, "children": [], "start_point": {"row": 79, "column": 27}, "end_point": {"row": 79, "column": 28}}, {"id": 283, "type": "parameter_declaration", "text": "size_t b", "parent": 279, "children": [284, 285], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 38}}, {"id": 284, "type": "primitive_type", "text": "size_t", "parent": 283, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 36}}, {"id": 285, "type": "identifier", "text": "b", "parent": 283, "children": [], "start_point": {"row": 79, "column": 37}, "end_point": {"row": 79, "column": 38}}, {"id": 286, "type": "parameter_declaration", "text": "size_t w", "parent": 279, "children": [287, 288], "start_point": {"row": 79, "column": 40}, "end_point": {"row": 79, "column": 48}}, {"id": 287, "type": "primitive_type", "text": "size_t", "parent": 286, "children": [], "start_point": {"row": 79, "column": 40}, "end_point": {"row": 79, "column": 46}}, {"id": 288, "type": "identifier", "text": "w", "parent": 286, "children": [], "start_point": {"row": 79, "column": 47}, "end_point": {"row": 79, "column": 48}}, {"id": 289, "type": "parameter_declaration", "text": "size_t h", "parent": 279, "children": [290, 291], "start_point": {"row": 79, "column": 50}, "end_point": {"row": 79, "column": 58}}, {"id": 290, "type": "primitive_type", "text": "size_t", "parent": 289, "children": [], "start_point": {"row": 79, "column": 50}, "end_point": {"row": 79, "column": 56}}, {"id": 291, "type": "identifier", "text": "h", "parent": 289, "children": [], "start_point": {"row": 79, "column": 57}, "end_point": {"row": 79, "column": 58}}, {"id": 292, "type": "parameter_declaration", "text": "uint32_t* pixels", "parent": 279, "children": [293, 294], "start_point": {"row": 79, "column": 60}, "end_point": {"row": 79, "column": 76}}, {"id": 293, "type": "primitive_type", "text": "uint32_t", "parent": 292, "children": [], "start_point": {"row": 79, "column": 60}, "end_point": {"row": 79, "column": 68}}, {"id": 294, "type": "pointer_declarator", "text": "* pixels", "parent": 292, "children": [295, 296], "start_point": {"row": 79, "column": 68}, "end_point": {"row": 79, "column": 76}}, {"id": 295, "type": "*", "text": "*", "parent": 294, "children": [], "start_point": {"row": 79, "column": 68}, "end_point": {"row": 79, "column": 69}}, {"id": 296, "type": "identifier", "text": "pixels", "parent": 294, "children": [], "start_point": {"row": 79, "column": 70}, "end_point": {"row": 79, "column": 76}}, {"id": 297, "type": "function_definition", "text": "class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n }", "parent": 41, "children": [298], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 89, "column": 5}}, {"id": 298, "type": "identifier", "text": "BindImageAsFramebuffer", "parent": 297, "children": [], "start_point": {"row": 81, "column": 10}, "end_point": {"row": 81, "column": 32}}, {"id": 299, "type": "binary_expression", "text": "RenderEngine& mEngine", "parent": 297, "children": [300, 301], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 29}}, {"id": 300, "type": "identifier", "text": "RenderEngine", "parent": 299, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 20}}, {"id": 301, "type": "identifier", "text": "mEngine", "parent": 299, "children": [], "start_point": {"row": 82, "column": 22}, "end_point": {"row": 82, "column": 29}}, {"id": 302, "type": "declaration", "text": "uint32_t mTexName, mFbName;", "parent": 297, "children": [303, 304, 305], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 35}}, {"id": 303, "type": "primitive_type", "text": "uint32_t", "parent": 302, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 16}}, {"id": 304, "type": "identifier", "text": "mTexName", "parent": 302, "children": [], "start_point": {"row": 83, "column": 17}, "end_point": {"row": 83, "column": 25}}, {"id": 305, "type": "identifier", "text": "mFbName", "parent": 302, "children": [], "start_point": {"row": 83, "column": 27}, "end_point": {"row": 83, "column": 34}}, {"id": 306, "type": "declaration", "text": "uint32_t mStatus;", "parent": 297, "children": [307, 308], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 25}}, {"id": 307, "type": "primitive_type", "text": "uint32_t", "parent": 306, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 16}}, {"id": 308, "type": "identifier", "text": "mStatus", "parent": 306, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 24}}, {"id": 309, "type": "labeled_statement", "text": "public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);", "parent": 297, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 86, "column": 72}}, {"id": 310, "type": "call_expression", "text": "BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image)", "parent": 309, "children": [311, 312], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 71}}, {"id": 311, "type": "identifier", "text": "BindImageAsFramebuffer", "parent": 310, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 30}}, {"id": 312, "type": "argument_list", "text": "(RenderEngine& engine, EGLImageKHR image)", "parent": 310, "children": [313, 316, 317], "start_point": {"row": 86, "column": 30}, "end_point": {"row": 86, "column": 71}}, {"id": 313, "type": "binary_expression", "text": "RenderEngine& engine", "parent": 312, "children": [314, 315], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 51}}, {"id": 314, "type": "identifier", "text": "RenderEngine", "parent": 313, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 43}}, {"id": 315, "type": "identifier", "text": "engine", "parent": 313, "children": [], "start_point": {"row": 86, "column": 45}, "end_point": {"row": 86, "column": 51}}, {"id": 316, "type": "identifier", "text": "EGLImageKHR", "parent": 312, "children": [], "start_point": {"row": 86, "column": 53}, "end_point": {"row": 86, "column": 64}}, {"id": 317, "type": "ERROR", "text": "image", "parent": 312, "children": [318], "start_point": {"row": 86, "column": 65}, "end_point": {"row": 86, "column": 70}}, {"id": 318, "type": "identifier", "text": "image", "parent": 317, "children": [], "start_point": {"row": 86, "column": 65}, "end_point": {"row": 86, "column": 70}}, {"id": 319, "type": "unary_expression", "text": "~BindImageAsFramebuffer()", "parent": 297, "children": [320, 321], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 33}}, {"id": 320, "type": "~", "text": "~", "parent": 319, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 9}}, {"id": 321, "type": "call_expression", "text": "BindImageAsFramebuffer()", "parent": 319, "children": [322, 323], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 33}}, {"id": 322, "type": "identifier", "text": "BindImageAsFramebuffer", "parent": 321, "children": [], "start_point": {"row": 87, "column": 9}, "end_point": {"row": 87, "column": 31}}, {"id": 323, "type": "argument_list", "text": "()", "parent": 321, "children": [], "start_point": {"row": 87, "column": 31}, "end_point": {"row": 87, "column": 33}}, {"id": 324, "type": "ERROR", "text": "int getStatus() const", "parent": 297, "children": [325, 326], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 29}}, {"id": 325, "type": "primitive_type", "text": "int", "parent": 324, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 11}}, {"id": 326, "type": "function_declarator", "text": "getStatus()", "parent": 324, "children": [327, 328], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 23}}, {"id": 327, "type": "identifier", "text": "getStatus", "parent": 326, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 21}}, {"id": 328, "type": "parameter_list", "text": "()", "parent": 326, "children": [], "start_point": {"row": 88, "column": 21}, "end_point": {"row": 88, "column": 23}}, {"id": 329, "type": "ERROR", "text": "virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const", "parent": 41, "children": [330, 331, 333, 336, 366, 368, 371, 388, 401, 403, 422, 435, 437, 450, 460, 482, 494, 504, 514, 527, 537, 547, 548, 553], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 121, "column": 36}}, {"id": 330, "type": "type_identifier", "text": "virtual", "parent": 329, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 11}}, {"id": 331, "type": "ERROR", "text": "void", "parent": 329, "children": [332], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 16}}, {"id": 332, "type": "identifier", "text": "void", "parent": 331, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 16}}, {"id": 333, "type": "function_declarator", "text": "checkErrors()", "parent": 329, "children": [334, 335], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 30}}, {"id": 334, "type": "identifier", "text": "checkErrors", "parent": 333, "children": [], "start_point": {"row": 92, "column": 17}, "end_point": {"row": 92, "column": 28}}, {"id": 335, "type": "parameter_list", "text": "()", "parent": 333, "children": [], "start_point": {"row": 92, "column": 28}, "end_point": {"row": 92, "column": 30}}, {"id": 336, "type": "declaration", "text": "const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;", "parent": 329, "children": [337, 338, 340], "start_point": {"row": 92, "column": 31}, "end_point": {"row": 94, "column": 96}}, {"id": 337, "type": "type_identifier", "text": "virtual", "parent": 336, "children": [], "start_point": {"row": 93, "column": 4}, "end_point": {"row": 93, "column": 11}}, {"id": 338, "type": "ERROR", "text": "void", "parent": 336, "children": [339], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 16}}, {"id": 339, "type": "identifier", "text": "void", "parent": 338, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 16}}, {"id": 340, "type": "init_declarator", "text": "setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0", "parent": 336, "children": [341, 364, 365], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 94, "column": 95}}, {"id": 341, "type": "function_declarator", "text": "setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation)", "parent": 340, "children": [342, 343], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 94, "column": 91}}, {"id": 342, "type": "identifier", "text": "setViewportAndProjection", "parent": 341, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 41}}, {"id": 343, "type": "parameter_list", "text": "(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation)", "parent": 341, "children": [344, 347, 350, 353, 356, 359], "start_point": {"row": 93, "column": 41}, "end_point": {"row": 94, "column": 91}}, {"id": 344, "type": "parameter_declaration", "text": "size_t vpw", "parent": 343, "children": [345, 346], "start_point": {"row": 93, "column": 42}, "end_point": {"row": 93, "column": 52}}, {"id": 345, "type": "primitive_type", "text": "size_t", "parent": 344, "children": [], "start_point": {"row": 93, "column": 42}, "end_point": {"row": 93, "column": 48}}, {"id": 346, "type": "identifier", "text": "vpw", "parent": 344, "children": [], "start_point": {"row": 93, "column": 49}, "end_point": {"row": 93, "column": 52}}, {"id": 347, "type": "parameter_declaration", "text": "size_t vph", "parent": 343, "children": [348, 349], "start_point": {"row": 93, "column": 54}, "end_point": {"row": 93, "column": 64}}, {"id": 348, "type": "primitive_type", "text": "size_t", "parent": 347, "children": [], "start_point": {"row": 93, "column": 54}, "end_point": {"row": 93, "column": 60}}, {"id": 349, "type": "identifier", "text": "vph", "parent": 347, "children": [], "start_point": {"row": 93, "column": 61}, "end_point": {"row": 93, "column": 64}}, {"id": 350, "type": "parameter_declaration", "text": "Rect sourceCrop", "parent": 343, "children": [351, 352], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 27}}, {"id": 351, "type": "type_identifier", "text": "Rect", "parent": 350, "children": [], "start_point": {"row": 94, "column": 12}, "end_point": {"row": 94, "column": 16}}, {"id": 352, "type": "identifier", "text": "sourceCrop", "parent": 350, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 27}}, {"id": 353, "type": "parameter_declaration", "text": "size_t hwh", "parent": 343, "children": [354, 355], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 39}}, {"id": 354, "type": "primitive_type", "text": "size_t", "parent": 353, "children": [], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 35}}, {"id": 355, "type": "identifier", "text": "hwh", "parent": 353, "children": [], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 39}}, {"id": 356, "type": "parameter_declaration", "text": "bool yswap", "parent": 343, "children": [357, 358], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 51}}, {"id": 357, "type": "primitive_type", "text": "bool", "parent": 356, "children": [], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 45}}, {"id": 358, "type": "identifier", "text": "yswap", "parent": 356, "children": [], "start_point": {"row": 94, "column": 46}, "end_point": {"row": 94, "column": 51}}, {"id": 359, "type": "parameter_declaration", "text": "Transform::orientation_flags rotation", "parent": 343, "children": [360, 361, 363], "start_point": {"row": 94, "column": 53}, "end_point": {"row": 94, "column": 90}}, {"id": 360, "type": "type_identifier", "text": "Transform", "parent": 359, "children": [], "start_point": {"row": 94, "column": 53}, "end_point": {"row": 94, "column": 62}}, {"id": 361, "type": "ERROR", "text": "::orientation_flags", "parent": 359, "children": [362], "start_point": {"row": 94, "column": 62}, "end_point": {"row": 94, "column": 81}}, {"id": 362, "type": "identifier", "text": "orientation_flags", "parent": 361, "children": [], "start_point": {"row": 94, "column": 64}, "end_point": {"row": 94, "column": 81}}, {"id": 363, "type": "identifier", "text": "rotation", "parent": 359, "children": [], "start_point": {"row": 94, "column": 82}, "end_point": {"row": 94, "column": 90}}, {"id": 364, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 94, "column": 92}, "end_point": {"row": 94, "column": 93}}, {"id": 365, "type": "number_literal", "text": "0", "parent": 340, "children": [], "start_point": {"row": 94, "column": 94}, "end_point": {"row": 94, "column": 95}}, {"id": 366, "type": "ERROR", "text": "#ifdef", "parent": 329, "children": [367], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 367, "type": "#ifdef", "text": "#ifdef", "parent": 366, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 6}}, {"id": 368, "type": "declaration", "text": "USE_HWC2\n virtual", "parent": 329, "children": [369, 370], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 96, "column": 11}}, {"id": 369, "type": "type_identifier", "text": "USE_HWC2", "parent": 368, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 15}}, {"id": 370, "type": "identifier", "text": "virtual", "parent": 368, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 11}}, {"id": 371, "type": "declaration", "text": "void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;", "parent": 329, "children": [372, 373], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 91}}, {"id": 372, "type": "primitive_type", "text": "void", "parent": 371, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 16}}, {"id": 373, "type": "init_declarator", "text": "setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0", "parent": 371, "children": [374, 386, 387], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 90}}, {"id": 374, "type": "function_declarator", "text": "setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha)", "parent": 373, "children": [375, 376], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 86}}, {"id": 375, "type": "identifier", "text": "setupLayerBlending", "parent": 374, "children": [], "start_point": {"row": 96, "column": 17}, "end_point": {"row": 96, "column": 35}}, {"id": 376, "type": "parameter_list", "text": "(bool premultipliedAlpha, bool opaque, float alpha)", "parent": 374, "children": [377, 380, 383], "start_point": {"row": 96, "column": 35}, "end_point": {"row": 96, "column": 86}}, {"id": 377, "type": "parameter_declaration", "text": "bool premultipliedAlpha", "parent": 376, "children": [378, 379], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 59}}, {"id": 378, "type": "primitive_type", "text": "bool", "parent": 377, "children": [], "start_point": {"row": 96, "column": 36}, "end_point": {"row": 96, "column": 40}}, {"id": 379, "type": "identifier", "text": "premultipliedAlpha", "parent": 377, "children": [], "start_point": {"row": 96, "column": 41}, "end_point": {"row": 96, "column": 59}}, {"id": 380, "type": "parameter_declaration", "text": "bool opaque", "parent": 376, "children": [381, 382], "start_point": {"row": 96, "column": 61}, "end_point": {"row": 96, "column": 72}}, {"id": 381, "type": "primitive_type", "text": "bool", "parent": 380, "children": [], "start_point": {"row": 96, "column": 61}, "end_point": {"row": 96, "column": 65}}, {"id": 382, "type": "identifier", "text": "opaque", "parent": 380, "children": [], "start_point": {"row": 96, "column": 66}, "end_point": {"row": 96, "column": 72}}, {"id": 383, "type": "parameter_declaration", "text": "float alpha", "parent": 376, "children": [384, 385], "start_point": {"row": 96, "column": 74}, "end_point": {"row": 96, "column": 85}}, {"id": 384, "type": "primitive_type", "text": "float", "parent": 383, "children": [], "start_point": {"row": 96, "column": 74}, "end_point": {"row": 96, "column": 79}}, {"id": 385, "type": "identifier", "text": "alpha", "parent": 383, "children": [], "start_point": {"row": 96, "column": 80}, "end_point": {"row": 96, "column": 85}}, {"id": 386, "type": "=", "text": "=", "parent": 373, "children": [], "start_point": {"row": 96, "column": 87}, "end_point": {"row": 96, "column": 88}}, {"id": 387, "type": "number_literal", "text": "0", "parent": 373, "children": [], "start_point": {"row": 96, "column": 89}, "end_point": {"row": 96, "column": 90}}, {"id": 388, "type": "declaration", "text": "virtual void setupDimLayerBlending(float alpha) = 0;", "parent": 329, "children": [389, 390, 392], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 56}}, {"id": 389, "type": "type_identifier", "text": "virtual", "parent": 388, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 11}}, {"id": 390, "type": "ERROR", "text": "void", "parent": 388, "children": [391], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 16}}, {"id": 391, "type": "identifier", "text": "void", "parent": 390, "children": [], "start_point": {"row": 97, "column": 12}, "end_point": {"row": 97, "column": 16}}, {"id": 392, "type": "init_declarator", "text": "setupDimLayerBlending(float alpha) = 0", "parent": 388, "children": [393, 399, 400], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 55}}, {"id": 393, "type": "function_declarator", "text": "setupDimLayerBlending(float alpha)", "parent": 392, "children": [394, 395], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 51}}, {"id": 394, "type": "identifier", "text": "setupDimLayerBlending", "parent": 393, "children": [], "start_point": {"row": 97, "column": 17}, "end_point": {"row": 97, "column": 38}}, {"id": 395, "type": "parameter_list", "text": "(float alpha)", "parent": 393, "children": [396], "start_point": {"row": 97, "column": 38}, "end_point": {"row": 97, "column": 51}}, {"id": 396, "type": "parameter_declaration", "text": "float alpha", "parent": 395, "children": [397, 398], "start_point": {"row": 97, "column": 39}, "end_point": {"row": 97, "column": 50}}, {"id": 397, "type": "primitive_type", "text": "float", "parent": 396, "children": [], "start_point": {"row": 97, "column": 39}, "end_point": {"row": 97, "column": 44}}, {"id": 398, "type": "identifier", "text": "alpha", "parent": 396, "children": [], "start_point": {"row": 97, "column": 45}, "end_point": {"row": 97, "column": 50}}, {"id": 399, "type": "=", "text": "=", "parent": 392, "children": [], "start_point": {"row": 97, "column": 52}, "end_point": {"row": 97, "column": 53}}, {"id": 400, "type": "number_literal", "text": "0", "parent": 392, "children": [], "start_point": {"row": 97, "column": 54}, "end_point": {"row": 97, "column": 55}}, {"id": 401, "type": "ERROR", "text": "#else", "parent": 329, "children": [402], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 5}}, {"id": 402, "type": "#else", "text": "#else", "parent": 401, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 5}}, {"id": 403, "type": "declaration", "text": "virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;", "parent": 329, "children": [404, 405, 407], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 89}}, {"id": 404, "type": "type_identifier", "text": "virtual", "parent": 403, "children": [], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 11}}, {"id": 405, "type": "ERROR", "text": "void", "parent": 403, "children": [406], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 16}}, {"id": 406, "type": "identifier", "text": "void", "parent": 405, "children": [], "start_point": {"row": 99, "column": 12}, "end_point": {"row": 99, "column": 16}}, {"id": 407, "type": "init_declarator", "text": "setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0", "parent": 403, "children": [408, 420, 421], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 88}}, {"id": 408, "type": "function_declarator", "text": "setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha)", "parent": 407, "children": [409, 410], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 84}}, {"id": 409, "type": "identifier", "text": "setupLayerBlending", "parent": 408, "children": [], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 35}}, {"id": 410, "type": "parameter_list", "text": "(bool premultipliedAlpha, bool opaque, int alpha)", "parent": 408, "children": [411, 414, 417], "start_point": {"row": 99, "column": 35}, "end_point": {"row": 99, "column": 84}}, {"id": 411, "type": "parameter_declaration", "text": "bool premultipliedAlpha", "parent": 410, "children": [412, 413], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 59}}, {"id": 412, "type": "primitive_type", "text": "bool", "parent": 411, "children": [], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 40}}, {"id": 413, "type": "identifier", "text": "premultipliedAlpha", "parent": 411, "children": [], "start_point": {"row": 99, "column": 41}, "end_point": {"row": 99, "column": 59}}, {"id": 414, "type": "parameter_declaration", "text": "bool opaque", "parent": 410, "children": [415, 416], "start_point": {"row": 99, "column": 61}, "end_point": {"row": 99, "column": 72}}, {"id": 415, "type": "primitive_type", "text": "bool", "parent": 414, "children": [], "start_point": {"row": 99, "column": 61}, "end_point": {"row": 99, "column": 65}}, {"id": 416, "type": "identifier", "text": "opaque", "parent": 414, "children": [], "start_point": {"row": 99, "column": 66}, "end_point": {"row": 99, "column": 72}}, {"id": 417, "type": "parameter_declaration", "text": "int alpha", "parent": 410, "children": [418, 419], "start_point": {"row": 99, "column": 74}, "end_point": {"row": 99, "column": 83}}, {"id": 418, "type": "primitive_type", "text": "int", "parent": 417, "children": [], "start_point": {"row": 99, "column": 74}, "end_point": {"row": 99, "column": 77}}, {"id": 419, "type": "identifier", "text": "alpha", "parent": 417, "children": [], "start_point": {"row": 99, "column": 78}, "end_point": {"row": 99, "column": 83}}, {"id": 420, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 99, "column": 85}, "end_point": {"row": 99, "column": 86}}, {"id": 421, "type": "number_literal", "text": "0", "parent": 407, "children": [], "start_point": {"row": 99, "column": 87}, "end_point": {"row": 99, "column": 88}}, {"id": 422, "type": "declaration", "text": "virtual void setupDimLayerBlending(int alpha) = 0;", "parent": 329, "children": [423, 424, 426], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 54}}, {"id": 423, "type": "type_identifier", "text": "virtual", "parent": 422, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 11}}, {"id": 424, "type": "ERROR", "text": "void", "parent": 422, "children": [425], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 16}}, {"id": 425, "type": "identifier", "text": "void", "parent": 424, "children": [], "start_point": {"row": 100, "column": 12}, "end_point": {"row": 100, "column": 16}}, {"id": 426, "type": "init_declarator", "text": "setupDimLayerBlending(int alpha) = 0", "parent": 422, "children": [427, 433, 434], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 53}}, {"id": 427, "type": "function_declarator", "text": "setupDimLayerBlending(int alpha)", "parent": 426, "children": [428, 429], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 49}}, {"id": 428, "type": "identifier", "text": "setupDimLayerBlending", "parent": 427, "children": [], "start_point": {"row": 100, "column": 17}, "end_point": {"row": 100, "column": 38}}, {"id": 429, "type": "parameter_list", "text": "(int alpha)", "parent": 427, "children": [430], "start_point": {"row": 100, "column": 38}, "end_point": {"row": 100, "column": 49}}, {"id": 430, "type": "parameter_declaration", "text": "int alpha", "parent": 429, "children": [431, 432], "start_point": {"row": 100, "column": 39}, "end_point": {"row": 100, "column": 48}}, {"id": 431, "type": "primitive_type", "text": "int", "parent": 430, "children": [], "start_point": {"row": 100, "column": 39}, "end_point": {"row": 100, "column": 42}}, {"id": 432, "type": "identifier", "text": "alpha", "parent": 430, "children": [], "start_point": {"row": 100, "column": 43}, "end_point": {"row": 100, "column": 48}}, {"id": 433, "type": "=", "text": "=", "parent": 426, "children": [], "start_point": {"row": 100, "column": 50}, "end_point": {"row": 100, "column": 51}}, {"id": 434, "type": "number_literal", "text": "0", "parent": 426, "children": [], "start_point": {"row": 100, "column": 52}, "end_point": {"row": 100, "column": 53}}, {"id": 435, "type": "ERROR", "text": "#endif", "parent": 329, "children": [436], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 6}}, {"id": 436, "type": "#endif", "text": "#endif", "parent": 435, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 6}}, {"id": 437, "type": "declaration", "text": "virtual void setupLayerTexturing(const Texture& texture) = 0;", "parent": 329, "children": [438, 439, 441], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 65}}, {"id": 438, "type": "type_identifier", "text": "virtual", "parent": 437, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 11}}, {"id": 439, "type": "ERROR", "text": "void", "parent": 437, "children": [440], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 16}}, {"id": 440, "type": "identifier", "text": "void", "parent": 439, "children": [], "start_point": {"row": 102, "column": 12}, "end_point": {"row": 102, "column": 16}}, {"id": 441, "type": "init_declarator", "text": "setupLayerTexturing(const Texture& texture) = 0", "parent": 437, "children": [442, 448, 449], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 64}}, {"id": 442, "type": "function_declarator", "text": "setupLayerTexturing(const Texture& texture)", "parent": 441, "children": [443, 444], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 60}}, {"id": 443, "type": "identifier", "text": "setupLayerTexturing", "parent": 442, "children": [], "start_point": {"row": 102, "column": 17}, "end_point": {"row": 102, "column": 36}}, {"id": 444, "type": "parameter_list", "text": "(const Texture& texture)", "parent": 442, "children": [445], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 60}}, {"id": 445, "type": "parameter_declaration", "text": "const Texture& texture", "parent": 444, "children": [446, 447], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 59}}, {"id": 446, "type": "type_identifier", "text": "Texture", "parent": 445, "children": [], "start_point": {"row": 102, "column": 43}, "end_point": {"row": 102, "column": 50}}, {"id": 447, "type": "identifier", "text": "texture", "parent": 445, "children": [], "start_point": {"row": 102, "column": 52}, "end_point": {"row": 102, "column": 59}}, {"id": 448, "type": "=", "text": "=", "parent": 441, "children": [], "start_point": {"row": 102, "column": 61}, "end_point": {"row": 102, "column": 62}}, {"id": 449, "type": "number_literal", "text": "0", "parent": 441, "children": [], "start_point": {"row": 102, "column": 63}, "end_point": {"row": 102, "column": 64}}, {"id": 450, "type": "declaration", "text": "virtual void setupLayerBlackedOut() = 0;", "parent": 329, "children": [451, 452, 454], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 44}}, {"id": 451, "type": "type_identifier", "text": "virtual", "parent": 450, "children": [], "start_point": {"row": 103, "column": 4}, "end_point": {"row": 103, "column": 11}}, {"id": 452, "type": "ERROR", "text": "void", "parent": 450, "children": [453], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 16}}, {"id": 453, "type": "identifier", "text": "void", "parent": 452, "children": [], "start_point": {"row": 103, "column": 12}, "end_point": {"row": 103, "column": 16}}, {"id": 454, "type": "init_declarator", "text": "setupLayerBlackedOut() = 0", "parent": 450, "children": [455, 458, 459], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 43}}, {"id": 455, "type": "function_declarator", "text": "setupLayerBlackedOut()", "parent": 454, "children": [456, 457], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 39}}, {"id": 456, "type": "identifier", "text": "setupLayerBlackedOut", "parent": 455, "children": [], "start_point": {"row": 103, "column": 17}, "end_point": {"row": 103, "column": 37}}, {"id": 457, "type": "parameter_list", "text": "()", "parent": 455, "children": [], "start_point": {"row": 103, "column": 37}, "end_point": {"row": 103, "column": 39}}, {"id": 458, "type": "=", "text": "=", "parent": 454, "children": [], "start_point": {"row": 103, "column": 40}, "end_point": {"row": 103, "column": 41}}, {"id": 459, "type": "number_literal", "text": "0", "parent": 454, "children": [], "start_point": {"row": 103, "column": 42}, "end_point": {"row": 103, "column": 43}}, {"id": 460, "type": "declaration", "text": "virtual void setupFillWithColor(float r, float g, float b, float a) = 0;", "parent": 329, "children": [461, 462, 464], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 76}}, {"id": 461, "type": "type_identifier", "text": "virtual", "parent": 460, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 11}}, {"id": 462, "type": "ERROR", "text": "void", "parent": 460, "children": [463], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 16}}, {"id": 463, "type": "identifier", "text": "void", "parent": 462, "children": [], "start_point": {"row": 104, "column": 12}, "end_point": {"row": 104, "column": 16}}, {"id": 464, "type": "init_declarator", "text": "setupFillWithColor(float r, float g, float b, float a) = 0", "parent": 460, "children": [465, 480, 481], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 75}}, {"id": 465, "type": "function_declarator", "text": "setupFillWithColor(float r, float g, float b, float a)", "parent": 464, "children": [466, 467], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 71}}, {"id": 466, "type": "identifier", "text": "setupFillWithColor", "parent": 465, "children": [], "start_point": {"row": 104, "column": 17}, "end_point": {"row": 104, "column": 35}}, {"id": 467, "type": "parameter_list", "text": "(float r, float g, float b, float a)", "parent": 465, "children": [468, 471, 474, 477], "start_point": {"row": 104, "column": 35}, "end_point": {"row": 104, "column": 71}}, {"id": 468, "type": "parameter_declaration", "text": "float r", "parent": 467, "children": [469, 470], "start_point": {"row": 104, "column": 36}, "end_point": {"row": 104, "column": 43}}, {"id": 469, "type": "primitive_type", "text": "float", "parent": 468, "children": [], "start_point": {"row": 104, "column": 36}, "end_point": {"row": 104, "column": 41}}, {"id": 470, "type": "identifier", "text": "r", "parent": 468, "children": [], "start_point": {"row": 104, "column": 42}, "end_point": {"row": 104, "column": 43}}, {"id": 471, "type": "parameter_declaration", "text": "float g", "parent": 467, "children": [472, 473], "start_point": {"row": 104, "column": 45}, "end_point": {"row": 104, "column": 52}}, {"id": 472, "type": "primitive_type", "text": "float", "parent": 471, "children": [], "start_point": {"row": 104, "column": 45}, "end_point": {"row": 104, "column": 50}}, {"id": 473, "type": "identifier", "text": "g", "parent": 471, "children": [], "start_point": {"row": 104, "column": 51}, "end_point": {"row": 104, "column": 52}}, {"id": 474, "type": "parameter_declaration", "text": "float b", "parent": 467, "children": [475, 476], "start_point": {"row": 104, "column": 54}, "end_point": {"row": 104, "column": 61}}, {"id": 475, "type": "primitive_type", "text": "float", "parent": 474, "children": [], "start_point": {"row": 104, "column": 54}, "end_point": {"row": 104, "column": 59}}, {"id": 476, "type": "identifier", "text": "b", "parent": 474, "children": [], "start_point": {"row": 104, "column": 60}, "end_point": {"row": 104, "column": 61}}, {"id": 477, "type": "parameter_declaration", "text": "float a", "parent": 467, "children": [478, 479], "start_point": {"row": 104, "column": 63}, "end_point": {"row": 104, "column": 70}}, {"id": 478, "type": "primitive_type", "text": "float", "parent": 477, "children": [], "start_point": {"row": 104, "column": 63}, "end_point": {"row": 104, "column": 68}}, {"id": 479, "type": "identifier", "text": "a", "parent": 477, "children": [], "start_point": {"row": 104, "column": 69}, "end_point": {"row": 104, "column": 70}}, {"id": 480, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 104, "column": 72}, "end_point": {"row": 104, "column": 73}}, {"id": 481, "type": "number_literal", "text": "0", "parent": 464, "children": [], "start_point": {"row": 104, "column": 74}, "end_point": {"row": 104, "column": 75}}, {"id": 482, "type": "declaration", "text": "virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();", "parent": 329, "children": [483, 484, 491], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 107, "column": 22}}, {"id": 483, "type": "type_identifier", "text": "virtual", "parent": 482, "children": [], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 11}}, {"id": 484, "type": "ERROR", "text": "mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return", "parent": 482, "children": [485, 486], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 107, "column": 14}}, {"id": 485, "type": "identifier", "text": "mat4", "parent": 484, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 16}}, {"id": 486, "type": "function_declarator", "text": "setupColorTransform(const mat4& /* colorTransform */)", "parent": 484, "children": [487, 488], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 70}}, {"id": 487, "type": "identifier", "text": "setupColorTransform", "parent": 486, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 36}}, {"id": 488, "type": "parameter_list", "text": "(const mat4& /* colorTransform */)", "parent": 486, "children": [489], "start_point": {"row": 106, "column": 36}, "end_point": {"row": 106, "column": 70}}, {"id": 489, "type": "parameter_declaration", "text": "const mat4", "parent": 488, "children": [490], "start_point": {"row": 106, "column": 37}, "end_point": {"row": 106, "column": 47}}, {"id": 490, "type": "type_identifier", "text": "mat4", "parent": 489, "children": [], "start_point": {"row": 106, "column": 43}, "end_point": {"row": 106, "column": 47}}, {"id": 491, "type": "function_declarator", "text": "mat4()", "parent": 482, "children": [492, 493], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 21}}, {"id": 492, "type": "identifier", "text": "mat4", "parent": 491, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 19}}, {"id": 493, "type": "parameter_list", "text": "()", "parent": 491, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 21}}, {"id": 494, "type": "declaration", "text": "virtual void disableTexturing() = 0;", "parent": 329, "children": [495, 496, 498], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 40}}, {"id": 495, "type": "type_identifier", "text": "virtual", "parent": 494, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 11}}, {"id": 496, "type": "ERROR", "text": "void", "parent": 494, "children": [497], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 16}}, {"id": 497, "type": "identifier", "text": "void", "parent": 496, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 16}}, {"id": 498, "type": "init_declarator", "text": "disableTexturing() = 0", "parent": 494, "children": [499, 502, 503], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 39}}, {"id": 499, "type": "function_declarator", "text": "disableTexturing()", "parent": 498, "children": [500, 501], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 35}}, {"id": 500, "type": "identifier", "text": "disableTexturing", "parent": 499, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 33}}, {"id": 501, "type": "parameter_list", "text": "()", "parent": 499, "children": [], "start_point": {"row": 110, "column": 33}, "end_point": {"row": 110, "column": 35}}, {"id": 502, "type": "=", "text": "=", "parent": 498, "children": [], "start_point": {"row": 110, "column": 36}, "end_point": {"row": 110, "column": 37}}, {"id": 503, "type": "number_literal", "text": "0", "parent": 498, "children": [], "start_point": {"row": 110, "column": 38}, "end_point": {"row": 110, "column": 39}}, {"id": 504, "type": "declaration", "text": "virtual void disableBlending() = 0;", "parent": 329, "children": [505, 506, 508], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 39}}, {"id": 505, "type": "type_identifier", "text": "virtual", "parent": 504, "children": [], "start_point": {"row": 111, "column": 4}, "end_point": {"row": 111, "column": 11}}, {"id": 506, "type": "ERROR", "text": "void", "parent": 504, "children": [507], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 16}}, {"id": 507, "type": "identifier", "text": "void", "parent": 506, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 16}}, {"id": 508, "type": "init_declarator", "text": "disableBlending() = 0", "parent": 504, "children": [509, 512, 513], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 38}}, {"id": 509, "type": "function_declarator", "text": "disableBlending()", "parent": 508, "children": [510, 511], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 34}}, {"id": 510, "type": "identifier", "text": "disableBlending", "parent": 509, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 32}}, {"id": 511, "type": "parameter_list", "text": "()", "parent": 509, "children": [], "start_point": {"row": 111, "column": 32}, "end_point": {"row": 111, "column": 34}}, {"id": 512, "type": "=", "text": "=", "parent": 508, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 36}}, {"id": 513, "type": "number_literal", "text": "0", "parent": 508, "children": [], "start_point": {"row": 111, "column": 37}, "end_point": {"row": 111, "column": 38}}, {"id": 514, "type": "declaration", "text": "virtual void drawMesh(const Mesh& mesh) = 0;", "parent": 329, "children": [515, 516, 518], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 48}}, {"id": 515, "type": "type_identifier", "text": "virtual", "parent": 514, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 11}}, {"id": 516, "type": "ERROR", "text": "void", "parent": 514, "children": [517], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 16}}, {"id": 517, "type": "identifier", "text": "void", "parent": 516, "children": [], "start_point": {"row": 114, "column": 12}, "end_point": {"row": 114, "column": 16}}, {"id": 518, "type": "init_declarator", "text": "drawMesh(const Mesh& mesh) = 0", "parent": 514, "children": [519, 525, 526], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 47}}, {"id": 519, "type": "function_declarator", "text": "drawMesh(const Mesh& mesh)", "parent": 518, "children": [520, 521], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 43}}, {"id": 520, "type": "identifier", "text": "drawMesh", "parent": 519, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 25}}, {"id": 521, "type": "parameter_list", "text": "(const Mesh& mesh)", "parent": 519, "children": [522], "start_point": {"row": 114, "column": 25}, "end_point": {"row": 114, "column": 43}}, {"id": 522, "type": "parameter_declaration", "text": "const Mesh& mesh", "parent": 521, "children": [523, 524], "start_point": {"row": 114, "column": 26}, "end_point": {"row": 114, "column": 42}}, {"id": 523, "type": "type_identifier", "text": "Mesh", "parent": 522, "children": [], "start_point": {"row": 114, "column": 32}, "end_point": {"row": 114, "column": 36}}, {"id": 524, "type": "identifier", "text": "mesh", "parent": 522, "children": [], "start_point": {"row": 114, "column": 38}, "end_point": {"row": 114, "column": 42}}, {"id": 525, "type": "=", "text": "=", "parent": 518, "children": [], "start_point": {"row": 114, "column": 44}, "end_point": {"row": 114, "column": 45}}, {"id": 526, "type": "number_literal", "text": "0", "parent": 518, "children": [], "start_point": {"row": 114, "column": 46}, "end_point": {"row": 114, "column": 47}}, {"id": 527, "type": "declaration", "text": "virtual size_t getMaxTextureSize() const = 0;", "parent": 329, "children": [528, 529, 531], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 49}}, {"id": 528, "type": "type_identifier", "text": "virtual", "parent": 527, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 11}}, {"id": 529, "type": "ERROR", "text": "size_t", "parent": 527, "children": [530], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 18}}, {"id": 530, "type": "identifier", "text": "size_t", "parent": 529, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 18}}, {"id": 531, "type": "init_declarator", "text": "getMaxTextureSize() const = 0", "parent": 527, "children": [532, 535, 536], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 48}}, {"id": 532, "type": "function_declarator", "text": "getMaxTextureSize() const", "parent": 531, "children": [533, 534], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 44}}, {"id": 533, "type": "identifier", "text": "getMaxTextureSize", "parent": 532, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 36}}, {"id": 534, "type": "parameter_list", "text": "()", "parent": 532, "children": [], "start_point": {"row": 117, "column": 36}, "end_point": {"row": 117, "column": 38}}, {"id": 535, "type": "=", "text": "=", "parent": 531, "children": [], "start_point": {"row": 117, "column": 45}, "end_point": {"row": 117, "column": 46}}, {"id": 536, "type": "number_literal", "text": "0", "parent": 531, "children": [], "start_point": {"row": 117, "column": 47}, "end_point": {"row": 117, "column": 48}}, {"id": 537, "type": "declaration", "text": "virtual size_t getMaxViewportDims() const = 0;", "parent": 329, "children": [538, 539, 541], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 50}}, {"id": 538, "type": "type_identifier", "text": "virtual", "parent": 537, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 11}}, {"id": 539, "type": "ERROR", "text": "size_t", "parent": 537, "children": [540], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 18}}, {"id": 540, "type": "identifier", "text": "size_t", "parent": 539, "children": [], "start_point": {"row": 118, "column": 12}, "end_point": {"row": 118, "column": 18}}, {"id": 541, "type": "init_declarator", "text": "getMaxViewportDims() const = 0", "parent": 537, "children": [542, 545, 546], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 49}}, {"id": 542, "type": "function_declarator", "text": "getMaxViewportDims() const", "parent": 541, "children": [543, 544], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 45}}, {"id": 543, "type": "identifier", "text": "getMaxViewportDims", "parent": 542, "children": [], "start_point": {"row": 118, "column": 19}, "end_point": {"row": 118, "column": 37}}, {"id": 544, "type": "parameter_list", "text": "()", "parent": 542, "children": [], "start_point": {"row": 118, "column": 37}, "end_point": {"row": 118, "column": 39}}, {"id": 545, "type": "=", "text": "=", "parent": 541, "children": [], "start_point": {"row": 118, "column": 46}, "end_point": {"row": 118, "column": 47}}, {"id": 546, "type": "number_literal", "text": "0", "parent": 541, "children": [], "start_point": {"row": 118, "column": 48}, "end_point": {"row": 118, "column": 49}}, {"id": 547, "type": "type_identifier", "text": "EGLConfig", "parent": 329, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 13}}, {"id": 548, "type": "ERROR", "text": "getEGLConfig() const;\n EGLContext", "parent": 329, "children": [549, 552], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 121, "column": 14}}, {"id": 549, "type": "function_declarator", "text": "getEGLConfig() const", "parent": 548, "children": [550, 551], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 34}}, {"id": 550, "type": "identifier", "text": "getEGLConfig", "parent": 549, "children": [], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 26}}, {"id": 551, "type": "parameter_list", "text": "()", "parent": 549, "children": [], "start_point": {"row": 120, "column": 26}, "end_point": {"row": 120, "column": 28}}, {"id": 552, "type": "identifier", "text": "EGLContext", "parent": 548, "children": [], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 14}}, {"id": 553, "type": "function_declarator", "text": "getEGLContext() const", "parent": 329, "children": [554, 555], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 36}}, {"id": 554, "type": "identifier", "text": "getEGLContext", "parent": 553, "children": [], "start_point": {"row": 121, "column": 15}, "end_point": {"row": 121, "column": 28}}, {"id": 555, "type": "parameter_list", "text": "()", "parent": 553, "children": [], "start_point": {"row": 121, "column": 28}, "end_point": {"row": 121, "column": 30}}, {"id": 556, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 6}}]}, "node_categories": {"declarations": {"functions": [28, 41, 65, 81, 95, 123, 143, 153, 164, 184, 189, 206, 229, 246, 251, 264, 277, 297, 326, 333, 341, 374, 393, 408, 427, 442, 455, 465, 486, 491, 499, 509, 519, 532, 542, 549, 553], "variables": [31, 33, 35, 37, 39, 63, 68, 73, 76, 79, 84, 87, 90, 98, 101, 106, 111, 118, 126, 129, 138, 149, 156, 159, 162, 167, 170, 173, 182, 187, 192, 195, 198, 201, 204, 209, 212, 215, 218, 221, 224, 227, 232, 235, 238, 241, 244, 249, 254, 257, 262, 267, 270, 275, 280, 283, 286, 289, 292, 302, 306, 336, 344, 347, 350, 353, 356, 359, 368, 371, 377, 380, 383, 388, 396, 403, 411, 414, 417, 422, 430, 437, 445, 450, 460, 468, 471, 474, 477, 482, 489, 494, 504, 514, 522, 527, 537], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": [43, 44, 46, 47, 51, 55, 59]}, "statements": {"expressions": [135, 176, 179, 299, 310, 313, 319, 321], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 26, 29, 30, 32, 34, 36, 38, 40, 42, 45, 48, 52, 56, 60, 64, 66, 72, 74, 75, 77, 78, 82, 85, 86, 88, 89, 91, 93, 96, 99, 100, 105, 110, 115, 119, 121, 124, 128, 131, 136, 139, 144, 150, 154, 157, 158, 161, 163, 165, 168, 169, 172, 174, 175, 177, 180, 181, 185, 190, 194, 197, 200, 203, 207, 210, 211, 214, 217, 220, 223, 226, 230, 234, 237, 240, 243, 247, 252, 256, 261, 265, 269, 274, 278, 282, 285, 288, 291, 296, 298, 300, 301, 304, 305, 308, 311, 314, 315, 316, 318, 322, 327, 330, 332, 334, 337, 339, 342, 346, 349, 351, 352, 355, 358, 360, 362, 363, 367, 369, 370, 375, 379, 382, 385, 389, 391, 394, 398, 404, 406, 409, 413, 416, 419, 423, 425, 428, 432, 436, 438, 440, 443, 446, 447, 451, 453, 456, 461, 463, 466, 470, 473, 476, 479, 483, 485, 487, 490, 492, 495, 497, 500, 505, 507, 510, 515, 517, 520, 523, 524, 528, 530, 533, 538, 540, 543, 547, 550, 552, 554, 556], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 23, 50, 54, 58, 62, 117, 133, 147, 365, 387, 400, 421, 434, 449, 459, 481, 503, 513, 526, 536, 546], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 28, "universal_type": "function", "name": "String8;", "text_snippet": "namespace android {\n// ---------------------------------------------------------------------------\n\n"}, {"node_id": 41, "universal_type": "function", "name": "RenderEngine", "text_snippet": "class RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERS"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "parseGlesVersion(const char* str)"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "setEGLHandles(EGLConfig config, EGLContext ctxt)"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status)"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "unbindFramebuffer(uint32_t texName, uint32_t fbName)"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "RenderEngine()"}, {"node_id": 153, "universal_type": "function", "name": "hwcFormat)", "text_snippet": "create(EGLDisplay display, int hwcFormat)"}, {"node_id": 164, "universal_type": "function", "name": "format)", "text_snippet": "chooseEglConfig(EGLDisplay display, int format)"}, {"node_id": 184, "universal_type": "function", "name": "unknown", "text_snippet": "flush()"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "clearWithColor(float red, float green, float blue, float alpha)"}, {"node_id": 206, "universal_type": "function", "name": "unknown", "text_snippet": "fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float"}, {"node_id": 229, "universal_type": "function", "name": "unknown", "text_snippet": "setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top)"}, {"node_id": 246, "universal_type": "function", "name": "unknown", "text_snippet": "disableScissor()"}, {"node_id": 251, "universal_type": "function", "name": "unknown", "text_snippet": "genTextures(size_t count, uint32_t* names)"}, {"node_id": 264, "universal_type": "function", "name": "unknown", "text_snippet": "deleteTextures(size_t count, uint32_t const* names)"}, {"node_id": 277, "universal_type": "function", "name": "unknown", "text_snippet": "readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels)"}, {"node_id": 297, "universal_type": "function", "name": "BindImageAsFramebuffer", "text_snippet": "class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n "}, {"node_id": 326, "universal_type": "function", "name": "unknown", "text_snippet": "getStatus()"}, {"node_id": 333, "universal_type": "function", "name": "unknown", "text_snippet": "checkErrors()"}, {"node_id": 341, "universal_type": "function", "name": "yswap,", "text_snippet": "setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap"}, {"node_id": 374, "universal_type": "function", "name": "opaque,", "text_snippet": "setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha)"}, {"node_id": 393, "universal_type": "function", "name": "unknown", "text_snippet": "setupDimLayerBlending(float alpha)"}, {"node_id": 408, "universal_type": "function", "name": "opaque,", "text_snippet": "setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha)"}, {"node_id": 427, "universal_type": "function", "name": "unknown", "text_snippet": "setupDimLayerBlending(int alpha)"}, {"node_id": 442, "universal_type": "function", "name": "unknown", "text_snippet": "setupLayerTexturing(const Texture& texture)"}, {"node_id": 455, "universal_type": "function", "name": "unknown", "text_snippet": "setupLayerBlackedOut()"}, {"node_id": 465, "universal_type": "function", "name": "unknown", "text_snippet": "setupFillWithColor(float r, float g, float b, float a)"}, {"node_id": 486, "universal_type": "function", "name": "unknown", "text_snippet": "setupColorTransform(const mat4& /* colorTransform */)"}, {"node_id": 491, "universal_type": "function", "name": "unknown", "text_snippet": "mat4()"}, {"node_id": 499, "universal_type": "function", "name": "unknown", "text_snippet": "disableTexturing()"}, {"node_id": 509, "universal_type": "function", "name": "unknown", "text_snippet": "disableBlending()"}, {"node_id": 519, "universal_type": "function", "name": "unknown", "text_snippet": "drawMesh(const Mesh& mesh)"}, {"node_id": 532, "universal_type": "function", "name": "unknown", "text_snippet": "getMaxTextureSize() const"}, {"node_id": 542, "universal_type": "function", "name": "unknown", "text_snippet": "getMaxViewportDims() const"}, {"node_id": 549, "universal_type": "function", "name": "unknown", "text_snippet": "getEGLConfig() const"}, {"node_id": 553, "universal_type": "function", "name": "unknown", "text_snippet": "getEGLContext() const"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stdint.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 <EGL/egl.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <EGL/eglext.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <ui/mat4.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <Transform.h>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2013 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n#ifndef SF_RENDERENGINE_H_\n#define SF_RENDERENGINE_H_\n\n#include <stdint.h>\n#include <sys/types.h>\n\n#include <EGL/egl.h>\n#include <EGL/eglext.h>\n#include <ui/mat4.h>\n#include <Transform.h>\n\n#define EGL_NO_CONFIG ((EGLConfig)0)\n\n// ---------------------------------------------------------------------------\nnamespace android {\n// ---------------------------------------------------------------------------\n\nclass String8;\nclass Rect;\nclass Region;\nclass Mesh;\nclass Texture;\n\nclass RenderEngine {\n enum GlesVersion {\n GLES_VERSION_1_0 = 0x10000,\n GLES_VERSION_1_1 = 0x10001,\n GLES_VERSION_2_0 = 0x20000,\n GLES_VERSION_3_0 = 0x30000,\n };\n static GlesVersion parseGlesVersion(const char* str);\n\n EGLConfig mEGLConfig;\n EGLContext mEGLContext;\n void setEGLHandles(EGLConfig config, EGLContext ctxt);\n\n virtual void bindImageAsFramebuffer(EGLImageKHR image, uint32_t* texName, uint32_t* fbName, uint32_t* status) = 0;\n virtual void unbindFramebuffer(uint32_t texName, uint32_t fbName) = 0;\n\nprotected:\n RenderEngine();\n virtual ~RenderEngine() = 0;\n\npublic:\n static RenderEngine* create(EGLDisplay display, int hwcFormat);\n\n static EGLConfig chooseEglConfig(EGLDisplay display, int format);\n\n // dump the extension strings. always call the base class.\n virtual void dump(String8& result);\n\n // helpers\n void flush();\n void clearWithColor(float red, float green, float blue, float alpha);\n void fillRegionWithColor(const Region& region, uint32_t height,\n float red, float green, float blue, float alpha);\n\n // common to all GL versions\n void setScissor(uint32_t left, uint32_t bottom, uint32_t right, uint32_t top);\n void disableScissor();\n void genTextures(size_t count, uint32_t* names);\n void deleteTextures(size_t count, uint32_t const* names);\n void readPixels(size_t l, size_t b, size_t w, size_t h, uint32_t* pixels);\n\n class BindImageAsFramebuffer {\n RenderEngine& mEngine;\n uint32_t mTexName, mFbName;\n uint32_t mStatus;\n public:\n BindImageAsFramebuffer(RenderEngine& engine, EGLImageKHR image);\n ~BindImageAsFramebuffer();\n int getStatus() const;\n };\n\n // set-up\n virtual void checkErrors() const;\n virtual void setViewportAndProjection(size_t vpw, size_t vph,\n Rect sourceCrop, size_t hwh, bool yswap, Transform::orientation_flags rotation) = 0;\n#ifdef USE_HWC2\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, float alpha) = 0;\n virtual void setupDimLayerBlending(float alpha) = 0;\n#else\n virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha) = 0;\n virtual void setupDimLayerBlending(int alpha) = 0;\n#endif\n virtual void setupLayerTexturing(const Texture& texture) = 0;\n virtual void setupLayerBlackedOut() = 0;\n virtual void setupFillWithColor(float r, float g, float b, float a) = 0;\n\n virtual mat4 setupColorTransform(const mat4& /* colorTransform */) {\n return mat4();\n }\n\n virtual void disableTexturing() = 0;\n virtual void disableBlending() = 0;\n\n // drawing\n virtual void drawMesh(const Mesh& mesh) = 0;\n\n // queries\n virtual size_t getMaxTextureSize() const = 0;\n virtual size_t getMaxViewportDims() const = 0;\n\n EGLConfig getEGLConfig() const;\n EGLContext getEGLContext() const;\n};\n\n// ---------------------------------------------------------------------------\n}; // namespace android\n// ---------------------------------------------------------------------------\n\n#endif /* SF_RENDERENGINE_H_ */\n"}
80,342
c
// // Tempo.h // VexFlow // // Created by <NAME> on 1/1/15. // Copyright (c) 2015 <EMAIL>. All rights reserved. // @import Foundation; #import "IAModelBase.h" /** The `Tempo` class wraps tempo data for displaying to the staff The following demonstrates some basic usage of this class. ExampleCode */ @interface Tempo : IAModelBase #pragma mark - Properties /**--------------------------------------------------------------------------------------------------------------------- * @name Properties * --------------------------------------------------------------------------------------------------------------------- */ @property (strong, nonatomic) NSString* name; @property (assign, nonatomic) NSString* duration; @property (assign, nonatomic) float dots; @property (assign, nonatomic) float bpm; @end
32.92
24
(translation_unit) "//\n// Tempo.h\n// VexFlow\n//\n// Created by <NAME> on 1/1/15.\n// Copyright (c) 2015 <EMAIL>. All rights reserved.\n//\n\n@import Foundation;\n#import "IAModelBase.h"\n\n/** The `Tempo` class wraps tempo data for displaying to the staff\n\n The following demonstrates some basic usage of this class.\n\n ExampleCode\n */\n@interface Tempo : IAModelBase\n\n#pragma mark - Properties\n/**---------------------------------------------------------------------------------------------------------------------\n * @name Properties\n * ---------------------------------------------------------------------------------------------------------------------\n */\n@property (strong, nonatomic) NSString* name;\n@property (assign, nonatomic) NSString* duration;\n@property (assign, nonatomic) float dots;\n@property (assign, nonatomic) float bpm;\n\n@end\n" (comment) "//" (comment) "// Tempo.h" (comment) "// VexFlow" (comment) "//" (comment) "// Created by <NAME> on 1/1/15." (comment) "// Copyright (c) 2015 <EMAIL>. All rights reserved." (comment) "//" (ERROR) "@" (ERROR) "@" (declaration) "import Foundation;" (type_identifier) "import" (identifier) "Foundation" (;) ";" (preproc_call) "#import "IAModelBase.h"\n" (preproc_directive) "#import" (preproc_arg) ""IAModelBase.h"" (comment) "/** The `Tempo` class wraps tempo data for displaying to the staff\n\n The following demonstrates some basic usage of this class.\n\n ExampleCode\n */" (ERROR) "@" (ERROR) "@" (declaration) "interface Tempo : IAModelBase" (type_identifier) "interface" (ERROR) "Tempo :" (identifier) "Tempo" (:) ":" (identifier) "IAModelBase" (;) "" (preproc_call) "#pragma mark - Properties\n" (preproc_directive) "#pragma" (preproc_arg) "mark - Properties" (comment) "/**---------------------------------------------------------------------------------------------------------------------\n * @name Properties\n * ---------------------------------------------------------------------------------------------------------------------\n */" (ERROR) "@" (ERROR) "@" (expression_statement) "property (strong, nonatomic)" (call_expression) "property (strong, nonatomic)" (identifier) "property" (argument_list) "(strong, nonatomic)" (() "(" (identifier) "strong" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString* name;" (type_identifier) "NSString" (pointer_declarator) "* name" (*) "*" (identifier) "name" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "property (assign, nonatomic)" (call_expression) "property (assign, nonatomic)" (identifier) "property" (argument_list) "(assign, nonatomic)" (() "(" (identifier) "assign" (,) "," (identifier) "nonatomic" ()) ")" (;) "" (declaration) "NSString* duration;" (type_identifier) "NSString" (pointer_declarator) "* duration" (*) "*" (identifier) "duration" (;) ";" (ERROR) "@property (assign, nonatomic) float" (ERROR) "@" (call_expression) "property (assign, nonatomic)" (identifier) "property" (argument_list) "(assign, nonatomic)" (() "(" (identifier) "assign" (,) "," (identifier) "nonatomic" ()) ")" (identifier) "float" (expression_statement) "dots;" (identifier) "dots" (;) ";" (ERROR) "@property (assign, nonatomic) float" (ERROR) "@" (call_expression) "property (assign, nonatomic)" (identifier) "property" (argument_list) "(assign, nonatomic)" (() "(" (identifier) "assign" (,) "," (identifier) "nonatomic" ()) ")" (identifier) "float" (expression_statement) "bpm;" (identifier) "bpm" (;) ";" (ERROR) "@" (ERROR) "@" (expression_statement) "end" (identifier) "end" (;) ""
100
15
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.92, "nodes": 61, "errors": 0, "source_hash": "e3b2d18a68dab569a05c7331773e4a127a6c72893d9c391b8d1b817ce148d875", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 2, "type": "declaration", "text": "import Foundation;", "parent": null, "children": [3], "start_point": {"row": 8, "column": 1}, "end_point": {"row": 8, "column": 19}}, {"id": 3, "type": "identifier", "text": "Foundation", "parent": 2, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 18}}, {"id": 4, "type": "preproc_call", "text": "#import \"IAModelBase.h\"\n", "parent": null, "children": [5, 6], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 5, "type": "preproc_directive", "text": "#import", "parent": 4, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 6, "type": "preproc_arg", "text": "\"IAModelBase.h\"", "parent": 4, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 7, "type": "ERROR", "text": "@", "parent": null, "children": [8], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 8, "type": "ERROR", "text": "@", "parent": 7, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 9, "type": "declaration", "text": "interface Tempo : IAModelBase", "parent": null, "children": [10, 11, 13], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 30}}, {"id": 10, "type": "type_identifier", "text": "interface", "parent": 9, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 10}}, {"id": 11, "type": "ERROR", "text": "Tempo :", "parent": 9, "children": [12], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 18}}, {"id": 12, "type": "identifier", "text": "Tempo", "parent": 11, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 16}}, {"id": 13, "type": "identifier", "text": "IAModelBase", "parent": 9, "children": [], "start_point": {"row": 17, "column": 19}, "end_point": {"row": 17, "column": 30}}, {"id": 14, "type": "preproc_call", "text": "#pragma mark - Properties\n", "parent": null, "children": [15, 16], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 15, "type": "preproc_directive", "text": "#pragma", "parent": 14, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 16, "type": "preproc_arg", "text": "mark - Properties", "parent": 14, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 25}}, {"id": 17, "type": "ERROR", "text": "@", "parent": null, "children": [18], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 18, "type": "ERROR", "text": "@", "parent": 17, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 1}}, {"id": 19, "type": "call_expression", "text": "property (strong, nonatomic)", "parent": null, "children": [20, 21], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 29}}, {"id": 20, "type": "identifier", "text": "property", "parent": 19, "children": [], "start_point": {"row": 24, "column": 1}, "end_point": {"row": 24, "column": 9}}, {"id": 21, "type": "argument_list", "text": "(strong, nonatomic)", "parent": 19, "children": [22, 23], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 29}}, {"id": 22, "type": "identifier", "text": "strong", "parent": 21, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 17}}, {"id": 23, "type": "identifier", "text": "nonatomic", "parent": 21, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 28}}, {"id": 24, "type": "declaration", "text": "NSString* name;", "parent": null, "children": [25, 26], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 45}}, {"id": 25, "type": "type_identifier", "text": "NSString", "parent": 24, "children": [], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 38}}, {"id": 26, "type": "pointer_declarator", "text": "* name", "parent": 24, "children": [27, 28], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 44}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 39}}, {"id": 28, "type": "identifier", "text": "name", "parent": 26, "children": [], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 44}}, {"id": 29, "type": "ERROR", "text": "@", "parent": null, "children": [30], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 30, "type": "ERROR", "text": "@", "parent": 29, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 31, "type": "call_expression", "text": "property (assign, nonatomic)", "parent": null, "children": [32, 33], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 29}}, {"id": 32, "type": "identifier", "text": "property", "parent": 31, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 9}}, {"id": 33, "type": "argument_list", "text": "(assign, nonatomic)", "parent": 31, "children": [34, 35], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 29}}, {"id": 34, "type": "identifier", "text": "assign", "parent": 33, "children": [], "start_point": {"row": 25, "column": 11}, "end_point": {"row": 25, "column": 17}}, {"id": 35, "type": "identifier", "text": "nonatomic", "parent": 33, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 28}}, {"id": 36, "type": "declaration", "text": "NSString* duration;", "parent": null, "children": [37, 38], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 49}}, {"id": 37, "type": "type_identifier", "text": "NSString", "parent": 36, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 38}}, {"id": 38, "type": "pointer_declarator", "text": "* duration", "parent": 36, "children": [39, 40], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 48}}, {"id": 39, "type": "*", "text": "*", "parent": 38, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 39}}, {"id": 40, "type": "identifier", "text": "duration", "parent": 38, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 48}}, {"id": 41, "type": "ERROR", "text": "@property (assign, nonatomic) float", "parent": null, "children": [42, 43, 48], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 35}}, {"id": 42, "type": "ERROR", "text": "@", "parent": 41, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 43, "type": "call_expression", "text": "property (assign, nonatomic)", "parent": 41, "children": [44, 45], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 29}}, {"id": 44, "type": "identifier", "text": "property", "parent": 43, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 9}}, {"id": 45, "type": "argument_list", "text": "(assign, nonatomic)", "parent": 43, "children": [46, 47], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 29}}, {"id": 46, "type": "identifier", "text": "assign", "parent": 45, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 17}}, {"id": 47, "type": "identifier", "text": "nonatomic", "parent": 45, "children": [], "start_point": {"row": 26, "column": 19}, "end_point": {"row": 26, "column": 28}}, {"id": 48, "type": "identifier", "text": "float", "parent": 41, "children": [], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 35}}, {"id": 49, "type": "identifier", "text": "dots", "parent": null, "children": [], "start_point": {"row": 26, "column": 36}, "end_point": {"row": 26, "column": 40}}, {"id": 50, "type": "ERROR", "text": "@property (assign, nonatomic) float", "parent": null, "children": [51, 52, 57], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 35}}, {"id": 51, "type": "ERROR", "text": "@", "parent": 50, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 1}}, {"id": 52, "type": "call_expression", "text": "property (assign, nonatomic)", "parent": 50, "children": [53, 54], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 29}}, {"id": 53, "type": "identifier", "text": "property", "parent": 52, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 9}}, {"id": 54, "type": "argument_list", "text": "(assign, nonatomic)", "parent": 52, "children": [55, 56], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 29}}, {"id": 55, "type": "identifier", "text": "assign", "parent": 54, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 17}}, {"id": 56, "type": "identifier", "text": "nonatomic", "parent": 54, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 28}}, {"id": 57, "type": "identifier", "text": "float", "parent": 50, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 35}}, {"id": 58, "type": "identifier", "text": "bpm", "parent": null, "children": [], "start_point": {"row": 27, "column": 36}, "end_point": {"row": 27, "column": 39}}, {"id": 59, "type": "ERROR", "text": "@", "parent": null, "children": [60], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}, {"id": 60, "type": "ERROR", "text": "@", "parent": 59, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 9, 24, 36], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [19, 31, 43, 52], "assignments": [], "loops": [], "conditionals": [3, 10, 12, 13, 20, 22, 23, 25, 28, 32, 34, 35, 37, 40, 44, 46, 47, 48, 49, 53, 55, 56, 57, 58], "returns": [], "exceptions": []}, "expressions": {"calls": [4, 14], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Tempo.h\n// VexFlow\n//\n// Created by <NAME> on 1/1/15.\n// Copyright (c) 2015 <EMAIL>. All rights reserved.\n//\n\n@import Foundation;\n#import \"IAModelBase.h\"\n\n/** The `Tempo` class wraps tempo data for displaying to the staff\n\n The following demonstrates some basic usage of this class.\n\n ExampleCode\n */\n@interface Tempo : IAModelBase\n\n#pragma mark - Properties\n/**---------------------------------------------------------------------------------------------------------------------\n * @name Properties\n * ---------------------------------------------------------------------------------------------------------------------\n */\n@property (strong, nonatomic) NSString* name;\n@property (assign, nonatomic) NSString* duration;\n@property (assign, nonatomic) float dots;\n@property (assign, nonatomic) float bpm;\n\n@end\n"}
80,343
c
/* * squareball: A general-purpose library for C99. * Copyright (C) 2014-2018 <NAME> <<EMAIL>> * * This program can be distributed under the terms of the BSD License. * See the file LICENSE. */ #include <stdlib.h> #include <stdio.h> #include <squareball.h> int main(int argc, char **argv) { if (argc != 2) { fprintf(stderr, "Invalid number of arguments\n"); return 1; } size_t len; sb_error_t *err = NULL; char *contents = sb_file_get_contents_utf8(argv[1], &len, &err); if (err != NULL) { fprintf(stderr, "error: %s\n", sb_error_to_string(err)); sb_error_free(err); return 1; } sb_config_t *t = sb_config_parse(contents, len, NULL, &err); free(contents); if (err != NULL) { fprintf(stderr, "error: %s\n", sb_error_to_string(err)); sb_error_free(err); return 1; } char **sections = sb_config_list_sections(t); char *sections_str = sb_strv_join(sections, ", "); printf("Sections: %s\n\n", sections_str); free(sections_str); for (size_t i = 0; sections[i] != NULL; i++) { printf("Keys for '%s':\n", sections[i]); char **keys = sb_config_list_keys(t, sections[i]); for (size_t j = 0; keys[j] != NULL; j++) { printf(" '%s' => '%s'\n", keys[j], sb_config_get(t, sections[i], keys[j])); } printf("\n"); sb_strv_free(keys); } sb_strv_free(sections); sb_config_free(t); return 0; }
28.49
51
(translation_unit) "/*\n * squareball: A general-purpose library for C99.\n * Copyright (C) 2014-2018 <NAME> <<EMAIL>>\n *\n * This program can be distributed under the terms of the BSD License.\n * See the file LICENSE.\n */\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <squareball.h>\n\n\nint\nmain(int argc, char **argv)\n{\n if (argc != 2) {\n fprintf(stderr, "Invalid number of arguments\n");\n return 1;\n }\n\n size_t len;\n sb_error_t *err = NULL;\n\n char *contents = sb_file_get_contents_utf8(argv[1], &len, &err);\n\n if (err != NULL) {\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n sb_config_t *t = sb_config_parse(contents, len, NULL, &err);\n\n free(contents);\n\n if (err != NULL) {\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n char **sections = sb_config_list_sections(t);\n char *sections_str = sb_strv_join(sections, ", ");\n printf("Sections: %s\n\n", sections_str);\n free(sections_str);\n\n for (size_t i = 0; sections[i] != NULL; i++) {\n printf("Keys for '%s':\n", sections[i]);\n char **keys = sb_config_list_keys(t, sections[i]);\n for (size_t j = 0; keys[j] != NULL; j++) {\n printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }\n printf("\n");\n sb_strv_free(keys);\n }\n\n sb_strv_free(sections);\n sb_config_free(t);\n\n return 0;\n}\n" (comment) "/*\n * squareball: A general-purpose library for C99.\n * Copyright (C) 2014-2018 <NAME> <<EMAIL>>\n *\n * This program can be distributed under the terms of the BSD License.\n * See the file LICENSE.\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 <squareball.h>\n" (#include) "#include" (system_lib_string) "<squareball.h>" (function_definition) "int\nmain(int argc, char **argv)\n{\n if (argc != 2) {\n fprintf(stderr, "Invalid number of arguments\n");\n return 1;\n }\n\n size_t len;\n sb_error_t *err = NULL;\n\n char *contents = sb_file_get_contents_utf8(argv[1], &len, &err);\n\n if (err != NULL) {\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n sb_config_t *t = sb_config_parse(contents, len, NULL, &err);\n\n free(contents);\n\n if (err != NULL) {\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n char **sections = sb_config_list_sections(t);\n char *sections_str = sb_strv_join(sections, ", ");\n printf("Sections: %s\n\n", sections_str);\n free(sections_str);\n\n for (size_t i = 0; sections[i] != NULL; i++) {\n printf("Keys for '%s':\n", sections[i]);\n char **keys = sb_config_list_keys(t, sections[i]);\n for (size_t j = 0; keys[j] != NULL; j++) {\n printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }\n printf("\n");\n sb_strv_free(keys);\n }\n\n sb_strv_free(sections);\n sb_config_free(t);\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main(int argc, char **argv)" (identifier) "main" (parameter_list) "(int argc, char **argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char **argv" (primitive_type) "char" (pointer_declarator) "**argv" (*) "*" (pointer_declarator) "*argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n if (argc != 2) {\n fprintf(stderr, "Invalid number of arguments\n");\n return 1;\n }\n\n size_t len;\n sb_error_t *err = NULL;\n\n char *contents = sb_file_get_contents_utf8(argv[1], &len, &err);\n\n if (err != NULL) {\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n sb_config_t *t = sb_config_parse(contents, len, NULL, &err);\n\n free(contents);\n\n if (err != NULL) {\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n char **sections = sb_config_list_sections(t);\n char *sections_str = sb_strv_join(sections, ", ");\n printf("Sections: %s\n\n", sections_str);\n free(sections_str);\n\n for (size_t i = 0; sections[i] != NULL; i++) {\n printf("Keys for '%s':\n", sections[i]);\n char **keys = sb_config_list_keys(t, sections[i]);\n for (size_t j = 0; keys[j] != NULL; j++) {\n printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }\n printf("\n");\n sb_strv_free(keys);\n }\n\n sb_strv_free(sections);\n sb_config_free(t);\n\n return 0;\n}" ({) "{" (if_statement) "if (argc != 2) {\n fprintf(stderr, "Invalid number of arguments\n");\n return 1;\n }" (if) "if" (parenthesized_expression) "(argc != 2)" (() "(" (binary_expression) "argc != 2" (identifier) "argc" (!=) "!=" (number_literal) "2" ()) ")" (compound_statement) "{\n fprintf(stderr, "Invalid number of arguments\n");\n return 1;\n }" ({) "{" (expression_statement) "fprintf(stderr, "Invalid number of arguments\n");" (call_expression) "fprintf(stderr, "Invalid number of arguments\n")" (identifier) "fprintf" (argument_list) "(stderr, "Invalid number of arguments\n")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""Invalid number of arguments\n"" (") """ (string_content) "Invalid number of arguments" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (declaration) "size_t len;" (primitive_type) "size_t" (identifier) "len" (;) ";" (declaration) "sb_error_t *err = NULL;" (type_identifier) "sb_error_t" (init_declarator) "*err = NULL" (pointer_declarator) "*err" (*) "*" (identifier) "err" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "char *contents = sb_file_get_contents_utf8(argv[1], &len, &err);" (primitive_type) "char" (init_declarator) "*contents = sb_file_get_contents_utf8(argv[1], &len, &err)" (pointer_declarator) "*contents" (*) "*" (identifier) "contents" (=) "=" (call_expression) "sb_file_get_contents_utf8(argv[1], &len, &err)" (identifier) "sb_file_get_contents_utf8" (argument_list) "(argv[1], &len, &err)" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (pointer_expression) "&len" (&) "&" (identifier) "len" (,) "," (pointer_expression) "&err" (&) "&" (identifier) "err" ()) ")" (;) ";" (if_statement) "if (err != NULL) {\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }" (if) "if" (parenthesized_expression) "(err != NULL)" (() "(" (binary_expression) "err != NULL" (identifier) "err" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }" ({) "{" (expression_statement) "fprintf(stderr, "error: %s\n", sb_error_to_string(err));" (call_expression) "fprintf(stderr, "error: %s\n", sb_error_to_string(err))" (identifier) "fprintf" (argument_list) "(stderr, "error: %s\n", sb_error_to_string(err))" (() "(" (identifier) "stderr" (,) "," (string_literal) ""error: %s\n"" (") """ (string_content) "error: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "sb_error_to_string(err)" (identifier) "sb_error_to_string" (argument_list) "(err)" (() "(" (identifier) "err" ()) ")" ()) ")" (;) ";" (expression_statement) "sb_error_free(err);" (call_expression) "sb_error_free(err)" (identifier) "sb_error_free" (argument_list) "(err)" (() "(" (identifier) "err" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (declaration) "sb_config_t *t = sb_config_parse(contents, len, NULL, &err);" (type_identifier) "sb_config_t" (init_declarator) "*t = sb_config_parse(contents, len, NULL, &err)" (pointer_declarator) "*t" (*) "*" (identifier) "t" (=) "=" (call_expression) "sb_config_parse(contents, len, NULL, &err)" (identifier) "sb_config_parse" (argument_list) "(contents, len, NULL, &err)" (() "(" (identifier) "contents" (,) "," (identifier) "len" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (pointer_expression) "&err" (&) "&" (identifier) "err" ()) ")" (;) ";" (expression_statement) "free(contents);" (call_expression) "free(contents)" (identifier) "free" (argument_list) "(contents)" (() "(" (identifier) "contents" ()) ")" (;) ";" (if_statement) "if (err != NULL) {\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }" (if) "if" (parenthesized_expression) "(err != NULL)" (() "(" (binary_expression) "err != NULL" (identifier) "err" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n fprintf(stderr, "error: %s\n", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }" ({) "{" (expression_statement) "fprintf(stderr, "error: %s\n", sb_error_to_string(err));" (call_expression) "fprintf(stderr, "error: %s\n", sb_error_to_string(err))" (identifier) "fprintf" (argument_list) "(stderr, "error: %s\n", sb_error_to_string(err))" (() "(" (identifier) "stderr" (,) "," (string_literal) ""error: %s\n"" (") """ (string_content) "error: %s" (escape_sequence) "\n" (") """ (,) "," (call_expression) "sb_error_to_string(err)" (identifier) "sb_error_to_string" (argument_list) "(err)" (() "(" (identifier) "err" ()) ")" ()) ")" (;) ";" (expression_statement) "sb_error_free(err);" (call_expression) "sb_error_free(err)" (identifier) "sb_error_free" (argument_list) "(err)" (() "(" (identifier) "err" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (declaration) "char **sections = sb_config_list_sections(t);" (primitive_type) "char" (init_declarator) "**sections = sb_config_list_sections(t)" (pointer_declarator) "**sections" (*) "*" (pointer_declarator) "*sections" (*) "*" (identifier) "sections" (=) "=" (call_expression) "sb_config_list_sections(t)" (identifier) "sb_config_list_sections" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (declaration) "char *sections_str = sb_strv_join(sections, ", ");" (primitive_type) "char" (init_declarator) "*sections_str = sb_strv_join(sections, ", ")" (pointer_declarator) "*sections_str" (*) "*" (identifier) "sections_str" (=) "=" (call_expression) "sb_strv_join(sections, ", ")" (identifier) "sb_strv_join" (argument_list) "(sections, ", ")" (() "(" (identifier) "sections" (,) "," (string_literal) "", "" (") """ (string_content) ", " (") """ ()) ")" (;) ";" (expression_statement) "printf("Sections: %s\n\n", sections_str);" (call_expression) "printf("Sections: %s\n\n", sections_str)" (identifier) "printf" (argument_list) "("Sections: %s\n\n", sections_str)" (() "(" (string_literal) ""Sections: %s\n\n"" (") """ (string_content) "Sections: %s" (escape_sequence) "\n" (escape_sequence) "\n" (") """ (,) "," (identifier) "sections_str" ()) ")" (;) ";" (expression_statement) "free(sections_str);" (call_expression) "free(sections_str)" (identifier) "free" (argument_list) "(sections_str)" (() "(" (identifier) "sections_str" ()) ")" (;) ";" (for_statement) "for (size_t i = 0; sections[i] != NULL; i++) {\n printf("Keys for '%s':\n", sections[i]);\n char **keys = sb_config_list_keys(t, sections[i]);\n for (size_t j = 0; keys[j] != NULL; j++) {\n printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }\n printf("\n");\n sb_strv_free(keys);\n }" (for) "for" (() "(" (declaration) "size_t i = 0;" (primitive_type) "size_t" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "sections[i] != NULL" (subscript_expression) "sections[i]" (identifier) "sections" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n printf("Keys for '%s':\n", sections[i]);\n char **keys = sb_config_list_keys(t, sections[i]);\n for (size_t j = 0; keys[j] != NULL; j++) {\n printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }\n printf("\n");\n sb_strv_free(keys);\n }" ({) "{" (expression_statement) "printf("Keys for '%s':\n", sections[i]);" (call_expression) "printf("Keys for '%s':\n", sections[i])" (identifier) "printf" (argument_list) "("Keys for '%s':\n", sections[i])" (() "(" (string_literal) ""Keys for '%s':\n"" (") """ (string_content) "Keys for '%s':" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "sections[i]" (identifier) "sections" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (declaration) "char **keys = sb_config_list_keys(t, sections[i]);" (primitive_type) "char" (init_declarator) "**keys = sb_config_list_keys(t, sections[i])" (pointer_declarator) "**keys" (*) "*" (pointer_declarator) "*keys" (*) "*" (identifier) "keys" (=) "=" (call_expression) "sb_config_list_keys(t, sections[i])" (identifier) "sb_config_list_keys" (argument_list) "(t, sections[i])" (() "(" (identifier) "t" (,) "," (subscript_expression) "sections[i]" (identifier) "sections" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (for_statement) "for (size_t j = 0; keys[j] != NULL; j++) {\n printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }" (for) "for" (() "(" (declaration) "size_t j = 0;" (primitive_type) "size_t" (init_declarator) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "keys[j] != NULL" (subscript_expression) "keys[j]" (identifier) "keys" ([) "[" (identifier) "j" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" (;) ";" (update_expression) "j++" (identifier) "j" (++) "++" ()) ")" (compound_statement) "{\n printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }" ({) "{" (expression_statement) "printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]));" (call_expression) "printf(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]))" (identifier) "printf" (argument_list) "(" '%s' => '%s'\n", keys[j],\n sb_config_get(t, sections[i], keys[j]))" (() "(" (string_literal) "" '%s' => '%s'\n"" (") """ (string_content) " '%s' => '%s'" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "keys[j]" (identifier) "keys" ([) "[" (identifier) "j" (]) "]" (,) "," (call_expression) "sb_config_get(t, sections[i], keys[j])" (identifier) "sb_config_get" (argument_list) "(t, sections[i], keys[j])" (() "(" (identifier) "t" (,) "," (subscript_expression) "sections[i]" (identifier) "sections" ([) "[" (identifier) "i" (]) "]" (,) "," (subscript_expression) "keys[j]" (identifier) "keys" ([) "[" (identifier) "j" (]) "]" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (expression_statement) "sb_strv_free(keys);" (call_expression) "sb_strv_free(keys)" (identifier) "sb_strv_free" (argument_list) "(keys)" (() "(" (identifier) "keys" ()) ")" (;) ";" (}) "}" (expression_statement) "sb_strv_free(sections);" (call_expression) "sb_strv_free(sections)" (identifier) "sb_strv_free" (argument_list) "(sections)" (() "(" (identifier) "sections" ()) ")" (;) ";" (expression_statement) "sb_config_free(t);" (call_expression) "sb_config_free(t)" (identifier) "sb_config_free" (argument_list) "(t)" (() "(" (identifier) "t" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
453
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 28.49, "nodes": 264, "errors": 0, "source_hash": "ef0d0ad33d673ba021b2bb99fab107fd6069ed27ddb2716463b70f5fbf882514", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdlib.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": "<stdlib.h>", "parent": 0, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.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": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <squareball.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<squareball.h>", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 23}}, {"id": 9, "type": "function_definition", "text": "int\nmain(int argc, char **argv)\n{\n if (argc != 2) {\n fprintf(stderr, \"Invalid number of arguments\\n\");\n return 1;\n }\n\n size_t len;\n sb_error_t *err = NULL;\n\n char *contents = sb_file_get_contents_utf8(argv[1], &len, &err);\n\n if (err != NULL) {\n fprintf(stderr, \"error: %s\\n\", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n sb_config_t *t = sb_config_parse(contents, len, NULL, &err);\n\n free(contents);\n\n if (err != NULL) {\n fprintf(stderr, \"error: %s\\n\", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n char **sections = sb_config_list_sections(t);\n char *sections_str = sb_strv_join(sections, \", \");\n printf(\"Sections: %s\\n\\n\", sections_str);\n free(sections_str);\n\n for (size_t i = 0; sections[i] != NULL; i++) {\n printf(\"Keys for '%s':\\n\", sections[i]);\n char **keys = sb_config_list_keys(t, sections[i]);\n for (size_t j = 0; keys[j] != NULL; j++) {\n printf(\" '%s' => '%s'\\n\", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }\n printf(\"\\n\");\n sb_strv_free(keys);\n }\n\n sb_strv_free(sections);\n sb_config_free(t);\n\n return 0;\n}", "parent": null, "children": [10, 11], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 62, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "int", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 3}}, {"id": 11, "type": "function_declarator", "text": "main(int argc, char **argv)", "parent": 9, "children": [12, 13], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 27}}, {"id": 12, "type": "identifier", "text": "main", "parent": 11, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 4}}, {"id": 13, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 11, "children": [14, 17], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 27}}, {"id": 14, "type": "parameter_declaration", "text": "int argc", "parent": 13, "children": [15, 16], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 13}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 14, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 8}}, {"id": 16, "type": "identifier", "text": "argc", "parent": 14, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 13}}, {"id": 17, "type": "parameter_declaration", "text": "char **argv", "parent": 13, "children": [18, 19], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 26}}, {"id": 18, "type": "primitive_type", "text": "char", "parent": 17, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 19}}, {"id": 19, "type": "pointer_declarator", "text": "**argv", "parent": 17, "children": [20, 21], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 26}}, {"id": 20, "type": "*", "text": "*", "parent": 19, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 21}}, {"id": 21, "type": "pointer_declarator", "text": "*argv", "parent": 19, "children": [22, 23], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 26}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 22}}, {"id": 23, "type": "identifier", "text": "argv", "parent": 21, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 26}}, {"id": 24, "type": "if_statement", "text": "if (argc != 2) {\n fprintf(stderr, \"Invalid number of arguments\\n\");\n return 1;\n }", "parent": 9, "children": [25], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 19, "column": 5}}, {"id": 25, "type": "parenthesized_expression", "text": "(argc != 2)", "parent": 24, "children": [26], "start_point": {"row": 16, "column": 7}, "end_point": {"row": 16, "column": 18}}, {"id": 26, "type": "binary_expression", "text": "argc != 2", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 17}}, {"id": 27, "type": "identifier", "text": "argc", "parent": 26, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 12}}, {"id": 28, "type": "!=", "text": "!=", "parent": 26, "children": [], "start_point": {"row": 16, "column": 13}, "end_point": {"row": 16, "column": 15}}, {"id": 29, "type": "number_literal", "text": "2", "parent": 26, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 30, "type": "call_expression", "text": "fprintf(stderr, \"Invalid number of arguments\\n\")", "parent": 24, "children": [31, 32], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 56}}, {"id": 31, "type": "identifier", "text": "fprintf", "parent": 30, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 15}}, {"id": 32, "type": "argument_list", "text": "(stderr, \"Invalid number of arguments\\n\")", "parent": 30, "children": [33, 34], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 56}}, {"id": 33, "type": "identifier", "text": "stderr", "parent": 32, "children": [], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 22}}, {"id": 34, "type": "string_literal", "text": "\"Invalid number of arguments\\n\"", "parent": 32, "children": [35], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 55}}, {"id": 35, "type": "escape_sequence", "text": "\\n", "parent": 34, "children": [], "start_point": {"row": 17, "column": 52}, "end_point": {"row": 17, "column": 54}}, {"id": 36, "type": "return_statement", "text": "return 1;", "parent": 24, "children": [37], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 17}}, {"id": 37, "type": "number_literal", "text": "1", "parent": 36, "children": [], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 16}}, {"id": 38, "type": "declaration", "text": "size_t len;", "parent": 9, "children": [39, 40], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 15}}, {"id": 39, "type": "primitive_type", "text": "size_t", "parent": 38, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 10}}, {"id": 40, "type": "identifier", "text": "len", "parent": 38, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 14}}, {"id": 41, "type": "declaration", "text": "sb_error_t *err = NULL;", "parent": 9, "children": [42, 43], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 27}}, {"id": 42, "type": "type_identifier", "text": "sb_error_t", "parent": 41, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 14}}, {"id": 43, "type": "init_declarator", "text": "*err = NULL", "parent": 41, "children": [44, 47, 48], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 26}}, {"id": 44, "type": "pointer_declarator", "text": "*err", "parent": 43, "children": [45, 46], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 19}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 22, "column": 15}, "end_point": {"row": 22, "column": 16}}, {"id": 46, "type": "identifier", "text": "err", "parent": 44, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 19}}, {"id": 47, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 21}}, {"id": 48, "type": "null", "text": "NULL", "parent": 43, "children": [49], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 26}}, {"id": 49, "type": "NULL", "text": "NULL", "parent": 48, "children": [], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 22, "column": 26}}, {"id": 50, "type": "declaration", "text": "char *contents = sb_file_get_contents_utf8(argv[1], &len, &err);", "parent": 9, "children": [51, 52], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 68}}, {"id": 51, "type": "primitive_type", "text": "char", "parent": 50, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 52, "type": "init_declarator", "text": "*contents = sb_file_get_contents_utf8(argv[1], &len, &err)", "parent": 50, "children": [53, 56, 57], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 67}}, {"id": 53, "type": "pointer_declarator", "text": "*contents", "parent": 52, "children": [54, 55], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 18}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 10}}, {"id": 55, "type": "identifier", "text": "contents", "parent": 53, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 18}}, {"id": 56, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 57, "type": "call_expression", "text": "sb_file_get_contents_utf8(argv[1], &len, &err)", "parent": 52, "children": [58, 59], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 67}}, {"id": 58, "type": "identifier", "text": "sb_file_get_contents_utf8", "parent": 57, "children": [], "start_point": {"row": 24, "column": 21}, "end_point": {"row": 24, "column": 46}}, {"id": 59, "type": "argument_list", "text": "(argv[1], &len, &err)", "parent": 57, "children": [60, 63, 65], "start_point": {"row": 24, "column": 46}, "end_point": {"row": 24, "column": 67}}, {"id": 60, "type": "subscript_expression", "text": "argv[1]", "parent": 59, "children": [61, 62], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 54}}, {"id": 61, "type": "identifier", "text": "argv", "parent": 60, "children": [], "start_point": {"row": 24, "column": 47}, "end_point": {"row": 24, "column": 51}}, {"id": 62, "type": "number_literal", "text": "1", "parent": 60, "children": [], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 53}}, {"id": 63, "type": "pointer_expression", "text": "&len", "parent": 59, "children": [64], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 60}}, {"id": 64, "type": "identifier", "text": "len", "parent": 63, "children": [], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 60}}, {"id": 65, "type": "pointer_expression", "text": "&err", "parent": 59, "children": [66], "start_point": {"row": 24, "column": 62}, "end_point": {"row": 24, "column": 66}}, {"id": 66, "type": "identifier", "text": "err", "parent": 65, "children": [], "start_point": {"row": 24, "column": 63}, "end_point": {"row": 24, "column": 66}}, {"id": 67, "type": "if_statement", "text": "if (err != NULL) {\n fprintf(stderr, \"error: %s\\n\", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }", "parent": 9, "children": [68], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 30, "column": 5}}, {"id": 68, "type": "parenthesized_expression", "text": "(err != NULL)", "parent": 67, "children": [69], "start_point": {"row": 26, "column": 7}, "end_point": {"row": 26, "column": 20}}, {"id": 69, "type": "binary_expression", "text": "err != NULL", "parent": 68, "children": [70, 71, 72], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 19}}, {"id": 70, "type": "identifier", "text": "err", "parent": 69, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 11}}, {"id": 71, "type": "!=", "text": "!=", "parent": 69, "children": [], "start_point": {"row": 26, "column": 12}, "end_point": {"row": 26, "column": 14}}, {"id": 72, "type": "null", "text": "NULL", "parent": 69, "children": [73], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 19}}, {"id": 73, "type": "NULL", "text": "NULL", "parent": 72, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 19}}, {"id": 74, "type": "call_expression", "text": "fprintf(stderr, \"error: %s\\n\", sb_error_to_string(err))", "parent": 67, "children": [75, 76], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 63}}, {"id": 75, "type": "identifier", "text": "fprintf", "parent": 74, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 15}}, {"id": 76, "type": "argument_list", "text": "(stderr, \"error: %s\\n\", sb_error_to_string(err))", "parent": 74, "children": [77, 78, 80], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 63}}, {"id": 77, "type": "identifier", "text": "stderr", "parent": 76, "children": [], "start_point": {"row": 27, "column": 16}, "end_point": {"row": 27, "column": 22}}, {"id": 78, "type": "string_literal", "text": "\"error: %s\\n\"", "parent": 76, "children": [79], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 37}}, {"id": 79, "type": "escape_sequence", "text": "\\n", "parent": 78, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 36}}, {"id": 80, "type": "call_expression", "text": "sb_error_to_string(err)", "parent": 76, "children": [81, 82], "start_point": {"row": 27, "column": 39}, "end_point": {"row": 27, "column": 62}}, {"id": 81, "type": "identifier", "text": "sb_error_to_string", "parent": 80, "children": [], "start_point": {"row": 27, "column": 39}, "end_point": {"row": 27, "column": 57}}, {"id": 82, "type": "argument_list", "text": "(err)", "parent": 80, "children": [83], "start_point": {"row": 27, "column": 57}, "end_point": {"row": 27, "column": 62}}, {"id": 83, "type": "identifier", "text": "err", "parent": 82, "children": [], "start_point": {"row": 27, "column": 58}, "end_point": {"row": 27, "column": 61}}, {"id": 84, "type": "call_expression", "text": "sb_error_free(err)", "parent": 67, "children": [85, 86], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 26}}, {"id": 85, "type": "identifier", "text": "sb_error_free", "parent": 84, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 21}}, {"id": 86, "type": "argument_list", "text": "(err)", "parent": 84, "children": [87], "start_point": {"row": 28, "column": 21}, "end_point": {"row": 28, "column": 26}}, {"id": 87, "type": "identifier", "text": "err", "parent": 86, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 25}}, {"id": 88, "type": "return_statement", "text": "return 1;", "parent": 67, "children": [89], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 17}}, {"id": 89, "type": "number_literal", "text": "1", "parent": 88, "children": [], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 16}}, {"id": 90, "type": "declaration", "text": "sb_config_t *t = sb_config_parse(contents, len, NULL, &err);", "parent": 9, "children": [91, 92], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 64}}, {"id": 91, "type": "type_identifier", "text": "sb_config_t", "parent": 90, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 15}}, {"id": 92, "type": "init_declarator", "text": "*t = sb_config_parse(contents, len, NULL, &err)", "parent": 90, "children": [93, 96, 97], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 63}}, {"id": 93, "type": "pointer_declarator", "text": "*t", "parent": 92, "children": [94, 95], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 18}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 95, "type": "identifier", "text": "t", "parent": 93, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 18}}, {"id": 96, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 20}}, {"id": 97, "type": "call_expression", "text": "sb_config_parse(contents, len, NULL, &err)", "parent": 92, "children": [98, 99], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 63}}, {"id": 98, "type": "identifier", "text": "sb_config_parse", "parent": 97, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 36}}, {"id": 99, "type": "argument_list", "text": "(contents, len, NULL, &err)", "parent": 97, "children": [100, 101, 102, 104], "start_point": {"row": 32, "column": 36}, "end_point": {"row": 32, "column": 63}}, {"id": 100, "type": "identifier", "text": "contents", "parent": 99, "children": [], "start_point": {"row": 32, "column": 37}, "end_point": {"row": 32, "column": 45}}, {"id": 101, "type": "identifier", "text": "len", "parent": 99, "children": [], "start_point": {"row": 32, "column": 47}, "end_point": {"row": 32, "column": 50}}, {"id": 102, "type": "null", "text": "NULL", "parent": 99, "children": [103], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 56}}, {"id": 103, "type": "NULL", "text": "NULL", "parent": 102, "children": [], "start_point": {"row": 32, "column": 52}, "end_point": {"row": 32, "column": 56}}, {"id": 104, "type": "pointer_expression", "text": "&err", "parent": 99, "children": [105], "start_point": {"row": 32, "column": 58}, "end_point": {"row": 32, "column": 62}}, {"id": 105, "type": "identifier", "text": "err", "parent": 104, "children": [], "start_point": {"row": 32, "column": 59}, "end_point": {"row": 32, "column": 62}}, {"id": 106, "type": "call_expression", "text": "free(contents)", "parent": 9, "children": [107, 108], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 18}}, {"id": 107, "type": "identifier", "text": "free", "parent": 106, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 8}}, {"id": 108, "type": "argument_list", "text": "(contents)", "parent": 106, "children": [109], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 18}}, {"id": 109, "type": "identifier", "text": "contents", "parent": 108, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 17}}, {"id": 110, "type": "if_statement", "text": "if (err != NULL) {\n fprintf(stderr, \"error: %s\\n\", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }", "parent": 9, "children": [111], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 40, "column": 5}}, {"id": 111, "type": "parenthesized_expression", "text": "(err != NULL)", "parent": 110, "children": [112], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 20}}, {"id": 112, "type": "binary_expression", "text": "err != NULL", "parent": 111, "children": [113, 114, 115], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 19}}, {"id": 113, "type": "identifier", "text": "err", "parent": 112, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 11}}, {"id": 114, "type": "!=", "text": "!=", "parent": 112, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 14}}, {"id": 115, "type": "null", "text": "NULL", "parent": 112, "children": [116], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 19}}, {"id": 116, "type": "NULL", "text": "NULL", "parent": 115, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 19}}, {"id": 117, "type": "call_expression", "text": "fprintf(stderr, \"error: %s\\n\", sb_error_to_string(err))", "parent": 110, "children": [118, 119], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 63}}, {"id": 118, "type": "identifier", "text": "fprintf", "parent": 117, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 15}}, {"id": 119, "type": "argument_list", "text": "(stderr, \"error: %s\\n\", sb_error_to_string(err))", "parent": 117, "children": [120, 121, 123], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 63}}, {"id": 120, "type": "identifier", "text": "stderr", "parent": 119, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 22}}, {"id": 121, "type": "string_literal", "text": "\"error: %s\\n\"", "parent": 119, "children": [122], "start_point": {"row": 37, "column": 24}, "end_point": {"row": 37, "column": 37}}, {"id": 122, "type": "escape_sequence", "text": "\\n", "parent": 121, "children": [], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 36}}, {"id": 123, "type": "call_expression", "text": "sb_error_to_string(err)", "parent": 119, "children": [124, 125], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 62}}, {"id": 124, "type": "identifier", "text": "sb_error_to_string", "parent": 123, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 57}}, {"id": 125, "type": "argument_list", "text": "(err)", "parent": 123, "children": [126], "start_point": {"row": 37, "column": 57}, "end_point": {"row": 37, "column": 62}}, {"id": 126, "type": "identifier", "text": "err", "parent": 125, "children": [], "start_point": {"row": 37, "column": 58}, "end_point": {"row": 37, "column": 61}}, {"id": 127, "type": "call_expression", "text": "sb_error_free(err)", "parent": 110, "children": [128, 129], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 26}}, {"id": 128, "type": "identifier", "text": "sb_error_free", "parent": 127, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 21}}, {"id": 129, "type": "argument_list", "text": "(err)", "parent": 127, "children": [130], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 26}}, {"id": 130, "type": "identifier", "text": "err", "parent": 129, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 25}}, {"id": 131, "type": "return_statement", "text": "return 1;", "parent": 110, "children": [132], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 17}}, {"id": 132, "type": "number_literal", "text": "1", "parent": 131, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 16}}, {"id": 133, "type": "declaration", "text": "char **sections = sb_config_list_sections(t);", "parent": 9, "children": [134, 135], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 49}}, {"id": 134, "type": "primitive_type", "text": "char", "parent": 133, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 135, "type": "init_declarator", "text": "**sections = sb_config_list_sections(t)", "parent": 133, "children": [136, 141, 142], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 48}}, {"id": 136, "type": "pointer_declarator", "text": "**sections", "parent": 135, "children": [137, 138], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 19}}, {"id": 137, "type": "*", "text": "*", "parent": 136, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 10}}, {"id": 138, "type": "pointer_declarator", "text": "*sections", "parent": 136, "children": [139, 140], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 19}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 11}}, {"id": 140, "type": "identifier", "text": "sections", "parent": 138, "children": [], "start_point": {"row": 42, "column": 11}, "end_point": {"row": 42, "column": 19}}, {"id": 141, "type": "=", "text": "=", "parent": 135, "children": [], "start_point": {"row": 42, "column": 20}, "end_point": {"row": 42, "column": 21}}, {"id": 142, "type": "call_expression", "text": "sb_config_list_sections(t)", "parent": 135, "children": [143, 144], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 48}}, {"id": 143, "type": "identifier", "text": "sb_config_list_sections", "parent": 142, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 45}}, {"id": 144, "type": "argument_list", "text": "(t)", "parent": 142, "children": [145], "start_point": {"row": 42, "column": 45}, "end_point": {"row": 42, "column": 48}}, {"id": 145, "type": "identifier", "text": "t", "parent": 144, "children": [], "start_point": {"row": 42, "column": 46}, "end_point": {"row": 42, "column": 47}}, {"id": 146, "type": "declaration", "text": "char *sections_str = sb_strv_join(sections, \", \");", "parent": 9, "children": [147, 148], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 54}}, {"id": 147, "type": "primitive_type", "text": "char", "parent": 146, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 8}}, {"id": 148, "type": "init_declarator", "text": "*sections_str = sb_strv_join(sections, \", \")", "parent": 146, "children": [149, 152, 153], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 53}}, {"id": 149, "type": "pointer_declarator", "text": "*sections_str", "parent": 148, "children": [150, 151], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 22}}, {"id": 150, "type": "*", "text": "*", "parent": 149, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 10}}, {"id": 151, "type": "identifier", "text": "sections_str", "parent": 149, "children": [], "start_point": {"row": 43, "column": 10}, "end_point": {"row": 43, "column": 22}}, {"id": 152, "type": "=", "text": "=", "parent": 148, "children": [], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 24}}, {"id": 153, "type": "call_expression", "text": "sb_strv_join(sections, \", \")", "parent": 148, "children": [154, 155], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 53}}, {"id": 154, "type": "identifier", "text": "sb_strv_join", "parent": 153, "children": [], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 37}}, {"id": 155, "type": "argument_list", "text": "(sections, \", \")", "parent": 153, "children": [156, 157], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 53}}, {"id": 156, "type": "identifier", "text": "sections", "parent": 155, "children": [], "start_point": {"row": 43, "column": 38}, "end_point": {"row": 43, "column": 46}}, {"id": 157, "type": "string_literal", "text": "\", \"", "parent": 155, "children": [], "start_point": {"row": 43, "column": 48}, "end_point": {"row": 43, "column": 52}}, {"id": 158, "type": "call_expression", "text": "printf(\"Sections: %s\\n\\n\", sections_str)", "parent": 9, "children": [159, 160], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 44}}, {"id": 159, "type": "identifier", "text": "printf", "parent": 158, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 10}}, {"id": 160, "type": "argument_list", "text": "(\"Sections: %s\\n\\n\", sections_str)", "parent": 158, "children": [161, 164], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 44}}, {"id": 161, "type": "string_literal", "text": "\"Sections: %s\\n\\n\"", "parent": 160, "children": [162, 163], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 29}}, {"id": 162, "type": "escape_sequence", "text": "\\n", "parent": 161, "children": [], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 26}}, {"id": 163, "type": "escape_sequence", "text": "\\n", "parent": 161, "children": [], "start_point": {"row": 44, "column": 26}, "end_point": {"row": 44, "column": 28}}, {"id": 164, "type": "identifier", "text": "sections_str", "parent": 160, "children": [], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 43}}, {"id": 165, "type": "call_expression", "text": "free(sections_str)", "parent": 9, "children": [166, 167], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 22}}, {"id": 166, "type": "identifier", "text": "free", "parent": 165, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 8}}, {"id": 167, "type": "argument_list", "text": "(sections_str)", "parent": 165, "children": [168], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 22}}, {"id": 168, "type": "identifier", "text": "sections_str", "parent": 167, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 21}}, {"id": 169, "type": "for_statement", "text": "for (size_t i = 0; sections[i] != NULL; i++) {\n printf(\"Keys for '%s':\\n\", sections[i]);\n char **keys = sb_config_list_keys(t, sections[i]);\n for (size_t j = 0; keys[j] != NULL; j++) {\n printf(\" '%s' => '%s'\\n\", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }\n printf(\"\\n\");\n sb_strv_free(keys);\n }", "parent": 9, "children": [170, 176, 183], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 56, "column": 5}}, {"id": 170, "type": "declaration", "text": "size_t i = 0;", "parent": 169, "children": [171, 172], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 22}}, {"id": 171, "type": "primitive_type", "text": "size_t", "parent": 170, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 15}}, {"id": 172, "type": "init_declarator", "text": "i = 0", "parent": 170, "children": [173, 174, 175], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 21}}, {"id": 173, "type": "identifier", "text": "i", "parent": 172, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 17}}, {"id": 174, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 19}}, {"id": 175, "type": "number_literal", "text": "0", "parent": 172, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 21}}, {"id": 176, "type": "binary_expression", "text": "sections[i] != NULL", "parent": 169, "children": [177, 180, 181], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 42}}, {"id": 177, "type": "subscript_expression", "text": "sections[i]", "parent": 176, "children": [178, 179], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 34}}, {"id": 178, "type": "identifier", "text": "sections", "parent": 177, "children": [], "start_point": {"row": 47, "column": 23}, "end_point": {"row": 47, "column": 31}}, {"id": 179, "type": "identifier", "text": "i", "parent": 177, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 33}}, {"id": 180, "type": "!=", "text": "!=", "parent": 176, "children": [], "start_point": {"row": 47, "column": 35}, "end_point": {"row": 47, "column": 37}}, {"id": 181, "type": "null", "text": "NULL", "parent": 176, "children": [182], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 42}}, {"id": 182, "type": "NULL", "text": "NULL", "parent": 181, "children": [], "start_point": {"row": 47, "column": 38}, "end_point": {"row": 47, "column": 42}}, {"id": 183, "type": "update_expression", "text": "i++", "parent": 169, "children": [184, 185], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 47}}, {"id": 184, "type": "identifier", "text": "i", "parent": 183, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 45}}, {"id": 185, "type": "++", "text": "++", "parent": 183, "children": [], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 47}}, {"id": 186, "type": "call_expression", "text": "printf(\"Keys for '%s':\\n\", sections[i])", "parent": 169, "children": [187, 188], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 47}}, {"id": 187, "type": "identifier", "text": "printf", "parent": 186, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 14}}, {"id": 188, "type": "argument_list", "text": "(\"Keys for '%s':\\n\", sections[i])", "parent": 186, "children": [189, 191], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 47}}, {"id": 189, "type": "string_literal", "text": "\"Keys for '%s':\\n\"", "parent": 188, "children": [190], "start_point": {"row": 48, "column": 15}, "end_point": {"row": 48, "column": 33}}, {"id": 190, "type": "escape_sequence", "text": "\\n", "parent": 189, "children": [], "start_point": {"row": 48, "column": 30}, "end_point": {"row": 48, "column": 32}}, {"id": 191, "type": "subscript_expression", "text": "sections[i]", "parent": 188, "children": [192, 193], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 46}}, {"id": 192, "type": "identifier", "text": "sections", "parent": 191, "children": [], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 43}}, {"id": 193, "type": "identifier", "text": "i", "parent": 191, "children": [], "start_point": {"row": 48, "column": 44}, "end_point": {"row": 48, "column": 45}}, {"id": 194, "type": "declaration", "text": "char **keys = sb_config_list_keys(t, sections[i]);", "parent": 169, "children": [195, 196], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 58}}, {"id": 195, "type": "primitive_type", "text": "char", "parent": 194, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 12}}, {"id": 196, "type": "init_declarator", "text": "**keys = sb_config_list_keys(t, sections[i])", "parent": 194, "children": [197, 202, 203], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 57}}, {"id": 197, "type": "pointer_declarator", "text": "**keys", "parent": 196, "children": [198, 199], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 19}}, {"id": 198, "type": "*", "text": "*", "parent": 197, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 14}}, {"id": 199, "type": "pointer_declarator", "text": "*keys", "parent": 197, "children": [200, 201], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 19}}, {"id": 200, "type": "*", "text": "*", "parent": 199, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 15}}, {"id": 201, "type": "identifier", "text": "keys", "parent": 199, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 19}}, {"id": 202, "type": "=", "text": "=", "parent": 196, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 21}}, {"id": 203, "type": "call_expression", "text": "sb_config_list_keys(t, sections[i])", "parent": 196, "children": [204, 205], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 57}}, {"id": 204, "type": "identifier", "text": "sb_config_list_keys", "parent": 203, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 41}}, {"id": 205, "type": "argument_list", "text": "(t, sections[i])", "parent": 203, "children": [206, 207], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 57}}, {"id": 206, "type": "identifier", "text": "t", "parent": 205, "children": [], "start_point": {"row": 49, "column": 42}, "end_point": {"row": 49, "column": 43}}, {"id": 207, "type": "subscript_expression", "text": "sections[i]", "parent": 205, "children": [208, 209], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 56}}, {"id": 208, "type": "identifier", "text": "sections", "parent": 207, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 53}}, {"id": 209, "type": "identifier", "text": "i", "parent": 207, "children": [], "start_point": {"row": 49, "column": 54}, "end_point": {"row": 49, "column": 55}}, {"id": 210, "type": "for_statement", "text": "for (size_t j = 0; keys[j] != NULL; j++) {\n printf(\" '%s' => '%s'\\n\", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }", "parent": 169, "children": [211, 217, 224], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 53, "column": 9}}, {"id": 211, "type": "declaration", "text": "size_t j = 0;", "parent": 210, "children": [212, 213], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 26}}, {"id": 212, "type": "primitive_type", "text": "size_t", "parent": 211, "children": [], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 19}}, {"id": 213, "type": "init_declarator", "text": "j = 0", "parent": 211, "children": [214, 215, 216], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 25}}, {"id": 214, "type": "identifier", "text": "j", "parent": 213, "children": [], "start_point": {"row": 50, "column": 20}, "end_point": {"row": 50, "column": 21}}, {"id": 215, "type": "=", "text": "=", "parent": 213, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 23}}, {"id": 216, "type": "number_literal", "text": "0", "parent": 213, "children": [], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 25}}, {"id": 217, "type": "binary_expression", "text": "keys[j] != NULL", "parent": 210, "children": [218, 221, 222], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 42}}, {"id": 218, "type": "subscript_expression", "text": "keys[j]", "parent": 217, "children": [219, 220], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 34}}, {"id": 219, "type": "identifier", "text": "keys", "parent": 218, "children": [], "start_point": {"row": 50, "column": 27}, "end_point": {"row": 50, "column": 31}}, {"id": 220, "type": "identifier", "text": "j", "parent": 218, "children": [], "start_point": {"row": 50, "column": 32}, "end_point": {"row": 50, "column": 33}}, {"id": 221, "type": "!=", "text": "!=", "parent": 217, "children": [], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 37}}, {"id": 222, "type": "null", "text": "NULL", "parent": 217, "children": [223], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 42}}, {"id": 223, "type": "NULL", "text": "NULL", "parent": 222, "children": [], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 42}}, {"id": 224, "type": "update_expression", "text": "j++", "parent": 210, "children": [225, 226], "start_point": {"row": 50, "column": 44}, "end_point": {"row": 50, "column": 47}}, {"id": 225, "type": "identifier", "text": "j", "parent": 224, "children": [], "start_point": {"row": 50, "column": 44}, "end_point": {"row": 50, "column": 45}}, {"id": 226, "type": "++", "text": "++", "parent": 224, "children": [], "start_point": {"row": 50, "column": 45}, "end_point": {"row": 50, "column": 47}}, {"id": 227, "type": "call_expression", "text": "printf(\" '%s' => '%s'\\n\", keys[j],\n sb_config_get(t, sections[i], keys[j]))", "parent": 210, "children": [228, 229], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 52, "column": 55}}, {"id": 228, "type": "identifier", "text": "printf", "parent": 227, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 18}}, {"id": 229, "type": "argument_list", "text": "(\" '%s' => '%s'\\n\", keys[j],\n sb_config_get(t, sections[i], keys[j]))", "parent": 227, "children": [230, 232, 235], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 52, "column": 55}}, {"id": 230, "type": "string_literal", "text": "\" '%s' => '%s'\\n\"", "parent": 229, "children": [231], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 39}}, {"id": 231, "type": "escape_sequence", "text": "\\n", "parent": 230, "children": [], "start_point": {"row": 51, "column": 36}, "end_point": {"row": 51, "column": 38}}, {"id": 232, "type": "subscript_expression", "text": "keys[j]", "parent": 229, "children": [233, 234], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 48}}, {"id": 233, "type": "identifier", "text": "keys", "parent": 232, "children": [], "start_point": {"row": 51, "column": 41}, "end_point": {"row": 51, "column": 45}}, {"id": 234, "type": "identifier", "text": "j", "parent": 232, "children": [], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 47}}, {"id": 235, "type": "call_expression", "text": "sb_config_get(t, sections[i], keys[j])", "parent": 229, "children": [236, 237], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 54}}, {"id": 236, "type": "identifier", "text": "sb_config_get", "parent": 235, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 29}}, {"id": 237, "type": "argument_list", "text": "(t, sections[i], keys[j])", "parent": 235, "children": [238, 239, 242], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 54}}, {"id": 238, "type": "identifier", "text": "t", "parent": 237, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 31}}, {"id": 239, "type": "subscript_expression", "text": "sections[i]", "parent": 237, "children": [240, 241], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 44}}, {"id": 240, "type": "identifier", "text": "sections", "parent": 239, "children": [], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 41}}, {"id": 241, "type": "identifier", "text": "i", "parent": 239, "children": [], "start_point": {"row": 52, "column": 42}, "end_point": {"row": 52, "column": 43}}, {"id": 242, "type": "subscript_expression", "text": "keys[j]", "parent": 237, "children": [243, 244], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 53}}, {"id": 243, "type": "identifier", "text": "keys", "parent": 242, "children": [], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 50}}, {"id": 244, "type": "identifier", "text": "j", "parent": 242, "children": [], "start_point": {"row": 52, "column": 51}, "end_point": {"row": 52, "column": 52}}, {"id": 245, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 169, "children": [246, 247], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 20}}, {"id": 246, "type": "identifier", "text": "printf", "parent": 245, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 14}}, {"id": 247, "type": "argument_list", "text": "(\"\\n\")", "parent": 245, "children": [248], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 20}}, {"id": 248, "type": "string_literal", "text": "\"\\n\"", "parent": 247, "children": [249], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 19}}, {"id": 249, "type": "escape_sequence", "text": "\\n", "parent": 248, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 18}}, {"id": 250, "type": "call_expression", "text": "sb_strv_free(keys)", "parent": 169, "children": [251, 252], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 26}}, {"id": 251, "type": "identifier", "text": "sb_strv_free", "parent": 250, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 20}}, {"id": 252, "type": "argument_list", "text": "(keys)", "parent": 250, "children": [253], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 26}}, {"id": 253, "type": "identifier", "text": "keys", "parent": 252, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 25}}, {"id": 254, "type": "call_expression", "text": "sb_strv_free(sections)", "parent": 9, "children": [255, 256], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 26}}, {"id": 255, "type": "identifier", "text": "sb_strv_free", "parent": 254, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 16}}, {"id": 256, "type": "argument_list", "text": "(sections)", "parent": 254, "children": [257], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 26}}, {"id": 257, "type": "identifier", "text": "sections", "parent": 256, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 25}}, {"id": 258, "type": "call_expression", "text": "sb_config_free(t)", "parent": 9, "children": [259, 260], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 21}}, {"id": 259, "type": "identifier", "text": "sb_config_free", "parent": 258, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 18}}, {"id": 260, "type": "argument_list", "text": "(t)", "parent": 258, "children": [261], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 21}}, {"id": 261, "type": "identifier", "text": "t", "parent": 260, "children": [], "start_point": {"row": 59, "column": 19}, "end_point": {"row": 59, "column": 20}}, {"id": 262, "type": "return_statement", "text": "return 0;", "parent": 9, "children": [263], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 13}}, {"id": 263, "type": "number_literal", "text": "0", "parent": 262, "children": [], "start_point": {"row": 61, "column": 11}, "end_point": {"row": 61, "column": 12}}]}, "node_categories": {"declarations": {"functions": [9, 11], "variables": [14, 17, 38, 41, 50, 90, 133, 146, 170, 194, 211], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [25, 26, 30, 57, 60, 63, 65, 68, 69, 74, 80, 84, 97, 104, 106, 111, 112, 117, 123, 127, 142, 153, 158, 165, 176, 177, 183, 186, 191, 203, 207, 217, 218, 224, 227, 232, 235, 239, 242, 245, 250, 254, 258], "assignments": [], "loops": [169, 210], "conditionals": [12, 16, 23, 24, 27, 31, 33, 40, 42, 46, 55, 58, 61, 64, 66, 67, 70, 75, 77, 81, 83, 85, 87, 91, 95, 98, 100, 101, 105, 107, 109, 110, 113, 118, 120, 124, 126, 128, 130, 140, 143, 145, 151, 154, 156, 159, 164, 166, 168, 173, 178, 179, 184, 187, 192, 193, 201, 204, 206, 208, 209, 214, 219, 220, 225, 228, 233, 234, 236, 238, 240, 241, 243, 244, 246, 251, 253, 255, 257, 259, 261], "returns": [36, 88, 131, 262], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 29, 34, 37, 62, 78, 89, 121, 132, 157, 161, 175, 189, 216, 230, 248, 263], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "main", "text_snippet": "int\nmain(int argc, char **argv)\n{\n if (argc != 2) {\n fprintf(stderr, \"Invalid number of ar"}, {"node_id": 11, "universal_type": "function", "name": "unknown", "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 <squareball.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * squareball: A general-purpose library for C99.\n * Copyright (C) 2014-2018 <NAME> <<EMAIL>>\n *\n * This program can be distributed under the terms of the BSD License.\n * See the file LICENSE.\n */\n\n#include <stdlib.h>\n#include <stdio.h>\n#include <squareball.h>\n\n\nint\nmain(int argc, char **argv)\n{\n if (argc != 2) {\n fprintf(stderr, \"Invalid number of arguments\\n\");\n return 1;\n }\n\n size_t len;\n sb_error_t *err = NULL;\n\n char *contents = sb_file_get_contents_utf8(argv[1], &len, &err);\n\n if (err != NULL) {\n fprintf(stderr, \"error: %s\\n\", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n sb_config_t *t = sb_config_parse(contents, len, NULL, &err);\n\n free(contents);\n\n if (err != NULL) {\n fprintf(stderr, \"error: %s\\n\", sb_error_to_string(err));\n sb_error_free(err);\n return 1;\n }\n\n char **sections = sb_config_list_sections(t);\n char *sections_str = sb_strv_join(sections, \", \");\n printf(\"Sections: %s\\n\\n\", sections_str);\n free(sections_str);\n\n for (size_t i = 0; sections[i] != NULL; i++) {\n printf(\"Keys for '%s':\\n\", sections[i]);\n char **keys = sb_config_list_keys(t, sections[i]);\n for (size_t j = 0; keys[j] != NULL; j++) {\n printf(\" '%s' => '%s'\\n\", keys[j],\n sb_config_get(t, sections[i], keys[j]));\n }\n printf(\"\\n\");\n sb_strv_free(keys);\n }\n\n sb_strv_free(sections);\n sb_config_free(t);\n\n return 0;\n}\n"}
80,344
c
/* * Copyright (c) 2006 <NAME> * Copyright (c) 2006 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. */ /** @addtogroup generic * @{ */ /** * @file * @brief Kernel ELF loader. */ #include <lib/elf.h> #include <debug.h> #include <typedefs.h> #include <mm/as.h> #include <mm/frame.h> #include <mm/slab.h> #include <align.h> #include <memstr.h> #include <macros.h> #include <arch.h> #include <lib/elf_load.h> static const char *error_codes[] = { "no error", "invalid image", "address space error", "incompatible image", "unsupported image type", "irrecoverable error" }; static int segment_header(elf_segment_header_t *, elf_header_t *, as_t *, unsigned int); static int section_header(elf_section_header_t *, elf_header_t *, as_t *); static int load_segment(elf_segment_header_t *, elf_header_t *, as_t *); /** ELF loader * * @param header Pointer to ELF header in memory * @param as Created and properly mapped address space * @param flags A combination of ELD_F_* * * @return EE_OK on success * */ unsigned int elf_load(elf_header_t *header, as_t *as, unsigned int flags) { /* Identify ELF */ if ((header->e_ident[EI_MAG0] != ELFMAG0) || (header->e_ident[EI_MAG1] != ELFMAG1) || (header->e_ident[EI_MAG2] != ELFMAG2) || (header->e_ident[EI_MAG3] != ELFMAG3)) return EE_INVALID; /* Identify ELF compatibility */ if ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) || (header->e_machine != ELF_MACHINE) || (header->e_ident[EI_VERSION] != EV_CURRENT) || (header->e_version != EV_CURRENT) || (header->e_ident[EI_CLASS] != ELF_CLASS)) return EE_INCOMPATIBLE; if (header->e_phentsize != sizeof(elf_segment_header_t)) return EE_INCOMPATIBLE; if (header->e_shentsize != sizeof(elf_section_header_t)) return EE_INCOMPATIBLE; /* Check if the object type is supported. */ if (header->e_type != ET_EXEC) return EE_UNSUPPORTED; /* Check if the ELF image starts on a page boundary */ if (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header) return EE_UNSUPPORTED; /* Walk through all segment headers and process them. */ elf_half i; for (i = 0; i < header->e_phnum; i++) { elf_segment_header_t *seghdr = &((elf_segment_header_t *)(((uint8_t *) header) + header->e_phoff))[i]; int rc = segment_header(seghdr, header, as, flags); if (rc != EE_OK) return rc; } /* Inspect all section headers and process them. */ for (i = 0; i < header->e_shnum; i++) { elf_section_header_t *sechdr = &((elf_section_header_t *)(((uint8_t *) header) + header->e_shoff))[i]; int rc = section_header(sechdr, header, as); if (rc != EE_OK) return rc; } return EE_OK; } /** Print error message according to error code. * * @param rc Return code returned by elf_load(). * * @return NULL terminated description of error. * */ const char *elf_error(unsigned int rc) { ASSERT(rc < sizeof(error_codes) / sizeof(char *)); return error_codes[rc]; } /** Process segment header. * * @param entry Segment header. * @param elf ELF header. * @param as Address space into wich the ELF is being loaded. * * @return EE_OK on success, error code otherwise. * */ static int segment_header(elf_segment_header_t *entry, elf_header_t *elf, as_t *as, unsigned int flags) { switch (entry->p_type) { case PT_NULL: case PT_PHDR: case PT_NOTE: break; case PT_LOAD: return load_segment(entry, elf, as); case PT_DYNAMIC: case PT_INTERP: // FIXME /* char *interp = (char *) elf + entry->p_offset; if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR, ELF_INTERP_ZLEN) != 0) { return EE_UNSUPPORTED; } */ if ((flags & ELD_F_LOADER) == 0) return EE_LOADER; break; case PT_SHLIB: case PT_LOPROC: case PT_HIPROC: default: return EE_UNSUPPORTED; } return EE_OK; } /** Load segment described by program header entry. * * @param entry Program header entry describing segment to be loaded. * @param elf ELF header. * @param as Address space into wich the ELF is being loaded. * * @return EE_OK on success, error code otherwise. * */ int load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as) { mem_backend_data_t backend_data; backend_data.elf = elf; backend_data.segment = entry; if (entry->p_align > 1) { if ((entry->p_offset % entry->p_align) != (entry->p_vaddr % entry->p_align)) return EE_INVALID; } unsigned int flags = 0; if (entry->p_flags & PF_X) flags |= AS_AREA_EXEC; if (entry->p_flags & PF_W) flags |= AS_AREA_WRITE; if (entry->p_flags & PF_R) flags |= AS_AREA_READ; flags |= AS_AREA_CACHEABLE; /* * Align vaddr down, inserting a little "gap" at the beginning. * Adjust area size, so that its end remains in place. * */ uintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE); size_t mem_sz = entry->p_memsz + (entry->p_vaddr - base); as_area_t *area = as_area_create(as, flags, mem_sz, AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0); if (!area) return EE_MEMORY; /* * The segment will be mapped on demand by elf_page_fault(). * */ return EE_OK; } /** Process section header. * * @param entry Segment header. * @param elf ELF header. * @param as Address space into wich the ELF is being loaded. * * @return EE_OK on success, error code otherwise. * */ static int section_header(elf_section_header_t *entry, elf_header_t *elf, as_t *as) { switch (entry->sh_type) { case SHT_PROGBITS: if (entry->sh_flags & SHF_TLS) { /* .tdata */ } break; case SHT_NOBITS: if (entry->sh_flags & SHF_TLS) { /* .tbss */ } break; default: break; } return EE_OK; } /** @} */
26.22
260
(translation_unit) "/*\n * Copyright (c) 2006 <NAME>\n * Copyright (c) 2006 <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\n * are met:\n *\n * - Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * - Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * - The name of the author may not be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/** @addtogroup generic\n * @{\n */\n\n/**\n * @file\n * @brief Kernel ELF loader.\n */\n\n#include <lib/elf.h>\n#include <debug.h>\n#include <typedefs.h>\n#include <mm/as.h>\n#include <mm/frame.h>\n#include <mm/slab.h>\n#include <align.h>\n#include <memstr.h>\n#include <macros.h>\n#include <arch.h>\n\n#include <lib/elf_load.h>\n\nstatic const char *error_codes[] = {\n "no error",\n "invalid image",\n "address space error",\n "incompatible image",\n "unsupported image type",\n "irrecoverable error"\n};\n\nstatic int segment_header(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int);\nstatic int section_header(elf_section_header_t *, elf_header_t *, as_t *);\nstatic int load_segment(elf_segment_header_t *, elf_header_t *, as_t *);\n\n/** ELF loader\n *\n * @param header Pointer to ELF header in memory\n * @param as Created and properly mapped address space\n * @param flags A combination of ELD_F_*\n *\n * @return EE_OK on success\n *\n */\nunsigned int elf_load(elf_header_t *header, as_t *as, unsigned int flags)\n{\n /* Identify ELF */\n if ((header->e_ident[EI_MAG0] != ELFMAG0) ||\n (header->e_ident[EI_MAG1] != ELFMAG1) ||\n (header->e_ident[EI_MAG2] != ELFMAG2) ||\n (header->e_ident[EI_MAG3] != ELFMAG3))\n return EE_INVALID;\n \n /* Identify ELF compatibility */\n if ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE) ||\n (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n (header->e_version != EV_CURRENT) ||\n (header->e_ident[EI_CLASS] != ELF_CLASS))\n return EE_INCOMPATIBLE;\n \n if (header->e_phentsize != sizeof(elf_segment_header_t))\n return EE_INCOMPATIBLE;\n \n if (header->e_shentsize != sizeof(elf_section_header_t))\n return EE_INCOMPATIBLE;\n \n /* Check if the object type is supported. */\n if (header->e_type != ET_EXEC)\n return EE_UNSUPPORTED;\n \n /* Check if the ELF image starts on a page boundary */\n if (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)\n return EE_UNSUPPORTED;\n \n /* Walk through all segment headers and process them. */\n elf_half i;\n for (i = 0; i < header->e_phnum; i++) {\n elf_segment_header_t *seghdr =\n &((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i];\n \n int rc = segment_header(seghdr, header, as, flags);\n if (rc != EE_OK)\n return rc;\n }\n \n /* Inspect all section headers and process them. */\n for (i = 0; i < header->e_shnum; i++) {\n elf_section_header_t *sechdr =\n &((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i];\n \n int rc = section_header(sechdr, header, as);\n if (rc != EE_OK)\n return rc;\n }\n \n return EE_OK;\n}\n\n/** Print error message according to error code.\n *\n * @param rc Return code returned by elf_load().\n *\n * @return NULL terminated description of error.\n *\n */\nconst char *elf_error(unsigned int rc)\n{\n ASSERT(rc < sizeof(error_codes) / sizeof(char *));\n \n return error_codes[rc];\n}\n\n/** Process segment header.\n *\n * @param entry Segment header.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */\nstatic int segment_header(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)\n{\n switch (entry->p_type) {\n case PT_NULL:\n case PT_PHDR:\n case PT_NOTE:\n break;\n case PT_LOAD:\n return load_segment(entry, elf, as);\n case PT_DYNAMIC:\n case PT_INTERP:\n // FIXME\n /*\n char *interp = (char *) elf + entry->p_offset;\n if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n ELF_INTERP_ZLEN) != 0) {\n return EE_UNSUPPORTED;\n } */\n if ((flags & ELD_F_LOADER) == 0)\n return EE_LOADER;\n break;\n case PT_SHLIB:\n case PT_LOPROC:\n case PT_HIPROC:\n default:\n return EE_UNSUPPORTED;\n }\n return EE_OK;\n}\n\n/** Load segment described by program header entry.\n *\n * @param entry Program header entry describing segment to be loaded.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */\nint load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)\n{\n mem_backend_data_t backend_data;\n backend_data.elf = elf;\n backend_data.segment = entry;\n \n if (entry->p_align > 1) {\n if ((entry->p_offset % entry->p_align) !=\n (entry->p_vaddr % entry->p_align))\n return EE_INVALID;\n }\n \n unsigned int flags = 0;\n \n if (entry->p_flags & PF_X)\n flags |= AS_AREA_EXEC;\n \n if (entry->p_flags & PF_W)\n flags |= AS_AREA_WRITE;\n \n if (entry->p_flags & PF_R)\n flags |= AS_AREA_READ;\n \n flags |= AS_AREA_CACHEABLE;\n \n /*\n * Align vaddr down, inserting a little "gap" at the beginning.\n * Adjust area size, so that its end remains in place.\n *\n */\n uintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);\n size_t mem_sz = entry->p_memsz + (entry->p_vaddr - base);\n \n as_area_t *area = as_area_create(as, flags, mem_sz,\n AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0);\n if (!area)\n return EE_MEMORY;\n \n /*\n * The segment will be mapped on demand by elf_page_fault().\n *\n */\n \n return EE_OK;\n}\n\n/** Process section header.\n *\n * @param entry Segment header.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */\nstatic int section_header(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)\n{\n switch (entry->sh_type) {\n case SHT_PROGBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tdata */\n }\n break;\n case SHT_NOBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tbss */\n }\n break;\n default:\n break;\n }\n \n return EE_OK;\n}\n\n/** @}\n */\n" (comment) "/*\n * Copyright (c) 2006 <NAME>\n * Copyright (c) 2006 <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\n * are met:\n *\n * - Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * - Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * - The name of the author may not be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */" (comment) "/** @addtogroup generic\n * @{\n */" (comment) "/**\n * @file\n * @brief Kernel ELF loader.\n */" (preproc_include) "#include <lib/elf.h>\n" (#include) "#include" (system_lib_string) "<lib/elf.h>" (preproc_include) "#include <debug.h>\n" (#include) "#include" (system_lib_string) "<debug.h>" (preproc_include) "#include <typedefs.h>\n" (#include) "#include" (system_lib_string) "<typedefs.h>" (preproc_include) "#include <mm/as.h>\n" (#include) "#include" (system_lib_string) "<mm/as.h>" (preproc_include) "#include <mm/frame.h>\n" (#include) "#include" (system_lib_string) "<mm/frame.h>" (preproc_include) "#include <mm/slab.h>\n" (#include) "#include" (system_lib_string) "<mm/slab.h>" (preproc_include) "#include <align.h>\n" (#include) "#include" (system_lib_string) "<align.h>" (preproc_include) "#include <memstr.h>\n" (#include) "#include" (system_lib_string) "<memstr.h>" (preproc_include) "#include <macros.h>\n" (#include) "#include" (system_lib_string) "<macros.h>" (preproc_include) "#include <arch.h>\n" (#include) "#include" (system_lib_string) "<arch.h>" (preproc_include) "#include <lib/elf_load.h>\n" (#include) "#include" (system_lib_string) "<lib/elf_load.h>" (declaration) "static const char *error_codes[] = {\n "no error",\n "invalid image",\n "address space error",\n "incompatible image",\n "unsupported image type",\n "irrecoverable error"\n};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*error_codes[] = {\n "no error",\n "invalid image",\n "address space error",\n "incompatible image",\n "unsupported image type",\n "irrecoverable error"\n}" (pointer_declarator) "*error_codes[]" (*) "*" (array_declarator) "error_codes[]" (identifier) "error_codes" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n "no error",\n "invalid image",\n "address space error",\n "incompatible image",\n "unsupported image type",\n "irrecoverable error"\n}" ({) "{" (string_literal) ""no error"" (") """ (string_content) "no error" (") """ (,) "," (string_literal) ""invalid image"" (") """ (string_content) "invalid image" (") """ (,) "," (string_literal) ""address space error"" (") """ (string_content) "address space error" (") """ (,) "," (string_literal) ""incompatible image"" (") """ (string_content) "incompatible image" (") """ (,) "," (string_literal) ""unsupported image type"" (") """ (string_content) "unsupported image type" (") """ (,) "," (string_literal) ""irrecoverable error"" (") """ (string_content) "irrecoverable error" (") """ (}) "}" (;) ";" (declaration) "static int segment_header(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int);" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "segment_header(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int)" (identifier) "segment_header" (parameter_list) "(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int)" (() "(" (parameter_declaration) "elf_segment_header_t *" (type_identifier) "elf_segment_header_t" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "elf_header_t *" (type_identifier) "elf_header_t" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "as_t *" (type_identifier) "as_t" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (;) ";" (declaration) "static int section_header(elf_section_header_t *, elf_header_t *, as_t *);" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "section_header(elf_section_header_t *, elf_header_t *, as_t *)" (identifier) "section_header" (parameter_list) "(elf_section_header_t *, elf_header_t *, as_t *)" (() "(" (parameter_declaration) "elf_section_header_t *" (type_identifier) "elf_section_header_t" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "elf_header_t *" (type_identifier) "elf_header_t" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "as_t *" (type_identifier) "as_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (declaration) "static int load_segment(elf_segment_header_t *, elf_header_t *, as_t *);" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "load_segment(elf_segment_header_t *, elf_header_t *, as_t *)" (identifier) "load_segment" (parameter_list) "(elf_segment_header_t *, elf_header_t *, as_t *)" (() "(" (parameter_declaration) "elf_segment_header_t *" (type_identifier) "elf_segment_header_t" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "elf_header_t *" (type_identifier) "elf_header_t" (abstract_pointer_declarator) "*" (*) "*" (,) "," (parameter_declaration) "as_t *" (type_identifier) "as_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (;) ";" (comment) "/** ELF loader\n *\n * @param header Pointer to ELF header in memory\n * @param as Created and properly mapped address space\n * @param flags A combination of ELD_F_*\n *\n * @return EE_OK on success\n *\n */" (function_definition) "unsigned int elf_load(elf_header_t *header, as_t *as, unsigned int flags)\n{\n /* Identify ELF */\n if ((header->e_ident[EI_MAG0] != ELFMAG0) ||\n (header->e_ident[EI_MAG1] != ELFMAG1) ||\n (header->e_ident[EI_MAG2] != ELFMAG2) ||\n (header->e_ident[EI_MAG3] != ELFMAG3))\n return EE_INVALID;\n \n /* Identify ELF compatibility */\n if ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE) ||\n (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n (header->e_version != EV_CURRENT) ||\n (header->e_ident[EI_CLASS] != ELF_CLASS))\n return EE_INCOMPATIBLE;\n \n if (header->e_phentsize != sizeof(elf_segment_header_t))\n return EE_INCOMPATIBLE;\n \n if (header->e_shentsize != sizeof(elf_section_header_t))\n return EE_INCOMPATIBLE;\n \n /* Check if the object type is supported. */\n if (header->e_type != ET_EXEC)\n return EE_UNSUPPORTED;\n \n /* Check if the ELF image starts on a page boundary */\n if (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)\n return EE_UNSUPPORTED;\n \n /* Walk through all segment headers and process them. */\n elf_half i;\n for (i = 0; i < header->e_phnum; i++) {\n elf_segment_header_t *seghdr =\n &((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i];\n \n int rc = segment_header(seghdr, header, as, flags);\n if (rc != EE_OK)\n return rc;\n }\n \n /* Inspect all section headers and process them. */\n for (i = 0; i < header->e_shnum; i++) {\n elf_section_header_t *sechdr =\n &((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i];\n \n int rc = section_header(sechdr, header, as);\n if (rc != EE_OK)\n return rc;\n }\n \n return EE_OK;\n}" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (function_declarator) "elf_load(elf_header_t *header, as_t *as, unsigned int flags)" (identifier) "elf_load" (parameter_list) "(elf_header_t *header, as_t *as, unsigned int flags)" (() "(" (parameter_declaration) "elf_header_t *header" (type_identifier) "elf_header_t" (pointer_declarator) "*header" (*) "*" (identifier) "header" (,) "," (parameter_declaration) "as_t *as" (type_identifier) "as_t" (pointer_declarator) "*as" (*) "*" (identifier) "as" (,) "," (parameter_declaration) "unsigned int flags" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "flags" ()) ")" (compound_statement) "{\n /* Identify ELF */\n if ((header->e_ident[EI_MAG0] != ELFMAG0) ||\n (header->e_ident[EI_MAG1] != ELFMAG1) ||\n (header->e_ident[EI_MAG2] != ELFMAG2) ||\n (header->e_ident[EI_MAG3] != ELFMAG3))\n return EE_INVALID;\n \n /* Identify ELF compatibility */\n if ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE) ||\n (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n (header->e_version != EV_CURRENT) ||\n (header->e_ident[EI_CLASS] != ELF_CLASS))\n return EE_INCOMPATIBLE;\n \n if (header->e_phentsize != sizeof(elf_segment_header_t))\n return EE_INCOMPATIBLE;\n \n if (header->e_shentsize != sizeof(elf_section_header_t))\n return EE_INCOMPATIBLE;\n \n /* Check if the object type is supported. */\n if (header->e_type != ET_EXEC)\n return EE_UNSUPPORTED;\n \n /* Check if the ELF image starts on a page boundary */\n if (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)\n return EE_UNSUPPORTED;\n \n /* Walk through all segment headers and process them. */\n elf_half i;\n for (i = 0; i < header->e_phnum; i++) {\n elf_segment_header_t *seghdr =\n &((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i];\n \n int rc = segment_header(seghdr, header, as, flags);\n if (rc != EE_OK)\n return rc;\n }\n \n /* Inspect all section headers and process them. */\n for (i = 0; i < header->e_shnum; i++) {\n elf_section_header_t *sechdr =\n &((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i];\n \n int rc = section_header(sechdr, header, as);\n if (rc != EE_OK)\n return rc;\n }\n \n return EE_OK;\n}" ({) "{" (comment) "/* Identify ELF */" (if_statement) "if ((header->e_ident[EI_MAG0] != ELFMAG0) ||\n (header->e_ident[EI_MAG1] != ELFMAG1) ||\n (header->e_ident[EI_MAG2] != ELFMAG2) ||\n (header->e_ident[EI_MAG3] != ELFMAG3))\n return EE_INVALID;" (if) "if" (parenthesized_expression) "((header->e_ident[EI_MAG0] != ELFMAG0) ||\n (header->e_ident[EI_MAG1] != ELFMAG1) ||\n (header->e_ident[EI_MAG2] != ELFMAG2) ||\n (header->e_ident[EI_MAG3] != ELFMAG3))" (() "(" (binary_expression) "(header->e_ident[EI_MAG0] != ELFMAG0) ||\n (header->e_ident[EI_MAG1] != ELFMAG1) ||\n (header->e_ident[EI_MAG2] != ELFMAG2) ||\n (header->e_ident[EI_MAG3] != ELFMAG3)" (binary_expression) "(header->e_ident[EI_MAG0] != ELFMAG0) ||\n (header->e_ident[EI_MAG1] != ELFMAG1) ||\n (header->e_ident[EI_MAG2] != ELFMAG2)" (binary_expression) "(header->e_ident[EI_MAG0] != ELFMAG0) ||\n (header->e_ident[EI_MAG1] != ELFMAG1)" (parenthesized_expression) "(header->e_ident[EI_MAG0] != ELFMAG0)" (() "(" (binary_expression) "header->e_ident[EI_MAG0] != ELFMAG0" (subscript_expression) "header->e_ident[EI_MAG0]" (field_expression) "header->e_ident" (identifier) "header" (->) "->" (field_identifier) "e_ident" ([) "[" (identifier) "EI_MAG0" (]) "]" (!=) "!=" (identifier) "ELFMAG0" ()) ")" (||) "||" (parenthesized_expression) "(header->e_ident[EI_MAG1] != ELFMAG1)" (() "(" (binary_expression) "header->e_ident[EI_MAG1] != ELFMAG1" (subscript_expression) "header->e_ident[EI_MAG1]" (field_expression) "header->e_ident" (identifier) "header" (->) "->" (field_identifier) "e_ident" ([) "[" (identifier) "EI_MAG1" (]) "]" (!=) "!=" (identifier) "ELFMAG1" ()) ")" (||) "||" (parenthesized_expression) "(header->e_ident[EI_MAG2] != ELFMAG2)" (() "(" (binary_expression) "header->e_ident[EI_MAG2] != ELFMAG2" (subscript_expression) "header->e_ident[EI_MAG2]" (field_expression) "header->e_ident" (identifier) "header" (->) "->" (field_identifier) "e_ident" ([) "[" (identifier) "EI_MAG2" (]) "]" (!=) "!=" (identifier) "ELFMAG2" ()) ")" (||) "||" (parenthesized_expression) "(header->e_ident[EI_MAG3] != ELFMAG3)" (() "(" (binary_expression) "header->e_ident[EI_MAG3] != ELFMAG3" (subscript_expression) "header->e_ident[EI_MAG3]" (field_expression) "header->e_ident" (identifier) "header" (->) "->" (field_identifier) "e_ident" ([) "[" (identifier) "EI_MAG3" (]) "]" (!=) "!=" (identifier) "ELFMAG3" ()) ")" ()) ")" (return_statement) "return EE_INVALID;" (return) "return" (identifier) "EE_INVALID" (;) ";" (comment) "/* Identify ELF compatibility */" (if_statement) "if ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE) ||\n (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n (header->e_version != EV_CURRENT) ||\n (header->e_ident[EI_CLASS] != ELF_CLASS))\n return EE_INCOMPATIBLE;" (if) "if" (parenthesized_expression) "((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE) ||\n (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n (header->e_version != EV_CURRENT) ||\n (header->e_ident[EI_CLASS] != ELF_CLASS))" (() "(" (binary_expression) "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE) ||\n (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n (header->e_version != EV_CURRENT) ||\n (header->e_ident[EI_CLASS] != ELF_CLASS)" (binary_expression) "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE) ||\n (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n (header->e_version != EV_CURRENT)" (binary_expression) "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE) ||\n (header->e_ident[EI_VERSION] != EV_CURRENT)" (binary_expression) "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n (header->e_machine != ELF_MACHINE)" (parenthesized_expression) "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING)" (() "(" (binary_expression) "header->e_ident[EI_DATA] != ELF_DATA_ENCODING" (subscript_expression) "header->e_ident[EI_DATA]" (field_expression) "header->e_ident" (identifier) "header" (->) "->" (field_identifier) "e_ident" ([) "[" (identifier) "EI_DATA" (]) "]" (!=) "!=" (identifier) "ELF_DATA_ENCODING" ()) ")" (||) "||" (parenthesized_expression) "(header->e_machine != ELF_MACHINE)" (() "(" (binary_expression) "header->e_machine != ELF_MACHINE" (field_expression) "header->e_machine" (identifier) "header" (->) "->" (field_identifier) "e_machine" (!=) "!=" (identifier) "ELF_MACHINE" ()) ")" (||) "||" (parenthesized_expression) "(header->e_ident[EI_VERSION] != EV_CURRENT)" (() "(" (binary_expression) "header->e_ident[EI_VERSION] != EV_CURRENT" (subscript_expression) "header->e_ident[EI_VERSION]" (field_expression) "header->e_ident" (identifier) "header" (->) "->" (field_identifier) "e_ident" ([) "[" (identifier) "EI_VERSION" (]) "]" (!=) "!=" (identifier) "EV_CURRENT" ()) ")" (||) "||" (parenthesized_expression) "(header->e_version != EV_CURRENT)" (() "(" (binary_expression) "header->e_version != EV_CURRENT" (field_expression) "header->e_version" (identifier) "header" (->) "->" (field_identifier) "e_version" (!=) "!=" (identifier) "EV_CURRENT" ()) ")" (||) "||" (parenthesized_expression) "(header->e_ident[EI_CLASS] != ELF_CLASS)" (() "(" (binary_expression) "header->e_ident[EI_CLASS] != ELF_CLASS" (subscript_expression) "header->e_ident[EI_CLASS]" (field_expression) "header->e_ident" (identifier) "header" (->) "->" (field_identifier) "e_ident" ([) "[" (identifier) "EI_CLASS" (]) "]" (!=) "!=" (identifier) "ELF_CLASS" ()) ")" ()) ")" (return_statement) "return EE_INCOMPATIBLE;" (return) "return" (identifier) "EE_INCOMPATIBLE" (;) ";" (if_statement) "if (header->e_phentsize != sizeof(elf_segment_header_t))\n return EE_INCOMPATIBLE;" (if) "if" (parenthesized_expression) "(header->e_phentsize != sizeof(elf_segment_header_t))" (() "(" (binary_expression) "header->e_phentsize != sizeof(elf_segment_header_t)" (field_expression) "header->e_phentsize" (identifier) "header" (->) "->" (field_identifier) "e_phentsize" (!=) "!=" (sizeof_expression) "sizeof(elf_segment_header_t)" (sizeof) "sizeof" (parenthesized_expression) "(elf_segment_header_t)" (() "(" (identifier) "elf_segment_header_t" ()) ")" ()) ")" (return_statement) "return EE_INCOMPATIBLE;" (return) "return" (identifier) "EE_INCOMPATIBLE" (;) ";" (if_statement) "if (header->e_shentsize != sizeof(elf_section_header_t))\n return EE_INCOMPATIBLE;" (if) "if" (parenthesized_expression) "(header->e_shentsize != sizeof(elf_section_header_t))" (() "(" (binary_expression) "header->e_shentsize != sizeof(elf_section_header_t)" (field_expression) "header->e_shentsize" (identifier) "header" (->) "->" (field_identifier) "e_shentsize" (!=) "!=" (sizeof_expression) "sizeof(elf_section_header_t)" (sizeof) "sizeof" (parenthesized_expression) "(elf_section_header_t)" (() "(" (identifier) "elf_section_header_t" ()) ")" ()) ")" (return_statement) "return EE_INCOMPATIBLE;" (return) "return" (identifier) "EE_INCOMPATIBLE" (;) ";" (comment) "/* Check if the object type is supported. */" (if_statement) "if (header->e_type != ET_EXEC)\n return EE_UNSUPPORTED;" (if) "if" (parenthesized_expression) "(header->e_type != ET_EXEC)" (() "(" (binary_expression) "header->e_type != ET_EXEC" (field_expression) "header->e_type" (identifier) "header" (->) "->" (field_identifier) "e_type" (!=) "!=" (identifier) "ET_EXEC" ()) ")" (return_statement) "return EE_UNSUPPORTED;" (return) "return" (identifier) "EE_UNSUPPORTED" (;) ";" (comment) "/* Check if the ELF image starts on a page boundary */" (if_statement) "if (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)\n return EE_UNSUPPORTED;" (if) "if" (parenthesized_expression) "(ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)" (() "(" (binary_expression) "ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header" (call_expression) "ALIGN_UP((uintptr_t) header, PAGE_SIZE)" (identifier) "ALIGN_UP" (argument_list) "((uintptr_t) header, PAGE_SIZE)" (() "(" (cast_expression) "(uintptr_t) header" (() "(" (type_descriptor) "uintptr_t" (primitive_type) "uintptr_t" ()) ")" (identifier) "header" (,) "," (identifier) "PAGE_SIZE" ()) ")" (!=) "!=" (cast_expression) "(uintptr_t) header" (() "(" (type_descriptor) "uintptr_t" (primitive_type) "uintptr_t" ()) ")" (identifier) "header" ()) ")" (return_statement) "return EE_UNSUPPORTED;" (return) "return" (identifier) "EE_UNSUPPORTED" (;) ";" (comment) "/* Walk through all segment headers and process them. */" (declaration) "elf_half i;" (type_identifier) "elf_half" (identifier) "i" (;) ";" (for_statement) "for (i = 0; i < header->e_phnum; i++) {\n elf_segment_header_t *seghdr =\n &((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i];\n \n int rc = segment_header(seghdr, header, as, flags);\n if (rc != EE_OK)\n return rc;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < header->e_phnum" (identifier) "i" (<) "<" (field_expression) "header->e_phnum" (identifier) "header" (->) "->" (field_identifier) "e_phnum" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n elf_segment_header_t *seghdr =\n &((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i];\n \n int rc = segment_header(seghdr, header, as, flags);\n if (rc != EE_OK)\n return rc;\n }" ({) "{" (declaration) "elf_segment_header_t *seghdr =\n &((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i];" (type_identifier) "elf_segment_header_t" (init_declarator) "*seghdr =\n &((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i]" (pointer_declarator) "*seghdr" (*) "*" (identifier) "seghdr" (=) "=" (pointer_expression) "&((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i]" (&) "&" (subscript_expression) "((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))[i]" (parenthesized_expression) "((elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff))" (() "(" (cast_expression) "(elf_segment_header_t *)(((uint8_t *) header) +\n header->e_phoff)" (() "(" (type_descriptor) "elf_segment_header_t *" (type_identifier) "elf_segment_header_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(((uint8_t *) header) +\n header->e_phoff)" (() "(" (binary_expression) "((uint8_t *) header) +\n header->e_phoff" (parenthesized_expression) "((uint8_t *) header)" (() "(" (cast_expression) "(uint8_t *) header" (() "(" (type_descriptor) "uint8_t *" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "header" ()) ")" (+) "+" (field_expression) "header->e_phoff" (identifier) "header" (->) "->" (field_identifier) "e_phoff" ()) ")" ()) ")" ([) "[" (identifier) "i" (]) "]" (;) ";" (declaration) "int rc = segment_header(seghdr, header, as, flags);" (primitive_type) "int" (init_declarator) "rc = segment_header(seghdr, header, as, flags)" (identifier) "rc" (=) "=" (call_expression) "segment_header(seghdr, header, as, flags)" (identifier) "segment_header" (argument_list) "(seghdr, header, as, flags)" (() "(" (identifier) "seghdr" (,) "," (identifier) "header" (,) "," (identifier) "as" (,) "," (identifier) "flags" ()) ")" (;) ";" (if_statement) "if (rc != EE_OK)\n return rc;" (if) "if" (parenthesized_expression) "(rc != EE_OK)" (() "(" (binary_expression) "rc != EE_OK" (identifier) "rc" (!=) "!=" (identifier) "EE_OK" ()) ")" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (comment) "/* Inspect all section headers and process them. */" (for_statement) "for (i = 0; i < header->e_shnum; i++) {\n elf_section_header_t *sechdr =\n &((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i];\n \n int rc = section_header(sechdr, header, as);\n if (rc != EE_OK)\n return rc;\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < header->e_shnum" (identifier) "i" (<) "<" (field_expression) "header->e_shnum" (identifier) "header" (->) "->" (field_identifier) "e_shnum" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n elf_section_header_t *sechdr =\n &((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i];\n \n int rc = section_header(sechdr, header, as);\n if (rc != EE_OK)\n return rc;\n }" ({) "{" (declaration) "elf_section_header_t *sechdr =\n &((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i];" (type_identifier) "elf_section_header_t" (init_declarator) "*sechdr =\n &((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i]" (pointer_declarator) "*sechdr" (*) "*" (identifier) "sechdr" (=) "=" (pointer_expression) "&((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i]" (&) "&" (subscript_expression) "((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))[i]" (parenthesized_expression) "((elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff))" (() "(" (cast_expression) "(elf_section_header_t *)(((uint8_t *) header) +\n header->e_shoff)" (() "(" (type_descriptor) "elf_section_header_t *" (type_identifier) "elf_section_header_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (parenthesized_expression) "(((uint8_t *) header) +\n header->e_shoff)" (() "(" (binary_expression) "((uint8_t *) header) +\n header->e_shoff" (parenthesized_expression) "((uint8_t *) header)" (() "(" (cast_expression) "(uint8_t *) header" (() "(" (type_descriptor) "uint8_t *" (primitive_type) "uint8_t" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "header" ()) ")" (+) "+" (field_expression) "header->e_shoff" (identifier) "header" (->) "->" (field_identifier) "e_shoff" ()) ")" ()) ")" ([) "[" (identifier) "i" (]) "]" (;) ";" (declaration) "int rc = section_header(sechdr, header, as);" (primitive_type) "int" (init_declarator) "rc = section_header(sechdr, header, as)" (identifier) "rc" (=) "=" (call_expression) "section_header(sechdr, header, as)" (identifier) "section_header" (argument_list) "(sechdr, header, as)" (() "(" (identifier) "sechdr" (,) "," (identifier) "header" (,) "," (identifier) "as" ()) ")" (;) ";" (if_statement) "if (rc != EE_OK)\n return rc;" (if) "if" (parenthesized_expression) "(rc != EE_OK)" (() "(" (binary_expression) "rc != EE_OK" (identifier) "rc" (!=) "!=" (identifier) "EE_OK" ()) ")" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (return_statement) "return EE_OK;" (return) "return" (identifier) "EE_OK" (;) ";" (}) "}" (comment) "/** Print error message according to error code.\n *\n * @param rc Return code returned by elf_load().\n *\n * @return NULL terminated description of error.\n *\n */" (function_definition) "const char *elf_error(unsigned int rc)\n{\n ASSERT(rc < sizeof(error_codes) / sizeof(char *));\n \n return error_codes[rc];\n}" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*elf_error(unsigned int rc)" (*) "*" (function_declarator) "elf_error(unsigned int rc)" (identifier) "elf_error" (parameter_list) "(unsigned int rc)" (() "(" (parameter_declaration) "unsigned int rc" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "rc" ()) ")" (compound_statement) "{\n ASSERT(rc < sizeof(error_codes) / sizeof(char *));\n \n return error_codes[rc];\n}" ({) "{" (expression_statement) "ASSERT(rc < sizeof(error_codes) / sizeof(char *));" (call_expression) "ASSERT(rc < sizeof(error_codes) / sizeof(char *))" (identifier) "ASSERT" (argument_list) "(rc < sizeof(error_codes) / sizeof(char *))" (() "(" (binary_expression) "rc < sizeof(error_codes) / sizeof(char *)" (identifier) "rc" (<) "<" (binary_expression) "sizeof(error_codes) / sizeof(char *)" (sizeof_expression) "sizeof(error_codes)" (sizeof) "sizeof" (parenthesized_expression) "(error_codes)" (() "(" (identifier) "error_codes" ()) ")" (/) "/" (sizeof_expression) "sizeof(char *)" (sizeof) "sizeof" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (return_statement) "return error_codes[rc];" (return) "return" (subscript_expression) "error_codes[rc]" (identifier) "error_codes" ([) "[" (identifier) "rc" (]) "]" (;) ";" (}) "}" (comment) "/** Process segment header.\n *\n * @param entry Segment header.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */" (function_definition) "static int segment_header(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)\n{\n switch (entry->p_type) {\n case PT_NULL:\n case PT_PHDR:\n case PT_NOTE:\n break;\n case PT_LOAD:\n return load_segment(entry, elf, as);\n case PT_DYNAMIC:\n case PT_INTERP:\n // FIXME\n /*\n char *interp = (char *) elf + entry->p_offset;\n if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n ELF_INTERP_ZLEN) != 0) {\n return EE_UNSUPPORTED;\n } */\n if ((flags & ELD_F_LOADER) == 0)\n return EE_LOADER;\n break;\n case PT_SHLIB:\n case PT_LOPROC:\n case PT_HIPROC:\n default:\n return EE_UNSUPPORTED;\n }\n return EE_OK;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "segment_header(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)" (identifier) "segment_header" (parameter_list) "(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)" (() "(" (parameter_declaration) "elf_segment_header_t *entry" (type_identifier) "elf_segment_header_t" (pointer_declarator) "*entry" (*) "*" (identifier) "entry" (,) "," (parameter_declaration) "elf_header_t *elf" (type_identifier) "elf_header_t" (pointer_declarator) "*elf" (*) "*" (identifier) "elf" (,) "," (parameter_declaration) "as_t *as" (type_identifier) "as_t" (pointer_declarator) "*as" (*) "*" (identifier) "as" (,) "," (parameter_declaration) "unsigned int flags" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "flags" ()) ")" (compound_statement) "{\n switch (entry->p_type) {\n case PT_NULL:\n case PT_PHDR:\n case PT_NOTE:\n break;\n case PT_LOAD:\n return load_segment(entry, elf, as);\n case PT_DYNAMIC:\n case PT_INTERP:\n // FIXME\n /*\n char *interp = (char *) elf + entry->p_offset;\n if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n ELF_INTERP_ZLEN) != 0) {\n return EE_UNSUPPORTED;\n } */\n if ((flags & ELD_F_LOADER) == 0)\n return EE_LOADER;\n break;\n case PT_SHLIB:\n case PT_LOPROC:\n case PT_HIPROC:\n default:\n return EE_UNSUPPORTED;\n }\n return EE_OK;\n}" ({) "{" (switch_statement) "switch (entry->p_type) {\n case PT_NULL:\n case PT_PHDR:\n case PT_NOTE:\n break;\n case PT_LOAD:\n return load_segment(entry, elf, as);\n case PT_DYNAMIC:\n case PT_INTERP:\n // FIXME\n /*\n char *interp = (char *) elf + entry->p_offset;\n if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n ELF_INTERP_ZLEN) != 0) {\n return EE_UNSUPPORTED;\n } */\n if ((flags & ELD_F_LOADER) == 0)\n return EE_LOADER;\n break;\n case PT_SHLIB:\n case PT_LOPROC:\n case PT_HIPROC:\n default:\n return EE_UNSUPPORTED;\n }" (switch) "switch" (parenthesized_expression) "(entry->p_type)" (() "(" (field_expression) "entry->p_type" (identifier) "entry" (->) "->" (field_identifier) "p_type" ()) ")" (compound_statement) "{\n case PT_NULL:\n case PT_PHDR:\n case PT_NOTE:\n break;\n case PT_LOAD:\n return load_segment(entry, elf, as);\n case PT_DYNAMIC:\n case PT_INTERP:\n // FIXME\n /*\n char *interp = (char *) elf + entry->p_offset;\n if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n ELF_INTERP_ZLEN) != 0) {\n return EE_UNSUPPORTED;\n } */\n if ((flags & ELD_F_LOADER) == 0)\n return EE_LOADER;\n break;\n case PT_SHLIB:\n case PT_LOPROC:\n case PT_HIPROC:\n default:\n return EE_UNSUPPORTED;\n }" ({) "{" (case_statement) "case PT_NULL:" (case) "case" (identifier) "PT_NULL" (:) ":" (case_statement) "case PT_PHDR:" (case) "case" (identifier) "PT_PHDR" (:) ":" (case_statement) "case PT_NOTE:\n break;" (case) "case" (identifier) "PT_NOTE" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case PT_LOAD:\n return load_segment(entry, elf, as);" (case) "case" (identifier) "PT_LOAD" (:) ":" (return_statement) "return load_segment(entry, elf, as);" (return) "return" (call_expression) "load_segment(entry, elf, as)" (identifier) "load_segment" (argument_list) "(entry, elf, as)" (() "(" (identifier) "entry" (,) "," (identifier) "elf" (,) "," (identifier) "as" ()) ")" (;) ";" (case_statement) "case PT_DYNAMIC:" (case) "case" (identifier) "PT_DYNAMIC" (:) ":" (case_statement) "case PT_INTERP:\n // FIXME\n /*\n char *interp = (char *) elf + entry->p_offset;\n if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n ELF_INTERP_ZLEN) != 0) {\n return EE_UNSUPPORTED;\n } */\n if ((flags & ELD_F_LOADER) == 0)\n return EE_LOADER;\n break;" (case) "case" (identifier) "PT_INTERP" (:) ":" (comment) "// FIXME" (comment) "/*\n char *interp = (char *) elf + entry->p_offset;\n if (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n ELF_INTERP_ZLEN) != 0) {\n return EE_UNSUPPORTED;\n } */" (if_statement) "if ((flags & ELD_F_LOADER) == 0)\n return EE_LOADER;" (if) "if" (parenthesized_expression) "((flags & ELD_F_LOADER) == 0)" (() "(" (binary_expression) "(flags & ELD_F_LOADER) == 0" (parenthesized_expression) "(flags & ELD_F_LOADER)" (() "(" (binary_expression) "flags & ELD_F_LOADER" (identifier) "flags" (&) "&" (identifier) "ELD_F_LOADER" ()) ")" (==) "==" (number_literal) "0" ()) ")" (return_statement) "return EE_LOADER;" (return) "return" (identifier) "EE_LOADER" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case PT_SHLIB:" (case) "case" (identifier) "PT_SHLIB" (:) ":" (case_statement) "case PT_LOPROC:" (case) "case" (identifier) "PT_LOPROC" (:) ":" (case_statement) "case PT_HIPROC:" (case) "case" (identifier) "PT_HIPROC" (:) ":" (case_statement) "default:\n return EE_UNSUPPORTED;" (default) "default" (:) ":" (return_statement) "return EE_UNSUPPORTED;" (return) "return" (identifier) "EE_UNSUPPORTED" (;) ";" (}) "}" (return_statement) "return EE_OK;" (return) "return" (identifier) "EE_OK" (;) ";" (}) "}" (comment) "/** Load segment described by program header entry.\n *\n * @param entry Program header entry describing segment to be loaded.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */" (function_definition) "int load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)\n{\n mem_backend_data_t backend_data;\n backend_data.elf = elf;\n backend_data.segment = entry;\n \n if (entry->p_align > 1) {\n if ((entry->p_offset % entry->p_align) !=\n (entry->p_vaddr % entry->p_align))\n return EE_INVALID;\n }\n \n unsigned int flags = 0;\n \n if (entry->p_flags & PF_X)\n flags |= AS_AREA_EXEC;\n \n if (entry->p_flags & PF_W)\n flags |= AS_AREA_WRITE;\n \n if (entry->p_flags & PF_R)\n flags |= AS_AREA_READ;\n \n flags |= AS_AREA_CACHEABLE;\n \n /*\n * Align vaddr down, inserting a little "gap" at the beginning.\n * Adjust area size, so that its end remains in place.\n *\n */\n uintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);\n size_t mem_sz = entry->p_memsz + (entry->p_vaddr - base);\n \n as_area_t *area = as_area_create(as, flags, mem_sz,\n AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0);\n if (!area)\n return EE_MEMORY;\n \n /*\n * The segment will be mapped on demand by elf_page_fault().\n *\n */\n \n return EE_OK;\n}" (primitive_type) "int" (function_declarator) "load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)" (identifier) "load_segment" (parameter_list) "(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)" (() "(" (parameter_declaration) "elf_segment_header_t *entry" (type_identifier) "elf_segment_header_t" (pointer_declarator) "*entry" (*) "*" (identifier) "entry" (,) "," (parameter_declaration) "elf_header_t *elf" (type_identifier) "elf_header_t" (pointer_declarator) "*elf" (*) "*" (identifier) "elf" (,) "," (parameter_declaration) "as_t *as" (type_identifier) "as_t" (pointer_declarator) "*as" (*) "*" (identifier) "as" ()) ")" (compound_statement) "{\n mem_backend_data_t backend_data;\n backend_data.elf = elf;\n backend_data.segment = entry;\n \n if (entry->p_align > 1) {\n if ((entry->p_offset % entry->p_align) !=\n (entry->p_vaddr % entry->p_align))\n return EE_INVALID;\n }\n \n unsigned int flags = 0;\n \n if (entry->p_flags & PF_X)\n flags |= AS_AREA_EXEC;\n \n if (entry->p_flags & PF_W)\n flags |= AS_AREA_WRITE;\n \n if (entry->p_flags & PF_R)\n flags |= AS_AREA_READ;\n \n flags |= AS_AREA_CACHEABLE;\n \n /*\n * Align vaddr down, inserting a little "gap" at the beginning.\n * Adjust area size, so that its end remains in place.\n *\n */\n uintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);\n size_t mem_sz = entry->p_memsz + (entry->p_vaddr - base);\n \n as_area_t *area = as_area_create(as, flags, mem_sz,\n AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0);\n if (!area)\n return EE_MEMORY;\n \n /*\n * The segment will be mapped on demand by elf_page_fault().\n *\n */\n \n return EE_OK;\n}" ({) "{" (declaration) "mem_backend_data_t backend_data;" (type_identifier) "mem_backend_data_t" (identifier) "backend_data" (;) ";" (expression_statement) "backend_data.elf = elf;" (assignment_expression) "backend_data.elf = elf" (field_expression) "backend_data.elf" (identifier) "backend_data" (.) "." (field_identifier) "elf" (=) "=" (identifier) "elf" (;) ";" (expression_statement) "backend_data.segment = entry;" (assignment_expression) "backend_data.segment = entry" (field_expression) "backend_data.segment" (identifier) "backend_data" (.) "." (field_identifier) "segment" (=) "=" (identifier) "entry" (;) ";" (if_statement) "if (entry->p_align > 1) {\n if ((entry->p_offset % entry->p_align) !=\n (entry->p_vaddr % entry->p_align))\n return EE_INVALID;\n }" (if) "if" (parenthesized_expression) "(entry->p_align > 1)" (() "(" (binary_expression) "entry->p_align > 1" (field_expression) "entry->p_align" (identifier) "entry" (->) "->" (field_identifier) "p_align" (>) ">" (number_literal) "1" ()) ")" (compound_statement) "{\n if ((entry->p_offset % entry->p_align) !=\n (entry->p_vaddr % entry->p_align))\n return EE_INVALID;\n }" ({) "{" (if_statement) "if ((entry->p_offset % entry->p_align) !=\n (entry->p_vaddr % entry->p_align))\n return EE_INVALID;" (if) "if" (parenthesized_expression) "((entry->p_offset % entry->p_align) !=\n (entry->p_vaddr % entry->p_align))" (() "(" (binary_expression) "(entry->p_offset % entry->p_align) !=\n (entry->p_vaddr % entry->p_align)" (parenthesized_expression) "(entry->p_offset % entry->p_align)" (() "(" (binary_expression) "entry->p_offset % entry->p_align" (field_expression) "entry->p_offset" (identifier) "entry" (->) "->" (field_identifier) "p_offset" (%) "%" (field_expression) "entry->p_align" (identifier) "entry" (->) "->" (field_identifier) "p_align" ()) ")" (!=) "!=" (parenthesized_expression) "(entry->p_vaddr % entry->p_align)" (() "(" (binary_expression) "entry->p_vaddr % entry->p_align" (field_expression) "entry->p_vaddr" (identifier) "entry" (->) "->" (field_identifier) "p_vaddr" (%) "%" (field_expression) "entry->p_align" (identifier) "entry" (->) "->" (field_identifier) "p_align" ()) ")" ()) ")" (return_statement) "return EE_INVALID;" (return) "return" (identifier) "EE_INVALID" (;) ";" (}) "}" (declaration) "unsigned int flags = 0;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (init_declarator) "flags = 0" (identifier) "flags" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (entry->p_flags & PF_X)\n flags |= AS_AREA_EXEC;" (if) "if" (parenthesized_expression) "(entry->p_flags & PF_X)" (() "(" (binary_expression) "entry->p_flags & PF_X" (field_expression) "entry->p_flags" (identifier) "entry" (->) "->" (field_identifier) "p_flags" (&) "&" (identifier) "PF_X" ()) ")" (expression_statement) "flags |= AS_AREA_EXEC;" (assignment_expression) "flags |= AS_AREA_EXEC" (identifier) "flags" (|=) "|=" (identifier) "AS_AREA_EXEC" (;) ";" (if_statement) "if (entry->p_flags & PF_W)\n flags |= AS_AREA_WRITE;" (if) "if" (parenthesized_expression) "(entry->p_flags & PF_W)" (() "(" (binary_expression) "entry->p_flags & PF_W" (field_expression) "entry->p_flags" (identifier) "entry" (->) "->" (field_identifier) "p_flags" (&) "&" (identifier) "PF_W" ()) ")" (expression_statement) "flags |= AS_AREA_WRITE;" (assignment_expression) "flags |= AS_AREA_WRITE" (identifier) "flags" (|=) "|=" (identifier) "AS_AREA_WRITE" (;) ";" (if_statement) "if (entry->p_flags & PF_R)\n flags |= AS_AREA_READ;" (if) "if" (parenthesized_expression) "(entry->p_flags & PF_R)" (() "(" (binary_expression) "entry->p_flags & PF_R" (field_expression) "entry->p_flags" (identifier) "entry" (->) "->" (field_identifier) "p_flags" (&) "&" (identifier) "PF_R" ()) ")" (expression_statement) "flags |= AS_AREA_READ;" (assignment_expression) "flags |= AS_AREA_READ" (identifier) "flags" (|=) "|=" (identifier) "AS_AREA_READ" (;) ";" (expression_statement) "flags |= AS_AREA_CACHEABLE;" (assignment_expression) "flags |= AS_AREA_CACHEABLE" (identifier) "flags" (|=) "|=" (identifier) "AS_AREA_CACHEABLE" (;) ";" (comment) "/*\n * Align vaddr down, inserting a little "gap" at the beginning.\n * Adjust area size, so that its end remains in place.\n *\n */" (declaration) "uintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);" (primitive_type) "uintptr_t" (init_declarator) "base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)" (identifier) "base" (=) "=" (call_expression) "ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)" (identifier) "ALIGN_DOWN" (argument_list) "(entry->p_vaddr, PAGE_SIZE)" (() "(" (field_expression) "entry->p_vaddr" (identifier) "entry" (->) "->" (field_identifier) "p_vaddr" (,) "," (identifier) "PAGE_SIZE" ()) ")" (;) ";" (declaration) "size_t mem_sz = entry->p_memsz + (entry->p_vaddr - base);" (primitive_type) "size_t" (init_declarator) "mem_sz = entry->p_memsz + (entry->p_vaddr - base)" (identifier) "mem_sz" (=) "=" (binary_expression) "entry->p_memsz + (entry->p_vaddr - base)" (field_expression) "entry->p_memsz" (identifier) "entry" (->) "->" (field_identifier) "p_memsz" (+) "+" (parenthesized_expression) "(entry->p_vaddr - base)" (() "(" (binary_expression) "entry->p_vaddr - base" (field_expression) "entry->p_vaddr" (identifier) "entry" (->) "->" (field_identifier) "p_vaddr" (-) "-" (identifier) "base" ()) ")" (;) ";" (declaration) "as_area_t *area = as_area_create(as, flags, mem_sz,\n AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0);" (type_identifier) "as_area_t" (init_declarator) "*area = as_area_create(as, flags, mem_sz,\n AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0)" (pointer_declarator) "*area" (*) "*" (identifier) "area" (=) "=" (call_expression) "as_area_create(as, flags, mem_sz,\n AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0)" (identifier) "as_area_create" (argument_list) "(as, flags, mem_sz,\n AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0)" (() "(" (identifier) "as" (,) "," (identifier) "flags" (,) "," (identifier) "mem_sz" (,) "," (identifier) "AS_AREA_ATTR_NONE" (,) "," (pointer_expression) "&elf_backend" (&) "&" (identifier) "elf_backend" (,) "," (pointer_expression) "&backend_data" (&) "&" (identifier) "backend_data" (,) "," (pointer_expression) "&base" (&) "&" (identifier) "base" (,) "," (number_literal) "0" ()) ")" (;) ";" (if_statement) "if (!area)\n return EE_MEMORY;" (if) "if" (parenthesized_expression) "(!area)" (() "(" (unary_expression) "!area" (!) "!" (identifier) "area" ()) ")" (return_statement) "return EE_MEMORY;" (return) "return" (identifier) "EE_MEMORY" (;) ";" (comment) "/*\n * The segment will be mapped on demand by elf_page_fault().\n *\n */" (return_statement) "return EE_OK;" (return) "return" (identifier) "EE_OK" (;) ";" (}) "}" (comment) "/** Process section header.\n *\n * @param entry Segment header.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */" (function_definition) "static int section_header(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)\n{\n switch (entry->sh_type) {\n case SHT_PROGBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tdata */\n }\n break;\n case SHT_NOBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tbss */\n }\n break;\n default:\n break;\n }\n \n return EE_OK;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "section_header(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)" (identifier) "section_header" (parameter_list) "(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)" (() "(" (parameter_declaration) "elf_section_header_t *entry" (type_identifier) "elf_section_header_t" (pointer_declarator) "*entry" (*) "*" (identifier) "entry" (,) "," (parameter_declaration) "elf_header_t *elf" (type_identifier) "elf_header_t" (pointer_declarator) "*elf" (*) "*" (identifier) "elf" (,) "," (parameter_declaration) "as_t *as" (type_identifier) "as_t" (pointer_declarator) "*as" (*) "*" (identifier) "as" ()) ")" (compound_statement) "{\n switch (entry->sh_type) {\n case SHT_PROGBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tdata */\n }\n break;\n case SHT_NOBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tbss */\n }\n break;\n default:\n break;\n }\n \n return EE_OK;\n}" ({) "{" (switch_statement) "switch (entry->sh_type) {\n case SHT_PROGBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tdata */\n }\n break;\n case SHT_NOBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tbss */\n }\n break;\n default:\n break;\n }" (switch) "switch" (parenthesized_expression) "(entry->sh_type)" (() "(" (field_expression) "entry->sh_type" (identifier) "entry" (->) "->" (field_identifier) "sh_type" ()) ")" (compound_statement) "{\n case SHT_PROGBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tdata */\n }\n break;\n case SHT_NOBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tbss */\n }\n break;\n default:\n break;\n }" ({) "{" (case_statement) "case SHT_PROGBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tdata */\n }\n break;" (case) "case" (identifier) "SHT_PROGBITS" (:) ":" (if_statement) "if (entry->sh_flags & SHF_TLS) {\n /* .tdata */\n }" (if) "if" (parenthesized_expression) "(entry->sh_flags & SHF_TLS)" (() "(" (binary_expression) "entry->sh_flags & SHF_TLS" (field_expression) "entry->sh_flags" (identifier) "entry" (->) "->" (field_identifier) "sh_flags" (&) "&" (identifier) "SHF_TLS" ()) ")" (compound_statement) "{\n /* .tdata */\n }" ({) "{" (comment) "/* .tdata */" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case SHT_NOBITS:\n if (entry->sh_flags & SHF_TLS) {\n /* .tbss */\n }\n break;" (case) "case" (identifier) "SHT_NOBITS" (:) ":" (if_statement) "if (entry->sh_flags & SHF_TLS) {\n /* .tbss */\n }" (if) "if" (parenthesized_expression) "(entry->sh_flags & SHF_TLS)" (() "(" (binary_expression) "entry->sh_flags & SHF_TLS" (field_expression) "entry->sh_flags" (identifier) "entry" (->) "->" (field_identifier) "sh_flags" (&) "&" (identifier) "SHF_TLS" ()) ")" (compound_statement) "{\n /* .tbss */\n }" ({) "{" (comment) "/* .tbss */" (}) "}" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "default:\n break;" (default) "default" (:) ":" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (return_statement) "return EE_OK;" (return) "return" (identifier) "EE_OK" (;) ";" (}) "}" (comment) "/** @}\n */"
1,187
0
{"language": "c", "success": true, "metadata": {"lines": 260, "avg_line_length": 26.22, "nodes": 743, "errors": 0, "source_hash": "ccf5829a7b0bc73988bb5a0f14460ba0845a8c20a06b3f8a90cee821c6521fca", "categorized_nodes": 554}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <lib/elf.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<lib/elf.h>", "parent": 0, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include <debug.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<debug.h>", "parent": 3, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <typedefs.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<typedefs.h>", "parent": 6, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include <mm/as.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<mm/as.h>", "parent": 9, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <mm/frame.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<mm/frame.h>", "parent": 12, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 21}}, {"id": 15, "type": "preproc_include", "text": "#include <mm/slab.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<mm/slab.h>", "parent": 15, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 20}}, {"id": 18, "type": "preproc_include", "text": "#include <align.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<align.h>", "parent": 18, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 18}}, {"id": 21, "type": "preproc_include", "text": "#include <memstr.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<memstr.h>", "parent": 21, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 19}}, {"id": 24, "type": "preproc_include", "text": "#include <macros.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<macros.h>", "parent": 24, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 19}}, {"id": 27, "type": "preproc_include", "text": "#include <arch.h>\n", "parent": null, "children": [28, 29], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<arch.h>", "parent": 27, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 17}}, {"id": 30, "type": "preproc_include", "text": "#include <lib/elf_load.h>\n", "parent": null, "children": [31, 32], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<lib/elf_load.h>", "parent": 30, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 25}}, {"id": 33, "type": "declaration", "text": "static const char *error_codes[] = {\n\t\"no error\",\n\t\"invalid image\",\n\t\"address space error\",\n\t\"incompatible image\",\n\t\"unsupported image type\",\n\t\"irrecoverable error\"\n};", "parent": null, "children": [34, 35], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 58, "column": 2}}, {"id": 34, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 17}}, {"id": 35, "type": "init_declarator", "text": "*error_codes[] = {\n\t\"no error\",\n\t\"invalid image\",\n\t\"address space error\",\n\t\"incompatible image\",\n\t\"unsupported image type\",\n\t\"irrecoverable error\"\n}", "parent": 33, "children": [36, 40, 41], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 58, "column": 1}}, {"id": 36, "type": "pointer_declarator", "text": "*error_codes[]", "parent": 35, "children": [37, 38], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 32}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 19}}, {"id": 38, "type": "array_declarator", "text": "error_codes[]", "parent": 36, "children": [39], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 32}}, {"id": 39, "type": "identifier", "text": "error_codes", "parent": 38, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 30}}, {"id": 40, "type": "=", "text": "=", "parent": 35, "children": [], "start_point": {"row": 51, "column": 33}, "end_point": {"row": 51, "column": 34}}, {"id": 41, "type": "initializer_list", "text": "{\n\t\"no error\",\n\t\"invalid image\",\n\t\"address space error\",\n\t\"incompatible image\",\n\t\"unsupported image type\",\n\t\"irrecoverable error\"\n}", "parent": 35, "children": [42, 43, 44, 45, 46, 47], "start_point": {"row": 51, "column": 35}, "end_point": {"row": 58, "column": 1}}, {"id": 42, "type": "string_literal", "text": "\"no error\"", "parent": 41, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 11}}, {"id": 43, "type": "string_literal", "text": "\"invalid image\"", "parent": 41, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 16}}, {"id": 44, "type": "string_literal", "text": "\"address space error\"", "parent": 41, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 22}}, {"id": 45, "type": "string_literal", "text": "\"incompatible image\"", "parent": 41, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 21}}, {"id": 46, "type": "string_literal", "text": "\"unsupported image type\"", "parent": 41, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 25}}, {"id": 47, "type": "string_literal", "text": "\"irrecoverable error\"", "parent": 41, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 22}}, {"id": 48, "type": "declaration", "text": "static int segment_header(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int);", "parent": null, "children": [49, 50], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 18}}, {"id": 49, "type": "primitive_type", "text": "int", "parent": 48, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 10}}, {"id": 50, "type": "function_declarator", "text": "segment_header(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int)", "parent": 48, "children": [51, 52], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 61, "column": 17}}, {"id": 51, "type": "identifier", "text": "segment_header", "parent": 50, "children": [], "start_point": {"row": 60, "column": 11}, "end_point": {"row": 60, "column": 25}}, {"id": 52, "type": "parameter_list", "text": "(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int)", "parent": 50, "children": [53, 57, 61, 65], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 61, "column": 17}}, {"id": 53, "type": "parameter_declaration", "text": "elf_segment_header_t *", "parent": 52, "children": [54, 55], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 48}}, {"id": 54, "type": "type_identifier", "text": "elf_segment_header_t", "parent": 53, "children": [], "start_point": {"row": 60, "column": 26}, "end_point": {"row": 60, "column": 46}}, {"id": 55, "type": "abstract_pointer_declarator", "text": "*", "parent": 53, "children": [56], "start_point": {"row": 60, "column": 47}, "end_point": {"row": 60, "column": 48}}, {"id": 56, "type": "*", "text": "*", "parent": 55, "children": [], "start_point": {"row": 60, "column": 47}, "end_point": {"row": 60, "column": 48}}, {"id": 57, "type": "parameter_declaration", "text": "elf_header_t *", "parent": 52, "children": [58, 59], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 64}}, {"id": 58, "type": "type_identifier", "text": "elf_header_t", "parent": 57, "children": [], "start_point": {"row": 60, "column": 50}, "end_point": {"row": 60, "column": 62}}, {"id": 59, "type": "abstract_pointer_declarator", "text": "*", "parent": 57, "children": [60], "start_point": {"row": 60, "column": 63}, "end_point": {"row": 60, "column": 64}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 60, "column": 63}, "end_point": {"row": 60, "column": 64}}, {"id": 61, "type": "parameter_declaration", "text": "as_t *", "parent": 52, "children": [62, 63], "start_point": {"row": 60, "column": 66}, "end_point": {"row": 60, "column": 72}}, {"id": 62, "type": "type_identifier", "text": "as_t", "parent": 61, "children": [], "start_point": {"row": 60, "column": 66}, "end_point": {"row": 60, "column": 70}}, {"id": 63, "type": "abstract_pointer_declarator", "text": "*", "parent": 61, "children": [64], "start_point": {"row": 60, "column": 71}, "end_point": {"row": 60, "column": 72}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 60, "column": 71}, "end_point": {"row": 60, "column": 72}}, {"id": 65, "type": "parameter_declaration", "text": "unsigned int", "parent": 52, "children": [66], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 16}}, {"id": 66, "type": "sized_type_specifier", "text": "unsigned int", "parent": 65, "children": [67, 68], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 16}}, {"id": 67, "type": "unsigned", "text": "unsigned", "parent": 66, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 12}}, {"id": 68, "type": "primitive_type", "text": "int", "parent": 66, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 16}}, {"id": 69, "type": "declaration", "text": "static int section_header(elf_section_header_t *, elf_header_t *, as_t *);", "parent": null, "children": [70, 71], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 74}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 10}}, {"id": 71, "type": "function_declarator", "text": "section_header(elf_section_header_t *, elf_header_t *, as_t *)", "parent": 69, "children": [72, 73], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 73}}, {"id": 72, "type": "identifier", "text": "section_header", "parent": 71, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 25}}, {"id": 73, "type": "parameter_list", "text": "(elf_section_header_t *, elf_header_t *, as_t *)", "parent": 71, "children": [74, 78, 82], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 73}}, {"id": 74, "type": "parameter_declaration", "text": "elf_section_header_t *", "parent": 73, "children": [75, 76], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 48}}, {"id": 75, "type": "type_identifier", "text": "elf_section_header_t", "parent": 74, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 46}}, {"id": 76, "type": "abstract_pointer_declarator", "text": "*", "parent": 74, "children": [77], "start_point": {"row": 62, "column": 47}, "end_point": {"row": 62, "column": 48}}, {"id": 77, "type": "*", "text": "*", "parent": 76, "children": [], "start_point": {"row": 62, "column": 47}, "end_point": {"row": 62, "column": 48}}, {"id": 78, "type": "parameter_declaration", "text": "elf_header_t *", "parent": 73, "children": [79, 80], "start_point": {"row": 62, "column": 50}, "end_point": {"row": 62, "column": 64}}, {"id": 79, "type": "type_identifier", "text": "elf_header_t", "parent": 78, "children": [], "start_point": {"row": 62, "column": 50}, "end_point": {"row": 62, "column": 62}}, {"id": 80, "type": "abstract_pointer_declarator", "text": "*", "parent": 78, "children": [81], "start_point": {"row": 62, "column": 63}, "end_point": {"row": 62, "column": 64}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 62, "column": 63}, "end_point": {"row": 62, "column": 64}}, {"id": 82, "type": "parameter_declaration", "text": "as_t *", "parent": 73, "children": [83, 84], "start_point": {"row": 62, "column": 66}, "end_point": {"row": 62, "column": 72}}, {"id": 83, "type": "type_identifier", "text": "as_t", "parent": 82, "children": [], "start_point": {"row": 62, "column": 66}, "end_point": {"row": 62, "column": 70}}, {"id": 84, "type": "abstract_pointer_declarator", "text": "*", "parent": 82, "children": [85], "start_point": {"row": 62, "column": 71}, "end_point": {"row": 62, "column": 72}}, {"id": 85, "type": "*", "text": "*", "parent": 84, "children": [], "start_point": {"row": 62, "column": 71}, "end_point": {"row": 62, "column": 72}}, {"id": 86, "type": "declaration", "text": "static int load_segment(elf_segment_header_t *, elf_header_t *, as_t *);", "parent": null, "children": [87, 88], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 72}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 10}}, {"id": 88, "type": "function_declarator", "text": "load_segment(elf_segment_header_t *, elf_header_t *, as_t *)", "parent": 86, "children": [89, 90], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 71}}, {"id": 89, "type": "identifier", "text": "load_segment", "parent": 88, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 23}}, {"id": 90, "type": "parameter_list", "text": "(elf_segment_header_t *, elf_header_t *, as_t *)", "parent": 88, "children": [91, 95, 99], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 71}}, {"id": 91, "type": "parameter_declaration", "text": "elf_segment_header_t *", "parent": 90, "children": [92, 93], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 46}}, {"id": 92, "type": "type_identifier", "text": "elf_segment_header_t", "parent": 91, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 44}}, {"id": 93, "type": "abstract_pointer_declarator", "text": "*", "parent": 91, "children": [94], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 46}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 63, "column": 45}, "end_point": {"row": 63, "column": 46}}, {"id": 95, "type": "parameter_declaration", "text": "elf_header_t *", "parent": 90, "children": [96, 97], "start_point": {"row": 63, "column": 48}, "end_point": {"row": 63, "column": 62}}, {"id": 96, "type": "type_identifier", "text": "elf_header_t", "parent": 95, "children": [], "start_point": {"row": 63, "column": 48}, "end_point": {"row": 63, "column": 60}}, {"id": 97, "type": "abstract_pointer_declarator", "text": "*", "parent": 95, "children": [98], "start_point": {"row": 63, "column": 61}, "end_point": {"row": 63, "column": 62}}, {"id": 98, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 63, "column": 61}, "end_point": {"row": 63, "column": 62}}, {"id": 99, "type": "parameter_declaration", "text": "as_t *", "parent": 90, "children": [100, 101], "start_point": {"row": 63, "column": 64}, "end_point": {"row": 63, "column": 70}}, {"id": 100, "type": "type_identifier", "text": "as_t", "parent": 99, "children": [], "start_point": {"row": 63, "column": 64}, "end_point": {"row": 63, "column": 68}}, {"id": 101, "type": "abstract_pointer_declarator", "text": "*", "parent": 99, "children": [102], "start_point": {"row": 63, "column": 69}, "end_point": {"row": 63, "column": 70}}, {"id": 102, "type": "*", "text": "*", "parent": 101, "children": [], "start_point": {"row": 63, "column": 69}, "end_point": {"row": 63, "column": 70}}, {"id": 103, "type": "function_definition", "text": "unsigned int elf_load(elf_header_t *header, as_t *as, unsigned int flags)\n{\n\t/* Identify ELF */\n\tif ((header->e_ident[EI_MAG0] != ELFMAG0) ||\n\t (header->e_ident[EI_MAG1] != ELFMAG1) ||\n\t (header->e_ident[EI_MAG2] != ELFMAG2) ||\n\t (header->e_ident[EI_MAG3] != ELFMAG3))\n\t\treturn EE_INVALID;\n\t\n\t/* Identify ELF compatibility */\n\tif ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n\t (header->e_machine != ELF_MACHINE) ||\n\t (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n\t (header->e_version != EV_CURRENT) ||\n\t (header->e_ident[EI_CLASS] != ELF_CLASS))\n\t\treturn EE_INCOMPATIBLE;\n\t\n\tif (header->e_phentsize != sizeof(elf_segment_header_t))\n\t\treturn EE_INCOMPATIBLE;\n\t\n\tif (header->e_shentsize != sizeof(elf_section_header_t))\n\t\treturn EE_INCOMPATIBLE;\n\t\n\t/* Check if the object type is supported. */\n\tif (header->e_type != ET_EXEC)\n\t\treturn EE_UNSUPPORTED;\n\t\n\t/* Check if the ELF image starts on a page boundary */\n\tif (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)\n\t\treturn EE_UNSUPPORTED;\n\t\n\t/* Walk through all segment headers and process them. */\n\telf_half i;\n\tfor (i = 0; i < header->e_phnum; i++) {\n\t\telf_segment_header_t *seghdr =\n\t\t &((elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff))[i];\n\t\t\n\t\tint rc = segment_header(seghdr, header, as, flags);\n\t\tif (rc != EE_OK)\n\t\t\treturn rc;\n\t}\n\t\n\t/* Inspect all section headers and process them. */\n\tfor (i = 0; i < header->e_shnum; i++) {\n\t\telf_section_header_t *sechdr =\n\t\t &((elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff))[i];\n\t\t\n\t\tint rc = section_header(sechdr, header, as);\n\t\tif (rc != EE_OK)\n\t\t\treturn rc;\n\t}\n\t\n\treturn EE_OK;\n}", "parent": null, "children": [104, 107], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 129, "column": 1}}, {"id": 104, "type": "sized_type_specifier", "text": "unsigned int", "parent": 103, "children": [105, 106], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 12}}, {"id": 105, "type": "unsigned", "text": "unsigned", "parent": 104, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 8}}, {"id": 106, "type": "primitive_type", "text": "int", "parent": 104, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 12}}, {"id": 107, "type": "function_declarator", "text": "elf_load(elf_header_t *header, as_t *as, unsigned int flags)", "parent": 103, "children": [108, 109], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 73}}, {"id": 108, "type": "identifier", "text": "elf_load", "parent": 107, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 21}}, {"id": 109, "type": "parameter_list", "text": "(elf_header_t *header, as_t *as, unsigned int flags)", "parent": 107, "children": [110, 115, 119], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 73}}, {"id": 110, "type": "parameter_declaration", "text": "elf_header_t *header", "parent": 109, "children": [111, 112], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 42}}, {"id": 111, "type": "type_identifier", "text": "elf_header_t", "parent": 110, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 34}}, {"id": 112, "type": "pointer_declarator", "text": "*header", "parent": 110, "children": [113, 114], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 42}}, {"id": 113, "type": "*", "text": "*", "parent": 112, "children": [], "start_point": {"row": 74, "column": 35}, "end_point": {"row": 74, "column": 36}}, {"id": 114, "type": "identifier", "text": "header", "parent": 112, "children": [], "start_point": {"row": 74, "column": 36}, "end_point": {"row": 74, "column": 42}}, {"id": 115, "type": "parameter_declaration", "text": "as_t *as", "parent": 109, "children": [116, 117], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 52}}, {"id": 116, "type": "type_identifier", "text": "as_t", "parent": 115, "children": [], "start_point": {"row": 74, "column": 44}, "end_point": {"row": 74, "column": 48}}, {"id": 117, "type": "pointer_declarator", "text": "*as", "parent": 115, "children": [118], "start_point": {"row": 74, "column": 49}, "end_point": {"row": 74, "column": 52}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 74, "column": 49}, "end_point": {"row": 74, "column": 50}}, {"id": 119, "type": "parameter_declaration", "text": "unsigned int flags", "parent": 109, "children": [120, 123], "start_point": {"row": 74, "column": 54}, "end_point": {"row": 74, "column": 72}}, {"id": 120, "type": "sized_type_specifier", "text": "unsigned int", "parent": 119, "children": [121, 122], "start_point": {"row": 74, "column": 54}, "end_point": {"row": 74, "column": 66}}, {"id": 121, "type": "unsigned", "text": "unsigned", "parent": 120, "children": [], "start_point": {"row": 74, "column": 54}, "end_point": {"row": 74, "column": 62}}, {"id": 122, "type": "primitive_type", "text": "int", "parent": 120, "children": [], "start_point": {"row": 74, "column": 63}, "end_point": {"row": 74, "column": 66}}, {"id": 123, "type": "identifier", "text": "flags", "parent": 119, "children": [], "start_point": {"row": 74, "column": 67}, "end_point": {"row": 74, "column": 72}}, {"id": 124, "type": "if_statement", "text": "if ((header->e_ident[EI_MAG0] != ELFMAG0) ||\n\t (header->e_ident[EI_MAG1] != ELFMAG1) ||\n\t (header->e_ident[EI_MAG2] != ELFMAG2) ||\n\t (header->e_ident[EI_MAG3] != ELFMAG3))\n\t\treturn EE_INVALID;", "parent": 103, "children": [125, 168], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 81, "column": 20}}, {"id": 125, "type": "parenthesized_expression", "text": "((header->e_ident[EI_MAG0] != ELFMAG0) ||\n\t (header->e_ident[EI_MAG1] != ELFMAG1) ||\n\t (header->e_ident[EI_MAG2] != ELFMAG2) ||\n\t (header->e_ident[EI_MAG3] != ELFMAG3))", "parent": 124, "children": [126], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 80, "column": 43}}, {"id": 126, "type": "binary_expression", "text": "(header->e_ident[EI_MAG0] != ELFMAG0) ||\n\t (header->e_ident[EI_MAG1] != ELFMAG1) ||\n\t (header->e_ident[EI_MAG2] != ELFMAG2) ||\n\t (header->e_ident[EI_MAG3] != ELFMAG3)", "parent": 125, "children": [127, 158, 159], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 80, "column": 42}}, {"id": 127, "type": "binary_expression", "text": "(header->e_ident[EI_MAG0] != ELFMAG0) ||\n\t (header->e_ident[EI_MAG1] != ELFMAG1) ||\n\t (header->e_ident[EI_MAG2] != ELFMAG2)", "parent": 126, "children": [128, 148, 149], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 79, "column": 42}}, {"id": 128, "type": "binary_expression", "text": "(header->e_ident[EI_MAG0] != ELFMAG0) ||\n\t (header->e_ident[EI_MAG1] != ELFMAG1)", "parent": 127, "children": [129, 138, 139], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 78, "column": 42}}, {"id": 129, "type": "parenthesized_expression", "text": "(header->e_ident[EI_MAG0] != ELFMAG0)", "parent": 128, "children": [130], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 42}}, {"id": 130, "type": "binary_expression", "text": "header->e_ident[EI_MAG0] != ELFMAG0", "parent": 129, "children": [131, 136, 137], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 41}}, {"id": 131, "type": "subscript_expression", "text": "header->e_ident[EI_MAG0]", "parent": 130, "children": [132, 135], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 30}}, {"id": 132, "type": "field_expression", "text": "header->e_ident", "parent": 131, "children": [133, 134], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 21}}, {"id": 133, "type": "identifier", "text": "header", "parent": 132, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 12}}, {"id": 134, "type": "field_identifier", "text": "e_ident", "parent": 132, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 21}}, {"id": 135, "type": "identifier", "text": "EI_MAG0", "parent": 131, "children": [], "start_point": {"row": 77, "column": 22}, "end_point": {"row": 77, "column": 29}}, {"id": 136, "type": "!=", "text": "!=", "parent": 130, "children": [], "start_point": {"row": 77, "column": 31}, "end_point": {"row": 77, "column": 33}}, {"id": 137, "type": "identifier", "text": "ELFMAG0", "parent": 130, "children": [], "start_point": {"row": 77, "column": 34}, "end_point": {"row": 77, "column": 41}}, {"id": 138, "type": "||", "text": "||", "parent": 128, "children": [], "start_point": {"row": 77, "column": 43}, "end_point": {"row": 77, "column": 45}}, {"id": 139, "type": "parenthesized_expression", "text": "(header->e_ident[EI_MAG1] != ELFMAG1)", "parent": 128, "children": [140], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 42}}, {"id": 140, "type": "binary_expression", "text": "header->e_ident[EI_MAG1] != ELFMAG1", "parent": 139, "children": [141, 146, 147], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 41}}, {"id": 141, "type": "subscript_expression", "text": "header->e_ident[EI_MAG1]", "parent": 140, "children": [142, 145], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 30}}, {"id": 142, "type": "field_expression", "text": "header->e_ident", "parent": 141, "children": [143, 144], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 21}}, {"id": 143, "type": "identifier", "text": "header", "parent": 142, "children": [], "start_point": {"row": 78, "column": 6}, "end_point": {"row": 78, "column": 12}}, {"id": 144, "type": "field_identifier", "text": "e_ident", "parent": 142, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 21}}, {"id": 145, "type": "identifier", "text": "EI_MAG1", "parent": 141, "children": [], "start_point": {"row": 78, "column": 22}, "end_point": {"row": 78, "column": 29}}, {"id": 146, "type": "!=", "text": "!=", "parent": 140, "children": [], "start_point": {"row": 78, "column": 31}, "end_point": {"row": 78, "column": 33}}, {"id": 147, "type": "identifier", "text": "ELFMAG1", "parent": 140, "children": [], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 78, "column": 41}}, {"id": 148, "type": "||", "text": "||", "parent": 127, "children": [], "start_point": {"row": 78, "column": 43}, "end_point": {"row": 78, "column": 45}}, {"id": 149, "type": "parenthesized_expression", "text": "(header->e_ident[EI_MAG2] != ELFMAG2)", "parent": 127, "children": [150], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 42}}, {"id": 150, "type": "binary_expression", "text": "header->e_ident[EI_MAG2] != ELFMAG2", "parent": 149, "children": [151, 156, 157], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 41}}, {"id": 151, "type": "subscript_expression", "text": "header->e_ident[EI_MAG2]", "parent": 150, "children": [152, 155], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 30}}, {"id": 152, "type": "field_expression", "text": "header->e_ident", "parent": 151, "children": [153, 154], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 21}}, {"id": 153, "type": "identifier", "text": "header", "parent": 152, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 12}}, {"id": 154, "type": "field_identifier", "text": "e_ident", "parent": 152, "children": [], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 21}}, {"id": 155, "type": "identifier", "text": "EI_MAG2", "parent": 151, "children": [], "start_point": {"row": 79, "column": 22}, "end_point": {"row": 79, "column": 29}}, {"id": 156, "type": "!=", "text": "!=", "parent": 150, "children": [], "start_point": {"row": 79, "column": 31}, "end_point": {"row": 79, "column": 33}}, {"id": 157, "type": "identifier", "text": "ELFMAG2", "parent": 150, "children": [], "start_point": {"row": 79, "column": 34}, "end_point": {"row": 79, "column": 41}}, {"id": 158, "type": "||", "text": "||", "parent": 126, "children": [], "start_point": {"row": 79, "column": 43}, "end_point": {"row": 79, "column": 45}}, {"id": 159, "type": "parenthesized_expression", "text": "(header->e_ident[EI_MAG3] != ELFMAG3)", "parent": 126, "children": [160], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 42}}, {"id": 160, "type": "binary_expression", "text": "header->e_ident[EI_MAG3] != ELFMAG3", "parent": 159, "children": [161, 166, 167], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 41}}, {"id": 161, "type": "subscript_expression", "text": "header->e_ident[EI_MAG3]", "parent": 160, "children": [162, 165], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 30}}, {"id": 162, "type": "field_expression", "text": "header->e_ident", "parent": 161, "children": [163, 164], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 21}}, {"id": 163, "type": "identifier", "text": "header", "parent": 162, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 12}}, {"id": 164, "type": "field_identifier", "text": "e_ident", "parent": 162, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 21}}, {"id": 165, "type": "identifier", "text": "EI_MAG3", "parent": 161, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 29}}, {"id": 166, "type": "!=", "text": "!=", "parent": 160, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 33}}, {"id": 167, "type": "identifier", "text": "ELFMAG3", "parent": 160, "children": [], "start_point": {"row": 80, "column": 34}, "end_point": {"row": 80, "column": 41}}, {"id": 168, "type": "return_statement", "text": "return EE_INVALID;", "parent": 124, "children": [169], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 20}}, {"id": 169, "type": "identifier", "text": "EE_INVALID", "parent": 168, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 19}}, {"id": 170, "type": "if_statement", "text": "if ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n\t (header->e_machine != ELF_MACHINE) ||\n\t (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n\t (header->e_version != EV_CURRENT) ||\n\t (header->e_ident[EI_CLASS] != ELF_CLASS))\n\t\treturn EE_INCOMPATIBLE;", "parent": 103, "children": [171, 221], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 89, "column": 25}}, {"id": 171, "type": "parenthesized_expression", "text": "((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n\t (header->e_machine != ELF_MACHINE) ||\n\t (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n\t (header->e_version != EV_CURRENT) ||\n\t (header->e_ident[EI_CLASS] != ELF_CLASS))", "parent": 170, "children": [172], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 88, "column": 46}}, {"id": 172, "type": "binary_expression", "text": "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n\t (header->e_machine != ELF_MACHINE) ||\n\t (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n\t (header->e_version != EV_CURRENT) ||\n\t (header->e_ident[EI_CLASS] != ELF_CLASS)", "parent": 171, "children": [173, 211, 212], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 88, "column": 45}}, {"id": 173, "type": "binary_expression", "text": "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n\t (header->e_machine != ELF_MACHINE) ||\n\t (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n\t (header->e_version != EV_CURRENT)", "parent": 172, "children": [174, 203, 204], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 87, "column": 38}}, {"id": 174, "type": "binary_expression", "text": "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n\t (header->e_machine != ELF_MACHINE) ||\n\t (header->e_ident[EI_VERSION] != EV_CURRENT)", "parent": 173, "children": [175, 193, 194], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 86, "column": 48}}, {"id": 175, "type": "binary_expression", "text": "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n\t (header->e_machine != ELF_MACHINE)", "parent": 174, "children": [176, 185, 186], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 85, "column": 39}}, {"id": 176, "type": "parenthesized_expression", "text": "(header->e_ident[EI_DATA] != ELF_DATA_ENCODING)", "parent": 175, "children": [177], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 52}}, {"id": 177, "type": "binary_expression", "text": "header->e_ident[EI_DATA] != ELF_DATA_ENCODING", "parent": 176, "children": [178, 183, 184], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 51}}, {"id": 178, "type": "subscript_expression", "text": "header->e_ident[EI_DATA]", "parent": 177, "children": [179, 182], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 30}}, {"id": 179, "type": "field_expression", "text": "header->e_ident", "parent": 178, "children": [180, 181], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 21}}, {"id": 180, "type": "identifier", "text": "header", "parent": 179, "children": [], "start_point": {"row": 84, "column": 6}, "end_point": {"row": 84, "column": 12}}, {"id": 181, "type": "field_identifier", "text": "e_ident", "parent": 179, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 21}}, {"id": 182, "type": "identifier", "text": "EI_DATA", "parent": 178, "children": [], "start_point": {"row": 84, "column": 22}, "end_point": {"row": 84, "column": 29}}, {"id": 183, "type": "!=", "text": "!=", "parent": 177, "children": [], "start_point": {"row": 84, "column": 31}, "end_point": {"row": 84, "column": 33}}, {"id": 184, "type": "identifier", "text": "ELF_DATA_ENCODING", "parent": 177, "children": [], "start_point": {"row": 84, "column": 34}, "end_point": {"row": 84, "column": 51}}, {"id": 185, "type": "||", "text": "||", "parent": 175, "children": [], "start_point": {"row": 84, "column": 53}, "end_point": {"row": 84, "column": 55}}, {"id": 186, "type": "parenthesized_expression", "text": "(header->e_machine != ELF_MACHINE)", "parent": 175, "children": [187], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 39}}, {"id": 187, "type": "binary_expression", "text": "header->e_machine != ELF_MACHINE", "parent": 186, "children": [188, 191, 192], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 38}}, {"id": 188, "type": "field_expression", "text": "header->e_machine", "parent": 187, "children": [189, 190], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 23}}, {"id": 189, "type": "identifier", "text": "header", "parent": 188, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 12}}, {"id": 190, "type": "field_identifier", "text": "e_machine", "parent": 188, "children": [], "start_point": {"row": 85, "column": 14}, "end_point": {"row": 85, "column": 23}}, {"id": 191, "type": "!=", "text": "!=", "parent": 187, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 26}}, {"id": 192, "type": "identifier", "text": "ELF_MACHINE", "parent": 187, "children": [], "start_point": {"row": 85, "column": 27}, "end_point": {"row": 85, "column": 38}}, {"id": 193, "type": "||", "text": "||", "parent": 174, "children": [], "start_point": {"row": 85, "column": 40}, "end_point": {"row": 85, "column": 42}}, {"id": 194, "type": "parenthesized_expression", "text": "(header->e_ident[EI_VERSION] != EV_CURRENT)", "parent": 174, "children": [195], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 48}}, {"id": 195, "type": "binary_expression", "text": "header->e_ident[EI_VERSION] != EV_CURRENT", "parent": 194, "children": [196, 201, 202], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 47}}, {"id": 196, "type": "subscript_expression", "text": "header->e_ident[EI_VERSION]", "parent": 195, "children": [197, 200], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 33}}, {"id": 197, "type": "field_expression", "text": "header->e_ident", "parent": 196, "children": [198, 199], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 21}}, {"id": 198, "type": "identifier", "text": "header", "parent": 197, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 12}}, {"id": 199, "type": "field_identifier", "text": "e_ident", "parent": 197, "children": [], "start_point": {"row": 86, "column": 14}, "end_point": {"row": 86, "column": 21}}, {"id": 200, "type": "identifier", "text": "EI_VERSION", "parent": 196, "children": [], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 32}}, {"id": 201, "type": "!=", "text": "!=", "parent": 195, "children": [], "start_point": {"row": 86, "column": 34}, "end_point": {"row": 86, "column": 36}}, {"id": 202, "type": "identifier", "text": "EV_CURRENT", "parent": 195, "children": [], "start_point": {"row": 86, "column": 37}, "end_point": {"row": 86, "column": 47}}, {"id": 203, "type": "||", "text": "||", "parent": 173, "children": [], "start_point": {"row": 86, "column": 49}, "end_point": {"row": 86, "column": 51}}, {"id": 204, "type": "parenthesized_expression", "text": "(header->e_version != EV_CURRENT)", "parent": 173, "children": [205], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 38}}, {"id": 205, "type": "binary_expression", "text": "header->e_version != EV_CURRENT", "parent": 204, "children": [206, 209, 210], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 37}}, {"id": 206, "type": "field_expression", "text": "header->e_version", "parent": 205, "children": [207, 208], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 23}}, {"id": 207, "type": "identifier", "text": "header", "parent": 206, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 12}}, {"id": 208, "type": "field_identifier", "text": "e_version", "parent": 206, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 23}}, {"id": 209, "type": "!=", "text": "!=", "parent": 205, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 26}}, {"id": 210, "type": "identifier", "text": "EV_CURRENT", "parent": 205, "children": [], "start_point": {"row": 87, "column": 27}, "end_point": {"row": 87, "column": 37}}, {"id": 211, "type": "||", "text": "||", "parent": 172, "children": [], "start_point": {"row": 87, "column": 39}, "end_point": {"row": 87, "column": 41}}, {"id": 212, "type": "parenthesized_expression", "text": "(header->e_ident[EI_CLASS] != ELF_CLASS)", "parent": 172, "children": [213], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 45}}, {"id": 213, "type": "binary_expression", "text": "header->e_ident[EI_CLASS] != ELF_CLASS", "parent": 212, "children": [214, 219, 220], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 44}}, {"id": 214, "type": "subscript_expression", "text": "header->e_ident[EI_CLASS]", "parent": 213, "children": [215, 218], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 31}}, {"id": 215, "type": "field_expression", "text": "header->e_ident", "parent": 214, "children": [216, 217], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 21}}, {"id": 216, "type": "identifier", "text": "header", "parent": 215, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 12}}, {"id": 217, "type": "field_identifier", "text": "e_ident", "parent": 215, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 21}}, {"id": 218, "type": "identifier", "text": "EI_CLASS", "parent": 214, "children": [], "start_point": {"row": 88, "column": 22}, "end_point": {"row": 88, "column": 30}}, {"id": 219, "type": "!=", "text": "!=", "parent": 213, "children": [], "start_point": {"row": 88, "column": 32}, "end_point": {"row": 88, "column": 34}}, {"id": 220, "type": "identifier", "text": "ELF_CLASS", "parent": 213, "children": [], "start_point": {"row": 88, "column": 35}, "end_point": {"row": 88, "column": 44}}, {"id": 221, "type": "return_statement", "text": "return EE_INCOMPATIBLE;", "parent": 170, "children": [222], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 25}}, {"id": 222, "type": "identifier", "text": "EE_INCOMPATIBLE", "parent": 221, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 24}}, {"id": 223, "type": "if_statement", "text": "if (header->e_phentsize != sizeof(elf_segment_header_t))\n\t\treturn EE_INCOMPATIBLE;", "parent": 103, "children": [224, 233], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 92, "column": 25}}, {"id": 224, "type": "parenthesized_expression", "text": "(header->e_phentsize != sizeof(elf_segment_header_t))", "parent": 223, "children": [225], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 57}}, {"id": 225, "type": "binary_expression", "text": "header->e_phentsize != sizeof(elf_segment_header_t)", "parent": 224, "children": [226, 229, 230], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 56}}, {"id": 226, "type": "field_expression", "text": "header->e_phentsize", "parent": 225, "children": [227, 228], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 24}}, {"id": 227, "type": "identifier", "text": "header", "parent": 226, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 11}}, {"id": 228, "type": "field_identifier", "text": "e_phentsize", "parent": 226, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 24}}, {"id": 229, "type": "!=", "text": "!=", "parent": 225, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 27}}, {"id": 230, "type": "sizeof_expression", "text": "sizeof(elf_segment_header_t)", "parent": 225, "children": [231], "start_point": {"row": 91, "column": 28}, "end_point": {"row": 91, "column": 56}}, {"id": 231, "type": "parenthesized_expression", "text": "(elf_segment_header_t)", "parent": 230, "children": [232], "start_point": {"row": 91, "column": 34}, "end_point": {"row": 91, "column": 56}}, {"id": 232, "type": "identifier", "text": "elf_segment_header_t", "parent": 231, "children": [], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 55}}, {"id": 233, "type": "return_statement", "text": "return EE_INCOMPATIBLE;", "parent": 223, "children": [234], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 25}}, {"id": 234, "type": "identifier", "text": "EE_INCOMPATIBLE", "parent": 233, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 24}}, {"id": 235, "type": "if_statement", "text": "if (header->e_shentsize != sizeof(elf_section_header_t))\n\t\treturn EE_INCOMPATIBLE;", "parent": 103, "children": [236, 245], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 95, "column": 25}}, {"id": 236, "type": "parenthesized_expression", "text": "(header->e_shentsize != sizeof(elf_section_header_t))", "parent": 235, "children": [237], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 57}}, {"id": 237, "type": "binary_expression", "text": "header->e_shentsize != sizeof(elf_section_header_t)", "parent": 236, "children": [238, 241, 242], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 56}}, {"id": 238, "type": "field_expression", "text": "header->e_shentsize", "parent": 237, "children": [239, 240], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 24}}, {"id": 239, "type": "identifier", "text": "header", "parent": 238, "children": [], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 11}}, {"id": 240, "type": "field_identifier", "text": "e_shentsize", "parent": 238, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 24}}, {"id": 241, "type": "!=", "text": "!=", "parent": 237, "children": [], "start_point": {"row": 94, "column": 25}, "end_point": {"row": 94, "column": 27}}, {"id": 242, "type": "sizeof_expression", "text": "sizeof(elf_section_header_t)", "parent": 237, "children": [243], "start_point": {"row": 94, "column": 28}, "end_point": {"row": 94, "column": 56}}, {"id": 243, "type": "parenthesized_expression", "text": "(elf_section_header_t)", "parent": 242, "children": [244], "start_point": {"row": 94, "column": 34}, "end_point": {"row": 94, "column": 56}}, {"id": 244, "type": "identifier", "text": "elf_section_header_t", "parent": 243, "children": [], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 55}}, {"id": 245, "type": "return_statement", "text": "return EE_INCOMPATIBLE;", "parent": 235, "children": [246], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 25}}, {"id": 246, "type": "identifier", "text": "EE_INCOMPATIBLE", "parent": 245, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 24}}, {"id": 247, "type": "if_statement", "text": "if (header->e_type != ET_EXEC)\n\t\treturn EE_UNSUPPORTED;", "parent": 103, "children": [248, 255], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 99, "column": 24}}, {"id": 248, "type": "parenthesized_expression", "text": "(header->e_type != ET_EXEC)", "parent": 247, "children": [249], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 31}}, {"id": 249, "type": "binary_expression", "text": "header->e_type != ET_EXEC", "parent": 248, "children": [250, 253, 254], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 30}}, {"id": 250, "type": "field_expression", "text": "header->e_type", "parent": 249, "children": [251, 252], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 19}}, {"id": 251, "type": "identifier", "text": "header", "parent": 250, "children": [], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 11}}, {"id": 252, "type": "field_identifier", "text": "e_type", "parent": 250, "children": [], "start_point": {"row": 98, "column": 13}, "end_point": {"row": 98, "column": 19}}, {"id": 253, "type": "!=", "text": "!=", "parent": 249, "children": [], "start_point": {"row": 98, "column": 20}, "end_point": {"row": 98, "column": 22}}, {"id": 254, "type": "identifier", "text": "ET_EXEC", "parent": 249, "children": [], "start_point": {"row": 98, "column": 23}, "end_point": {"row": 98, "column": 30}}, {"id": 255, "type": "return_statement", "text": "return EE_UNSUPPORTED;", "parent": 247, "children": [256], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 24}}, {"id": 256, "type": "identifier", "text": "EE_UNSUPPORTED", "parent": 255, "children": [], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 23}}, {"id": 257, "type": "if_statement", "text": "if (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)\n\t\treturn EE_UNSUPPORTED;", "parent": 103, "children": [258, 273], "start_point": {"row": 102, "column": 1}, "end_point": {"row": 103, "column": 24}}, {"id": 258, "type": "parenthesized_expression", "text": "(ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)", "parent": 257, "children": [259], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 67}}, {"id": 259, "type": "binary_expression", "text": "ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header", "parent": 258, "children": [260, 268, 269], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 66}}, {"id": 260, "type": "call_expression", "text": "ALIGN_UP((uintptr_t) header, PAGE_SIZE)", "parent": 259, "children": [261, 262], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 44}}, {"id": 261, "type": "identifier", "text": "ALIGN_UP", "parent": 260, "children": [], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 13}}, {"id": 262, "type": "argument_list", "text": "((uintptr_t) header, PAGE_SIZE)", "parent": 260, "children": [263, 267], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 44}}, {"id": 263, "type": "cast_expression", "text": "(uintptr_t) header", "parent": 262, "children": [264, 266], "start_point": {"row": 102, "column": 14}, "end_point": {"row": 102, "column": 32}}, {"id": 264, "type": "type_descriptor", "text": "uintptr_t", "parent": 263, "children": [265], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 24}}, {"id": 265, "type": "primitive_type", "text": "uintptr_t", "parent": 264, "children": [], "start_point": {"row": 102, "column": 15}, "end_point": {"row": 102, "column": 24}}, {"id": 266, "type": "identifier", "text": "header", "parent": 263, "children": [], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 32}}, {"id": 267, "type": "identifier", "text": "PAGE_SIZE", "parent": 262, "children": [], "start_point": {"row": 102, "column": 34}, "end_point": {"row": 102, "column": 43}}, {"id": 268, "type": "!=", "text": "!=", "parent": 259, "children": [], "start_point": {"row": 102, "column": 45}, "end_point": {"row": 102, "column": 47}}, {"id": 269, "type": "cast_expression", "text": "(uintptr_t) header", "parent": 259, "children": [270, 272], "start_point": {"row": 102, "column": 48}, "end_point": {"row": 102, "column": 66}}, {"id": 270, "type": "type_descriptor", "text": "uintptr_t", "parent": 269, "children": [271], "start_point": {"row": 102, "column": 49}, "end_point": {"row": 102, "column": 58}}, {"id": 271, "type": "primitive_type", "text": "uintptr_t", "parent": 270, "children": [], "start_point": {"row": 102, "column": 49}, "end_point": {"row": 102, "column": 58}}, {"id": 272, "type": "identifier", "text": "header", "parent": 269, "children": [], "start_point": {"row": 102, "column": 60}, "end_point": {"row": 102, "column": 66}}, {"id": 273, "type": "return_statement", "text": "return EE_UNSUPPORTED;", "parent": 257, "children": [274], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 24}}, {"id": 274, "type": "identifier", "text": "EE_UNSUPPORTED", "parent": 273, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 23}}, {"id": 275, "type": "declaration", "text": "elf_half i;", "parent": 103, "children": [276, 277], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 12}}, {"id": 276, "type": "type_identifier", "text": "elf_half", "parent": 275, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 9}}, {"id": 277, "type": "identifier", "text": "i", "parent": 275, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 11}}, {"id": 278, "type": "for_statement", "text": "for (i = 0; i < header->e_phnum; i++) {\n\t\telf_segment_header_t *seghdr =\n\t\t &((elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff))[i];\n\t\t\n\t\tint rc = segment_header(seghdr, header, as, flags);\n\t\tif (rc != EE_OK)\n\t\t\treturn rc;\n\t}", "parent": 103, "children": [279, 283, 289], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 115, "column": 2}}, {"id": 279, "type": "assignment_expression", "text": "i = 0", "parent": 278, "children": [280, 281, 282], "start_point": {"row": 107, "column": 6}, "end_point": {"row": 107, "column": 11}}, {"id": 280, "type": "identifier", "text": "i", "parent": 279, "children": [], "start_point": {"row": 107, "column": 6}, "end_point": {"row": 107, "column": 7}}, {"id": 281, "type": "=", "text": "=", "parent": 279, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 9}}, {"id": 282, "type": "number_literal", "text": "0", "parent": 279, "children": [], "start_point": {"row": 107, "column": 10}, "end_point": {"row": 107, "column": 11}}, {"id": 283, "type": "binary_expression", "text": "i < header->e_phnum", "parent": 278, "children": [284, 285, 286], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 32}}, {"id": 284, "type": "identifier", "text": "i", "parent": 283, "children": [], "start_point": {"row": 107, "column": 13}, "end_point": {"row": 107, "column": 14}}, {"id": 285, "type": "<", "text": "<", "parent": 283, "children": [], "start_point": {"row": 107, "column": 15}, "end_point": {"row": 107, "column": 16}}, {"id": 286, "type": "field_expression", "text": "header->e_phnum", "parent": 283, "children": [287, 288], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 32}}, {"id": 287, "type": "identifier", "text": "header", "parent": 286, "children": [], "start_point": {"row": 107, "column": 17}, "end_point": {"row": 107, "column": 23}}, {"id": 288, "type": "field_identifier", "text": "e_phnum", "parent": 286, "children": [], "start_point": {"row": 107, "column": 25}, "end_point": {"row": 107, "column": 32}}, {"id": 289, "type": "update_expression", "text": "i++", "parent": 278, "children": [290, 291], "start_point": {"row": 107, "column": 34}, "end_point": {"row": 107, "column": 37}}, {"id": 290, "type": "identifier", "text": "i", "parent": 289, "children": [], "start_point": {"row": 107, "column": 34}, "end_point": {"row": 107, "column": 35}}, {"id": 291, "type": "++", "text": "++", "parent": 289, "children": [], "start_point": {"row": 107, "column": 35}, "end_point": {"row": 107, "column": 37}}, {"id": 292, "type": "declaration", "text": "elf_segment_header_t *seghdr =\n\t\t &((elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff))[i];", "parent": 278, "children": [293, 294], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 110, "column": 27}}, {"id": 293, "type": "type_identifier", "text": "elf_segment_header_t", "parent": 292, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 22}}, {"id": 294, "type": "init_declarator", "text": "*seghdr =\n\t\t &((elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff))[i]", "parent": 292, "children": [295, 298, 299], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 110, "column": 26}}, {"id": 295, "type": "pointer_declarator", "text": "*seghdr", "parent": 294, "children": [296, 297], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 108, "column": 30}}, {"id": 296, "type": "*", "text": "*", "parent": 295, "children": [], "start_point": {"row": 108, "column": 23}, "end_point": {"row": 108, "column": 24}}, {"id": 297, "type": "identifier", "text": "seghdr", "parent": 295, "children": [], "start_point": {"row": 108, "column": 24}, "end_point": {"row": 108, "column": 30}}, {"id": 298, "type": "=", "text": "=", "parent": 294, "children": [], "start_point": {"row": 108, "column": 31}, "end_point": {"row": 108, "column": 32}}, {"id": 299, "type": "pointer_expression", "text": "&((elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff))[i]", "parent": 294, "children": [300], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 110, "column": 26}}, {"id": 300, "type": "subscript_expression", "text": "((elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff))[i]", "parent": 299, "children": [301, 320], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 110, "column": 26}}, {"id": 301, "type": "parenthesized_expression", "text": "((elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff))", "parent": 300, "children": [302], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 110, "column": 23}}, {"id": 302, "type": "cast_expression", "text": "(elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff)", "parent": 301, "children": [303, 307], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 110, "column": 22}}, {"id": 303, "type": "type_descriptor", "text": "elf_segment_header_t *", "parent": 302, "children": [304, 305], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 31}}, {"id": 304, "type": "type_identifier", "text": "elf_segment_header_t", "parent": 303, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 29}}, {"id": 305, "type": "abstract_pointer_declarator", "text": "*", "parent": 303, "children": [306], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 31}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 109, "column": 30}, "end_point": {"row": 109, "column": 31}}, {"id": 307, "type": "parenthesized_expression", "text": "(((uint8_t *) header) +\n\t\t header->e_phoff)", "parent": 302, "children": [308], "start_point": {"row": 109, "column": 32}, "end_point": {"row": 110, "column": 22}}, {"id": 308, "type": "binary_expression", "text": "((uint8_t *) header) +\n\t\t header->e_phoff", "parent": 307, "children": [309, 316, 317], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 110, "column": 21}}, {"id": 309, "type": "parenthesized_expression", "text": "((uint8_t *) header)", "parent": 308, "children": [310], "start_point": {"row": 109, "column": 33}, "end_point": {"row": 109, "column": 53}}, {"id": 310, "type": "cast_expression", "text": "(uint8_t *) header", "parent": 309, "children": [311, 315], "start_point": {"row": 109, "column": 34}, "end_point": {"row": 109, "column": 52}}, {"id": 311, "type": "type_descriptor", "text": "uint8_t *", "parent": 310, "children": [312, 313], "start_point": {"row": 109, "column": 35}, "end_point": {"row": 109, "column": 44}}, {"id": 312, "type": "primitive_type", "text": "uint8_t", "parent": 311, "children": [], "start_point": {"row": 109, "column": 35}, "end_point": {"row": 109, "column": 42}}, {"id": 313, "type": "abstract_pointer_declarator", "text": "*", "parent": 311, "children": [314], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 44}}, {"id": 314, "type": "*", "text": "*", "parent": 313, "children": [], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 44}}, {"id": 315, "type": "identifier", "text": "header", "parent": 310, "children": [], "start_point": {"row": 109, "column": 46}, "end_point": {"row": 109, "column": 52}}, {"id": 316, "type": "+", "text": "+", "parent": 308, "children": [], "start_point": {"row": 109, "column": 54}, "end_point": {"row": 109, "column": 55}}, {"id": 317, "type": "field_expression", "text": "header->e_phoff", "parent": 308, "children": [318, 319], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 21}}, {"id": 318, "type": "identifier", "text": "header", "parent": 317, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 12}}, {"id": 319, "type": "field_identifier", "text": "e_phoff", "parent": 317, "children": [], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 21}}, {"id": 320, "type": "identifier", "text": "i", "parent": 300, "children": [], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 25}}, {"id": 321, "type": "declaration", "text": "int rc = segment_header(seghdr, header, as, flags);", "parent": 278, "children": [322, 323], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 53}}, {"id": 322, "type": "primitive_type", "text": "int", "parent": 321, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 5}}, {"id": 323, "type": "init_declarator", "text": "rc = segment_header(seghdr, header, as, flags)", "parent": 321, "children": [324, 325, 326], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 52}}, {"id": 324, "type": "identifier", "text": "rc", "parent": 323, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 8}}, {"id": 325, "type": "=", "text": "=", "parent": 323, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 10}}, {"id": 326, "type": "call_expression", "text": "segment_header(seghdr, header, as, flags)", "parent": 323, "children": [327, 328], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 52}}, {"id": 327, "type": "identifier", "text": "segment_header", "parent": 326, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 25}}, {"id": 328, "type": "argument_list", "text": "(seghdr, header, as, flags)", "parent": 326, "children": [329, 330, 331], "start_point": {"row": 112, "column": 25}, "end_point": {"row": 112, "column": 52}}, {"id": 329, "type": "identifier", "text": "seghdr", "parent": 328, "children": [], "start_point": {"row": 112, "column": 26}, "end_point": {"row": 112, "column": 32}}, {"id": 330, "type": "identifier", "text": "header", "parent": 328, "children": [], "start_point": {"row": 112, "column": 34}, "end_point": {"row": 112, "column": 40}}, {"id": 331, "type": "identifier", "text": "flags", "parent": 328, "children": [], "start_point": {"row": 112, "column": 46}, "end_point": {"row": 112, "column": 51}}, {"id": 332, "type": "if_statement", "text": "if (rc != EE_OK)\n\t\t\treturn rc;", "parent": 278, "children": [333, 338], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 114, "column": 13}}, {"id": 333, "type": "parenthesized_expression", "text": "(rc != EE_OK)", "parent": 332, "children": [334], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 18}}, {"id": 334, "type": "binary_expression", "text": "rc != EE_OK", "parent": 333, "children": [335, 336, 337], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 17}}, {"id": 335, "type": "identifier", "text": "rc", "parent": 334, "children": [], "start_point": {"row": 113, "column": 6}, "end_point": {"row": 113, "column": 8}}, {"id": 336, "type": "!=", "text": "!=", "parent": 334, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 11}}, {"id": 337, "type": "identifier", "text": "EE_OK", "parent": 334, "children": [], "start_point": {"row": 113, "column": 12}, "end_point": {"row": 113, "column": 17}}, {"id": 338, "type": "return_statement", "text": "return rc;", "parent": 332, "children": [339], "start_point": {"row": 114, "column": 3}, "end_point": {"row": 114, "column": 13}}, {"id": 339, "type": "identifier", "text": "rc", "parent": 338, "children": [], "start_point": {"row": 114, "column": 10}, "end_point": {"row": 114, "column": 12}}, {"id": 340, "type": "for_statement", "text": "for (i = 0; i < header->e_shnum; i++) {\n\t\telf_section_header_t *sechdr =\n\t\t &((elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff))[i];\n\t\t\n\t\tint rc = section_header(sechdr, header, as);\n\t\tif (rc != EE_OK)\n\t\t\treturn rc;\n\t}", "parent": 103, "children": [341, 345, 351], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 126, "column": 2}}, {"id": 341, "type": "assignment_expression", "text": "i = 0", "parent": 340, "children": [342, 343, 344], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 11}}, {"id": 342, "type": "identifier", "text": "i", "parent": 341, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 7}}, {"id": 343, "type": "=", "text": "=", "parent": 341, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 9}}, {"id": 344, "type": "number_literal", "text": "0", "parent": 341, "children": [], "start_point": {"row": 118, "column": 10}, "end_point": {"row": 118, "column": 11}}, {"id": 345, "type": "binary_expression", "text": "i < header->e_shnum", "parent": 340, "children": [346, 347, 348], "start_point": {"row": 118, "column": 13}, "end_point": {"row": 118, "column": 32}}, {"id": 346, "type": "identifier", "text": "i", "parent": 345, "children": [], "start_point": {"row": 118, "column": 13}, "end_point": {"row": 118, "column": 14}}, {"id": 347, "type": "<", "text": "<", "parent": 345, "children": [], "start_point": {"row": 118, "column": 15}, "end_point": {"row": 118, "column": 16}}, {"id": 348, "type": "field_expression", "text": "header->e_shnum", "parent": 345, "children": [349, 350], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 32}}, {"id": 349, "type": "identifier", "text": "header", "parent": 348, "children": [], "start_point": {"row": 118, "column": 17}, "end_point": {"row": 118, "column": 23}}, {"id": 350, "type": "field_identifier", "text": "e_shnum", "parent": 348, "children": [], "start_point": {"row": 118, "column": 25}, "end_point": {"row": 118, "column": 32}}, {"id": 351, "type": "update_expression", "text": "i++", "parent": 340, "children": [352, 353], "start_point": {"row": 118, "column": 34}, "end_point": {"row": 118, "column": 37}}, {"id": 352, "type": "identifier", "text": "i", "parent": 351, "children": [], "start_point": {"row": 118, "column": 34}, "end_point": {"row": 118, "column": 35}}, {"id": 353, "type": "++", "text": "++", "parent": 351, "children": [], "start_point": {"row": 118, "column": 35}, "end_point": {"row": 118, "column": 37}}, {"id": 354, "type": "declaration", "text": "elf_section_header_t *sechdr =\n\t\t &((elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff))[i];", "parent": 340, "children": [355, 356], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 121, "column": 27}}, {"id": 355, "type": "type_identifier", "text": "elf_section_header_t", "parent": 354, "children": [], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 22}}, {"id": 356, "type": "init_declarator", "text": "*sechdr =\n\t\t &((elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff))[i]", "parent": 354, "children": [357, 360, 361], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 121, "column": 26}}, {"id": 357, "type": "pointer_declarator", "text": "*sechdr", "parent": 356, "children": [358, 359], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 30}}, {"id": 358, "type": "*", "text": "*", "parent": 357, "children": [], "start_point": {"row": 119, "column": 23}, "end_point": {"row": 119, "column": 24}}, {"id": 359, "type": "identifier", "text": "sechdr", "parent": 357, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 30}}, {"id": 360, "type": "=", "text": "=", "parent": 356, "children": [], "start_point": {"row": 119, "column": 31}, "end_point": {"row": 119, "column": 32}}, {"id": 361, "type": "pointer_expression", "text": "&((elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff))[i]", "parent": 356, "children": [362], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 121, "column": 26}}, {"id": 362, "type": "subscript_expression", "text": "((elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff))[i]", "parent": 361, "children": [363, 382], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 121, "column": 26}}, {"id": 363, "type": "parenthesized_expression", "text": "((elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff))", "parent": 362, "children": [364], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 121, "column": 23}}, {"id": 364, "type": "cast_expression", "text": "(elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff)", "parent": 363, "children": [365, 369], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 121, "column": 22}}, {"id": 365, "type": "type_descriptor", "text": "elf_section_header_t *", "parent": 364, "children": [366, 367], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 31}}, {"id": 366, "type": "type_identifier", "text": "elf_section_header_t", "parent": 365, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 29}}, {"id": 367, "type": "abstract_pointer_declarator", "text": "*", "parent": 365, "children": [368], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 31}}, {"id": 368, "type": "*", "text": "*", "parent": 367, "children": [], "start_point": {"row": 120, "column": 30}, "end_point": {"row": 120, "column": 31}}, {"id": 369, "type": "parenthesized_expression", "text": "(((uint8_t *) header) +\n\t\t header->e_shoff)", "parent": 364, "children": [370], "start_point": {"row": 120, "column": 32}, "end_point": {"row": 121, "column": 22}}, {"id": 370, "type": "binary_expression", "text": "((uint8_t *) header) +\n\t\t header->e_shoff", "parent": 369, "children": [371, 378, 379], "start_point": {"row": 120, "column": 33}, "end_point": {"row": 121, "column": 21}}, {"id": 371, "type": "parenthesized_expression", "text": "((uint8_t *) header)", "parent": 370, "children": [372], "start_point": {"row": 120, "column": 33}, "end_point": {"row": 120, "column": 53}}, {"id": 372, "type": "cast_expression", "text": "(uint8_t *) header", "parent": 371, "children": [373, 377], "start_point": {"row": 120, "column": 34}, "end_point": {"row": 120, "column": 52}}, {"id": 373, "type": "type_descriptor", "text": "uint8_t *", "parent": 372, "children": [374, 375], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 44}}, {"id": 374, "type": "primitive_type", "text": "uint8_t", "parent": 373, "children": [], "start_point": {"row": 120, "column": 35}, "end_point": {"row": 120, "column": 42}}, {"id": 375, "type": "abstract_pointer_declarator", "text": "*", "parent": 373, "children": [376], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 44}}, {"id": 376, "type": "*", "text": "*", "parent": 375, "children": [], "start_point": {"row": 120, "column": 43}, "end_point": {"row": 120, "column": 44}}, {"id": 377, "type": "identifier", "text": "header", "parent": 372, "children": [], "start_point": {"row": 120, "column": 46}, "end_point": {"row": 120, "column": 52}}, {"id": 378, "type": "+", "text": "+", "parent": 370, "children": [], "start_point": {"row": 120, "column": 54}, "end_point": {"row": 120, "column": 55}}, {"id": 379, "type": "field_expression", "text": "header->e_shoff", "parent": 370, "children": [380, 381], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 21}}, {"id": 380, "type": "identifier", "text": "header", "parent": 379, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 12}}, {"id": 381, "type": "field_identifier", "text": "e_shoff", "parent": 379, "children": [], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 21}}, {"id": 382, "type": "identifier", "text": "i", "parent": 362, "children": [], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 25}}, {"id": 383, "type": "declaration", "text": "int rc = section_header(sechdr, header, as);", "parent": 340, "children": [384, 385], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 46}}, {"id": 384, "type": "primitive_type", "text": "int", "parent": 383, "children": [], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 5}}, {"id": 385, "type": "init_declarator", "text": "rc = section_header(sechdr, header, as)", "parent": 383, "children": [386, 387, 388], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 45}}, {"id": 386, "type": "identifier", "text": "rc", "parent": 385, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 8}}, {"id": 387, "type": "=", "text": "=", "parent": 385, "children": [], "start_point": {"row": 123, "column": 9}, "end_point": {"row": 123, "column": 10}}, {"id": 388, "type": "call_expression", "text": "section_header(sechdr, header, as)", "parent": 385, "children": [389, 390], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 45}}, {"id": 389, "type": "identifier", "text": "section_header", "parent": 388, "children": [], "start_point": {"row": 123, "column": 11}, "end_point": {"row": 123, "column": 25}}, {"id": 390, "type": "argument_list", "text": "(sechdr, header, as)", "parent": 388, "children": [391, 392], "start_point": {"row": 123, "column": 25}, "end_point": {"row": 123, "column": 45}}, {"id": 391, "type": "identifier", "text": "sechdr", "parent": 390, "children": [], "start_point": {"row": 123, "column": 26}, "end_point": {"row": 123, "column": 32}}, {"id": 392, "type": "identifier", "text": "header", "parent": 390, "children": [], "start_point": {"row": 123, "column": 34}, "end_point": {"row": 123, "column": 40}}, {"id": 393, "type": "if_statement", "text": "if (rc != EE_OK)\n\t\t\treturn rc;", "parent": 340, "children": [394, 399], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 125, "column": 13}}, {"id": 394, "type": "parenthesized_expression", "text": "(rc != EE_OK)", "parent": 393, "children": [395], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 18}}, {"id": 395, "type": "binary_expression", "text": "rc != EE_OK", "parent": 394, "children": [396, 397, 398], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 17}}, {"id": 396, "type": "identifier", "text": "rc", "parent": 395, "children": [], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 8}}, {"id": 397, "type": "!=", "text": "!=", "parent": 395, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 11}}, {"id": 398, "type": "identifier", "text": "EE_OK", "parent": 395, "children": [], "start_point": {"row": 124, "column": 12}, "end_point": {"row": 124, "column": 17}}, {"id": 399, "type": "return_statement", "text": "return rc;", "parent": 393, "children": [400], "start_point": {"row": 125, "column": 3}, "end_point": {"row": 125, "column": 13}}, {"id": 400, "type": "identifier", "text": "rc", "parent": 399, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 12}}, {"id": 401, "type": "return_statement", "text": "return EE_OK;", "parent": 103, "children": [402], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 14}}, {"id": 402, "type": "identifier", "text": "EE_OK", "parent": 401, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 13}}, {"id": 403, "type": "function_definition", "text": "const char *elf_error(unsigned int rc)\n{\n\tASSERT(rc < sizeof(error_codes) / sizeof(char *));\n\t\n\treturn error_codes[rc];\n}", "parent": null, "children": [404, 405], "start_point": {"row": 138, "column": 0}, "end_point": {"row": 143, "column": 1}}, {"id": 404, "type": "primitive_type", "text": "char", "parent": 403, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 10}}, {"id": 405, "type": "pointer_declarator", "text": "*elf_error(unsigned int rc)", "parent": 403, "children": [406, 407], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 38}}, {"id": 406, "type": "*", "text": "*", "parent": 405, "children": [], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 12}}, {"id": 407, "type": "function_declarator", "text": "elf_error(unsigned int rc)", "parent": 405, "children": [408, 409], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 38}}, {"id": 408, "type": "identifier", "text": "elf_error", "parent": 407, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 21}}, {"id": 409, "type": "parameter_list", "text": "(unsigned int rc)", "parent": 407, "children": [410], "start_point": {"row": 138, "column": 21}, "end_point": {"row": 138, "column": 38}}, {"id": 410, "type": "parameter_declaration", "text": "unsigned int rc", "parent": 409, "children": [411, 414], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 37}}, {"id": 411, "type": "sized_type_specifier", "text": "unsigned int", "parent": 410, "children": [412, 413], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 34}}, {"id": 412, "type": "unsigned", "text": "unsigned", "parent": 411, "children": [], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 30}}, {"id": 413, "type": "primitive_type", "text": "int", "parent": 411, "children": [], "start_point": {"row": 138, "column": 31}, "end_point": {"row": 138, "column": 34}}, {"id": 414, "type": "identifier", "text": "rc", "parent": 410, "children": [], "start_point": {"row": 138, "column": 35}, "end_point": {"row": 138, "column": 37}}, {"id": 415, "type": "call_expression", "text": "ASSERT(rc < sizeof(error_codes) / sizeof(char *))", "parent": 403, "children": [416, 417], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 50}}, {"id": 416, "type": "identifier", "text": "ASSERT", "parent": 415, "children": [], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 7}}, {"id": 417, "type": "argument_list", "text": "(rc < sizeof(error_codes) / sizeof(char *))", "parent": 415, "children": [418], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 50}}, {"id": 418, "type": "binary_expression", "text": "rc < sizeof(error_codes) / sizeof(char *)", "parent": 417, "children": [419, 420, 421], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 49}}, {"id": 419, "type": "identifier", "text": "rc", "parent": 418, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 10}}, {"id": 420, "type": "<", "text": "<", "parent": 418, "children": [], "start_point": {"row": 140, "column": 11}, "end_point": {"row": 140, "column": 12}}, {"id": 421, "type": "binary_expression", "text": "sizeof(error_codes) / sizeof(char *)", "parent": 418, "children": [422, 425, 426], "start_point": {"row": 140, "column": 13}, "end_point": {"row": 140, "column": 49}}, {"id": 422, "type": "sizeof_expression", "text": "sizeof(error_codes)", "parent": 421, "children": [423], "start_point": {"row": 140, "column": 13}, "end_point": {"row": 140, "column": 32}}, {"id": 423, "type": "parenthesized_expression", "text": "(error_codes)", "parent": 422, "children": [424], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 32}}, {"id": 424, "type": "identifier", "text": "error_codes", "parent": 423, "children": [], "start_point": {"row": 140, "column": 20}, "end_point": {"row": 140, "column": 31}}, {"id": 425, "type": "/", "text": "/", "parent": 421, "children": [], "start_point": {"row": 140, "column": 33}, "end_point": {"row": 140, "column": 34}}, {"id": 426, "type": "sizeof_expression", "text": "sizeof(char *)", "parent": 421, "children": [427], "start_point": {"row": 140, "column": 35}, "end_point": {"row": 140, "column": 49}}, {"id": 427, "type": "type_descriptor", "text": "char *", "parent": 426, "children": [428, 429], "start_point": {"row": 140, "column": 42}, "end_point": {"row": 140, "column": 48}}, {"id": 428, "type": "primitive_type", "text": "char", "parent": 427, "children": [], "start_point": {"row": 140, "column": 42}, "end_point": {"row": 140, "column": 46}}, {"id": 429, "type": "abstract_pointer_declarator", "text": "*", "parent": 427, "children": [430], "start_point": {"row": 140, "column": 47}, "end_point": {"row": 140, "column": 48}}, {"id": 430, "type": "*", "text": "*", "parent": 429, "children": [], "start_point": {"row": 140, "column": 47}, "end_point": {"row": 140, "column": 48}}, {"id": 431, "type": "return_statement", "text": "return error_codes[rc];", "parent": 403, "children": [432], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 24}}, {"id": 432, "type": "subscript_expression", "text": "error_codes[rc]", "parent": 431, "children": [433, 434], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 23}}, {"id": 433, "type": "identifier", "text": "error_codes", "parent": 432, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 19}}, {"id": 434, "type": "identifier", "text": "rc", "parent": 432, "children": [], "start_point": {"row": 142, "column": 20}, "end_point": {"row": 142, "column": 22}}, {"id": 435, "type": "function_definition", "text": "static int segment_header(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)\n{\n\tswitch (entry->p_type) {\n\tcase PT_NULL:\n\tcase PT_PHDR:\n\tcase PT_NOTE:\n\t\tbreak;\n\tcase PT_LOAD:\n\t\treturn load_segment(entry, elf, as);\n\tcase PT_DYNAMIC:\n\tcase PT_INTERP:\n\t\t// FIXME\n\t\t/*\n\t\tchar *interp = (char *) elf + entry->p_offset;\n\t\tif (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n\t\t ELF_INTERP_ZLEN) != 0) {\n\t\t\treturn EE_UNSUPPORTED;\n\t\t} */\n\t\tif ((flags & ELD_F_LOADER) == 0)\n\t\t\treturn EE_LOADER;\n\t\tbreak;\n\tcase PT_SHLIB:\n\tcase PT_LOPROC:\n\tcase PT_HIPROC:\n\tdefault:\n\t\treturn EE_UNSUPPORTED;\n\t}\n\treturn EE_OK;\n}", "parent": null, "children": [436, 437], "start_point": {"row": 154, "column": 0}, "end_point": {"row": 183, "column": 1}}, {"id": 436, "type": "primitive_type", "text": "int", "parent": 435, "children": [], "start_point": {"row": 154, "column": 7}, "end_point": {"row": 154, "column": 10}}, {"id": 437, "type": "function_declarator", "text": "segment_header(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)", "parent": 435, "children": [438, 439], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 155, "column": 33}}, {"id": 438, "type": "identifier", "text": "segment_header", "parent": 437, "children": [], "start_point": {"row": 154, "column": 11}, "end_point": {"row": 154, "column": 25}}, {"id": 439, "type": "parameter_list", "text": "(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)", "parent": 437, "children": [440, 445, 450, 454], "start_point": {"row": 154, "column": 25}, "end_point": {"row": 155, "column": 33}}, {"id": 440, "type": "parameter_declaration", "text": "elf_segment_header_t *entry", "parent": 439, "children": [441, 442], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 53}}, {"id": 441, "type": "type_identifier", "text": "elf_segment_header_t", "parent": 440, "children": [], "start_point": {"row": 154, "column": 26}, "end_point": {"row": 154, "column": 46}}, {"id": 442, "type": "pointer_declarator", "text": "*entry", "parent": 440, "children": [443, 444], "start_point": {"row": 154, "column": 47}, "end_point": {"row": 154, "column": 53}}, {"id": 443, "type": "*", "text": "*", "parent": 442, "children": [], "start_point": {"row": 154, "column": 47}, "end_point": {"row": 154, "column": 48}}, {"id": 444, "type": "identifier", "text": "entry", "parent": 442, "children": [], "start_point": {"row": 154, "column": 48}, "end_point": {"row": 154, "column": 53}}, {"id": 445, "type": "parameter_declaration", "text": "elf_header_t *elf", "parent": 439, "children": [446, 447], "start_point": {"row": 154, "column": 55}, "end_point": {"row": 154, "column": 72}}, {"id": 446, "type": "type_identifier", "text": "elf_header_t", "parent": 445, "children": [], "start_point": {"row": 154, "column": 55}, "end_point": {"row": 154, "column": 67}}, {"id": 447, "type": "pointer_declarator", "text": "*elf", "parent": 445, "children": [448, 449], "start_point": {"row": 154, "column": 68}, "end_point": {"row": 154, "column": 72}}, {"id": 448, "type": "*", "text": "*", "parent": 447, "children": [], "start_point": {"row": 154, "column": 68}, "end_point": {"row": 154, "column": 69}}, {"id": 449, "type": "identifier", "text": "elf", "parent": 447, "children": [], "start_point": {"row": 154, "column": 69}, "end_point": {"row": 154, "column": 72}}, {"id": 450, "type": "parameter_declaration", "text": "as_t *as", "parent": 439, "children": [451, 452], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 12}}, {"id": 451, "type": "type_identifier", "text": "as_t", "parent": 450, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 8}}, {"id": 452, "type": "pointer_declarator", "text": "*as", "parent": 450, "children": [453], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 12}}, {"id": 453, "type": "*", "text": "*", "parent": 452, "children": [], "start_point": {"row": 155, "column": 9}, "end_point": {"row": 155, "column": 10}}, {"id": 454, "type": "parameter_declaration", "text": "unsigned int flags", "parent": 439, "children": [455, 458], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 32}}, {"id": 455, "type": "sized_type_specifier", "text": "unsigned int", "parent": 454, "children": [456, 457], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 26}}, {"id": 456, "type": "unsigned", "text": "unsigned", "parent": 455, "children": [], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 22}}, {"id": 457, "type": "primitive_type", "text": "int", "parent": 455, "children": [], "start_point": {"row": 155, "column": 23}, "end_point": {"row": 155, "column": 26}}, {"id": 458, "type": "identifier", "text": "flags", "parent": 454, "children": [], "start_point": {"row": 155, "column": 27}, "end_point": {"row": 155, "column": 32}}, {"id": 459, "type": "switch_statement", "text": "switch (entry->p_type) {\n\tcase PT_NULL:\n\tcase PT_PHDR:\n\tcase PT_NOTE:\n\t\tbreak;\n\tcase PT_LOAD:\n\t\treturn load_segment(entry, elf, as);\n\tcase PT_DYNAMIC:\n\tcase PT_INTERP:\n\t\t// FIXME\n\t\t/*\n\t\tchar *interp = (char *) elf + entry->p_offset;\n\t\tif (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n\t\t ELF_INTERP_ZLEN) != 0) {\n\t\t\treturn EE_UNSUPPORTED;\n\t\t} */\n\t\tif ((flags & ELD_F_LOADER) == 0)\n\t\t\treturn EE_LOADER;\n\t\tbreak;\n\tcase PT_SHLIB:\n\tcase PT_LOPROC:\n\tcase PT_HIPROC:\n\tdefault:\n\t\treturn EE_UNSUPPORTED;\n\t}", "parent": 435, "children": [460, 461], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 181, "column": 2}}, {"id": 460, "type": "switch", "text": "switch", "parent": 459, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 7}}, {"id": 461, "type": "parenthesized_expression", "text": "(entry->p_type)", "parent": 459, "children": [462], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 23}}, {"id": 462, "type": "field_expression", "text": "entry->p_type", "parent": 461, "children": [463, 464], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 22}}, {"id": 463, "type": "identifier", "text": "entry", "parent": 462, "children": [], "start_point": {"row": 157, "column": 9}, "end_point": {"row": 157, "column": 14}}, {"id": 464, "type": "field_identifier", "text": "p_type", "parent": 462, "children": [], "start_point": {"row": 157, "column": 16}, "end_point": {"row": 157, "column": 22}}, {"id": 465, "type": "case_statement", "text": "case PT_NULL:", "parent": 459, "children": [466, 467], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 14}}, {"id": 466, "type": "case", "text": "case", "parent": 465, "children": [], "start_point": {"row": 158, "column": 1}, "end_point": {"row": 158, "column": 5}}, {"id": 467, "type": "identifier", "text": "PT_NULL", "parent": 465, "children": [], "start_point": {"row": 158, "column": 6}, "end_point": {"row": 158, "column": 13}}, {"id": 468, "type": "case_statement", "text": "case PT_PHDR:", "parent": 459, "children": [469, 470], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 14}}, {"id": 469, "type": "case", "text": "case", "parent": 468, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 5}}, {"id": 470, "type": "identifier", "text": "PT_PHDR", "parent": 468, "children": [], "start_point": {"row": 159, "column": 6}, "end_point": {"row": 159, "column": 13}}, {"id": 471, "type": "case_statement", "text": "case PT_NOTE:\n\t\tbreak;", "parent": 459, "children": [472, 473, 474], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 161, "column": 8}}, {"id": 472, "type": "case", "text": "case", "parent": 471, "children": [], "start_point": {"row": 160, "column": 1}, "end_point": {"row": 160, "column": 5}}, {"id": 473, "type": "identifier", "text": "PT_NOTE", "parent": 471, "children": [], "start_point": {"row": 160, "column": 6}, "end_point": {"row": 160, "column": 13}}, {"id": 474, "type": "break_statement", "text": "break;", "parent": 471, "children": [475], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 8}}, {"id": 475, "type": "break", "text": "break", "parent": 474, "children": [], "start_point": {"row": 161, "column": 2}, "end_point": {"row": 161, "column": 7}}, {"id": 476, "type": "case_statement", "text": "case PT_LOAD:\n\t\treturn load_segment(entry, elf, as);", "parent": 459, "children": [477, 478, 479], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 163, "column": 38}}, {"id": 477, "type": "case", "text": "case", "parent": 476, "children": [], "start_point": {"row": 162, "column": 1}, "end_point": {"row": 162, "column": 5}}, {"id": 478, "type": "identifier", "text": "PT_LOAD", "parent": 476, "children": [], "start_point": {"row": 162, "column": 6}, "end_point": {"row": 162, "column": 13}}, {"id": 479, "type": "return_statement", "text": "return load_segment(entry, elf, as);", "parent": 476, "children": [480], "start_point": {"row": 163, "column": 2}, "end_point": {"row": 163, "column": 38}}, {"id": 480, "type": "call_expression", "text": "load_segment(entry, elf, as)", "parent": 479, "children": [481, 482], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 37}}, {"id": 481, "type": "identifier", "text": "load_segment", "parent": 480, "children": [], "start_point": {"row": 163, "column": 9}, "end_point": {"row": 163, "column": 21}}, {"id": 482, "type": "argument_list", "text": "(entry, elf, as)", "parent": 480, "children": [483, 484], "start_point": {"row": 163, "column": 21}, "end_point": {"row": 163, "column": 37}}, {"id": 483, "type": "identifier", "text": "entry", "parent": 482, "children": [], "start_point": {"row": 163, "column": 22}, "end_point": {"row": 163, "column": 27}}, {"id": 484, "type": "identifier", "text": "elf", "parent": 482, "children": [], "start_point": {"row": 163, "column": 29}, "end_point": {"row": 163, "column": 32}}, {"id": 485, "type": "case_statement", "text": "case PT_DYNAMIC:", "parent": 459, "children": [486, 487], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 17}}, {"id": 486, "type": "case", "text": "case", "parent": 485, "children": [], "start_point": {"row": 164, "column": 1}, "end_point": {"row": 164, "column": 5}}, {"id": 487, "type": "identifier", "text": "PT_DYNAMIC", "parent": 485, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 16}}, {"id": 488, "type": "case_statement", "text": "case PT_INTERP:\n\t\t// FIXME\n\t\t/*\n\t\tchar *interp = (char *) elf + entry->p_offset;\n\t\tif (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n\t\t ELF_INTERP_ZLEN) != 0) {\n\t\t\treturn EE_UNSUPPORTED;\n\t\t} */\n\t\tif ((flags & ELD_F_LOADER) == 0)\n\t\t\treturn EE_LOADER;\n\t\tbreak;", "parent": 459, "children": [489, 490, 491, 502], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 175, "column": 8}}, {"id": 489, "type": "case", "text": "case", "parent": 488, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 5}}, {"id": 490, "type": "identifier", "text": "PT_INTERP", "parent": 488, "children": [], "start_point": {"row": 165, "column": 6}, "end_point": {"row": 165, "column": 15}}, {"id": 491, "type": "if_statement", "text": "if ((flags & ELD_F_LOADER) == 0)\n\t\t\treturn EE_LOADER;", "parent": 488, "children": [492, 500], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 174, "column": 20}}, {"id": 492, "type": "parenthesized_expression", "text": "((flags & ELD_F_LOADER) == 0)", "parent": 491, "children": [493], "start_point": {"row": 173, "column": 5}, "end_point": {"row": 173, "column": 34}}, {"id": 493, "type": "binary_expression", "text": "(flags & ELD_F_LOADER) == 0", "parent": 492, "children": [494, 498, 499], "start_point": {"row": 173, "column": 6}, "end_point": {"row": 173, "column": 33}}, {"id": 494, "type": "parenthesized_expression", "text": "(flags & ELD_F_LOADER)", "parent": 493, "children": [495], "start_point": {"row": 173, "column": 6}, "end_point": {"row": 173, "column": 28}}, {"id": 495, "type": "binary_expression", "text": "flags & ELD_F_LOADER", "parent": 494, "children": [496, 497], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 27}}, {"id": 496, "type": "identifier", "text": "flags", "parent": 495, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 12}}, {"id": 497, "type": "identifier", "text": "ELD_F_LOADER", "parent": 495, "children": [], "start_point": {"row": 173, "column": 15}, "end_point": {"row": 173, "column": 27}}, {"id": 498, "type": "==", "text": "==", "parent": 493, "children": [], "start_point": {"row": 173, "column": 29}, "end_point": {"row": 173, "column": 31}}, {"id": 499, "type": "number_literal", "text": "0", "parent": 493, "children": [], "start_point": {"row": 173, "column": 32}, "end_point": {"row": 173, "column": 33}}, {"id": 500, "type": "return_statement", "text": "return EE_LOADER;", "parent": 491, "children": [501], "start_point": {"row": 174, "column": 3}, "end_point": {"row": 174, "column": 20}}, {"id": 501, "type": "identifier", "text": "EE_LOADER", "parent": 500, "children": [], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 19}}, {"id": 502, "type": "break_statement", "text": "break;", "parent": 488, "children": [503], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 8}}, {"id": 503, "type": "break", "text": "break", "parent": 502, "children": [], "start_point": {"row": 175, "column": 2}, "end_point": {"row": 175, "column": 7}}, {"id": 504, "type": "case_statement", "text": "case PT_SHLIB:", "parent": 459, "children": [505, 506], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 15}}, {"id": 505, "type": "case", "text": "case", "parent": 504, "children": [], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 176, "column": 5}}, {"id": 506, "type": "identifier", "text": "PT_SHLIB", "parent": 504, "children": [], "start_point": {"row": 176, "column": 6}, "end_point": {"row": 176, "column": 14}}, {"id": 507, "type": "case_statement", "text": "case PT_LOPROC:", "parent": 459, "children": [508, 509], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 16}}, {"id": 508, "type": "case", "text": "case", "parent": 507, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 5}}, {"id": 509, "type": "identifier", "text": "PT_LOPROC", "parent": 507, "children": [], "start_point": {"row": 177, "column": 6}, "end_point": {"row": 177, "column": 15}}, {"id": 510, "type": "case_statement", "text": "case PT_HIPROC:", "parent": 459, "children": [511, 512], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 16}}, {"id": 511, "type": "case", "text": "case", "parent": 510, "children": [], "start_point": {"row": 178, "column": 1}, "end_point": {"row": 178, "column": 5}}, {"id": 512, "type": "identifier", "text": "PT_HIPROC", "parent": 510, "children": [], "start_point": {"row": 178, "column": 6}, "end_point": {"row": 178, "column": 15}}, {"id": 513, "type": "case_statement", "text": "default:\n\t\treturn EE_UNSUPPORTED;", "parent": 459, "children": [514, 515], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 180, "column": 24}}, {"id": 514, "type": "default", "text": "default", "parent": 513, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 8}}, {"id": 515, "type": "return_statement", "text": "return EE_UNSUPPORTED;", "parent": 513, "children": [516], "start_point": {"row": 180, "column": 2}, "end_point": {"row": 180, "column": 24}}, {"id": 516, "type": "identifier", "text": "EE_UNSUPPORTED", "parent": 515, "children": [], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 23}}, {"id": 517, "type": "return_statement", "text": "return EE_OK;", "parent": 435, "children": [518], "start_point": {"row": 182, "column": 1}, "end_point": {"row": 182, "column": 14}}, {"id": 518, "type": "identifier", "text": "EE_OK", "parent": 517, "children": [], "start_point": {"row": 182, "column": 8}, "end_point": {"row": 182, "column": 13}}, {"id": 519, "type": "function_definition", "text": "int load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)\n{\n\tmem_backend_data_t backend_data;\n\tbackend_data.elf = elf;\n\tbackend_data.segment = entry;\n\t\n\tif (entry->p_align > 1) {\n\t\tif ((entry->p_offset % entry->p_align) !=\n\t\t (entry->p_vaddr % entry->p_align))\n\t\t\treturn EE_INVALID;\n\t}\n\t\n\tunsigned int flags = 0;\n\t\n\tif (entry->p_flags & PF_X)\n\t\tflags |= AS_AREA_EXEC;\n\t\n\tif (entry->p_flags & PF_W)\n\t\tflags |= AS_AREA_WRITE;\n\t\n\tif (entry->p_flags & PF_R)\n\t\tflags |= AS_AREA_READ;\n\t\n\tflags |= AS_AREA_CACHEABLE;\n\t\n\t/*\n\t * Align vaddr down, inserting a little \"gap\" at the beginning.\n\t * Adjust area size, so that its end remains in place.\n\t *\n\t */\n\tuintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);\n\tsize_t mem_sz = entry->p_memsz + (entry->p_vaddr - base);\n\t\n\tas_area_t *area = as_area_create(as, flags, mem_sz,\n\t AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0);\n\tif (!area)\n\t\treturn EE_MEMORY;\n\t\n\t/*\n\t * The segment will be mapped on demand by elf_page_fault().\n\t *\n\t */\n\t\n\treturn EE_OK;\n}", "parent": null, "children": [520, 521], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 238, "column": 1}}, {"id": 520, "type": "primitive_type", "text": "int", "parent": 519, "children": [], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 3}}, {"id": 521, "type": "function_declarator", "text": "load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)", "parent": 519, "children": [522, 523], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 74}}, {"id": 522, "type": "identifier", "text": "load_segment", "parent": 521, "children": [], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 194, "column": 16}}, {"id": 523, "type": "parameter_list", "text": "(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)", "parent": 521, "children": [524, 529, 534], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 74}}, {"id": 524, "type": "parameter_declaration", "text": "elf_segment_header_t *entry", "parent": 523, "children": [525, 526], "start_point": {"row": 194, "column": 17}, "end_point": {"row": 194, "column": 44}}, {"id": 525, "type": "type_identifier", "text": "elf_segment_header_t", "parent": 524, "children": [], "start_point": {"row": 194, "column": 17}, "end_point": {"row": 194, "column": 37}}, {"id": 526, "type": "pointer_declarator", "text": "*entry", "parent": 524, "children": [527, 528], "start_point": {"row": 194, "column": 38}, "end_point": {"row": 194, "column": 44}}, {"id": 527, "type": "*", "text": "*", "parent": 526, "children": [], "start_point": {"row": 194, "column": 38}, "end_point": {"row": 194, "column": 39}}, {"id": 528, "type": "identifier", "text": "entry", "parent": 526, "children": [], "start_point": {"row": 194, "column": 39}, "end_point": {"row": 194, "column": 44}}, {"id": 529, "type": "parameter_declaration", "text": "elf_header_t *elf", "parent": 523, "children": [530, 531], "start_point": {"row": 194, "column": 46}, "end_point": {"row": 194, "column": 63}}, {"id": 530, "type": "type_identifier", "text": "elf_header_t", "parent": 529, "children": [], "start_point": {"row": 194, "column": 46}, "end_point": {"row": 194, "column": 58}}, {"id": 531, "type": "pointer_declarator", "text": "*elf", "parent": 529, "children": [532, 533], "start_point": {"row": 194, "column": 59}, "end_point": {"row": 194, "column": 63}}, {"id": 532, "type": "*", "text": "*", "parent": 531, "children": [], "start_point": {"row": 194, "column": 59}, "end_point": {"row": 194, "column": 60}}, {"id": 533, "type": "identifier", "text": "elf", "parent": 531, "children": [], "start_point": {"row": 194, "column": 60}, "end_point": {"row": 194, "column": 63}}, {"id": 534, "type": "parameter_declaration", "text": "as_t *as", "parent": 523, "children": [535, 536], "start_point": {"row": 194, "column": 65}, "end_point": {"row": 194, "column": 73}}, {"id": 535, "type": "type_identifier", "text": "as_t", "parent": 534, "children": [], "start_point": {"row": 194, "column": 65}, "end_point": {"row": 194, "column": 69}}, {"id": 536, "type": "pointer_declarator", "text": "*as", "parent": 534, "children": [537], "start_point": {"row": 194, "column": 70}, "end_point": {"row": 194, "column": 73}}, {"id": 537, "type": "*", "text": "*", "parent": 536, "children": [], "start_point": {"row": 194, "column": 70}, "end_point": {"row": 194, "column": 71}}, {"id": 538, "type": "declaration", "text": "mem_backend_data_t backend_data;", "parent": 519, "children": [539, 540], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 33}}, {"id": 539, "type": "type_identifier", "text": "mem_backend_data_t", "parent": 538, "children": [], "start_point": {"row": 196, "column": 1}, "end_point": {"row": 196, "column": 19}}, {"id": 540, "type": "identifier", "text": "backend_data", "parent": 538, "children": [], "start_point": {"row": 196, "column": 20}, "end_point": {"row": 196, "column": 32}}, {"id": 541, "type": "assignment_expression", "text": "backend_data.elf = elf", "parent": 519, "children": [542, 545, 546], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 23}}, {"id": 542, "type": "field_expression", "text": "backend_data.elf", "parent": 541, "children": [543, 544], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 17}}, {"id": 543, "type": "identifier", "text": "backend_data", "parent": 542, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 13}}, {"id": 544, "type": "field_identifier", "text": "elf", "parent": 542, "children": [], "start_point": {"row": 197, "column": 14}, "end_point": {"row": 197, "column": 17}}, {"id": 545, "type": "=", "text": "=", "parent": 541, "children": [], "start_point": {"row": 197, "column": 18}, "end_point": {"row": 197, "column": 19}}, {"id": 546, "type": "identifier", "text": "elf", "parent": 541, "children": [], "start_point": {"row": 197, "column": 20}, "end_point": {"row": 197, "column": 23}}, {"id": 547, "type": "assignment_expression", "text": "backend_data.segment = entry", "parent": 519, "children": [548, 551, 552], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 29}}, {"id": 548, "type": "field_expression", "text": "backend_data.segment", "parent": 547, "children": [549, 550], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 21}}, {"id": 549, "type": "identifier", "text": "backend_data", "parent": 548, "children": [], "start_point": {"row": 198, "column": 1}, "end_point": {"row": 198, "column": 13}}, {"id": 550, "type": "field_identifier", "text": "segment", "parent": 548, "children": [], "start_point": {"row": 198, "column": 14}, "end_point": {"row": 198, "column": 21}}, {"id": 551, "type": "=", "text": "=", "parent": 547, "children": [], "start_point": {"row": 198, "column": 22}, "end_point": {"row": 198, "column": 23}}, {"id": 552, "type": "identifier", "text": "entry", "parent": 547, "children": [], "start_point": {"row": 198, "column": 24}, "end_point": {"row": 198, "column": 29}}, {"id": 553, "type": "if_statement", "text": "if (entry->p_align > 1) {\n\t\tif ((entry->p_offset % entry->p_align) !=\n\t\t (entry->p_vaddr % entry->p_align))\n\t\t\treturn EE_INVALID;\n\t}", "parent": 519, "children": [554], "start_point": {"row": 200, "column": 1}, "end_point": {"row": 204, "column": 2}}, {"id": 554, "type": "parenthesized_expression", "text": "(entry->p_align > 1)", "parent": 553, "children": [555], "start_point": {"row": 200, "column": 4}, "end_point": {"row": 200, "column": 24}}, {"id": 555, "type": "binary_expression", "text": "entry->p_align > 1", "parent": 554, "children": [556, 559, 560], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 23}}, {"id": 556, "type": "field_expression", "text": "entry->p_align", "parent": 555, "children": [557, 558], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 19}}, {"id": 557, "type": "identifier", "text": "entry", "parent": 556, "children": [], "start_point": {"row": 200, "column": 5}, "end_point": {"row": 200, "column": 10}}, {"id": 558, "type": "field_identifier", "text": "p_align", "parent": 556, "children": [], "start_point": {"row": 200, "column": 12}, "end_point": {"row": 200, "column": 19}}, {"id": 559, "type": ">", "text": ">", "parent": 555, "children": [], "start_point": {"row": 200, "column": 20}, "end_point": {"row": 200, "column": 21}}, {"id": 560, "type": "number_literal", "text": "1", "parent": 555, "children": [], "start_point": {"row": 200, "column": 22}, "end_point": {"row": 200, "column": 23}}, {"id": 561, "type": "if_statement", "text": "if ((entry->p_offset % entry->p_align) !=\n\t\t (entry->p_vaddr % entry->p_align))\n\t\t\treturn EE_INVALID;", "parent": 553, "children": [562, 583], "start_point": {"row": 201, "column": 2}, "end_point": {"row": 203, "column": 21}}, {"id": 562, "type": "parenthesized_expression", "text": "((entry->p_offset % entry->p_align) !=\n\t\t (entry->p_vaddr % entry->p_align))", "parent": 561, "children": [563], "start_point": {"row": 201, "column": 5}, "end_point": {"row": 202, "column": 40}}, {"id": 563, "type": "binary_expression", "text": "(entry->p_offset % entry->p_align) !=\n\t\t (entry->p_vaddr % entry->p_align)", "parent": 562, "children": [564, 573, 574], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 202, "column": 39}}, {"id": 564, "type": "parenthesized_expression", "text": "(entry->p_offset % entry->p_align)", "parent": 563, "children": [565], "start_point": {"row": 201, "column": 6}, "end_point": {"row": 201, "column": 40}}, {"id": 565, "type": "binary_expression", "text": "entry->p_offset % entry->p_align", "parent": 564, "children": [566, 569, 570], "start_point": {"row": 201, "column": 7}, "end_point": {"row": 201, "column": 39}}, {"id": 566, "type": "field_expression", "text": "entry->p_offset", "parent": 565, "children": [567, 568], "start_point": {"row": 201, "column": 7}, "end_point": {"row": 201, "column": 22}}, {"id": 567, "type": "identifier", "text": "entry", "parent": 566, "children": [], "start_point": {"row": 201, "column": 7}, "end_point": {"row": 201, "column": 12}}, {"id": 568, "type": "field_identifier", "text": "p_offset", "parent": 566, "children": [], "start_point": {"row": 201, "column": 14}, "end_point": {"row": 201, "column": 22}}, {"id": 569, "type": "%", "text": "%", "parent": 565, "children": [], "start_point": {"row": 201, "column": 23}, "end_point": {"row": 201, "column": 24}}, {"id": 570, "type": "field_expression", "text": "entry->p_align", "parent": 565, "children": [571, 572], "start_point": {"row": 201, "column": 25}, "end_point": {"row": 201, "column": 39}}, {"id": 571, "type": "identifier", "text": "entry", "parent": 570, "children": [], "start_point": {"row": 201, "column": 25}, "end_point": {"row": 201, "column": 30}}, {"id": 572, "type": "field_identifier", "text": "p_align", "parent": 570, "children": [], "start_point": {"row": 201, "column": 32}, "end_point": {"row": 201, "column": 39}}, {"id": 573, "type": "!=", "text": "!=", "parent": 563, "children": [], "start_point": {"row": 201, "column": 41}, "end_point": {"row": 201, "column": 43}}, {"id": 574, "type": "parenthesized_expression", "text": "(entry->p_vaddr % entry->p_align)", "parent": 563, "children": [575], "start_point": {"row": 202, "column": 6}, "end_point": {"row": 202, "column": 39}}, {"id": 575, "type": "binary_expression", "text": "entry->p_vaddr % entry->p_align", "parent": 574, "children": [576, 579, 580], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 38}}, {"id": 576, "type": "field_expression", "text": "entry->p_vaddr", "parent": 575, "children": [577, 578], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 21}}, {"id": 577, "type": "identifier", "text": "entry", "parent": 576, "children": [], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 12}}, {"id": 578, "type": "field_identifier", "text": "p_vaddr", "parent": 576, "children": [], "start_point": {"row": 202, "column": 14}, "end_point": {"row": 202, "column": 21}}, {"id": 579, "type": "%", "text": "%", "parent": 575, "children": [], "start_point": {"row": 202, "column": 22}, "end_point": {"row": 202, "column": 23}}, {"id": 580, "type": "field_expression", "text": "entry->p_align", "parent": 575, "children": [581, 582], "start_point": {"row": 202, "column": 24}, "end_point": {"row": 202, "column": 38}}, {"id": 581, "type": "identifier", "text": "entry", "parent": 580, "children": [], "start_point": {"row": 202, "column": 24}, "end_point": {"row": 202, "column": 29}}, {"id": 582, "type": "field_identifier", "text": "p_align", "parent": 580, "children": [], "start_point": {"row": 202, "column": 31}, "end_point": {"row": 202, "column": 38}}, {"id": 583, "type": "return_statement", "text": "return EE_INVALID;", "parent": 561, "children": [584], "start_point": {"row": 203, "column": 3}, "end_point": {"row": 203, "column": 21}}, {"id": 584, "type": "identifier", "text": "EE_INVALID", "parent": 583, "children": [], "start_point": {"row": 203, "column": 10}, "end_point": {"row": 203, "column": 20}}, {"id": 585, "type": "declaration", "text": "unsigned int flags = 0;", "parent": 519, "children": [586, 589], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 24}}, {"id": 586, "type": "sized_type_specifier", "text": "unsigned int", "parent": 585, "children": [587, 588], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 13}}, {"id": 587, "type": "unsigned", "text": "unsigned", "parent": 586, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 9}}, {"id": 588, "type": "primitive_type", "text": "int", "parent": 586, "children": [], "start_point": {"row": 206, "column": 10}, "end_point": {"row": 206, "column": 13}}, {"id": 589, "type": "init_declarator", "text": "flags = 0", "parent": 585, "children": [590, 591, 592], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 23}}, {"id": 590, "type": "identifier", "text": "flags", "parent": 589, "children": [], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 19}}, {"id": 591, "type": "=", "text": "=", "parent": 589, "children": [], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 21}}, {"id": 592, "type": "number_literal", "text": "0", "parent": 589, "children": [], "start_point": {"row": 206, "column": 22}, "end_point": {"row": 206, "column": 23}}, {"id": 593, "type": "if_statement", "text": "if (entry->p_flags & PF_X)\n\t\tflags |= AS_AREA_EXEC;", "parent": 519, "children": [594], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 209, "column": 24}}, {"id": 594, "type": "parenthesized_expression", "text": "(entry->p_flags & PF_X)", "parent": 593, "children": [595], "start_point": {"row": 208, "column": 4}, "end_point": {"row": 208, "column": 27}}, {"id": 595, "type": "binary_expression", "text": "entry->p_flags & PF_X", "parent": 594, "children": [596, 599], "start_point": {"row": 208, "column": 5}, "end_point": {"row": 208, "column": 26}}, {"id": 596, "type": "field_expression", "text": "entry->p_flags", "parent": 595, "children": [597, 598], "start_point": {"row": 208, "column": 5}, "end_point": {"row": 208, "column": 19}}, {"id": 597, "type": "identifier", "text": "entry", "parent": 596, "children": [], "start_point": {"row": 208, "column": 5}, "end_point": {"row": 208, "column": 10}}, {"id": 598, "type": "field_identifier", "text": "p_flags", "parent": 596, "children": [], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 19}}, {"id": 599, "type": "identifier", "text": "PF_X", "parent": 595, "children": [], "start_point": {"row": 208, "column": 22}, "end_point": {"row": 208, "column": 26}}, {"id": 600, "type": "assignment_expression", "text": "flags |= AS_AREA_EXEC", "parent": 593, "children": [601, 602, 603], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 209, "column": 23}}, {"id": 601, "type": "identifier", "text": "flags", "parent": 600, "children": [], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 209, "column": 7}}, {"id": 602, "type": "|=", "text": "|=", "parent": 600, "children": [], "start_point": {"row": 209, "column": 8}, "end_point": {"row": 209, "column": 10}}, {"id": 603, "type": "identifier", "text": "AS_AREA_EXEC", "parent": 600, "children": [], "start_point": {"row": 209, "column": 11}, "end_point": {"row": 209, "column": 23}}, {"id": 604, "type": "if_statement", "text": "if (entry->p_flags & PF_W)\n\t\tflags |= AS_AREA_WRITE;", "parent": 519, "children": [605], "start_point": {"row": 211, "column": 1}, "end_point": {"row": 212, "column": 25}}, {"id": 605, "type": "parenthesized_expression", "text": "(entry->p_flags & PF_W)", "parent": 604, "children": [606], "start_point": {"row": 211, "column": 4}, "end_point": {"row": 211, "column": 27}}, {"id": 606, "type": "binary_expression", "text": "entry->p_flags & PF_W", "parent": 605, "children": [607, 610], "start_point": {"row": 211, "column": 5}, "end_point": {"row": 211, "column": 26}}, {"id": 607, "type": "field_expression", "text": "entry->p_flags", "parent": 606, "children": [608, 609], "start_point": {"row": 211, "column": 5}, "end_point": {"row": 211, "column": 19}}, {"id": 608, "type": "identifier", "text": "entry", "parent": 607, "children": [], "start_point": {"row": 211, "column": 5}, "end_point": {"row": 211, "column": 10}}, {"id": 609, "type": "field_identifier", "text": "p_flags", "parent": 607, "children": [], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 19}}, {"id": 610, "type": "identifier", "text": "PF_W", "parent": 606, "children": [], "start_point": {"row": 211, "column": 22}, "end_point": {"row": 211, "column": 26}}, {"id": 611, "type": "assignment_expression", "text": "flags |= AS_AREA_WRITE", "parent": 604, "children": [612, 613, 614], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 212, "column": 24}}, {"id": 612, "type": "identifier", "text": "flags", "parent": 611, "children": [], "start_point": {"row": 212, "column": 2}, "end_point": {"row": 212, "column": 7}}, {"id": 613, "type": "|=", "text": "|=", "parent": 611, "children": [], "start_point": {"row": 212, "column": 8}, "end_point": {"row": 212, "column": 10}}, {"id": 614, "type": "identifier", "text": "AS_AREA_WRITE", "parent": 611, "children": [], "start_point": {"row": 212, "column": 11}, "end_point": {"row": 212, "column": 24}}, {"id": 615, "type": "if_statement", "text": "if (entry->p_flags & PF_R)\n\t\tflags |= AS_AREA_READ;", "parent": 519, "children": [616], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 215, "column": 24}}, {"id": 616, "type": "parenthesized_expression", "text": "(entry->p_flags & PF_R)", "parent": 615, "children": [617], "start_point": {"row": 214, "column": 4}, "end_point": {"row": 214, "column": 27}}, {"id": 617, "type": "binary_expression", "text": "entry->p_flags & PF_R", "parent": 616, "children": [618, 621], "start_point": {"row": 214, "column": 5}, "end_point": {"row": 214, "column": 26}}, {"id": 618, "type": "field_expression", "text": "entry->p_flags", "parent": 617, "children": [619, 620], "start_point": {"row": 214, "column": 5}, "end_point": {"row": 214, "column": 19}}, {"id": 619, "type": "identifier", "text": "entry", "parent": 618, "children": [], "start_point": {"row": 214, "column": 5}, "end_point": {"row": 214, "column": 10}}, {"id": 620, "type": "field_identifier", "text": "p_flags", "parent": 618, "children": [], "start_point": {"row": 214, "column": 12}, "end_point": {"row": 214, "column": 19}}, {"id": 621, "type": "identifier", "text": "PF_R", "parent": 617, "children": [], "start_point": {"row": 214, "column": 22}, "end_point": {"row": 214, "column": 26}}, {"id": 622, "type": "assignment_expression", "text": "flags |= AS_AREA_READ", "parent": 615, "children": [623, 624, 625], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 23}}, {"id": 623, "type": "identifier", "text": "flags", "parent": 622, "children": [], "start_point": {"row": 215, "column": 2}, "end_point": {"row": 215, "column": 7}}, {"id": 624, "type": "|=", "text": "|=", "parent": 622, "children": [], "start_point": {"row": 215, "column": 8}, "end_point": {"row": 215, "column": 10}}, {"id": 625, "type": "identifier", "text": "AS_AREA_READ", "parent": 622, "children": [], "start_point": {"row": 215, "column": 11}, "end_point": {"row": 215, "column": 23}}, {"id": 626, "type": "assignment_expression", "text": "flags |= AS_AREA_CACHEABLE", "parent": 519, "children": [627, 628, 629], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 27}}, {"id": 627, "type": "identifier", "text": "flags", "parent": 626, "children": [], "start_point": {"row": 217, "column": 1}, "end_point": {"row": 217, "column": 6}}, {"id": 628, "type": "|=", "text": "|=", "parent": 626, "children": [], "start_point": {"row": 217, "column": 7}, "end_point": {"row": 217, "column": 9}}, {"id": 629, "type": "identifier", "text": "AS_AREA_CACHEABLE", "parent": 626, "children": [], "start_point": {"row": 217, "column": 10}, "end_point": {"row": 217, "column": 27}}, {"id": 630, "type": "declaration", "text": "uintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);", "parent": 519, "children": [631, 632], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 56}}, {"id": 631, "type": "primitive_type", "text": "uintptr_t", "parent": 630, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 10}}, {"id": 632, "type": "init_declarator", "text": "base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)", "parent": 630, "children": [633, 634, 635], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 55}}, {"id": 633, "type": "identifier", "text": "base", "parent": 632, "children": [], "start_point": {"row": 224, "column": 11}, "end_point": {"row": 224, "column": 15}}, {"id": 634, "type": "=", "text": "=", "parent": 632, "children": [], "start_point": {"row": 224, "column": 16}, "end_point": {"row": 224, "column": 17}}, {"id": 635, "type": "call_expression", "text": "ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE)", "parent": 632, "children": [636, 637], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 55}}, {"id": 636, "type": "identifier", "text": "ALIGN_DOWN", "parent": 635, "children": [], "start_point": {"row": 224, "column": 18}, "end_point": {"row": 224, "column": 28}}, {"id": 637, "type": "argument_list", "text": "(entry->p_vaddr, PAGE_SIZE)", "parent": 635, "children": [638, 641], "start_point": {"row": 224, "column": 28}, "end_point": {"row": 224, "column": 55}}, {"id": 638, "type": "field_expression", "text": "entry->p_vaddr", "parent": 637, "children": [639, 640], "start_point": {"row": 224, "column": 29}, "end_point": {"row": 224, "column": 43}}, {"id": 639, "type": "identifier", "text": "entry", "parent": 638, "children": [], "start_point": {"row": 224, "column": 29}, "end_point": {"row": 224, "column": 34}}, {"id": 640, "type": "field_identifier", "text": "p_vaddr", "parent": 638, "children": [], "start_point": {"row": 224, "column": 36}, "end_point": {"row": 224, "column": 43}}, {"id": 641, "type": "identifier", "text": "PAGE_SIZE", "parent": 637, "children": [], "start_point": {"row": 224, "column": 45}, "end_point": {"row": 224, "column": 54}}, {"id": 642, "type": "declaration", "text": "size_t mem_sz = entry->p_memsz + (entry->p_vaddr - base);", "parent": 519, "children": [643, 644], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 58}}, {"id": 643, "type": "primitive_type", "text": "size_t", "parent": 642, "children": [], "start_point": {"row": 225, "column": 1}, "end_point": {"row": 225, "column": 7}}, {"id": 644, "type": "init_declarator", "text": "mem_sz = entry->p_memsz + (entry->p_vaddr - base)", "parent": 642, "children": [645, 646, 647], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 57}}, {"id": 645, "type": "identifier", "text": "mem_sz", "parent": 644, "children": [], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 14}}, {"id": 646, "type": "=", "text": "=", "parent": 644, "children": [], "start_point": {"row": 225, "column": 15}, "end_point": {"row": 225, "column": 16}}, {"id": 647, "type": "binary_expression", "text": "entry->p_memsz + (entry->p_vaddr - base)", "parent": 644, "children": [648, 651, 652], "start_point": {"row": 225, "column": 17}, "end_point": {"row": 225, "column": 57}}, {"id": 648, "type": "field_expression", "text": "entry->p_memsz", "parent": 647, "children": [649, 650], "start_point": {"row": 225, "column": 17}, "end_point": {"row": 225, "column": 31}}, {"id": 649, "type": "identifier", "text": "entry", "parent": 648, "children": [], "start_point": {"row": 225, "column": 17}, "end_point": {"row": 225, "column": 22}}, {"id": 650, "type": "field_identifier", "text": "p_memsz", "parent": 648, "children": [], "start_point": {"row": 225, "column": 24}, "end_point": {"row": 225, "column": 31}}, {"id": 651, "type": "+", "text": "+", "parent": 647, "children": [], "start_point": {"row": 225, "column": 32}, "end_point": {"row": 225, "column": 33}}, {"id": 652, "type": "parenthesized_expression", "text": "(entry->p_vaddr - base)", "parent": 647, "children": [653], "start_point": {"row": 225, "column": 34}, "end_point": {"row": 225, "column": 57}}, {"id": 653, "type": "binary_expression", "text": "entry->p_vaddr - base", "parent": 652, "children": [654, 657, 658], "start_point": {"row": 225, "column": 35}, "end_point": {"row": 225, "column": 56}}, {"id": 654, "type": "field_expression", "text": "entry->p_vaddr", "parent": 653, "children": [655, 656], "start_point": {"row": 225, "column": 35}, "end_point": {"row": 225, "column": 49}}, {"id": 655, "type": "identifier", "text": "entry", "parent": 654, "children": [], "start_point": {"row": 225, "column": 35}, "end_point": {"row": 225, "column": 40}}, {"id": 656, "type": "field_identifier", "text": "p_vaddr", "parent": 654, "children": [], "start_point": {"row": 225, "column": 42}, "end_point": {"row": 225, "column": 49}}, {"id": 657, "type": "-", "text": "-", "parent": 653, "children": [], "start_point": {"row": 225, "column": 50}, "end_point": {"row": 225, "column": 51}}, {"id": 658, "type": "identifier", "text": "base", "parent": 653, "children": [], "start_point": {"row": 225, "column": 52}, "end_point": {"row": 225, "column": 56}}, {"id": 659, "type": "declaration", "text": "as_area_t *area = as_area_create(as, flags, mem_sz,\n\t AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0);", "parent": 519, "children": [660, 661], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 228, "column": 63}}, {"id": 660, "type": "type_identifier", "text": "as_area_t", "parent": 659, "children": [], "start_point": {"row": 227, "column": 1}, "end_point": {"row": 227, "column": 10}}, {"id": 661, "type": "init_declarator", "text": "*area = as_area_create(as, flags, mem_sz,\n\t AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0)", "parent": 659, "children": [662, 665, 666], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 228, "column": 62}}, {"id": 662, "type": "pointer_declarator", "text": "*area", "parent": 661, "children": [663, 664], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 227, "column": 16}}, {"id": 663, "type": "*", "text": "*", "parent": 662, "children": [], "start_point": {"row": 227, "column": 11}, "end_point": {"row": 227, "column": 12}}, {"id": 664, "type": "identifier", "text": "area", "parent": 662, "children": [], "start_point": {"row": 227, "column": 12}, "end_point": {"row": 227, "column": 16}}, {"id": 665, "type": "=", "text": "=", "parent": 661, "children": [], "start_point": {"row": 227, "column": 17}, "end_point": {"row": 227, "column": 18}}, {"id": 666, "type": "call_expression", "text": "as_area_create(as, flags, mem_sz,\n\t AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0)", "parent": 661, "children": [667, 668], "start_point": {"row": 227, "column": 19}, "end_point": {"row": 228, "column": 62}}, {"id": 667, "type": "identifier", "text": "as_area_create", "parent": 666, "children": [], "start_point": {"row": 227, "column": 19}, "end_point": {"row": 227, "column": 33}}, {"id": 668, "type": "argument_list", "text": "(as, flags, mem_sz,\n\t AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0)", "parent": 666, "children": [669, 670, 671, 672, 674, 676, 678], "start_point": {"row": 227, "column": 33}, "end_point": {"row": 228, "column": 62}}, {"id": 669, "type": "identifier", "text": "flags", "parent": 668, "children": [], "start_point": {"row": 227, "column": 38}, "end_point": {"row": 227, "column": 43}}, {"id": 670, "type": "identifier", "text": "mem_sz", "parent": 668, "children": [], "start_point": {"row": 227, "column": 45}, "end_point": {"row": 227, "column": 51}}, {"id": 671, "type": "identifier", "text": "AS_AREA_ATTR_NONE", "parent": 668, "children": [], "start_point": {"row": 228, "column": 5}, "end_point": {"row": 228, "column": 22}}, {"id": 672, "type": "pointer_expression", "text": "&elf_backend", "parent": 668, "children": [673], "start_point": {"row": 228, "column": 24}, "end_point": {"row": 228, "column": 36}}, {"id": 673, "type": "identifier", "text": "elf_backend", "parent": 672, "children": [], "start_point": {"row": 228, "column": 25}, "end_point": {"row": 228, "column": 36}}, {"id": 674, "type": "pointer_expression", "text": "&backend_data", "parent": 668, "children": [675], "start_point": {"row": 228, "column": 38}, "end_point": {"row": 228, "column": 51}}, {"id": 675, "type": "identifier", "text": "backend_data", "parent": 674, "children": [], "start_point": {"row": 228, "column": 39}, "end_point": {"row": 228, "column": 51}}, {"id": 676, "type": "pointer_expression", "text": "&base", "parent": 668, "children": [677], "start_point": {"row": 228, "column": 53}, "end_point": {"row": 228, "column": 58}}, {"id": 677, "type": "identifier", "text": "base", "parent": 676, "children": [], "start_point": {"row": 228, "column": 54}, "end_point": {"row": 228, "column": 58}}, {"id": 678, "type": "number_literal", "text": "0", "parent": 668, "children": [], "start_point": {"row": 228, "column": 60}, "end_point": {"row": 228, "column": 61}}, {"id": 679, "type": "if_statement", "text": "if (!area)\n\t\treturn EE_MEMORY;", "parent": 519, "children": [680, 684], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 230, "column": 19}}, {"id": 680, "type": "parenthesized_expression", "text": "(!area)", "parent": 679, "children": [681], "start_point": {"row": 229, "column": 4}, "end_point": {"row": 229, "column": 11}}, {"id": 681, "type": "unary_expression", "text": "!area", "parent": 680, "children": [682, 683], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 10}}, {"id": 682, "type": "!", "text": "!", "parent": 681, "children": [], "start_point": {"row": 229, "column": 5}, "end_point": {"row": 229, "column": 6}}, {"id": 683, "type": "identifier", "text": "area", "parent": 681, "children": [], "start_point": {"row": 229, "column": 6}, "end_point": {"row": 229, "column": 10}}, {"id": 684, "type": "return_statement", "text": "return EE_MEMORY;", "parent": 679, "children": [685], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 19}}, {"id": 685, "type": "identifier", "text": "EE_MEMORY", "parent": 684, "children": [], "start_point": {"row": 230, "column": 9}, "end_point": {"row": 230, "column": 18}}, {"id": 686, "type": "return_statement", "text": "return EE_OK;", "parent": 519, "children": [687], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 14}}, {"id": 687, "type": "identifier", "text": "EE_OK", "parent": 686, "children": [], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 237, "column": 13}}, {"id": 688, "type": "function_definition", "text": "static int section_header(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)\n{\n\tswitch (entry->sh_type) {\n\tcase SHT_PROGBITS:\n\t\tif (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tdata */\n\t\t}\n\t\tbreak;\n\tcase SHT_NOBITS:\n\t\tif (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tbss */\n\t\t}\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n\t}\n\t\n\treturn EE_OK;\n}", "parent": null, "children": [689, 690], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 268, "column": 1}}, {"id": 689, "type": "primitive_type", "text": "int", "parent": 688, "children": [], "start_point": {"row": 249, "column": 7}, "end_point": {"row": 249, "column": 10}}, {"id": 690, "type": "function_declarator", "text": "section_header(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)", "parent": 688, "children": [691, 692], "start_point": {"row": 249, "column": 11}, "end_point": {"row": 250, "column": 13}}, {"id": 691, "type": "identifier", "text": "section_header", "parent": 690, "children": [], "start_point": {"row": 249, "column": 11}, "end_point": {"row": 249, "column": 25}}, {"id": 692, "type": "parameter_list", "text": "(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)", "parent": 690, "children": [693, 698, 703], "start_point": {"row": 249, "column": 25}, "end_point": {"row": 250, "column": 13}}, {"id": 693, "type": "parameter_declaration", "text": "elf_section_header_t *entry", "parent": 692, "children": [694, 695], "start_point": {"row": 249, "column": 26}, "end_point": {"row": 249, "column": 53}}, {"id": 694, "type": "type_identifier", "text": "elf_section_header_t", "parent": 693, "children": [], "start_point": {"row": 249, "column": 26}, "end_point": {"row": 249, "column": 46}}, {"id": 695, "type": "pointer_declarator", "text": "*entry", "parent": 693, "children": [696, 697], "start_point": {"row": 249, "column": 47}, "end_point": {"row": 249, "column": 53}}, {"id": 696, "type": "*", "text": "*", "parent": 695, "children": [], "start_point": {"row": 249, "column": 47}, "end_point": {"row": 249, "column": 48}}, {"id": 697, "type": "identifier", "text": "entry", "parent": 695, "children": [], "start_point": {"row": 249, "column": 48}, "end_point": {"row": 249, "column": 53}}, {"id": 698, "type": "parameter_declaration", "text": "elf_header_t *elf", "parent": 692, "children": [699, 700], "start_point": {"row": 249, "column": 55}, "end_point": {"row": 249, "column": 72}}, {"id": 699, "type": "type_identifier", "text": "elf_header_t", "parent": 698, "children": [], "start_point": {"row": 249, "column": 55}, "end_point": {"row": 249, "column": 67}}, {"id": 700, "type": "pointer_declarator", "text": "*elf", "parent": 698, "children": [701, 702], "start_point": {"row": 249, "column": 68}, "end_point": {"row": 249, "column": 72}}, {"id": 701, "type": "*", "text": "*", "parent": 700, "children": [], "start_point": {"row": 249, "column": 68}, "end_point": {"row": 249, "column": 69}}, {"id": 702, "type": "identifier", "text": "elf", "parent": 700, "children": [], "start_point": {"row": 249, "column": 69}, "end_point": {"row": 249, "column": 72}}, {"id": 703, "type": "parameter_declaration", "text": "as_t *as", "parent": 692, "children": [704, 705], "start_point": {"row": 250, "column": 4}, "end_point": {"row": 250, "column": 12}}, {"id": 704, "type": "type_identifier", "text": "as_t", "parent": 703, "children": [], "start_point": {"row": 250, "column": 4}, "end_point": {"row": 250, "column": 8}}, {"id": 705, "type": "pointer_declarator", "text": "*as", "parent": 703, "children": [706], "start_point": {"row": 250, "column": 9}, "end_point": {"row": 250, "column": 12}}, {"id": 706, "type": "*", "text": "*", "parent": 705, "children": [], "start_point": {"row": 250, "column": 9}, "end_point": {"row": 250, "column": 10}}, {"id": 707, "type": "switch_statement", "text": "switch (entry->sh_type) {\n\tcase SHT_PROGBITS:\n\t\tif (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tdata */\n\t\t}\n\t\tbreak;\n\tcase SHT_NOBITS:\n\t\tif (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tbss */\n\t\t}\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n\t}", "parent": 688, "children": [708, 709], "start_point": {"row": 252, "column": 1}, "end_point": {"row": 265, "column": 2}}, {"id": 708, "type": "switch", "text": "switch", "parent": 707, "children": [], "start_point": {"row": 252, "column": 1}, "end_point": {"row": 252, "column": 7}}, {"id": 709, "type": "parenthesized_expression", "text": "(entry->sh_type)", "parent": 707, "children": [710], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 24}}, {"id": 710, "type": "field_expression", "text": "entry->sh_type", "parent": 709, "children": [711, 712], "start_point": {"row": 252, "column": 9}, "end_point": {"row": 252, "column": 23}}, {"id": 711, "type": "identifier", "text": "entry", "parent": 710, "children": [], "start_point": {"row": 252, "column": 9}, "end_point": {"row": 252, "column": 14}}, {"id": 712, "type": "field_identifier", "text": "sh_type", "parent": 710, "children": [], "start_point": {"row": 252, "column": 16}, "end_point": {"row": 252, "column": 23}}, {"id": 713, "type": "case_statement", "text": "case SHT_PROGBITS:\n\t\tif (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tdata */\n\t\t}\n\t\tbreak;", "parent": 707, "children": [714, 715, 716, 723], "start_point": {"row": 253, "column": 1}, "end_point": {"row": 257, "column": 8}}, {"id": 714, "type": "case", "text": "case", "parent": 713, "children": [], "start_point": {"row": 253, "column": 1}, "end_point": {"row": 253, "column": 5}}, {"id": 715, "type": "identifier", "text": "SHT_PROGBITS", "parent": 713, "children": [], "start_point": {"row": 253, "column": 6}, "end_point": {"row": 253, "column": 18}}, {"id": 716, "type": "if_statement", "text": "if (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tdata */\n\t\t}", "parent": 713, "children": [717], "start_point": {"row": 254, "column": 2}, "end_point": {"row": 256, "column": 3}}, {"id": 717, "type": "parenthesized_expression", "text": "(entry->sh_flags & SHF_TLS)", "parent": 716, "children": [718], "start_point": {"row": 254, "column": 5}, "end_point": {"row": 254, "column": 32}}, {"id": 718, "type": "binary_expression", "text": "entry->sh_flags & SHF_TLS", "parent": 717, "children": [719, 722], "start_point": {"row": 254, "column": 6}, "end_point": {"row": 254, "column": 31}}, {"id": 719, "type": "field_expression", "text": "entry->sh_flags", "parent": 718, "children": [720, 721], "start_point": {"row": 254, "column": 6}, "end_point": {"row": 254, "column": 21}}, {"id": 720, "type": "identifier", "text": "entry", "parent": 719, "children": [], "start_point": {"row": 254, "column": 6}, "end_point": {"row": 254, "column": 11}}, {"id": 721, "type": "field_identifier", "text": "sh_flags", "parent": 719, "children": [], "start_point": {"row": 254, "column": 13}, "end_point": {"row": 254, "column": 21}}, {"id": 722, "type": "identifier", "text": "SHF_TLS", "parent": 718, "children": [], "start_point": {"row": 254, "column": 24}, "end_point": {"row": 254, "column": 31}}, {"id": 723, "type": "break_statement", "text": "break;", "parent": 713, "children": [724], "start_point": {"row": 257, "column": 2}, "end_point": {"row": 257, "column": 8}}, {"id": 724, "type": "break", "text": "break", "parent": 723, "children": [], "start_point": {"row": 257, "column": 2}, "end_point": {"row": 257, "column": 7}}, {"id": 725, "type": "case_statement", "text": "case SHT_NOBITS:\n\t\tif (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tbss */\n\t\t}\n\t\tbreak;", "parent": 707, "children": [726, 727, 728, 735], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 262, "column": 8}}, {"id": 726, "type": "case", "text": "case", "parent": 725, "children": [], "start_point": {"row": 258, "column": 1}, "end_point": {"row": 258, "column": 5}}, {"id": 727, "type": "identifier", "text": "SHT_NOBITS", "parent": 725, "children": [], "start_point": {"row": 258, "column": 6}, "end_point": {"row": 258, "column": 16}}, {"id": 728, "type": "if_statement", "text": "if (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tbss */\n\t\t}", "parent": 725, "children": [729], "start_point": {"row": 259, "column": 2}, "end_point": {"row": 261, "column": 3}}, {"id": 729, "type": "parenthesized_expression", "text": "(entry->sh_flags & SHF_TLS)", "parent": 728, "children": [730], "start_point": {"row": 259, "column": 5}, "end_point": {"row": 259, "column": 32}}, {"id": 730, "type": "binary_expression", "text": "entry->sh_flags & SHF_TLS", "parent": 729, "children": [731, 734], "start_point": {"row": 259, "column": 6}, "end_point": {"row": 259, "column": 31}}, {"id": 731, "type": "field_expression", "text": "entry->sh_flags", "parent": 730, "children": [732, 733], "start_point": {"row": 259, "column": 6}, "end_point": {"row": 259, "column": 21}}, {"id": 732, "type": "identifier", "text": "entry", "parent": 731, "children": [], "start_point": {"row": 259, "column": 6}, "end_point": {"row": 259, "column": 11}}, {"id": 733, "type": "field_identifier", "text": "sh_flags", "parent": 731, "children": [], "start_point": {"row": 259, "column": 13}, "end_point": {"row": 259, "column": 21}}, {"id": 734, "type": "identifier", "text": "SHF_TLS", "parent": 730, "children": [], "start_point": {"row": 259, "column": 24}, "end_point": {"row": 259, "column": 31}}, {"id": 735, "type": "break_statement", "text": "break;", "parent": 725, "children": [736], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 8}}, {"id": 736, "type": "break", "text": "break", "parent": 735, "children": [], "start_point": {"row": 262, "column": 2}, "end_point": {"row": 262, "column": 7}}, {"id": 737, "type": "case_statement", "text": "default:\n\t\tbreak;", "parent": 707, "children": [738, 739], "start_point": {"row": 263, "column": 1}, "end_point": {"row": 264, "column": 8}}, {"id": 738, "type": "default", "text": "default", "parent": 737, "children": [], "start_point": {"row": 263, "column": 1}, "end_point": {"row": 263, "column": 8}}, {"id": 739, "type": "break_statement", "text": "break;", "parent": 737, "children": [740], "start_point": {"row": 264, "column": 2}, "end_point": {"row": 264, "column": 8}}, {"id": 740, "type": "break", "text": "break", "parent": 739, "children": [], "start_point": {"row": 264, "column": 2}, "end_point": {"row": 264, "column": 7}}, {"id": 741, "type": "return_statement", "text": "return EE_OK;", "parent": 688, "children": [742], "start_point": {"row": 267, "column": 1}, "end_point": {"row": 267, "column": 14}}, {"id": 742, "type": "identifier", "text": "EE_OK", "parent": 741, "children": [], "start_point": {"row": 267, "column": 8}, "end_point": {"row": 267, "column": 13}}]}, "node_categories": {"declarations": {"functions": [50, 71, 88, 103, 107, 403, 407, 435, 437, 519, 521, 688, 690], "variables": [33, 48, 53, 57, 61, 65, 69, 74, 78, 82, 86, 91, 95, 99, 110, 115, 119, 275, 292, 321, 354, 383, 410, 440, 445, 450, 454, 524, 529, 534, 538, 585, 630, 642, 659, 693, 698, 703], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22, 24, 25, 27, 28, 30, 31], "modules": [], "enums": []}, "statements": {"expressions": [125, 126, 127, 128, 129, 130, 131, 132, 139, 140, 141, 142, 149, 150, 151, 152, 159, 160, 161, 162, 171, 172, 173, 174, 175, 176, 177, 178, 179, 186, 187, 188, 194, 195, 196, 197, 204, 205, 206, 212, 213, 214, 215, 224, 225, 226, 230, 231, 236, 237, 238, 242, 243, 248, 249, 250, 258, 259, 260, 263, 269, 283, 286, 289, 299, 300, 301, 302, 307, 308, 309, 310, 317, 326, 333, 334, 345, 348, 351, 361, 362, 363, 364, 369, 370, 371, 372, 379, 388, 394, 395, 415, 418, 421, 422, 423, 426, 432, 461, 462, 480, 492, 493, 494, 495, 542, 548, 554, 555, 556, 562, 563, 564, 565, 566, 570, 574, 575, 576, 580, 594, 595, 596, 605, 606, 607, 616, 617, 618, 635, 638, 647, 648, 652, 653, 654, 666, 672, 674, 676, 680, 681, 709, 710, 717, 718, 719, 729, 730, 731], "assignments": [279, 341, 541, 547, 600, 611, 622, 626], "loops": [278, 340], "conditionals": [39, 51, 54, 58, 62, 66, 72, 75, 79, 83, 89, 92, 96, 100, 104, 108, 111, 114, 116, 120, 123, 124, 133, 134, 135, 137, 143, 144, 145, 147, 153, 154, 155, 157, 163, 164, 165, 167, 169, 170, 180, 181, 182, 184, 189, 190, 192, 198, 199, 200, 202, 207, 208, 210, 216, 217, 218, 220, 222, 223, 227, 228, 232, 234, 235, 239, 240, 244, 246, 247, 251, 252, 254, 256, 257, 261, 266, 267, 272, 274, 276, 277, 280, 284, 287, 288, 290, 293, 297, 304, 315, 318, 319, 320, 324, 327, 329, 330, 331, 332, 335, 337, 339, 342, 346, 349, 350, 352, 355, 359, 366, 377, 380, 381, 382, 386, 389, 391, 392, 393, 396, 398, 400, 402, 408, 411, 414, 416, 419, 424, 433, 434, 438, 441, 444, 446, 449, 451, 455, 458, 459, 460, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 476, 477, 478, 481, 483, 484, 485, 486, 487, 488, 489, 490, 491, 496, 497, 501, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 516, 518, 522, 525, 528, 530, 533, 535, 539, 540, 543, 544, 546, 549, 550, 552, 553, 557, 558, 561, 567, 568, 571, 572, 577, 578, 581, 582, 584, 586, 590, 593, 597, 598, 599, 601, 603, 604, 608, 609, 610, 612, 614, 615, 619, 620, 621, 623, 625, 627, 629, 633, 636, 639, 640, 641, 645, 649, 650, 655, 656, 658, 660, 664, 667, 669, 670, 671, 673, 675, 677, 679, 683, 685, 687, 691, 694, 697, 699, 702, 704, 707, 708, 711, 712, 713, 714, 715, 716, 720, 721, 722, 725, 726, 727, 728, 732, 733, 734, 737, 742], "returns": [168, 221, 233, 245, 255, 273, 338, 399, 401, 431, 479, 500, 515, 517, 583, 684, 686, 741], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 42, 43, 44, 45, 46, 47, 282, 344, 499, 560, 592, 678], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 50, "universal_type": "function", "name": "unknown", "text_snippet": "segment_header(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int)"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "section_header(elf_section_header_t *, elf_header_t *, as_t *)"}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "load_segment(elf_segment_header_t *, elf_header_t *, as_t *)"}, {"node_id": 103, "universal_type": "function", "name": "elf_load", "text_snippet": "unsigned int elf_load(elf_header_t *header, as_t *as, unsigned int flags)\n{\n\t/* Identify ELF */\n\tif "}, {"node_id": 107, "universal_type": "function", "name": "flags)", "text_snippet": "elf_load(elf_header_t *header, as_t *as, unsigned int flags)"}, {"node_id": 403, "universal_type": "function", "name": "rc)", "text_snippet": "const char *elf_error(unsigned int rc)\n{\n\tASSERT(rc < sizeof(error_codes) / sizeof(char *));\n\t\n\tretu"}, {"node_id": 407, "universal_type": "function", "name": "rc)", "text_snippet": "elf_error(unsigned int rc)"}, {"node_id": 435, "universal_type": "function", "name": "segment_header", "text_snippet": "static int segment_header(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int"}, {"node_id": 437, "universal_type": "function", "name": "flags)", "text_snippet": "segment_header(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)"}, {"node_id": 519, "universal_type": "function", "name": "load_segment", "text_snippet": "int load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)\n{\n\tmem_backend_data_t bac"}, {"node_id": 521, "universal_type": "function", "name": "unknown", "text_snippet": "load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)"}, {"node_id": 688, "universal_type": "function", "name": "section_header", "text_snippet": "static int section_header(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)\n{\n\tswitch (e"}, {"node_id": 690, "universal_type": "function", "name": "unknown", "text_snippet": "section_header(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <lib/elf.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <debug.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <typedefs.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <mm/as.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <mm/frame.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <mm/slab.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <align.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <memstr.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <macros.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <arch.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <lib/elf_load.h>\n"}, {"node_id": 31, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2006 <NAME>\n * Copyright (c) 2006 <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\n * are met:\n *\n * - Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * - Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * - The name of the author may not be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/** @addtogroup generic\n * @{\n */\n\n/**\n * @file\n * @brief Kernel ELF loader.\n */\n\n#include <lib/elf.h>\n#include <debug.h>\n#include <typedefs.h>\n#include <mm/as.h>\n#include <mm/frame.h>\n#include <mm/slab.h>\n#include <align.h>\n#include <memstr.h>\n#include <macros.h>\n#include <arch.h>\n\n#include <lib/elf_load.h>\n\nstatic const char *error_codes[] = {\n\t\"no error\",\n\t\"invalid image\",\n\t\"address space error\",\n\t\"incompatible image\",\n\t\"unsupported image type\",\n\t\"irrecoverable error\"\n};\n\nstatic int segment_header(elf_segment_header_t *, elf_header_t *, as_t *,\n unsigned int);\nstatic int section_header(elf_section_header_t *, elf_header_t *, as_t *);\nstatic int load_segment(elf_segment_header_t *, elf_header_t *, as_t *);\n\n/** ELF loader\n *\n * @param header Pointer to ELF header in memory\n * @param as Created and properly mapped address space\n * @param flags A combination of ELD_F_*\n *\n * @return EE_OK on success\n *\n */\nunsigned int elf_load(elf_header_t *header, as_t *as, unsigned int flags)\n{\n\t/* Identify ELF */\n\tif ((header->e_ident[EI_MAG0] != ELFMAG0) ||\n\t (header->e_ident[EI_MAG1] != ELFMAG1) ||\n\t (header->e_ident[EI_MAG2] != ELFMAG2) ||\n\t (header->e_ident[EI_MAG3] != ELFMAG3))\n\t\treturn EE_INVALID;\n\t\n\t/* Identify ELF compatibility */\n\tif ((header->e_ident[EI_DATA] != ELF_DATA_ENCODING) ||\n\t (header->e_machine != ELF_MACHINE) ||\n\t (header->e_ident[EI_VERSION] != EV_CURRENT) ||\n\t (header->e_version != EV_CURRENT) ||\n\t (header->e_ident[EI_CLASS] != ELF_CLASS))\n\t\treturn EE_INCOMPATIBLE;\n\t\n\tif (header->e_phentsize != sizeof(elf_segment_header_t))\n\t\treturn EE_INCOMPATIBLE;\n\t\n\tif (header->e_shentsize != sizeof(elf_section_header_t))\n\t\treturn EE_INCOMPATIBLE;\n\t\n\t/* Check if the object type is supported. */\n\tif (header->e_type != ET_EXEC)\n\t\treturn EE_UNSUPPORTED;\n\t\n\t/* Check if the ELF image starts on a page boundary */\n\tif (ALIGN_UP((uintptr_t) header, PAGE_SIZE) != (uintptr_t) header)\n\t\treturn EE_UNSUPPORTED;\n\t\n\t/* Walk through all segment headers and process them. */\n\telf_half i;\n\tfor (i = 0; i < header->e_phnum; i++) {\n\t\telf_segment_header_t *seghdr =\n\t\t &((elf_segment_header_t *)(((uint8_t *) header) +\n\t\t header->e_phoff))[i];\n\t\t\n\t\tint rc = segment_header(seghdr, header, as, flags);\n\t\tif (rc != EE_OK)\n\t\t\treturn rc;\n\t}\n\t\n\t/* Inspect all section headers and process them. */\n\tfor (i = 0; i < header->e_shnum; i++) {\n\t\telf_section_header_t *sechdr =\n\t\t &((elf_section_header_t *)(((uint8_t *) header) +\n\t\t header->e_shoff))[i];\n\t\t\n\t\tint rc = section_header(sechdr, header, as);\n\t\tif (rc != EE_OK)\n\t\t\treturn rc;\n\t}\n\t\n\treturn EE_OK;\n}\n\n/** Print error message according to error code.\n *\n * @param rc Return code returned by elf_load().\n *\n * @return NULL terminated description of error.\n *\n */\nconst char *elf_error(unsigned int rc)\n{\n\tASSERT(rc < sizeof(error_codes) / sizeof(char *));\n\t\n\treturn error_codes[rc];\n}\n\n/** Process segment header.\n *\n * @param entry Segment header.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */\nstatic int segment_header(elf_segment_header_t *entry, elf_header_t *elf,\n as_t *as, unsigned int flags)\n{\n\tswitch (entry->p_type) {\n\tcase PT_NULL:\n\tcase PT_PHDR:\n\tcase PT_NOTE:\n\t\tbreak;\n\tcase PT_LOAD:\n\t\treturn load_segment(entry, elf, as);\n\tcase PT_DYNAMIC:\n\tcase PT_INTERP:\n\t\t// FIXME\n\t\t/*\n\t\tchar *interp = (char *) elf + entry->p_offset;\n\t\tif (memcmp((uintptr_t) interp, (uintptr_t) ELF_INTERP_ZSTR,\n\t\t ELF_INTERP_ZLEN) != 0) {\n\t\t\treturn EE_UNSUPPORTED;\n\t\t} */\n\t\tif ((flags & ELD_F_LOADER) == 0)\n\t\t\treturn EE_LOADER;\n\t\tbreak;\n\tcase PT_SHLIB:\n\tcase PT_LOPROC:\n\tcase PT_HIPROC:\n\tdefault:\n\t\treturn EE_UNSUPPORTED;\n\t}\n\treturn EE_OK;\n}\n\n/** Load segment described by program header entry.\n *\n * @param entry Program header entry describing segment to be loaded.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */\nint load_segment(elf_segment_header_t *entry, elf_header_t *elf, as_t *as)\n{\n\tmem_backend_data_t backend_data;\n\tbackend_data.elf = elf;\n\tbackend_data.segment = entry;\n\t\n\tif (entry->p_align > 1) {\n\t\tif ((entry->p_offset % entry->p_align) !=\n\t\t (entry->p_vaddr % entry->p_align))\n\t\t\treturn EE_INVALID;\n\t}\n\t\n\tunsigned int flags = 0;\n\t\n\tif (entry->p_flags & PF_X)\n\t\tflags |= AS_AREA_EXEC;\n\t\n\tif (entry->p_flags & PF_W)\n\t\tflags |= AS_AREA_WRITE;\n\t\n\tif (entry->p_flags & PF_R)\n\t\tflags |= AS_AREA_READ;\n\t\n\tflags |= AS_AREA_CACHEABLE;\n\t\n\t/*\n\t * Align vaddr down, inserting a little \"gap\" at the beginning.\n\t * Adjust area size, so that its end remains in place.\n\t *\n\t */\n\tuintptr_t base = ALIGN_DOWN(entry->p_vaddr, PAGE_SIZE);\n\tsize_t mem_sz = entry->p_memsz + (entry->p_vaddr - base);\n\t\n\tas_area_t *area = as_area_create(as, flags, mem_sz,\n\t AS_AREA_ATTR_NONE, &elf_backend, &backend_data, &base, 0);\n\tif (!area)\n\t\treturn EE_MEMORY;\n\t\n\t/*\n\t * The segment will be mapped on demand by elf_page_fault().\n\t *\n\t */\n\t\n\treturn EE_OK;\n}\n\n/** Process section header.\n *\n * @param entry Segment header.\n * @param elf ELF header.\n * @param as Address space into wich the ELF is being loaded.\n *\n * @return EE_OK on success, error code otherwise.\n *\n */\nstatic int section_header(elf_section_header_t *entry, elf_header_t *elf,\n as_t *as)\n{\n\tswitch (entry->sh_type) {\n\tcase SHT_PROGBITS:\n\t\tif (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tdata */\n\t\t}\n\t\tbreak;\n\tcase SHT_NOBITS:\n\t\tif (entry->sh_flags & SHF_TLS) {\n\t\t\t/* .tbss */\n\t\t}\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n\t}\n\t\n\treturn EE_OK;\n}\n\n/** @}\n */\n"}
80,345
c
/* Up to 20% marks will be allotted for good programming practice. These include - Comments: for non-trivial code - Indentation: align your code properly - Function use and modular programming - Do not include anything in the header other than what is already given in the template. - You are required to allocate memory Dynamically instead of static memory allocation otherwise you will get 0 marks. All Strings and Dictionaries, etc should be dynamically allocated. One of our tutors, named A, is very bad in typing. He tried to type without looking at the keyboard and ends up making a lot of mistakes. For example, he sometimes ends up with "helli" instead of "hello", "chariman" for "chairman", etc. A is very sad as he can not compose mails, write question papers, etc quickly. Please help A by writing a program which tells him the closest word in the dictionary for input words. Closeness of two word strings s1 and s2 is computed as follows: 1. If length(s1) = length(s2) then you get 1 additional points of closeness. 2. For each j such that s1[j] = s2[j], you get 2 additional points. 3. For each j such that s1[j] != s2[j], you get 0.5 addition points if s1[j] exists in s2 and s2[j] exists in s1. In the situations where j >= length(s1) but j < length(s2), you only need to check if s2[j] exists in s1 and similarly if j < length(s1) and j >= length(s2). For Example, Closeness between "hello" and "helobo" is 7.0. Closeness between "persuasion" and "perturbation" is 10.5. (The smaller the closeness parameter, the closer the strings are!) INPUT : You would be given the size N of the dictionary. This would be followed by N lines each of which has a number followed by a string. The number denotes the length of this string. These N lines constitute the contents of the dictionary. This is followed by string-length and string pairs which are the words to be corrected based on their closeness in the dictionary. Input pairs should be processed till you see a -1. OUTPUT : Print the closest string in the dictionary corresponding to each length, string pair. If there exists multiple words in the dictionary which are equally close to the input word then output the one which was added earlier to the dictionary. EXAMPLE: Input : 3 2 hi 3 hey 4 yoyo 2 hi 3 hiy 4 yoy 1 h -1 Output : hi hey yoyo hi NOTE : Words like "hi" and "Hi" should be treated as different words in the dictionary. You can make your program case insensitive as a practice problems. There are many heuristics which are used to correct a mistyped word based on a dictionary. The closeness measure defined for this problem is one of them. There may exists better heuristics. */ #include <stdio.h> #include <stdlib.h> int get_len(char s[]) { int i = 0 ; while(*(s + i) != '\0') i++; return i ; } int exists(char *a , char ch){ int i = 0 ; while(a[i] != '\0') { if(a[i] == ch) return 1; i++; } return 0; } float get_closeless(char *a, char *b) { float closeness = 0 ; int i , j; int a_len = get_len(a) , b_len = get_len(b); if(a_len == b_len) closeness += 1; for(i = 0 ; i < a_len || i < b_len ; i++) if(i < a_len && i < b_len) { if(a[i] == b[i]) closeness += 2; else {if (exists(b , a[i]) && exists(a , b[i])) closeness += 0.5;} } else{ if(i < a_len){ if(exists(b, a[i])) { closeness += 0.5; } } else if(exists(a, b[i])){ closeness += 0.5; } } return closeness ; } int get_closest_word(char *s, char **dict){ int i = 0 ; int max_closeness = - 1; int max_closeness_index = -1; while(dict[i] != NULL ){ if(get_closeless(s , dict[i]) > max_closeness){ max_closeness = get_closeless(s, dict[i]) ; max_closeness_index = i ; } i++; } return max_closeness_index ; } int main(){ int n, n_temp , e_len, i, j; char *error_word = NULL ; scanf("%d" , &n); char **dict = malloc((n + 1)*sizeof(int *)); for (i=0 ; i<n ; i++){ scanf("%d" , &n_temp); dict[i] = malloc((n_temp + 1)*sizeof(int)); scanf("%s" , dict[i]); } dict[n] = NULL ; while(1){ scanf("%d" , &n_temp); if(n_temp == - 1) break; free(error_word); error_word = malloc((n_temp + 1)*sizeof(char)); scanf("%s", error_word); printf("%s\n",dict[get_closest_word(error_word , dict)]); } return 0; }
35.38
120
(translation_unit) "/*\nUp to 20% marks will be allotted for good programming practice. These include \n - Comments: for non-trivial code \n - Indentation: align your code properly \n - Function use and modular programming \n - Do not include anything in the header other than what is already given in the template.\n - You are required to allocate memory Dynamically instead of static memory allocation otherwise you will get 0 marks. All Strings and Dictionaries, etc should be dynamically allocated. \n\nOne of our tutors, named A, is very bad in typing. He tried to type without looking at the keyboard and ends up making a lot of mistakes. For example, he sometimes ends up with "helli" instead of "hello", "chariman" for "chairman", etc. A is very sad as he can not compose mails, write question papers, etc quickly. Please help A by writing a program which tells him the closest word in the dictionary for input words. \n\nCloseness of two word strings s1 and s2 is computed as follows:\n1. If length(s1) = length(s2) then you get 1 additional points of closeness. \n2. For each j such that s1[j] = s2[j], you get 2 additional points.\n3. For each j such that s1[j] != s2[j], you get 0.5 addition points if s1[j] exists in s2 and s2[j] exists in s1. In the situations where j >= length(s1) but j < length(s2), you only need to check if s2[j] exists in s1 and similarly if j < length(s1) and j >= length(s2). \n\nFor Example, Closeness between "hello" and "helobo" is 7.0. Closeness between "persuasion" and "perturbation" is 10.5. (The smaller the closeness parameter, the closer the strings are!)\n\nINPUT : \nYou would be given the size N of the dictionary. This would be followed by N lines each of which has a number followed by a string. The number denotes the length of this string. These N lines constitute the contents of the dictionary. \nThis is followed by string-length and string pairs which are the words to be corrected based on their closeness in the dictionary. Input pairs should be processed till you see a -1. \n \nOUTPUT :\nPrint the closest string in the dictionary corresponding to each length, string pair. If there exists multiple words in the dictionary which are equally close to the input word then output the one which was added earlier to the dictionary. \n\nEXAMPLE:\nInput : \n3\n2 hi\n3 hey\n4 yoyo\n2 hi \n3 hiy \n4 yoy\n1 h\n-1\n\nOutput :\nhi \nhey \nyoyo \nhi\n\nNOTE : \nWords like "hi" and "Hi" should be treated as different words in the dictionary. You can make your program case insensitive as a practice problems. There are many heuristics which are used to correct a mistyped word based on a dictionary. The closeness measure defined for this problem is one of them. There may exists better heuristics.\n*/\n#include <stdio.h>\n#include <stdlib.h>\n\nint get_len(char s[])\n{\n int i = 0 ; \n while(*(s + i) != '\0')\n i++;\n\n return i ; \n}\n\nint exists(char *a , char ch){\n int i = 0 ; \n while(a[i] != '\0')\n {\n if(a[i] == ch)\n return 1; \n i++; \n }\n\n return 0;\n}\n\nfloat get_closeless(char *a, char *b)\n{\n float closeness = 0 ;\n int i , j;\n\n int a_len = get_len(a) , b_len = get_len(b); \n\n if(a_len == b_len)\n closeness += 1; \n\n for(i = 0 ; i < a_len || i < b_len ; i++)\n if(i < a_len && i < b_len)\n { if(a[i] == b[i])\n closeness += 2;\n else {if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;} \n }\n else{\n if(i < a_len){\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }\n else if(exists(a, b[i])){\n closeness += 0.5;\n }\n\n }\n\n return closeness ; \n}\n\nint get_closest_word(char *s, char **dict){\n int i = 0 ; \n int max_closeness = - 1; \n int max_closeness_index = -1;\n while(dict[i] != NULL ){\n if(get_closeless(s , dict[i]) > max_closeness){\n max_closeness = get_closeless(s, dict[i]) ; \n max_closeness_index = i ; \n }\n i++;\n } \n return max_closeness_index ;\n} \n\nint main(){\n int n, n_temp , e_len, i, j;\n char *error_word = NULL ;\n\n scanf("%d" , &n);\n\n char **dict = malloc((n + 1)*sizeof(int *));\n for (i=0 ; i<n ; i++){\n scanf("%d" , &n_temp);\n dict[i] = malloc((n_temp + 1)*sizeof(int));\n scanf("%s" , dict[i]);\n }\n dict[n] = NULL ;\n\n while(1){\n scanf("%d" , &n_temp);\n if(n_temp == - 1)\n break;\n\n free(error_word);\n error_word = malloc((n_temp + 1)*sizeof(char));\n scanf("%s", error_word);\n printf("%s\n",dict[get_closest_word(error_word , dict)]);\n \n }\n return 0;\n\n}" (comment) "/*\nUp to 20% marks will be allotted for good programming practice. These include \n - Comments: for non-trivial code \n - Indentation: align your code properly \n - Function use and modular programming \n - Do not include anything in the header other than what is already given in the template.\n - You are required to allocate memory Dynamically instead of static memory allocation otherwise you will get 0 marks. All Strings and Dictionaries, etc should be dynamically allocated. \n\nOne of our tutors, named A, is very bad in typing. He tried to type without looking at the keyboard and ends up making a lot of mistakes. For example, he sometimes ends up with "helli" instead of "hello", "chariman" for "chairman", etc. A is very sad as he can not compose mails, write question papers, etc quickly. Please help A by writing a program which tells him the closest word in the dictionary for input words. \n\nCloseness of two word strings s1 and s2 is computed as follows:\n1. If length(s1) = length(s2) then you get 1 additional points of closeness. \n2. For each j such that s1[j] = s2[j], you get 2 additional points.\n3. For each j such that s1[j] != s2[j], you get 0.5 addition points if s1[j] exists in s2 and s2[j] exists in s1. In the situations where j >= length(s1) but j < length(s2), you only need to check if s2[j] exists in s1 and similarly if j < length(s1) and j >= length(s2). \n\nFor Example, Closeness between "hello" and "helobo" is 7.0. Closeness between "persuasion" and "perturbation" is 10.5. (The smaller the closeness parameter, the closer the strings are!)\n\nINPUT : \nYou would be given the size N of the dictionary. This would be followed by N lines each of which has a number followed by a string. The number denotes the length of this string. These N lines constitute the contents of the dictionary. \nThis is followed by string-length and string pairs which are the words to be corrected based on their closeness in the dictionary. Input pairs should be processed till you see a -1. \n \nOUTPUT :\nPrint the closest string in the dictionary corresponding to each length, string pair. If there exists multiple words in the dictionary which are equally close to the input word then output the one which was added earlier to the dictionary. \n\nEXAMPLE:\nInput : \n3\n2 hi\n3 hey\n4 yoyo\n2 hi \n3 hiy \n4 yoy\n1 h\n-1\n\nOutput :\nhi \nhey \nyoyo \nhi\n\nNOTE : \nWords like "hi" and "Hi" should be treated as different words in the dictionary. You can make your program case insensitive as a practice problems. There are many heuristics which are used to correct a mistyped word based on a dictionary. The closeness measure defined for this problem is one of them. There may exists better heuristics.\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 get_len(char s[])\n{\n int i = 0 ; \n while(*(s + i) != '\0')\n i++;\n\n return i ; \n}" (primitive_type) "int" (function_declarator) "get_len(char s[])" (identifier) "get_len" (parameter_list) "(char s[])" (() "(" (parameter_declaration) "char s[]" (primitive_type) "char" (array_declarator) "s[]" (identifier) "s" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n int i = 0 ; \n while(*(s + i) != '\0')\n i++;\n\n return i ; \n}" ({) "{" (declaration) "int i = 0 ;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while(*(s + i) != '\0')\n i++;" (while) "while" (parenthesized_expression) "(*(s + i) != '\0')" (() "(" (binary_expression) "*(s + i) != '\0'" (pointer_expression) "*(s + i)" (*) "*" (parenthesized_expression) "(s + i)" (() "(" (binary_expression) "s + i" (identifier) "s" (+) "+" (identifier) "i" ()) ")" (!=) "!=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" ()) ")" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (return_statement) "return i ;" (return) "return" (identifier) "i" (;) ";" (}) "}" (function_definition) "int exists(char *a , char ch){\n int i = 0 ; \n while(a[i] != '\0')\n {\n if(a[i] == ch)\n return 1; \n i++; \n }\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "exists(char *a , char ch)" (identifier) "exists" (parameter_list) "(char *a , char ch)" (() "(" (parameter_declaration) "char *a" (primitive_type) "char" (pointer_declarator) "*a" (*) "*" (identifier) "a" (,) "," (parameter_declaration) "char ch" (primitive_type) "char" (identifier) "ch" ()) ")" (compound_statement) "{\n int i = 0 ; \n while(a[i] != '\0')\n {\n if(a[i] == ch)\n return 1; \n i++; \n }\n\n return 0;\n}" ({) "{" (declaration) "int i = 0 ;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while(a[i] != '\0')\n {\n if(a[i] == ch)\n return 1; \n i++; \n }" (while) "while" (parenthesized_expression) "(a[i] != '\0')" (() "(" (binary_expression) "a[i] != '\0'" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" ()) ")" (compound_statement) "{\n if(a[i] == ch)\n return 1; \n i++; \n }" ({) "{" (if_statement) "if(a[i] == ch)\n return 1;" (if) "if" (parenthesized_expression) "(a[i] == ch)" (() "(" (binary_expression) "a[i] == ch" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (==) "==" (identifier) "ch" ()) ")" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "float get_closeless(char *a, char *b)\n{\n float closeness = 0 ;\n int i , j;\n\n int a_len = get_len(a) , b_len = get_len(b); \n\n if(a_len == b_len)\n closeness += 1; \n\n for(i = 0 ; i < a_len || i < b_len ; i++)\n if(i < a_len && i < b_len)\n { if(a[i] == b[i])\n closeness += 2;\n else {if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;} \n }\n else{\n if(i < a_len){\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }\n else if(exists(a, b[i])){\n closeness += 0.5;\n }\n\n }\n\n return closeness ; \n}" (primitive_type) "float" (function_declarator) "get_closeless(char *a, char *b)" (identifier) "get_closeless" (parameter_list) "(char *a, char *b)" (() "(" (parameter_declaration) "char *a" (primitive_type) "char" (pointer_declarator) "*a" (*) "*" (identifier) "a" (,) "," (parameter_declaration) "char *b" (primitive_type) "char" (pointer_declarator) "*b" (*) "*" (identifier) "b" ()) ")" (compound_statement) "{\n float closeness = 0 ;\n int i , j;\n\n int a_len = get_len(a) , b_len = get_len(b); \n\n if(a_len == b_len)\n closeness += 1; \n\n for(i = 0 ; i < a_len || i < b_len ; i++)\n if(i < a_len && i < b_len)\n { if(a[i] == b[i])\n closeness += 2;\n else {if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;} \n }\n else{\n if(i < a_len){\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }\n else if(exists(a, b[i])){\n closeness += 0.5;\n }\n\n }\n\n return closeness ; \n}" ({) "{" (declaration) "float closeness = 0 ;" (primitive_type) "float" (init_declarator) "closeness = 0" (identifier) "closeness" (=) "=" (number_literal) "0" (;) ";" (declaration) "int i , j;" (primitive_type) "int" (identifier) "i" (,) "," (identifier) "j" (;) ";" (declaration) "int a_len = get_len(a) , b_len = get_len(b);" (primitive_type) "int" (init_declarator) "a_len = get_len(a)" (identifier) "a_len" (=) "=" (call_expression) "get_len(a)" (identifier) "get_len" (argument_list) "(a)" (() "(" (identifier) "a" ()) ")" (,) "," (init_declarator) "b_len = get_len(b)" (identifier) "b_len" (=) "=" (call_expression) "get_len(b)" (identifier) "get_len" (argument_list) "(b)" (() "(" (identifier) "b" ()) ")" (;) ";" (if_statement) "if(a_len == b_len)\n closeness += 1;" (if) "if" (parenthesized_expression) "(a_len == b_len)" (() "(" (binary_expression) "a_len == b_len" (identifier) "a_len" (==) "==" (identifier) "b_len" ()) ")" (expression_statement) "closeness += 1;" (assignment_expression) "closeness += 1" (identifier) "closeness" (+=) "+=" (number_literal) "1" (;) ";" (for_statement) "for(i = 0 ; i < a_len || i < b_len ; i++)\n if(i < a_len && i < b_len)\n { if(a[i] == b[i])\n closeness += 2;\n else {if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;} \n }\n else{\n if(i < a_len){\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }\n else if(exists(a, b[i])){\n closeness += 0.5;\n }\n\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < a_len || i < b_len" (binary_expression) "i < a_len" (identifier) "i" (<) "<" (identifier) "a_len" (||) "||" (binary_expression) "i < b_len" (identifier) "i" (<) "<" (identifier) "b_len" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (if_statement) "if(i < a_len && i < b_len)\n { if(a[i] == b[i])\n closeness += 2;\n else {if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;} \n }\n else{\n if(i < a_len){\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }\n else if(exists(a, b[i])){\n closeness += 0.5;\n }\n\n }" (if) "if" (parenthesized_expression) "(i < a_len && i < b_len)" (() "(" (binary_expression) "i < a_len && i < b_len" (binary_expression) "i < a_len" (identifier) "i" (<) "<" (identifier) "a_len" (&&) "&&" (binary_expression) "i < b_len" (identifier) "i" (<) "<" (identifier) "b_len" ()) ")" (compound_statement) "{ if(a[i] == b[i])\n closeness += 2;\n else {if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;} \n }" ({) "{" (if_statement) "if(a[i] == b[i])\n closeness += 2;\n else {if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;}" (if) "if" (parenthesized_expression) "(a[i] == b[i])" (() "(" (binary_expression) "a[i] == b[i]" (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" (==) "==" (subscript_expression) "b[i]" (identifier) "b" ([) "[" (identifier) "i" (]) "]" ()) ")" (expression_statement) "closeness += 2;" (assignment_expression) "closeness += 2" (identifier) "closeness" (+=) "+=" (number_literal) "2" (;) ";" (else_clause) "else {if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;}" (else) "else" (compound_statement) "{if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;}" ({) "{" (if_statement) "if (exists(b , a[i]) && exists(a , b[i]))\n closeness += 0.5;" (if) "if" (parenthesized_expression) "(exists(b , a[i]) && exists(a , b[i]))" (() "(" (binary_expression) "exists(b , a[i]) && exists(a , b[i])" (call_expression) "exists(b , a[i])" (identifier) "exists" (argument_list) "(b , a[i])" (() "(" (identifier) "b" (,) "," (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" ()) ")" (&&) "&&" (call_expression) "exists(a , b[i])" (identifier) "exists" (argument_list) "(a , b[i])" (() "(" (identifier) "a" (,) "," (subscript_expression) "b[i]" (identifier) "b" ([) "[" (identifier) "i" (]) "]" ()) ")" ()) ")" (expression_statement) "closeness += 0.5;" (assignment_expression) "closeness += 0.5" (identifier) "closeness" (+=) "+=" (number_literal) "0.5" (;) ";" (}) "}" (}) "}" (else_clause) "else{\n if(i < a_len){\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }\n else if(exists(a, b[i])){\n closeness += 0.5;\n }\n\n }" (else) "else" (compound_statement) "{\n if(i < a_len){\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }\n else if(exists(a, b[i])){\n closeness += 0.5;\n }\n\n }" ({) "{" (if_statement) "if(i < a_len){\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }\n else if(exists(a, b[i])){\n closeness += 0.5;\n }" (if) "if" (parenthesized_expression) "(i < a_len)" (() "(" (binary_expression) "i < a_len" (identifier) "i" (<) "<" (identifier) "a_len" ()) ")" (compound_statement) "{\n if(exists(b, a[i]))\n { \n closeness += 0.5; \n }\n }" ({) "{" (if_statement) "if(exists(b, a[i]))\n { \n closeness += 0.5; \n }" (if) "if" (parenthesized_expression) "(exists(b, a[i]))" (() "(" (call_expression) "exists(b, a[i])" (identifier) "exists" (argument_list) "(b, a[i])" (() "(" (identifier) "b" (,) "," (subscript_expression) "a[i]" (identifier) "a" ([) "[" (identifier) "i" (]) "]" ()) ")" ()) ")" (compound_statement) "{ \n closeness += 0.5; \n }" ({) "{" (expression_statement) "closeness += 0.5;" (assignment_expression) "closeness += 0.5" (identifier) "closeness" (+=) "+=" (number_literal) "0.5" (;) ";" (}) "}" (}) "}" (else_clause) "else if(exists(a, b[i])){\n closeness += 0.5;\n }" (else) "else" (if_statement) "if(exists(a, b[i])){\n closeness += 0.5;\n }" (if) "if" (parenthesized_expression) "(exists(a, b[i]))" (() "(" (call_expression) "exists(a, b[i])" (identifier) "exists" (argument_list) "(a, b[i])" (() "(" (identifier) "a" (,) "," (subscript_expression) "b[i]" (identifier) "b" ([) "[" (identifier) "i" (]) "]" ()) ")" ()) ")" (compound_statement) "{\n closeness += 0.5;\n }" ({) "{" (expression_statement) "closeness += 0.5;" (assignment_expression) "closeness += 0.5" (identifier) "closeness" (+=) "+=" (number_literal) "0.5" (;) ";" (}) "}" (}) "}" (return_statement) "return closeness ;" (return) "return" (identifier) "closeness" (;) ";" (}) "}" (function_definition) "int get_closest_word(char *s, char **dict){\n int i = 0 ; \n int max_closeness = - 1; \n int max_closeness_index = -1;\n while(dict[i] != NULL ){\n if(get_closeless(s , dict[i]) > max_closeness){\n max_closeness = get_closeless(s, dict[i]) ; \n max_closeness_index = i ; \n }\n i++;\n } \n return max_closeness_index ;\n}" (primitive_type) "int" (function_declarator) "get_closest_word(char *s, char **dict)" (identifier) "get_closest_word" (parameter_list) "(char *s, char **dict)" (() "(" (parameter_declaration) "char *s" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" (,) "," (parameter_declaration) "char **dict" (primitive_type) "char" (pointer_declarator) "**dict" (*) "*" (pointer_declarator) "*dict" (*) "*" (identifier) "dict" ()) ")" (compound_statement) "{\n int i = 0 ; \n int max_closeness = - 1; \n int max_closeness_index = -1;\n while(dict[i] != NULL ){\n if(get_closeless(s , dict[i]) > max_closeness){\n max_closeness = get_closeless(s, dict[i]) ; \n max_closeness_index = i ; \n }\n i++;\n } \n return max_closeness_index ;\n}" ({) "{" (declaration) "int i = 0 ;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (declaration) "int max_closeness = - 1;" (primitive_type) "int" (init_declarator) "max_closeness = - 1" (identifier) "max_closeness" (=) "=" (unary_expression) "- 1" (-) "-" (number_literal) "1" (;) ";" (declaration) "int max_closeness_index = -1;" (primitive_type) "int" (init_declarator) "max_closeness_index = -1" (identifier) "max_closeness_index" (=) "=" (number_literal) "-1" (;) ";" (while_statement) "while(dict[i] != NULL ){\n if(get_closeless(s , dict[i]) > max_closeness){\n max_closeness = get_closeless(s, dict[i]) ; \n max_closeness_index = i ; \n }\n i++;\n }" (while) "while" (parenthesized_expression) "(dict[i] != NULL )" (() "(" (binary_expression) "dict[i] != NULL" (subscript_expression) "dict[i]" (identifier) "dict" ([) "[" (identifier) "i" (]) "]" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n if(get_closeless(s , dict[i]) > max_closeness){\n max_closeness = get_closeless(s, dict[i]) ; \n max_closeness_index = i ; \n }\n i++;\n }" ({) "{" (if_statement) "if(get_closeless(s , dict[i]) > max_closeness){\n max_closeness = get_closeless(s, dict[i]) ; \n max_closeness_index = i ; \n }" (if) "if" (parenthesized_expression) "(get_closeless(s , dict[i]) > max_closeness)" (() "(" (binary_expression) "get_closeless(s , dict[i]) > max_closeness" (call_expression) "get_closeless(s , dict[i])" (identifier) "get_closeless" (argument_list) "(s , dict[i])" (() "(" (identifier) "s" (,) "," (subscript_expression) "dict[i]" (identifier) "dict" ([) "[" (identifier) "i" (]) "]" ()) ")" (>) ">" (identifier) "max_closeness" ()) ")" (compound_statement) "{\n max_closeness = get_closeless(s, dict[i]) ; \n max_closeness_index = i ; \n }" ({) "{" (expression_statement) "max_closeness = get_closeless(s, dict[i]) ;" (assignment_expression) "max_closeness = get_closeless(s, dict[i])" (identifier) "max_closeness" (=) "=" (call_expression) "get_closeless(s, dict[i])" (identifier) "get_closeless" (argument_list) "(s, dict[i])" (() "(" (identifier) "s" (,) "," (subscript_expression) "dict[i]" (identifier) "dict" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (expression_statement) "max_closeness_index = i ;" (assignment_expression) "max_closeness_index = i" (identifier) "max_closeness_index" (=) "=" (identifier) "i" (;) ";" (}) "}" (expression_statement) "i++;" (update_expression) "i++" (identifier) "i" (++) "++" (;) ";" (}) "}" (return_statement) "return max_closeness_index ;" (return) "return" (identifier) "max_closeness_index" (;) ";" (}) "}" (function_definition) "int main(){\n int n, n_temp , e_len, i, j;\n char *error_word = NULL ;\n\n scanf("%d" , &n);\n\n char **dict = malloc((n + 1)*sizeof(int *));\n for (i=0 ; i<n ; i++){\n scanf("%d" , &n_temp);\n dict[i] = malloc((n_temp + 1)*sizeof(int));\n scanf("%s" , dict[i]);\n }\n dict[n] = NULL ;\n\n while(1){\n scanf("%d" , &n_temp);\n if(n_temp == - 1)\n break;\n\n free(error_word);\n error_word = malloc((n_temp + 1)*sizeof(char));\n scanf("%s", error_word);\n printf("%s\n",dict[get_closest_word(error_word , dict)]);\n \n }\n return 0;\n\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int n, n_temp , e_len, i, j;\n char *error_word = NULL ;\n\n scanf("%d" , &n);\n\n char **dict = malloc((n + 1)*sizeof(int *));\n for (i=0 ; i<n ; i++){\n scanf("%d" , &n_temp);\n dict[i] = malloc((n_temp + 1)*sizeof(int));\n scanf("%s" , dict[i]);\n }\n dict[n] = NULL ;\n\n while(1){\n scanf("%d" , &n_temp);\n if(n_temp == - 1)\n break;\n\n free(error_word);\n error_word = malloc((n_temp + 1)*sizeof(char));\n scanf("%s", error_word);\n printf("%s\n",dict[get_closest_word(error_word , dict)]);\n \n }\n return 0;\n\n}" ({) "{" (declaration) "int n, n_temp , e_len, i, j;" (primitive_type) "int" (identifier) "n" (,) "," (identifier) "n_temp" (,) "," (identifier) "e_len" (,) "," (identifier) "i" (,) "," (identifier) "j" (;) ";" (declaration) "char *error_word = NULL ;" (primitive_type) "char" (init_declarator) "*error_word = NULL" (pointer_declarator) "*error_word" (*) "*" (identifier) "error_word" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "scanf("%d" , &n);" (call_expression) "scanf("%d" , &n)" (identifier) "scanf" (argument_list) "("%d" , &n)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&n" (&) "&" (identifier) "n" ()) ")" (;) ";" (declaration) "char **dict = malloc((n + 1)*sizeof(int *));" (primitive_type) "char" (init_declarator) "**dict = malloc((n + 1)*sizeof(int *))" (pointer_declarator) "**dict" (*) "*" (pointer_declarator) "*dict" (*) "*" (identifier) "dict" (=) "=" (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" (abstract_pointer_declarator) "*" (*) "*" ()) ")" ()) ")" (;) ";" (for_statement) "for (i=0 ; i<n ; i++){\n scanf("%d" , &n_temp);\n dict[i] = malloc((n_temp + 1)*sizeof(int));\n scanf("%s" , dict[i]);\n }" (for) "for" (() "(" (assignment_expression) "i=0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i<n" (identifier) "i" (<) "<" (identifier) "n" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n scanf("%d" , &n_temp);\n dict[i] = malloc((n_temp + 1)*sizeof(int));\n scanf("%s" , dict[i]);\n }" ({) "{" (expression_statement) "scanf("%d" , &n_temp);" (call_expression) "scanf("%d" , &n_temp)" (identifier) "scanf" (argument_list) "("%d" , &n_temp)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&n_temp" (&) "&" (identifier) "n_temp" ()) ")" (;) ";" (expression_statement) "dict[i] = malloc((n_temp + 1)*sizeof(int));" (assignment_expression) "dict[i] = malloc((n_temp + 1)*sizeof(int))" (subscript_expression) "dict[i]" (identifier) "dict" ([) "[" (identifier) "i" (]) "]" (=) "=" (call_expression) "malloc((n_temp + 1)*sizeof(int))" (identifier) "malloc" (argument_list) "((n_temp + 1)*sizeof(int))" (() "(" (binary_expression) "(n_temp + 1)*sizeof(int)" (parenthesized_expression) "(n_temp + 1)" (() "(" (binary_expression) "n_temp + 1" (identifier) "n_temp" (+) "+" (number_literal) "1" ()) ")" (*) "*" (sizeof_expression) "sizeof(int)" (sizeof) "sizeof" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" ()) ")" (;) ";" (expression_statement) "scanf("%s" , dict[i]);" (call_expression) "scanf("%s" , dict[i])" (identifier) "scanf" (argument_list) "("%s" , dict[i])" (() "(" (string_literal) ""%s"" (") """ (string_content) "%s" (") """ (,) "," (subscript_expression) "dict[i]" (identifier) "dict" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (expression_statement) "dict[n] = NULL ;" (assignment_expression) "dict[n] = NULL" (subscript_expression) "dict[n]" (identifier) "dict" ([) "[" (identifier) "n" (]) "]" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (while_statement) "while(1){\n scanf("%d" , &n_temp);\n if(n_temp == - 1)\n break;\n\n free(error_word);\n error_word = malloc((n_temp + 1)*sizeof(char));\n scanf("%s", error_word);\n printf("%s\n",dict[get_closest_word(error_word , dict)]);\n \n }" (while) "while" (parenthesized_expression) "(1)" (() "(" (number_literal) "1" ()) ")" (compound_statement) "{\n scanf("%d" , &n_temp);\n if(n_temp == - 1)\n break;\n\n free(error_word);\n error_word = malloc((n_temp + 1)*sizeof(char));\n scanf("%s", error_word);\n printf("%s\n",dict[get_closest_word(error_word , dict)]);\n \n }" ({) "{" (expression_statement) "scanf("%d" , &n_temp);" (call_expression) "scanf("%d" , &n_temp)" (identifier) "scanf" (argument_list) "("%d" , &n_temp)" (() "(" (string_literal) ""%d"" (") """ (string_content) "%d" (") """ (,) "," (pointer_expression) "&n_temp" (&) "&" (identifier) "n_temp" ()) ")" (;) ";" (if_statement) "if(n_temp == - 1)\n break;" (if) "if" (parenthesized_expression) "(n_temp == - 1)" (() "(" (binary_expression) "n_temp == - 1" (identifier) "n_temp" (==) "==" (unary_expression) "- 1" (-) "-" (number_literal) "1" ()) ")" (break_statement) "break;" (break) "break" (;) ";" (expression_statement) "free(error_word);" (call_expression) "free(error_word)" (identifier) "free" (argument_list) "(error_word)" (() "(" (identifier) "error_word" ()) ")" (;) ";" (expression_statement) "error_word = malloc((n_temp + 1)*sizeof(char));" (assignment_expression) "error_word = malloc((n_temp + 1)*sizeof(char))" (identifier) "error_word" (=) "=" (call_expression) "malloc((n_temp + 1)*sizeof(char))" (identifier) "malloc" (argument_list) "((n_temp + 1)*sizeof(char))" (() "(" (binary_expression) "(n_temp + 1)*sizeof(char)" (parenthesized_expression) "(n_temp + 1)" (() "(" (binary_expression) "n_temp + 1" (identifier) "n_temp" (+) "+" (number_literal) "1" ()) ")" (*) "*" (sizeof_expression) "sizeof(char)" (sizeof) "sizeof" (() "(" (type_descriptor) "char" (primitive_type) "char" ()) ")" ()) ")" (;) ";" (expression_statement) "scanf("%s", error_word);" (call_expression) "scanf("%s", error_word)" (identifier) "scanf" (argument_list) "("%s", error_word)" (() "(" (string_literal) ""%s"" (") """ (string_content) "%s" (") """ (,) "," (identifier) "error_word" ()) ")" (;) ";" (expression_statement) "printf("%s\n",dict[get_closest_word(error_word , dict)]);" (call_expression) "printf("%s\n",dict[get_closest_word(error_word , dict)])" (identifier) "printf" (argument_list) "("%s\n",dict[get_closest_word(error_word , dict)])" (() "(" (string_literal) ""%s\n"" (") """ (string_content) "%s" (escape_sequence) "\n" (") """ (,) "," (subscript_expression) "dict[get_closest_word(error_word , dict)]" (identifier) "dict" ([) "[" (call_expression) "get_closest_word(error_word , dict)" (identifier) "get_closest_word" (argument_list) "(error_word , dict)" (() "(" (identifier) "error_word" (,) "," (identifier) "dict" ()) ")" (]) "]" ()) ")" (;) ";" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
785
0
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 35.38, "nodes": 476, "errors": 0, "source_hash": "1f6bd91145e1bc2d9d0d09515dd42718f8c5be364c39751f12f2a3d2fb08d39a", "categorized_nodes": 320}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 19}}, {"id": 6, "type": "function_definition", "text": "int get_len(char s[])\n{\n\tint i = 0 ; \n\twhile(*(s + i) != '\\0')\n\t\ti++;\n\n\treturn i ; \n}", "parent": null, "children": [7, 8], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 55, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "int", "parent": 6, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 3}}, {"id": 8, "type": "function_declarator", "text": "get_len(char s[])", "parent": 6, "children": [9, 10], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 21}}, {"id": 9, "type": "identifier", "text": "get_len", "parent": 8, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 11}}, {"id": 10, "type": "parameter_list", "text": "(char s[])", "parent": 8, "children": [11], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 21}}, {"id": 11, "type": "parameter_declaration", "text": "char s[]", "parent": 10, "children": [12, 13], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 20}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 16}}, {"id": 13, "type": "array_declarator", "text": "s[]", "parent": 11, "children": [14], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 20}}, {"id": 14, "type": "identifier", "text": "s", "parent": 13, "children": [], "start_point": {"row": 48, "column": 17}, "end_point": {"row": 48, "column": 18}}, {"id": 15, "type": "declaration", "text": "int i = 0 ;", "parent": 6, "children": [16, 17], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 12}}, {"id": 16, "type": "primitive_type", "text": "int", "parent": 15, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 4}}, {"id": 17, "type": "init_declarator", "text": "i = 0", "parent": 15, "children": [18, 19, 20], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 10}}, {"id": 18, "type": "identifier", "text": "i", "parent": 17, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 6}}, {"id": 19, "type": "=", "text": "=", "parent": 17, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 8}}, {"id": 20, "type": "number_literal", "text": "0", "parent": 17, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 10}}, {"id": 21, "type": "while_statement", "text": "while(*(s + i) != '\\0')\n\t\ti++;", "parent": 6, "children": [22], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 52, "column": 6}}, {"id": 22, "type": "parenthesized_expression", "text": "(*(s + i) != '\\0')", "parent": 21, "children": [23], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 24}}, {"id": 23, "type": "binary_expression", "text": "*(s + i) != '\\0'", "parent": 22, "children": [24, 31, 32], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 23}}, {"id": 24, "type": "pointer_expression", "text": "*(s + i)", "parent": 23, "children": [25, 26], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 15}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 8}}, {"id": 26, "type": "parenthesized_expression", "text": "(s + i)", "parent": 24, "children": [27], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 15}}, {"id": 27, "type": "binary_expression", "text": "s + i", "parent": 26, "children": [28, 29, 30], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 14}}, {"id": 28, "type": "identifier", "text": "s", "parent": 27, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 10}}, {"id": 29, "type": "+", "text": "+", "parent": 27, "children": [], "start_point": {"row": 51, "column": 11}, "end_point": {"row": 51, "column": 12}}, {"id": 30, "type": "identifier", "text": "i", "parent": 27, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 14}}, {"id": 31, "type": "!=", "text": "!=", "parent": 23, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 18}}, {"id": 32, "type": "char_literal", "text": "'\\0'", "parent": 23, "children": [33, 34, 35], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 23}}, {"id": 33, "type": "'", "text": "'", "parent": 32, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 34, "type": "escape_sequence", "text": "\\0", "parent": 32, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 22}}, {"id": 35, "type": "'", "text": "'", "parent": 32, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 23}}, {"id": 36, "type": "update_expression", "text": "i++", "parent": 21, "children": [37, 38], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 5}}, {"id": 37, "type": "identifier", "text": "i", "parent": 36, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 3}}, {"id": 38, "type": "++", "text": "++", "parent": 36, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 5}}, {"id": 39, "type": "return_statement", "text": "return i ;", "parent": 6, "children": [40], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 11}}, {"id": 40, "type": "identifier", "text": "i", "parent": 39, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 9}}, {"id": 41, "type": "function_definition", "text": "int exists(char *a , char ch){\n\tint i = 0 ; \n\twhile(a[i] != '\\0')\n\t{\n\t\tif(a[i] == ch)\n\t\t\treturn 1; \n\t\ti++; \n\t}\n\n\treturn 0;\n}", "parent": null, "children": [42, 43], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 42, "type": "primitive_type", "text": "int", "parent": 41, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 3}}, {"id": 43, "type": "function_declarator", "text": "exists(char *a , char ch)", "parent": 41, "children": [44, 45], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 29}}, {"id": 44, "type": "identifier", "text": "exists", "parent": 43, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 10}}, {"id": 45, "type": "parameter_list", "text": "(char *a , char ch)", "parent": 43, "children": [46, 51], "start_point": {"row": 57, "column": 10}, "end_point": {"row": 57, "column": 29}}, {"id": 46, "type": "parameter_declaration", "text": "char *a", "parent": 45, "children": [47, 48], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 18}}, {"id": 47, "type": "primitive_type", "text": "char", "parent": 46, "children": [], "start_point": {"row": 57, "column": 11}, "end_point": {"row": 57, "column": 15}}, {"id": 48, "type": "pointer_declarator", "text": "*a", "parent": 46, "children": [49, 50], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 18}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 17}}, {"id": 50, "type": "identifier", "text": "a", "parent": 48, "children": [], "start_point": {"row": 57, "column": 17}, "end_point": {"row": 57, "column": 18}}, {"id": 51, "type": "parameter_declaration", "text": "char ch", "parent": 45, "children": [52, 53], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 28}}, {"id": 52, "type": "primitive_type", "text": "char", "parent": 51, "children": [], "start_point": {"row": 57, "column": 21}, "end_point": {"row": 57, "column": 25}}, {"id": 53, "type": "identifier", "text": "ch", "parent": 51, "children": [], "start_point": {"row": 57, "column": 26}, "end_point": {"row": 57, "column": 28}}, {"id": 54, "type": "declaration", "text": "int i = 0 ;", "parent": 41, "children": [55, 56], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 12}}, {"id": 55, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 4}}, {"id": 56, "type": "init_declarator", "text": "i = 0", "parent": 54, "children": [57, 58, 59], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 10}}, {"id": 57, "type": "identifier", "text": "i", "parent": 56, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 6}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 8}}, {"id": 59, "type": "number_literal", "text": "0", "parent": 56, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 60, "type": "while_statement", "text": "while(a[i] != '\\0')\n\t{\n\t\tif(a[i] == ch)\n\t\t\treturn 1; \n\t\ti++; \n\t}", "parent": 41, "children": [61], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 64, "column": 2}}, {"id": 61, "type": "parenthesized_expression", "text": "(a[i] != '\\0')", "parent": 60, "children": [62], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 20}}, {"id": 62, "type": "binary_expression", "text": "a[i] != '\\0'", "parent": 61, "children": [63, 66, 67], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 19}}, {"id": 63, "type": "subscript_expression", "text": "a[i]", "parent": 62, "children": [64, 65], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 11}}, {"id": 64, "type": "identifier", "text": "a", "parent": 63, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 8}}, {"id": 65, "type": "identifier", "text": "i", "parent": 63, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 10}}, {"id": 66, "type": "!=", "text": "!=", "parent": 62, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 14}}, {"id": 67, "type": "char_literal", "text": "'\\0'", "parent": 62, "children": [68, 69, 70], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 19}}, {"id": 68, "type": "'", "text": "'", "parent": 67, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 16}}, {"id": 69, "type": "escape_sequence", "text": "\\0", "parent": 67, "children": [], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 18}}, {"id": 70, "type": "'", "text": "'", "parent": 67, "children": [], "start_point": {"row": 59, "column": 18}, "end_point": {"row": 59, "column": 19}}, {"id": 71, "type": "if_statement", "text": "if(a[i] == ch)\n\t\t\treturn 1;", "parent": 60, "children": [72, 79], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 62, "column": 12}}, {"id": 72, "type": "parenthesized_expression", "text": "(a[i] == ch)", "parent": 71, "children": [73], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 16}}, {"id": 73, "type": "binary_expression", "text": "a[i] == ch", "parent": 72, "children": [74, 77, 78], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 15}}, {"id": 74, "type": "subscript_expression", "text": "a[i]", "parent": 73, "children": [75, 76], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 9}}, {"id": 75, "type": "identifier", "text": "a", "parent": 74, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 6}}, {"id": 76, "type": "identifier", "text": "i", "parent": 74, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 8}}, {"id": 77, "type": "==", "text": "==", "parent": 73, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 12}}, {"id": 78, "type": "identifier", "text": "ch", "parent": 73, "children": [], "start_point": {"row": 61, "column": 13}, "end_point": {"row": 61, "column": 15}}, {"id": 79, "type": "return_statement", "text": "return 1;", "parent": 71, "children": [80], "start_point": {"row": 62, "column": 3}, "end_point": {"row": 62, "column": 12}}, {"id": 80, "type": "number_literal", "text": "1", "parent": 79, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 11}}, {"id": 81, "type": "update_expression", "text": "i++", "parent": 60, "children": [82, 83], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 5}}, {"id": 82, "type": "identifier", "text": "i", "parent": 81, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 3}}, {"id": 83, "type": "++", "text": "++", "parent": 81, "children": [], "start_point": {"row": 63, "column": 3}, "end_point": {"row": 63, "column": 5}}, {"id": 84, "type": "return_statement", "text": "return 0;", "parent": 41, "children": [85], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 10}}, {"id": 85, "type": "number_literal", "text": "0", "parent": 84, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 9}}, {"id": 86, "type": "function_definition", "text": "float get_closeless(char *a, char *b)\n{\n\tfloat closeness = 0 ;\n\tint i , j;\n\n\tint a_len = get_len(a) , b_len = get_len(b); \n\n\tif(a_len == b_len)\n\t\tcloseness += 1; \n\n\tfor(i = 0 ; i < a_len || i < b_len ; i++)\n\t\tif(i < a_len && i < b_len)\n\t\t{\tif(a[i] == b[i])\n\t\t\t\tcloseness += 2;\n\t\t\telse {if (exists(b , a[i]) && exists(a , b[i]))\n\t\t\t\tcloseness += 0.5;}\t\n\t\t}\n\t\telse{\n\t\t\tif(i < a_len){\n\t\t\t\tif(exists(b, a[i]))\n\t\t\t\t{ \n\t\t\t\t\tcloseness += 0.5; \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(exists(a, b[i])){\n\t\t\t\tcloseness += 0.5;\n\t\t\t}\n\n\t\t}\n\n\treturn closeness ; \n}", "parent": null, "children": [87, 88], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 100, "column": 1}}, {"id": 87, "type": "primitive_type", "text": "float", "parent": 86, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 5}}, {"id": 88, "type": "function_declarator", "text": "get_closeless(char *a, char *b)", "parent": 86, "children": [89, 90], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 37}}, {"id": 89, "type": "identifier", "text": "get_closeless", "parent": 88, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 19}}, {"id": 90, "type": "parameter_list", "text": "(char *a, char *b)", "parent": 88, "children": [91, 96], "start_point": {"row": 69, "column": 19}, "end_point": {"row": 69, "column": 37}}, {"id": 91, "type": "parameter_declaration", "text": "char *a", "parent": 90, "children": [92, 93], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 27}}, {"id": 92, "type": "primitive_type", "text": "char", "parent": 91, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 24}}, {"id": 93, "type": "pointer_declarator", "text": "*a", "parent": 91, "children": [94, 95], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 27}}, {"id": 94, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 69, "column": 25}, "end_point": {"row": 69, "column": 26}}, {"id": 95, "type": "identifier", "text": "a", "parent": 93, "children": [], "start_point": {"row": 69, "column": 26}, "end_point": {"row": 69, "column": 27}}, {"id": 96, "type": "parameter_declaration", "text": "char *b", "parent": 90, "children": [97, 98], "start_point": {"row": 69, "column": 29}, "end_point": {"row": 69, "column": 36}}, {"id": 97, "type": "primitive_type", "text": "char", "parent": 96, "children": [], "start_point": {"row": 69, "column": 29}, "end_point": {"row": 69, "column": 33}}, {"id": 98, "type": "pointer_declarator", "text": "*b", "parent": 96, "children": [99, 100], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 36}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 69, "column": 34}, "end_point": {"row": 69, "column": 35}}, {"id": 100, "type": "identifier", "text": "b", "parent": 98, "children": [], "start_point": {"row": 69, "column": 35}, "end_point": {"row": 69, "column": 36}}, {"id": 101, "type": "declaration", "text": "float closeness = 0 ;", "parent": 86, "children": [102, 103], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 22}}, {"id": 102, "type": "primitive_type", "text": "float", "parent": 101, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 6}}, {"id": 103, "type": "init_declarator", "text": "closeness = 0", "parent": 101, "children": [104, 105, 106], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 20}}, {"id": 104, "type": "identifier", "text": "closeness", "parent": 103, "children": [], "start_point": {"row": 71, "column": 7}, "end_point": {"row": 71, "column": 16}}, {"id": 105, "type": "=", "text": "=", "parent": 103, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 18}}, {"id": 106, "type": "number_literal", "text": "0", "parent": 103, "children": [], "start_point": {"row": 71, "column": 19}, "end_point": {"row": 71, "column": 20}}, {"id": 107, "type": "declaration", "text": "int i , j;", "parent": 86, "children": [108, 109, 110], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 11}}, {"id": 108, "type": "primitive_type", "text": "int", "parent": 107, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 4}}, {"id": 109, "type": "identifier", "text": "i", "parent": 107, "children": [], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 6}}, {"id": 110, "type": "identifier", "text": "j", "parent": 107, "children": [], "start_point": {"row": 72, "column": 9}, "end_point": {"row": 72, "column": 10}}, {"id": 111, "type": "declaration", "text": "int a_len = get_len(a) , b_len = get_len(b);", "parent": 86, "children": [112, 113, 120], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 45}}, {"id": 112, "type": "primitive_type", "text": "int", "parent": 111, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 4}}, {"id": 113, "type": "init_declarator", "text": "a_len = get_len(a)", "parent": 111, "children": [114, 115, 116], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 23}}, {"id": 114, "type": "identifier", "text": "a_len", "parent": 113, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 10}}, {"id": 115, "type": "=", "text": "=", "parent": 113, "children": [], "start_point": {"row": 74, "column": 11}, "end_point": {"row": 74, "column": 12}}, {"id": 116, "type": "call_expression", "text": "get_len(a)", "parent": 113, "children": [117, 118], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 23}}, {"id": 117, "type": "identifier", "text": "get_len", "parent": 116, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 20}}, {"id": 118, "type": "argument_list", "text": "(a)", "parent": 116, "children": [119], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 23}}, {"id": 119, "type": "identifier", "text": "a", "parent": 118, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 22}}, {"id": 120, "type": "init_declarator", "text": "b_len = get_len(b)", "parent": 111, "children": [121, 122, 123], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 44}}, {"id": 121, "type": "identifier", "text": "b_len", "parent": 120, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 31}}, {"id": 122, "type": "=", "text": "=", "parent": 120, "children": [], "start_point": {"row": 74, "column": 32}, "end_point": {"row": 74, "column": 33}}, {"id": 123, "type": "call_expression", "text": "get_len(b)", "parent": 120, "children": [124, 125], "start_point": {"row": 74, "column": 34}, "end_point": {"row": 74, "column": 44}}, {"id": 124, "type": "identifier", "text": "get_len", "parent": 123, "children": [], "start_point": {"row": 74, "column": 34}, "end_point": {"row": 74, "column": 41}}, {"id": 125, "type": "argument_list", "text": "(b)", "parent": 123, "children": [126], "start_point": {"row": 74, "column": 41}, "end_point": {"row": 74, "column": 44}}, {"id": 126, "type": "identifier", "text": "b", "parent": 125, "children": [], "start_point": {"row": 74, "column": 42}, "end_point": {"row": 74, "column": 43}}, {"id": 127, "type": "if_statement", "text": "if(a_len == b_len)\n\t\tcloseness += 1;", "parent": 86, "children": [128], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 77, "column": 17}}, {"id": 128, "type": "parenthesized_expression", "text": "(a_len == b_len)", "parent": 127, "children": [129], "start_point": {"row": 76, "column": 3}, "end_point": {"row": 76, "column": 19}}, {"id": 129, "type": "binary_expression", "text": "a_len == b_len", "parent": 128, "children": [130, 131, 132], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 18}}, {"id": 130, "type": "identifier", "text": "a_len", "parent": 129, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 9}}, {"id": 131, "type": "==", "text": "==", "parent": 129, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 12}}, {"id": 132, "type": "identifier", "text": "b_len", "parent": 129, "children": [], "start_point": {"row": 76, "column": 13}, "end_point": {"row": 76, "column": 18}}, {"id": 133, "type": "assignment_expression", "text": "closeness += 1", "parent": 127, "children": [134, 135, 136], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 16}}, {"id": 134, "type": "identifier", "text": "closeness", "parent": 133, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 11}}, {"id": 135, "type": "+=", "text": "+=", "parent": 133, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 14}}, {"id": 136, "type": "number_literal", "text": "1", "parent": 133, "children": [], "start_point": {"row": 77, "column": 15}, "end_point": {"row": 77, "column": 16}}, {"id": 137, "type": "for_statement", "text": "for(i = 0 ; i < a_len || i < b_len ; i++)\n\t\tif(i < a_len && i < b_len)\n\t\t{\tif(a[i] == b[i])\n\t\t\t\tcloseness += 2;\n\t\t\telse {if (exists(b , a[i]) && exists(a , b[i]))\n\t\t\t\tcloseness += 0.5;}\t\n\t\t}\n\t\telse{\n\t\t\tif(i < a_len){\n\t\t\t\tif(exists(b, a[i]))\n\t\t\t\t{ \n\t\t\t\t\tcloseness += 0.5; \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(exists(a, b[i])){\n\t\t\t\tcloseness += 0.5;\n\t\t\t}\n\n\t\t}", "parent": 86, "children": [138, 142, 152, 155], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 97, "column": 3}}, {"id": 138, "type": "assignment_expression", "text": "i = 0", "parent": 137, "children": [139, 140, 141], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 10}}, {"id": 139, "type": "identifier", "text": "i", "parent": 138, "children": [], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 6}}, {"id": 140, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 8}}, {"id": 141, "type": "number_literal", "text": "0", "parent": 138, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 10}}, {"id": 142, "type": "binary_expression", "text": "i < a_len || i < b_len", "parent": 137, "children": [143, 147, 148], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 35}}, {"id": 143, "type": "binary_expression", "text": "i < a_len", "parent": 142, "children": [144, 145, 146], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 22}}, {"id": 144, "type": "identifier", "text": "i", "parent": 143, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 14}}, {"id": 145, "type": "<", "text": "<", "parent": 143, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 16}}, {"id": 146, "type": "identifier", "text": "a_len", "parent": 143, "children": [], "start_point": {"row": 79, "column": 17}, "end_point": {"row": 79, "column": 22}}, {"id": 147, "type": "||", "text": "||", "parent": 142, "children": [], "start_point": {"row": 79, "column": 23}, "end_point": {"row": 79, "column": 25}}, {"id": 148, "type": "binary_expression", "text": "i < b_len", "parent": 142, "children": [149, 150, 151], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 35}}, {"id": 149, "type": "identifier", "text": "i", "parent": 148, "children": [], "start_point": {"row": 79, "column": 26}, "end_point": {"row": 79, "column": 27}}, {"id": 150, "type": "<", "text": "<", "parent": 148, "children": [], "start_point": {"row": 79, "column": 28}, "end_point": {"row": 79, "column": 29}}, {"id": 151, "type": "identifier", "text": "b_len", "parent": 148, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 35}}, {"id": 152, "type": "update_expression", "text": "i++", "parent": 137, "children": [153, 154], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 41}}, {"id": 153, "type": "identifier", "text": "i", "parent": 152, "children": [], "start_point": {"row": 79, "column": 38}, "end_point": {"row": 79, "column": 39}}, {"id": 154, "type": "++", "text": "++", "parent": 152, "children": [], "start_point": {"row": 79, "column": 39}, "end_point": {"row": 79, "column": 41}}, {"id": 155, "type": "if_statement", "text": "if(i < a_len && i < b_len)\n\t\t{\tif(a[i] == b[i])\n\t\t\t\tcloseness += 2;\n\t\t\telse {if (exists(b , a[i]) && exists(a , b[i]))\n\t\t\t\tcloseness += 0.5;}\t\n\t\t}\n\t\telse{\n\t\t\tif(i < a_len){\n\t\t\t\tif(exists(b, a[i]))\n\t\t\t\t{ \n\t\t\t\t\tcloseness += 0.5; \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(exists(a, b[i])){\n\t\t\t\tcloseness += 0.5;\n\t\t\t}\n\n\t\t}", "parent": 137, "children": [156, 204], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 97, "column": 3}}, {"id": 156, "type": "parenthesized_expression", "text": "(i < a_len && i < b_len)", "parent": 155, "children": [157], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 28}}, {"id": 157, "type": "binary_expression", "text": "i < a_len && i < b_len", "parent": 156, "children": [158, 162, 163], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 27}}, {"id": 158, "type": "binary_expression", "text": "i < a_len", "parent": 157, "children": [159, 160, 161], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 14}}, {"id": 159, "type": "identifier", "text": "i", "parent": 158, "children": [], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 6}}, {"id": 160, "type": "<", "text": "<", "parent": 158, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 8}}, {"id": 161, "type": "identifier", "text": "a_len", "parent": 158, "children": [], "start_point": {"row": 80, "column": 9}, "end_point": {"row": 80, "column": 14}}, {"id": 162, "type": "&&", "text": "&&", "parent": 157, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 17}}, {"id": 163, "type": "binary_expression", "text": "i < b_len", "parent": 157, "children": [164, 165, 166], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 27}}, {"id": 164, "type": "identifier", "text": "i", "parent": 163, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 19}}, {"id": 165, "type": "<", "text": "<", "parent": 163, "children": [], "start_point": {"row": 80, "column": 20}, "end_point": {"row": 80, "column": 21}}, {"id": 166, "type": "identifier", "text": "b_len", "parent": 163, "children": [], "start_point": {"row": 80, "column": 22}, "end_point": {"row": 80, "column": 27}}, {"id": 167, "type": "if_statement", "text": "if(a[i] == b[i])\n\t\t\t\tcloseness += 2;\n\t\t\telse {if (exists(b , a[i]) && exists(a , b[i]))\n\t\t\t\tcloseness += 0.5;}", "parent": 155, "children": [168, 181], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 84, "column": 22}}, {"id": 168, "type": "parenthesized_expression", "text": "(a[i] == b[i])", "parent": 167, "children": [169], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 20}}, {"id": 169, "type": "binary_expression", "text": "a[i] == b[i]", "parent": 168, "children": [170, 173, 174], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 19}}, {"id": 170, "type": "subscript_expression", "text": "a[i]", "parent": 169, "children": [171, 172], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 11}}, {"id": 171, "type": "identifier", "text": "a", "parent": 170, "children": [], "start_point": {"row": 81, "column": 7}, "end_point": {"row": 81, "column": 8}}, {"id": 172, "type": "identifier", "text": "i", "parent": 170, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 10}}, {"id": 173, "type": "==", "text": "==", "parent": 169, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 14}}, {"id": 174, "type": "subscript_expression", "text": "b[i]", "parent": 169, "children": [175, 176], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 19}}, {"id": 175, "type": "identifier", "text": "b", "parent": 174, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 16}}, {"id": 176, "type": "identifier", "text": "i", "parent": 174, "children": [], "start_point": {"row": 81, "column": 17}, "end_point": {"row": 81, "column": 18}}, {"id": 177, "type": "assignment_expression", "text": "closeness += 2", "parent": 167, "children": [178, 179, 180], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 18}}, {"id": 178, "type": "identifier", "text": "closeness", "parent": 177, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 13}}, {"id": 179, "type": "+=", "text": "+=", "parent": 177, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 16}}, {"id": 180, "type": "number_literal", "text": "2", "parent": 177, "children": [], "start_point": {"row": 82, "column": 17}, "end_point": {"row": 82, "column": 18}}, {"id": 181, "type": "else_clause", "text": "else {if (exists(b , a[i]) && exists(a , b[i]))\n\t\t\t\tcloseness += 0.5;}", "parent": 167, "children": [], "start_point": {"row": 83, "column": 3}, "end_point": {"row": 84, "column": 22}}, {"id": 182, "type": "if_statement", "text": "if (exists(b , a[i]) && exists(a , b[i]))\n\t\t\t\tcloseness += 0.5;", "parent": 181, "children": [183], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 84, "column": 21}}, {"id": 183, "type": "parenthesized_expression", "text": "(exists(b , a[i]) && exists(a , b[i]))", "parent": 182, "children": [184], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 50}}, {"id": 184, "type": "binary_expression", "text": "exists(b , a[i]) && exists(a , b[i])", "parent": 183, "children": [185, 192, 193], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 49}}, {"id": 185, "type": "call_expression", "text": "exists(b , a[i])", "parent": 184, "children": [186, 187], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 29}}, {"id": 186, "type": "identifier", "text": "exists", "parent": 185, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 19}}, {"id": 187, "type": "argument_list", "text": "(b , a[i])", "parent": 185, "children": [188, 189], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 29}}, {"id": 188, "type": "identifier", "text": "b", "parent": 187, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 21}}, {"id": 189, "type": "subscript_expression", "text": "a[i]", "parent": 187, "children": [190, 191], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 28}}, {"id": 190, "type": "identifier", "text": "a", "parent": 189, "children": [], "start_point": {"row": 83, "column": 24}, "end_point": {"row": 83, "column": 25}}, {"id": 191, "type": "identifier", "text": "i", "parent": 189, "children": [], "start_point": {"row": 83, "column": 26}, "end_point": {"row": 83, "column": 27}}, {"id": 192, "type": "&&", "text": "&&", "parent": 184, "children": [], "start_point": {"row": 83, "column": 30}, "end_point": {"row": 83, "column": 32}}, {"id": 193, "type": "call_expression", "text": "exists(a , b[i])", "parent": 184, "children": [194, 195], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 49}}, {"id": 194, "type": "identifier", "text": "exists", "parent": 193, "children": [], "start_point": {"row": 83, "column": 33}, "end_point": {"row": 83, "column": 39}}, {"id": 195, "type": "argument_list", "text": "(a , b[i])", "parent": 193, "children": [196, 197], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 49}}, {"id": 196, "type": "identifier", "text": "a", "parent": 195, "children": [], "start_point": {"row": 83, "column": 40}, "end_point": {"row": 83, "column": 41}}, {"id": 197, "type": "subscript_expression", "text": "b[i]", "parent": 195, "children": [198, 199], "start_point": {"row": 83, "column": 44}, "end_point": {"row": 83, "column": 48}}, {"id": 198, "type": "identifier", "text": "b", "parent": 197, "children": [], "start_point": {"row": 83, "column": 44}, "end_point": {"row": 83, "column": 45}}, {"id": 199, "type": "identifier", "text": "i", "parent": 197, "children": [], "start_point": {"row": 83, "column": 46}, "end_point": {"row": 83, "column": 47}}, {"id": 200, "type": "assignment_expression", "text": "closeness += 0.5", "parent": 182, "children": [201, 202, 203], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 20}}, {"id": 201, "type": "identifier", "text": "closeness", "parent": 200, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 13}}, {"id": 202, "type": "+=", "text": "+=", "parent": 200, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 16}}, {"id": 203, "type": "number_literal", "text": "0.5", "parent": 200, "children": [], "start_point": {"row": 84, "column": 17}, "end_point": {"row": 84, "column": 20}}, {"id": 204, "type": "else_clause", "text": "else{\n\t\t\tif(i < a_len){\n\t\t\t\tif(exists(b, a[i]))\n\t\t\t\t{ \n\t\t\t\t\tcloseness += 0.5; \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(exists(a, b[i])){\n\t\t\t\tcloseness += 0.5;\n\t\t\t}\n\n\t\t}", "parent": 155, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 97, "column": 3}}, {"id": 205, "type": "if_statement", "text": "if(i < a_len){\n\t\t\t\tif(exists(b, a[i]))\n\t\t\t\t{ \n\t\t\t\t\tcloseness += 0.5; \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(exists(a, b[i])){\n\t\t\t\tcloseness += 0.5;\n\t\t\t}", "parent": 204, "children": [206, 224], "start_point": {"row": 87, "column": 3}, "end_point": {"row": 95, "column": 4}}, {"id": 206, "type": "parenthesized_expression", "text": "(i < a_len)", "parent": 205, "children": [207], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 16}}, {"id": 207, "type": "binary_expression", "text": "i < a_len", "parent": 206, "children": [208, 209, 210], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 15}}, {"id": 208, "type": "identifier", "text": "i", "parent": 207, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 7}}, {"id": 209, "type": "<", "text": "<", "parent": 207, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 9}}, {"id": 210, "type": "identifier", "text": "a_len", "parent": 207, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 15}}, {"id": 211, "type": "if_statement", "text": "if(exists(b, a[i]))\n\t\t\t\t{ \n\t\t\t\t\tcloseness += 0.5; \n\t\t\t\t}", "parent": 205, "children": [212], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 91, "column": 5}}, {"id": 212, "type": "parenthesized_expression", "text": "(exists(b, a[i]))", "parent": 211, "children": [213], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 23}}, {"id": 213, "type": "call_expression", "text": "exists(b, a[i])", "parent": 212, "children": [214, 215], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 22}}, {"id": 214, "type": "identifier", "text": "exists", "parent": 213, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 13}}, {"id": 215, "type": "argument_list", "text": "(b, a[i])", "parent": 213, "children": [216, 217], "start_point": {"row": 88, "column": 13}, "end_point": {"row": 88, "column": 22}}, {"id": 216, "type": "identifier", "text": "b", "parent": 215, "children": [], "start_point": {"row": 88, "column": 14}, "end_point": {"row": 88, "column": 15}}, {"id": 217, "type": "subscript_expression", "text": "a[i]", "parent": 215, "children": [218, 219], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 21}}, {"id": 218, "type": "identifier", "text": "a", "parent": 217, "children": [], "start_point": {"row": 88, "column": 17}, "end_point": {"row": 88, "column": 18}}, {"id": 219, "type": "identifier", "text": "i", "parent": 217, "children": [], "start_point": {"row": 88, "column": 19}, "end_point": {"row": 88, "column": 20}}, {"id": 220, "type": "assignment_expression", "text": "closeness += 0.5", "parent": 211, "children": [221, 222, 223], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 21}}, {"id": 221, "type": "identifier", "text": "closeness", "parent": 220, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 14}}, {"id": 222, "type": "+=", "text": "+=", "parent": 220, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 17}}, {"id": 223, "type": "number_literal", "text": "0.5", "parent": 220, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 21}}, {"id": 224, "type": "else_clause", "text": "else if(exists(a, b[i])){\n\t\t\t\tcloseness += 0.5;\n\t\t\t}", "parent": 205, "children": [225], "start_point": {"row": 93, "column": 3}, "end_point": {"row": 95, "column": 4}}, {"id": 225, "type": "if_statement", "text": "if(exists(a, b[i])){\n\t\t\t\tcloseness += 0.5;\n\t\t\t}", "parent": 224, "children": [226], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 95, "column": 4}}, {"id": 226, "type": "parenthesized_expression", "text": "(exists(a, b[i]))", "parent": 225, "children": [227], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 27}}, {"id": 227, "type": "call_expression", "text": "exists(a, b[i])", "parent": 226, "children": [228, 229], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 26}}, {"id": 228, "type": "identifier", "text": "exists", "parent": 227, "children": [], "start_point": {"row": 93, "column": 11}, "end_point": {"row": 93, "column": 17}}, {"id": 229, "type": "argument_list", "text": "(a, b[i])", "parent": 227, "children": [230, 231], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 26}}, {"id": 230, "type": "identifier", "text": "a", "parent": 229, "children": [], "start_point": {"row": 93, "column": 18}, "end_point": {"row": 93, "column": 19}}, {"id": 231, "type": "subscript_expression", "text": "b[i]", "parent": 229, "children": [232, 233], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 25}}, {"id": 232, "type": "identifier", "text": "b", "parent": 231, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 22}}, {"id": 233, "type": "identifier", "text": "i", "parent": 231, "children": [], "start_point": {"row": 93, "column": 23}, "end_point": {"row": 93, "column": 24}}, {"id": 234, "type": "assignment_expression", "text": "closeness += 0.5", "parent": 225, "children": [235, 236, 237], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 20}}, {"id": 235, "type": "identifier", "text": "closeness", "parent": 234, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 13}}, {"id": 236, "type": "+=", "text": "+=", "parent": 234, "children": [], "start_point": {"row": 94, "column": 14}, "end_point": {"row": 94, "column": 16}}, {"id": 237, "type": "number_literal", "text": "0.5", "parent": 234, "children": [], "start_point": {"row": 94, "column": 17}, "end_point": {"row": 94, "column": 20}}, {"id": 238, "type": "return_statement", "text": "return closeness ;", "parent": 86, "children": [239], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 99, "column": 19}}, {"id": 239, "type": "identifier", "text": "closeness", "parent": 238, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 17}}, {"id": 240, "type": "function_definition", "text": "int get_closest_word(char *s, char **dict){\n\tint i = 0 ; \n\tint max_closeness = - 1; \n\tint max_closeness_index = -1;\n\twhile(dict[i] != NULL ){\n\t\tif(get_closeless(s , dict[i]) > max_closeness){\n\t\t\tmax_closeness = get_closeless(s, dict[i]) ; \n\t\t\tmax_closeness_index = i ; \n\t\t}\n\t\ti++;\n\t} \n\treturn max_closeness_index ;\n}", "parent": null, "children": [241, 242], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 241, "type": "primitive_type", "text": "int", "parent": 240, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 3}}, {"id": 242, "type": "function_declarator", "text": "get_closest_word(char *s, char **dict)", "parent": 240, "children": [243, 244], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 42}}, {"id": 243, "type": "identifier", "text": "get_closest_word", "parent": 242, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 20}}, {"id": 244, "type": "parameter_list", "text": "(char *s, char **dict)", "parent": 242, "children": [245, 250], "start_point": {"row": 102, "column": 20}, "end_point": {"row": 102, "column": 42}}, {"id": 245, "type": "parameter_declaration", "text": "char *s", "parent": 244, "children": [246, 247], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 28}}, {"id": 246, "type": "primitive_type", "text": "char", "parent": 245, "children": [], "start_point": {"row": 102, "column": 21}, "end_point": {"row": 102, "column": 25}}, {"id": 247, "type": "pointer_declarator", "text": "*s", "parent": 245, "children": [248, 249], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 28}}, {"id": 248, "type": "*", "text": "*", "parent": 247, "children": [], "start_point": {"row": 102, "column": 26}, "end_point": {"row": 102, "column": 27}}, {"id": 249, "type": "identifier", "text": "s", "parent": 247, "children": [], "start_point": {"row": 102, "column": 27}, "end_point": {"row": 102, "column": 28}}, {"id": 250, "type": "parameter_declaration", "text": "char **dict", "parent": 244, "children": [251, 252], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 41}}, {"id": 251, "type": "primitive_type", "text": "char", "parent": 250, "children": [], "start_point": {"row": 102, "column": 30}, "end_point": {"row": 102, "column": 34}}, {"id": 252, "type": "pointer_declarator", "text": "**dict", "parent": 250, "children": [253, 254], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 41}}, {"id": 253, "type": "*", "text": "*", "parent": 252, "children": [], "start_point": {"row": 102, "column": 35}, "end_point": {"row": 102, "column": 36}}, {"id": 254, "type": "pointer_declarator", "text": "*dict", "parent": 252, "children": [255, 256], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 41}}, {"id": 255, "type": "*", "text": "*", "parent": 254, "children": [], "start_point": {"row": 102, "column": 36}, "end_point": {"row": 102, "column": 37}}, {"id": 256, "type": "identifier", "text": "dict", "parent": 254, "children": [], "start_point": {"row": 102, "column": 37}, "end_point": {"row": 102, "column": 41}}, {"id": 257, "type": "declaration", "text": "int i = 0 ;", "parent": 240, "children": [258, 259], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 12}}, {"id": 258, "type": "primitive_type", "text": "int", "parent": 257, "children": [], "start_point": {"row": 103, "column": 1}, "end_point": {"row": 103, "column": 4}}, {"id": 259, "type": "init_declarator", "text": "i = 0", "parent": 257, "children": [260, 261, 262], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 10}}, {"id": 260, "type": "identifier", "text": "i", "parent": 259, "children": [], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 6}}, {"id": 261, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 103, "column": 7}, "end_point": {"row": 103, "column": 8}}, {"id": 262, "type": "number_literal", "text": "0", "parent": 259, "children": [], "start_point": {"row": 103, "column": 9}, "end_point": {"row": 103, "column": 10}}, {"id": 263, "type": "declaration", "text": "int max_closeness = - 1;", "parent": 240, "children": [264, 265], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 25}}, {"id": 264, "type": "primitive_type", "text": "int", "parent": 263, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 4}}, {"id": 265, "type": "init_declarator", "text": "max_closeness = - 1", "parent": 263, "children": [266, 267, 268], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 24}}, {"id": 266, "type": "identifier", "text": "max_closeness", "parent": 265, "children": [], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 18}}, {"id": 267, "type": "=", "text": "=", "parent": 265, "children": [], "start_point": {"row": 104, "column": 19}, "end_point": {"row": 104, "column": 20}}, {"id": 268, "type": "unary_expression", "text": "- 1", "parent": 265, "children": [269, 270], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 24}}, {"id": 269, "type": "-", "text": "-", "parent": 268, "children": [], "start_point": {"row": 104, "column": 21}, "end_point": {"row": 104, "column": 22}}, {"id": 270, "type": "number_literal", "text": "1", "parent": 268, "children": [], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 24}}, {"id": 271, "type": "declaration", "text": "int max_closeness_index = -1;", "parent": 240, "children": [272, 273], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 30}}, {"id": 272, "type": "primitive_type", "text": "int", "parent": 271, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 4}}, {"id": 273, "type": "init_declarator", "text": "max_closeness_index = -1", "parent": 271, "children": [274, 275, 276], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 29}}, {"id": 274, "type": "identifier", "text": "max_closeness_index", "parent": 273, "children": [], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 24}}, {"id": 275, "type": "=", "text": "=", "parent": 273, "children": [], "start_point": {"row": 105, "column": 25}, "end_point": {"row": 105, "column": 26}}, {"id": 276, "type": "number_literal", "text": "-1", "parent": 273, "children": [], "start_point": {"row": 105, "column": 27}, "end_point": {"row": 105, "column": 29}}, {"id": 277, "type": "while_statement", "text": "while(dict[i] != NULL ){\n\t\tif(get_closeless(s , dict[i]) > max_closeness){\n\t\t\tmax_closeness = get_closeless(s, dict[i]) ; \n\t\t\tmax_closeness_index = i ; \n\t\t}\n\t\ti++;\n\t}", "parent": 240, "children": [278], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 112, "column": 2}}, {"id": 278, "type": "parenthesized_expression", "text": "(dict[i] != NULL )", "parent": 277, "children": [279], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 24}}, {"id": 279, "type": "binary_expression", "text": "dict[i] != NULL", "parent": 278, "children": [280, 283, 284], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 22}}, {"id": 280, "type": "subscript_expression", "text": "dict[i]", "parent": 279, "children": [281, 282], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 14}}, {"id": 281, "type": "identifier", "text": "dict", "parent": 280, "children": [], "start_point": {"row": 106, "column": 7}, "end_point": {"row": 106, "column": 11}}, {"id": 282, "type": "identifier", "text": "i", "parent": 280, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 13}}, {"id": 283, "type": "!=", "text": "!=", "parent": 279, "children": [], "start_point": {"row": 106, "column": 15}, "end_point": {"row": 106, "column": 17}}, {"id": 284, "type": "null", "text": "NULL", "parent": 279, "children": [285], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 22}}, {"id": 285, "type": "NULL", "text": "NULL", "parent": 284, "children": [], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 22}}, {"id": 286, "type": "if_statement", "text": "if(get_closeless(s , dict[i]) > max_closeness){\n\t\t\tmax_closeness = get_closeless(s, dict[i]) ; \n\t\t\tmax_closeness_index = i ; \n\t\t}", "parent": 277, "children": [287], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 110, "column": 3}}, {"id": 287, "type": "parenthesized_expression", "text": "(get_closeless(s , dict[i]) > max_closeness)", "parent": 286, "children": [288], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 48}}, {"id": 288, "type": "binary_expression", "text": "get_closeless(s , dict[i]) > max_closeness", "parent": 287, "children": [289, 296, 297], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 47}}, {"id": 289, "type": "call_expression", "text": "get_closeless(s , dict[i])", "parent": 288, "children": [290, 291], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 31}}, {"id": 290, "type": "identifier", "text": "get_closeless", "parent": 289, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 18}}, {"id": 291, "type": "argument_list", "text": "(s , dict[i])", "parent": 289, "children": [292, 293], "start_point": {"row": 107, "column": 18}, "end_point": {"row": 107, "column": 31}}, {"id": 292, "type": "identifier", "text": "s", "parent": 291, "children": [], "start_point": {"row": 107, "column": 19}, "end_point": {"row": 107, "column": 20}}, {"id": 293, "type": "subscript_expression", "text": "dict[i]", "parent": 291, "children": [294, 295], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 30}}, {"id": 294, "type": "identifier", "text": "dict", "parent": 293, "children": [], "start_point": {"row": 107, "column": 23}, "end_point": {"row": 107, "column": 27}}, {"id": 295, "type": "identifier", "text": "i", "parent": 293, "children": [], "start_point": {"row": 107, "column": 28}, "end_point": {"row": 107, "column": 29}}, {"id": 296, "type": ">", "text": ">", "parent": 288, "children": [], "start_point": {"row": 107, "column": 32}, "end_point": {"row": 107, "column": 33}}, {"id": 297, "type": "identifier", "text": "max_closeness", "parent": 288, "children": [], "start_point": {"row": 107, "column": 34}, "end_point": {"row": 107, "column": 47}}, {"id": 298, "type": "assignment_expression", "text": "max_closeness = get_closeless(s, dict[i])", "parent": 286, "children": [299, 300, 301], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 44}}, {"id": 299, "type": "identifier", "text": "max_closeness", "parent": 298, "children": [], "start_point": {"row": 108, "column": 3}, "end_point": {"row": 108, "column": 16}}, {"id": 300, "type": "=", "text": "=", "parent": 298, "children": [], "start_point": {"row": 108, "column": 17}, "end_point": {"row": 108, "column": 18}}, {"id": 301, "type": "call_expression", "text": "get_closeless(s, dict[i])", "parent": 298, "children": [302, 303], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 44}}, {"id": 302, "type": "identifier", "text": "get_closeless", "parent": 301, "children": [], "start_point": {"row": 108, "column": 19}, "end_point": {"row": 108, "column": 32}}, {"id": 303, "type": "argument_list", "text": "(s, dict[i])", "parent": 301, "children": [304, 305], "start_point": {"row": 108, "column": 32}, "end_point": {"row": 108, "column": 44}}, {"id": 304, "type": "identifier", "text": "s", "parent": 303, "children": [], "start_point": {"row": 108, "column": 33}, "end_point": {"row": 108, "column": 34}}, {"id": 305, "type": "subscript_expression", "text": "dict[i]", "parent": 303, "children": [306, 307], "start_point": {"row": 108, "column": 36}, "end_point": {"row": 108, "column": 43}}, {"id": 306, "type": "identifier", "text": "dict", "parent": 305, "children": [], "start_point": {"row": 108, "column": 36}, "end_point": {"row": 108, "column": 40}}, {"id": 307, "type": "identifier", "text": "i", "parent": 305, "children": [], "start_point": {"row": 108, "column": 41}, "end_point": {"row": 108, "column": 42}}, {"id": 308, "type": "assignment_expression", "text": "max_closeness_index = i", "parent": 286, "children": [309, 310, 311], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 26}}, {"id": 309, "type": "identifier", "text": "max_closeness_index", "parent": 308, "children": [], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 22}}, {"id": 310, "type": "=", "text": "=", "parent": 308, "children": [], "start_point": {"row": 109, "column": 23}, "end_point": {"row": 109, "column": 24}}, {"id": 311, "type": "identifier", "text": "i", "parent": 308, "children": [], "start_point": {"row": 109, "column": 25}, "end_point": {"row": 109, "column": 26}}, {"id": 312, "type": "update_expression", "text": "i++", "parent": 277, "children": [313, 314], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 5}}, {"id": 313, "type": "identifier", "text": "i", "parent": 312, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 3}}, {"id": 314, "type": "++", "text": "++", "parent": 312, "children": [], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 5}}, {"id": 315, "type": "return_statement", "text": "return max_closeness_index ;", "parent": 240, "children": [316], "start_point": {"row": 113, "column": 1}, "end_point": {"row": 113, "column": 29}}, {"id": 316, "type": "identifier", "text": "max_closeness_index", "parent": 315, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 27}}, {"id": 317, "type": "function_definition", "text": "int main(){\n\tint n, n_temp , e_len, i, j;\n\tchar *error_word = NULL ;\n\n\tscanf(\"%d\" , &n);\n\n\tchar **dict = malloc((n + 1)*sizeof(int *));\n\tfor (i=0 ; i<n ; i++){\n\t\t\tscanf(\"%d\" , &n_temp);\n dict[i] = malloc((n_temp + 1)*sizeof(int));\n scanf(\"%s\" , dict[i]);\n }\n dict[n] = NULL ;\n\n while(1){\n \tscanf(\"%d\" , &n_temp);\n \tif(n_temp == - 1)\n \t\tbreak;\n\n \tfree(error_word);\n \terror_word = malloc((n_temp + 1)*sizeof(char));\n \tscanf(\"%s\", error_word);\n \tprintf(\"%s\\n\",dict[get_closest_word(error_word , dict)]);\n \t\n }\n return 0;\n\n}", "parent": null, "children": [318, 319], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 143, "column": 1}}, {"id": 318, "type": "primitive_type", "text": "int", "parent": 317, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 3}}, {"id": 319, "type": "function_declarator", "text": "main()", "parent": 317, "children": [320, 321], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 10}}, {"id": 320, "type": "identifier", "text": "main", "parent": 319, "children": [], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 8}}, {"id": 321, "type": "parameter_list", "text": "()", "parent": 319, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 10}}, {"id": 322, "type": "declaration", "text": "int n, n_temp , e_len, i, j;", "parent": 317, "children": [323, 324, 325, 326, 327, 328], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 29}}, {"id": 323, "type": "primitive_type", "text": "int", "parent": 322, "children": [], "start_point": {"row": 117, "column": 1}, "end_point": {"row": 117, "column": 4}}, {"id": 324, "type": "identifier", "text": "n", "parent": 322, "children": [], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 6}}, {"id": 325, "type": "identifier", "text": "n_temp", "parent": 322, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 14}}, {"id": 326, "type": "identifier", "text": "e_len", "parent": 322, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 22}}, {"id": 327, "type": "identifier", "text": "i", "parent": 322, "children": [], "start_point": {"row": 117, "column": 24}, "end_point": {"row": 117, "column": 25}}, {"id": 328, "type": "identifier", "text": "j", "parent": 322, "children": [], "start_point": {"row": 117, "column": 27}, "end_point": {"row": 117, "column": 28}}, {"id": 329, "type": "declaration", "text": "char *error_word = NULL ;", "parent": 317, "children": [330, 331], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 26}}, {"id": 330, "type": "primitive_type", "text": "char", "parent": 329, "children": [], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 5}}, {"id": 331, "type": "init_declarator", "text": "*error_word = NULL", "parent": 329, "children": [332, 335, 336], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 24}}, {"id": 332, "type": "pointer_declarator", "text": "*error_word", "parent": 331, "children": [333, 334], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 17}}, {"id": 333, "type": "*", "text": "*", "parent": 332, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 7}}, {"id": 334, "type": "identifier", "text": "error_word", "parent": 332, "children": [], "start_point": {"row": 118, "column": 7}, "end_point": {"row": 118, "column": 17}}, {"id": 335, "type": "=", "text": "=", "parent": 331, "children": [], "start_point": {"row": 118, "column": 18}, "end_point": {"row": 118, "column": 19}}, {"id": 336, "type": "null", "text": "NULL", "parent": 331, "children": [337], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 24}}, {"id": 337, "type": "NULL", "text": "NULL", "parent": 336, "children": [], "start_point": {"row": 118, "column": 20}, "end_point": {"row": 118, "column": 24}}, {"id": 338, "type": "call_expression", "text": "scanf(\"%d\" , &n)", "parent": 317, "children": [339, 340], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 17}}, {"id": 339, "type": "identifier", "text": "scanf", "parent": 338, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 6}}, {"id": 340, "type": "argument_list", "text": "(\"%d\" , &n)", "parent": 338, "children": [341, 342], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 17}}, {"id": 341, "type": "string_literal", "text": "\"%d\"", "parent": 340, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 11}}, {"id": 342, "type": "pointer_expression", "text": "&n", "parent": 340, "children": [343], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 16}}, {"id": 343, "type": "identifier", "text": "n", "parent": 342, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 16}}, {"id": 344, "type": "declaration", "text": "char **dict = malloc((n + 1)*sizeof(int *));", "parent": 317, "children": [345, 346], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 45}}, {"id": 345, "type": "primitive_type", "text": "char", "parent": 344, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 5}}, {"id": 346, "type": "init_declarator", "text": "**dict = malloc((n + 1)*sizeof(int *))", "parent": 344, "children": [347, 352, 353], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 44}}, {"id": 347, "type": "pointer_declarator", "text": "**dict", "parent": 346, "children": [348, 349], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 12}}, {"id": 348, "type": "*", "text": "*", "parent": 347, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 7}}, {"id": 349, "type": "pointer_declarator", "text": "*dict", "parent": 347, "children": [350, 351], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 12}}, {"id": 350, "type": "*", "text": "*", "parent": 349, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 8}}, {"id": 351, "type": "identifier", "text": "dict", "parent": 349, "children": [], "start_point": {"row": 122, "column": 8}, "end_point": {"row": 122, "column": 12}}, {"id": 352, "type": "=", "text": "=", "parent": 346, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 14}}, {"id": 353, "type": "call_expression", "text": "malloc((n + 1)*sizeof(int *))", "parent": 346, "children": [354, 355], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 44}}, {"id": 354, "type": "identifier", "text": "malloc", "parent": 353, "children": [], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 21}}, {"id": 355, "type": "argument_list", "text": "((n + 1)*sizeof(int *))", "parent": 353, "children": [356], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 44}}, {"id": 356, "type": "binary_expression", "text": "(n + 1)*sizeof(int *)", "parent": 355, "children": [357, 362, 363], "start_point": {"row": 122, "column": 22}, "end_point": {"row": 122, "column": 43}}, {"id": 357, "type": "parenthesized_expression", "text": "(n + 1)", "parent": 356, "children": [358], "start_point": {"row": 122, "column": 22}, "end_point": {"row": 122, "column": 29}}, {"id": 358, "type": "binary_expression", "text": "n + 1", "parent": 357, "children": [359, 360, 361], "start_point": {"row": 122, "column": 23}, "end_point": {"row": 122, "column": 28}}, {"id": 359, "type": "identifier", "text": "n", "parent": 358, "children": [], "start_point": {"row": 122, "column": 23}, "end_point": {"row": 122, "column": 24}}, {"id": 360, "type": "+", "text": "+", "parent": 358, "children": [], "start_point": {"row": 122, "column": 25}, "end_point": {"row": 122, "column": 26}}, {"id": 361, "type": "number_literal", "text": "1", "parent": 358, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 28}}, {"id": 362, "type": "*", "text": "*", "parent": 356, "children": [], "start_point": {"row": 122, "column": 29}, "end_point": {"row": 122, "column": 30}}, {"id": 363, "type": "sizeof_expression", "text": "sizeof(int *)", "parent": 356, "children": [364], "start_point": {"row": 122, "column": 30}, "end_point": {"row": 122, "column": 43}}, {"id": 364, "type": "type_descriptor", "text": "int *", "parent": 363, "children": [365, 366], "start_point": {"row": 122, "column": 37}, "end_point": {"row": 122, "column": 42}}, {"id": 365, "type": "primitive_type", "text": "int", "parent": 364, "children": [], "start_point": {"row": 122, "column": 37}, "end_point": {"row": 122, "column": 40}}, {"id": 366, "type": "abstract_pointer_declarator", "text": "*", "parent": 364, "children": [367], "start_point": {"row": 122, "column": 41}, "end_point": {"row": 122, "column": 42}}, {"id": 367, "type": "*", "text": "*", "parent": 366, "children": [], "start_point": {"row": 122, "column": 41}, "end_point": {"row": 122, "column": 42}}, {"id": 368, "type": "for_statement", "text": "for (i=0 ; i<n ; i++){\n\t\t\tscanf(\"%d\" , &n_temp);\n dict[i] = malloc((n_temp + 1)*sizeof(int));\n scanf(\"%s\" , dict[i]);\n }", "parent": 317, "children": [369, 373, 377], "start_point": {"row": 123, "column": 1}, "end_point": {"row": 127, "column": 9}}, {"id": 369, "type": "assignment_expression", "text": "i=0", "parent": 368, "children": [370, 371, 372], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 9}}, {"id": 370, "type": "identifier", "text": "i", "parent": 369, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 7}}, {"id": 371, "type": "=", "text": "=", "parent": 369, "children": [], "start_point": {"row": 123, "column": 7}, "end_point": {"row": 123, "column": 8}}, {"id": 372, "type": "number_literal", "text": "0", "parent": 369, "children": [], "start_point": {"row": 123, "column": 8}, "end_point": {"row": 123, "column": 9}}, {"id": 373, "type": "binary_expression", "text": "i<n", "parent": 368, "children": [374, 375, 376], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 15}}, {"id": 374, "type": "identifier", "text": "i", "parent": 373, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 13}}, {"id": 375, "type": "<", "text": "<", "parent": 373, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 14}}, {"id": 376, "type": "identifier", "text": "n", "parent": 373, "children": [], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 15}}, {"id": 377, "type": "update_expression", "text": "i++", "parent": 368, "children": [378, 379], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 21}}, {"id": 378, "type": "identifier", "text": "i", "parent": 377, "children": [], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 19}}, {"id": 379, "type": "++", "text": "++", "parent": 377, "children": [], "start_point": {"row": 123, "column": 19}, "end_point": {"row": 123, "column": 21}}, {"id": 380, "type": "call_expression", "text": "scanf(\"%d\" , &n_temp)", "parent": 368, "children": [381, 382], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 24}}, {"id": 381, "type": "identifier", "text": "scanf", "parent": 380, "children": [], "start_point": {"row": 124, "column": 3}, "end_point": {"row": 124, "column": 8}}, {"id": 382, "type": "argument_list", "text": "(\"%d\" , &n_temp)", "parent": 380, "children": [383, 384], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 24}}, {"id": 383, "type": "string_literal", "text": "\"%d\"", "parent": 382, "children": [], "start_point": {"row": 124, "column": 9}, "end_point": {"row": 124, "column": 13}}, {"id": 384, "type": "pointer_expression", "text": "&n_temp", "parent": 382, "children": [385], "start_point": {"row": 124, "column": 16}, "end_point": {"row": 124, "column": 23}}, {"id": 385, "type": "identifier", "text": "n_temp", "parent": 384, "children": [], "start_point": {"row": 124, "column": 17}, "end_point": {"row": 124, "column": 23}}, {"id": 386, "type": "assignment_expression", "text": "dict[i] = malloc((n_temp + 1)*sizeof(int))", "parent": 368, "children": [387, 390, 391], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 54}}, {"id": 387, "type": "subscript_expression", "text": "dict[i]", "parent": 386, "children": [388, 389], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 19}}, {"id": 388, "type": "identifier", "text": "dict", "parent": 387, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 16}}, {"id": 389, "type": "identifier", "text": "i", "parent": 387, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 18}}, {"id": 390, "type": "=", "text": "=", "parent": 386, "children": [], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 21}}, {"id": 391, "type": "call_expression", "text": "malloc((n_temp + 1)*sizeof(int))", "parent": 386, "children": [392, 393], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 54}}, {"id": 392, "type": "identifier", "text": "malloc", "parent": 391, "children": [], "start_point": {"row": 125, "column": 22}, "end_point": {"row": 125, "column": 28}}, {"id": 393, "type": "argument_list", "text": "((n_temp + 1)*sizeof(int))", "parent": 391, "children": [394], "start_point": {"row": 125, "column": 28}, "end_point": {"row": 125, "column": 54}}, {"id": 394, "type": "binary_expression", "text": "(n_temp + 1)*sizeof(int)", "parent": 393, "children": [395, 400, 401], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 53}}, {"id": 395, "type": "parenthesized_expression", "text": "(n_temp + 1)", "parent": 394, "children": [396], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 41}}, {"id": 396, "type": "binary_expression", "text": "n_temp + 1", "parent": 395, "children": [397, 398, 399], "start_point": {"row": 125, "column": 30}, "end_point": {"row": 125, "column": 40}}, {"id": 397, "type": "identifier", "text": "n_temp", "parent": 396, "children": [], "start_point": {"row": 125, "column": 30}, "end_point": {"row": 125, "column": 36}}, {"id": 398, "type": "+", "text": "+", "parent": 396, "children": [], "start_point": {"row": 125, "column": 37}, "end_point": {"row": 125, "column": 38}}, {"id": 399, "type": "number_literal", "text": "1", "parent": 396, "children": [], "start_point": {"row": 125, "column": 39}, "end_point": {"row": 125, "column": 40}}, {"id": 400, "type": "*", "text": "*", "parent": 394, "children": [], "start_point": {"row": 125, "column": 41}, "end_point": {"row": 125, "column": 42}}, {"id": 401, "type": "sizeof_expression", "text": "sizeof(int)", "parent": 394, "children": [402], "start_point": {"row": 125, "column": 42}, "end_point": {"row": 125, "column": 53}}, {"id": 402, "type": "type_descriptor", "text": "int", "parent": 401, "children": [403], "start_point": {"row": 125, "column": 49}, "end_point": {"row": 125, "column": 52}}, {"id": 403, "type": "primitive_type", "text": "int", "parent": 402, "children": [], "start_point": {"row": 125, "column": 49}, "end_point": {"row": 125, "column": 52}}, {"id": 404, "type": "call_expression", "text": "scanf(\"%s\" , dict[i])", "parent": 368, "children": [405, 406], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 33}}, {"id": 405, "type": "identifier", "text": "scanf", "parent": 404, "children": [], "start_point": {"row": 126, "column": 12}, "end_point": {"row": 126, "column": 17}}, {"id": 406, "type": "argument_list", "text": "(\"%s\" , dict[i])", "parent": 404, "children": [407, 408], "start_point": {"row": 126, "column": 17}, "end_point": {"row": 126, "column": 33}}, {"id": 407, "type": "string_literal", "text": "\"%s\"", "parent": 406, "children": [], "start_point": {"row": 126, "column": 18}, "end_point": {"row": 126, "column": 22}}, {"id": 408, "type": "subscript_expression", "text": "dict[i]", "parent": 406, "children": [409, 410], "start_point": {"row": 126, "column": 25}, "end_point": {"row": 126, "column": 32}}, {"id": 409, "type": "identifier", "text": "dict", "parent": 408, "children": [], "start_point": {"row": 126, "column": 25}, "end_point": {"row": 126, "column": 29}}, {"id": 410, "type": "identifier", "text": "i", "parent": 408, "children": [], "start_point": {"row": 126, "column": 30}, "end_point": {"row": 126, "column": 31}}, {"id": 411, "type": "assignment_expression", "text": "dict[n] = NULL", "parent": 317, "children": [412, 415, 416], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 18}}, {"id": 412, "type": "subscript_expression", "text": "dict[n]", "parent": 411, "children": [413, 414], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 11}}, {"id": 413, "type": "identifier", "text": "dict", "parent": 412, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 8}}, {"id": 414, "type": "identifier", "text": "n", "parent": 412, "children": [], "start_point": {"row": 128, "column": 9}, "end_point": {"row": 128, "column": 10}}, {"id": 415, "type": "=", "text": "=", "parent": 411, "children": [], "start_point": {"row": 128, "column": 12}, "end_point": {"row": 128, "column": 13}}, {"id": 416, "type": "null", "text": "NULL", "parent": 411, "children": [417], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 18}}, {"id": 417, "type": "NULL", "text": "NULL", "parent": 416, "children": [], "start_point": {"row": 128, "column": 14}, "end_point": {"row": 128, "column": 18}}, {"id": 418, "type": "while_statement", "text": "while(1){\n \tscanf(\"%d\" , &n_temp);\n \tif(n_temp == - 1)\n \t\tbreak;\n\n \tfree(error_word);\n \terror_word = malloc((n_temp + 1)*sizeof(char));\n \tscanf(\"%s\", error_word);\n \tprintf(\"%s\\n\",dict[get_closest_word(error_word , dict)]);\n \t\n }", "parent": 317, "children": [419], "start_point": {"row": 130, "column": 4}, "end_point": {"row": 140, "column": 5}}, {"id": 419, "type": "parenthesized_expression", "text": "(1)", "parent": 418, "children": [420], "start_point": {"row": 130, "column": 9}, "end_point": {"row": 130, "column": 12}}, {"id": 420, "type": "number_literal", "text": "1", "parent": 419, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 11}}, {"id": 421, "type": "call_expression", "text": "scanf(\"%d\" , &n_temp)", "parent": 418, "children": [422, 423], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 26}}, {"id": 422, "type": "identifier", "text": "scanf", "parent": 421, "children": [], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 10}}, {"id": 423, "type": "argument_list", "text": "(\"%d\" , &n_temp)", "parent": 421, "children": [424, 425], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 26}}, {"id": 424, "type": "string_literal", "text": "\"%d\"", "parent": 423, "children": [], "start_point": {"row": 131, "column": 11}, "end_point": {"row": 131, "column": 15}}, {"id": 425, "type": "pointer_expression", "text": "&n_temp", "parent": 423, "children": [426], "start_point": {"row": 131, "column": 18}, "end_point": {"row": 131, "column": 25}}, {"id": 426, "type": "identifier", "text": "n_temp", "parent": 425, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 25}}, {"id": 427, "type": "if_statement", "text": "if(n_temp == - 1)\n \t\tbreak;", "parent": 418, "children": [428, 435], "start_point": {"row": 132, "column": 5}, "end_point": {"row": 133, "column": 12}}, {"id": 428, "type": "parenthesized_expression", "text": "(n_temp == - 1)", "parent": 427, "children": [429], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 132, "column": 22}}, {"id": 429, "type": "binary_expression", "text": "n_temp == - 1", "parent": 428, "children": [430, 431, 432], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 21}}, {"id": 430, "type": "identifier", "text": "n_temp", "parent": 429, "children": [], "start_point": {"row": 132, "column": 8}, "end_point": {"row": 132, "column": 14}}, {"id": 431, "type": "==", "text": "==", "parent": 429, "children": [], "start_point": {"row": 132, "column": 15}, "end_point": {"row": 132, "column": 17}}, {"id": 432, "type": "unary_expression", "text": "- 1", "parent": 429, "children": [433, 434], "start_point": {"row": 132, "column": 18}, "end_point": {"row": 132, "column": 21}}, {"id": 433, "type": "-", "text": "-", "parent": 432, "children": [], "start_point": {"row": 132, "column": 18}, "end_point": {"row": 132, "column": 19}}, {"id": 434, "type": "number_literal", "text": "1", "parent": 432, "children": [], "start_point": {"row": 132, "column": 20}, "end_point": {"row": 132, "column": 21}}, {"id": 435, "type": "break_statement", "text": "break;", "parent": 427, "children": [436], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 12}}, {"id": 436, "type": "break", "text": "break", "parent": 435, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 11}}, {"id": 437, "type": "call_expression", "text": "free(error_word)", "parent": 418, "children": [438, 439], "start_point": {"row": 135, "column": 5}, "end_point": {"row": 135, "column": 21}}, {"id": 438, "type": "identifier", "text": "free", "parent": 437, "children": [], "start_point": {"row": 135, "column": 5}, "end_point": {"row": 135, "column": 9}}, {"id": 439, "type": "argument_list", "text": "(error_word)", "parent": 437, "children": [440], "start_point": {"row": 135, "column": 9}, "end_point": {"row": 135, "column": 21}}, {"id": 440, "type": "identifier", "text": "error_word", "parent": 439, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 20}}, {"id": 441, "type": "assignment_expression", "text": "error_word = malloc((n_temp + 1)*sizeof(char))", "parent": 418, "children": [442, 443, 444], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 51}}, {"id": 442, "type": "identifier", "text": "error_word", "parent": 441, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 15}}, {"id": 443, "type": "=", "text": "=", "parent": 441, "children": [], "start_point": {"row": 136, "column": 16}, "end_point": {"row": 136, "column": 17}}, {"id": 444, "type": "call_expression", "text": "malloc((n_temp + 1)*sizeof(char))", "parent": 441, "children": [445, 446], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 51}}, {"id": 445, "type": "identifier", "text": "malloc", "parent": 444, "children": [], "start_point": {"row": 136, "column": 18}, "end_point": {"row": 136, "column": 24}}, {"id": 446, "type": "argument_list", "text": "((n_temp + 1)*sizeof(char))", "parent": 444, "children": [447], "start_point": {"row": 136, "column": 24}, "end_point": {"row": 136, "column": 51}}, {"id": 447, "type": "binary_expression", "text": "(n_temp + 1)*sizeof(char)", "parent": 446, "children": [448, 453, 454], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 50}}, {"id": 448, "type": "parenthesized_expression", "text": "(n_temp + 1)", "parent": 447, "children": [449], "start_point": {"row": 136, "column": 25}, "end_point": {"row": 136, "column": 37}}, {"id": 449, "type": "binary_expression", "text": "n_temp + 1", "parent": 448, "children": [450, 451, 452], "start_point": {"row": 136, "column": 26}, "end_point": {"row": 136, "column": 36}}, {"id": 450, "type": "identifier", "text": "n_temp", "parent": 449, "children": [], "start_point": {"row": 136, "column": 26}, "end_point": {"row": 136, "column": 32}}, {"id": 451, "type": "+", "text": "+", "parent": 449, "children": [], "start_point": {"row": 136, "column": 33}, "end_point": {"row": 136, "column": 34}}, {"id": 452, "type": "number_literal", "text": "1", "parent": 449, "children": [], "start_point": {"row": 136, "column": 35}, "end_point": {"row": 136, "column": 36}}, {"id": 453, "type": "*", "text": "*", "parent": 447, "children": [], "start_point": {"row": 136, "column": 37}, "end_point": {"row": 136, "column": 38}}, {"id": 454, "type": "sizeof_expression", "text": "sizeof(char)", "parent": 447, "children": [455], "start_point": {"row": 136, "column": 38}, "end_point": {"row": 136, "column": 50}}, {"id": 455, "type": "type_descriptor", "text": "char", "parent": 454, "children": [456], "start_point": {"row": 136, "column": 45}, "end_point": {"row": 136, "column": 49}}, {"id": 456, "type": "primitive_type", "text": "char", "parent": 455, "children": [], "start_point": {"row": 136, "column": 45}, "end_point": {"row": 136, "column": 49}}, {"id": 457, "type": "call_expression", "text": "scanf(\"%s\", error_word)", "parent": 418, "children": [458, 459], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 28}}, {"id": 458, "type": "identifier", "text": "scanf", "parent": 457, "children": [], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 10}}, {"id": 459, "type": "argument_list", "text": "(\"%s\", error_word)", "parent": 457, "children": [460, 461], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 28}}, {"id": 460, "type": "string_literal", "text": "\"%s\"", "parent": 459, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 15}}, {"id": 461, "type": "identifier", "text": "error_word", "parent": 459, "children": [], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 27}}, {"id": 462, "type": "call_expression", "text": "printf(\"%s\\n\",dict[get_closest_word(error_word , dict)])", "parent": 418, "children": [463, 464], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 61}}, {"id": 463, "type": "identifier", "text": "printf", "parent": 462, "children": [], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 11}}, {"id": 464, "type": "argument_list", "text": "(\"%s\\n\",dict[get_closest_word(error_word , dict)])", "parent": 462, "children": [465, 467], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 61}}, {"id": 465, "type": "string_literal", "text": "\"%s\\n\"", "parent": 464, "children": [466], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 18}}, {"id": 466, "type": "escape_sequence", "text": "\\n", "parent": 465, "children": [], "start_point": {"row": 138, "column": 15}, "end_point": {"row": 138, "column": 17}}, {"id": 467, "type": "subscript_expression", "text": "dict[get_closest_word(error_word , dict)]", "parent": 464, "children": [468, 469], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 60}}, {"id": 468, "type": "identifier", "text": "dict", "parent": 467, "children": [], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 23}}, {"id": 469, "type": "call_expression", "text": "get_closest_word(error_word , dict)", "parent": 467, "children": [470, 471], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 59}}, {"id": 470, "type": "identifier", "text": "get_closest_word", "parent": 469, "children": [], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 40}}, {"id": 471, "type": "argument_list", "text": "(error_word , dict)", "parent": 469, "children": [472, 473], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 59}}, {"id": 472, "type": "identifier", "text": "error_word", "parent": 471, "children": [], "start_point": {"row": 138, "column": 41}, "end_point": {"row": 138, "column": 51}}, {"id": 473, "type": "identifier", "text": "dict", "parent": 471, "children": [], "start_point": {"row": 138, "column": 54}, "end_point": {"row": 138, "column": 58}}, {"id": 474, "type": "return_statement", "text": "return 0;", "parent": 317, "children": [475], "start_point": {"row": 141, "column": 4}, "end_point": {"row": 141, "column": 13}}, {"id": 475, "type": "number_literal", "text": "0", "parent": 474, "children": [], "start_point": {"row": 141, "column": 11}, "end_point": {"row": 141, "column": 12}}]}, "node_categories": {"declarations": {"functions": [6, 8, 41, 43, 86, 88, 240, 242, 317, 319], "variables": [11, 15, 46, 51, 54, 91, 96, 101, 107, 111, 245, 250, 257, 263, 271, 322, 329, 344], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [22, 23, 24, 26, 27, 36, 61, 62, 63, 72, 73, 74, 81, 116, 123, 128, 129, 142, 143, 148, 152, 156, 157, 158, 163, 168, 169, 170, 174, 183, 184, 185, 189, 193, 197, 206, 207, 212, 213, 217, 226, 227, 231, 268, 278, 279, 280, 287, 288, 289, 293, 301, 305, 312, 338, 342, 353, 356, 357, 358, 363, 373, 377, 380, 384, 387, 391, 394, 395, 396, 401, 404, 408, 412, 419, 421, 425, 428, 429, 432, 437, 444, 447, 448, 449, 454, 457, 462, 467, 469], "assignments": [133, 138, 177, 200, 220, 234, 298, 308, 369, 386, 411, 441], "loops": [21, 60, 137, 277, 368, 418], "conditionals": [9, 14, 18, 28, 30, 37, 40, 44, 50, 53, 57, 64, 65, 71, 75, 76, 78, 82, 89, 95, 100, 104, 109, 110, 114, 117, 119, 121, 124, 126, 127, 130, 132, 134, 139, 144, 146, 149, 151, 153, 155, 159, 161, 164, 166, 167, 171, 172, 175, 176, 178, 182, 186, 188, 190, 191, 194, 196, 198, 199, 201, 205, 208, 210, 211, 214, 216, 218, 219, 221, 225, 228, 230, 232, 233, 235, 239, 243, 249, 256, 260, 266, 274, 281, 282, 286, 290, 292, 294, 295, 297, 299, 302, 304, 306, 307, 309, 311, 313, 316, 320, 324, 325, 326, 327, 328, 334, 339, 343, 351, 354, 359, 370, 374, 376, 378, 381, 385, 388, 389, 392, 397, 405, 409, 410, 413, 414, 422, 426, 427, 430, 438, 440, 442, 445, 450, 458, 461, 463, 468, 470, 472, 473], "returns": [39, 79, 84, 238, 315, 474], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 20, 32, 59, 67, 80, 85, 106, 136, 141, 180, 203, 223, 237, 262, 270, 276, 341, 361, 372, 383, 399, 407, 420, 424, 434, 452, 460, 465, 475], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "get_len", "text_snippet": "int get_len(char s[])\n{\n\tint i = 0 ; \n\twhile(*(s + i) != '\\0')\n\t\ti++;\n\n\treturn i ; \n}"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "get_len(char s[])"}, {"node_id": 41, "universal_type": "function", "name": "exists", "text_snippet": "int exists(char *a , char ch){\n\tint i = 0 ; \n\twhile(a[i] != '\\0')\n\t{\n\t\tif(a[i] == ch)\n\t\t\treturn 1; \n"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "exists(char *a , char ch)"}, {"node_id": 86, "universal_type": "function", "name": "i", "text_snippet": "float get_closeless(char *a, char *b)\n{\n\tfloat closeness = 0 ;\n\tint i , j;\n\n\tint a_len = get_len(a) "}, {"node_id": 88, "universal_type": "function", "name": "unknown", "text_snippet": "get_closeless(char *a, char *b)"}, {"node_id": 240, "universal_type": "function", "name": "get_closest_word", "text_snippet": "int get_closest_word(char *s, char **dict){\n\tint i = 0 ; \n\tint max_closeness = - 1; \n\tint max_closen"}, {"node_id": 242, "universal_type": "function", "name": "unknown", "text_snippet": "get_closest_word(char *s, char **dict)"}, {"node_id": 317, "universal_type": "function", "name": "main", "text_snippet": "int main(){\n\tint n, n_temp , e_len, i, j;\n\tchar *error_word = NULL ;\n\n\tscanf(\"%d\" , &n);\n\n\tchar **di"}, {"node_id": 319, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\nUp to 20% marks will be allotted for good programming practice. These include \n - Comments: for non-trivial code \n - Indentation: align your code properly \n - Function use and modular programming \n - Do not include anything in the header other than what is already given in the template.\n - You are required to allocate memory Dynamically instead of static memory allocation otherwise you will get 0 marks. All Strings and Dictionaries, etc should be dynamically allocated. \n\nOne of our tutors, named A, is very bad in typing. He tried to type without looking at the keyboard and ends up making a lot of mistakes. For example, he sometimes ends up with \"helli\" instead of \"hello\", \"chariman\" for \"chairman\", etc. A is very sad as he can not compose mails, write question papers, etc quickly. Please help A by writing a program which tells him the closest word in the dictionary for input words. \n\nCloseness of two word strings s1 and s2 is computed as follows:\n1. If length(s1) = length(s2) then you get 1 additional points of closeness. \n2. For each j such that s1[j] = s2[j], you get 2 additional points.\n3. For each j such that s1[j] != s2[j], you get 0.5 addition points if s1[j] exists in s2 and s2[j] exists in s1. In the situations where j >= length(s1) but j < length(s2), you only need to check if s2[j] exists in s1 and similarly if j < length(s1) and j >= length(s2). \n\nFor Example, Closeness between \"hello\" and \"helobo\" is 7.0. Closeness between \"persuasion\" and \"perturbation\" is 10.5. (The smaller the closeness parameter, the closer the strings are!)\n\nINPUT : \nYou would be given the size N of the dictionary. This would be followed by N lines each of which has a number followed by a string. The number denotes the length of this string. These N lines constitute the contents of the dictionary. \nThis is followed by string-length and string pairs which are the words to be corrected based on their closeness in the dictionary. Input pairs should be processed till you see a -1. \n \nOUTPUT :\nPrint the closest string in the dictionary corresponding to each length, string pair. If there exists multiple words in the dictionary which are equally close to the input word then output the one which was added earlier to the dictionary. \n\nEXAMPLE:\nInput : \n3\n2 hi\n3 hey\n4 yoyo\n2 hi \n3 hiy \n4 yoy\n1 h\n-1\n\nOutput :\nhi \nhey \nyoyo \nhi\n\nNOTE : \nWords like \"hi\" and \"Hi\" should be treated as different words in the dictionary. You can make your program case insensitive as a practice problems. There are many heuristics which are used to correct a mistyped word based on a dictionary. The closeness measure defined for this problem is one of them. There may exists better heuristics.\n*/\n#include <stdio.h>\n#include <stdlib.h>\n\nint get_len(char s[])\n{\n\tint i = 0 ; \n\twhile(*(s + i) != '\\0')\n\t\ti++;\n\n\treturn i ; \n}\n\nint exists(char *a , char ch){\n\tint i = 0 ; \n\twhile(a[i] != '\\0')\n\t{\n\t\tif(a[i] == ch)\n\t\t\treturn 1; \n\t\ti++; \n\t}\n\n\treturn 0;\n}\n\nfloat get_closeless(char *a, char *b)\n{\n\tfloat closeness = 0 ;\n\tint i , j;\n\n\tint a_len = get_len(a) , b_len = get_len(b); \n\n\tif(a_len == b_len)\n\t\tcloseness += 1; \n\n\tfor(i = 0 ; i < a_len || i < b_len ; i++)\n\t\tif(i < a_len && i < b_len)\n\t\t{\tif(a[i] == b[i])\n\t\t\t\tcloseness += 2;\n\t\t\telse {if (exists(b , a[i]) && exists(a , b[i]))\n\t\t\t\tcloseness += 0.5;}\t\n\t\t}\n\t\telse{\n\t\t\tif(i < a_len){\n\t\t\t\tif(exists(b, a[i]))\n\t\t\t\t{ \n\t\t\t\t\tcloseness += 0.5; \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(exists(a, b[i])){\n\t\t\t\tcloseness += 0.5;\n\t\t\t}\n\n\t\t}\n\n\treturn closeness ; \n}\n\nint get_closest_word(char *s, char **dict){\n\tint i = 0 ; \n\tint max_closeness = - 1; \n\tint max_closeness_index = -1;\n\twhile(dict[i] != NULL ){\n\t\tif(get_closeless(s , dict[i]) > max_closeness){\n\t\t\tmax_closeness = get_closeless(s, dict[i]) ; \n\t\t\tmax_closeness_index = i ; \n\t\t}\n\t\ti++;\n\t} \n\treturn max_closeness_index ;\n} \n\nint main(){\n\tint n, n_temp , e_len, i, j;\n\tchar *error_word = NULL ;\n\n\tscanf(\"%d\" , &n);\n\n\tchar **dict = malloc((n + 1)*sizeof(int *));\n\tfor (i=0 ; i<n ; i++){\n\t\t\tscanf(\"%d\" , &n_temp);\n dict[i] = malloc((n_temp + 1)*sizeof(int));\n scanf(\"%s\" , dict[i]);\n }\n dict[n] = NULL ;\n\n while(1){\n \tscanf(\"%d\" , &n_temp);\n \tif(n_temp == - 1)\n \t\tbreak;\n\n \tfree(error_word);\n \terror_word = malloc((n_temp + 1)*sizeof(char));\n \tscanf(\"%s\", error_word);\n \tprintf(\"%s\\n\",dict[get_closest_word(error_word , dict)]);\n \t\n }\n return 0;\n\n}"}
80,346
c
/* * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg 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 FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "libavcodec/mathops.h" #include <stdlib.h> int main(void) { unsigned u; for(u=0; u<65536; u++) { unsigned s = u*u; unsigned root = ff_sqrt(s); unsigned root_m1 = ff_sqrt(s-1); if (s && root != u) { fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root); return 1; } if (u && root_m1 != u - 1) { fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root); return 1; } } return 0; }
33.51
37
(translation_unit) "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg 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 FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include "libavcodec/mathops.h"\n\n#include <stdlib.h>\n\nint main(void)\n{\n unsigned u;\n\n for(u=0; u<65536; u++) {\n unsigned s = u*u;\n unsigned root = ff_sqrt(s);\n unsigned root_m1 = ff_sqrt(s-1);\n if (s && root != u) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n if (u && root_m1 != u - 1) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n }\n return 0;\n}\n" (comment) "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg 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 FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */" (preproc_include) "#include "libavcodec/mathops.h"\n" (#include) "#include" (string_literal) ""libavcodec/mathops.h"" (") """ (string_content) "libavcodec/mathops.h" (") """ (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (function_definition) "int main(void)\n{\n unsigned u;\n\n for(u=0; u<65536; u++) {\n unsigned s = u*u;\n unsigned root = ff_sqrt(s);\n unsigned root_m1 = ff_sqrt(s-1);\n if (s && root != u) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n if (u && root_m1 != u - 1) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n }\n return 0;\n}" (primitive_type) "int" (function_declarator) "main(void)" (identifier) "main" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n unsigned u;\n\n for(u=0; u<65536; u++) {\n unsigned s = u*u;\n unsigned root = ff_sqrt(s);\n unsigned root_m1 = ff_sqrt(s-1);\n if (s && root != u) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n if (u && root_m1 != u - 1) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n }\n return 0;\n}" ({) "{" (declaration) "unsigned u;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "u" (;) ";" (for_statement) "for(u=0; u<65536; u++) {\n unsigned s = u*u;\n unsigned root = ff_sqrt(s);\n unsigned root_m1 = ff_sqrt(s-1);\n if (s && root != u) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n if (u && root_m1 != u - 1) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n }" (for) "for" (() "(" (assignment_expression) "u=0" (identifier) "u" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "u<65536" (identifier) "u" (<) "<" (number_literal) "65536" (;) ";" (update_expression) "u++" (identifier) "u" (++) "++" ()) ")" (compound_statement) "{\n unsigned s = u*u;\n unsigned root = ff_sqrt(s);\n unsigned root_m1 = ff_sqrt(s-1);\n if (s && root != u) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n if (u && root_m1 != u - 1) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }\n }" ({) "{" (declaration) "unsigned s = u*u;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (init_declarator) "s = u*u" (identifier) "s" (=) "=" (binary_expression) "u*u" (identifier) "u" (*) "*" (identifier) "u" (;) ";" (declaration) "unsigned root = ff_sqrt(s);" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (init_declarator) "root = ff_sqrt(s)" (identifier) "root" (=) "=" (call_expression) "ff_sqrt(s)" (identifier) "ff_sqrt" (argument_list) "(s)" (() "(" (identifier) "s" ()) ")" (;) ";" (declaration) "unsigned root_m1 = ff_sqrt(s-1);" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (init_declarator) "root_m1 = ff_sqrt(s-1)" (identifier) "root_m1" (=) "=" (call_expression) "ff_sqrt(s-1)" (identifier) "ff_sqrt" (argument_list) "(s-1)" (() "(" (binary_expression) "s-1" (identifier) "s" (-) "-" (number_literal) "1" ()) ")" (;) ";" (if_statement) "if (s && root != u) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }" (if) "if" (parenthesized_expression) "(s && root != u)" (() "(" (binary_expression) "s && root != u" (identifier) "s" (&&) "&&" (binary_expression) "root != u" (identifier) "root" (!=) "!=" (identifier) "u" ()) ")" (compound_statement) "{\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }" ({) "{" (expression_statement) "fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);" (call_expression) "fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root)" (identifier) "fprintf" (argument_list) "(stderr, "ff_sqrt failed at %u with %u\n", s, root)" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ff_sqrt failed at %u with %u\n"" (") """ (string_content) "ff_sqrt failed at %u with %u" (escape_sequence) "\n" (") """ (,) "," (identifier) "s" (,) "," (identifier) "root" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (if_statement) "if (u && root_m1 != u - 1) {\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }" (if) "if" (parenthesized_expression) "(u && root_m1 != u - 1)" (() "(" (binary_expression) "u && root_m1 != u - 1" (identifier) "u" (&&) "&&" (binary_expression) "root_m1 != u - 1" (identifier) "root_m1" (!=) "!=" (binary_expression) "u - 1" (identifier) "u" (-) "-" (number_literal) "1" ()) ")" (compound_statement) "{\n fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);\n return 1;\n }" ({) "{" (expression_statement) "fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root);" (call_expression) "fprintf(stderr, "ff_sqrt failed at %u with %u\n", s, root)" (identifier) "fprintf" (argument_list) "(stderr, "ff_sqrt failed at %u with %u\n", s, root)" (() "(" (identifier) "stderr" (,) "," (string_literal) ""ff_sqrt failed at %u with %u\n"" (") """ (string_content) "ff_sqrt failed at %u with %u" (escape_sequence) "\n" (") """ (,) "," (identifier) "s" (,) "," (identifier) "root" ()) ")" (;) ";" (return_statement) "return 1;" (return) "return" (number_literal) "1" (;) ";" (}) "}" (}) "}" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
169
0
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 33.51, "nodes": 105, "errors": 0, "source_hash": "df2f71c2010f1bc9b523ad7b39ba47589f8304ac24ed445bcaafe5fd8738e215", "categorized_nodes": 76}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"libavcodec/mathops.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"libavcodec/mathops.h\"", "parent": 0, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 31}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.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": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 19}}, {"id": 6, "type": "function_definition", "text": "int main(void)\n{\n unsigned u;\n\n for(u=0; u<65536; u++) {\n unsigned s = u*u;\n unsigned root = ff_sqrt(s);\n unsigned root_m1 = ff_sqrt(s-1);\n if (s && root != u) {\n fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root);\n return 1;\n }\n if (u && root_m1 != u - 1) {\n fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root);\n return 1;\n }\n }\n return 0;\n}", "parent": null, "children": [7, 8], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 40, "column": 1}}, {"id": 7, "type": "primitive_type", "text": "int", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 3}}, {"id": 8, "type": "function_declarator", "text": "main(void)", "parent": 6, "children": [9, 10], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 14}}, {"id": 9, "type": "identifier", "text": "main", "parent": 8, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 10, "type": "parameter_list", "text": "(void)", "parent": 8, "children": [11], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 14}}, {"id": 11, "type": "parameter_declaration", "text": "void", "parent": 10, "children": [12], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 13}}, {"id": 12, "type": "primitive_type", "text": "void", "parent": 11, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 13}}, {"id": 13, "type": "declaration", "text": "unsigned u;", "parent": 6, "children": [14, 16], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 15}}, {"id": 14, "type": "sized_type_specifier", "text": "unsigned", "parent": 13, "children": [15], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 12}}, {"id": 15, "type": "unsigned", "text": "unsigned", "parent": 14, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 12}}, {"id": 16, "type": "identifier", "text": "u", "parent": 13, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 17, "type": "for_statement", "text": "for(u=0; u<65536; u++) {\n unsigned s = u*u;\n unsigned root = ff_sqrt(s);\n unsigned root_m1 = ff_sqrt(s-1);\n if (s && root != u) {\n fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root);\n return 1;\n }\n if (u && root_m1 != u - 1) {\n fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root);\n return 1;\n }\n }", "parent": 6, "children": [18, 22, 26], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 38, "column": 5}}, {"id": 18, "type": "assignment_expression", "text": "u=0", "parent": 17, "children": [19, 20, 21], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 11}}, {"id": 19, "type": "identifier", "text": "u", "parent": 18, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 9}}, {"id": 20, "type": "=", "text": "=", "parent": 18, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 10}}, {"id": 21, "type": "number_literal", "text": "0", "parent": 18, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 11}}, {"id": 22, "type": "binary_expression", "text": "u<65536", "parent": 17, "children": [23, 24, 25], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 20}}, {"id": 23, "type": "identifier", "text": "u", "parent": 22, "children": [], "start_point": {"row": 26, "column": 13}, "end_point": {"row": 26, "column": 14}}, {"id": 24, "type": "<", "text": "<", "parent": 22, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 15}}, {"id": 25, "type": "number_literal", "text": "65536", "parent": 22, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 20}}, {"id": 26, "type": "update_expression", "text": "u++", "parent": 17, "children": [27, 28], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 25}}, {"id": 27, "type": "identifier", "text": "u", "parent": 26, "children": [], "start_point": {"row": 26, "column": 22}, "end_point": {"row": 26, "column": 23}}, {"id": 28, "type": "++", "text": "++", "parent": 26, "children": [], "start_point": {"row": 26, "column": 23}, "end_point": {"row": 26, "column": 25}}, {"id": 29, "type": "declaration", "text": "unsigned s = u*u;", "parent": 17, "children": [30, 32], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 25}}, {"id": 30, "type": "sized_type_specifier", "text": "unsigned", "parent": 29, "children": [31], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 16}}, {"id": 31, "type": "unsigned", "text": "unsigned", "parent": 30, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 16}}, {"id": 32, "type": "init_declarator", "text": "s = u*u", "parent": 29, "children": [33, 34, 35], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 24}}, {"id": 33, "type": "identifier", "text": "s", "parent": 32, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 18}}, {"id": 34, "type": "=", "text": "=", "parent": 32, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 20}}, {"id": 35, "type": "binary_expression", "text": "u*u", "parent": 32, "children": [36, 37, 38], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 24}}, {"id": 36, "type": "identifier", "text": "u", "parent": 35, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 22}}, {"id": 37, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 38, "type": "identifier", "text": "u", "parent": 35, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 39, "type": "declaration", "text": "unsigned root = ff_sqrt(s);", "parent": 17, "children": [40, 42], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 35}}, {"id": 40, "type": "sized_type_specifier", "text": "unsigned", "parent": 39, "children": [41], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 16}}, {"id": 41, "type": "unsigned", "text": "unsigned", "parent": 40, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 16}}, {"id": 42, "type": "init_declarator", "text": "root = ff_sqrt(s)", "parent": 39, "children": [43, 44, 45], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 34}}, {"id": 43, "type": "identifier", "text": "root", "parent": 42, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 21}}, {"id": 44, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 23}}, {"id": 45, "type": "call_expression", "text": "ff_sqrt(s)", "parent": 42, "children": [46, 47], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 34}}, {"id": 46, "type": "identifier", "text": "ff_sqrt", "parent": 45, "children": [], "start_point": {"row": 28, "column": 24}, "end_point": {"row": 28, "column": 31}}, {"id": 47, "type": "argument_list", "text": "(s)", "parent": 45, "children": [48], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 34}}, {"id": 48, "type": "identifier", "text": "s", "parent": 47, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 33}}, {"id": 49, "type": "declaration", "text": "unsigned root_m1 = ff_sqrt(s-1);", "parent": 17, "children": [50, 52], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 40}}, {"id": 50, "type": "sized_type_specifier", "text": "unsigned", "parent": 49, "children": [51], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 16}}, {"id": 51, "type": "unsigned", "text": "unsigned", "parent": 50, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 16}}, {"id": 52, "type": "init_declarator", "text": "root_m1 = ff_sqrt(s-1)", "parent": 49, "children": [53, 54, 55], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 39}}, {"id": 53, "type": "identifier", "text": "root_m1", "parent": 52, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 24}}, {"id": 54, "type": "=", "text": "=", "parent": 52, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 26}}, {"id": 55, "type": "call_expression", "text": "ff_sqrt(s-1)", "parent": 52, "children": [56, 57], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 39}}, {"id": 56, "type": "identifier", "text": "ff_sqrt", "parent": 55, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 34}}, {"id": 57, "type": "argument_list", "text": "(s-1)", "parent": 55, "children": [58], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 39}}, {"id": 58, "type": "binary_expression", "text": "s-1", "parent": 57, "children": [59, 60, 61], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 38}}, {"id": 59, "type": "identifier", "text": "s", "parent": 58, "children": [], "start_point": {"row": 29, "column": 35}, "end_point": {"row": 29, "column": 36}}, {"id": 60, "type": "-", "text": "-", "parent": 58, "children": [], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 37}}, {"id": 61, "type": "number_literal", "text": "1", "parent": 58, "children": [], "start_point": {"row": 29, "column": 37}, "end_point": {"row": 29, "column": 38}}, {"id": 62, "type": "if_statement", "text": "if (s && root != u) {\n fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root);\n return 1;\n }", "parent": 17, "children": [63], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 33, "column": 9}}, {"id": 63, "type": "parenthesized_expression", "text": "(s && root != u)", "parent": 62, "children": [64], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 27}}, {"id": 64, "type": "binary_expression", "text": "s && root != u", "parent": 63, "children": [65, 66, 67], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 26}}, {"id": 65, "type": "identifier", "text": "s", "parent": 64, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 66, "type": "&&", "text": "&&", "parent": 64, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 16}}, {"id": 67, "type": "binary_expression", "text": "root != u", "parent": 64, "children": [68, 69, 70], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 26}}, {"id": 68, "type": "identifier", "text": "root", "parent": 67, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 21}}, {"id": 69, "type": "!=", "text": "!=", "parent": 67, "children": [], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 24}}, {"id": 70, "type": "identifier", "text": "u", "parent": 67, "children": [], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 26}}, {"id": 71, "type": "call_expression", "text": "fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root)", "parent": 62, "children": [72, 73], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 70}}, {"id": 72, "type": "identifier", "text": "fprintf", "parent": 71, "children": [], "start_point": {"row": 31, "column": 12}, "end_point": {"row": 31, "column": 19}}, {"id": 73, "type": "argument_list", "text": "(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root)", "parent": 71, "children": [74, 75, 77, 78], "start_point": {"row": 31, "column": 19}, "end_point": {"row": 31, "column": 70}}, {"id": 74, "type": "identifier", "text": "stderr", "parent": 73, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 26}}, {"id": 75, "type": "string_literal", "text": "\"ff_sqrt failed at %u with %u\\n\"", "parent": 73, "children": [76], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 60}}, {"id": 76, "type": "escape_sequence", "text": "\\n", "parent": 75, "children": [], "start_point": {"row": 31, "column": 57}, "end_point": {"row": 31, "column": 59}}, {"id": 77, "type": "identifier", "text": "s", "parent": 73, "children": [], "start_point": {"row": 31, "column": 62}, "end_point": {"row": 31, "column": 63}}, {"id": 78, "type": "identifier", "text": "root", "parent": 73, "children": [], "start_point": {"row": 31, "column": 65}, "end_point": {"row": 31, "column": 69}}, {"id": 79, "type": "return_statement", "text": "return 1;", "parent": 62, "children": [80], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 21}}, {"id": 80, "type": "number_literal", "text": "1", "parent": 79, "children": [], "start_point": {"row": 32, "column": 19}, "end_point": {"row": 32, "column": 20}}, {"id": 81, "type": "if_statement", "text": "if (u && root_m1 != u - 1) {\n fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root);\n return 1;\n }", "parent": 17, "children": [82], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 37, "column": 9}}, {"id": 82, "type": "parenthesized_expression", "text": "(u && root_m1 != u - 1)", "parent": 81, "children": [83], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 34}}, {"id": 83, "type": "binary_expression", "text": "u && root_m1 != u - 1", "parent": 82, "children": [84, 85, 86], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 33}}, {"id": 84, "type": "identifier", "text": "u", "parent": 83, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 13}}, {"id": 85, "type": "&&", "text": "&&", "parent": 83, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 16}}, {"id": 86, "type": "binary_expression", "text": "root_m1 != u - 1", "parent": 83, "children": [87, 88, 89], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 33}}, {"id": 87, "type": "identifier", "text": "root_m1", "parent": 86, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 24}}, {"id": 88, "type": "!=", "text": "!=", "parent": 86, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 27}}, {"id": 89, "type": "binary_expression", "text": "u - 1", "parent": 86, "children": [90, 91, 92], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 33}}, {"id": 90, "type": "identifier", "text": "u", "parent": 89, "children": [], "start_point": {"row": 34, "column": 28}, "end_point": {"row": 34, "column": 29}}, {"id": 91, "type": "-", "text": "-", "parent": 89, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 31}}, {"id": 92, "type": "number_literal", "text": "1", "parent": 89, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 33}}, {"id": 93, "type": "call_expression", "text": "fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root)", "parent": 81, "children": [94, 95], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 70}}, {"id": 94, "type": "identifier", "text": "fprintf", "parent": 93, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 19}}, {"id": 95, "type": "argument_list", "text": "(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root)", "parent": 93, "children": [96, 97, 99, 100], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 70}}, {"id": 96, "type": "identifier", "text": "stderr", "parent": 95, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 26}}, {"id": 97, "type": "string_literal", "text": "\"ff_sqrt failed at %u with %u\\n\"", "parent": 95, "children": [98], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 60}}, {"id": 98, "type": "escape_sequence", "text": "\\n", "parent": 97, "children": [], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 59}}, {"id": 99, "type": "identifier", "text": "s", "parent": 95, "children": [], "start_point": {"row": 35, "column": 62}, "end_point": {"row": 35, "column": 63}}, {"id": 100, "type": "identifier", "text": "root", "parent": 95, "children": [], "start_point": {"row": 35, "column": 65}, "end_point": {"row": 35, "column": 69}}, {"id": 101, "type": "return_statement", "text": "return 1;", "parent": 81, "children": [102], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 21}}, {"id": 102, "type": "number_literal", "text": "1", "parent": 101, "children": [], "start_point": {"row": 36, "column": 19}, "end_point": {"row": 36, "column": 20}}, {"id": 103, "type": "return_statement", "text": "return 0;", "parent": 6, "children": [104], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 13}}, {"id": 104, "type": "number_literal", "text": "0", "parent": 103, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 12}}]}, "node_categories": {"declarations": {"functions": [6, 8], "variables": [11, 13, 29, 39, 49], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [22, 26, 35, 45, 55, 58, 63, 64, 67, 71, 82, 83, 86, 89, 93], "assignments": [18], "loops": [17], "conditionals": [9, 14, 16, 19, 23, 27, 30, 33, 36, 38, 40, 43, 46, 48, 50, 53, 56, 59, 62, 65, 68, 70, 72, 74, 77, 78, 81, 84, 87, 90, 94, 96, 99, 100], "returns": [79, 101, 103], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 21, 25, 61, 75, 80, 92, 97, 102, 104], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "main", "text_snippet": "int main(void)\n{\n unsigned u;\n\n for(u=0; u<65536; u++) {\n unsigned s = u*u;\n uns"}, {"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "main(void)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"libavcodec/mathops.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdlib.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "/*\n * This file is part of FFmpeg.\n *\n * FFmpeg is free software; you can redistribute it and/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2.1 of the License, or (at your option) any later version.\n *\n * FFmpeg 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 FFmpeg; if not, write to the Free Software\n * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n */\n\n#include \"libavcodec/mathops.h\"\n\n#include <stdlib.h>\n\nint main(void)\n{\n unsigned u;\n\n for(u=0; u<65536; u++) {\n unsigned s = u*u;\n unsigned root = ff_sqrt(s);\n unsigned root_m1 = ff_sqrt(s-1);\n if (s && root != u) {\n fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root);\n return 1;\n }\n if (u && root_m1 != u - 1) {\n fprintf(stderr, \"ff_sqrt failed at %u with %u\\n\", s, root);\n return 1;\n }\n }\n return 0;\n}\n"}
80,347
c
void main() { int a = 0; int b = 0; int x = 0; int y = 0; while(x<10) { x++; y++; if(x==y) a = x; if(x==a) b = a; //here transitivity of equalities is needed } assert(x==b); }
12.87
15
(translation_unit) "void main()\n{\n int a = 0;\n int b = 0;\n int x = 0;\n int y = 0;\n while(x<10)\n {\n x++;\n y++;\n if(x==y) a = x;\n if(x==a) b = a; //here transitivity of equalities is needed\n }\n assert(x==b);\n}\n" (function_definition) "void main()\n{\n int a = 0;\n int b = 0;\n int x = 0;\n int y = 0;\n while(x<10)\n {\n x++;\n y++;\n if(x==y) a = x;\n if(x==a) b = a; //here transitivity of equalities is needed\n }\n assert(x==b);\n}" (primitive_type) "void" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int a = 0;\n int b = 0;\n int x = 0;\n int y = 0;\n while(x<10)\n {\n x++;\n y++;\n if(x==y) a = x;\n if(x==a) b = a; //here transitivity of equalities is needed\n }\n assert(x==b);\n}" ({) "{" (declaration) "int a = 0;" (primitive_type) "int" (init_declarator) "a = 0" (identifier) "a" (=) "=" (number_literal) "0" (;) ";" (declaration) "int b = 0;" (primitive_type) "int" (init_declarator) "b = 0" (identifier) "b" (=) "=" (number_literal) "0" (;) ";" (declaration) "int x = 0;" (primitive_type) "int" (init_declarator) "x = 0" (identifier) "x" (=) "=" (number_literal) "0" (;) ";" (declaration) "int y = 0;" (primitive_type) "int" (init_declarator) "y = 0" (identifier) "y" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while(x<10)\n {\n x++;\n y++;\n if(x==y) a = x;\n if(x==a) b = a; //here transitivity of equalities is needed\n }" (while) "while" (parenthesized_expression) "(x<10)" (() "(" (binary_expression) "x<10" (identifier) "x" (<) "<" (number_literal) "10" ()) ")" (compound_statement) "{\n x++;\n y++;\n if(x==y) a = x;\n if(x==a) b = a; //here transitivity of equalities is needed\n }" ({) "{" (expression_statement) "x++;" (update_expression) "x++" (identifier) "x" (++) "++" (;) ";" (expression_statement) "y++;" (update_expression) "y++" (identifier) "y" (++) "++" (;) ";" (if_statement) "if(x==y) a = x;" (if) "if" (parenthesized_expression) "(x==y)" (() "(" (binary_expression) "x==y" (identifier) "x" (==) "==" (identifier) "y" ()) ")" (expression_statement) "a = x;" (assignment_expression) "a = x" (identifier) "a" (=) "=" (identifier) "x" (;) ";" (if_statement) "if(x==a) b = a;" (if) "if" (parenthesized_expression) "(x==a)" (() "(" (binary_expression) "x==a" (identifier) "x" (==) "==" (identifier) "a" ()) ")" (expression_statement) "b = a;" (assignment_expression) "b = a" (identifier) "b" (=) "=" (identifier) "a" (;) ";" (comment) "//here transitivity of equalities is needed" (}) "}" (expression_statement) "assert(x==b);" (call_expression) "assert(x==b)" (identifier) "assert" (argument_list) "(x==b)" (() "(" (binary_expression) "x==b" (identifier) "x" (==) "==" (identifier) "b" ()) ")" (;) ";" (}) "}"
103
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 12.87, "nodes": 68, "errors": 0, "source_hash": "976e717221f94ca6d6113e232ae69b13a9ac2f5606f0d788cf5080cb7c5e07bb", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void main()\n{\n int a = 0;\n int b = 0;\n int x = 0;\n int y = 0;\n while(x<10)\n {\n x++;\n y++;\n if(x==y) a = x;\n if(x==a) b = a; //here transitivity of equalities is needed\n }\n assert(x==b);\n}", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 1, "type": "primitive_type", "text": "void", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 4}}, {"id": 2, "type": "function_declarator", "text": "main()", "parent": 0, "children": [3, 4], "start_point": {"row": 0, "column": 5}, "end_point": {"row": 0, "column": 11}}, {"id": 3, "type": "identifier", "text": "main", "parent": 2, "children": [], "start_point": {"row": 0, "column": 5}, "end_point": {"row": 0, "column": 9}}, {"id": 4, "type": "parameter_list", "text": "()", "parent": 2, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 11}}, {"id": 5, "type": "declaration", "text": "int a = 0;", "parent": 0, "children": [6, 7], "start_point": {"row": 2, "column": 2}, "end_point": {"row": 2, "column": 12}}, {"id": 6, "type": "primitive_type", "text": "int", "parent": 5, "children": [], "start_point": {"row": 2, "column": 2}, "end_point": {"row": 2, "column": 5}}, {"id": 7, "type": "init_declarator", "text": "a = 0", "parent": 5, "children": [8, 9, 10], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 11}}, {"id": 8, "type": "identifier", "text": "a", "parent": 7, "children": [], "start_point": {"row": 2, "column": 6}, "end_point": {"row": 2, "column": 7}}, {"id": 9, "type": "=", "text": "=", "parent": 7, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 9}}, {"id": 10, "type": "number_literal", "text": "0", "parent": 7, "children": [], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 11}}, {"id": 11, "type": "declaration", "text": "int b = 0;", "parent": 0, "children": [12, 13], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 12}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 3, "column": 2}, "end_point": {"row": 3, "column": 5}}, {"id": 13, "type": "init_declarator", "text": "b = 0", "parent": 11, "children": [14, 15, 16], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 11}}, {"id": 14, "type": "identifier", "text": "b", "parent": 13, "children": [], "start_point": {"row": 3, "column": 6}, "end_point": {"row": 3, "column": 7}}, {"id": 15, "type": "=", "text": "=", "parent": 13, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 9}}, {"id": 16, "type": "number_literal", "text": "0", "parent": 13, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 11}}, {"id": 17, "type": "declaration", "text": "int x = 0;", "parent": 0, "children": [18, 19], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 12}}, {"id": 18, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 4, "column": 2}, "end_point": {"row": 4, "column": 5}}, {"id": 19, "type": "init_declarator", "text": "x = 0", "parent": 17, "children": [20, 21, 22], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 11}}, {"id": 20, "type": "identifier", "text": "x", "parent": 19, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 7}}, {"id": 21, "type": "=", "text": "=", "parent": 19, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 9}}, {"id": 22, "type": "number_literal", "text": "0", "parent": 19, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 11}}, {"id": 23, "type": "declaration", "text": "int y = 0;", "parent": 0, "children": [24, 25], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 12}}, {"id": 24, "type": "primitive_type", "text": "int", "parent": 23, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 5}}, {"id": 25, "type": "init_declarator", "text": "y = 0", "parent": 23, "children": [26, 27, 28], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 11}}, {"id": 26, "type": "identifier", "text": "y", "parent": 25, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 7}}, {"id": 27, "type": "=", "text": "=", "parent": 25, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 9}}, {"id": 28, "type": "number_literal", "text": "0", "parent": 25, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 11}}, {"id": 29, "type": "while_statement", "text": "while(x<10)\n {\n x++;\n y++;\n if(x==y) a = x;\n if(x==a) b = a; //here transitivity of equalities is needed\n }", "parent": 0, "children": [30], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 12, "column": 3}}, {"id": 30, "type": "parenthesized_expression", "text": "(x<10)", "parent": 29, "children": [31], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 13}}, {"id": 31, "type": "binary_expression", "text": "x<10", "parent": 30, "children": [32, 33, 34], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 12}}, {"id": 32, "type": "identifier", "text": "x", "parent": 31, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 9}}, {"id": 33, "type": "<", "text": "<", "parent": 31, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 10}}, {"id": 34, "type": "number_literal", "text": "10", "parent": 31, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 12}}, {"id": 35, "type": "update_expression", "text": "x++", "parent": 29, "children": [36, 37], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 7}}, {"id": 36, "type": "identifier", "text": "x", "parent": 35, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 5}}, {"id": 37, "type": "++", "text": "++", "parent": 35, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 7}}, {"id": 38, "type": "update_expression", "text": "y++", "parent": 29, "children": [39, 40], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 7}}, {"id": 39, "type": "identifier", "text": "y", "parent": 38, "children": [], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 5}}, {"id": 40, "type": "++", "text": "++", "parent": 38, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 7}}, {"id": 41, "type": "if_statement", "text": "if(x==y) a = x;", "parent": 29, "children": [42], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 19}}, {"id": 42, "type": "parenthesized_expression", "text": "(x==y)", "parent": 41, "children": [43], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 12}}, {"id": 43, "type": "binary_expression", "text": "x==y", "parent": 42, "children": [44, 45, 46], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 11}}, {"id": 44, "type": "identifier", "text": "x", "parent": 43, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 8}}, {"id": 45, "type": "==", "text": "==", "parent": 43, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 10}}, {"id": 46, "type": "identifier", "text": "y", "parent": 43, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 11}}, {"id": 47, "type": "assignment_expression", "text": "a = x", "parent": 41, "children": [48, 49, 50], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 18}}, {"id": 48, "type": "identifier", "text": "a", "parent": 47, "children": [], "start_point": {"row": 10, "column": 13}, "end_point": {"row": 10, "column": 14}}, {"id": 49, "type": "=", "text": "=", "parent": 47, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 16}}, {"id": 50, "type": "identifier", "text": "x", "parent": 47, "children": [], "start_point": {"row": 10, "column": 17}, "end_point": {"row": 10, "column": 18}}, {"id": 51, "type": "if_statement", "text": "if(x==a) b = a;", "parent": 29, "children": [52], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 19}}, {"id": 52, "type": "parenthesized_expression", "text": "(x==a)", "parent": 51, "children": [53], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 12}}, {"id": 53, "type": "binary_expression", "text": "x==a", "parent": 52, "children": [54, 55, 56], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 11}}, {"id": 54, "type": "identifier", "text": "x", "parent": 53, "children": [], "start_point": {"row": 11, "column": 7}, "end_point": {"row": 11, "column": 8}}, {"id": 55, "type": "==", "text": "==", "parent": 53, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 10}}, {"id": 56, "type": "identifier", "text": "a", "parent": 53, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 11}}, {"id": 57, "type": "assignment_expression", "text": "b = a", "parent": 51, "children": [58, 59, 60], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 18}}, {"id": 58, "type": "identifier", "text": "b", "parent": 57, "children": [], "start_point": {"row": 11, "column": 13}, "end_point": {"row": 11, "column": 14}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 16}}, {"id": 60, "type": "identifier", "text": "a", "parent": 57, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 18}}, {"id": 61, "type": "call_expression", "text": "assert(x==b)", "parent": 0, "children": [62, 63], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 14}}, {"id": 62, "type": "identifier", "text": "assert", "parent": 61, "children": [], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 8}}, {"id": 63, "type": "argument_list", "text": "(x==b)", "parent": 61, "children": [64], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 14}}, {"id": 64, "type": "binary_expression", "text": "x==b", "parent": 63, "children": [65, 66, 67], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 13}}, {"id": 65, "type": "identifier", "text": "x", "parent": 64, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 10}}, {"id": 66, "type": "==", "text": "==", "parent": 64, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 12}}, {"id": 67, "type": "identifier", "text": "b", "parent": 64, "children": [], "start_point": {"row": 13, "column": 12}, "end_point": {"row": 13, "column": 13}}]}, "node_categories": {"declarations": {"functions": [0, 2], "variables": [5, 11, 17, 23], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [30, 31, 35, 38, 42, 43, 52, 53, 61, 64], "assignments": [47, 57], "loops": [29], "conditionals": [3, 8, 14, 20, 26, 32, 36, 39, 41, 44, 46, 48, 50, 51, 54, 56, 58, 60, 62, 65, 67], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [10, 16, 22, 28, 34], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 0, "universal_type": "function", "name": "main", "text_snippet": "void main()\n{\n int a = 0;\n int b = 0;\n int x = 0;\n int y = 0;\n while(x<10)\n {\n x++;\n y++"}, {"node_id": 2, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": []}, "original_source_code": "void main()\n{\n int a = 0;\n int b = 0;\n int x = 0;\n int y = 0;\n while(x<10)\n {\n x++;\n y++;\n if(x==y) a = x;\n if(x==a) b = a; //here transitivity of equalities is needed\n }\n assert(x==b);\n}\n"}
80,348
c
// // FBSUtil.h // serrano // // Created by <NAME> on 7/5/17. // Copyright © 2017 <NAME>. All rights reserved. // #ifndef FBSUtil_h #define FBSUtil_h #include <stdio.h> #include <errno.h> #include "SerranoSchema_reader.h" #include "flatbuffers_common_reader.h" char* FBSUtil_readFlatBuffer(const char* file_path); void FBSUtil_releaseFlatBuffer(char* allocated_buffer); size_t FBSUtil_tensorsCount(const char* buffer); size_t FBSUtil_tensorValuesCount(const char* buffer, size_t tensor_index); const char* FBSUtil_tensorUID(const char* buffer, size_t tensor_index); float FBSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index); #endif /* FBSUtil_h */
31.62
21
(translation_unit) "//\n// FBSUtil.h\n// serrano\n//\n// Created by <NAME> on 7/5/17.\n// Copyright © 2017 <NAME>. All rights reserved.\n//\n\n#ifndef FBSUtil_h\n#define FBSUtil_h\n\n#include <stdio.h>\n#include <errno.h>\n#include "SerranoSchema_reader.h"\n#include "flatbuffers_common_reader.h"\n\nchar* FBSUtil_readFlatBuffer(const char* file_path);\nvoid FBSUtil_releaseFlatBuffer(char* allocated_buffer);\nsize_t FBSUtil_tensorsCount(const char* buffer);\nsize_t FBSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);\nconst char* FBSUtil_tensorUID(const char* buffer, size_t tensor_index);\nfloat FBSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);\n\n\n#endif /* FBSUtil_h */\n" (comment) "//" (comment) "// FBSUtil.h" (comment) "// serrano" (comment) "//" (comment) "// Created by <NAME> on 7/5/17." (comment) "// Copyright © 2017 <NAME>. All rights reserved.\n" (comment) "/\n" (preproc_ifdef) "ifndef FBSUtil_h\n#define FBSUtil_h\n\n#include <stdio.h>\n#include <errno.h>\n#include "SerranoSchema_reader.h"\n#include "flatbuffers_common_reader.h"\n\nchar* FBSUtil_readFlatBuffer(const char* file_path);\nvoid FBSUtil_releaseFlatBuffer(char* allocated_buffer);\nsize_t FBSUtil_tensorsCount(const char* buffer);\nsize_t FBSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);\nconst char* FBSUtil_tensorUID(const char* buffer, size_t tensor_index);\nfloat FBSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);\n\n\n#endif " (#ifndef) "ifndef " (identifier) "BSUtil_h\n" (preproc_def) "define FBSUtil_h\n\n" (#define) "define " (identifier) "BSUtil_h\n" (preproc_include) "include <stdio.h>\n#" (#include) "include " (system_lib_string) "stdio.h>\n" (preproc_include) "include <errno.h>\n#" (#include) "include " (system_lib_string) "errno.h>\n" (preproc_include) "include "SerranoSchema_reader.h"\n#" (#include) "include " (string_literal) "SerranoSchema_reader.h"\n" (") "S" (string_content) "erranoSchema_reader.h"" (") "\n" (preproc_include) "include "flatbuffers_common_reader.h"\n\n" (#include) "include " (string_literal) "flatbuffers_common_reader.h"\n" (") "f" (string_content) "latbuffers_common_reader.h"" (") "\n" (declaration) "har* FBSUtil_readFlatBuffer(const char* file_path);\n" (primitive_type) "har*" (pointer_declarator) " FBSUtil_readFlatBuffer(const char* file_path);" (*) " " (function_declarator) "BSUtil_readFlatBuffer(const char* file_path);" (identifier) "BSUtil_readFlatBuffer(" (parameter_list) "const char* file_path);" (() "c" (parameter_declaration) "onst char* file_path)" (type_qualifier) "onst " (const) "onst " (primitive_type) "har*" (pointer_declarator) " file_path)" (*) " " (identifier) "ile_path)" ()) ";" (;) "\n" (declaration) "oid FBSUtil_releaseFlatBuffer(char* allocated_buffer);\n" (primitive_type) "oid " (function_declarator) "BSUtil_releaseFlatBuffer(char* allocated_buffer);" (identifier) "BSUtil_releaseFlatBuffer(" (parameter_list) "char* allocated_buffer);" (() "c" (parameter_declaration) "har* allocated_buffer)" (primitive_type) "har*" (pointer_declarator) " allocated_buffer)" (*) " " (identifier) "llocated_buffer)" ()) ";" (;) "\n" (declaration) "ize_t FBSUtil_tensorsCount(const char* buffer);\n" (primitive_type) "ize_t " (function_declarator) "BSUtil_tensorsCount(const char* buffer);" (identifier) "BSUtil_tensorsCount(" (parameter_list) "const char* buffer);" (() "c" (parameter_declaration) "onst char* buffer)" (type_qualifier) "onst " (const) "onst " (primitive_type) "har*" (pointer_declarator) " buffer)" (*) " " (identifier) "uffer)" ()) ";" (;) "\n" (declaration) "ize_t FBSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);\n" (primitive_type) "ize_t " (function_declarator) "BSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);" (identifier) "BSUtil_tensorValuesCount(" (parameter_list) "const char* buffer, size_t tensor_index);" (() "c" (parameter_declaration) "onst char* buffer," (type_qualifier) "onst " (const) "onst " (primitive_type) "har*" (pointer_declarator) " buffer," (*) " " (identifier) "uffer," (,) " " (parameter_declaration) "ize_t tensor_index)" (primitive_type) "ize_t " (identifier) "ensor_index)" ()) ";" (;) "\n" (declaration) "onst char* FBSUtil_tensorUID(const char* buffer, size_t tensor_index);\n" (type_qualifier) "onst " (const) "onst " (primitive_type) "har*" (pointer_declarator) " FBSUtil_tensorUID(const char* buffer, size_t tensor_index);" (*) " " (function_declarator) "BSUtil_tensorUID(const char* buffer, size_t tensor_index);" (identifier) "BSUtil_tensorUID(" (parameter_list) "const char* buffer, size_t tensor_index);" (() "c" (parameter_declaration) "onst char* buffer," (type_qualifier) "onst " (const) "onst " (primitive_type) "har*" (pointer_declarator) " buffer," (*) " " (identifier) "uffer," (,) " " (parameter_declaration) "ize_t tensor_index)" (primitive_type) "ize_t " (identifier) "ensor_index)" ()) ";" (;) "\n" (declaration) "loat FBSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);\n" (primitive_type) "loat " (function_declarator) "BSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);" (identifier) "BSUtil_tensorValueAt(" (parameter_list) "const char* buffer, size_t tensor_index, size_t value_index);" (() "c" (parameter_declaration) "onst char* buffer," (type_qualifier) "onst " (const) "onst " (primitive_type) "har*" (pointer_declarator) " buffer," (*) " " (identifier) "uffer," (,) " " (parameter_declaration) "ize_t tensor_index," (primitive_type) "ize_t " (identifier) "ensor_index," (,) " " (parameter_declaration) "ize_t value_index)" (primitive_type) "ize_t " (identifier) "alue_index)" ()) ";" (;) "\n" (#endif) "endif " (comment) "* FBSUtil_h */\n"
144
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 31.62, "nodes": 101, "errors": 0, "source_hash": "38cc10ac09e54106af6e1291273d53120da50570c3d3afb880ac8cd0313f275c", "categorized_nodes": 61}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "ifndef FBSUtil_h\n#define FBSUtil_h\n\n#include <stdio.h>\n#include <errno.h>\n#include \"SerranoSchema_reader.h\"\n#include \"flatbuffers_common_reader.h\"\n\nchar* FBSUtil_readFlatBuffer(const char* file_path);\nvoid FBSUtil_releaseFlatBuffer(char* allocated_buffer);\nsize_t FBSUtil_tensorsCount(const char* buffer);\nsize_t FBSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);\nconst char* FBSUtil_tensorUID(const char* buffer, size_t tensor_index);\nfloat FBSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);\n\n\n#endif ", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 31, 41, 52, 66, 83, 100], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 24, "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": "BSUtil_h\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "define FBSUtil_h\n\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": "BSUtil_h\n", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "include <stdio.h>\n#", "parent": 0, "children": [7, 8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 7, "type": "#include", "text": "include ", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "stdio.h>\n", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "include <errno.h>\n#", "parent": 0, "children": [10, 11], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 10, "type": "#include", "text": "include ", "parent": 9, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "errno.h>\n", "parent": 9, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "include \"SerranoSchema_reader.h\"\n#", "parent": 0, "children": [13, 14], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 13, "type": "#include", "text": "include ", "parent": 12, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 8}}, {"id": 14, "type": "string_literal", "text": "SerranoSchema_reader.h\"\n", "parent": 12, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 33}}, {"id": 15, "type": "preproc_include", "text": "include \"flatbuffers_common_reader.h\"\n\n", "parent": 0, "children": [16, 17], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 16, "type": "#include", "text": "include ", "parent": 15, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 8}}, {"id": 17, "type": "string_literal", "text": "flatbuffers_common_reader.h\"\n", "parent": 15, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 38}}, {"id": 18, "type": "declaration", "text": "har* FBSUtil_readFlatBuffer(const char* file_path);\n", "parent": 0, "children": [19, 20], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 52}}, {"id": 19, "type": "primitive_type", "text": "har*", "parent": 18, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 4}}, {"id": 20, "type": "pointer_declarator", "text": " FBSUtil_readFlatBuffer(const char* file_path);", "parent": 18, "children": [21, 22], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 51}}, {"id": 21, "type": "*", "text": " ", "parent": 20, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 5}}, {"id": 22, "type": "function_declarator", "text": "BSUtil_readFlatBuffer(const char* file_path);", "parent": 20, "children": [23, 24], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 51}}, {"id": 23, "type": "identifier", "text": "BSUtil_readFlatBuffer(", "parent": 22, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 28}}, {"id": 24, "type": "parameter_list", "text": "const char* file_path);", "parent": 22, "children": [25], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 51}}, {"id": 25, "type": "parameter_declaration", "text": "onst char* file_path)", "parent": 24, "children": [26, 27, 28], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 50}}, {"id": 26, "type": "type_qualifier", "text": "onst ", "parent": 25, "children": [], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 34}}, {"id": 27, "type": "primitive_type", "text": "har*", "parent": 25, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 39}}, {"id": 28, "type": "pointer_declarator", "text": " file_path)", "parent": 25, "children": [29, 30], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 50}}, {"id": 29, "type": "*", "text": " ", "parent": 28, "children": [], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 40}}, {"id": 30, "type": "identifier", "text": "ile_path)", "parent": 28, "children": [], "start_point": {"row": 16, "column": 41}, "end_point": {"row": 16, "column": 50}}, {"id": 31, "type": "declaration", "text": "oid FBSUtil_releaseFlatBuffer(char* allocated_buffer);\n", "parent": 0, "children": [32, 33], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 55}}, {"id": 32, "type": "primitive_type", "text": "oid ", "parent": 31, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 33, "type": "function_declarator", "text": "BSUtil_releaseFlatBuffer(char* allocated_buffer);", "parent": 31, "children": [34, 35], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 54}}, {"id": 34, "type": "identifier", "text": "BSUtil_releaseFlatBuffer(", "parent": 33, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 30}}, {"id": 35, "type": "parameter_list", "text": "char* allocated_buffer);", "parent": 33, "children": [36], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 54}}, {"id": 36, "type": "parameter_declaration", "text": "har* allocated_buffer)", "parent": 35, "children": [37, 38], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 53}}, {"id": 37, "type": "primitive_type", "text": "har*", "parent": 36, "children": [], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 17, "column": 35}}, {"id": 38, "type": "pointer_declarator", "text": " allocated_buffer)", "parent": 36, "children": [39, 40], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 53}}, {"id": 39, "type": "*", "text": " ", "parent": 38, "children": [], "start_point": {"row": 17, "column": 35}, "end_point": {"row": 17, "column": 36}}, {"id": 40, "type": "identifier", "text": "llocated_buffer)", "parent": 38, "children": [], "start_point": {"row": 17, "column": 37}, "end_point": {"row": 17, "column": 53}}, {"id": 41, "type": "declaration", "text": "ize_t FBSUtil_tensorsCount(const char* buffer);\n", "parent": 0, "children": [42, 43], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 48}}, {"id": 42, "type": "primitive_type", "text": "ize_t ", "parent": 41, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 6}}, {"id": 43, "type": "function_declarator", "text": "BSUtil_tensorsCount(const char* buffer);", "parent": 41, "children": [44, 45], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 47}}, {"id": 44, "type": "identifier", "text": "BSUtil_tensorsCount(", "parent": 43, "children": [], "start_point": {"row": 18, "column": 7}, "end_point": {"row": 18, "column": 27}}, {"id": 45, "type": "parameter_list", "text": "const char* buffer);", "parent": 43, "children": [46], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 47}}, {"id": 46, "type": "parameter_declaration", "text": "onst char* buffer)", "parent": 45, "children": [47, 48, 49], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 46}}, {"id": 47, "type": "type_qualifier", "text": "onst ", "parent": 46, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 33}}, {"id": 48, "type": "primitive_type", "text": "har*", "parent": 46, "children": [], "start_point": {"row": 18, "column": 34}, "end_point": {"row": 18, "column": 38}}, {"id": 49, "type": "pointer_declarator", "text": " buffer)", "parent": 46, "children": [50, 51], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 46}}, {"id": 50, "type": "*", "text": " ", "parent": 49, "children": [], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 39}}, {"id": 51, "type": "identifier", "text": "uffer)", "parent": 49, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 46}}, {"id": 52, "type": "declaration", "text": "ize_t FBSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);\n", "parent": 0, "children": [53, 54], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 74}}, {"id": 53, "type": "primitive_type", "text": "ize_t ", "parent": 52, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 54, "type": "function_declarator", "text": "BSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);", "parent": 52, "children": [55, 56], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 73}}, {"id": 55, "type": "identifier", "text": "BSUtil_tensorValuesCount(", "parent": 54, "children": [], "start_point": {"row": 19, "column": 7}, "end_point": {"row": 19, "column": 32}}, {"id": 56, "type": "parameter_list", "text": "const char* buffer, size_t tensor_index);", "parent": 54, "children": [57, 63], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 73}}, {"id": 57, "type": "parameter_declaration", "text": "onst char* buffer,", "parent": 56, "children": [58, 59, 60], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 51}}, {"id": 58, "type": "type_qualifier", "text": "onst ", "parent": 57, "children": [], "start_point": {"row": 19, "column": 33}, "end_point": {"row": 19, "column": 38}}, {"id": 59, "type": "primitive_type", "text": "har*", "parent": 57, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 43}}, {"id": 60, "type": "pointer_declarator", "text": " buffer,", "parent": 57, "children": [61, 62], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 51}}, {"id": 61, "type": "*", "text": " ", "parent": 60, "children": [], "start_point": {"row": 19, "column": 43}, "end_point": {"row": 19, "column": 44}}, {"id": 62, "type": "identifier", "text": "uffer,", "parent": 60, "children": [], "start_point": {"row": 19, "column": 45}, "end_point": {"row": 19, "column": 51}}, {"id": 63, "type": "parameter_declaration", "text": "ize_t tensor_index)", "parent": 56, "children": [64, 65], "start_point": {"row": 19, "column": 53}, "end_point": {"row": 19, "column": 72}}, {"id": 64, "type": "primitive_type", "text": "ize_t ", "parent": 63, "children": [], "start_point": {"row": 19, "column": 53}, "end_point": {"row": 19, "column": 59}}, {"id": 65, "type": "identifier", "text": "ensor_index)", "parent": 63, "children": [], "start_point": {"row": 19, "column": 60}, "end_point": {"row": 19, "column": 72}}, {"id": 66, "type": "declaration", "text": "onst char* FBSUtil_tensorUID(const char* buffer, size_t tensor_index);\n", "parent": 0, "children": [67, 68, 69], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 72}}, {"id": 67, "type": "type_qualifier", "text": "onst ", "parent": 66, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 5}}, {"id": 68, "type": "primitive_type", "text": "har*", "parent": 66, "children": [], "start_point": {"row": 20, "column": 6}, "end_point": {"row": 20, "column": 10}}, {"id": 69, "type": "pointer_declarator", "text": " FBSUtil_tensorUID(const char* buffer, size_t tensor_index);", "parent": 66, "children": [70, 71], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 71}}, {"id": 70, "type": "*", "text": " ", "parent": 69, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 11}}, {"id": 71, "type": "function_declarator", "text": "BSUtil_tensorUID(const char* buffer, size_t tensor_index);", "parent": 69, "children": [72, 73], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 71}}, {"id": 72, "type": "identifier", "text": "BSUtil_tensorUID(", "parent": 71, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 30}}, {"id": 73, "type": "parameter_list", "text": "const char* buffer, size_t tensor_index);", "parent": 71, "children": [74, 80], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 71}}, {"id": 74, "type": "parameter_declaration", "text": "onst char* buffer,", "parent": 73, "children": [75, 76, 77], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 49}}, {"id": 75, "type": "type_qualifier", "text": "onst ", "parent": 74, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 36}}, {"id": 76, "type": "primitive_type", "text": "har*", "parent": 74, "children": [], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 41}}, {"id": 77, "type": "pointer_declarator", "text": " buffer,", "parent": 74, "children": [78, 79], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 49}}, {"id": 78, "type": "*", "text": " ", "parent": 77, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 42}}, {"id": 79, "type": "identifier", "text": "uffer,", "parent": 77, "children": [], "start_point": {"row": 20, "column": 43}, "end_point": {"row": 20, "column": 49}}, {"id": 80, "type": "parameter_declaration", "text": "ize_t tensor_index)", "parent": 73, "children": [81, 82], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 70}}, {"id": 81, "type": "primitive_type", "text": "ize_t ", "parent": 80, "children": [], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 57}}, {"id": 82, "type": "identifier", "text": "ensor_index)", "parent": 80, "children": [], "start_point": {"row": 20, "column": 58}, "end_point": {"row": 20, "column": 70}}, {"id": 83, "type": "declaration", "text": "loat FBSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);\n", "parent": 0, "children": [84, 85], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 89}}, {"id": 84, "type": "primitive_type", "text": "loat ", "parent": 83, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 5}}, {"id": 85, "type": "function_declarator", "text": "BSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);", "parent": 83, "children": [86, 87], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 88}}, {"id": 86, "type": "identifier", "text": "BSUtil_tensorValueAt(", "parent": 85, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 27}}, {"id": 87, "type": "parameter_list", "text": "const char* buffer, size_t tensor_index, size_t value_index);", "parent": 85, "children": [88, 94, 97], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 88}}, {"id": 88, "type": "parameter_declaration", "text": "onst char* buffer,", "parent": 87, "children": [89, 90, 91], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 46}}, {"id": 89, "type": "type_qualifier", "text": "onst ", "parent": 88, "children": [], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 33}}, {"id": 90, "type": "primitive_type", "text": "har*", "parent": 88, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 38}}, {"id": 91, "type": "pointer_declarator", "text": " buffer,", "parent": 88, "children": [92, 93], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 46}}, {"id": 92, "type": "*", "text": " ", "parent": 91, "children": [], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 39}}, {"id": 93, "type": "identifier", "text": "uffer,", "parent": 91, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 46}}, {"id": 94, "type": "parameter_declaration", "text": "ize_t tensor_index,", "parent": 87, "children": [95, 96], "start_point": {"row": 21, "column": 48}, "end_point": {"row": 21, "column": 67}}, {"id": 95, "type": "primitive_type", "text": "ize_t ", "parent": 94, "children": [], "start_point": {"row": 21, "column": 48}, "end_point": {"row": 21, "column": 54}}, {"id": 96, "type": "identifier", "text": "ensor_index,", "parent": 94, "children": [], "start_point": {"row": 21, "column": 55}, "end_point": {"row": 21, "column": 67}}, {"id": 97, "type": "parameter_declaration", "text": "ize_t value_index)", "parent": 87, "children": [98, 99], "start_point": {"row": 21, "column": 69}, "end_point": {"row": 21, "column": 87}}, {"id": 98, "type": "primitive_type", "text": "ize_t ", "parent": 97, "children": [], "start_point": {"row": 21, "column": 69}, "end_point": {"row": 21, "column": 75}}, {"id": 99, "type": "identifier", "text": "alue_index)", "parent": 97, "children": [], "start_point": {"row": 21, "column": 76}, "end_point": {"row": 21, "column": 87}}, {"id": 100, "type": "#endif", "text": "endif ", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}]}, "node_categories": {"declarations": {"functions": [22, 33, 43, 54, 71, 85], "variables": [18, 25, 31, 36, 41, 46, 52, 57, 63, 66, 74, 80, 83, 88, 94, 97], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 23, 26, 30, 34, 40, 44, 47, 51, 55, 58, 62, 65, 67, 72, 75, 79, 82, 86, 89, 93, 96, 99, 100], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 22, "universal_type": "function", "name": "unknown", "text_snippet": "BSUtil_readFlatBuffer(const char* file_path);"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "BSUtil_releaseFlatBuffer(char* allocated_buffer);"}, {"node_id": 43, "universal_type": "function", "name": "unknown", "text_snippet": "BSUtil_tensorsCount(const char* buffer);"}, {"node_id": 54, "universal_type": "function", "name": "unknown", "text_snippet": "BSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "BSUtil_tensorUID(const char* buffer, size_t tensor_index);"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "BSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "include <stdio.h>\n#"}, {"node_id": 7, "text": "include "}, {"node_id": 9, "text": "include <errno.h>\n#"}, {"node_id": 10, "text": "include "}, {"node_id": 12, "text": "include \"SerranoSchema_reader.h\"\n#"}, {"node_id": 13, "text": "include "}, {"node_id": 15, "text": "include \"flatbuffers_common_reader.h\"\n\n"}, {"node_id": 16, "text": "include "}]}, "original_source_code": "//\n// FBSUtil.h\n// serrano\n//\n// Created by <NAME> on 7/5/17.\n// Copyright \u00a9 2017 <NAME>. All rights reserved.\n//\n\n#ifndef FBSUtil_h\n#define FBSUtil_h\n\n#include <stdio.h>\n#include <errno.h>\n#include \"SerranoSchema_reader.h\"\n#include \"flatbuffers_common_reader.h\"\n\nchar* FBSUtil_readFlatBuffer(const char* file_path);\nvoid FBSUtil_releaseFlatBuffer(char* allocated_buffer);\nsize_t FBSUtil_tensorsCount(const char* buffer);\nsize_t FBSUtil_tensorValuesCount(const char* buffer, size_t tensor_index);\nconst char* FBSUtil_tensorUID(const char* buffer, size_t tensor_index);\nfloat FBSUtil_tensorValueAt(const char* buffer, size_t tensor_index, size_t value_index);\n\n\n#endif /* FBSUtil_h */\n"}
80,349
c
// // Created by <NAME> on 10/27/21. // #ifndef WORD_SEARCH_SRC_TRIE_TRIE_H_ #define WORD_SEARCH_SRC_TRIE_TRIE_H_ #include <array> #include <memory> #include <string> enum class SearchResult { kFound, kPrefix, kNonexistent }; class Trie { static constexpr std::size_t num_buckets = 26; public: struct Node { void insert(const std::string &val, std::size_t pos) noexcept; [[nodiscard]] auto find(const std::string &val, std::size_t pos) const noexcept -> SearchResult; [[nodiscard]] auto size() const noexcept -> std::size_t; [[nodiscard]] auto empty() const noexcept -> bool; [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>; auto operator[](char c) const noexcept -> std::shared_ptr<Node>; bool is_leaf = false; std::array<std::shared_ptr<Node>, num_buckets> children; }; Trie(); auto insert(const std::string &val) noexcept -> bool; [[nodiscard]] auto find(const std::string &val) const noexcept -> SearchResult; [[nodiscard]] auto size() const noexcept -> std::size_t; [[nodiscard]] auto empty() const noexcept -> bool; [[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>; private: std::shared_ptr<Node> root_node_; }; #endif // WORD_SEARCH_SRC_TRIE_TRIE_H_
36.94
34
(translation_unit) "//\n// Created by <NAME> on 10/27/21.\n//\n\n#ifndef WORD_SEARCH_SRC_TRIE_TRIE_H_\n#define WORD_SEARCH_SRC_TRIE_TRIE_H_\n\n#include <array>\n#include <memory>\n#include <string>\n\nenum class SearchResult { kFound, kPrefix, kNonexistent };\n\nclass Trie {\n static constexpr std::size_t num_buckets = 26;\n\n public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();\n\n auto insert(const std::string &val) noexcept -> bool;\n [[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;\n};\n\n#endif // WORD_SEARCH_SRC_TRIE_TRIE_H_\n" (comment) "//" (comment) "// Created by <NAME> on 10/27/21." (comment) "//" (ERROR) "#ifndef WORD_SEARCH_SRC_TRIE_TRIE_H_\n#define WORD_SEARCH_SRC_TRIE_TRIE_H_\n\n#include <array>\n#include <memory>\n#include <string>\n\nenum class SearchResult { kFound, kPrefix, kNonexistent };\n\nclass Trie {\n static constexpr std::size_t num_buckets = 26;\n\n public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();\n\n auto insert(const std::string &val) noexcept -> bool;\n [[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;\n};\n\n#endif // WORD_SEARCH_SRC_TRIE_TRIE_H_\n" (#ifndef) "#ifndef" (identifier) "WORD_SEARCH_SRC_TRIE_TRIE_H_" (preproc_def) "#define WORD_SEARCH_SRC_TRIE_TRIE_H_\n" (#define) "#define" (identifier) "WORD_SEARCH_SRC_TRIE_TRIE_H_" (preproc_include) "#include <array>\n" (#include) "#include" (system_lib_string) "<array>" (preproc_include) "#include <memory>\n" (#include) "#include" (system_lib_string) "<memory>" (preproc_include) "#include <string>\n" (#include) "#include" (system_lib_string) "<string>" (enum_specifier) "enum class" (enum) "enum" (type_identifier) "class" (identifier) "SearchResult" ({) "{" (expression_statement) "kFound, kPrefix, kNonexistent };" (comma_expression) "kFound, kPrefix, kNonexistent" (identifier) "kFound" (,) "," (comma_expression) "kPrefix, kNonexistent" (identifier) "kPrefix" (,) "," (identifier) "kNonexistent" (ERROR) "}" (}) "}" (;) ";" (function_definition) "class Trie {\n static constexpr std::size_t num_buckets = 26;\n\n public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();\n\n auto insert(const std::string &val) noexcept -> bool;\n [[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;\n}" (type_identifier) "class" (identifier) "Trie" (compound_statement) "{\n static constexpr std::size_t num_buckets = 26;\n\n public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();\n\n auto insert(const std::string &val) noexcept -> bool;\n [[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;\n}" ({) "{" (declaration) "static constexpr std::size_t num_buckets = 26;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (ERROR) "std::" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (init_declarator) "num_buckets = 26" (identifier) "num_buckets" (=) "=" (number_literal) "26" (;) ";" (labeled_statement) "public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();" (statement_identifier) "public" (:) ":" (declaration) "struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();" (struct_specifier) "struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n }" (struct) "struct" (type_identifier) "Node" (field_declaration_list) "{\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n }" ({) "{" (field_declaration) "void insert(const std::string &val, std::size_t pos) noexcept;" (primitive_type) "void" (field_identifier) "insert" (ERROR) "(const std:" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (bitfield_clause) ":string &val" (:) ":" (binary_expression) "string &val" (identifier) "string" (&) "&" (identifier) "val" (,) "," (field_identifier) "std" (ERROR) ":" (:) ":" (bitfield_clause) ":size_t pos) noexcept" (:) ":" (ERROR) "size_t pos)" (identifier) "size_t" (identifier) "pos" ()) ")" (identifier) "noexcept" (;) ";" (field_declaration) "[[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;" (attribute_declaration) "[[nodiscard]]" ([[) "[[" (attribute) "nodiscard" (identifier) "nodiscard" (]]) "]]" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "find(const std::string &val,\n std::size_t pos)" (identifier) "find" (() "(" (ERROR) "const std::string &val,\n std::size_t" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "val" (,) "," (type_descriptor) "std" (type_identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (type_descriptor) "pos" (type_identifier) "pos" ()) ")" (type_qualifier) "const" (const) "const" (ERROR) "noexcept ->" (field_identifier) "noexcept" (->) "->" (field_identifier) "SearchResult" (;) ";" (field_declaration) "[[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;" (attribute_declaration) "[[nodiscard]]" ([[) "[[" (attribute) "nodiscard" (identifier) "nodiscard" (]]) "]]" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty()" (identifier) "size" (() "(" (ERROR) ")" ()) ")" (type_descriptor) "const noexcept" (type_qualifier) "const" (const) "const" (type_identifier) "noexcept" (ERROR) "-> std::size_t;\n [[nodiscard]] auto empty(" (->) "->" (identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (;) ";" ([[) "[[" (identifier) "nodiscard" (]) "]" (]) "]" (auto) "auto" (identifier) "empty" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (field_identifier) "noexcept" (ERROR) "-> bool" (->) "->" (primitive_type) "bool" (;) ";" (field_declaration) "[[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;" (attribute_declaration) "[[nodiscard]]" ([[) "[[" (attribute) "nodiscard" (identifier) "nodiscard" (]]) "]]" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "at(char c)" (identifier) "at" (() "(" (type_descriptor) "char" (primitive_type) "char" (ERROR) "c" (identifier) "c" ()) ")" (type_qualifier) "const" (const) "const" (field_identifier) "noexcept" (ERROR) "-> std:" (->) "->" (identifier) "std" (:) ":" (bitfield_clause) ":shared_ptr<Node" (:) ":" (binary_expression) "shared_ptr<Node" (identifier) "shared_ptr" (<) "<" (identifier) "Node" (ERROR) ">" (>) ">" (;) ";" (field_declaration) "auto operator[](char c)" (storage_class_specifier) "auto" (auto) "auto" (type_identifier) "operator" (function_declarator) "[](char c)" (array_declarator) "[]" (field_identifier) "" ([) "[" (]) "]" (parameter_list) "(char c)" (() "(" (parameter_declaration) "char c" (primitive_type) "char" (identifier) "c" ()) ")" (;) "" (field_declaration) "const noexcept -> std::shared_ptr<Node>;" (type_qualifier) "const" (const) "const" (type_identifier) "noexcept" (ERROR) "->" (->) "->" (field_identifier) "std" (ERROR) ":" (:) ":" (bitfield_clause) ":shared_ptr<Node" (:) ":" (binary_expression) "shared_ptr<Node" (identifier) "shared_ptr" (<) "<" (identifier) "Node" (ERROR) ">" (>) ">" (;) ";" (field_declaration) "bool is_leaf = false;" (primitive_type) "bool" (field_identifier) "is_leaf" (ERROR) "= false" (=) "=" (false) "false" (;) ";" (field_declaration) "std::array<std::shared_ptr<Node>, num_buckets> children;" (type_identifier) "std" (ERROR) "::array<" (:) ":" (:) ":" (field_identifier) "array" (<) "<" (field_identifier) "std" (ERROR) ":" (:) ":" (bitfield_clause) ":shared_ptr<Node>, num_buckets> children" (:) ":" (binary_expression) "shared_ptr<Node>, num_buckets> children" (binary_expression) "shared_ptr<Node>, num_buckets" (binary_expression) "shared_ptr<Node" (identifier) "shared_ptr" (<) "<" (identifier) "Node" (>) ">" (ERROR) "," (,) "," (identifier) "num_buckets" (>) ">" (identifier) "children" (;) ";" (}) "}" (ERROR) ";" (;) ";" (function_declarator) "Trie()" (identifier) "Trie" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "auto insert(const std::string &val) noexcept -> bool;" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "insert(const std::string &val)" (identifier) "insert" (() "(" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &val" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "val" ()) ")" (identifier) "noexcept" (ERROR) "-> bool" (->) "->" (primitive_type) "bool" (;) ";" (declaration) "[[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;" (attribute_declaration) "[[nodiscard]]" ([[) "[[" (attribute) "nodiscard" (identifier) "nodiscard" (]]) "]]" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "find(const std::string &val)" (identifier) "find" (() "(" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string &val" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "val" ()) ")" (type_qualifier) "const" (const) "const" (identifier) "noexcept" (ERROR) "-> SearchResult" (->) "->" (identifier) "SearchResult" (;) ";" (declaration) "[[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;" (attribute_declaration) "[[nodiscard]]" ([[) "[[" (attribute) "nodiscard" (identifier) "nodiscard" (]]) "]]" (storage_class_specifier) "auto" (auto) "auto" (macro_type_specifier) "size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty()" (identifier) "size" (() "(" (ERROR) ")" ()) ")" (type_descriptor) "const noexcept" (type_qualifier) "const" (const) "const" (type_identifier) "noexcept" (ERROR) "-> std::size_t;\n [[nodiscard]] auto empty(" (->) "->" (identifier) "std" (:) ":" (:) ":" (primitive_type) "size_t" (;) ";" ([[) "[[" (identifier) "nodiscard" (]) "]" (]) "]" (auto) "auto" (identifier) "empty" (() "(" ()) ")" (type_qualifier) "const" (const) "const" (identifier) "noexcept" (ERROR) "-> bool" (->) "->" (primitive_type) "bool" (;) ";" (ERROR) "[[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;" (attribute_declaration) "[[nodiscard]]" ([[) "[[" (attribute) "nodiscard" (identifier) "nodiscard" (]]) "]]" (storage_class_specifier) "auto" (auto) "auto" (identifier) "root_node" (() "(" (ERROR) ") const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::" ()) ")" (type_descriptor) "const noexcept" (type_qualifier) "const" (const) "const" (type_identifier) "noexcept" (ERROR) "-> std::shared_ptr<Node>;\n\n private:\n std" (->) "->" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Node" (>) ">" (;) ";" (identifier) "private" (:) ":" (identifier) "std" (:) ":" (:) ":" (identifier) "shared_ptr" (<) "<" (identifier) "Node" (>) ">" (identifier) "root_node_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (preproc_call) "#endif // WORD_SEARCH_SRC_TRIE_TRIE_H_\n" (preproc_directive) "#endif" (comment) "// WORD_SEARCH_SRC_TRIE_TRIE_H_"
407
32
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 36.94, "nodes": 250, "errors": 0, "source_hash": "854dbf8a217a8ba51c6458363ae013b53013bb2f4be4c65a4555c2a9b04effd0", "categorized_nodes": 153}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef WORD_SEARCH_SRC_TRIE_TRIE_H_\n#define WORD_SEARCH_SRC_TRIE_TRIE_H_\n\n#include <array>\n#include <memory>\n#include <string>\n\nenum class SearchResult { kFound, kPrefix, kNonexistent };\n\nclass Trie {\n static constexpr std::size_t num_buckets = 26;\n\n public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();\n\n auto insert(const std::string &val) noexcept -> bool;\n [[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;\n};\n\n#endif // WORD_SEARCH_SRC_TRIE_TRIE_H_\n", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 17, 23, 248], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 46, "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": "WORD_SEARCH_SRC_TRIE_TRIE_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 36}}, {"id": 3, "type": "preproc_def", "text": "#define WORD_SEARCH_SRC_TRIE_TRIE_H_\n", "parent": 0, "children": [4, 5], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 7}}, {"id": 5, "type": "identifier", "text": "WORD_SEARCH_SRC_TRIE_TRIE_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 36}}, {"id": 6, "type": "preproc_include", "text": "#include <array>\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": "<array>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include <memory>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<memory>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 12, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 15, "type": "enum_specifier", "text": "enum class", "parent": 0, "children": [16], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 10}}, {"id": 16, "type": "enum", "text": "enum", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 4}}, {"id": 17, "type": "identifier", "text": "SearchResult", "parent": 0, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 23}}, {"id": 18, "type": "comma_expression", "text": "kFound, kPrefix, kNonexistent", "parent": 0, "children": [19, 20], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 55}}, {"id": 19, "type": "identifier", "text": "kFound", "parent": 18, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 32}}, {"id": 20, "type": "comma_expression", "text": "kPrefix, kNonexistent", "parent": 18, "children": [21, 22], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 55}}, {"id": 21, "type": "identifier", "text": "kPrefix", "parent": 20, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 41}}, {"id": 22, "type": "identifier", "text": "kNonexistent", "parent": 20, "children": [], "start_point": {"row": 11, "column": 43}, "end_point": {"row": 11, "column": 55}}, {"id": 23, "type": "function_definition", "text": "class Trie {\n static constexpr std::size_t num_buckets = 26;\n\n public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();\n\n auto insert(const std::string &val) noexcept -> bool;\n [[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;\n}", "parent": 0, "children": [24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 43, "column": 1}}, {"id": 24, "type": "identifier", "text": "Trie", "parent": 23, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 10}}, {"id": 25, "type": "declaration", "text": "static constexpr std::size_t num_buckets = 26;", "parent": 23, "children": [26, 28, 30, 31], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 48}}, {"id": 26, "type": "type_qualifier", "text": "constexpr", "parent": 25, "children": [27], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 18}}, {"id": 27, "type": "constexpr", "text": "constexpr", "parent": 26, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 18}}, {"id": 28, "type": "ERROR", "text": "std::", "parent": 25, "children": [29], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 24}}, {"id": 29, "type": "type_identifier", "text": "std", "parent": 28, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 22}}, {"id": 30, "type": "primitive_type", "text": "size_t", "parent": 25, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 30}}, {"id": 31, "type": "init_declarator", "text": "num_buckets = 26", "parent": 25, "children": [32, 33, 34], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 47}}, {"id": 32, "type": "identifier", "text": "num_buckets", "parent": 31, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 42}}, {"id": 33, "type": "=", "text": "=", "parent": 31, "children": [], "start_point": {"row": 14, "column": 43}, "end_point": {"row": 14, "column": 44}}, {"id": 34, "type": "number_literal", "text": "26", "parent": 31, "children": [], "start_point": {"row": 14, "column": 45}, "end_point": {"row": 14, "column": 47}}, {"id": 35, "type": "labeled_statement", "text": "public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();", "parent": 23, "children": [36], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 31, "column": 9}}, {"id": 36, "type": "declaration", "text": "struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();", "parent": 35, "children": [37, 168], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 31, "column": 9}}, {"id": 37, "type": "struct_specifier", "text": "struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n }", "parent": 36, "children": [38, 39], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 29, "column": 3}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 8}}, {"id": 39, "type": "type_identifier", "text": "Node", "parent": 37, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 13}}, {"id": 40, "type": "field_declaration", "text": "void insert(const std::string &val, std::size_t pos) noexcept;", "parent": 37, "children": [41, 42, 43, 45, 49, 50], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 66}}, {"id": 41, "type": "primitive_type", "text": "void", "parent": 40, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 8}}, {"id": 42, "type": "field_identifier", "text": "insert", "parent": 40, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 15}}, {"id": 43, "type": "ERROR", "text": "(const std:", "parent": 40, "children": [44], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 26}}, {"id": 44, "type": "type_identifier", "text": "std", "parent": 43, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 25}}, {"id": 45, "type": "bitfield_clause", "text": ":string &val", "parent": 40, "children": [46], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 38}}, {"id": 46, "type": "binary_expression", "text": "string &val", "parent": 45, "children": [47, 48], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 38}}, {"id": 47, "type": "identifier", "text": "string", "parent": 46, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 33}}, {"id": 48, "type": "identifier", "text": "val", "parent": 46, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 38}}, {"id": 49, "type": "field_identifier", "text": "std", "parent": 40, "children": [], "start_point": {"row": 18, "column": 40}, "end_point": {"row": 18, "column": 43}}, {"id": 50, "type": "bitfield_clause", "text": ":size_t pos) noexcept", "parent": 40, "children": [51, 54], "start_point": {"row": 18, "column": 44}, "end_point": {"row": 18, "column": 65}}, {"id": 51, "type": "ERROR", "text": "size_t pos)", "parent": 50, "children": [52, 53], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 56}}, {"id": 52, "type": "identifier", "text": "size_t", "parent": 51, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 51}}, {"id": 53, "type": "identifier", "text": "pos", "parent": 51, "children": [], "start_point": {"row": 18, "column": 52}, "end_point": {"row": 18, "column": 55}}, {"id": 54, "type": "identifier", "text": "noexcept", "parent": 50, "children": [], "start_point": {"row": 18, "column": 57}, "end_point": {"row": 18, "column": 65}}, {"id": 55, "type": "field_declaration", "text": "[[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;", "parent": 37, "children": [56, 61, 63, 75, 77], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 20, "column": 76}}, {"id": 56, "type": "attribute_declaration", "text": "[[nodiscard]]", "parent": 55, "children": [57, 58, 60], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 17}}, {"id": 57, "type": "[[", "text": "[[", "parent": 56, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 6}}, {"id": 58, "type": "attribute", "text": "nodiscard", "parent": 56, "children": [59], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 15}}, {"id": 59, "type": "identifier", "text": "nodiscard", "parent": 58, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 15}}, {"id": 60, "type": "]]", "text": "]]", "parent": 56, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 17}}, {"id": 61, "type": "storage_class_specifier", "text": "auto", "parent": 55, "children": [62], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 22}}, {"id": 62, "type": "auto", "text": "auto", "parent": 61, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 22}}, {"id": 63, "type": "macro_type_specifier", "text": "find(const std::string &val,\n std::size_t pos)", "parent": 55, "children": [64, 65, 73], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 20, "column": 44}}, {"id": 64, "type": "identifier", "text": "find", "parent": 63, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 27}}, {"id": 65, "type": "ERROR", "text": "const std::string &val,\n std::size_t", "parent": 63, "children": [66, 68, 69, 70, 72], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 20, "column": 39}}, {"id": 66, "type": "type_descriptor", "text": "const std", "parent": 65, "children": [67], "start_point": {"row": 19, "column": 28}, "end_point": {"row": 19, "column": 37}}, {"id": 67, "type": "type_identifier", "text": "std", "parent": 66, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 37}}, {"id": 68, "type": "identifier", "text": "string", "parent": 65, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 45}}, {"id": 69, "type": "identifier", "text": "val", "parent": 65, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 50}}, {"id": 70, "type": "type_descriptor", "text": "std", "parent": 65, "children": [71], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 31}}, {"id": 71, "type": "type_identifier", "text": "std", "parent": 70, "children": [], "start_point": {"row": 20, "column": 28}, "end_point": {"row": 20, "column": 31}}, {"id": 72, "type": "primitive_type", "text": "size_t", "parent": 65, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 39}}, {"id": 73, "type": "type_descriptor", "text": "pos", "parent": 63, "children": [74], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 43}}, {"id": 74, "type": "type_identifier", "text": "pos", "parent": 73, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 43}}, {"id": 75, "type": "ERROR", "text": "noexcept ->", "parent": 55, "children": [76], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 62}}, {"id": 76, "type": "field_identifier", "text": "noexcept", "parent": 75, "children": [], "start_point": {"row": 20, "column": 51}, "end_point": {"row": 20, "column": 59}}, {"id": 77, "type": "field_identifier", "text": "SearchResult", "parent": 55, "children": [], "start_point": {"row": 20, "column": 63}, "end_point": {"row": 20, "column": 75}}, {"id": 78, "type": "field_declaration", "text": "[[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;", "parent": 37, "children": [79, 84, 86, 97, 98], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 22, "column": 54}}, {"id": 79, "type": "attribute_declaration", "text": "[[nodiscard]]", "parent": 78, "children": [80, 81, 83], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 17}}, {"id": 80, "type": "[[", "text": "[[", "parent": 79, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 6}}, {"id": 81, "type": "attribute", "text": "nodiscard", "parent": 79, "children": [82], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 15}}, {"id": 82, "type": "identifier", "text": "nodiscard", "parent": 81, "children": [], "start_point": {"row": 21, "column": 6}, "end_point": {"row": 21, "column": 15}}, {"id": 83, "type": "]]", "text": "]]", "parent": 79, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 17}}, {"id": 84, "type": "storage_class_specifier", "text": "auto", "parent": 78, "children": [85], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 22}}, {"id": 85, "type": "auto", "text": "auto", "parent": 84, "children": [], "start_point": {"row": 21, "column": 18}, "end_point": {"row": 21, "column": 22}}, {"id": 86, "type": "macro_type_specifier", "text": "size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty()", "parent": 78, "children": [87, 88, 90], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 22, "column": 30}}, {"id": 87, "type": "identifier", "text": "size", "parent": 86, "children": [], "start_point": {"row": 21, "column": 23}, "end_point": {"row": 21, "column": 27}}, {"id": 88, "type": "type_descriptor", "text": "const noexcept", "parent": 86, "children": [89], "start_point": {"row": 21, "column": 30}, "end_point": {"row": 21, "column": 44}}, {"id": 89, "type": "type_identifier", "text": "noexcept", "parent": 88, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 44}}, {"id": 90, "type": "ERROR", "text": "-> std::size_t;\n [[nodiscard]] auto empty(", "parent": 86, "children": [91, 92, 93, 94, 95, 96], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 22, "column": 29}}, {"id": 91, "type": "identifier", "text": "std", "parent": 90, "children": [], "start_point": {"row": 21, "column": 48}, "end_point": {"row": 21, "column": 51}}, {"id": 92, "type": "primitive_type", "text": "size_t", "parent": 90, "children": [], "start_point": {"row": 21, "column": 53}, "end_point": {"row": 21, "column": 59}}, {"id": 93, "type": "[[", "text": "[[", "parent": 90, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 6}}, {"id": 94, "type": "identifier", "text": "nodiscard", "parent": 90, "children": [], "start_point": {"row": 22, "column": 6}, "end_point": {"row": 22, "column": 15}}, {"id": 95, "type": "auto", "text": "auto", "parent": 90, "children": [], "start_point": {"row": 22, "column": 18}, "end_point": {"row": 22, "column": 22}}, {"id": 96, "type": "identifier", "text": "empty", "parent": 90, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 28}}, {"id": 97, "type": "field_identifier", "text": "noexcept", "parent": 78, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 45}}, {"id": 98, "type": "ERROR", "text": "-> bool", "parent": 78, "children": [99], "start_point": {"row": 22, "column": 46}, "end_point": {"row": 22, "column": 53}}, {"id": 99, "type": "primitive_type", "text": "bool", "parent": 98, "children": [], "start_point": {"row": 22, "column": 49}, "end_point": {"row": 22, "column": 53}}, {"id": 100, "type": "field_declaration", "text": "[[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;", "parent": 37, "children": [101, 106, 108, 114, 115, 117, 122], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 74}}, {"id": 101, "type": "attribute_declaration", "text": "[[nodiscard]]", "parent": 100, "children": [102, 103, 105], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 17}}, {"id": 102, "type": "[[", "text": "[[", "parent": 101, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 6}}, {"id": 103, "type": "attribute", "text": "nodiscard", "parent": 101, "children": [104], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 15}}, {"id": 104, "type": "identifier", "text": "nodiscard", "parent": 103, "children": [], "start_point": {"row": 24, "column": 6}, "end_point": {"row": 24, "column": 15}}, {"id": 105, "type": "]]", "text": "]]", "parent": 101, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 17}}, {"id": 106, "type": "storage_class_specifier", "text": "auto", "parent": 100, "children": [107], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 22}}, {"id": 107, "type": "auto", "text": "auto", "parent": 106, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 22}}, {"id": 108, "type": "macro_type_specifier", "text": "at(char c)", "parent": 100, "children": [109, 110, 112], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 33}}, {"id": 109, "type": "identifier", "text": "at", "parent": 108, "children": [], "start_point": {"row": 24, "column": 23}, "end_point": {"row": 24, "column": 25}}, {"id": 110, "type": "type_descriptor", "text": "char", "parent": 108, "children": [111], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 30}}, {"id": 111, "type": "primitive_type", "text": "char", "parent": 110, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 30}}, {"id": 112, "type": "ERROR", "text": "c", "parent": 108, "children": [113], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 32}}, {"id": 113, "type": "identifier", "text": "c", "parent": 112, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 32}}, {"id": 114, "type": "field_identifier", "text": "noexcept", "parent": 100, "children": [], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 48}}, {"id": 115, "type": "ERROR", "text": "-> std:", "parent": 100, "children": [116], "start_point": {"row": 24, "column": 49}, "end_point": {"row": 24, "column": 56}}, {"id": 116, "type": "identifier", "text": "std", "parent": 115, "children": [], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 55}}, {"id": 117, "type": "bitfield_clause", "text": ":shared_ptr<Node", "parent": 100, "children": [118], "start_point": {"row": 24, "column": 56}, "end_point": {"row": 24, "column": 72}}, {"id": 118, "type": "binary_expression", "text": "shared_ptr<Node", "parent": 117, "children": [119, 120, 121], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 72}}, {"id": 119, "type": "identifier", "text": "shared_ptr", "parent": 118, "children": [], "start_point": {"row": 24, "column": 57}, "end_point": {"row": 24, "column": 67}}, {"id": 120, "type": "<", "text": "<", "parent": 118, "children": [], "start_point": {"row": 24, "column": 67}, "end_point": {"row": 24, "column": 68}}, {"id": 121, "type": "identifier", "text": "Node", "parent": 118, "children": [], "start_point": {"row": 24, "column": 68}, "end_point": {"row": 24, "column": 72}}, {"id": 122, "type": "ERROR", "text": ">", "parent": 100, "children": [123], "start_point": {"row": 24, "column": 72}, "end_point": {"row": 24, "column": 73}}, {"id": 123, "type": ">", "text": ">", "parent": 122, "children": [], "start_point": {"row": 24, "column": 72}, "end_point": {"row": 24, "column": 73}}, {"id": 124, "type": "field_declaration", "text": "auto operator[](char c)", "parent": 37, "children": [125, 127, 128], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 27}}, {"id": 125, "type": "storage_class_specifier", "text": "auto", "parent": 124, "children": [126], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 126, "type": "auto", "text": "auto", "parent": 125, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 8}}, {"id": 127, "type": "type_identifier", "text": "operator", "parent": 124, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 17}}, {"id": 128, "type": "function_declarator", "text": "[](char c)", "parent": 124, "children": [129, 131], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 27}}, {"id": 129, "type": "array_declarator", "text": "[]", "parent": 128, "children": [130], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 19}}, {"id": 130, "type": "field_identifier", "text": "", "parent": 129, "children": [], "start_point": {"row": 25, "column": 17}, "end_point": {"row": 25, "column": 17}}, {"id": 131, "type": "parameter_list", "text": "(char c)", "parent": 128, "children": [132], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 27}}, {"id": 132, "type": "parameter_declaration", "text": "char c", "parent": 131, "children": [133, 134], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 26}}, {"id": 133, "type": "primitive_type", "text": "char", "parent": 132, "children": [], "start_point": {"row": 25, "column": 20}, "end_point": {"row": 25, "column": 24}}, {"id": 134, "type": "identifier", "text": "c", "parent": 132, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 26}}, {"id": 135, "type": "field_declaration", "text": "const noexcept -> std::shared_ptr<Node>;", "parent": 37, "children": [136, 137, 138, 143], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 68}}, {"id": 136, "type": "type_identifier", "text": "noexcept", "parent": 135, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 42}}, {"id": 137, "type": "field_identifier", "text": "std", "parent": 135, "children": [], "start_point": {"row": 25, "column": 46}, "end_point": {"row": 25, "column": 49}}, {"id": 138, "type": "bitfield_clause", "text": ":shared_ptr<Node", "parent": 135, "children": [139], "start_point": {"row": 25, "column": 50}, "end_point": {"row": 25, "column": 66}}, {"id": 139, "type": "binary_expression", "text": "shared_ptr<Node", "parent": 138, "children": [140, 141, 142], "start_point": {"row": 25, "column": 51}, "end_point": {"row": 25, "column": 66}}, {"id": 140, "type": "identifier", "text": "shared_ptr", "parent": 139, "children": [], "start_point": {"row": 25, "column": 51}, "end_point": {"row": 25, "column": 61}}, {"id": 141, "type": "<", "text": "<", "parent": 139, "children": [], "start_point": {"row": 25, "column": 61}, "end_point": {"row": 25, "column": 62}}, {"id": 142, "type": "identifier", "text": "Node", "parent": 139, "children": [], "start_point": {"row": 25, "column": 62}, "end_point": {"row": 25, "column": 66}}, {"id": 143, "type": "ERROR", "text": ">", "parent": 135, "children": [144], "start_point": {"row": 25, "column": 66}, "end_point": {"row": 25, "column": 67}}, {"id": 144, "type": ">", "text": ">", "parent": 143, "children": [], "start_point": {"row": 25, "column": 66}, "end_point": {"row": 25, "column": 67}}, {"id": 145, "type": "field_declaration", "text": "bool is_leaf = false;", "parent": 37, "children": [146, 147, 148], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 25}}, {"id": 146, "type": "primitive_type", "text": "bool", "parent": 145, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 8}}, {"id": 147, "type": "field_identifier", "text": "is_leaf", "parent": 145, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 16}}, {"id": 148, "type": "ERROR", "text": "= false", "parent": 145, "children": [149, 150], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 24}}, {"id": 149, "type": "=", "text": "=", "parent": 148, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 18}}, {"id": 150, "type": "false", "text": "false", "parent": 148, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 24}}, {"id": 151, "type": "field_declaration", "text": "std::array<std::shared_ptr<Node>, num_buckets> children;", "parent": 37, "children": [152, 153, 156, 157], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 60}}, {"id": 152, "type": "type_identifier", "text": "std", "parent": 151, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 7}}, {"id": 153, "type": "ERROR", "text": "::array<", "parent": 151, "children": [154, 155], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 15}}, {"id": 154, "type": "field_identifier", "text": "array", "parent": 153, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 14}}, {"id": 155, "type": "<", "text": "<", "parent": 153, "children": [], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 15}}, {"id": 156, "type": "field_identifier", "text": "std", "parent": 151, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 18}}, {"id": 157, "type": "bitfield_clause", "text": ":shared_ptr<Node>, num_buckets> children", "parent": 151, "children": [158], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 59}}, {"id": 158, "type": "binary_expression", "text": "shared_ptr<Node>, num_buckets> children", "parent": 157, "children": [159, 166, 167], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 59}}, {"id": 159, "type": "binary_expression", "text": "shared_ptr<Node>, num_buckets", "parent": 158, "children": [160, 164, 165], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 49}}, {"id": 160, "type": "binary_expression", "text": "shared_ptr<Node", "parent": 159, "children": [161, 162, 163], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 35}}, {"id": 161, "type": "identifier", "text": "shared_ptr", "parent": 160, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 30}}, {"id": 162, "type": "<", "text": "<", "parent": 160, "children": [], "start_point": {"row": 28, "column": 30}, "end_point": {"row": 28, "column": 31}}, {"id": 163, "type": "identifier", "text": "Node", "parent": 160, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 35}}, {"id": 164, "type": ">", "text": ">", "parent": 159, "children": [], "start_point": {"row": 28, "column": 35}, "end_point": {"row": 28, "column": 36}}, {"id": 165, "type": "identifier", "text": "num_buckets", "parent": 159, "children": [], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 49}}, {"id": 166, "type": ">", "text": ">", "parent": 158, "children": [], "start_point": {"row": 28, "column": 49}, "end_point": {"row": 28, "column": 50}}, {"id": 167, "type": "identifier", "text": "children", "parent": 158, "children": [], "start_point": {"row": 28, "column": 51}, "end_point": {"row": 28, "column": 59}}, {"id": 168, "type": "function_declarator", "text": "Trie()", "parent": 36, "children": [169, 170], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 8}}, {"id": 169, "type": "identifier", "text": "Trie", "parent": 168, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 6}}, {"id": 170, "type": "parameter_list", "text": "()", "parent": 168, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 8}}, {"id": 171, "type": "declaration", "text": "auto insert(const std::string &val) noexcept -> bool;", "parent": 23, "children": [172, 174, 181, 182], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 55}}, {"id": 172, "type": "storage_class_specifier", "text": "auto", "parent": 171, "children": [173], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 6}}, {"id": 173, "type": "auto", "text": "auto", "parent": 172, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 6}}, {"id": 174, "type": "macro_type_specifier", "text": "insert(const std::string &val)", "parent": 171, "children": [175, 176, 178], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 37}}, {"id": 175, "type": "identifier", "text": "insert", "parent": 174, "children": [], "start_point": {"row": 33, "column": 7}, "end_point": {"row": 33, "column": 13}}, {"id": 176, "type": "type_descriptor", "text": "const std", "parent": 174, "children": [177], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 23}}, {"id": 177, "type": "type_identifier", "text": "std", "parent": 176, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 23}}, {"id": 178, "type": "ERROR", "text": "::string &val", "parent": 174, "children": [179, 180], "start_point": {"row": 33, "column": 23}, "end_point": {"row": 33, "column": 36}}, {"id": 179, "type": "identifier", "text": "string", "parent": 178, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 31}}, {"id": 180, "type": "identifier", "text": "val", "parent": 178, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 36}}, {"id": 181, "type": "identifier", "text": "noexcept", "parent": 171, "children": [], "start_point": {"row": 33, "column": 38}, "end_point": {"row": 33, "column": 46}}, {"id": 182, "type": "ERROR", "text": "-> bool", "parent": 171, "children": [183], "start_point": {"row": 33, "column": 47}, "end_point": {"row": 33, "column": 54}}, {"id": 183, "type": "primitive_type", "text": "bool", "parent": 182, "children": [], "start_point": {"row": 33, "column": 50}, "end_point": {"row": 33, "column": 54}}, {"id": 184, "type": "declaration", "text": "[[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;", "parent": 23, "children": [185, 190, 192, 199, 200], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 35, "column": 22}}, {"id": 185, "type": "attribute_declaration", "text": "[[nodiscard]]", "parent": 184, "children": [186, 187, 189], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 15}}, {"id": 186, "type": "[[", "text": "[[", "parent": 185, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 4}}, {"id": 187, "type": "attribute", "text": "nodiscard", "parent": 185, "children": [188], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 13}}, {"id": 188, "type": "identifier", "text": "nodiscard", "parent": 187, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 13}}, {"id": 189, "type": "]]", "text": "]]", "parent": 185, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 15}}, {"id": 190, "type": "storage_class_specifier", "text": "auto", "parent": 184, "children": [191], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 20}}, {"id": 191, "type": "auto", "text": "auto", "parent": 190, "children": [], "start_point": {"row": 34, "column": 16}, "end_point": {"row": 34, "column": 20}}, {"id": 192, "type": "macro_type_specifier", "text": "find(const std::string &val)", "parent": 184, "children": [193, 194, 196], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 49}}, {"id": 193, "type": "identifier", "text": "find", "parent": 192, "children": [], "start_point": {"row": 34, "column": 21}, "end_point": {"row": 34, "column": 25}}, {"id": 194, "type": "type_descriptor", "text": "const std", "parent": 192, "children": [195], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 35}}, {"id": 195, "type": "type_identifier", "text": "std", "parent": 194, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 35}}, {"id": 196, "type": "ERROR", "text": "::string &val", "parent": 192, "children": [197, 198], "start_point": {"row": 34, "column": 35}, "end_point": {"row": 34, "column": 48}}, {"id": 197, "type": "identifier", "text": "string", "parent": 196, "children": [], "start_point": {"row": 34, "column": 37}, "end_point": {"row": 34, "column": 43}}, {"id": 198, "type": "identifier", "text": "val", "parent": 196, "children": [], "start_point": {"row": 34, "column": 45}, "end_point": {"row": 34, "column": 48}}, {"id": 199, "type": "identifier", "text": "noexcept", "parent": 184, "children": [], "start_point": {"row": 34, "column": 56}, "end_point": {"row": 34, "column": 64}}, {"id": 200, "type": "ERROR", "text": "-> SearchResult", "parent": 184, "children": [201], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 21}}, {"id": 201, "type": "identifier", "text": "SearchResult", "parent": 200, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 21}}, {"id": 202, "type": "declaration", "text": "[[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;", "parent": 23, "children": [203, 208, 210, 221, 222], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 37, "column": 52}}, {"id": 203, "type": "attribute_declaration", "text": "[[nodiscard]]", "parent": 202, "children": [204, 205, 207], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 15}}, {"id": 204, "type": "[[", "text": "[[", "parent": 203, "children": [], "start_point": {"row": 36, "column": 2}, "end_point": {"row": 36, "column": 4}}, {"id": 205, "type": "attribute", "text": "nodiscard", "parent": 203, "children": [206], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 13}}, {"id": 206, "type": "identifier", "text": "nodiscard", "parent": 205, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 13}}, {"id": 207, "type": "]]", "text": "]]", "parent": 203, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 15}}, {"id": 208, "type": "storage_class_specifier", "text": "auto", "parent": 202, "children": [209], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 20}}, {"id": 209, "type": "auto", "text": "auto", "parent": 208, "children": [], "start_point": {"row": 36, "column": 16}, "end_point": {"row": 36, "column": 20}}, {"id": 210, "type": "macro_type_specifier", "text": "size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty()", "parent": 202, "children": [211, 212, 214], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 37, "column": 28}}, {"id": 211, "type": "identifier", "text": "size", "parent": 210, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 25}}, {"id": 212, "type": "type_descriptor", "text": "const noexcept", "parent": 210, "children": [213], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 42}}, {"id": 213, "type": "type_identifier", "text": "noexcept", "parent": 212, "children": [], "start_point": {"row": 36, "column": 34}, "end_point": {"row": 36, "column": 42}}, {"id": 214, "type": "ERROR", "text": "-> std::size_t;\n [[nodiscard]] auto empty(", "parent": 210, "children": [215, 216, 217, 218, 219, 220], "start_point": {"row": 36, "column": 43}, "end_point": {"row": 37, "column": 27}}, {"id": 215, "type": "identifier", "text": "std", "parent": 214, "children": [], "start_point": {"row": 36, "column": 46}, "end_point": {"row": 36, "column": 49}}, {"id": 216, "type": "primitive_type", "text": "size_t", "parent": 214, "children": [], "start_point": {"row": 36, "column": 51}, "end_point": {"row": 36, "column": 57}}, {"id": 217, "type": "[[", "text": "[[", "parent": 214, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 4}}, {"id": 218, "type": "identifier", "text": "nodiscard", "parent": 214, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 13}}, {"id": 219, "type": "auto", "text": "auto", "parent": 214, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 20}}, {"id": 220, "type": "identifier", "text": "empty", "parent": 214, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 26}}, {"id": 221, "type": "identifier", "text": "noexcept", "parent": 202, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 43}}, {"id": 222, "type": "ERROR", "text": "-> bool", "parent": 202, "children": [223], "start_point": {"row": 37, "column": 44}, "end_point": {"row": 37, "column": 51}}, {"id": 223, "type": "primitive_type", "text": "bool", "parent": 222, "children": [], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 51}}, {"id": 224, "type": "ERROR", "text": "[[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;", "parent": 23, "children": [225, 230, 232, 233, 243, 244, 245, 246, 247], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 42, "column": 35}}, {"id": 225, "type": "attribute_declaration", "text": "[[nodiscard]]", "parent": 224, "children": [226, 227, 229], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 15}}, {"id": 226, "type": "[[", "text": "[[", "parent": 225, "children": [], "start_point": {"row": 39, "column": 2}, "end_point": {"row": 39, "column": 4}}, {"id": 227, "type": "attribute", "text": "nodiscard", "parent": 225, "children": [228], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 13}}, {"id": 228, "type": "identifier", "text": "nodiscard", "parent": 227, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 13}}, {"id": 229, "type": "]]", "text": "]]", "parent": 225, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 15}}, {"id": 230, "type": "storage_class_specifier", "text": "auto", "parent": 224, "children": [231], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 20}}, {"id": 231, "type": "auto", "text": "auto", "parent": 230, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 20}}, {"id": 232, "type": "identifier", "text": "root_node", "parent": 224, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 30}}, {"id": 233, "type": "ERROR", "text": ") const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::", "parent": 224, "children": [234, 236], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 42, "column": 7}}, {"id": 234, "type": "type_descriptor", "text": "const noexcept", "parent": 233, "children": [235], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 47}}, {"id": 235, "type": "type_identifier", "text": "noexcept", "parent": 234, "children": [], "start_point": {"row": 39, "column": 39}, "end_point": {"row": 39, "column": 47}}, {"id": 236, "type": "ERROR", "text": "-> std::shared_ptr<Node>;\n\n private:\n std", "parent": 233, "children": [237, 238, 239, 240, 241, 242], "start_point": {"row": 39, "column": 48}, "end_point": {"row": 42, "column": 5}}, {"id": 237, "type": "identifier", "text": "std", "parent": 236, "children": [], "start_point": {"row": 39, "column": 51}, "end_point": {"row": 39, "column": 54}}, {"id": 238, "type": "identifier", "text": "shared_ptr", "parent": 236, "children": [], "start_point": {"row": 39, "column": 56}, "end_point": {"row": 39, "column": 66}}, {"id": 239, "type": "<", "text": "<", "parent": 236, "children": [], "start_point": {"row": 39, "column": 66}, "end_point": {"row": 39, "column": 67}}, {"id": 240, "type": "identifier", "text": "Node", "parent": 236, "children": [], "start_point": {"row": 39, "column": 67}, "end_point": {"row": 39, "column": 71}}, {"id": 241, "type": ">", "text": ">", "parent": 236, "children": [], "start_point": {"row": 39, "column": 71}, "end_point": {"row": 39, "column": 72}}, {"id": 242, "type": "identifier", "text": "std", "parent": 236, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 5}}, {"id": 243, "type": "identifier", "text": "shared_ptr", "parent": 224, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 17}}, {"id": 244, "type": "<", "text": "<", "parent": 224, "children": [], "start_point": {"row": 42, "column": 17}, "end_point": {"row": 42, "column": 18}}, {"id": 245, "type": "identifier", "text": "Node", "parent": 224, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 22}}, {"id": 246, "type": ">", "text": ">", "parent": 224, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 23}}, {"id": 247, "type": "identifier", "text": "root_node_", "parent": 224, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 34}}, {"id": 248, "type": "preproc_call", "text": "#endif // WORD_SEARCH_SRC_TRIE_TRIE_H_\n", "parent": 0, "children": [249], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 249, "type": "preproc_directive", "text": "#endif", "parent": 248, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}]}, "node_categories": {"declarations": {"functions": [23, 128, 168], "variables": [25, 36, 40, 55, 56, 78, 79, 100, 101, 124, 132, 135, 145, 151, 171, 184, 185, 202, 203, 225], "classes": [37, 38, 61, 84, 106, 125, 172, 190, 208, 230], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": [15, 16]}, "statements": {"expressions": [18, 20, 46, 118, 139, 158, 159, 160], "assignments": [], "loops": [], "conditionals": [1, 2, 5, 17, 19, 21, 22, 24, 26, 29, 32, 39, 42, 44, 47, 48, 49, 52, 53, 54, 59, 63, 64, 67, 68, 69, 71, 74, 76, 77, 82, 86, 87, 89, 91, 94, 96, 97, 104, 108, 109, 113, 114, 116, 119, 121, 127, 130, 134, 136, 137, 140, 142, 147, 152, 154, 156, 161, 163, 165, 167, 169, 174, 175, 177, 179, 180, 181, 188, 192, 193, 195, 197, 198, 199, 201, 206, 210, 211, 213, 215, 218, 220, 221, 228, 232, 235, 237, 238, 240, 242, 243, 245, 247], "returns": [], "exceptions": []}, "expressions": {"calls": [248], "literals": [8, 11, 14, 34], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [45, 50, 117, 138, 157]}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "Trie", "text_snippet": "class Trie {\n static constexpr std::size_t num_buckets = 26;\n\n public:\n struct Node {\n void ins"}, {"node_id": 128, "universal_type": "function", "name": "unknown", "text_snippet": "[](char c)"}, {"node_id": 168, "universal_type": "function", "name": "unknown", "text_snippet": "Trie()"}], "class_declarations": [{"node_id": 37, "universal_type": "class", "name": "Node", "text_snippet": "struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] a"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 61, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 84, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 106, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 125, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 172, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 190, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 208, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}, {"node_id": 230, "universal_type": "class", "name": "unknown", "text_snippet": "auto"}], "import_statements": [{"node_id": 6, "text": "#include <array>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <memory>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "//\n// Created by <NAME> on 10/27/21.\n//\n\n#ifndef WORD_SEARCH_SRC_TRIE_TRIE_H_\n#define WORD_SEARCH_SRC_TRIE_TRIE_H_\n\n#include <array>\n#include <memory>\n#include <string>\n\nenum class SearchResult { kFound, kPrefix, kNonexistent };\n\nclass Trie {\n static constexpr std::size_t num_buckets = 26;\n\n public:\n struct Node {\n void insert(const std::string &val, std::size_t pos) noexcept;\n [[nodiscard]] auto find(const std::string &val,\n std::size_t pos) const noexcept -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto at(char c) const noexcept -> std::shared_ptr<Node>;\n auto operator[](char c) const noexcept -> std::shared_ptr<Node>;\n\n bool is_leaf = false;\n std::array<std::shared_ptr<Node>, num_buckets> children;\n };\n\n Trie();\n\n auto insert(const std::string &val) noexcept -> bool;\n [[nodiscard]] auto find(const std::string &val) const noexcept\n -> SearchResult;\n [[nodiscard]] auto size() const noexcept -> std::size_t;\n [[nodiscard]] auto empty() const noexcept -> bool;\n\n [[nodiscard]] auto root_node() const noexcept -> std::shared_ptr<Node>;\n\n private:\n std::shared_ptr<Node> root_node_;\n};\n\n#endif // WORD_SEARCH_SRC_TRIE_TRIE_H_\n"}
80,350
c
extern zend_class_entry *zendframework_xmlrpc_exception_runtimeexception_ce; ZEPHIR_INIT_CLASS(ZendFramework_XmlRpc_Exception_RuntimeException);
71.5
2
(translation_unit) "extern zend_class_entry *zendframework_xmlrpc_exception_runtimeexception_ce;\n\nZEPHIR_INIT_CLASS(ZendFramework_XmlRpc_Exception_RuntimeException);\n\n" (declaration) "extern zend_class_entry *zendframework_xmlrpc_exception_runtimeexception_ce;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "zend_class_entry" (pointer_declarator) "*zendframework_xmlrpc_exception_runtimeexception_ce" (*) "*" (identifier) "zendframework_xmlrpc_exception_runtimeexception_ce" (;) ";" (expression_statement) "ZEPHIR_INIT_CLASS(ZendFramework_XmlRpc_Exception_RuntimeException);" (call_expression) "ZEPHIR_INIT_CLASS(ZendFramework_XmlRpc_Exception_RuntimeException)" (identifier) "ZEPHIR_INIT_CLASS" (argument_list) "(ZendFramework_XmlRpc_Exception_RuntimeException)" (() "(" (identifier) "ZendFramework_XmlRpc_Exception_RuntimeException" ()) ")" (;) ";"
17
0
{"language": "c", "success": true, "metadata": {"lines": 2, "avg_line_length": 71.5, "nodes": 11, "errors": 0, "source_hash": "96c9175e2aff5743504067e87e823259dd4d5c8cded951a7924d93ad11fe77c9", "categorized_nodes": 7}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern zend_class_entry *zendframework_xmlrpc_exception_runtimeexception_ce;", "parent": null, "children": [1, 3, 4], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 76}}, {"id": 1, "type": "storage_class_specifier", "text": "extern", "parent": 0, "children": [2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 2, "type": "extern", "text": "extern", "parent": 1, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 6}}, {"id": 3, "type": "type_identifier", "text": "zend_class_entry", "parent": 0, "children": [], "start_point": {"row": 1, "column": 7}, "end_point": {"row": 1, "column": 23}}, {"id": 4, "type": "pointer_declarator", "text": "*zendframework_xmlrpc_exception_runtimeexception_ce", "parent": 0, "children": [5, 6], "start_point": {"row": 1, "column": 24}, "end_point": {"row": 1, "column": 75}}, {"id": 5, "type": "*", "text": "*", "parent": 4, "children": [], "start_point": {"row": 1, "column": 24}, "end_point": {"row": 1, "column": 25}}, {"id": 6, "type": "identifier", "text": "zendframework_xmlrpc_exception_runtimeexception_ce", "parent": 4, "children": [], "start_point": {"row": 1, "column": 25}, "end_point": {"row": 1, "column": 75}}, {"id": 7, "type": "call_expression", "text": "ZEPHIR_INIT_CLASS(ZendFramework_XmlRpc_Exception_RuntimeException)", "parent": null, "children": [8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 66}}, {"id": 8, "type": "identifier", "text": "ZEPHIR_INIT_CLASS", "parent": 7, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "argument_list", "text": "(ZendFramework_XmlRpc_Exception_RuntimeException)", "parent": 7, "children": [10], "start_point": {"row": 3, "column": 17}, "end_point": {"row": 3, "column": 66}}, {"id": 10, "type": "identifier", "text": "ZendFramework_XmlRpc_Exception_RuntimeException", "parent": 9, "children": [], "start_point": {"row": 3, "column": 18}, "end_point": {"row": 3, "column": 65}}]}, "node_categories": {"declarations": {"functions": [], "variables": [0], "classes": [1], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [7], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 10], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 1, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": []}, "original_source_code": "\nextern zend_class_entry *zendframework_xmlrpc_exception_runtimeexception_ce;\n\nZEPHIR_INIT_CLASS(ZendFramework_XmlRpc_Exception_RuntimeException);\n\n"}
80,351
c
/* * Copyright 2009-2017 Alibaba Cloud 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 ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_ #define ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_ #include <string> #include <vector> #include <alibabacloud/core/RpcServiceRequest.h> #include <alibabacloud/cloudwf/CloudwfExport.h> namespace AlibabaCloud { namespace Cloudwf { namespace Model { class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest { public: BusinessUpdateRequest(); ~BusinessUpdateRequest(); int getWarn()const; void setWarn(int warn); std::string getBusinessCity()const; void setBusinessCity(const std::string& businessCity); std::string getWarnEmail()const; void setWarnEmail(const std::string& warnEmail); std::string getBusinessAddress()const; void setBusinessAddress(const std::string& businessAddress); long getBid()const; void setBid(long bid); std::string getBusinessManager()const; void setBusinessManager(const std::string& businessManager); std::string getBusinessProvince()const; void setBusinessProvince(const std::string& businessProvince); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); private: int warn_; std::string businessCity_; std::string warnEmail_; std::string businessAddress_; long bid_; std::string businessManager_; std::string businessProvince_; std::string accessKeyId_; }; } } } #endif // !ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_
34
62
(translation_unit) "/*\n * Copyright 2009-2017 Alibaba Cloud All rights reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#ifndef ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n#define ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n\n#include <string>\n#include <vector>\n#include <alibabacloud/core/RpcServiceRequest.h>\n#include <alibabacloud/cloudwf/CloudwfExport.h>\n\nnamespace AlibabaCloud\n{\n namespace Cloudwf\n {\n namespace Model\n {\n class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n };\n }\n }\n}\n#endif // !ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_" (comment) "/*\n * Copyright 2009-2017 Alibaba Cloud 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 ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n#define ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n\n#include <string>\n#include <vector>\n#include <alibabacloud/core/RpcServiceRequest.h>\n#include <alibabacloud/cloudwf/CloudwfExport.h>\n\nnamespace AlibabaCloud\n{\n namespace Cloudwf\n {\n namespace Model\n {\n class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n };\n }\n }\n}\n#endif" (#ifndef) "#ifndef" (identifier) "ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_" (preproc_def) "#define ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n" (#define) "#define" (identifier) "ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_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 <alibabacloud/core/RpcServiceRequest.h>\n" (#include) "#include" (system_lib_string) "<alibabacloud/core/RpcServiceRequest.h>" (preproc_include) "#include <alibabacloud/cloudwf/CloudwfExport.h>\n" (#include) "#include" (system_lib_string) "<alibabacloud/cloudwf/CloudwfExport.h>" (function_definition) "namespace AlibabaCloud\n{\n namespace Cloudwf\n {\n namespace Model\n {\n class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n };\n }\n }\n}" (type_identifier) "namespace" (identifier) "AlibabaCloud" (compound_statement) "{\n namespace Cloudwf\n {\n namespace Model\n {\n class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n };\n }\n }\n}" ({) "{" (function_definition) "namespace Cloudwf\n {\n namespace Model\n {\n class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n };\n }\n }" (type_identifier) "namespace" (identifier) "Cloudwf" (compound_statement) "{\n namespace Model\n {\n class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n };\n }\n }" ({) "{" (function_definition) "namespace Model\n {\n class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n };\n }" (type_identifier) "namespace" (identifier) "Model" (compound_statement) "{\n class ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n };\n }" ({) "{" (declaration) "class ALIBABACLOUD_CLOUDWF_EXPORT" (type_identifier) "class" (identifier) "ALIBABACLOUD_CLOUDWF_EXPORT" (;) "" (labeled_statement) "BusinessUpdateRequest : public RpcServiceRequest\n {\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n }" (statement_identifier) "BusinessUpdateRequest" (:) ":" (ERROR) "public RpcServiceRequest" (type_identifier) "public" (identifier) "RpcServiceRequest" (compound_statement) "{\n\n public:\n BusinessUpdateRequest();\n ~BusinessUpdateRequest();\n\n int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_; \n\n }" ({) "{" (labeled_statement) "public:\n BusinessUpdateRequest();" (statement_identifier) "public" (:) ":" (expression_statement) "BusinessUpdateRequest();" (call_expression) "BusinessUpdateRequest()" (identifier) "BusinessUpdateRequest" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~BusinessUpdateRequest();" (unary_expression) "~BusinessUpdateRequest()" (~) "~" (call_expression) "BusinessUpdateRequest()" (identifier) "BusinessUpdateRequest" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "int getWarn()const; \n void setWarn(int warn); \n std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity); \n std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail); \n std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress); \n long getBid()const; \n void setBid(long bid); \n std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager); \n std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince); \n std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId); \n\n private:\n int warn_; \n std::string businessCity_; \n std::string warnEmail_; \n std::string businessAddress_; \n long bid_; \n std::string businessManager_; \n std::string businessProvince_; \n std::string accessKeyId_;" (primitive_type) "int" (function_declarator) "getWarn()" (identifier) "getWarn" (parameter_list) "()" (() "(" ()) ")" (declaration) "const; \n void setWarn(int warn);" (type_qualifier) "const" (const) "const" (ERROR) ";" (;) ";" (primitive_type) "void" (function_declarator) "setWarn(int warn)" (identifier) "setWarn" (parameter_list) "(int warn)" (() "(" (parameter_declaration) "int warn" (primitive_type) "int" (identifier) "warn" ()) ")" (;) ";" (declaration) "std::string getBusinessCity()const; \n void setBusinessCity(const std::string& businessCity);" (type_identifier) "std" (ERROR) "::string getBusinessCity()const; \n void" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getBusinessCity()const" (identifier) "getBusinessCity" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "setBusinessCity(const std::string& businessCity)" (identifier) "setBusinessCity" (parameter_list) "(const std::string& businessCity)" (() "(" (parameter_declaration) "const std::string& businessCity" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "businessCity" ()) ")" (;) ";" (declaration) "std::string getWarnEmail()const; \n void setWarnEmail(const std::string& warnEmail);" (type_identifier) "std" (ERROR) "::string getWarnEmail()const; \n void" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getWarnEmail()const" (identifier) "getWarnEmail" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "setWarnEmail(const std::string& warnEmail)" (identifier) "setWarnEmail" (parameter_list) "(const std::string& warnEmail)" (() "(" (parameter_declaration) "const std::string& warnEmail" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "warnEmail" ()) ")" (;) ";" (declaration) "std::string getBusinessAddress()const; \n void setBusinessAddress(const std::string& businessAddress);" (type_identifier) "std" (ERROR) "::string getBusinessAddress()const; \n void" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getBusinessAddress()const" (identifier) "getBusinessAddress" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "setBusinessAddress(const std::string& businessAddress)" (identifier) "setBusinessAddress" (parameter_list) "(const std::string& businessAddress)" (() "(" (parameter_declaration) "const std::string& businessAddress" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "businessAddress" ()) ")" (;) ";" (ERROR) "long getBid()const;" (sized_type_specifier) "long" (long) "long" (function_declarator) "getBid()const" (identifier) "getBid" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (declaration) "void setBid(long bid);" (primitive_type) "void" (function_declarator) "setBid(long bid)" (identifier) "setBid" (parameter_list) "(long bid)" (() "(" (parameter_declaration) "long bid" (sized_type_specifier) "long" (long) "long" (identifier) "bid" ()) ")" (;) ";" (declaration) "std::string getBusinessManager()const; \n void setBusinessManager(const std::string& businessManager);" (type_identifier) "std" (ERROR) "::string getBusinessManager()const; \n void" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getBusinessManager()const" (identifier) "getBusinessManager" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "setBusinessManager(const std::string& businessManager)" (identifier) "setBusinessManager" (parameter_list) "(const std::string& businessManager)" (() "(" (parameter_declaration) "const std::string& businessManager" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "businessManager" ()) ")" (;) ";" (declaration) "std::string getBusinessProvince()const; \n void setBusinessProvince(const std::string& businessProvince);" (type_identifier) "std" (ERROR) "::string getBusinessProvince()const; \n void" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getBusinessProvince()const" (identifier) "getBusinessProvince" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "setBusinessProvince(const std::string& businessProvince)" (identifier) "setBusinessProvince" (parameter_list) "(const std::string& businessProvince)" (() "(" (parameter_declaration) "const std::string& businessProvince" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "businessProvince" ()) ")" (;) ";" (declaration) "std::string getAccessKeyId()const; \n void setAccessKeyId(const std::string& accessKeyId);" (type_identifier) "std" (ERROR) "::string getAccessKeyId()const; \n void" (:) ":" (:) ":" (identifier) "string" (function_declarator) "getAccessKeyId()const" (identifier) "getAccessKeyId" (parameter_list) "()" (() "(" ()) ")" (identifier) "const" (;) ";" (primitive_type) "void" (function_declarator) "setAccessKeyId(const std::string& accessKeyId)" (identifier) "setAccessKeyId" (parameter_list) "(const std::string& accessKeyId)" (() "(" (parameter_declaration) "const std::string& accessKeyId" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "accessKeyId" ()) ")" (;) ";" (ERROR) "private:" (type_identifier) "private" (:) ":" (declaration) "int warn_;" (primitive_type) "int" (identifier) "warn_" (;) ";" (declaration) "std::string businessCity_;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "businessCity_" (;) ";" (declaration) "std::string warnEmail_;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "warnEmail_" (;) ";" (declaration) "std::string businessAddress_;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "businessAddress_" (;) ";" (declaration) "long bid_;" (sized_type_specifier) "long" (long) "long" (identifier) "bid_" (;) ";" (declaration) "std::string businessManager_;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "businessManager_" (;) ";" (declaration) "std::string businessProvince_;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "businessProvince_" (;) ";" (declaration) "std::string accessKeyId_;" (type_identifier) "std" (ERROR) "::string" (:) ":" (:) ":" (identifier) "string" (identifier) "accessKeyId_" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}" (}) "}" (#endif) "#endif" (comment) "// !ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_"
358
23
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 34.0, "nodes": 205, "errors": 0, "source_hash": "6187560bfd44654d694eaf1a4376176f03a41b3489d04512a8db16bf41e5c3fd", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n#define ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n\n#include <string>\n#include <vector>\n#include <alibabacloud/core/RpcServiceRequest.h>\n#include <alibabacloud/cloudwf/CloudwfExport.h>\n\nnamespace AlibabaCloud\n{\n\tnamespace Cloudwf\n\t{\n\t\tnamespace Model\n\t\t{\n\t\t\tclass ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n\t\t\t{\n\n\t\t\tpublic:\n\t\t\t\tBusinessUpdateRequest();\n\t\t\t\t~BusinessUpdateRequest();\n\n\t\t\t\tint getWarn()const;\r\n\t\t\t\tvoid setWarn(int warn);\r\n\t\t\t\tstd::string getBusinessCity()const;\r\n\t\t\t\tvoid setBusinessCity(const std::string& businessCity);\r\n\t\t\t\tstd::string getWarnEmail()const;\r\n\t\t\t\tvoid setWarnEmail(const std::string& warnEmail);\r\n\t\t\t\tstd::string getBusinessAddress()const;\r\n\t\t\t\tvoid setBusinessAddress(const std::string& businessAddress);\r\n\t\t\t\tlong getBid()const;\r\n\t\t\t\tvoid setBid(long bid);\r\n\t\t\t\tstd::string getBusinessManager()const;\r\n\t\t\t\tvoid setBusinessManager(const std::string& businessManager);\r\n\t\t\t\tstd::string getBusinessProvince()const;\r\n\t\t\t\tvoid setBusinessProvince(const std::string& businessProvince);\r\n\t\t\t\tstd::string getAccessKeyId()const;\r\n\t\t\t\tvoid setAccessKeyId(const std::string& accessKeyId);\r\n\n private:\n\t\t\t\tint warn_;\r\n\t\t\t\tstd::string businessCity_;\r\n\t\t\t\tstd::string warnEmail_;\r\n\t\t\t\tstd::string businessAddress_;\r\n\t\t\t\tlong bid_;\r\n\t\t\t\tstd::string businessManager_;\r\n\t\t\t\tstd::string businessProvince_;\r\n\t\t\t\tstd::string accessKeyId_;\r\n\n\t\t\t};\n\t\t}\n\t}\n}\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 204], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 68, "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": "ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_", "parent": 0, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 59}}, {"id": 3, "type": "preproc_def", "text": "#define ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_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": "ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 59}}, {"id": 6, "type": "preproc_include", "text": "#include <string>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string>", "parent": 6, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <vector>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<vector>", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <alibabacloud/core/RpcServiceRequest.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<alibabacloud/core/RpcServiceRequest.h>", "parent": 12, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 48}}, {"id": 15, "type": "preproc_include", "text": "#include <alibabacloud/cloudwf/CloudwfExport.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<alibabacloud/cloudwf/CloudwfExport.h>", "parent": 15, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 47}}, {"id": 18, "type": "function_definition", "text": "namespace AlibabaCloud\n{\n\tnamespace Cloudwf\n\t{\n\t\tnamespace Model\n\t\t{\n\t\t\tclass ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n\t\t\t{\n\n\t\t\tpublic:\n\t\t\t\tBusinessUpdateRequest();\n\t\t\t\t~BusinessUpdateRequest();\n\n\t\t\t\tint getWarn()const;\r\n\t\t\t\tvoid setWarn(int warn);\r\n\t\t\t\tstd::string getBusinessCity()const;\r\n\t\t\t\tvoid setBusinessCity(const std::string& businessCity);\r\n\t\t\t\tstd::string getWarnEmail()const;\r\n\t\t\t\tvoid setWarnEmail(const std::string& warnEmail);\r\n\t\t\t\tstd::string getBusinessAddress()const;\r\n\t\t\t\tvoid setBusinessAddress(const std::string& businessAddress);\r\n\t\t\t\tlong getBid()const;\r\n\t\t\t\tvoid setBid(long bid);\r\n\t\t\t\tstd::string getBusinessManager()const;\r\n\t\t\t\tvoid setBusinessManager(const std::string& businessManager);\r\n\t\t\t\tstd::string getBusinessProvince()const;\r\n\t\t\t\tvoid setBusinessProvince(const std::string& businessProvince);\r\n\t\t\t\tstd::string getAccessKeyId()const;\r\n\t\t\t\tvoid setAccessKeyId(const std::string& accessKeyId);\r\n\n private:\n\t\t\t\tint warn_;\r\n\t\t\t\tstd::string businessCity_;\r\n\t\t\t\tstd::string warnEmail_;\r\n\t\t\t\tstd::string businessAddress_;\r\n\t\t\t\tlong bid_;\r\n\t\t\t\tstd::string businessManager_;\r\n\t\t\t\tstd::string businessProvince_;\r\n\t\t\t\tstd::string accessKeyId_;\r\n\n\t\t\t};\n\t\t}\n\t}\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 67, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 9}}, {"id": 20, "type": "identifier", "text": "AlibabaCloud", "parent": 18, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 22}}, {"id": 21, "type": "function_definition", "text": "namespace Cloudwf\n\t{\n\t\tnamespace Model\n\t\t{\n\t\t\tclass ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n\t\t\t{\n\n\t\t\tpublic:\n\t\t\t\tBusinessUpdateRequest();\n\t\t\t\t~BusinessUpdateRequest();\n\n\t\t\t\tint getWarn()const;\r\n\t\t\t\tvoid setWarn(int warn);\r\n\t\t\t\tstd::string getBusinessCity()const;\r\n\t\t\t\tvoid setBusinessCity(const std::string& businessCity);\r\n\t\t\t\tstd::string getWarnEmail()const;\r\n\t\t\t\tvoid setWarnEmail(const std::string& warnEmail);\r\n\t\t\t\tstd::string getBusinessAddress()const;\r\n\t\t\t\tvoid setBusinessAddress(const std::string& businessAddress);\r\n\t\t\t\tlong getBid()const;\r\n\t\t\t\tvoid setBid(long bid);\r\n\t\t\t\tstd::string getBusinessManager()const;\r\n\t\t\t\tvoid setBusinessManager(const std::string& businessManager);\r\n\t\t\t\tstd::string getBusinessProvince()const;\r\n\t\t\t\tvoid setBusinessProvince(const std::string& businessProvince);\r\n\t\t\t\tstd::string getAccessKeyId()const;\r\n\t\t\t\tvoid setAccessKeyId(const std::string& accessKeyId);\r\n\n private:\n\t\t\t\tint warn_;\r\n\t\t\t\tstd::string businessCity_;\r\n\t\t\t\tstd::string warnEmail_;\r\n\t\t\t\tstd::string businessAddress_;\r\n\t\t\t\tlong bid_;\r\n\t\t\t\tstd::string businessManager_;\r\n\t\t\t\tstd::string businessProvince_;\r\n\t\t\t\tstd::string accessKeyId_;\r\n\n\t\t\t};\n\t\t}\n\t}", "parent": 18, "children": [22, 23], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 66, "column": 2}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 10}}, {"id": 23, "type": "identifier", "text": "Cloudwf", "parent": 21, "children": [], "start_point": {"row": 26, "column": 11}, "end_point": {"row": 26, "column": 18}}, {"id": 24, "type": "function_definition", "text": "namespace Model\n\t\t{\n\t\t\tclass ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n\t\t\t{\n\n\t\t\tpublic:\n\t\t\t\tBusinessUpdateRequest();\n\t\t\t\t~BusinessUpdateRequest();\n\n\t\t\t\tint getWarn()const;\r\n\t\t\t\tvoid setWarn(int warn);\r\n\t\t\t\tstd::string getBusinessCity()const;\r\n\t\t\t\tvoid setBusinessCity(const std::string& businessCity);\r\n\t\t\t\tstd::string getWarnEmail()const;\r\n\t\t\t\tvoid setWarnEmail(const std::string& warnEmail);\r\n\t\t\t\tstd::string getBusinessAddress()const;\r\n\t\t\t\tvoid setBusinessAddress(const std::string& businessAddress);\r\n\t\t\t\tlong getBid()const;\r\n\t\t\t\tvoid setBid(long bid);\r\n\t\t\t\tstd::string getBusinessManager()const;\r\n\t\t\t\tvoid setBusinessManager(const std::string& businessManager);\r\n\t\t\t\tstd::string getBusinessProvince()const;\r\n\t\t\t\tvoid setBusinessProvince(const std::string& businessProvince);\r\n\t\t\t\tstd::string getAccessKeyId()const;\r\n\t\t\t\tvoid setAccessKeyId(const std::string& accessKeyId);\r\n\n private:\n\t\t\t\tint warn_;\r\n\t\t\t\tstd::string businessCity_;\r\n\t\t\t\tstd::string warnEmail_;\r\n\t\t\t\tstd::string businessAddress_;\r\n\t\t\t\tlong bid_;\r\n\t\t\t\tstd::string businessManager_;\r\n\t\t\t\tstd::string businessProvince_;\r\n\t\t\t\tstd::string accessKeyId_;\r\n\n\t\t\t};\n\t\t}", "parent": 21, "children": [25, 26], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 65, "column": 3}}, {"id": 25, "type": "type_identifier", "text": "namespace", "parent": 24, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 11}}, {"id": 26, "type": "identifier", "text": "Model", "parent": 24, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 17}}, {"id": 27, "type": "declaration", "text": "class ALIBABACLOUD_CLOUDWF_EXPORT", "parent": 24, "children": [28], "start_point": {"row": 30, "column": 3}, "end_point": {"row": 30, "column": 36}}, {"id": 28, "type": "identifier", "text": "ALIBABACLOUD_CLOUDWF_EXPORT", "parent": 27, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 36}}, {"id": 29, "type": "labeled_statement", "text": "BusinessUpdateRequest : public RpcServiceRequest\n\t\t\t{\n\n\t\t\tpublic:\n\t\t\t\tBusinessUpdateRequest();\n\t\t\t\t~BusinessUpdateRequest();\n\n\t\t\t\tint getWarn()const;\r\n\t\t\t\tvoid setWarn(int warn);\r\n\t\t\t\tstd::string getBusinessCity()const;\r\n\t\t\t\tvoid setBusinessCity(const std::string& businessCity);\r\n\t\t\t\tstd::string getWarnEmail()const;\r\n\t\t\t\tvoid setWarnEmail(const std::string& warnEmail);\r\n\t\t\t\tstd::string getBusinessAddress()const;\r\n\t\t\t\tvoid setBusinessAddress(const std::string& businessAddress);\r\n\t\t\t\tlong getBid()const;\r\n\t\t\t\tvoid setBid(long bid);\r\n\t\t\t\tstd::string getBusinessManager()const;\r\n\t\t\t\tvoid setBusinessManager(const std::string& businessManager);\r\n\t\t\t\tstd::string getBusinessProvince()const;\r\n\t\t\t\tvoid setBusinessProvince(const std::string& businessProvince);\r\n\t\t\t\tstd::string getAccessKeyId()const;\r\n\t\t\t\tvoid setAccessKeyId(const std::string& accessKeyId);\r\n\n private:\n\t\t\t\tint warn_;\r\n\t\t\t\tstd::string businessCity_;\r\n\t\t\t\tstd::string warnEmail_;\r\n\t\t\t\tstd::string businessAddress_;\r\n\t\t\t\tlong bid_;\r\n\t\t\t\tstd::string businessManager_;\r\n\t\t\t\tstd::string businessProvince_;\r\n\t\t\t\tstd::string accessKeyId_;\r\n\n\t\t\t}", "parent": 24, "children": [30, 31], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 64, "column": 4}}, {"id": 30, "type": "statement_identifier", "text": "BusinessUpdateRequest", "parent": 29, "children": [], "start_point": {"row": 30, "column": 37}, "end_point": {"row": 30, "column": 58}}, {"id": 31, "type": "ERROR", "text": "public RpcServiceRequest", "parent": 29, "children": [32], "start_point": {"row": 30, "column": 61}, "end_point": {"row": 30, "column": 85}}, {"id": 32, "type": "identifier", "text": "RpcServiceRequest", "parent": 31, "children": [], "start_point": {"row": 30, "column": 68}, "end_point": {"row": 30, "column": 85}}, {"id": 33, "type": "labeled_statement", "text": "public:\n\t\t\t\tBusinessUpdateRequest();", "parent": 29, "children": [], "start_point": {"row": 33, "column": 3}, "end_point": {"row": 34, "column": 28}}, {"id": 34, "type": "call_expression", "text": "BusinessUpdateRequest()", "parent": 33, "children": [35, 36], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 27}}, {"id": 35, "type": "identifier", "text": "BusinessUpdateRequest", "parent": 34, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 25}}, {"id": 36, "type": "argument_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 27}}, {"id": 37, "type": "unary_expression", "text": "~BusinessUpdateRequest()", "parent": 29, "children": [38, 39], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 28}}, {"id": 38, "type": "~", "text": "~", "parent": 37, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 5}}, {"id": 39, "type": "call_expression", "text": "BusinessUpdateRequest()", "parent": 37, "children": [40, 41], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 28}}, {"id": 40, "type": "identifier", "text": "BusinessUpdateRequest", "parent": 39, "children": [], "start_point": {"row": 35, "column": 5}, "end_point": {"row": 35, "column": 26}}, {"id": 41, "type": "argument_list", "text": "()", "parent": 39, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 28}}, {"id": 42, "type": "ERROR", "text": "int getWarn()const;\r\n\t\t\t\tvoid setWarn(int warn);\r\n\t\t\t\tstd::string getBusinessCity()const;\r\n\t\t\t\tvoid setBusinessCity(const std::string& businessCity);\r\n\t\t\t\tstd::string getWarnEmail()const;\r\n\t\t\t\tvoid setWarnEmail(const std::string& warnEmail);\r\n\t\t\t\tstd::string getBusinessAddress()const;\r\n\t\t\t\tvoid setBusinessAddress(const std::string& businessAddress);\r\n\t\t\t\tlong getBid()const;\r\n\t\t\t\tvoid setBid(long bid);\r\n\t\t\t\tstd::string getBusinessManager()const;\r\n\t\t\t\tvoid setBusinessManager(const std::string& businessManager);\r\n\t\t\t\tstd::string getBusinessProvince()const;\r\n\t\t\t\tvoid setBusinessProvince(const std::string& businessProvince);\r\n\t\t\t\tstd::string getAccessKeyId()const;\r\n\t\t\t\tvoid setAccessKeyId(const std::string& accessKeyId);\r\n\n private:\n\t\t\t\tint warn_;\r\n\t\t\t\tstd::string businessCity_;\r\n\t\t\t\tstd::string warnEmail_;\r\n\t\t\t\tstd::string businessAddress_;\r\n\t\t\t\tlong bid_;\r\n\t\t\t\tstd::string businessManager_;\r\n\t\t\t\tstd::string businessProvince_;\r\n\t\t\t\tstd::string accessKeyId_;", "parent": 29, "children": [43, 44, 47, 55, 71, 87, 103, 109, 118, 134, 150, 166, 167, 170, 175, 180, 185, 189, 194, 199], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 62, "column": 29}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 7}}, {"id": 44, "type": "function_declarator", "text": "getWarn()", "parent": 42, "children": [45, 46], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 17}}, {"id": 45, "type": "identifier", "text": "getWarn", "parent": 44, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 15}}, {"id": 46, "type": "parameter_list", "text": "()", "parent": 44, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 17}}, {"id": 47, "type": "declaration", "text": "const;\r\n\t\t\t\tvoid setWarn(int warn);", "parent": 42, "children": [48, 49], "start_point": {"row": 37, "column": 17}, "end_point": {"row": 38, "column": 27}}, {"id": 48, "type": "primitive_type", "text": "void", "parent": 47, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 49, "type": "function_declarator", "text": "setWarn(int warn)", "parent": 47, "children": [50, 51], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 26}}, {"id": 50, "type": "identifier", "text": "setWarn", "parent": 49, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 16}}, {"id": 51, "type": "parameter_list", "text": "(int warn)", "parent": 49, "children": [52], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 26}}, {"id": 52, "type": "parameter_declaration", "text": "int warn", "parent": 51, "children": [53, 54], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 25}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 38, "column": 17}, "end_point": {"row": 38, "column": 20}}, {"id": 54, "type": "identifier", "text": "warn", "parent": 52, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 25}}, {"id": 55, "type": "declaration", "text": "std::string getBusinessCity()const;\r\n\t\t\t\tvoid setBusinessCity(const std::string& businessCity);", "parent": 42, "children": [56, 57, 63], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 40, "column": 58}}, {"id": 56, "type": "type_identifier", "text": "std", "parent": 55, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 7}}, {"id": 57, "type": "ERROR", "text": "::string getBusinessCity()const;\r\n\t\t\t\tvoid", "parent": 55, "children": [58, 59, 62], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 40, "column": 8}}, {"id": 58, "type": "identifier", "text": "string", "parent": 57, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 15}}, {"id": 59, "type": "function_declarator", "text": "getBusinessCity()const", "parent": 57, "children": [60, 61], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 38}}, {"id": 60, "type": "identifier", "text": "getBusinessCity", "parent": 59, "children": [], "start_point": {"row": 39, "column": 16}, "end_point": {"row": 39, "column": 31}}, {"id": 61, "type": "parameter_list", "text": "()", "parent": 59, "children": [], "start_point": {"row": 39, "column": 31}, "end_point": {"row": 39, "column": 33}}, {"id": 62, "type": "primitive_type", "text": "void", "parent": 57, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 8}}, {"id": 63, "type": "function_declarator", "text": "setBusinessCity(const std::string& businessCity)", "parent": 55, "children": [64, 65], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 57}}, {"id": 64, "type": "identifier", "text": "setBusinessCity", "parent": 63, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 24}}, {"id": 65, "type": "parameter_list", "text": "(const std::string& businessCity)", "parent": 63, "children": [66], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 57}}, {"id": 66, "type": "parameter_declaration", "text": "const std::string& businessCity", "parent": 65, "children": [67, 68, 70], "start_point": {"row": 40, "column": 25}, "end_point": {"row": 40, "column": 56}}, {"id": 67, "type": "type_identifier", "text": "std", "parent": 66, "children": [], "start_point": {"row": 40, "column": 31}, "end_point": {"row": 40, "column": 34}}, {"id": 68, "type": "ERROR", "text": "::string&", "parent": 66, "children": [69], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 43}}, {"id": 69, "type": "identifier", "text": "string", "parent": 68, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 42}}, {"id": 70, "type": "identifier", "text": "businessCity", "parent": 66, "children": [], "start_point": {"row": 40, "column": 44}, "end_point": {"row": 40, "column": 56}}, {"id": 71, "type": "declaration", "text": "std::string getWarnEmail()const;\r\n\t\t\t\tvoid setWarnEmail(const std::string& warnEmail);", "parent": 42, "children": [72, 73, 79], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 42, "column": 52}}, {"id": 72, "type": "type_identifier", "text": "std", "parent": 71, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 7}}, {"id": 73, "type": "ERROR", "text": "::string getWarnEmail()const;\r\n\t\t\t\tvoid", "parent": 71, "children": [74, 75, 78], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 42, "column": 8}}, {"id": 74, "type": "identifier", "text": "string", "parent": 73, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 15}}, {"id": 75, "type": "function_declarator", "text": "getWarnEmail()const", "parent": 73, "children": [76, 77], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 35}}, {"id": 76, "type": "identifier", "text": "getWarnEmail", "parent": 75, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 28}}, {"id": 77, "type": "parameter_list", "text": "()", "parent": 75, "children": [], "start_point": {"row": 41, "column": 28}, "end_point": {"row": 41, "column": 30}}, {"id": 78, "type": "primitive_type", "text": "void", "parent": 73, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 8}}, {"id": 79, "type": "function_declarator", "text": "setWarnEmail(const std::string& warnEmail)", "parent": 71, "children": [80, 81], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 51}}, {"id": 80, "type": "identifier", "text": "setWarnEmail", "parent": 79, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 21}}, {"id": 81, "type": "parameter_list", "text": "(const std::string& warnEmail)", "parent": 79, "children": [82], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 51}}, {"id": 82, "type": "parameter_declaration", "text": "const std::string& warnEmail", "parent": 81, "children": [83, 84, 86], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 50}}, {"id": 83, "type": "type_identifier", "text": "std", "parent": 82, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 31}}, {"id": 84, "type": "ERROR", "text": "::string&", "parent": 82, "children": [85], "start_point": {"row": 42, "column": 31}, "end_point": {"row": 42, "column": 40}}, {"id": 85, "type": "identifier", "text": "string", "parent": 84, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 39}}, {"id": 86, "type": "identifier", "text": "warnEmail", "parent": 82, "children": [], "start_point": {"row": 42, "column": 41}, "end_point": {"row": 42, "column": 50}}, {"id": 87, "type": "declaration", "text": "std::string getBusinessAddress()const;\r\n\t\t\t\tvoid setBusinessAddress(const std::string& businessAddress);", "parent": 42, "children": [88, 89, 95], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 44, "column": 64}}, {"id": 88, "type": "type_identifier", "text": "std", "parent": 87, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 7}}, {"id": 89, "type": "ERROR", "text": "::string getBusinessAddress()const;\r\n\t\t\t\tvoid", "parent": 87, "children": [90, 91, 94], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 44, "column": 8}}, {"id": 90, "type": "identifier", "text": "string", "parent": 89, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 15}}, {"id": 91, "type": "function_declarator", "text": "getBusinessAddress()const", "parent": 89, "children": [92, 93], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 41}}, {"id": 92, "type": "identifier", "text": "getBusinessAddress", "parent": 91, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 34}}, {"id": 93, "type": "parameter_list", "text": "()", "parent": 91, "children": [], "start_point": {"row": 43, "column": 34}, "end_point": {"row": 43, "column": 36}}, {"id": 94, "type": "primitive_type", "text": "void", "parent": 89, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 8}}, {"id": 95, "type": "function_declarator", "text": "setBusinessAddress(const std::string& businessAddress)", "parent": 87, "children": [96, 97], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 63}}, {"id": 96, "type": "identifier", "text": "setBusinessAddress", "parent": 95, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 27}}, {"id": 97, "type": "parameter_list", "text": "(const std::string& businessAddress)", "parent": 95, "children": [98], "start_point": {"row": 44, "column": 27}, "end_point": {"row": 44, "column": 63}}, {"id": 98, "type": "parameter_declaration", "text": "const std::string& businessAddress", "parent": 97, "children": [99, 100, 102], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 62}}, {"id": 99, "type": "type_identifier", "text": "std", "parent": 98, "children": [], "start_point": {"row": 44, "column": 34}, "end_point": {"row": 44, "column": 37}}, {"id": 100, "type": "ERROR", "text": "::string&", "parent": 98, "children": [101], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 46}}, {"id": 101, "type": "identifier", "text": "string", "parent": 100, "children": [], "start_point": {"row": 44, "column": 39}, "end_point": {"row": 44, "column": 45}}, {"id": 102, "type": "identifier", "text": "businessAddress", "parent": 98, "children": [], "start_point": {"row": 44, "column": 47}, "end_point": {"row": 44, "column": 62}}, {"id": 103, "type": "ERROR", "text": "long getBid()const;", "parent": 42, "children": [104, 106], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 23}}, {"id": 104, "type": "sized_type_specifier", "text": "long", "parent": 103, "children": [105], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 8}}, {"id": 105, "type": "long", "text": "long", "parent": 104, "children": [], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 8}}, {"id": 106, "type": "function_declarator", "text": "getBid()const", "parent": 103, "children": [107, 108], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 22}}, {"id": 107, "type": "identifier", "text": "getBid", "parent": 106, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 15}}, {"id": 108, "type": "parameter_list", "text": "()", "parent": 106, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 17}}, {"id": 109, "type": "declaration", "text": "void setBid(long bid);", "parent": 42, "children": [110, 111], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 26}}, {"id": 110, "type": "primitive_type", "text": "void", "parent": 109, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 8}}, {"id": 111, "type": "function_declarator", "text": "setBid(long bid)", "parent": 109, "children": [112, 113], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 25}}, {"id": 112, "type": "identifier", "text": "setBid", "parent": 111, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 15}}, {"id": 113, "type": "parameter_list", "text": "(long bid)", "parent": 111, "children": [114], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 25}}, {"id": 114, "type": "parameter_declaration", "text": "long bid", "parent": 113, "children": [115, 117], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 24}}, {"id": 115, "type": "sized_type_specifier", "text": "long", "parent": 114, "children": [116], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 20}}, {"id": 116, "type": "long", "text": "long", "parent": 115, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 20}}, {"id": 117, "type": "identifier", "text": "bid", "parent": 114, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 24}}, {"id": 118, "type": "declaration", "text": "std::string getBusinessManager()const;\r\n\t\t\t\tvoid setBusinessManager(const std::string& businessManager);", "parent": 42, "children": [119, 120, 126], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 48, "column": 64}}, {"id": 119, "type": "type_identifier", "text": "std", "parent": 118, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 7}}, {"id": 120, "type": "ERROR", "text": "::string getBusinessManager()const;\r\n\t\t\t\tvoid", "parent": 118, "children": [121, 122, 125], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 48, "column": 8}}, {"id": 121, "type": "identifier", "text": "string", "parent": 120, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 15}}, {"id": 122, "type": "function_declarator", "text": "getBusinessManager()const", "parent": 120, "children": [123, 124], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 41}}, {"id": 123, "type": "identifier", "text": "getBusinessManager", "parent": 122, "children": [], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 34}}, {"id": 124, "type": "parameter_list", "text": "()", "parent": 122, "children": [], "start_point": {"row": 47, "column": 34}, "end_point": {"row": 47, "column": 36}}, {"id": 125, "type": "primitive_type", "text": "void", "parent": 120, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 8}}, {"id": 126, "type": "function_declarator", "text": "setBusinessManager(const std::string& businessManager)", "parent": 118, "children": [127, 128], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 63}}, {"id": 127, "type": "identifier", "text": "setBusinessManager", "parent": 126, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 27}}, {"id": 128, "type": "parameter_list", "text": "(const std::string& businessManager)", "parent": 126, "children": [129], "start_point": {"row": 48, "column": 27}, "end_point": {"row": 48, "column": 63}}, {"id": 129, "type": "parameter_declaration", "text": "const std::string& businessManager", "parent": 128, "children": [130, 131, 133], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 62}}, {"id": 130, "type": "type_identifier", "text": "std", "parent": 129, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 37}}, {"id": 131, "type": "ERROR", "text": "::string&", "parent": 129, "children": [132], "start_point": {"row": 48, "column": 37}, "end_point": {"row": 48, "column": 46}}, {"id": 132, "type": "identifier", "text": "string", "parent": 131, "children": [], "start_point": {"row": 48, "column": 39}, "end_point": {"row": 48, "column": 45}}, {"id": 133, "type": "identifier", "text": "businessManager", "parent": 129, "children": [], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 62}}, {"id": 134, "type": "declaration", "text": "std::string getBusinessProvince()const;\r\n\t\t\t\tvoid setBusinessProvince(const std::string& businessProvince);", "parent": 42, "children": [135, 136, 142], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 50, "column": 66}}, {"id": 135, "type": "type_identifier", "text": "std", "parent": 134, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 7}}, {"id": 136, "type": "ERROR", "text": "::string getBusinessProvince()const;\r\n\t\t\t\tvoid", "parent": 134, "children": [137, 138, 141], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 50, "column": 8}}, {"id": 137, "type": "identifier", "text": "string", "parent": 136, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 15}}, {"id": 138, "type": "function_declarator", "text": "getBusinessProvince()const", "parent": 136, "children": [139, 140], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 42}}, {"id": 139, "type": "identifier", "text": "getBusinessProvince", "parent": 138, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 35}}, {"id": 140, "type": "parameter_list", "text": "()", "parent": 138, "children": [], "start_point": {"row": 49, "column": 35}, "end_point": {"row": 49, "column": 37}}, {"id": 141, "type": "primitive_type", "text": "void", "parent": 136, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 8}}, {"id": 142, "type": "function_declarator", "text": "setBusinessProvince(const std::string& businessProvince)", "parent": 134, "children": [143, 144], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 65}}, {"id": 143, "type": "identifier", "text": "setBusinessProvince", "parent": 142, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 28}}, {"id": 144, "type": "parameter_list", "text": "(const std::string& businessProvince)", "parent": 142, "children": [145], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 65}}, {"id": 145, "type": "parameter_declaration", "text": "const std::string& businessProvince", "parent": 144, "children": [146, 147, 149], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 64}}, {"id": 146, "type": "type_identifier", "text": "std", "parent": 145, "children": [], "start_point": {"row": 50, "column": 35}, "end_point": {"row": 50, "column": 38}}, {"id": 147, "type": "ERROR", "text": "::string&", "parent": 145, "children": [148], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 47}}, {"id": 148, "type": "identifier", "text": "string", "parent": 147, "children": [], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 46}}, {"id": 149, "type": "identifier", "text": "businessProvince", "parent": 145, "children": [], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 64}}, {"id": 150, "type": "declaration", "text": "std::string getAccessKeyId()const;\r\n\t\t\t\tvoid setAccessKeyId(const std::string& accessKeyId);", "parent": 42, "children": [151, 152, 158], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 52, "column": 56}}, {"id": 151, "type": "type_identifier", "text": "std", "parent": 150, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 7}}, {"id": 152, "type": "ERROR", "text": "::string getAccessKeyId()const;\r\n\t\t\t\tvoid", "parent": 150, "children": [153, 154, 157], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 52, "column": 8}}, {"id": 153, "type": "identifier", "text": "string", "parent": 152, "children": [], "start_point": {"row": 51, "column": 9}, "end_point": {"row": 51, "column": 15}}, {"id": 154, "type": "function_declarator", "text": "getAccessKeyId()const", "parent": 152, "children": [155, 156], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 37}}, {"id": 155, "type": "identifier", "text": "getAccessKeyId", "parent": 154, "children": [], "start_point": {"row": 51, "column": 16}, "end_point": {"row": 51, "column": 30}}, {"id": 156, "type": "parameter_list", "text": "()", "parent": 154, "children": [], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 32}}, {"id": 157, "type": "primitive_type", "text": "void", "parent": 152, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 8}}, {"id": 158, "type": "function_declarator", "text": "setAccessKeyId(const std::string& accessKeyId)", "parent": 150, "children": [159, 160], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 55}}, {"id": 159, "type": "identifier", "text": "setAccessKeyId", "parent": 158, "children": [], "start_point": {"row": 52, "column": 9}, "end_point": {"row": 52, "column": 23}}, {"id": 160, "type": "parameter_list", "text": "(const std::string& accessKeyId)", "parent": 158, "children": [161], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 55}}, {"id": 161, "type": "parameter_declaration", "text": "const std::string& accessKeyId", "parent": 160, "children": [162, 163, 165], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 54}}, {"id": 162, "type": "type_identifier", "text": "std", "parent": 161, "children": [], "start_point": {"row": 52, "column": 30}, "end_point": {"row": 52, "column": 33}}, {"id": 163, "type": "ERROR", "text": "::string&", "parent": 161, "children": [164], "start_point": {"row": 52, "column": 33}, "end_point": {"row": 52, "column": 42}}, {"id": 164, "type": "identifier", "text": "string", "parent": 163, "children": [], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 41}}, {"id": 165, "type": "identifier", "text": "accessKeyId", "parent": 161, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 54}}, {"id": 166, "type": "ERROR", "text": "private:", "parent": 42, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 20}}, {"id": 167, "type": "declaration", "text": "int warn_;", "parent": 42, "children": [168, 169], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 14}}, {"id": 168, "type": "primitive_type", "text": "int", "parent": 167, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 7}}, {"id": 169, "type": "identifier", "text": "warn_", "parent": 167, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 13}}, {"id": 170, "type": "declaration", "text": "std::string businessCity_;", "parent": 42, "children": [171, 172, 174], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 30}}, {"id": 171, "type": "type_identifier", "text": "std", "parent": 170, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 7}}, {"id": 172, "type": "ERROR", "text": "::string", "parent": 170, "children": [173], "start_point": {"row": 56, "column": 7}, "end_point": {"row": 56, "column": 15}}, {"id": 173, "type": "identifier", "text": "string", "parent": 172, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 15}}, {"id": 174, "type": "identifier", "text": "businessCity_", "parent": 170, "children": [], "start_point": {"row": 56, "column": 16}, "end_point": {"row": 56, "column": 29}}, {"id": 175, "type": "declaration", "text": "std::string warnEmail_;", "parent": 42, "children": [176, 177, 179], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 27}}, {"id": 176, "type": "type_identifier", "text": "std", "parent": 175, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 7}}, {"id": 177, "type": "ERROR", "text": "::string", "parent": 175, "children": [178], "start_point": {"row": 57, "column": 7}, "end_point": {"row": 57, "column": 15}}, {"id": 178, "type": "identifier", "text": "string", "parent": 177, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 15}}, {"id": 179, "type": "identifier", "text": "warnEmail_", "parent": 175, "children": [], "start_point": {"row": 57, "column": 16}, "end_point": {"row": 57, "column": 26}}, {"id": 180, "type": "declaration", "text": "std::string businessAddress_;", "parent": 42, "children": [181, 182, 184], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 33}}, {"id": 181, "type": "type_identifier", "text": "std", "parent": 180, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 7}}, {"id": 182, "type": "ERROR", "text": "::string", "parent": 180, "children": [183], "start_point": {"row": 58, "column": 7}, "end_point": {"row": 58, "column": 15}}, {"id": 183, "type": "identifier", "text": "string", "parent": 182, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 15}}, {"id": 184, "type": "identifier", "text": "businessAddress_", "parent": 180, "children": [], "start_point": {"row": 58, "column": 16}, "end_point": {"row": 58, "column": 32}}, {"id": 185, "type": "declaration", "text": "long bid_;", "parent": 42, "children": [186, 188], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 14}}, {"id": 186, "type": "sized_type_specifier", "text": "long", "parent": 185, "children": [187], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 8}}, {"id": 187, "type": "long", "text": "long", "parent": 186, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 8}}, {"id": 188, "type": "identifier", "text": "bid_", "parent": 185, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 13}}, {"id": 189, "type": "declaration", "text": "std::string businessManager_;", "parent": 42, "children": [190, 191, 193], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 33}}, {"id": 190, "type": "type_identifier", "text": "std", "parent": 189, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 7}}, {"id": 191, "type": "ERROR", "text": "::string", "parent": 189, "children": [192], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 15}}, {"id": 192, "type": "identifier", "text": "string", "parent": 191, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 15}}, {"id": 193, "type": "identifier", "text": "businessManager_", "parent": 189, "children": [], "start_point": {"row": 60, "column": 16}, "end_point": {"row": 60, "column": 32}}, {"id": 194, "type": "declaration", "text": "std::string businessProvince_;", "parent": 42, "children": [195, 196, 198], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 34}}, {"id": 195, "type": "type_identifier", "text": "std", "parent": 194, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 7}}, {"id": 196, "type": "ERROR", "text": "::string", "parent": 194, "children": [197], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 15}}, {"id": 197, "type": "identifier", "text": "string", "parent": 196, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 15}}, {"id": 198, "type": "identifier", "text": "businessProvince_", "parent": 194, "children": [], "start_point": {"row": 61, "column": 16}, "end_point": {"row": 61, "column": 33}}, {"id": 199, "type": "declaration", "text": "std::string accessKeyId_;", "parent": 42, "children": [200, 201, 203], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 29}}, {"id": 200, "type": "type_identifier", "text": "std", "parent": 199, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 7}}, {"id": 201, "type": "ERROR", "text": "::string", "parent": 199, "children": [202], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 15}}, {"id": 202, "type": "identifier", "text": "string", "parent": 201, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 15}}, {"id": 203, "type": "identifier", "text": "accessKeyId_", "parent": 199, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 28}}, {"id": 204, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 21, 24, 44, 49, 59, 63, 75, 79, 91, 95, 106, 111, 122, 126, 138, 142, 154, 158], "variables": [27, 47, 52, 55, 66, 71, 82, 87, 98, 109, 114, 118, 129, 134, 145, 150, 161, 167, 170, 175, 180, 185, 189, 194, 199], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [34, 37, 39], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 23, 25, 26, 28, 30, 32, 35, 40, 45, 50, 54, 56, 58, 60, 64, 67, 69, 70, 72, 74, 76, 80, 83, 85, 86, 88, 90, 92, 96, 99, 101, 102, 104, 107, 112, 115, 117, 119, 121, 123, 127, 130, 132, 133, 135, 137, 139, 143, 146, 148, 149, 151, 153, 155, 159, 162, 164, 165, 169, 171, 173, 174, 176, 178, 179, 181, 183, 184, 186, 188, 190, 192, 193, 195, 197, 198, 200, 202, 203, 204], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "ALIBABACLOUD_CLOUDWF_EXPORT", "text_snippet": "namespace AlibabaCloud\n{\n\tnamespace Cloudwf\n\t{\n\t\tnamespace Model\n\t\t{\n\t\t\tclass ALIBABACLOUD_CLOUDWF_E"}, {"node_id": 21, "universal_type": "function", "name": "ALIBABACLOUD_CLOUDWF_EXPORT", "text_snippet": "namespace Cloudwf\n\t{\n\t\tnamespace Model\n\t\t{\n\t\t\tclass ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateReques"}, {"node_id": 24, "universal_type": "function", "name": "ALIBABACLOUD_CLOUDWF_EXPORT", "text_snippet": "namespace Model\n\t\t{\n\t\t\tclass ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRe"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "getWarn()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "setWarn(int warn)"}, {"node_id": 59, "universal_type": "function", "name": "unknown", "text_snippet": "getBusinessCity()const"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "setBusinessCity(const std::string& businessCity)"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "getWarnEmail()const"}, {"node_id": 79, "universal_type": "function", "name": "unknown", "text_snippet": "setWarnEmail(const std::string& warnEmail)"}, {"node_id": 91, "universal_type": "function", "name": "unknown", "text_snippet": "getBusinessAddress()const"}, {"node_id": 95, "universal_type": "function", "name": "unknown", "text_snippet": "setBusinessAddress(const std::string& businessAddress)"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "getBid()const"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "setBid(long bid)"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "getBusinessManager()const"}, {"node_id": 126, "universal_type": "function", "name": "unknown", "text_snippet": "setBusinessManager(const std::string& businessManager)"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "getBusinessProvince()const"}, {"node_id": 142, "universal_type": "function", "name": "unknown", "text_snippet": "setBusinessProvince(const std::string& businessProvince)"}, {"node_id": 154, "universal_type": "function", "name": "unknown", "text_snippet": "getAccessKeyId()const"}, {"node_id": 158, "universal_type": "function", "name": "unknown", "text_snippet": "setAccessKeyId(const std::string& accessKeyId)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <string>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <vector>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <alibabacloud/core/RpcServiceRequest.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <alibabacloud/cloudwf/CloudwfExport.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2009-2017 Alibaba Cloud All rights reserved.\n * \n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n * \n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#ifndef ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n#define ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_\n\n#include <string>\n#include <vector>\n#include <alibabacloud/core/RpcServiceRequest.h>\n#include <alibabacloud/cloudwf/CloudwfExport.h>\n\nnamespace AlibabaCloud\n{\n\tnamespace Cloudwf\n\t{\n\t\tnamespace Model\n\t\t{\n\t\t\tclass ALIBABACLOUD_CLOUDWF_EXPORT BusinessUpdateRequest : public RpcServiceRequest\n\t\t\t{\n\n\t\t\tpublic:\n\t\t\t\tBusinessUpdateRequest();\n\t\t\t\t~BusinessUpdateRequest();\n\n\t\t\t\tint getWarn()const;\r\n\t\t\t\tvoid setWarn(int warn);\r\n\t\t\t\tstd::string getBusinessCity()const;\r\n\t\t\t\tvoid setBusinessCity(const std::string& businessCity);\r\n\t\t\t\tstd::string getWarnEmail()const;\r\n\t\t\t\tvoid setWarnEmail(const std::string& warnEmail);\r\n\t\t\t\tstd::string getBusinessAddress()const;\r\n\t\t\t\tvoid setBusinessAddress(const std::string& businessAddress);\r\n\t\t\t\tlong getBid()const;\r\n\t\t\t\tvoid setBid(long bid);\r\n\t\t\t\tstd::string getBusinessManager()const;\r\n\t\t\t\tvoid setBusinessManager(const std::string& businessManager);\r\n\t\t\t\tstd::string getBusinessProvince()const;\r\n\t\t\t\tvoid setBusinessProvince(const std::string& businessProvince);\r\n\t\t\t\tstd::string getAccessKeyId()const;\r\n\t\t\t\tvoid setAccessKeyId(const std::string& accessKeyId);\r\n\n private:\n\t\t\t\tint warn_;\r\n\t\t\t\tstd::string businessCity_;\r\n\t\t\t\tstd::string warnEmail_;\r\n\t\t\t\tstd::string businessAddress_;\r\n\t\t\t\tlong bid_;\r\n\t\t\t\tstd::string businessManager_;\r\n\t\t\t\tstd::string businessProvince_;\r\n\t\t\t\tstd::string accessKeyId_;\r\n\n\t\t\t};\n\t\t}\n\t}\n}\n#endif // !ALIBABACLOUD_CLOUDWF_MODEL_BUSINESSUPDATEREQUEST_H_"}
80,352
c
#pragma once #include "HAL/Platform.h" #if PLATFORM_WINDOWS #include "IPingThread.h" class WinPingThread : public IPingThread { public: WinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {} // FRunnable interface virtual bool Init() override; virtual uint32 Run() override; virtual void Stop() override; virtual FRunnableThread* StartThread(); }; #endif
25.07
15
(translation_unit) "#pragma once\n\n#include "HAL/Platform.h"\n\n#if PLATFORM_WINDOWS\n\n#include "IPingThread.h"\n\nclass WinPingThread : public IPingThread\n{\npublic:\n WinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}\n\n // FRunnable interface\n virtual bool Init() override;\n virtual uint32 Run() override;\n virtual void Stop() override;\n\n virtual FRunnableThread* StartThread();\n};\n\n#endif" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "HAL/Platform.h"\n" (#include) "#include" (string_literal) ""HAL/Platform.h"" (") """ (string_content) "HAL/Platform.h" (") """ (preproc_if) "#if PLATFORM_WINDOWS\n\n#include "IPingThread.h"\n\nclass WinPingThread : public IPingThread\n{\npublic:\n WinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}\n\n // FRunnable interface\n virtual bool Init() override;\n virtual uint32 Run() override;\n virtual void Stop() override;\n\n virtual FRunnableThread* StartThread();\n};\n\n#endif" (#if) "#if" (identifier) "PLATFORM_WINDOWS" ( ) "\n\n" (preproc_include) "#include "IPingThread.h"\n" (#include) "#include" (string_literal) ""IPingThread.h"" (") """ (string_content) "IPingThread.h" (") """ (function_definition) "class WinPingThread : public IPingThread\n{\npublic:\n WinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}\n\n // FRunnable interface\n virtual bool Init() override;\n virtual uint32 Run() override;\n virtual void Stop() override;\n\n virtual FRunnableThread* StartThread();\n}" (type_identifier) "class" (identifier) "WinPingThread" (ERROR) ": public IPingThread" (:) ":" (identifier) "public" (identifier) "IPingThread" (compound_statement) "{\npublic:\n WinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}\n\n // FRunnable interface\n virtual bool Init() override;\n virtual uint32 Run() override;\n virtual void Stop() override;\n\n virtual FRunnableThread* StartThread();\n}" ({) "{" (labeled_statement) "public:\n WinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}" (statement_identifier) "public" (:) ":" (ERROR) "WinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp)" (comma_expression) "WinPingThread(FString const & host, UPingIP * pingOp" (binary_expression) "WinPingThread(FString const & host" (identifier) "WinPingThread" (ERROR) "(FString const" (() "(" (type_descriptor) "FString const" (type_identifier) "FString" (type_qualifier) "const" (const) "const" (&) "&" (identifier) "host" (,) "," (binary_expression) "UPingIP * pingOp" (identifier) "UPingIP" (*) "*" (identifier) "pingOp" ()) ")" (:) ":" (call_expression) "IPingThread(host, pingOp)" (identifier) "IPingThread" (argument_list) "(host, pingOp)" (() "(" (identifier) "host" (,) "," (identifier) "pingOp" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (comment) "// FRunnable interface" (ERROR) "virtual bool Init() override;\n virtual uint32 Run() override;\n virtual void Stop() override;\n\n virtual FRunnableThread* StartThread();" (type_identifier) "virtual" (ERROR) "bool" (identifier) "bool" (function_declarator) "Init()" (identifier) "Init" (parameter_list) "()" (() "(" ()) ")" (declaration) "override;" (type_identifier) "override" (identifier) "" (;) ";" (declaration) "virtual uint32 Run() override;\n virtual void Stop() override;\n\n virtual FRunnableThread* StartThread();" (type_identifier) "virtual" (ERROR) "uint32 Run() override;\n virtual void Stop() override;\n\n virtual FRunnableThread" (identifier) "uint32" (function_declarator) "Run() override" (identifier) "Run" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "void" (function_declarator) "Stop() override" (identifier) "Stop" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (;) ";" (identifier) "virtual" (identifier) "FRunnableThread" (pointer_declarator) "* StartThread()" (*) "*" (function_declarator) "StartThread()" (identifier) "StartThread" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
110
6
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 25.07, "nodes": 67, "errors": 0, "source_hash": "6d05b4a55730cbb6b69f277ec8f1c03f94bbe7e968536995e82268f4d3c9e271", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include \"HAL/Platform.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": "\"HAL/Platform.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 25}}, {"id": 6, "type": "preproc_if", "text": "#if PLATFORM_WINDOWS\n\n#include \"IPingThread.h\"\n\nclass WinPingThread : public IPingThread\n{\npublic:\n\tWinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}\n\n\t// FRunnable interface\n\tvirtual bool Init() override;\n\tvirtual uint32 Run() override;\n\tvirtual void Stop() override;\n\n\tvirtual FRunnableThread* StartThread();\n};\n\n#endif", "parent": null, "children": [7, 8, 9, 10, 13, 66], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 7, "type": "#if", "text": "#if", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 3}}, {"id": 8, "type": "identifier", "text": "PLATFORM_WINDOWS", "parent": 6, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 20}}, {"id": 9, "type": "\n", "text": "\n\n", "parent": 6, "children": [], "start_point": {"row": 4, "column": 20}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "preproc_include", "text": "#include \"IPingThread.h\"\n", "parent": 6, "children": [11, 12], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 11, "type": "#include", "text": "#include", "parent": 10, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 12, "type": "string_literal", "text": "\"IPingThread.h\"", "parent": 10, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 24}}, {"id": 13, "type": "function_definition", "text": "class WinPingThread : public IPingThread\n{\npublic:\n\tWinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}\n\n\t// FRunnable interface\n\tvirtual bool Init() override;\n\tvirtual uint32 Run() override;\n\tvirtual void Stop() override;\n\n\tvirtual FRunnableThread* StartThread();\n}", "parent": 6, "children": [14, 15], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 14, "type": "identifier", "text": "WinPingThread", "parent": 13, "children": [], "start_point": {"row": 8, "column": 6}, "end_point": {"row": 8, "column": 19}}, {"id": 15, "type": "ERROR", "text": ": public IPingThread", "parent": 13, "children": [16], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 40}}, {"id": 16, "type": "identifier", "text": "IPingThread", "parent": 15, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 40}}, {"id": 17, "type": "labeled_statement", "text": "public:\n\tWinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}", "parent": 13, "children": [18], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 85}}, {"id": 18, "type": "ERROR", "text": "WinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp)", "parent": 17, "children": [19, 30], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 82}}, {"id": 19, "type": "comma_expression", "text": "WinPingThread(FString const & host, UPingIP * pingOp", "parent": 18, "children": [20, 26], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 53}}, {"id": 20, "type": "binary_expression", "text": "WinPingThread(FString const & host", "parent": 19, "children": [21, 22, 25], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 35}}, {"id": 21, "type": "identifier", "text": "WinPingThread", "parent": 20, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 14}}, {"id": 22, "type": "ERROR", "text": "(FString const", "parent": 20, "children": [23], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 28}}, {"id": 23, "type": "type_descriptor", "text": "FString const", "parent": 22, "children": [24], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 28}}, {"id": 24, "type": "type_identifier", "text": "FString", "parent": 23, "children": [], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 22}}, {"id": 25, "type": "identifier", "text": "host", "parent": 20, "children": [], "start_point": {"row": 11, "column": 31}, "end_point": {"row": 11, "column": 35}}, {"id": 26, "type": "binary_expression", "text": "UPingIP * pingOp", "parent": 19, "children": [27, 28, 29], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 53}}, {"id": 27, "type": "identifier", "text": "UPingIP", "parent": 26, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 44}}, {"id": 28, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 11, "column": 45}, "end_point": {"row": 11, "column": 46}}, {"id": 29, "type": "identifier", "text": "pingOp", "parent": 26, "children": [], "start_point": {"row": 11, "column": 47}, "end_point": {"row": 11, "column": 53}}, {"id": 30, "type": "call_expression", "text": "IPingThread(host, pingOp)", "parent": 18, "children": [31, 32], "start_point": {"row": 11, "column": 57}, "end_point": {"row": 11, "column": 82}}, {"id": 31, "type": "identifier", "text": "IPingThread", "parent": 30, "children": [], "start_point": {"row": 11, "column": 57}, "end_point": {"row": 11, "column": 68}}, {"id": 32, "type": "argument_list", "text": "(host, pingOp)", "parent": 30, "children": [33, 34], "start_point": {"row": 11, "column": 68}, "end_point": {"row": 11, "column": 82}}, {"id": 33, "type": "identifier", "text": "host", "parent": 32, "children": [], "start_point": {"row": 11, "column": 69}, "end_point": {"row": 11, "column": 73}}, {"id": 34, "type": "identifier", "text": "pingOp", "parent": 32, "children": [], "start_point": {"row": 11, "column": 75}, "end_point": {"row": 11, "column": 81}}, {"id": 35, "type": "ERROR", "text": "virtual bool Init() override;\n\tvirtual uint32 Run() override;\n\tvirtual void Stop() override;\n\n\tvirtual FRunnableThread* StartThread();", "parent": 13, "children": [36, 37, 39, 42, 45], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 18, "column": 40}}, {"id": 36, "type": "type_identifier", "text": "virtual", "parent": 35, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 8}}, {"id": 37, "type": "ERROR", "text": "bool", "parent": 35, "children": [38], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 13}}, {"id": 38, "type": "identifier", "text": "bool", "parent": 37, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 13}}, {"id": 39, "type": "function_declarator", "text": "Init()", "parent": 35, "children": [40, 41], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 20}}, {"id": 40, "type": "identifier", "text": "Init", "parent": 39, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 18}}, {"id": 41, "type": "parameter_list", "text": "()", "parent": 39, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 20}}, {"id": 42, "type": "declaration", "text": "override;", "parent": 35, "children": [43, 44], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 30}}, {"id": 43, "type": "type_identifier", "text": "override", "parent": 42, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 29}}, {"id": 44, "type": "identifier", "text": "", "parent": 42, "children": [], "start_point": {"row": 14, "column": 29}, "end_point": {"row": 14, "column": 29}}, {"id": 45, "type": "declaration", "text": "virtual uint32 Run() override;\n\tvirtual void Stop() override;\n\n\tvirtual FRunnableThread* StartThread();", "parent": 35, "children": [46, 47, 61], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 18, "column": 40}}, {"id": 46, "type": "type_identifier", "text": "virtual", "parent": 45, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 8}}, {"id": 47, "type": "ERROR", "text": "uint32 Run() override;\n\tvirtual void Stop() override;\n\n\tvirtual FRunnableThread", "parent": 45, "children": [48, 49, 53, 54, 55, 59, 60], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 18, "column": 24}}, {"id": 48, "type": "identifier", "text": "uint32", "parent": 47, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 15}}, {"id": 49, "type": "function_declarator", "text": "Run() override", "parent": 47, "children": [50, 51, 52], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 30}}, {"id": 50, "type": "identifier", "text": "Run", "parent": 49, "children": [], "start_point": {"row": 15, "column": 16}, "end_point": {"row": 15, "column": 19}}, {"id": 51, "type": "parameter_list", "text": "()", "parent": 49, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 21}}, {"id": 52, "type": "identifier", "text": "override", "parent": 49, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 30}}, {"id": 53, "type": "identifier", "text": "virtual", "parent": 47, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 8}}, {"id": 54, "type": "identifier", "text": "void", "parent": 47, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 13}}, {"id": 55, "type": "function_declarator", "text": "Stop() override", "parent": 47, "children": [56, 57, 58], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 29}}, {"id": 56, "type": "identifier", "text": "Stop", "parent": 55, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 18}}, {"id": 57, "type": "parameter_list", "text": "()", "parent": 55, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 20}}, {"id": 58, "type": "identifier", "text": "override", "parent": 55, "children": [], "start_point": {"row": 16, "column": 21}, "end_point": {"row": 16, "column": 29}}, {"id": 59, "type": "identifier", "text": "virtual", "parent": 47, "children": [], "start_point": {"row": 18, "column": 1}, "end_point": {"row": 18, "column": 8}}, {"id": 60, "type": "identifier", "text": "FRunnableThread", "parent": 47, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 24}}, {"id": 61, "type": "pointer_declarator", "text": "* StartThread()", "parent": 45, "children": [62, 63], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 39}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 25}}, {"id": 63, "type": "function_declarator", "text": "StartThread()", "parent": 61, "children": [64, 65], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 39}}, {"id": 64, "type": "identifier", "text": "StartThread", "parent": 63, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 37}}, {"id": 65, "type": "parameter_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 39}}, {"id": 66, "type": "#endif", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}]}, "node_categories": {"declarations": {"functions": [13, 39, 49, 55, 63], "variables": [42, 45], "classes": [], "imports": [3, 4, 10, 11], "modules": [], "enums": []}, "statements": {"expressions": [19, 20, 26, 30], "assignments": [], "loops": [], "conditionals": [6, 7, 8, 14, 16, 21, 24, 25, 27, 29, 31, 33, 34, 36, 38, 40, 43, 44, 46, 48, 50, 52, 53, 54, 56, 58, 59, 60, 64, 66], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 12], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "WinPingThread", "text_snippet": "class WinPingThread : public IPingThread\n{\npublic:\n\tWinPingThread(FString const & host, UPingIP * pi"}, {"node_id": 39, "universal_type": "function", "name": "unknown", "text_snippet": "Init()"}, {"node_id": 49, "universal_type": "function", "name": "unknown", "text_snippet": "Run() override"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "Stop() override"}, {"node_id": 63, "universal_type": "function", "name": "unknown", "text_snippet": "StartThread()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"HAL/Platform.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 10, "text": "#include \"IPingThread.h\"\n"}, {"node_id": 11, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"HAL/Platform.h\"\n\n#if PLATFORM_WINDOWS\n\n#include \"IPingThread.h\"\n\nclass WinPingThread : public IPingThread\n{\npublic:\n\tWinPingThread(FString const & host, UPingIP * pingOp) : IPingThread(host, pingOp) {}\n\n\t// FRunnable interface\n\tvirtual bool Init() override;\n\tvirtual uint32 Run() override;\n\tvirtual void Stop() override;\n\n\tvirtual FRunnableThread* StartThread();\n};\n\n#endif"}
80,353
c
#pragma once // // FILE: Complex.h // AUTHOR: <NAME> // VERSION: 0.2.2 // PURPOSE: Arduino library for Complex math // URL: https://github.com/RobTillaart/Complex // http://arduino.cc/playground/Main/ComplexMath // #include "Arduino.h" #include "Printable.h" #define COMPLEX_LIB_VERSION "0.2.2" class Complex: public Printable { public: Complex(const float r = 0, const float i = 0) : re(r), im(i) {}; Complex(const Complex &c) : re(c.re), im(c.im) {}; void set(const float r, const float i ) { re = r; im = i; }; void setReal(const float r) { re = r; }; void setImag(const float i ) { im = i; }; float real() { return re; }; float imag() { return im; }; size_t printTo(Print& p) const; void polar(const float modulus, const float phase); float phase() { return atan2(im, re); }; float modulus() { return hypot(re, im); }; // conjugate is the number mirrored in x-axis Complex conjugate() { return Complex(re, -im); }; Complex reciprocal(); bool operator == (const Complex&); bool operator != (const Complex&); Complex operator - (); // negation Complex operator + (const Complex&); Complex operator - (const Complex&); Complex operator * (const Complex&); Complex operator / (const Complex&); Complex& operator += (const Complex&); Complex& operator -= (const Complex&); Complex& operator *= (const Complex&); Complex& operator /= (const Complex&); Complex c_sqrt(); Complex c_sqr(); Complex c_exp(); Complex c_log(); Complex c_log10(); Complex c_pow(const Complex &); Complex c_logn(const Complex &); Complex c_sin(); Complex c_cos(); Complex c_tan(); Complex c_asin(); Complex c_acos(); Complex c_atan(); Complex c_csc(); Complex c_sec(); Complex c_cot(); Complex c_acsc(); Complex c_asec(); Complex c_acot(); Complex c_sinh(); Complex c_cosh(); Complex c_tanh(); Complex c_asinh(); Complex c_acosh(); Complex c_atanh(); Complex c_csch(); Complex c_sech(); Complex c_coth(); Complex c_acsch(); Complex c_asech(); Complex c_acoth(); protected: float re; float im; Complex gonioHelper1(const byte); Complex gonioHelper2(const byte); }; static Complex one(1, 0); // -- END OF FILE --
28.8
79
(translation_unit) "#pragma once\n//\n// FILE: Complex.h\n// AUTHOR: <NAME>\n// VERSION: 0.2.2\n// PURPOSE: Arduino library for Complex math\n// URL: https://github.com/RobTillaart/Complex\n// http://arduino.cc/playground/Main/ComplexMath\n//\n\n#include "Arduino.h"\n#include "Printable.h"\n\n#define COMPLEX_LIB_VERSION "0.2.2"\n\nclass Complex: public Printable\n{\npublic:\n Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};\n\n void set(const float r, const float i ) { re = r; im = i; };\n void setReal(const float r) { re = r; };\n void setImag(const float i ) { im = i; };\n float real() { return re; };\n float imag() { return im; };\n\n size_t printTo(Print& p) const;\n\n void polar(const float modulus, const float phase);\n float phase() { return atan2(im, re); };\n float modulus() { return hypot(re, im); };\n // conjugate is the number mirrored in x-axis\n Complex conjugate() { return Complex(re, -im); };\n Complex reciprocal();\n\n bool operator == (const Complex&);\n bool operator != (const Complex&);\n\n Complex operator - (); // negation\n\n Complex operator + (const Complex&);\n Complex operator - (const Complex&);\n Complex operator * (const Complex&);\n Complex operator / (const Complex&);\n\n Complex& operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&);\n\n Complex c_sqrt();\n Complex c_sqr();\n Complex c_exp();\n Complex c_log();\n Complex c_log10();\n Complex c_pow(const Complex &);\n Complex c_logn(const Complex &);\n\n Complex c_sin();\n Complex c_cos();\n Complex c_tan();\n Complex c_asin();\n Complex c_acos();\n Complex c_atan();\n\n Complex c_csc();\n Complex c_sec();\n Complex c_cot();\n Complex c_acsc();\n Complex c_asec();\n Complex c_acot();\n\n Complex c_sinh();\n Complex c_cosh();\n Complex c_tanh();\n Complex c_asinh();\n Complex c_acosh();\n Complex c_atanh();\n\n Complex c_csch();\n Complex c_sech();\n Complex c_coth();\n Complex c_acsch();\n Complex c_asech();\n Complex c_acoth();\n\nprotected:\n float re;\n float im;\n\n Complex gonioHelper1(const byte);\n Complex gonioHelper2(const byte);\n};\n\nstatic Complex one(1, 0);\n\n// -- END OF FILE --\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "//" (comment) "// FILE: Complex.h" (comment) "// AUTHOR: <NAME>" (comment) "// VERSION: 0.2.2" (comment) "// PURPOSE: Arduino library for Complex math" (comment) "// URL: https://github.com/RobTillaart/Complex" (comment) "// http://arduino.cc/playground/Main/ComplexMath" (comment) "//" (preproc_include) "#include "Arduino.h"\n" (#include) "#include" (string_literal) ""Arduino.h"" (") """ (string_content) "Arduino.h" (") """ (preproc_include) "#include "Printable.h"\n" (#include) "#include" (string_literal) ""Printable.h"" (") """ (string_content) "Printable.h" (") """ (preproc_def) "#define COMPLEX_LIB_VERSION "0.2.2"\n" (#define) "#define" (identifier) "COMPLEX_LIB_VERSION" (preproc_arg) ""0.2.2"" (function_definition) "class Complex: public Printable\n{\npublic:\n Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};\n\n void set(const float r, const float i ) { re = r; im = i; };\n void setReal(const float r) { re = r; };\n void setImag(const float i ) { im = i; };\n float real() { return re; };\n float imag() { return im; };\n\n size_t printTo(Print& p) const;\n\n void polar(const float modulus, const float phase);\n float phase() { return atan2(im, re); };\n float modulus() { return hypot(re, im); };\n // conjugate is the number mirrored in x-axis\n Complex conjugate() { return Complex(re, -im); };\n Complex reciprocal();\n\n bool operator == (const Complex&);\n bool operator != (const Complex&);\n\n Complex operator - (); // negation\n\n Complex operator + (const Complex&);\n Complex operator - (const Complex&);\n Complex operator * (const Complex&);\n Complex operator / (const Complex&);\n\n Complex& operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&);\n\n Complex c_sqrt();\n Complex c_sqr();\n Complex c_exp();\n Complex c_log();\n Complex c_log10();\n Complex c_pow(const Complex &);\n Complex c_logn(const Complex &);\n\n Complex c_sin();\n Complex c_cos();\n Complex c_tan();\n Complex c_asin();\n Complex c_acos();\n Complex c_atan();\n\n Complex c_csc();\n Complex c_sec();\n Complex c_cot();\n Complex c_acsc();\n Complex c_asec();\n Complex c_acot();\n\n Complex c_sinh();\n Complex c_cosh();\n Complex c_tanh();\n Complex c_asinh();\n Complex c_acosh();\n Complex c_atanh();\n\n Complex c_csch();\n Complex c_sech();\n Complex c_coth();\n Complex c_acsch();\n Complex c_asech();\n Complex c_acoth();\n\nprotected:\n float re;\n float im;\n\n Complex gonioHelper1(const byte);\n Complex gonioHelper2(const byte);\n}" (type_identifier) "class" (ERROR) "Complex: public" (identifier) "Complex" (:) ":" (identifier) "public" (identifier) "Printable" (compound_statement) "{\npublic:\n Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};\n\n void set(const float r, const float i ) { re = r; im = i; };\n void setReal(const float r) { re = r; };\n void setImag(const float i ) { im = i; };\n float real() { return re; };\n float imag() { return im; };\n\n size_t printTo(Print& p) const;\n\n void polar(const float modulus, const float phase);\n float phase() { return atan2(im, re); };\n float modulus() { return hypot(re, im); };\n // conjugate is the number mirrored in x-axis\n Complex conjugate() { return Complex(re, -im); };\n Complex reciprocal();\n\n bool operator == (const Complex&);\n bool operator != (const Complex&);\n\n Complex operator - (); // negation\n\n Complex operator + (const Complex&);\n Complex operator - (const Complex&);\n Complex operator * (const Complex&);\n Complex operator / (const Complex&);\n\n Complex& operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&);\n\n Complex c_sqrt();\n Complex c_sqr();\n Complex c_exp();\n Complex c_log();\n Complex c_log10();\n Complex c_pow(const Complex &);\n Complex c_logn(const Complex &);\n\n Complex c_sin();\n Complex c_cos();\n Complex c_tan();\n Complex c_asin();\n Complex c_acos();\n Complex c_atan();\n\n Complex c_csc();\n Complex c_sec();\n Complex c_cot();\n Complex c_acsc();\n Complex c_asec();\n Complex c_acot();\n\n Complex c_sinh();\n Complex c_cosh();\n Complex c_tanh();\n Complex c_asinh();\n Complex c_acosh();\n Complex c_atanh();\n\n Complex c_csch();\n Complex c_sech();\n Complex c_coth();\n Complex c_acsch();\n Complex c_asech();\n Complex c_acoth();\n\nprotected:\n float re;\n float im;\n\n Complex gonioHelper1(const byte);\n Complex gonioHelper2(const byte);\n}" ({) "{" (labeled_statement) "public:\n Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};" (statement_identifier) "public" (:) ":" (declaration) "Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};" (macro_type_specifier) "Complex(const float" (identifier) "Complex" (() "(" (type_descriptor) "const float" (type_qualifier) "const" (const) "const" (primitive_type) "float" ()) "" (init_declarator) "r = 0" (identifier) "r" (=) "=" (number_literal) "0" (,) "," (init_declarator) "const float i = 0) : re(r)" (identifier) "const" (ERROR) "float i" (identifier) "float" (identifier) "i" (=) "=" (ERROR) "0) :" (number_literal) "0" ()) ")" (:) ":" (call_expression) "re(r)" (identifier) "re" (argument_list) "(r)" (() "(" (identifier) "r" ()) ")" (ERROR) ", im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {}" (,) "," (ERROR) "im(i) {};\n Complex(const Complex &c) : re(c.re)," (function_declarator) "im(i)" (identifier) "im" (parameter_list) "(i)" (() "(" (parameter_declaration) "i" (type_identifier) "i" ()) ")" ({) "{" (}) "}" (;) ";" (function_declarator) "Complex(const Complex &c) : re(c.re)" (identifier) "Complex" (parameter_list) "(const Complex &c)" (() "(" (parameter_declaration) "const Complex &c" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" (identifier) "c" ()) ")" (ERROR) ":" (:) ":" (call_expression) "re(c.re)" (identifier) "re" (argument_list) "(c.re)" (() "(" (ERROR) "c." (identifier) "c" (.) "." (identifier) "re" ()) ")" (,) "," (function_declarator) "im(c.im)" (identifier) "im" (parameter_list) "(c.im)" (() "(" (parameter_declaration) "c.im" (type_identifier) "c" (ERROR) "." (.) "." (identifier) "im" ()) ")" ({) "{" (}) "}" (;) ";" (function_definition) "void set(const float r, const float i ) { re = r; im = i; }" (primitive_type) "void" (function_declarator) "set(const float r, const float i )" (identifier) "set" (parameter_list) "(const float r, const float i )" (() "(" (parameter_declaration) "const float r" (type_qualifier) "const" (const) "const" (primitive_type) "float" (identifier) "r" (,) "," (parameter_declaration) "const float i" (type_qualifier) "const" (const) "const" (primitive_type) "float" (identifier) "i" ()) ")" (compound_statement) "{ re = r; im = i; }" ({) "{" (expression_statement) "re = r;" (assignment_expression) "re = r" (identifier) "re" (=) "=" (identifier) "r" (;) ";" (expression_statement) "im = i;" (assignment_expression) "im = i" (identifier) "im" (=) "=" (identifier) "i" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setReal(const float r) { re = r; }" (primitive_type) "void" (function_declarator) "setReal(const float r)" (identifier) "setReal" (parameter_list) "(const float r)" (() "(" (parameter_declaration) "const float r" (type_qualifier) "const" (const) "const" (primitive_type) "float" (identifier) "r" ()) ")" (compound_statement) "{ re = r; }" ({) "{" (expression_statement) "re = r;" (assignment_expression) "re = r" (identifier) "re" (=) "=" (identifier) "r" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "void setImag(const float i ) { im = i; }" (primitive_type) "void" (function_declarator) "setImag(const float i )" (identifier) "setImag" (parameter_list) "(const float i )" (() "(" (parameter_declaration) "const float i" (type_qualifier) "const" (const) "const" (primitive_type) "float" (identifier) "i" ()) ")" (compound_statement) "{ im = i; }" ({) "{" (expression_statement) "im = i;" (assignment_expression) "im = i" (identifier) "im" (=) "=" (identifier) "i" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "float real() { return re; }" (primitive_type) "float" (function_declarator) "real()" (identifier) "real" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return re; }" ({) "{" (return_statement) "return re;" (return) "return" (identifier) "re" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "float imag() { return im; }" (primitive_type) "float" (function_declarator) "imag()" (identifier) "imag" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return im; }" ({) "{" (return_statement) "return im;" (return) "return" (identifier) "im" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (ERROR) "size_t printTo(Print& p) const" (primitive_type) "size_t" (function_declarator) "printTo(Print& p) const" (identifier) "printTo" (parameter_list) "(Print& p)" (() "(" (parameter_declaration) "Print& p" (type_identifier) "Print" (ERROR) "&" (&) "&" (identifier) "p" ()) ")" (identifier) "const" (expression_statement) ";" (;) ";" (declaration) "void polar(const float modulus, const float phase);" (primitive_type) "void" (function_declarator) "polar(const float modulus, const float phase)" (identifier) "polar" (parameter_list) "(const float modulus, const float phase)" (() "(" (parameter_declaration) "const float modulus" (type_qualifier) "const" (const) "const" (primitive_type) "float" (identifier) "modulus" (,) "," (parameter_declaration) "const float phase" (type_qualifier) "const" (const) "const" (primitive_type) "float" (identifier) "phase" ()) ")" (;) ";" (function_definition) "float phase() { return atan2(im, re); }" (primitive_type) "float" (function_declarator) "phase()" (identifier) "phase" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return atan2(im, re); }" ({) "{" (return_statement) "return atan2(im, re);" (return) "return" (call_expression) "atan2(im, re)" (identifier) "atan2" (argument_list) "(im, re)" (() "(" (identifier) "im" (,) "," (identifier) "re" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "float modulus() { return hypot(re, im); }" (primitive_type) "float" (function_declarator) "modulus()" (identifier) "modulus" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return hypot(re, im); }" ({) "{" (return_statement) "return hypot(re, im);" (return) "return" (call_expression) "hypot(re, im)" (identifier) "hypot" (argument_list) "(re, im)" (() "(" (identifier) "re" (,) "," (identifier) "im" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (comment) "// conjugate is the number mirrored in x-axis" (function_definition) "Complex conjugate() { return Complex(re, -im); }" (type_identifier) "Complex" (function_declarator) "conjugate()" (identifier) "conjugate" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{ return Complex(re, -im); }" ({) "{" (return_statement) "return Complex(re, -im);" (return) "return" (call_expression) "Complex(re, -im)" (identifier) "Complex" (argument_list) "(re, -im)" (() "(" (identifier) "re" (,) "," (unary_expression) "-im" (-) "-" (identifier) "im" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "Complex reciprocal();" (type_identifier) "Complex" (function_declarator) "reciprocal()" (identifier) "reciprocal" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool operator == (const Complex&);" (primitive_type) "bool" (function_declarator) "operator == (const Complex&)" (identifier) "operator" (ERROR) "==" (==) "==" (parameter_list) "(const Complex&)" (() "(" (parameter_declaration) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "bool operator != (const Complex&);" (primitive_type) "bool" (function_declarator) "operator != (const Complex&)" (identifier) "operator" (ERROR) "!=" (!=) "!=" (parameter_list) "(const Complex&)" (() "(" (parameter_declaration) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "Complex operator - ();" (type_identifier) "Complex" (function_declarator) "operator - ()" (identifier) "operator" (ERROR) "-" (-) "-" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "// negation" (declaration) "Complex operator + (const Complex&);" (type_identifier) "Complex" (function_declarator) "operator + (const Complex&)" (identifier) "operator" (ERROR) "+" (+) "+" (parameter_list) "(const Complex&)" (() "(" (parameter_declaration) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "Complex operator - (const Complex&);" (type_identifier) "Complex" (function_declarator) "operator - (const Complex&)" (identifier) "operator" (ERROR) "-" (-) "-" (parameter_list) "(const Complex&)" (() "(" (parameter_declaration) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "Complex operator * (const Complex&);" (type_identifier) "Complex" (function_declarator) "operator * (const Complex&)" (identifier) "operator" (ERROR) "*" (*) "*" (parameter_list) "(const Complex&)" (() "(" (parameter_declaration) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "Complex operator / (const Complex&);" (type_identifier) "Complex" (function_declarator) "operator / (const Complex&)" (identifier) "operator" (ERROR) "/" (/) "/" (parameter_list) "(const Complex&)" (() "(" (parameter_declaration) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (;) ";" (expression_statement) "Complex& operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&);" (binary_expression) "Complex& operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)" (identifier) "Complex" (&) "&" (assignment_expression) "operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)" (identifier) "operator" (+=) "+=" (binary_expression) "(const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)" (cast_expression) "(const Complex&);\n Complex" (() "(" (type_descriptor) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (ERROR) ";" (;) ";" (identifier) "Complex" (&) "&" (assignment_expression) "operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)" (identifier) "operator" (-=) "-=" (binary_expression) "(const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)" (cast_expression) "(const Complex&);\n Complex" (() "(" (type_descriptor) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (ERROR) ";" (;) ";" (identifier) "Complex" (&) "&" (assignment_expression) "operator *= (const Complex&);\n Complex& operator /= (const Complex&)" (identifier) "operator" (*=) "*=" (binary_expression) "(const Complex&);\n Complex& operator /= (const Complex&)" (cast_expression) "(const Complex&);\n Complex" (() "(" (type_descriptor) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (ERROR) ";" (;) ";" (identifier) "Complex" (&) "&" (assignment_expression) "operator /= (const Complex&)" (identifier) "operator" (/=) "/=" (cast_expression) "(const Complex&)" (() "(" (type_descriptor) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (identifier) "" (;) ";" (declaration) "Complex c_sqrt();" (type_identifier) "Complex" (function_declarator) "c_sqrt()" (identifier) "c_sqrt" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_sqr();" (type_identifier) "Complex" (function_declarator) "c_sqr()" (identifier) "c_sqr" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_exp();" (type_identifier) "Complex" (function_declarator) "c_exp()" (identifier) "c_exp" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_log();" (type_identifier) "Complex" (function_declarator) "c_log()" (identifier) "c_log" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_log10();" (type_identifier) "Complex" (function_declarator) "c_log10()" (identifier) "c_log10" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_pow(const Complex &);" (type_identifier) "Complex" (function_declarator) "c_pow(const Complex &)" (identifier) "c_pow" (parameter_list) "(const Complex &)" (() "(" (parameter_declaration) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "Complex c_logn(const Complex &);" (type_identifier) "Complex" (function_declarator) "c_logn(const Complex &)" (identifier) "c_logn" (parameter_list) "(const Complex &)" (() "(" (parameter_declaration) "const Complex" (type_qualifier) "const" (const) "const" (type_identifier) "Complex" (ERROR) "&" (&) "&" ()) ")" (;) ";" (declaration) "Complex c_sin();" (type_identifier) "Complex" (function_declarator) "c_sin()" (identifier) "c_sin" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_cos();" (type_identifier) "Complex" (function_declarator) "c_cos()" (identifier) "c_cos" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_tan();" (type_identifier) "Complex" (function_declarator) "c_tan()" (identifier) "c_tan" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_asin();" (type_identifier) "Complex" (function_declarator) "c_asin()" (identifier) "c_asin" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_acos();" (type_identifier) "Complex" (function_declarator) "c_acos()" (identifier) "c_acos" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_atan();" (type_identifier) "Complex" (function_declarator) "c_atan()" (identifier) "c_atan" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_csc();" (type_identifier) "Complex" (function_declarator) "c_csc()" (identifier) "c_csc" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_sec();" (type_identifier) "Complex" (function_declarator) "c_sec()" (identifier) "c_sec" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_cot();" (type_identifier) "Complex" (function_declarator) "c_cot()" (identifier) "c_cot" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_acsc();" (type_identifier) "Complex" (function_declarator) "c_acsc()" (identifier) "c_acsc" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_asec();" (type_identifier) "Complex" (function_declarator) "c_asec()" (identifier) "c_asec" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_acot();" (type_identifier) "Complex" (function_declarator) "c_acot()" (identifier) "c_acot" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_sinh();" (type_identifier) "Complex" (function_declarator) "c_sinh()" (identifier) "c_sinh" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_cosh();" (type_identifier) "Complex" (function_declarator) "c_cosh()" (identifier) "c_cosh" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_tanh();" (type_identifier) "Complex" (function_declarator) "c_tanh()" (identifier) "c_tanh" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_asinh();" (type_identifier) "Complex" (function_declarator) "c_asinh()" (identifier) "c_asinh" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_acosh();" (type_identifier) "Complex" (function_declarator) "c_acosh()" (identifier) "c_acosh" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_atanh();" (type_identifier) "Complex" (function_declarator) "c_atanh()" (identifier) "c_atanh" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_csch();" (type_identifier) "Complex" (function_declarator) "c_csch()" (identifier) "c_csch" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_sech();" (type_identifier) "Complex" (function_declarator) "c_sech()" (identifier) "c_sech" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_coth();" (type_identifier) "Complex" (function_declarator) "c_coth()" (identifier) "c_coth" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_acsch();" (type_identifier) "Complex" (function_declarator) "c_acsch()" (identifier) "c_acsch" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_asech();" (type_identifier) "Complex" (function_declarator) "c_asech()" (identifier) "c_asech" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "Complex c_acoth();" (type_identifier) "Complex" (function_declarator) "c_acoth()" (identifier) "c_acoth" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "protected:\n float re;" (statement_identifier) "protected" (:) ":" (declaration) "float re;" (primitive_type) "float" (identifier) "re" (;) ";" (declaration) "float im;" (primitive_type) "float" (identifier) "im" (;) ";" (declaration) "Complex gonioHelper1(const byte);" (type_identifier) "Complex" (function_declarator) "gonioHelper1(const byte)" (identifier) "gonioHelper1" (parameter_list) "(const byte)" (() "(" (parameter_declaration) "const byte" (type_qualifier) "const" (const) "const" (type_identifier) "byte" ()) ")" (;) ";" (declaration) "Complex gonioHelper2(const byte);" (type_identifier) "Complex" (function_declarator) "gonioHelper2(const byte)" (identifier) "gonioHelper2" (parameter_list) "(const byte)" (() "(" (parameter_declaration) "const byte" (type_qualifier) "const" (const) "const" (type_identifier) "byte" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (declaration) "static Complex one(1, 0);" (storage_class_specifier) "static" (static) "static" (type_identifier) "Complex" (function_declarator) "one(1, 0)" (identifier) "one" (parameter_list) "(1, 0)" (() "(" (ERROR) "1, 0" (number_literal) "1" (,) "," (number_literal) "0" ()) ")" (;) ";" (comment) "// -- END OF FILE --"
836
34
{"language": "c", "success": true, "metadata": {"lines": 79, "avg_line_length": 28.8, "nodes": 461, "errors": 0, "source_hash": "4bc1808de7701a7be515d96436743a3d07a26842fc0a4628d7e1bd8c294c4642", "categorized_nodes": 334}, "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 \"Arduino.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"Arduino.h\"", "parent": 3, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include \"Printable.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"Printable.h\"", "parent": 6, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 22}}, {"id": 9, "type": "preproc_def", "text": "#define COMPLEX_LIB_VERSION \"0.2.2\"\n", "parent": null, "children": [10, 11, 12], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 11, "type": "identifier", "text": "COMPLEX_LIB_VERSION", "parent": 9, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 27}}, {"id": 12, "type": "preproc_arg", "text": "\"0.2.2\"", "parent": 9, "children": [], "start_point": {"row": 13, "column": 28}, "end_point": {"row": 13, "column": 35}}, {"id": 13, "type": "function_definition", "text": "class Complex: public Printable\n{\npublic:\n Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};\n\n void set(const float r, const float i ) { re = r; im = i; };\n void setReal(const float r) { re = r; };\n void setImag(const float i ) { im = i; };\n float real() { return re; };\n float imag() { return im; };\n\n size_t printTo(Print& p) const;\n\n void polar(const float modulus, const float phase);\n float phase() { return atan2(im, re); };\n float modulus() { return hypot(re, im); };\n // conjugate is the number mirrored in x-axis\n Complex conjugate() { return Complex(re, -im); };\n Complex reciprocal();\n\n bool operator == (const Complex&);\n bool operator != (const Complex&);\n\n Complex operator - (); // negation\n\n Complex operator + (const Complex&);\n Complex operator - (const Complex&);\n Complex operator * (const Complex&);\n Complex operator / (const Complex&);\n\n Complex& operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&);\n\n Complex c_sqrt();\n Complex c_sqr();\n Complex c_exp();\n Complex c_log();\n Complex c_log10();\n Complex c_pow(const Complex &);\n Complex c_logn(const Complex &);\n\n Complex c_sin();\n Complex c_cos();\n Complex c_tan();\n Complex c_asin();\n Complex c_acos();\n Complex c_atan();\n\n Complex c_csc();\n Complex c_sec();\n Complex c_cot();\n Complex c_acsc();\n Complex c_asec();\n Complex c_acot();\n\n Complex c_sinh();\n Complex c_cosh();\n Complex c_tanh();\n Complex c_asinh();\n Complex c_acosh();\n Complex c_atanh();\n\n Complex c_csch();\n Complex c_sech();\n Complex c_coth();\n Complex c_acsch();\n Complex c_asech();\n Complex c_acoth();\n\nprotected:\n float re;\n float im;\n\n Complex gonioHelper1(const byte);\n Complex gonioHelper2(const byte);\n}", "parent": null, "children": [14, 16], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 93, "column": 1}}, {"id": 14, "type": "ERROR", "text": "Complex: public", "parent": 13, "children": [15], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 21}}, {"id": 15, "type": "identifier", "text": "Complex", "parent": 14, "children": [], "start_point": {"row": 15, "column": 6}, "end_point": {"row": 15, "column": 13}}, {"id": 16, "type": "identifier", "text": "Printable", "parent": 13, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 31}}, {"id": 17, "type": "labeled_statement", "text": "public:\n Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};", "parent": 13, "children": [18], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 19, "column": 56}}, {"id": 18, "type": "declaration", "text": "Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};", "parent": 17, "children": [19, 23, 27, 38], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 19, "column": 56}}, {"id": 19, "type": "macro_type_specifier", "text": "Complex(const float", "parent": 18, "children": [20, 21], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 23}}, {"id": 20, "type": "identifier", "text": "Complex", "parent": 19, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 11}}, {"id": 21, "type": "type_descriptor", "text": "const float", "parent": 19, "children": [22], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 23}}, {"id": 22, "type": "primitive_type", "text": "float", "parent": 21, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 23}}, {"id": 23, "type": "init_declarator", "text": "r = 0", "parent": 18, "children": [24, 25, 26], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 29}}, {"id": 24, "type": "identifier", "text": "r", "parent": 23, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 25}}, {"id": 25, "type": "=", "text": "=", "parent": 23, "children": [], "start_point": {"row": 18, "column": 26}, "end_point": {"row": 18, "column": 27}}, {"id": 26, "type": "number_literal", "text": "0", "parent": 23, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 29}}, {"id": 27, "type": "init_declarator", "text": "const float i = 0) : re(r)", "parent": 18, "children": [28, 31, 32, 34], "start_point": {"row": 18, "column": 31}, "end_point": {"row": 18, "column": 57}}, {"id": 28, "type": "ERROR", "text": "float i", "parent": 27, "children": [29, 30], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 44}}, {"id": 29, "type": "identifier", "text": "float", "parent": 28, "children": [], "start_point": {"row": 18, "column": 37}, "end_point": {"row": 18, "column": 42}}, {"id": 30, "type": "identifier", "text": "i", "parent": 28, "children": [], "start_point": {"row": 18, "column": 43}, "end_point": {"row": 18, "column": 44}}, {"id": 31, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 18, "column": 45}, "end_point": {"row": 18, "column": 46}}, {"id": 32, "type": "ERROR", "text": "0) :", "parent": 27, "children": [33], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 51}}, {"id": 33, "type": "number_literal", "text": "0", "parent": 32, "children": [], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 48}}, {"id": 34, "type": "call_expression", "text": "re(r)", "parent": 27, "children": [35, 36], "start_point": {"row": 18, "column": 52}, "end_point": {"row": 18, "column": 57}}, {"id": 35, "type": "identifier", "text": "re", "parent": 34, "children": [], "start_point": {"row": 18, "column": 52}, "end_point": {"row": 18, "column": 54}}, {"id": 36, "type": "argument_list", "text": "(r)", "parent": 34, "children": [37], "start_point": {"row": 18, "column": 54}, "end_point": {"row": 18, "column": 57}}, {"id": 37, "type": "identifier", "text": "r", "parent": 36, "children": [], "start_point": {"row": 18, "column": 55}, "end_point": {"row": 18, "column": 56}}, {"id": 38, "type": "ERROR", "text": ", im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {}", "parent": 18, "children": [39, 57], "start_point": {"row": 18, "column": 57}, "end_point": {"row": 19, "column": 55}}, {"id": 39, "type": "ERROR", "text": "im(i) {};\n Complex(const Complex &c) : re(c.re),", "parent": 38, "children": [40, 45], "start_point": {"row": 18, "column": 59}, "end_point": {"row": 19, "column": 43}}, {"id": 40, "type": "function_declarator", "text": "im(i)", "parent": 39, "children": [41, 42], "start_point": {"row": 18, "column": 59}, "end_point": {"row": 18, "column": 64}}, {"id": 41, "type": "identifier", "text": "im", "parent": 40, "children": [], "start_point": {"row": 18, "column": 59}, "end_point": {"row": 18, "column": 61}}, {"id": 42, "type": "parameter_list", "text": "(i)", "parent": 40, "children": [43], "start_point": {"row": 18, "column": 61}, "end_point": {"row": 18, "column": 64}}, {"id": 43, "type": "parameter_declaration", "text": "i", "parent": 42, "children": [44], "start_point": {"row": 18, "column": 62}, "end_point": {"row": 18, "column": 63}}, {"id": 44, "type": "type_identifier", "text": "i", "parent": 43, "children": [], "start_point": {"row": 18, "column": 62}, "end_point": {"row": 18, "column": 63}}, {"id": 45, "type": "function_declarator", "text": "Complex(const Complex &c) : re(c.re)", "parent": 39, "children": [46, 47, 51], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 42}}, {"id": 46, "type": "identifier", "text": "Complex", "parent": 45, "children": [], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 19, "column": 11}}, {"id": 47, "type": "parameter_list", "text": "(const Complex &c)", "parent": 45, "children": [48], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 29}}, {"id": 48, "type": "parameter_declaration", "text": "const Complex &c", "parent": 47, "children": [49, 50], "start_point": {"row": 19, "column": 12}, "end_point": {"row": 19, "column": 28}}, {"id": 49, "type": "type_identifier", "text": "Complex", "parent": 48, "children": [], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 25}}, {"id": 50, "type": "identifier", "text": "c", "parent": 48, "children": [], "start_point": {"row": 19, "column": 27}, "end_point": {"row": 19, "column": 28}}, {"id": 51, "type": "call_expression", "text": "re(c.re)", "parent": 45, "children": [52, 53], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 42}}, {"id": 52, "type": "identifier", "text": "re", "parent": 51, "children": [], "start_point": {"row": 19, "column": 34}, "end_point": {"row": 19, "column": 36}}, {"id": 53, "type": "argument_list", "text": "(c.re)", "parent": 51, "children": [54, 56], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 42}}, {"id": 54, "type": "ERROR", "text": "c.", "parent": 53, "children": [55], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 39}}, {"id": 55, "type": "identifier", "text": "c", "parent": 54, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 38}}, {"id": 56, "type": "identifier", "text": "re", "parent": 53, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 41}}, {"id": 57, "type": "function_declarator", "text": "im(c.im)", "parent": 38, "children": [58, 59], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 52}}, {"id": 58, "type": "identifier", "text": "im", "parent": 57, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 46}}, {"id": 59, "type": "parameter_list", "text": "(c.im)", "parent": 57, "children": [60], "start_point": {"row": 19, "column": 46}, "end_point": {"row": 19, "column": 52}}, {"id": 60, "type": "parameter_declaration", "text": "c.im", "parent": 59, "children": [61, 62], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 51}}, {"id": 61, "type": "type_identifier", "text": "c", "parent": 60, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 48}}, {"id": 62, "type": "identifier", "text": "im", "parent": 60, "children": [], "start_point": {"row": 19, "column": 49}, "end_point": {"row": 19, "column": 51}}, {"id": 63, "type": "function_definition", "text": "void set(const float r, const float i ) { re = r; im = i; }", "parent": 13, "children": [64, 65], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 63}}, {"id": 64, "type": "primitive_type", "text": "void", "parent": 63, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 8}}, {"id": 65, "type": "function_declarator", "text": "set(const float r, const float i )", "parent": 63, "children": [66, 67], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 43}}, {"id": 66, "type": "identifier", "text": "set", "parent": 65, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 12}}, {"id": 67, "type": "parameter_list", "text": "(const float r, const float i )", "parent": 65, "children": [68, 71], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 43}}, {"id": 68, "type": "parameter_declaration", "text": "const float r", "parent": 67, "children": [69, 70], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 26}}, {"id": 69, "type": "primitive_type", "text": "float", "parent": 68, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 24}}, {"id": 70, "type": "identifier", "text": "r", "parent": 68, "children": [], "start_point": {"row": 21, "column": 25}, "end_point": {"row": 21, "column": 26}}, {"id": 71, "type": "parameter_declaration", "text": "const float i", "parent": 67, "children": [72, 73], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 41}}, {"id": 72, "type": "primitive_type", "text": "float", "parent": 71, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 39}}, {"id": 73, "type": "identifier", "text": "i", "parent": 71, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 41}}, {"id": 74, "type": "assignment_expression", "text": "re = r", "parent": 63, "children": [75, 76, 77], "start_point": {"row": 21, "column": 46}, "end_point": {"row": 21, "column": 52}}, {"id": 75, "type": "identifier", "text": "re", "parent": 74, "children": [], "start_point": {"row": 21, "column": 46}, "end_point": {"row": 21, "column": 48}}, {"id": 76, "type": "=", "text": "=", "parent": 74, "children": [], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 50}}, {"id": 77, "type": "identifier", "text": "r", "parent": 74, "children": [], "start_point": {"row": 21, "column": 51}, "end_point": {"row": 21, "column": 52}}, {"id": 78, "type": "assignment_expression", "text": "im = i", "parent": 63, "children": [79, 80, 81], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 60}}, {"id": 79, "type": "identifier", "text": "im", "parent": 78, "children": [], "start_point": {"row": 21, "column": 54}, "end_point": {"row": 21, "column": 56}}, {"id": 80, "type": "=", "text": "=", "parent": 78, "children": [], "start_point": {"row": 21, "column": 57}, "end_point": {"row": 21, "column": 58}}, {"id": 81, "type": "identifier", "text": "i", "parent": 78, "children": [], "start_point": {"row": 21, "column": 59}, "end_point": {"row": 21, "column": 60}}, {"id": 82, "type": "function_definition", "text": "void setReal(const float r) { re = r; }", "parent": 13, "children": [83, 84], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 44}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 8}}, {"id": 84, "type": "function_declarator", "text": "setReal(const float r)", "parent": 82, "children": [85, 86], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 31}}, {"id": 85, "type": "identifier", "text": "setReal", "parent": 84, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 16}}, {"id": 86, "type": "parameter_list", "text": "(const float r)", "parent": 84, "children": [87], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 31}}, {"id": 87, "type": "parameter_declaration", "text": "const float r", "parent": 86, "children": [88, 89], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 30}}, {"id": 88, "type": "primitive_type", "text": "float", "parent": 87, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 28}}, {"id": 89, "type": "identifier", "text": "r", "parent": 87, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 90, "type": "assignment_expression", "text": "re = r", "parent": 82, "children": [91, 92, 93], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 41}}, {"id": 91, "type": "identifier", "text": "re", "parent": 90, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 37}}, {"id": 92, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 39}}, {"id": 93, "type": "identifier", "text": "r", "parent": 90, "children": [], "start_point": {"row": 22, "column": 40}, "end_point": {"row": 22, "column": 41}}, {"id": 94, "type": "function_definition", "text": "void setImag(const float i ) { im = i; }", "parent": 13, "children": [95, 96], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 44}}, {"id": 95, "type": "primitive_type", "text": "void", "parent": 94, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 8}}, {"id": 96, "type": "function_declarator", "text": "setImag(const float i )", "parent": 94, "children": [97, 98], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 32}}, {"id": 97, "type": "identifier", "text": "setImag", "parent": 96, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 16}}, {"id": 98, "type": "parameter_list", "text": "(const float i )", "parent": 96, "children": [99], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 32}}, {"id": 99, "type": "parameter_declaration", "text": "const float i", "parent": 98, "children": [100, 101], "start_point": {"row": 23, "column": 17}, "end_point": {"row": 23, "column": 30}}, {"id": 100, "type": "primitive_type", "text": "float", "parent": 99, "children": [], "start_point": {"row": 23, "column": 23}, "end_point": {"row": 23, "column": 28}}, {"id": 101, "type": "identifier", "text": "i", "parent": 99, "children": [], "start_point": {"row": 23, "column": 29}, "end_point": {"row": 23, "column": 30}}, {"id": 102, "type": "assignment_expression", "text": "im = i", "parent": 94, "children": [103, 104, 105], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 41}}, {"id": 103, "type": "identifier", "text": "im", "parent": 102, "children": [], "start_point": {"row": 23, "column": 35}, "end_point": {"row": 23, "column": 37}}, {"id": 104, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 23, "column": 38}, "end_point": {"row": 23, "column": 39}}, {"id": 105, "type": "identifier", "text": "i", "parent": 102, "children": [], "start_point": {"row": 23, "column": 40}, "end_point": {"row": 23, "column": 41}}, {"id": 106, "type": "function_definition", "text": "float real() { return re; }", "parent": 13, "children": [107, 108], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 31}}, {"id": 107, "type": "primitive_type", "text": "float", "parent": 106, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 9}}, {"id": 108, "type": "function_declarator", "text": "real()", "parent": 106, "children": [109, 110], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 16}}, {"id": 109, "type": "identifier", "text": "real", "parent": 108, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 14}}, {"id": 110, "type": "parameter_list", "text": "()", "parent": 108, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 16}}, {"id": 111, "type": "return_statement", "text": "return re;", "parent": 106, "children": [112], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 29}}, {"id": 112, "type": "identifier", "text": "re", "parent": 111, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 28}}, {"id": 113, "type": "function_definition", "text": "float imag() { return im; }", "parent": 13, "children": [114, 115], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 31}}, {"id": 114, "type": "primitive_type", "text": "float", "parent": 113, "children": [], "start_point": {"row": 25, "column": 4}, "end_point": {"row": 25, "column": 9}}, {"id": 115, "type": "function_declarator", "text": "imag()", "parent": 113, "children": [116, 117], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 16}}, {"id": 116, "type": "identifier", "text": "imag", "parent": 115, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 14}}, {"id": 117, "type": "parameter_list", "text": "()", "parent": 115, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 16}}, {"id": 118, "type": "return_statement", "text": "return im;", "parent": 113, "children": [119], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 29}}, {"id": 119, "type": "identifier", "text": "im", "parent": 118, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 28}}, {"id": 120, "type": "ERROR", "text": "size_t printTo(Print& p) const", "parent": 13, "children": [121, 122], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 34}}, {"id": 121, "type": "primitive_type", "text": "size_t", "parent": 120, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 10}}, {"id": 122, "type": "function_declarator", "text": "printTo(Print& p) const", "parent": 120, "children": [123, 124], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 34}}, {"id": 123, "type": "identifier", "text": "printTo", "parent": 122, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 18}}, {"id": 124, "type": "parameter_list", "text": "(Print& p)", "parent": 122, "children": [125], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 28}}, {"id": 125, "type": "parameter_declaration", "text": "Print& p", "parent": 124, "children": [126, 127], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 27}}, {"id": 126, "type": "type_identifier", "text": "Print", "parent": 125, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 24}}, {"id": 127, "type": "identifier", "text": "p", "parent": 125, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 27}}, {"id": 128, "type": "declaration", "text": "void polar(const float modulus, const float phase);", "parent": 13, "children": [129, 130], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 55}}, {"id": 129, "type": "primitive_type", "text": "void", "parent": 128, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 8}}, {"id": 130, "type": "function_declarator", "text": "polar(const float modulus, const float phase)", "parent": 128, "children": [131, 132], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 54}}, {"id": 131, "type": "identifier", "text": "polar", "parent": 130, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 14}}, {"id": 132, "type": "parameter_list", "text": "(const float modulus, const float phase)", "parent": 130, "children": [133, 136], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 54}}, {"id": 133, "type": "parameter_declaration", "text": "const float modulus", "parent": 132, "children": [134, 135], "start_point": {"row": 29, "column": 15}, "end_point": {"row": 29, "column": 34}}, {"id": 134, "type": "primitive_type", "text": "float", "parent": 133, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 26}}, {"id": 135, "type": "identifier", "text": "modulus", "parent": 133, "children": [], "start_point": {"row": 29, "column": 27}, "end_point": {"row": 29, "column": 34}}, {"id": 136, "type": "parameter_declaration", "text": "const float phase", "parent": 132, "children": [137, 138], "start_point": {"row": 29, "column": 36}, "end_point": {"row": 29, "column": 53}}, {"id": 137, "type": "primitive_type", "text": "float", "parent": 136, "children": [], "start_point": {"row": 29, "column": 42}, "end_point": {"row": 29, "column": 47}}, {"id": 138, "type": "identifier", "text": "phase", "parent": 136, "children": [], "start_point": {"row": 29, "column": 48}, "end_point": {"row": 29, "column": 53}}, {"id": 139, "type": "function_definition", "text": "float phase() { return atan2(im, re); }", "parent": 13, "children": [140, 141], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 49}}, {"id": 140, "type": "primitive_type", "text": "float", "parent": 139, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 9}}, {"id": 141, "type": "function_declarator", "text": "phase()", "parent": 139, "children": [142, 143], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 17}}, {"id": 142, "type": "identifier", "text": "phase", "parent": 141, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 15}}, {"id": 143, "type": "parameter_list", "text": "()", "parent": 141, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 17}}, {"id": 144, "type": "return_statement", "text": "return atan2(im, re);", "parent": 139, "children": [145], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 47}}, {"id": 145, "type": "call_expression", "text": "atan2(im, re)", "parent": 144, "children": [146, 147], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 46}}, {"id": 146, "type": "identifier", "text": "atan2", "parent": 145, "children": [], "start_point": {"row": 30, "column": 33}, "end_point": {"row": 30, "column": 38}}, {"id": 147, "type": "argument_list", "text": "(im, re)", "parent": 145, "children": [148, 149], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 46}}, {"id": 148, "type": "identifier", "text": "im", "parent": 147, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 41}}, {"id": 149, "type": "identifier", "text": "re", "parent": 147, "children": [], "start_point": {"row": 30, "column": 43}, "end_point": {"row": 30, "column": 45}}, {"id": 150, "type": "function_definition", "text": "float modulus() { return hypot(re, im); }", "parent": 13, "children": [151, 152], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 49}}, {"id": 151, "type": "primitive_type", "text": "float", "parent": 150, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 9}}, {"id": 152, "type": "function_declarator", "text": "modulus()", "parent": 150, "children": [153, 154], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 19}}, {"id": 153, "type": "identifier", "text": "modulus", "parent": 152, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 17}}, {"id": 154, "type": "parameter_list", "text": "()", "parent": 152, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 19}}, {"id": 155, "type": "return_statement", "text": "return hypot(re, im);", "parent": 150, "children": [156], "start_point": {"row": 31, "column": 26}, "end_point": {"row": 31, "column": 47}}, {"id": 156, "type": "call_expression", "text": "hypot(re, im)", "parent": 155, "children": [157, 158], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 46}}, {"id": 157, "type": "identifier", "text": "hypot", "parent": 156, "children": [], "start_point": {"row": 31, "column": 33}, "end_point": {"row": 31, "column": 38}}, {"id": 158, "type": "argument_list", "text": "(re, im)", "parent": 156, "children": [159, 160], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 46}}, {"id": 159, "type": "identifier", "text": "re", "parent": 158, "children": [], "start_point": {"row": 31, "column": 39}, "end_point": {"row": 31, "column": 41}}, {"id": 160, "type": "identifier", "text": "im", "parent": 158, "children": [], "start_point": {"row": 31, "column": 43}, "end_point": {"row": 31, "column": 45}}, {"id": 161, "type": "function_definition", "text": "Complex conjugate() { return Complex(re, -im); }", "parent": 13, "children": [162, 163], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 52}}, {"id": 162, "type": "type_identifier", "text": "Complex", "parent": 161, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 11}}, {"id": 163, "type": "function_declarator", "text": "conjugate()", "parent": 161, "children": [164, 165], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 23}}, {"id": 164, "type": "identifier", "text": "conjugate", "parent": 163, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 21}}, {"id": 165, "type": "parameter_list", "text": "()", "parent": 163, "children": [], "start_point": {"row": 33, "column": 21}, "end_point": {"row": 33, "column": 23}}, {"id": 166, "type": "return_statement", "text": "return Complex(re, -im);", "parent": 161, "children": [167], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 50}}, {"id": 167, "type": "call_expression", "text": "Complex(re, -im)", "parent": 166, "children": [168, 169], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 49}}, {"id": 168, "type": "identifier", "text": "Complex", "parent": 167, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 40}}, {"id": 169, "type": "argument_list", "text": "(re, -im)", "parent": 167, "children": [170, 171], "start_point": {"row": 33, "column": 40}, "end_point": {"row": 33, "column": 49}}, {"id": 170, "type": "identifier", "text": "re", "parent": 169, "children": [], "start_point": {"row": 33, "column": 41}, "end_point": {"row": 33, "column": 43}}, {"id": 171, "type": "unary_expression", "text": "-im", "parent": 169, "children": [172, 173], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 48}}, {"id": 172, "type": "-", "text": "-", "parent": 171, "children": [], "start_point": {"row": 33, "column": 45}, "end_point": {"row": 33, "column": 46}}, {"id": 173, "type": "identifier", "text": "im", "parent": 171, "children": [], "start_point": {"row": 33, "column": 46}, "end_point": {"row": 33, "column": 48}}, {"id": 174, "type": "declaration", "text": "Complex reciprocal();", "parent": 13, "children": [175, 176], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 25}}, {"id": 175, "type": "type_identifier", "text": "Complex", "parent": 174, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 11}}, {"id": 176, "type": "function_declarator", "text": "reciprocal()", "parent": 174, "children": [177, 178], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 24}}, {"id": 177, "type": "identifier", "text": "reciprocal", "parent": 176, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 22}}, {"id": 178, "type": "parameter_list", "text": "()", "parent": 176, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 24}}, {"id": 179, "type": "declaration", "text": "bool operator == (const Complex&);", "parent": 13, "children": [180, 181], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 38}}, {"id": 180, "type": "primitive_type", "text": "bool", "parent": 179, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 181, "type": "function_declarator", "text": "operator == (const Complex&)", "parent": 179, "children": [182, 183, 185], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 37}}, {"id": 182, "type": "identifier", "text": "operator", "parent": 181, "children": [], "start_point": {"row": 36, "column": 9}, "end_point": {"row": 36, "column": 17}}, {"id": 183, "type": "ERROR", "text": "==", "parent": 181, "children": [184], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 20}}, {"id": 184, "type": "==", "text": "==", "parent": 183, "children": [], "start_point": {"row": 36, "column": 18}, "end_point": {"row": 36, "column": 20}}, {"id": 185, "type": "parameter_list", "text": "(const Complex&)", "parent": 181, "children": [186], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 37}}, {"id": 186, "type": "parameter_declaration", "text": "const Complex", "parent": 185, "children": [187], "start_point": {"row": 36, "column": 22}, "end_point": {"row": 36, "column": 35}}, {"id": 187, "type": "type_identifier", "text": "Complex", "parent": 186, "children": [], "start_point": {"row": 36, "column": 28}, "end_point": {"row": 36, "column": 35}}, {"id": 188, "type": "declaration", "text": "bool operator != (const Complex&);", "parent": 13, "children": [189, 190], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 38}}, {"id": 189, "type": "primitive_type", "text": "bool", "parent": 188, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 8}}, {"id": 190, "type": "function_declarator", "text": "operator != (const Complex&)", "parent": 188, "children": [191, 192, 194], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 37}}, {"id": 191, "type": "identifier", "text": "operator", "parent": 190, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 17}}, {"id": 192, "type": "ERROR", "text": "!=", "parent": 190, "children": [193], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 20}}, {"id": 193, "type": "!=", "text": "!=", "parent": 192, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 20}}, {"id": 194, "type": "parameter_list", "text": "(const Complex&)", "parent": 190, "children": [195], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 37}}, {"id": 195, "type": "parameter_declaration", "text": "const Complex", "parent": 194, "children": [196], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 35}}, {"id": 196, "type": "type_identifier", "text": "Complex", "parent": 195, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 35}}, {"id": 197, "type": "declaration", "text": "Complex operator - ();", "parent": 13, "children": [198, 199], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 26}}, {"id": 198, "type": "type_identifier", "text": "Complex", "parent": 197, "children": [], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 39, "column": 11}}, {"id": 199, "type": "function_declarator", "text": "operator - ()", "parent": 197, "children": [200, 201, 203], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 25}}, {"id": 200, "type": "identifier", "text": "operator", "parent": 199, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 20}}, {"id": 201, "type": "ERROR", "text": "-", "parent": 199, "children": [202], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 202, "type": "-", "text": "-", "parent": 201, "children": [], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 22}}, {"id": 203, "type": "parameter_list", "text": "()", "parent": 199, "children": [], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 25}}, {"id": 204, "type": "declaration", "text": "Complex operator + (const Complex&);", "parent": 13, "children": [205, 206], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 40}}, {"id": 205, "type": "type_identifier", "text": "Complex", "parent": 204, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 11}}, {"id": 206, "type": "function_declarator", "text": "operator + (const Complex&)", "parent": 204, "children": [207, 208, 210], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 39}}, {"id": 207, "type": "identifier", "text": "operator", "parent": 206, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 20}}, {"id": 208, "type": "ERROR", "text": "+", "parent": 206, "children": [209], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 22}}, {"id": 209, "type": "+", "text": "+", "parent": 208, "children": [], "start_point": {"row": 41, "column": 21}, "end_point": {"row": 41, "column": 22}}, {"id": 210, "type": "parameter_list", "text": "(const Complex&)", "parent": 206, "children": [211], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 39}}, {"id": 211, "type": "parameter_declaration", "text": "const Complex", "parent": 210, "children": [212], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 37}}, {"id": 212, "type": "type_identifier", "text": "Complex", "parent": 211, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 37}}, {"id": 213, "type": "declaration", "text": "Complex operator - (const Complex&);", "parent": 13, "children": [214, 215], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 40}}, {"id": 214, "type": "type_identifier", "text": "Complex", "parent": 213, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 11}}, {"id": 215, "type": "function_declarator", "text": "operator - (const Complex&)", "parent": 213, "children": [216, 217, 219], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 39}}, {"id": 216, "type": "identifier", "text": "operator", "parent": 215, "children": [], "start_point": {"row": 42, "column": 12}, "end_point": {"row": 42, "column": 20}}, {"id": 217, "type": "ERROR", "text": "-", "parent": 215, "children": [218], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 22}}, {"id": 218, "type": "-", "text": "-", "parent": 217, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 22}}, {"id": 219, "type": "parameter_list", "text": "(const Complex&)", "parent": 215, "children": [220], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 39}}, {"id": 220, "type": "parameter_declaration", "text": "const Complex", "parent": 219, "children": [221], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 37}}, {"id": 221, "type": "type_identifier", "text": "Complex", "parent": 220, "children": [], "start_point": {"row": 42, "column": 30}, "end_point": {"row": 42, "column": 37}}, {"id": 222, "type": "declaration", "text": "Complex operator * (const Complex&);", "parent": 13, "children": [223, 224], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 40}}, {"id": 223, "type": "type_identifier", "text": "Complex", "parent": 222, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 11}}, {"id": 224, "type": "function_declarator", "text": "operator * (const Complex&)", "parent": 222, "children": [225, 226, 228], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 39}}, {"id": 225, "type": "identifier", "text": "operator", "parent": 224, "children": [], "start_point": {"row": 43, "column": 12}, "end_point": {"row": 43, "column": 20}}, {"id": 226, "type": "ERROR", "text": "*", "parent": 224, "children": [227], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 22}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 22}}, {"id": 228, "type": "parameter_list", "text": "(const Complex&)", "parent": 224, "children": [229], "start_point": {"row": 43, "column": 23}, "end_point": {"row": 43, "column": 39}}, {"id": 229, "type": "parameter_declaration", "text": "const Complex", "parent": 228, "children": [230], "start_point": {"row": 43, "column": 24}, "end_point": {"row": 43, "column": 37}}, {"id": 230, "type": "type_identifier", "text": "Complex", "parent": 229, "children": [], "start_point": {"row": 43, "column": 30}, "end_point": {"row": 43, "column": 37}}, {"id": 231, "type": "declaration", "text": "Complex operator / (const Complex&);", "parent": 13, "children": [232, 233], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 40}}, {"id": 232, "type": "type_identifier", "text": "Complex", "parent": 231, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 11}}, {"id": 233, "type": "function_declarator", "text": "operator / (const Complex&)", "parent": 231, "children": [234, 235, 237], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 39}}, {"id": 234, "type": "identifier", "text": "operator", "parent": 233, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 20}}, {"id": 235, "type": "ERROR", "text": "/", "parent": 233, "children": [236], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 236, "type": "/", "text": "/", "parent": 235, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 22}}, {"id": 237, "type": "parameter_list", "text": "(const Complex&)", "parent": 233, "children": [238], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 39}}, {"id": 238, "type": "parameter_declaration", "text": "const Complex", "parent": 237, "children": [239], "start_point": {"row": 44, "column": 24}, "end_point": {"row": 44, "column": 37}}, {"id": 239, "type": "type_identifier", "text": "Complex", "parent": 238, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 37}}, {"id": 240, "type": "binary_expression", "text": "Complex& operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)", "parent": 13, "children": [241, 242], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 49, "column": 41}}, {"id": 241, "type": "identifier", "text": "Complex", "parent": 240, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 11}}, {"id": 242, "type": "assignment_expression", "text": "operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)", "parent": 240, "children": [243, 244, 245], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 49, "column": 41}}, {"id": 243, "type": "identifier", "text": "operator", "parent": 242, "children": [], "start_point": {"row": 46, "column": 13}, "end_point": {"row": 46, "column": 21}}, {"id": 244, "type": "+=", "text": "+=", "parent": 242, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 24}}, {"id": 245, "type": "binary_expression", "text": "(const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)", "parent": 242, "children": [246, 250], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 49, "column": 41}}, {"id": 246, "type": "cast_expression", "text": "(const Complex&);\n Complex", "parent": 245, "children": [247, 249], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 47, "column": 11}}, {"id": 247, "type": "type_descriptor", "text": "const Complex", "parent": 246, "children": [248], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 39}}, {"id": 248, "type": "type_identifier", "text": "Complex", "parent": 247, "children": [], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 39}}, {"id": 249, "type": "identifier", "text": "Complex", "parent": 246, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 11}}, {"id": 250, "type": "assignment_expression", "text": "operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)", "parent": 245, "children": [251, 252, 253], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 49, "column": 41}}, {"id": 251, "type": "identifier", "text": "operator", "parent": 250, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 21}}, {"id": 252, "type": "-=", "text": "-=", "parent": 250, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 24}}, {"id": 253, "type": "binary_expression", "text": "(const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&)", "parent": 250, "children": [254, 258], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 49, "column": 41}}, {"id": 254, "type": "cast_expression", "text": "(const Complex&);\n Complex", "parent": 253, "children": [255, 257], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 48, "column": 11}}, {"id": 255, "type": "type_descriptor", "text": "const Complex", "parent": 254, "children": [256], "start_point": {"row": 47, "column": 26}, "end_point": {"row": 47, "column": 39}}, {"id": 256, "type": "type_identifier", "text": "Complex", "parent": 255, "children": [], "start_point": {"row": 47, "column": 32}, "end_point": {"row": 47, "column": 39}}, {"id": 257, "type": "identifier", "text": "Complex", "parent": 254, "children": [], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 11}}, {"id": 258, "type": "assignment_expression", "text": "operator *= (const Complex&);\n Complex& operator /= (const Complex&)", "parent": 253, "children": [259, 260, 261], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 49, "column": 41}}, {"id": 259, "type": "identifier", "text": "operator", "parent": 258, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 21}}, {"id": 260, "type": "*=", "text": "*=", "parent": 258, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 24}}, {"id": 261, "type": "binary_expression", "text": "(const Complex&);\n Complex& operator /= (const Complex&)", "parent": 258, "children": [262, 266], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 49, "column": 41}}, {"id": 262, "type": "cast_expression", "text": "(const Complex&);\n Complex", "parent": 261, "children": [263, 265], "start_point": {"row": 48, "column": 25}, "end_point": {"row": 49, "column": 11}}, {"id": 263, "type": "type_descriptor", "text": "const Complex", "parent": 262, "children": [264], "start_point": {"row": 48, "column": 26}, "end_point": {"row": 48, "column": 39}}, {"id": 264, "type": "type_identifier", "text": "Complex", "parent": 263, "children": [], "start_point": {"row": 48, "column": 32}, "end_point": {"row": 48, "column": 39}}, {"id": 265, "type": "identifier", "text": "Complex", "parent": 262, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 11}}, {"id": 266, "type": "assignment_expression", "text": "operator /= (const Complex&)", "parent": 261, "children": [267, 268, 269], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 41}}, {"id": 267, "type": "identifier", "text": "operator", "parent": 266, "children": [], "start_point": {"row": 49, "column": 13}, "end_point": {"row": 49, "column": 21}}, {"id": 268, "type": "/=", "text": "/=", "parent": 266, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 24}}, {"id": 269, "type": "cast_expression", "text": "(const Complex&)", "parent": 266, "children": [270, 272], "start_point": {"row": 49, "column": 25}, "end_point": {"row": 49, "column": 41}}, {"id": 270, "type": "type_descriptor", "text": "const Complex", "parent": 269, "children": [271], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 39}}, {"id": 271, "type": "type_identifier", "text": "Complex", "parent": 270, "children": [], "start_point": {"row": 49, "column": 32}, "end_point": {"row": 49, "column": 39}}, {"id": 272, "type": "identifier", "text": "", "parent": 269, "children": [], "start_point": {"row": 49, "column": 41}, "end_point": {"row": 49, "column": 41}}, {"id": 273, "type": "declaration", "text": "Complex c_sqrt();", "parent": 13, "children": [274, 275], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 21}}, {"id": 274, "type": "type_identifier", "text": "Complex", "parent": 273, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 11}}, {"id": 275, "type": "function_declarator", "text": "c_sqrt()", "parent": 273, "children": [276, 277], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 20}}, {"id": 276, "type": "identifier", "text": "c_sqrt", "parent": 275, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 18}}, {"id": 277, "type": "parameter_list", "text": "()", "parent": 275, "children": [], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 20}}, {"id": 278, "type": "declaration", "text": "Complex c_sqr();", "parent": 13, "children": [279, 280], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 20}}, {"id": 279, "type": "type_identifier", "text": "Complex", "parent": 278, "children": [], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 11}}, {"id": 280, "type": "function_declarator", "text": "c_sqr()", "parent": 278, "children": [281, 282], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 19}}, {"id": 281, "type": "identifier", "text": "c_sqr", "parent": 280, "children": [], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 17}}, {"id": 282, "type": "parameter_list", "text": "()", "parent": 280, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 19}}, {"id": 283, "type": "declaration", "text": "Complex c_exp();", "parent": 13, "children": [284, 285], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 20}}, {"id": 284, "type": "type_identifier", "text": "Complex", "parent": 283, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 11}}, {"id": 285, "type": "function_declarator", "text": "c_exp()", "parent": 283, "children": [286, 287], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 19}}, {"id": 286, "type": "identifier", "text": "c_exp", "parent": 285, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 17}}, {"id": 287, "type": "parameter_list", "text": "()", "parent": 285, "children": [], "start_point": {"row": 53, "column": 17}, "end_point": {"row": 53, "column": 19}}, {"id": 288, "type": "declaration", "text": "Complex c_log();", "parent": 13, "children": [289, 290], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 20}}, {"id": 289, "type": "type_identifier", "text": "Complex", "parent": 288, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 11}}, {"id": 290, "type": "function_declarator", "text": "c_log()", "parent": 288, "children": [291, 292], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 19}}, {"id": 291, "type": "identifier", "text": "c_log", "parent": 290, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 17}}, {"id": 292, "type": "parameter_list", "text": "()", "parent": 290, "children": [], "start_point": {"row": 54, "column": 17}, "end_point": {"row": 54, "column": 19}}, {"id": 293, "type": "declaration", "text": "Complex c_log10();", "parent": 13, "children": [294, 295], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 22}}, {"id": 294, "type": "type_identifier", "text": "Complex", "parent": 293, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 11}}, {"id": 295, "type": "function_declarator", "text": "c_log10()", "parent": 293, "children": [296, 297], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 21}}, {"id": 296, "type": "identifier", "text": "c_log10", "parent": 295, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 19}}, {"id": 297, "type": "parameter_list", "text": "()", "parent": 295, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 21}}, {"id": 298, "type": "declaration", "text": "Complex c_pow(const Complex &);", "parent": 13, "children": [299, 300], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 35}}, {"id": 299, "type": "type_identifier", "text": "Complex", "parent": 298, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 11}}, {"id": 300, "type": "function_declarator", "text": "c_pow(const Complex &)", "parent": 298, "children": [301, 302], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 34}}, {"id": 301, "type": "identifier", "text": "c_pow", "parent": 300, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 17}}, {"id": 302, "type": "parameter_list", "text": "(const Complex &)", "parent": 300, "children": [303], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 34}}, {"id": 303, "type": "parameter_declaration", "text": "const Complex", "parent": 302, "children": [304], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 31}}, {"id": 304, "type": "type_identifier", "text": "Complex", "parent": 303, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 31}}, {"id": 305, "type": "declaration", "text": "Complex c_logn(const Complex &);", "parent": 13, "children": [306, 307], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 36}}, {"id": 306, "type": "type_identifier", "text": "Complex", "parent": 305, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 11}}, {"id": 307, "type": "function_declarator", "text": "c_logn(const Complex &)", "parent": 305, "children": [308, 309], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 35}}, {"id": 308, "type": "identifier", "text": "c_logn", "parent": 307, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 18}}, {"id": 309, "type": "parameter_list", "text": "(const Complex &)", "parent": 307, "children": [310], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 35}}, {"id": 310, "type": "parameter_declaration", "text": "const Complex", "parent": 309, "children": [311], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 32}}, {"id": 311, "type": "type_identifier", "text": "Complex", "parent": 310, "children": [], "start_point": {"row": 57, "column": 25}, "end_point": {"row": 57, "column": 32}}, {"id": 312, "type": "declaration", "text": "Complex c_sin();", "parent": 13, "children": [313, 314], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 20}}, {"id": 313, "type": "type_identifier", "text": "Complex", "parent": 312, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 11}}, {"id": 314, "type": "function_declarator", "text": "c_sin()", "parent": 312, "children": [315, 316], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 19}}, {"id": 315, "type": "identifier", "text": "c_sin", "parent": 314, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 17}}, {"id": 316, "type": "parameter_list", "text": "()", "parent": 314, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 19}}, {"id": 317, "type": "declaration", "text": "Complex c_cos();", "parent": 13, "children": [318, 319], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 20}}, {"id": 318, "type": "type_identifier", "text": "Complex", "parent": 317, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 11}}, {"id": 319, "type": "function_declarator", "text": "c_cos()", "parent": 317, "children": [320, 321], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 19}}, {"id": 320, "type": "identifier", "text": "c_cos", "parent": 319, "children": [], "start_point": {"row": 60, "column": 12}, "end_point": {"row": 60, "column": 17}}, {"id": 321, "type": "parameter_list", "text": "()", "parent": 319, "children": [], "start_point": {"row": 60, "column": 17}, "end_point": {"row": 60, "column": 19}}, {"id": 322, "type": "declaration", "text": "Complex c_tan();", "parent": 13, "children": [323, 324], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 20}}, {"id": 323, "type": "type_identifier", "text": "Complex", "parent": 322, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 11}}, {"id": 324, "type": "function_declarator", "text": "c_tan()", "parent": 322, "children": [325, 326], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 19}}, {"id": 325, "type": "identifier", "text": "c_tan", "parent": 324, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 17}}, {"id": 326, "type": "parameter_list", "text": "()", "parent": 324, "children": [], "start_point": {"row": 61, "column": 17}, "end_point": {"row": 61, "column": 19}}, {"id": 327, "type": "declaration", "text": "Complex c_asin();", "parent": 13, "children": [328, 329], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 21}}, {"id": 328, "type": "type_identifier", "text": "Complex", "parent": 327, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 11}}, {"id": 329, "type": "function_declarator", "text": "c_asin()", "parent": 327, "children": [330, 331], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 20}}, {"id": 330, "type": "identifier", "text": "c_asin", "parent": 329, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 18}}, {"id": 331, "type": "parameter_list", "text": "()", "parent": 329, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 20}}, {"id": 332, "type": "declaration", "text": "Complex c_acos();", "parent": 13, "children": [333, 334], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 21}}, {"id": 333, "type": "type_identifier", "text": "Complex", "parent": 332, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 11}}, {"id": 334, "type": "function_declarator", "text": "c_acos()", "parent": 332, "children": [335, 336], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 20}}, {"id": 335, "type": "identifier", "text": "c_acos", "parent": 334, "children": [], "start_point": {"row": 63, "column": 12}, "end_point": {"row": 63, "column": 18}}, {"id": 336, "type": "parameter_list", "text": "()", "parent": 334, "children": [], "start_point": {"row": 63, "column": 18}, "end_point": {"row": 63, "column": 20}}, {"id": 337, "type": "declaration", "text": "Complex c_atan();", "parent": 13, "children": [338, 339], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 21}}, {"id": 338, "type": "type_identifier", "text": "Complex", "parent": 337, "children": [], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 11}}, {"id": 339, "type": "function_declarator", "text": "c_atan()", "parent": 337, "children": [340, 341], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 20}}, {"id": 340, "type": "identifier", "text": "c_atan", "parent": 339, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 18}}, {"id": 341, "type": "parameter_list", "text": "()", "parent": 339, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 20}}, {"id": 342, "type": "declaration", "text": "Complex c_csc();", "parent": 13, "children": [343, 344], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 20}}, {"id": 343, "type": "type_identifier", "text": "Complex", "parent": 342, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 11}}, {"id": 344, "type": "function_declarator", "text": "c_csc()", "parent": 342, "children": [345, 346], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 19}}, {"id": 345, "type": "identifier", "text": "c_csc", "parent": 344, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 17}}, {"id": 346, "type": "parameter_list", "text": "()", "parent": 344, "children": [], "start_point": {"row": 66, "column": 17}, "end_point": {"row": 66, "column": 19}}, {"id": 347, "type": "declaration", "text": "Complex c_sec();", "parent": 13, "children": [348, 349], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 20}}, {"id": 348, "type": "type_identifier", "text": "Complex", "parent": 347, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 11}}, {"id": 349, "type": "function_declarator", "text": "c_sec()", "parent": 347, "children": [350, 351], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 19}}, {"id": 350, "type": "identifier", "text": "c_sec", "parent": 349, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 17}}, {"id": 351, "type": "parameter_list", "text": "()", "parent": 349, "children": [], "start_point": {"row": 67, "column": 17}, "end_point": {"row": 67, "column": 19}}, {"id": 352, "type": "declaration", "text": "Complex c_cot();", "parent": 13, "children": [353, 354], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 20}}, {"id": 353, "type": "type_identifier", "text": "Complex", "parent": 352, "children": [], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 11}}, {"id": 354, "type": "function_declarator", "text": "c_cot()", "parent": 352, "children": [355, 356], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 19}}, {"id": 355, "type": "identifier", "text": "c_cot", "parent": 354, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 17}}, {"id": 356, "type": "parameter_list", "text": "()", "parent": 354, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 19}}, {"id": 357, "type": "declaration", "text": "Complex c_acsc();", "parent": 13, "children": [358, 359], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 21}}, {"id": 358, "type": "type_identifier", "text": "Complex", "parent": 357, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 11}}, {"id": 359, "type": "function_declarator", "text": "c_acsc()", "parent": 357, "children": [360, 361], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 20}}, {"id": 360, "type": "identifier", "text": "c_acsc", "parent": 359, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 18}}, {"id": 361, "type": "parameter_list", "text": "()", "parent": 359, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 20}}, {"id": 362, "type": "declaration", "text": "Complex c_asec();", "parent": 13, "children": [363, 364], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 21}}, {"id": 363, "type": "type_identifier", "text": "Complex", "parent": 362, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 11}}, {"id": 364, "type": "function_declarator", "text": "c_asec()", "parent": 362, "children": [365, 366], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 20}}, {"id": 365, "type": "identifier", "text": "c_asec", "parent": 364, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 18}}, {"id": 366, "type": "parameter_list", "text": "()", "parent": 364, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 20}}, {"id": 367, "type": "declaration", "text": "Complex c_acot();", "parent": 13, "children": [368, 369], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 21}}, {"id": 368, "type": "type_identifier", "text": "Complex", "parent": 367, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 11}}, {"id": 369, "type": "function_declarator", "text": "c_acot()", "parent": 367, "children": [370, 371], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 20}}, {"id": 370, "type": "identifier", "text": "c_acot", "parent": 369, "children": [], "start_point": {"row": 71, "column": 12}, "end_point": {"row": 71, "column": 18}}, {"id": 371, "type": "parameter_list", "text": "()", "parent": 369, "children": [], "start_point": {"row": 71, "column": 18}, "end_point": {"row": 71, "column": 20}}, {"id": 372, "type": "declaration", "text": "Complex c_sinh();", "parent": 13, "children": [373, 374], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 21}}, {"id": 373, "type": "type_identifier", "text": "Complex", "parent": 372, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 11}}, {"id": 374, "type": "function_declarator", "text": "c_sinh()", "parent": 372, "children": [375, 376], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 20}}, {"id": 375, "type": "identifier", "text": "c_sinh", "parent": 374, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 18}}, {"id": 376, "type": "parameter_list", "text": "()", "parent": 374, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 20}}, {"id": 377, "type": "declaration", "text": "Complex c_cosh();", "parent": 13, "children": [378, 379], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 21}}, {"id": 378, "type": "type_identifier", "text": "Complex", "parent": 377, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 11}}, {"id": 379, "type": "function_declarator", "text": "c_cosh()", "parent": 377, "children": [380, 381], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 20}}, {"id": 380, "type": "identifier", "text": "c_cosh", "parent": 379, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 18}}, {"id": 381, "type": "parameter_list", "text": "()", "parent": 379, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 20}}, {"id": 382, "type": "declaration", "text": "Complex c_tanh();", "parent": 13, "children": [383, 384], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 21}}, {"id": 383, "type": "type_identifier", "text": "Complex", "parent": 382, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 11}}, {"id": 384, "type": "function_declarator", "text": "c_tanh()", "parent": 382, "children": [385, 386], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 20}}, {"id": 385, "type": "identifier", "text": "c_tanh", "parent": 384, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 18}}, {"id": 386, "type": "parameter_list", "text": "()", "parent": 384, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 20}}, {"id": 387, "type": "declaration", "text": "Complex c_asinh();", "parent": 13, "children": [388, 389], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 22}}, {"id": 388, "type": "type_identifier", "text": "Complex", "parent": 387, "children": [], "start_point": {"row": 76, "column": 4}, "end_point": {"row": 76, "column": 11}}, {"id": 389, "type": "function_declarator", "text": "c_asinh()", "parent": 387, "children": [390, 391], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 21}}, {"id": 390, "type": "identifier", "text": "c_asinh", "parent": 389, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 19}}, {"id": 391, "type": "parameter_list", "text": "()", "parent": 389, "children": [], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 21}}, {"id": 392, "type": "declaration", "text": "Complex c_acosh();", "parent": 13, "children": [393, 394], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 22}}, {"id": 393, "type": "type_identifier", "text": "Complex", "parent": 392, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 11}}, {"id": 394, "type": "function_declarator", "text": "c_acosh()", "parent": 392, "children": [395, 396], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 21}}, {"id": 395, "type": "identifier", "text": "c_acosh", "parent": 394, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 19}}, {"id": 396, "type": "parameter_list", "text": "()", "parent": 394, "children": [], "start_point": {"row": 77, "column": 19}, "end_point": {"row": 77, "column": 21}}, {"id": 397, "type": "declaration", "text": "Complex c_atanh();", "parent": 13, "children": [398, 399], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 22}}, {"id": 398, "type": "type_identifier", "text": "Complex", "parent": 397, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 11}}, {"id": 399, "type": "function_declarator", "text": "c_atanh()", "parent": 397, "children": [400, 401], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 21}}, {"id": 400, "type": "identifier", "text": "c_atanh", "parent": 399, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 19}}, {"id": 401, "type": "parameter_list", "text": "()", "parent": 399, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 21}}, {"id": 402, "type": "declaration", "text": "Complex c_csch();", "parent": 13, "children": [403, 404], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 21}}, {"id": 403, "type": "type_identifier", "text": "Complex", "parent": 402, "children": [], "start_point": {"row": 80, "column": 4}, "end_point": {"row": 80, "column": 11}}, {"id": 404, "type": "function_declarator", "text": "c_csch()", "parent": 402, "children": [405, 406], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 20}}, {"id": 405, "type": "identifier", "text": "c_csch", "parent": 404, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 18}}, {"id": 406, "type": "parameter_list", "text": "()", "parent": 404, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 20}}, {"id": 407, "type": "declaration", "text": "Complex c_sech();", "parent": 13, "children": [408, 409], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 21}}, {"id": 408, "type": "type_identifier", "text": "Complex", "parent": 407, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 11}}, {"id": 409, "type": "function_declarator", "text": "c_sech()", "parent": 407, "children": [410, 411], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 20}}, {"id": 410, "type": "identifier", "text": "c_sech", "parent": 409, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 18}}, {"id": 411, "type": "parameter_list", "text": "()", "parent": 409, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 20}}, {"id": 412, "type": "declaration", "text": "Complex c_coth();", "parent": 13, "children": [413, 414], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 21}}, {"id": 413, "type": "type_identifier", "text": "Complex", "parent": 412, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 11}}, {"id": 414, "type": "function_declarator", "text": "c_coth()", "parent": 412, "children": [415, 416], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 20}}, {"id": 415, "type": "identifier", "text": "c_coth", "parent": 414, "children": [], "start_point": {"row": 82, "column": 12}, "end_point": {"row": 82, "column": 18}}, {"id": 416, "type": "parameter_list", "text": "()", "parent": 414, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 20}}, {"id": 417, "type": "declaration", "text": "Complex c_acsch();", "parent": 13, "children": [418, 419], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 22}}, {"id": 418, "type": "type_identifier", "text": "Complex", "parent": 417, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 11}}, {"id": 419, "type": "function_declarator", "text": "c_acsch()", "parent": 417, "children": [420, 421], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 21}}, {"id": 420, "type": "identifier", "text": "c_acsch", "parent": 419, "children": [], "start_point": {"row": 83, "column": 12}, "end_point": {"row": 83, "column": 19}}, {"id": 421, "type": "parameter_list", "text": "()", "parent": 419, "children": [], "start_point": {"row": 83, "column": 19}, "end_point": {"row": 83, "column": 21}}, {"id": 422, "type": "declaration", "text": "Complex c_asech();", "parent": 13, "children": [423, 424], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 22}}, {"id": 423, "type": "type_identifier", "text": "Complex", "parent": 422, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 11}}, {"id": 424, "type": "function_declarator", "text": "c_asech()", "parent": 422, "children": [425, 426], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 21}}, {"id": 425, "type": "identifier", "text": "c_asech", "parent": 424, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 19}}, {"id": 426, "type": "parameter_list", "text": "()", "parent": 424, "children": [], "start_point": {"row": 84, "column": 19}, "end_point": {"row": 84, "column": 21}}, {"id": 427, "type": "declaration", "text": "Complex c_acoth();", "parent": 13, "children": [428, 429], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 22}}, {"id": 428, "type": "type_identifier", "text": "Complex", "parent": 427, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 11}}, {"id": 429, "type": "function_declarator", "text": "c_acoth()", "parent": 427, "children": [430, 431], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 21}}, {"id": 430, "type": "identifier", "text": "c_acoth", "parent": 429, "children": [], "start_point": {"row": 85, "column": 12}, "end_point": {"row": 85, "column": 19}}, {"id": 431, "type": "parameter_list", "text": "()", "parent": 429, "children": [], "start_point": {"row": 85, "column": 19}, "end_point": {"row": 85, "column": 21}}, {"id": 432, "type": "labeled_statement", "text": "protected:\n float re;", "parent": 13, "children": [433], "start_point": {"row": 87, "column": 0}, "end_point": {"row": 88, "column": 13}}, {"id": 433, "type": "declaration", "text": "float re;", "parent": 432, "children": [434, 435], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 13}}, {"id": 434, "type": "primitive_type", "text": "float", "parent": 433, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 9}}, {"id": 435, "type": "identifier", "text": "re", "parent": 433, "children": [], "start_point": {"row": 88, "column": 10}, "end_point": {"row": 88, "column": 12}}, {"id": 436, "type": "declaration", "text": "float im;", "parent": 13, "children": [437, 438], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 13}}, {"id": 437, "type": "primitive_type", "text": "float", "parent": 436, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 9}}, {"id": 438, "type": "identifier", "text": "im", "parent": 436, "children": [], "start_point": {"row": 89, "column": 10}, "end_point": {"row": 89, "column": 12}}, {"id": 439, "type": "declaration", "text": "Complex gonioHelper1(const byte);", "parent": 13, "children": [440, 441], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 37}}, {"id": 440, "type": "type_identifier", "text": "Complex", "parent": 439, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 11}}, {"id": 441, "type": "function_declarator", "text": "gonioHelper1(const byte)", "parent": 439, "children": [442, 443], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 36}}, {"id": 442, "type": "identifier", "text": "gonioHelper1", "parent": 441, "children": [], "start_point": {"row": 91, "column": 12}, "end_point": {"row": 91, "column": 24}}, {"id": 443, "type": "parameter_list", "text": "(const byte)", "parent": 441, "children": [444], "start_point": {"row": 91, "column": 24}, "end_point": {"row": 91, "column": 36}}, {"id": 444, "type": "parameter_declaration", "text": "const byte", "parent": 443, "children": [445], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 35}}, {"id": 445, "type": "type_identifier", "text": "byte", "parent": 444, "children": [], "start_point": {"row": 91, "column": 31}, "end_point": {"row": 91, "column": 35}}, {"id": 446, "type": "declaration", "text": "Complex gonioHelper2(const byte);", "parent": 13, "children": [447, 448], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 37}}, {"id": 447, "type": "type_identifier", "text": "Complex", "parent": 446, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 11}}, {"id": 448, "type": "function_declarator", "text": "gonioHelper2(const byte)", "parent": 446, "children": [449, 450], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 36}}, {"id": 449, "type": "identifier", "text": "gonioHelper2", "parent": 448, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 24}}, {"id": 450, "type": "parameter_list", "text": "(const byte)", "parent": 448, "children": [451], "start_point": {"row": 92, "column": 24}, "end_point": {"row": 92, "column": 36}}, {"id": 451, "type": "parameter_declaration", "text": "const byte", "parent": 450, "children": [452], "start_point": {"row": 92, "column": 25}, "end_point": {"row": 92, "column": 35}}, {"id": 452, "type": "type_identifier", "text": "byte", "parent": 451, "children": [], "start_point": {"row": 92, "column": 31}, "end_point": {"row": 92, "column": 35}}, {"id": 453, "type": "declaration", "text": "static Complex one(1, 0);", "parent": null, "children": [454, 455], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 25}}, {"id": 454, "type": "type_identifier", "text": "Complex", "parent": 453, "children": [], "start_point": {"row": 95, "column": 7}, "end_point": {"row": 95, "column": 14}}, {"id": 455, "type": "function_declarator", "text": "one(1, 0)", "parent": 453, "children": [456, 457], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 24}}, {"id": 456, "type": "identifier", "text": "one", "parent": 455, "children": [], "start_point": {"row": 95, "column": 15}, "end_point": {"row": 95, "column": 18}}, {"id": 457, "type": "parameter_list", "text": "(1, 0)", "parent": 455, "children": [458], "start_point": {"row": 95, "column": 18}, "end_point": {"row": 95, "column": 24}}, {"id": 458, "type": "ERROR", "text": "1, 0", "parent": 457, "children": [459, 460], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 23}}, {"id": 459, "type": "number_literal", "text": "1", "parent": 458, "children": [], "start_point": {"row": 95, "column": 19}, "end_point": {"row": 95, "column": 20}}, {"id": 460, "type": "number_literal", "text": "0", "parent": 458, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 23}}]}, "node_categories": {"declarations": {"functions": [13, 40, 45, 57, 63, 65, 82, 84, 94, 96, 106, 108, 113, 115, 122, 130, 139, 141, 150, 152, 161, 163, 176, 181, 190, 199, 206, 215, 224, 233, 275, 280, 285, 290, 295, 300, 307, 314, 319, 324, 329, 334, 339, 344, 349, 354, 359, 364, 369, 374, 379, 384, 389, 394, 399, 404, 409, 414, 419, 424, 429, 441, 448, 455], "variables": [18, 43, 48, 60, 68, 71, 87, 99, 125, 128, 133, 136, 174, 179, 186, 188, 195, 197, 204, 211, 213, 220, 222, 229, 231, 238, 273, 278, 283, 288, 293, 298, 303, 305, 310, 312, 317, 322, 327, 332, 337, 342, 347, 352, 357, 362, 367, 372, 377, 382, 387, 392, 397, 402, 407, 412, 417, 422, 427, 433, 436, 439, 444, 446, 451, 453], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [34, 51, 145, 156, 167, 171, 240, 245, 246, 253, 254, 261, 262, 269], "assignments": [74, 78, 90, 102, 242, 250, 258, 266], "loops": [], "conditionals": [11, 15, 16, 19, 20, 24, 29, 30, 35, 37, 41, 44, 46, 49, 50, 52, 55, 56, 58, 61, 62, 66, 70, 73, 75, 77, 79, 81, 85, 89, 91, 93, 97, 101, 103, 105, 109, 112, 116, 119, 123, 126, 127, 131, 135, 138, 142, 146, 148, 149, 153, 157, 159, 160, 162, 164, 168, 170, 173, 175, 177, 182, 187, 191, 196, 198, 200, 205, 207, 212, 214, 216, 221, 223, 225, 230, 232, 234, 239, 241, 243, 248, 249, 251, 256, 257, 259, 264, 265, 267, 271, 272, 274, 276, 279, 281, 284, 286, 289, 291, 294, 296, 299, 301, 304, 306, 308, 311, 313, 315, 318, 320, 323, 325, 328, 330, 333, 335, 338, 340, 343, 345, 348, 350, 353, 355, 358, 360, 363, 365, 368, 370, 373, 375, 378, 380, 383, 385, 388, 390, 393, 395, 398, 400, 403, 405, 408, 410, 413, 415, 418, 420, 423, 425, 428, 430, 435, 438, 440, 442, 445, 447, 449, 452, 454, 456], "returns": [111, 118, 144, 155, 166], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 26, 33, 459, 460], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 13, "universal_type": "function", "name": "Complex:", "text_snippet": "class Complex: public Printable\n{\npublic:\n Complex(const float r = 0, const float i = 0) : re(r),"}, {"node_id": 40, "universal_type": "function", "name": "unknown", "text_snippet": "im(i)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "Complex(const Complex &c) : re(c.re)"}, {"node_id": 57, "universal_type": "function", "name": "unknown", "text_snippet": "im(c.im)"}, {"node_id": 63, "universal_type": "function", "name": "set", "text_snippet": "void set(const float r, const float i ) { re = r; im = i; }"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "set(const float r, const float i )"}, {"node_id": 82, "universal_type": "function", "name": "setReal", "text_snippet": "void setReal(const float r) { re = r; }"}, {"node_id": 84, "universal_type": "function", "name": "unknown", "text_snippet": "setReal(const float r)"}, {"node_id": 94, "universal_type": "function", "name": "setImag", "text_snippet": "void setImag(const float i ) { im = i; }"}, {"node_id": 96, "universal_type": "function", "name": "unknown", "text_snippet": "setImag(const float i )"}, {"node_id": 106, "universal_type": "function", "name": "unknown", "text_snippet": "float real() { return re; }"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "real()"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "float imag() { return im; }"}, {"node_id": 115, "universal_type": "function", "name": "unknown", "text_snippet": "imag()"}, {"node_id": 122, "universal_type": "function", "name": "unknown", "text_snippet": "printTo(Print& p) const"}, {"node_id": 130, "universal_type": "function", "name": "unknown", "text_snippet": "polar(const float modulus, const float phase)"}, {"node_id": 139, "universal_type": "function", "name": "unknown", "text_snippet": "float phase() { return atan2(im, re); }"}, {"node_id": 141, "universal_type": "function", "name": "unknown", "text_snippet": "phase()"}, {"node_id": 150, "universal_type": "function", "name": "unknown", "text_snippet": "float modulus() { return hypot(re, im); }"}, {"node_id": 152, "universal_type": "function", "name": "unknown", "text_snippet": "modulus()"}, {"node_id": 161, "universal_type": "function", "name": "unknown", "text_snippet": "Complex conjugate() { return Complex(re, -im); }"}, {"node_id": 163, "universal_type": "function", "name": "unknown", "text_snippet": "conjugate()"}, {"node_id": 176, "universal_type": "function", "name": "unknown", "text_snippet": "reciprocal()"}, {"node_id": 181, "universal_type": "function", "name": "unknown", "text_snippet": "operator == (const Complex&)"}, {"node_id": 190, "universal_type": "function", "name": "unknown", "text_snippet": "operator != (const Complex&)"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "operator - ()"}, {"node_id": 206, "universal_type": "function", "name": "unknown", "text_snippet": "operator + (const Complex&)"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "operator - (const Complex&)"}, {"node_id": 224, "universal_type": "function", "name": "unknown", "text_snippet": "operator * (const Complex&)"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "operator / (const Complex&)"}, {"node_id": 275, "universal_type": "function", "name": "unknown", "text_snippet": "c_sqrt()"}, {"node_id": 280, "universal_type": "function", "name": "unknown", "text_snippet": "c_sqr()"}, {"node_id": 285, "universal_type": "function", "name": "unknown", "text_snippet": "c_exp()"}, {"node_id": 290, "universal_type": "function", "name": "unknown", "text_snippet": "c_log()"}, {"node_id": 295, "universal_type": "function", "name": "unknown", "text_snippet": "c_log10()"}, {"node_id": 300, "universal_type": "function", "name": "unknown", "text_snippet": "c_pow(const Complex &)"}, {"node_id": 307, "universal_type": "function", "name": "unknown", "text_snippet": "c_logn(const Complex &)"}, {"node_id": 314, "universal_type": "function", "name": "unknown", "text_snippet": "c_sin()"}, {"node_id": 319, "universal_type": "function", "name": "unknown", "text_snippet": "c_cos()"}, {"node_id": 324, "universal_type": "function", "name": "unknown", "text_snippet": "c_tan()"}, {"node_id": 329, "universal_type": "function", "name": "unknown", "text_snippet": "c_asin()"}, {"node_id": 334, "universal_type": "function", "name": "unknown", "text_snippet": "c_acos()"}, {"node_id": 339, "universal_type": "function", "name": "unknown", "text_snippet": "c_atan()"}, {"node_id": 344, "universal_type": "function", "name": "unknown", "text_snippet": "c_csc()"}, {"node_id": 349, "universal_type": "function", "name": "unknown", "text_snippet": "c_sec()"}, {"node_id": 354, "universal_type": "function", "name": "unknown", "text_snippet": "c_cot()"}, {"node_id": 359, "universal_type": "function", "name": "unknown", "text_snippet": "c_acsc()"}, {"node_id": 364, "universal_type": "function", "name": "unknown", "text_snippet": "c_asec()"}, {"node_id": 369, "universal_type": "function", "name": "unknown", "text_snippet": "c_acot()"}, {"node_id": 374, "universal_type": "function", "name": "unknown", "text_snippet": "c_sinh()"}, {"node_id": 379, "universal_type": "function", "name": "unknown", "text_snippet": "c_cosh()"}, {"node_id": 384, "universal_type": "function", "name": "unknown", "text_snippet": "c_tanh()"}, {"node_id": 389, "universal_type": "function", "name": "unknown", "text_snippet": "c_asinh()"}, {"node_id": 394, "universal_type": "function", "name": "unknown", "text_snippet": "c_acosh()"}, {"node_id": 399, "universal_type": "function", "name": "unknown", "text_snippet": "c_atanh()"}, {"node_id": 404, "universal_type": "function", "name": "unknown", "text_snippet": "c_csch()"}, {"node_id": 409, "universal_type": "function", "name": "unknown", "text_snippet": "c_sech()"}, {"node_id": 414, "universal_type": "function", "name": "unknown", "text_snippet": "c_coth()"}, {"node_id": 419, "universal_type": "function", "name": "unknown", "text_snippet": "c_acsch()"}, {"node_id": 424, "universal_type": "function", "name": "unknown", "text_snippet": "c_asech()"}, {"node_id": 429, "universal_type": "function", "name": "unknown", "text_snippet": "c_acoth()"}, {"node_id": 441, "universal_type": "function", "name": "unknown", "text_snippet": "gonioHelper1(const byte)"}, {"node_id": 448, "universal_type": "function", "name": "unknown", "text_snippet": "gonioHelper2(const byte)"}, {"node_id": 455, "universal_type": "function", "name": "unknown", "text_snippet": "one(1, 0)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"Arduino.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"Printable.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n//\n// FILE: Complex.h\n// AUTHOR: <NAME>\n// VERSION: 0.2.2\n// PURPOSE: Arduino library for Complex math\n// URL: https://github.com/RobTillaart/Complex\n// http://arduino.cc/playground/Main/ComplexMath\n//\n\n#include \"Arduino.h\"\n#include \"Printable.h\"\n\n#define COMPLEX_LIB_VERSION \"0.2.2\"\n\nclass Complex: public Printable\n{\npublic:\n Complex(const float r = 0, const float i = 0) : re(r), im(i) {};\n Complex(const Complex &c) : re(c.re), im(c.im) {};\n\n void set(const float r, const float i ) { re = r; im = i; };\n void setReal(const float r) { re = r; };\n void setImag(const float i ) { im = i; };\n float real() { return re; };\n float imag() { return im; };\n\n size_t printTo(Print& p) const;\n\n void polar(const float modulus, const float phase);\n float phase() { return atan2(im, re); };\n float modulus() { return hypot(re, im); };\n // conjugate is the number mirrored in x-axis\n Complex conjugate() { return Complex(re, -im); };\n Complex reciprocal();\n\n bool operator == (const Complex&);\n bool operator != (const Complex&);\n\n Complex operator - (); // negation\n\n Complex operator + (const Complex&);\n Complex operator - (const Complex&);\n Complex operator * (const Complex&);\n Complex operator / (const Complex&);\n\n Complex& operator += (const Complex&);\n Complex& operator -= (const Complex&);\n Complex& operator *= (const Complex&);\n Complex& operator /= (const Complex&);\n\n Complex c_sqrt();\n Complex c_sqr();\n Complex c_exp();\n Complex c_log();\n Complex c_log10();\n Complex c_pow(const Complex &);\n Complex c_logn(const Complex &);\n\n Complex c_sin();\n Complex c_cos();\n Complex c_tan();\n Complex c_asin();\n Complex c_acos();\n Complex c_atan();\n\n Complex c_csc();\n Complex c_sec();\n Complex c_cot();\n Complex c_acsc();\n Complex c_asec();\n Complex c_acot();\n\n Complex c_sinh();\n Complex c_cosh();\n Complex c_tanh();\n Complex c_asinh();\n Complex c_acosh();\n Complex c_atanh();\n\n Complex c_csch();\n Complex c_sech();\n Complex c_coth();\n Complex c_acsch();\n Complex c_asech();\n Complex c_acoth();\n\nprotected:\n float re;\n float im;\n\n Complex gonioHelper1(const byte);\n Complex gonioHelper2(const byte);\n};\n\nstatic Complex one(1, 0);\n\n// -- END OF FILE --\n"}
80,354
c
/* this file is part of srm http://srm.sourceforge.net/ It is licensed under the MIT/X11 license */ void fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len) { unsigned i = 0; while(dst_len > 0) { *dst++ = src[i]; if (++i == src_len) { i = 0; } --dst_len; } }
24.46
13
(translation_unit) "/* this file is part of srm http://srm.sourceforge.net/\n It is licensed under the MIT/X11 license */\n\nvoid fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)\n{\n unsigned i = 0;\n while(dst_len > 0) {\n *dst++ = src[i];\n if (++i == src_len) {\n i = 0;\n }\n --dst_len;\n }\n}\n" (comment) "/* this file is part of srm http://srm.sourceforge.net/\n It is licensed under the MIT/X11 license */" (function_definition) "void fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)\n{\n unsigned i = 0;\n while(dst_len > 0) {\n *dst++ = src[i];\n if (++i == src_len) {\n i = 0;\n }\n --dst_len;\n }\n}" (primitive_type) "void" (function_declarator) "fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)" (identifier) "fill" (parameter_list) "(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)" (() "(" (parameter_declaration) "unsigned char *dst" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*dst" (*) "*" (identifier) "dst" (,) "," (parameter_declaration) "unsigned dst_len" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "dst_len" (,) "," (parameter_declaration) "const unsigned char *src" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned char" (unsigned) "unsigned" (primitive_type) "char" (pointer_declarator) "*src" (*) "*" (identifier) "src" (,) "," (parameter_declaration) "const unsigned src_len" (type_qualifier) "const" (const) "const" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "src_len" ()) ")" (compound_statement) "{\n unsigned i = 0;\n while(dst_len > 0) {\n *dst++ = src[i];\n if (++i == src_len) {\n i = 0;\n }\n --dst_len;\n }\n}" ({) "{" (declaration) "unsigned i = 0;" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while(dst_len > 0) {\n *dst++ = src[i];\n if (++i == src_len) {\n i = 0;\n }\n --dst_len;\n }" (while) "while" (parenthesized_expression) "(dst_len > 0)" (() "(" (binary_expression) "dst_len > 0" (identifier) "dst_len" (>) ">" (number_literal) "0" ()) ")" (compound_statement) "{\n *dst++ = src[i];\n if (++i == src_len) {\n i = 0;\n }\n --dst_len;\n }" ({) "{" (expression_statement) "*dst++ = src[i];" (assignment_expression) "*dst++ = src[i]" (pointer_expression) "*dst++" (*) "*" (update_expression) "dst++" (identifier) "dst" (++) "++" (=) "=" (subscript_expression) "src[i]" (identifier) "src" ([) "[" (identifier) "i" (]) "]" (;) ";" (if_statement) "if (++i == src_len) {\n i = 0;\n }" (if) "if" (parenthesized_expression) "(++i == src_len)" (() "(" (binary_expression) "++i == src_len" (update_expression) "++i" (++) "++" (identifier) "i" (==) "==" (identifier) "src_len" ()) ")" (compound_statement) "{\n i = 0;\n }" ({) "{" (expression_statement) "i = 0;" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) "--dst_len;" (update_expression) "--dst_len" (--) "--" (identifier) "dst_len" (;) ";" (}) "}" (}) "}"
100
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 24.46, "nodes": 65, "errors": 0, "source_hash": "884ca220bbc2a13d6aced5bac1badbe548722ab33dacf941c7dfd54eb3dc4316", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "void fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)\n{\n unsigned i = 0;\n while(dst_len > 0) {\n *dst++ = src[i];\n if (++i == src_len) {\n i = 0;\n }\n --dst_len;\n }\n}", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 1, "type": "primitive_type", "text": "void", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 4}}, {"id": 2, "type": "function_declarator", "text": "fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)", "parent": 0, "children": [3, 4], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 97}}, {"id": 3, "type": "identifier", "text": "fill", "parent": 2, "children": [], "start_point": {"row": 3, "column": 5}, "end_point": {"row": 3, "column": 9}}, {"id": 4, "type": "parameter_list", "text": "(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)", "parent": 2, "children": [5, 12, 16, 23], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 97}}, {"id": 5, "type": "parameter_declaration", "text": "unsigned char *dst", "parent": 4, "children": [6, 9], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 28}}, {"id": 6, "type": "sized_type_specifier", "text": "unsigned char", "parent": 5, "children": [7, 8], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 23}}, {"id": 7, "type": "unsigned", "text": "unsigned", "parent": 6, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 18}}, {"id": 8, "type": "primitive_type", "text": "char", "parent": 6, "children": [], "start_point": {"row": 3, "column": 19}, "end_point": {"row": 3, "column": 23}}, {"id": 9, "type": "pointer_declarator", "text": "*dst", "parent": 5, "children": [10, 11], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 28}}, {"id": 10, "type": "*", "text": "*", "parent": 9, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 25}}, {"id": 11, "type": "identifier", "text": "dst", "parent": 9, "children": [], "start_point": {"row": 3, "column": 25}, "end_point": {"row": 3, "column": 28}}, {"id": 12, "type": "parameter_declaration", "text": "unsigned dst_len", "parent": 4, "children": [13, 15], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 46}}, {"id": 13, "type": "sized_type_specifier", "text": "unsigned", "parent": 12, "children": [14], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 38}}, {"id": 14, "type": "unsigned", "text": "unsigned", "parent": 13, "children": [], "start_point": {"row": 3, "column": 30}, "end_point": {"row": 3, "column": 38}}, {"id": 15, "type": "identifier", "text": "dst_len", "parent": 12, "children": [], "start_point": {"row": 3, "column": 39}, "end_point": {"row": 3, "column": 46}}, {"id": 16, "type": "parameter_declaration", "text": "const unsigned char *src", "parent": 4, "children": [17, 20], "start_point": {"row": 3, "column": 48}, "end_point": {"row": 3, "column": 72}}, {"id": 17, "type": "sized_type_specifier", "text": "unsigned char", "parent": 16, "children": [18, 19], "start_point": {"row": 3, "column": 54}, "end_point": {"row": 3, "column": 67}}, {"id": 18, "type": "unsigned", "text": "unsigned", "parent": 17, "children": [], "start_point": {"row": 3, "column": 54}, "end_point": {"row": 3, "column": 62}}, {"id": 19, "type": "primitive_type", "text": "char", "parent": 17, "children": [], "start_point": {"row": 3, "column": 63}, "end_point": {"row": 3, "column": 67}}, {"id": 20, "type": "pointer_declarator", "text": "*src", "parent": 16, "children": [21, 22], "start_point": {"row": 3, "column": 68}, "end_point": {"row": 3, "column": 72}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 3, "column": 68}, "end_point": {"row": 3, "column": 69}}, {"id": 22, "type": "identifier", "text": "src", "parent": 20, "children": [], "start_point": {"row": 3, "column": 69}, "end_point": {"row": 3, "column": 72}}, {"id": 23, "type": "parameter_declaration", "text": "const unsigned src_len", "parent": 4, "children": [24, 26], "start_point": {"row": 3, "column": 74}, "end_point": {"row": 3, "column": 96}}, {"id": 24, "type": "sized_type_specifier", "text": "unsigned", "parent": 23, "children": [25], "start_point": {"row": 3, "column": 80}, "end_point": {"row": 3, "column": 88}}, {"id": 25, "type": "unsigned", "text": "unsigned", "parent": 24, "children": [], "start_point": {"row": 3, "column": 80}, "end_point": {"row": 3, "column": 88}}, {"id": 26, "type": "identifier", "text": "src_len", "parent": 23, "children": [], "start_point": {"row": 3, "column": 89}, "end_point": {"row": 3, "column": 96}}, {"id": 27, "type": "declaration", "text": "unsigned i = 0;", "parent": 0, "children": [28, 30], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 17}}, {"id": 28, "type": "sized_type_specifier", "text": "unsigned", "parent": 27, "children": [29], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 10}}, {"id": 29, "type": "unsigned", "text": "unsigned", "parent": 28, "children": [], "start_point": {"row": 5, "column": 2}, "end_point": {"row": 5, "column": 10}}, {"id": 30, "type": "init_declarator", "text": "i = 0", "parent": 27, "children": [31, 32, 33], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 16}}, {"id": 31, "type": "identifier", "text": "i", "parent": 30, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 12}}, {"id": 32, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 14}}, {"id": 33, "type": "number_literal", "text": "0", "parent": 30, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 16}}, {"id": 34, "type": "while_statement", "text": "while(dst_len > 0) {\n *dst++ = src[i];\n if (++i == src_len) {\n i = 0;\n }\n --dst_len;\n }", "parent": 0, "children": [35], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 12, "column": 3}}, {"id": 35, "type": "parenthesized_expression", "text": "(dst_len > 0)", "parent": 34, "children": [36], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 20}}, {"id": 36, "type": "binary_expression", "text": "dst_len > 0", "parent": 35, "children": [37, 38, 39], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 19}}, {"id": 37, "type": "identifier", "text": "dst_len", "parent": 36, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 15}}, {"id": 38, "type": ">", "text": ">", "parent": 36, "children": [], "start_point": {"row": 6, "column": 16}, "end_point": {"row": 6, "column": 17}}, {"id": 39, "type": "number_literal", "text": "0", "parent": 36, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 19}}, {"id": 40, "type": "assignment_expression", "text": "*dst++ = src[i]", "parent": 34, "children": [41, 46, 47], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 19}}, {"id": 41, "type": "pointer_expression", "text": "*dst++", "parent": 40, "children": [42, 43], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 10}}, {"id": 42, "type": "*", "text": "*", "parent": 41, "children": [], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 5}}, {"id": 43, "type": "update_expression", "text": "dst++", "parent": 41, "children": [44, 45], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 10}}, {"id": 44, "type": "identifier", "text": "dst", "parent": 43, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 8}}, {"id": 45, "type": "++", "text": "++", "parent": 43, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 10}}, {"id": 46, "type": "=", "text": "=", "parent": 40, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 12}}, {"id": 47, "type": "subscript_expression", "text": "src[i]", "parent": 40, "children": [48, 49], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 19}}, {"id": 48, "type": "identifier", "text": "src", "parent": 47, "children": [], "start_point": {"row": 7, "column": 13}, "end_point": {"row": 7, "column": 16}}, {"id": 49, "type": "identifier", "text": "i", "parent": 47, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 18}}, {"id": 50, "type": "if_statement", "text": "if (++i == src_len) {\n i = 0;\n }", "parent": 34, "children": [51], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 10, "column": 5}}, {"id": 51, "type": "parenthesized_expression", "text": "(++i == src_len)", "parent": 50, "children": [52], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 23}}, {"id": 52, "type": "binary_expression", "text": "++i == src_len", "parent": 51, "children": [53, 56, 57], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 22}}, {"id": 53, "type": "update_expression", "text": "++i", "parent": 52, "children": [54, 55], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 54, "type": "++", "text": "++", "parent": 53, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 10}}, {"id": 55, "type": "identifier", "text": "i", "parent": 53, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 11}}, {"id": 56, "type": "==", "text": "==", "parent": 52, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 14}}, {"id": 57, "type": "identifier", "text": "src_len", "parent": 52, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 22}}, {"id": 58, "type": "assignment_expression", "text": "i = 0", "parent": 50, "children": [59, 60, 61], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 11}}, {"id": 59, "type": "identifier", "text": "i", "parent": 58, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 7}}, {"id": 60, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 9}}, {"id": 61, "type": "number_literal", "text": "0", "parent": 58, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 11}}, {"id": 62, "type": "update_expression", "text": "--dst_len", "parent": 34, "children": [63, 64], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 13}}, {"id": 63, "type": "--", "text": "--", "parent": 62, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 6}}, {"id": 64, "type": "identifier", "text": "dst_len", "parent": 62, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 13}}]}, "node_categories": {"declarations": {"functions": [0, 2], "variables": [5, 12, 16, 23, 27], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [35, 36, 41, 43, 47, 51, 52, 53, 62], "assignments": [40, 58], "loops": [34], "conditionals": [3, 6, 11, 13, 15, 17, 22, 24, 26, 28, 31, 37, 44, 48, 49, 50, 55, 57, 59, 64], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [33, 39, 61], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 0, "universal_type": "function", "name": "fill", "text_snippet": "void fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)\n{\n"}, {"node_id": 2, "universal_type": "function", "name": "unknown", "text_snippet": "fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)"}], "class_declarations": [], "import_statements": []}, "original_source_code": "/* this file is part of srm http://srm.sourceforge.net/\n It is licensed under the MIT/X11 license */\n\nvoid fill(unsigned char *dst, unsigned dst_len, const unsigned char *src, const unsigned src_len)\n{\n unsigned i = 0;\n while(dst_len > 0) {\n *dst++ = src[i];\n if (++i == src_len) {\n i = 0;\n }\n --dst_len;\n }\n}\n"}
80,355
c
/* * Program: Operating-system dependent routines -- Secure Linux version * * Author: <NAME> * Networks and Distributed Computing * Computing & Communications * University of Washington * Administration Building, AG-44 * Seattle, WA 98195 * Internet: <EMAIL> * * Date: 1 August 1993 * Last Edited: 20 April 2005 * * The IMAP toolkit provided in this Distribution is * Copyright 1988-2005 University of Washington. * The full text of our legal notices is contained in the file called * CPYRIGHT, included with this Distribution. */ #include "tcp_unix.h" /* must be before osdep includes tcp.h */ #include "mail.h" #include "osdep.h" #include <stdio.h> #include <sys/time.h> #include <sys/stat.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <ctype.h> #include <errno.h> extern int errno; /* just in case */ #include <pwd.h> #include <shadow.h> #include "misc.h" #include "fs_unix.c" #include "ftl_unix.c" #include "nl_unix.c" #include "env_unix.c" #define fork vfork #include "tcp_unix.c" #include "gr_waitp.c" #include "tz_sv4.c" #include "flocklnx.c"
23.74
46
(translation_unit) "/*\n * Program: Operating-system dependent routines -- Secure Linux version\n *\n * Author: <NAME>\n * Networks and Distributed Computing\n * Computing & Communications\n * University of Washington\n * Administration Building, AG-44\n * Seattle, WA 98195\n * Internet: <EMAIL>\n *\n * Date: 1 August 1993\n * Last Edited: 20 April 2005\n * \n * The IMAP toolkit provided in this Distribution is\n * Copyright 1988-2005 University of Washington.\n * The full text of our legal notices is contained in the file called\n * CPYRIGHT, included with this Distribution.\n */\n \n#include "tcp_unix.h" /* must be before osdep includes tcp.h */\n#include "mail.h"\n#include "osdep.h"\n#include <stdio.h>\n#include <sys/time.h>\n#include <sys/stat.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n#include <netdb.h>\n#include <ctype.h>\n#include <errno.h>\nextern int errno; /* just in case */\n#include <pwd.h>\n#include <shadow.h>\n#include "misc.h"\n\n\n#include "fs_unix.c"\n#include "ftl_unix.c"\n#include "nl_unix.c"\n#include "env_unix.c"\n#define fork vfork\n#include "tcp_unix.c"\n#include "gr_waitp.c"\n#include "tz_sv4.c"\n#include "flocklnx.c"\n" (comment) "/*\n * Program: Operating-system dependent routines -- Secure Linux version\n *\n * Author: <NAME>\n * Networks and Distributed Computing\n * Computing & Communications\n * University of Washington\n * Administration Building, AG-44\n * Seattle, WA 98195\n * Internet: <EMAIL>\n *\n * Date: 1 August 1993\n * Last Edited: 20 April 2005\n * \n * The IMAP toolkit provided in this Distribution is\n * Copyright 1988-2005 University of Washington.\n * The full text of our legal notices is contained in the file called\n * CPYRIGHT, included with this Distribution.\n */" (preproc_include) "#include "tcp_unix.h" /* must be before osdep includes tcp.h */\n" (#include) "#include" (string_literal) ""tcp_unix.h"" (") """ (string_content) "tcp_unix.h" (") """ (comment) "/* must be before osdep includes tcp.h */" (preproc_include) "#include "mail.h"\n" (#include) "#include" (string_literal) ""mail.h"" (") """ (string_content) "mail.h" (") """ (preproc_include) "#include "osdep.h"\n" (#include) "#include" (string_literal) ""osdep.h"" (") """ (string_content) "osdep.h" (") """ (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <sys/time.h>\n" (#include) "#include" (system_lib_string) "<sys/time.h>" (preproc_include) "#include <sys/stat.h>\n" (#include) "#include" (system_lib_string) "<sys/stat.h>" (preproc_include) "#include <sys/socket.h>\n" (#include) "#include" (system_lib_string) "<sys/socket.h>" (preproc_include) "#include <netinet/in.h>\n" (#include) "#include" (system_lib_string) "<netinet/in.h>" (preproc_include) "#include <arpa/inet.h>\n" (#include) "#include" (system_lib_string) "<arpa/inet.h>" (preproc_include) "#include <netdb.h>\n" (#include) "#include" (system_lib_string) "<netdb.h>" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>" (declaration) "extern int errno;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "errno" (;) ";" (comment) "/* just in case */" (preproc_include) "#include <pwd.h>\n" (#include) "#include" (system_lib_string) "<pwd.h>" (preproc_include) "#include <shadow.h>\n" (#include) "#include" (system_lib_string) "<shadow.h>" (preproc_include) "#include "misc.h"\n" (#include) "#include" (string_literal) ""misc.h"" (") """ (string_content) "misc.h" (") """ (preproc_include) "#include "fs_unix.c"\n" (#include) "#include" (string_literal) ""fs_unix.c"" (") """ (string_content) "fs_unix.c" (") """ (preproc_include) "#include "ftl_unix.c"\n" (#include) "#include" (string_literal) ""ftl_unix.c"" (") """ (string_content) "ftl_unix.c" (") """ (preproc_include) "#include "nl_unix.c"\n" (#include) "#include" (string_literal) ""nl_unix.c"" (") """ (string_content) "nl_unix.c" (") """ (preproc_include) "#include "env_unix.c"\n" (#include) "#include" (string_literal) ""env_unix.c"" (") """ (string_content) "env_unix.c" (") """ (preproc_def) "#define fork vfork\n" (#define) "#define" (identifier) "fork" (preproc_arg) "vfork" (preproc_include) "#include "tcp_unix.c"\n" (#include) "#include" (string_literal) ""tcp_unix.c"" (") """ (string_content) "tcp_unix.c" (") """ (preproc_include) "#include "gr_waitp.c"\n" (#include) "#include" (string_literal) ""gr_waitp.c"" (") """ (string_content) "gr_waitp.c" (") """ (preproc_include) "#include "tz_sv4.c"\n" (#include) "#include" (string_literal) ""tz_sv4.c"" (") """ (string_content) "tz_sv4.c" (") """ (preproc_include) "#include "flocklnx.c"\n" (#include) "#include" (string_literal) ""flocklnx.c"" (") """ (string_content) "flocklnx.c" (") """
119
0
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 23.74, "nodes": 78, "errors": 0, "source_hash": "68c914f659414f48d51d1700c133f0c03c218e4a7844191b445bfe183ac90bd5", "categorized_nodes": 73}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"tcp_unix.h\"\t\t/* must be before osdep includes tcp.h */\n", "parent": null, "children": [1, 2], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"tcp_unix.h\"", "parent": 0, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 21}}, {"id": 3, "type": "preproc_include", "text": "#include \"mail.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"mail.h\"", "parent": 3, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"osdep.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"osdep.h\"", "parent": 6, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdio.h>", "parent": 9, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include <sys/time.h>\n", "parent": null, "children": [13, 14], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<sys/time.h>", "parent": 12, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 21}}, {"id": 15, "type": "preproc_include", "text": "#include <sys/stat.h>\n", "parent": null, "children": [16, 17], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<sys/stat.h>", "parent": 15, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 21}}, {"id": 18, "type": "preproc_include", "text": "#include <sys/socket.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<sys/socket.h>", "parent": 18, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 23}}, {"id": 21, "type": "preproc_include", "text": "#include <netinet/in.h>\n", "parent": null, "children": [22, 23], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 22, "type": "#include", "text": "#include", "parent": 21, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 23, "type": "system_lib_string", "text": "<netinet/in.h>", "parent": 21, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 23}}, {"id": 24, "type": "preproc_include", "text": "#include <arpa/inet.h>\n", "parent": null, "children": [25, 26], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 25, "type": "#include", "text": "#include", "parent": 24, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 26, "type": "system_lib_string", "text": "<arpa/inet.h>", "parent": 24, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 22}}, {"id": 27, "type": "preproc_include", "text": "#include <netdb.h>\n", "parent": null, "children": [28, 29], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 28, "type": "#include", "text": "#include", "parent": 27, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 29, "type": "system_lib_string", "text": "<netdb.h>", "parent": 27, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 18}}, {"id": 30, "type": "preproc_include", "text": "#include <ctype.h>\n", "parent": null, "children": [31, 32], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 31, "type": "#include", "text": "#include", "parent": 30, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 32, "type": "system_lib_string", "text": "<ctype.h>", "parent": 30, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 18}}, {"id": 33, "type": "preproc_include", "text": "#include <errno.h>\n", "parent": null, "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": "system_lib_string", "text": "<errno.h>", "parent": 33, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 18}}, {"id": 36, "type": "declaration", "text": "extern int errno;", "parent": null, "children": [37, 39, 40], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 17}}, {"id": 37, "type": "storage_class_specifier", "text": "extern", "parent": 36, "children": [38], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 38, "type": "extern", "text": "extern", "parent": 37, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 6}}, {"id": 39, "type": "primitive_type", "text": "int", "parent": 36, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 10}}, {"id": 40, "type": "identifier", "text": "errno", "parent": 36, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 16}}, {"id": 41, "type": "preproc_include", "text": "#include <pwd.h>\n", "parent": null, "children": [42, 43], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 42, "type": "#include", "text": "#include", "parent": 41, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 43, "type": "system_lib_string", "text": "<pwd.h>", "parent": 41, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 16}}, {"id": 44, "type": "preproc_include", "text": "#include <shadow.h>\n", "parent": null, "children": [45, 46], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 45, "type": "#include", "text": "#include", "parent": 44, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 8}}, {"id": 46, "type": "system_lib_string", "text": "<shadow.h>", "parent": 44, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 19}}, {"id": 47, "type": "preproc_include", "text": "#include \"misc.h\"\n", "parent": null, "children": [48, 49], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 48, "type": "#include", "text": "#include", "parent": 47, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 8}}, {"id": 49, "type": "string_literal", "text": "\"misc.h\"", "parent": 47, "children": [], "start_point": {"row": 35, "column": 9}, "end_point": {"row": 35, "column": 17}}, {"id": 50, "type": "preproc_include", "text": "#include \"fs_unix.c\"\n", "parent": null, "children": [51, 52], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 51, "type": "#include", "text": "#include", "parent": 50, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 8}}, {"id": 52, "type": "string_literal", "text": "\"fs_unix.c\"", "parent": 50, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 20}}, {"id": 53, "type": "preproc_include", "text": "#include \"ftl_unix.c\"\n", "parent": null, "children": [54, 55], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 54, "type": "#include", "text": "#include", "parent": 53, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 8}}, {"id": 55, "type": "string_literal", "text": "\"ftl_unix.c\"", "parent": 53, "children": [], "start_point": {"row": 39, "column": 9}, "end_point": {"row": 39, "column": 21}}, {"id": 56, "type": "preproc_include", "text": "#include \"nl_unix.c\"\n", "parent": null, "children": [57, 58], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 57, "type": "#include", "text": "#include", "parent": 56, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 8}}, {"id": 58, "type": "string_literal", "text": "\"nl_unix.c\"", "parent": 56, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 20}}, {"id": 59, "type": "preproc_include", "text": "#include \"env_unix.c\"\n", "parent": null, "children": [60, 61], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 60, "type": "#include", "text": "#include", "parent": 59, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 8}}, {"id": 61, "type": "string_literal", "text": "\"env_unix.c\"", "parent": 59, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 21}}, {"id": 62, "type": "preproc_def", "text": "#define fork vfork\n", "parent": null, "children": [63, 64, 65], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 63, "type": "#define", "text": "#define", "parent": 62, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 64, "type": "identifier", "text": "fork", "parent": 62, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 65, "type": "preproc_arg", "text": "vfork", "parent": 62, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 18}}, {"id": 66, "type": "preproc_include", "text": "#include \"tcp_unix.c\"\n", "parent": null, "children": [67, 68], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 67, "type": "#include", "text": "#include", "parent": 66, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 8}}, {"id": 68, "type": "string_literal", "text": "\"tcp_unix.c\"", "parent": 66, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 21}}, {"id": 69, "type": "preproc_include", "text": "#include \"gr_waitp.c\"\n", "parent": null, "children": [70, 71], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 70, "type": "#include", "text": "#include", "parent": 69, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 8}}, {"id": 71, "type": "string_literal", "text": "\"gr_waitp.c\"", "parent": 69, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 21}}, {"id": 72, "type": "preproc_include", "text": "#include \"tz_sv4.c\"\n", "parent": null, "children": [73, 74], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 73, "type": "#include", "text": "#include", "parent": 72, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 8}}, {"id": 74, "type": "string_literal", "text": "\"tz_sv4.c\"", "parent": 72, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 19}}, {"id": 75, "type": "preproc_include", "text": "#include \"flocklnx.c\"\n", "parent": null, "children": [76, 77], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 76, "type": "#include", "text": "#include", "parent": 75, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 8}}, {"id": 77, "type": "string_literal", "text": "\"flocklnx.c\"", "parent": 75, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [36], "classes": [37], "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, 41, 42, 44, 45, 47, 48, 50, 51, 53, 54, 56, 57, 59, 60, 66, 67, 69, 70, 72, 73, 75, 76], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [40, 64], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35, 43, 46, 49, 52, 55, 58, 61, 68, 71, 74, 77], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 37, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 0, "text": "#include \"tcp_unix.h\"\t\t/* must be before osdep includes tcp.h */\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"mail.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"osdep.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdio.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <sys/time.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <sys/stat.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <sys/socket.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <netinet/in.h>\n"}, {"node_id": 22, "text": "#include"}, {"node_id": 24, "text": "#include <arpa/inet.h>\n"}, {"node_id": 25, "text": "#include"}, {"node_id": 27, "text": "#include <netdb.h>\n"}, {"node_id": 28, "text": "#include"}, {"node_id": 30, "text": "#include <ctype.h>\n"}, {"node_id": 31, "text": "#include"}, {"node_id": 33, "text": "#include <errno.h>\n"}, {"node_id": 34, "text": "#include"}, {"node_id": 41, "text": "#include <pwd.h>\n"}, {"node_id": 42, "text": "#include"}, {"node_id": 44, "text": "#include <shadow.h>\n"}, {"node_id": 45, "text": "#include"}, {"node_id": 47, "text": "#include \"misc.h\"\n"}, {"node_id": 48, "text": "#include"}, {"node_id": 50, "text": "#include \"fs_unix.c\"\n"}, {"node_id": 51, "text": "#include"}, {"node_id": 53, "text": "#include \"ftl_unix.c\"\n"}, {"node_id": 54, "text": "#include"}, {"node_id": 56, "text": "#include \"nl_unix.c\"\n"}, {"node_id": 57, "text": "#include"}, {"node_id": 59, "text": "#include \"env_unix.c\"\n"}, {"node_id": 60, "text": "#include"}, {"node_id": 66, "text": "#include \"tcp_unix.c\"\n"}, {"node_id": 67, "text": "#include"}, {"node_id": 69, "text": "#include \"gr_waitp.c\"\n"}, {"node_id": 70, "text": "#include"}, {"node_id": 72, "text": "#include \"tz_sv4.c\"\n"}, {"node_id": 73, "text": "#include"}, {"node_id": 75, "text": "#include \"flocklnx.c\"\n"}, {"node_id": 76, "text": "#include"}]}, "original_source_code": "/*\n * Program:\tOperating-system dependent routines -- Secure Linux version\n *\n * Author:\t<NAME>\n *\t\tNetworks and Distributed Computing\n *\t\tComputing & Communications\n *\t\tUniversity of Washington\n *\t\tAdministration Building, AG-44\n *\t\tSeattle, WA 98195\n *\t\tInternet: <EMAIL>\n *\n * Date:\t1 August 1993\n * Last Edited:\t20 April 2005\n * \n * The IMAP toolkit provided in this Distribution is\n * Copyright 1988-2005 University of Washington.\n * The full text of our legal notices is contained in the file called\n * CPYRIGHT, included with this Distribution.\n */\n\f \n#include \"tcp_unix.h\"\t\t/* must be before osdep includes tcp.h */\n#include \"mail.h\"\n#include \"osdep.h\"\n#include <stdio.h>\n#include <sys/time.h>\n#include <sys/stat.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include <arpa/inet.h>\n#include <netdb.h>\n#include <ctype.h>\n#include <errno.h>\nextern int errno;\t\t/* just in case */\n#include <pwd.h>\n#include <shadow.h>\n#include \"misc.h\"\n\n\n#include \"fs_unix.c\"\n#include \"ftl_unix.c\"\n#include \"nl_unix.c\"\n#include \"env_unix.c\"\n#define fork vfork\n#include \"tcp_unix.c\"\n#include \"gr_waitp.c\"\n#include \"tz_sv4.c\"\n#include \"flocklnx.c\"\n"}
80,356
c
/* * Generated by ./misc/optlib2c from optlib/gdbinit.ctags, Don't edit this manually. */ #include "general.h" #include "parse.h" #include "routines.h" #include "field.h" #include "xtag.h" static void initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED) { } extern parserDefinition* GdbinitParser (void) { static const char *const extensions [] = { "gdb", NULL }; static const char *const aliases [] = { NULL }; static const char *const patterns [] = { ".gdbinit", NULL }; static kindDefinition GdbinitKindTable [] = { { true, 'd', "definition", "definitions", }, { false, 'D', "document", "documents", }, { true, 't', "toplevelVariable", "toplevel variables", }, { false, 'l', "localVariable", "local variables", }, }; static tagRegexTable GdbinitTagRegexTable [] = { {"^#.*", "", "", "{exclusive}", NULL, false}, {"^define[[:space:]]+([^[:space:]]+)$", "\\1", "d", NULL, NULL, false}, {"^document[[:space:]]+([^[:space:]]+)$", "\\1", "D", NULL, NULL, false}, {"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1", "t", NULL, NULL, false}, {"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1", "l", NULL, NULL, false}, }; parserDefinition* const def = parserNew ("Gdbinit"); def->enabled = true; def->extensions = extensions; def->patterns = patterns; def->aliases = aliases; def->method = METHOD_NOT_CRAFTED|METHOD_REGEX; def->kindTable = GdbinitKindTable; def->kindCount = ARRAY_SIZE(GdbinitKindTable); def->tagRegexTable = GdbinitTagRegexTable; def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable); def->initialize = initializeGdbinitParser; return def; }
25.51
65
(translation_unit) "/*\n * Generated by ./misc/optlib2c from optlib/gdbinit.ctags, Don't edit this manually.\n */\n#include "general.h"\n#include "parse.h"\n#include "routines.h"\n#include "field.h"\n#include "xtag.h"\n\n\nstatic void initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)\n{\n}\n\nextern parserDefinition* GdbinitParser (void)\n{\n static const char *const extensions [] = {\n "gdb",\n NULL\n };\n\n static const char *const aliases [] = {\n NULL\n };\n\n static const char *const patterns [] = {\n ".gdbinit",\n NULL\n };\n\n static kindDefinition GdbinitKindTable [] = {\n {\n true, 'd', "definition", "definitions",\n },\n {\n false, 'D', "document", "documents",\n },\n {\n true, 't', "toplevelVariable", "toplevel variables",\n },\n {\n false, 'l', "localVariable", "local variables",\n },\n };\n static tagRegexTable GdbinitTagRegexTable [] = {\n {"^#.*", "",\n "", "{exclusive}", NULL, false},\n {"^define[[:space:]]+([^[:space:]]+)$", "\\1",\n "d", NULL, NULL, false},\n {"^document[[:space:]]+([^[:space:]]+)$", "\\1",\n "D", NULL, NULL, false},\n {"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "t", NULL, NULL, false},\n {"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "l", NULL, NULL, false},\n };\n\n\n parserDefinition* const def = parserNew ("Gdbinit");\n\n def->enabled = true;\n def->extensions = extensions;\n def->patterns = patterns;\n def->aliases = aliases;\n def->method = METHOD_NOT_CRAFTED|METHOD_REGEX;\n def->kindTable = GdbinitKindTable;\n def->kindCount = ARRAY_SIZE(GdbinitKindTable);\n def->tagRegexTable = GdbinitTagRegexTable;\n def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable);\n def->initialize = initializeGdbinitParser;\n\n return def;\n}\n" (comment) "/*\n * Generated by ./misc/optlib2c from optlib/gdbinit.ctags, Don't edit this manually.\n */" (preproc_include) "#include "general.h"\n" (#include) "#include" (string_literal) ""general.h"" (") """ (string_content) "general.h" (") """ (preproc_include) "#include "parse.h"\n" (#include) "#include" (string_literal) ""parse.h"" (") """ (string_content) "parse.h" (") """ (preproc_include) "#include "routines.h"\n" (#include) "#include" (string_literal) ""routines.h"" (") """ (string_content) "routines.h" (") """ (preproc_include) "#include "field.h"\n" (#include) "#include" (string_literal) ""field.h"" (") """ (string_content) "field.h" (") """ (preproc_include) "#include "xtag.h"\n" (#include) "#include" (string_literal) ""xtag.h"" (") """ (string_content) "xtag.h" (") """ (function_definition) "static void initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)\n{\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)" (identifier) "initializeGdbinitParser" (parameter_list) "(const langType language CTAGS_ATTR_UNUSED)" (() "(" (parameter_declaration) "const langType language CTAGS_ATTR_UNUSED" (type_qualifier) "const" (const) "const" (type_identifier) "langType" (ERROR) "language" (identifier) "language" (identifier) "CTAGS_ATTR_UNUSED" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "extern parserDefinition* GdbinitParser (void)\n{\n static const char *const extensions [] = {\n "gdb",\n NULL\n };\n\n static const char *const aliases [] = {\n NULL\n };\n\n static const char *const patterns [] = {\n ".gdbinit",\n NULL\n };\n\n static kindDefinition GdbinitKindTable [] = {\n {\n true, 'd', "definition", "definitions",\n },\n {\n false, 'D', "document", "documents",\n },\n {\n true, 't', "toplevelVariable", "toplevel variables",\n },\n {\n false, 'l', "localVariable", "local variables",\n },\n };\n static tagRegexTable GdbinitTagRegexTable [] = {\n {"^#.*", "",\n "", "{exclusive}", NULL, false},\n {"^define[[:space:]]+([^[:space:]]+)$", "\\1",\n "d", NULL, NULL, false},\n {"^document[[:space:]]+([^[:space:]]+)$", "\\1",\n "D", NULL, NULL, false},\n {"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "t", NULL, NULL, false},\n {"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "l", NULL, NULL, false},\n };\n\n\n parserDefinition* const def = parserNew ("Gdbinit");\n\n def->enabled = true;\n def->extensions = extensions;\n def->patterns = patterns;\n def->aliases = aliases;\n def->method = METHOD_NOT_CRAFTED|METHOD_REGEX;\n def->kindTable = GdbinitKindTable;\n def->kindCount = ARRAY_SIZE(GdbinitKindTable);\n def->tagRegexTable = GdbinitTagRegexTable;\n def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable);\n def->initialize = initializeGdbinitParser;\n\n return def;\n}" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "parserDefinition" (pointer_declarator) "* GdbinitParser (void)" (*) "*" (function_declarator) "GdbinitParser (void)" (identifier) "GdbinitParser" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n static const char *const extensions [] = {\n "gdb",\n NULL\n };\n\n static const char *const aliases [] = {\n NULL\n };\n\n static const char *const patterns [] = {\n ".gdbinit",\n NULL\n };\n\n static kindDefinition GdbinitKindTable [] = {\n {\n true, 'd', "definition", "definitions",\n },\n {\n false, 'D', "document", "documents",\n },\n {\n true, 't', "toplevelVariable", "toplevel variables",\n },\n {\n false, 'l', "localVariable", "local variables",\n },\n };\n static tagRegexTable GdbinitTagRegexTable [] = {\n {"^#.*", "",\n "", "{exclusive}", NULL, false},\n {"^define[[:space:]]+([^[:space:]]+)$", "\\1",\n "d", NULL, NULL, false},\n {"^document[[:space:]]+([^[:space:]]+)$", "\\1",\n "D", NULL, NULL, false},\n {"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "t", NULL, NULL, false},\n {"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "l", NULL, NULL, false},\n };\n\n\n parserDefinition* const def = parserNew ("Gdbinit");\n\n def->enabled = true;\n def->extensions = extensions;\n def->patterns = patterns;\n def->aliases = aliases;\n def->method = METHOD_NOT_CRAFTED|METHOD_REGEX;\n def->kindTable = GdbinitKindTable;\n def->kindCount = ARRAY_SIZE(GdbinitKindTable);\n def->tagRegexTable = GdbinitTagRegexTable;\n def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable);\n def->initialize = initializeGdbinitParser;\n\n return def;\n}" ({) "{" (declaration) "static const char *const extensions [] = {\n "gdb",\n NULL\n };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*const extensions [] = {\n "gdb",\n NULL\n }" (pointer_declarator) "*const extensions []" (*) "*" (type_qualifier) "const" (const) "const" (array_declarator) "extensions []" (identifier) "extensions" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n "gdb",\n NULL\n }" ({) "{" (string_literal) ""gdb"" (") """ (string_content) "gdb" (") """ (,) "," (null) "NULL" (NULL) "NULL" (}) "}" (;) ";" (declaration) "static const char *const aliases [] = {\n NULL\n };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*const aliases [] = {\n NULL\n }" (pointer_declarator) "*const aliases []" (*) "*" (type_qualifier) "const" (const) "const" (array_declarator) "aliases []" (identifier) "aliases" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n NULL\n }" ({) "{" (null) "NULL" (NULL) "NULL" (}) "}" (;) ";" (declaration) "static const char *const patterns [] = {\n ".gdbinit",\n NULL\n };" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "*const patterns [] = {\n ".gdbinit",\n NULL\n }" (pointer_declarator) "*const patterns []" (*) "*" (type_qualifier) "const" (const) "const" (array_declarator) "patterns []" (identifier) "patterns" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n ".gdbinit",\n NULL\n }" ({) "{" (string_literal) "".gdbinit"" (") """ (string_content) ".gdbinit" (") """ (,) "," (null) "NULL" (NULL) "NULL" (}) "}" (;) ";" (declaration) "static kindDefinition GdbinitKindTable [] = {\n {\n true, 'd', "definition", "definitions",\n },\n {\n false, 'D', "document", "documents",\n },\n {\n true, 't', "toplevelVariable", "toplevel variables",\n },\n {\n false, 'l', "localVariable", "local variables",\n },\n };" (storage_class_specifier) "static" (static) "static" (type_identifier) "kindDefinition" (init_declarator) "GdbinitKindTable [] = {\n {\n true, 'd', "definition", "definitions",\n },\n {\n false, 'D', "document", "documents",\n },\n {\n true, 't', "toplevelVariable", "toplevel variables",\n },\n {\n false, 'l', "localVariable", "local variables",\n },\n }" (array_declarator) "GdbinitKindTable []" (identifier) "GdbinitKindTable" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n {\n true, 'd', "definition", "definitions",\n },\n {\n false, 'D', "document", "documents",\n },\n {\n true, 't', "toplevelVariable", "toplevel variables",\n },\n {\n false, 'l', "localVariable", "local variables",\n },\n }" ({) "{" (initializer_list) "{\n true, 'd', "definition", "definitions",\n }" ({) "{" (true) "true" (,) "," (char_literal) "'d'" (') "'" (character) "d" (') "'" (,) "," (string_literal) ""definition"" (") """ (string_content) "definition" (") """ (,) "," (string_literal) ""definitions"" (") """ (string_content) "definitions" (") """ (,) "," (}) "}" (,) "," (initializer_list) "{\n false, 'D', "document", "documents",\n }" ({) "{" (false) "false" (,) "," (char_literal) "'D'" (') "'" (character) "D" (') "'" (,) "," (string_literal) ""document"" (") """ (string_content) "document" (") """ (,) "," (string_literal) ""documents"" (") """ (string_content) "documents" (") """ (,) "," (}) "}" (,) "," (initializer_list) "{\n true, 't', "toplevelVariable", "toplevel variables",\n }" ({) "{" (true) "true" (,) "," (char_literal) "'t'" (') "'" (character) "t" (') "'" (,) "," (string_literal) ""toplevelVariable"" (") """ (string_content) "toplevelVariable" (") """ (,) "," (string_literal) ""toplevel variables"" (") """ (string_content) "toplevel variables" (") """ (,) "," (}) "}" (,) "," (initializer_list) "{\n false, 'l', "localVariable", "local variables",\n }" ({) "{" (false) "false" (,) "," (char_literal) "'l'" (') "'" (character) "l" (') "'" (,) "," (string_literal) ""localVariable"" (") """ (string_content) "localVariable" (") """ (,) "," (string_literal) ""local variables"" (") """ (string_content) "local variables" (") """ (,) "," (}) "}" (,) "," (}) "}" (;) ";" (declaration) "static tagRegexTable GdbinitTagRegexTable [] = {\n {"^#.*", "",\n "", "{exclusive}", NULL, false},\n {"^define[[:space:]]+([^[:space:]]+)$", "\\1",\n "d", NULL, NULL, false},\n {"^document[[:space:]]+([^[:space:]]+)$", "\\1",\n "D", NULL, NULL, false},\n {"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "t", NULL, NULL, false},\n {"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "l", NULL, NULL, false},\n };" (storage_class_specifier) "static" (static) "static" (type_identifier) "tagRegexTable" (init_declarator) "GdbinitTagRegexTable [] = {\n {"^#.*", "",\n "", "{exclusive}", NULL, false},\n {"^define[[:space:]]+([^[:space:]]+)$", "\\1",\n "d", NULL, NULL, false},\n {"^document[[:space:]]+([^[:space:]]+)$", "\\1",\n "D", NULL, NULL, false},\n {"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "t", NULL, NULL, false},\n {"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "l", NULL, NULL, false},\n }" (array_declarator) "GdbinitTagRegexTable []" (identifier) "GdbinitTagRegexTable" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n {"^#.*", "",\n "", "{exclusive}", NULL, false},\n {"^define[[:space:]]+([^[:space:]]+)$", "\\1",\n "d", NULL, NULL, false},\n {"^document[[:space:]]+([^[:space:]]+)$", "\\1",\n "D", NULL, NULL, false},\n {"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "t", NULL, NULL, false},\n {"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "l", NULL, NULL, false},\n }" ({) "{" (initializer_list) "{"^#.*", "",\n "", "{exclusive}", NULL, false}" ({) "{" (string_literal) ""^#.*"" (") """ (string_content) "^#.*" (") """ (,) "," (string_literal) """" (") """ (") """ (,) "," (string_literal) """" (") """ (") """ (,) "," (string_literal) ""{exclusive}"" (") """ (string_content) "{exclusive}" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (false) "false" (}) "}" (,) "," (initializer_list) "{"^define[[:space:]]+([^[:space:]]+)$", "\\1",\n "d", NULL, NULL, false}" ({) "{" (string_literal) ""^define[[:space:]]+([^[:space:]]+)$"" (") """ (string_content) "^define[[:space:]]+([^[:space:]]+)$" (") """ (,) "," (string_literal) ""\\1"" (") """ (escape_sequence) "\\" (string_content) "1" (") """ (,) "," (string_literal) ""d"" (") """ (string_content) "d" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (false) "false" (}) "}" (,) "," (initializer_list) "{"^document[[:space:]]+([^[:space:]]+)$", "\\1",\n "D", NULL, NULL, false}" ({) "{" (string_literal) ""^document[[:space:]]+([^[:space:]]+)$"" (") """ (string_content) "^document[[:space:]]+([^[:space:]]+)$" (") """ (,) "," (string_literal) ""\\1"" (") """ (escape_sequence) "\\" (string_content) "1" (") """ (,) "," (string_literal) ""D"" (") """ (string_content) "D" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (false) "false" (}) "}" (,) "," (initializer_list) "{"^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "t", NULL, NULL, false}" ({) "{" (string_literal) ""^set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*="" (") """ (string_content) "^set[[:space:]]+" (escape_sequence) "\\" (string_content) "$([a-zA-Z0-9_]+)[[:space:]]*=" (") """ (,) "," (string_literal) ""\\1"" (") """ (escape_sequence) "\\" (string_content) "1" (") """ (,) "," (string_literal) ""t"" (") """ (string_content) "t" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (false) "false" (}) "}" (,) "," (initializer_list) "{"^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*=", "\\1",\n "l", NULL, NULL, false}" ({) "{" (string_literal) ""^[[:space:]]+set[[:space:]]+\\$([a-zA-Z0-9_]+)[[:space:]]*="" (") """ (string_content) "^[[:space:]]+set[[:space:]]+" (escape_sequence) "\\" (string_content) "$([a-zA-Z0-9_]+)[[:space:]]*=" (") """ (,) "," (string_literal) ""\\1"" (") """ (escape_sequence) "\\" (string_content) "1" (") """ (,) "," (string_literal) ""l"" (") """ (string_content) "l" (") """ (,) "," (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (false) "false" (}) "}" (,) "," (}) "}" (;) ";" (declaration) "parserDefinition* const def = parserNew ("Gdbinit");" (type_identifier) "parserDefinition" (init_declarator) "* const def = parserNew ("Gdbinit")" (pointer_declarator) "* const def" (*) "*" (type_qualifier) "const" (const) "const" (identifier) "def" (=) "=" (call_expression) "parserNew ("Gdbinit")" (identifier) "parserNew" (argument_list) "("Gdbinit")" (() "(" (string_literal) ""Gdbinit"" (") """ (string_content) "Gdbinit" (") """ ()) ")" (;) ";" (expression_statement) "def->enabled = true;" (assignment_expression) "def->enabled = true" (field_expression) "def->enabled" (identifier) "def" (->) "->" (field_identifier) "enabled" (=) "=" (true) "true" (;) ";" (expression_statement) "def->extensions = extensions;" (assignment_expression) "def->extensions = extensions" (field_expression) "def->extensions" (identifier) "def" (->) "->" (field_identifier) "extensions" (=) "=" (identifier) "extensions" (;) ";" (expression_statement) "def->patterns = patterns;" (assignment_expression) "def->patterns = patterns" (field_expression) "def->patterns" (identifier) "def" (->) "->" (field_identifier) "patterns" (=) "=" (identifier) "patterns" (;) ";" (expression_statement) "def->aliases = aliases;" (assignment_expression) "def->aliases = aliases" (field_expression) "def->aliases" (identifier) "def" (->) "->" (field_identifier) "aliases" (=) "=" (identifier) "aliases" (;) ";" (expression_statement) "def->method = METHOD_NOT_CRAFTED|METHOD_REGEX;" (assignment_expression) "def->method = METHOD_NOT_CRAFTED|METHOD_REGEX" (field_expression) "def->method" (identifier) "def" (->) "->" (field_identifier) "method" (=) "=" (binary_expression) "METHOD_NOT_CRAFTED|METHOD_REGEX" (identifier) "METHOD_NOT_CRAFTED" (|) "|" (identifier) "METHOD_REGEX" (;) ";" (expression_statement) "def->kindTable = GdbinitKindTable;" (assignment_expression) "def->kindTable = GdbinitKindTable" (field_expression) "def->kindTable" (identifier) "def" (->) "->" (field_identifier) "kindTable" (=) "=" (identifier) "GdbinitKindTable" (;) ";" (expression_statement) "def->kindCount = ARRAY_SIZE(GdbinitKindTable);" (assignment_expression) "def->kindCount = ARRAY_SIZE(GdbinitKindTable)" (field_expression) "def->kindCount" (identifier) "def" (->) "->" (field_identifier) "kindCount" (=) "=" (call_expression) "ARRAY_SIZE(GdbinitKindTable)" (identifier) "ARRAY_SIZE" (argument_list) "(GdbinitKindTable)" (() "(" (identifier) "GdbinitKindTable" ()) ")" (;) ";" (expression_statement) "def->tagRegexTable = GdbinitTagRegexTable;" (assignment_expression) "def->tagRegexTable = GdbinitTagRegexTable" (field_expression) "def->tagRegexTable" (identifier) "def" (->) "->" (field_identifier) "tagRegexTable" (=) "=" (identifier) "GdbinitTagRegexTable" (;) ";" (expression_statement) "def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable);" (assignment_expression) "def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable)" (field_expression) "def->tagRegexCount" (identifier) "def" (->) "->" (field_identifier) "tagRegexCount" (=) "=" (call_expression) "ARRAY_SIZE(GdbinitTagRegexTable)" (identifier) "ARRAY_SIZE" (argument_list) "(GdbinitTagRegexTable)" (() "(" (identifier) "GdbinitTagRegexTable" ()) ")" (;) ";" (expression_statement) "def->initialize = initializeGdbinitParser;" (assignment_expression) "def->initialize = initializeGdbinitParser" (field_expression) "def->initialize" (identifier) "def" (->) "->" (field_identifier) "initialize" (=) "=" (identifier) "initializeGdbinitParser" (;) ";" (return_statement) "return def;" (return) "return" (identifier) "def" (;) ";" (}) "}"
519
1
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 25.51, "nodes": 236, "errors": 0, "source_hash": "cc0eb6eccb03dc77d78db0420bf764cbe0e596c0de71249bebdac6b918c9055c", "categorized_nodes": 121}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"general.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"general.h\"", "parent": 0, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include \"parse.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": "\"parse.h\"", "parent": 3, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include \"routines.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": "\"routines.h\"", "parent": 6, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include \"field.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": "\"field.h\"", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 18}}, {"id": 12, "type": "preproc_include", "text": "#include \"xtag.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"xtag.h\"", "parent": 12, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 17}}, {"id": 15, "type": "function_definition", "text": "static void initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)\n{\n}", "parent": null, "children": [16, 17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 11}}, {"id": 17, "type": "function_declarator", "text": "initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)", "parent": 15, "children": [18, 19], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 79}}, {"id": 18, "type": "identifier", "text": "initializeGdbinitParser", "parent": 17, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 35}}, {"id": 19, "type": "parameter_list", "text": "(const langType language CTAGS_ATTR_UNUSED)", "parent": 17, "children": [20], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 79}}, {"id": 20, "type": "parameter_declaration", "text": "const langType language CTAGS_ATTR_UNUSED", "parent": 19, "children": [21, 22, 24], "start_point": {"row": 10, "column": 37}, "end_point": {"row": 10, "column": 78}}, {"id": 21, "type": "type_identifier", "text": "langType", "parent": 20, "children": [], "start_point": {"row": 10, "column": 43}, "end_point": {"row": 10, "column": 51}}, {"id": 22, "type": "ERROR", "text": "language", "parent": 20, "children": [23], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 60}}, {"id": 23, "type": "identifier", "text": "language", "parent": 22, "children": [], "start_point": {"row": 10, "column": 52}, "end_point": {"row": 10, "column": 60}}, {"id": 24, "type": "identifier", "text": "CTAGS_ATTR_UNUSED", "parent": 20, "children": [], "start_point": {"row": 10, "column": 61}, "end_point": {"row": 10, "column": 78}}, {"id": 25, "type": "function_definition", "text": "extern parserDefinition* GdbinitParser (void)\n{\n\tstatic const char *const extensions [] = {\n\t\t\"gdb\",\n\t\tNULL\n\t};\n\n\tstatic const char *const aliases [] = {\n\t\tNULL\n\t};\n\n\tstatic const char *const patterns [] = {\n\t\t\".gdbinit\",\n\t\tNULL\n\t};\n\n\tstatic kindDefinition GdbinitKindTable [] = {\n\t\t{\n\t\t true, 'd', \"definition\", \"definitions\",\n\t\t},\n\t\t{\n\t\t false, 'D', \"document\", \"documents\",\n\t\t},\n\t\t{\n\t\t true, 't', \"toplevelVariable\", \"toplevel variables\",\n\t\t},\n\t\t{\n\t\t false, 'l', \"localVariable\", \"local variables\",\n\t\t},\n\t};\n\tstatic tagRegexTable GdbinitTagRegexTable [] = {\n\t\t{\"^#.*\", \"\",\n\t\t\"\", \"{exclusive}\", NULL, false},\n\t\t{\"^define[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"d\", NULL, NULL, false},\n\t\t{\"^document[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"D\", NULL, NULL, false},\n\t\t{\"^set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"t\", NULL, NULL, false},\n\t\t{\"^[[:space:]]+set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"l\", NULL, NULL, false},\n\t};\n\n\n\tparserDefinition* const def = parserNew (\"Gdbinit\");\n\n\tdef->enabled = true;\n\tdef->extensions = extensions;\n\tdef->patterns = patterns;\n\tdef->aliases = aliases;\n\tdef->method = METHOD_NOT_CRAFTED|METHOD_REGEX;\n\tdef->kindTable = GdbinitKindTable;\n\tdef->kindCount = ARRAY_SIZE(GdbinitKindTable);\n\tdef->tagRegexTable = GdbinitTagRegexTable;\n\tdef->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable);\n\tdef->initialize = initializeGdbinitParser;\n\n\treturn def;\n}", "parent": null, "children": [26, 28, 29], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 72, "column": 1}}, {"id": 26, "type": "storage_class_specifier", "text": "extern", "parent": 25, "children": [27], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 27, "type": "extern", "text": "extern", "parent": 26, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 6}}, {"id": 28, "type": "type_identifier", "text": "parserDefinition", "parent": 25, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 23}}, {"id": 29, "type": "pointer_declarator", "text": "* GdbinitParser (void)", "parent": 25, "children": [30, 31], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 45}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 14, "column": 23}, "end_point": {"row": 14, "column": 24}}, {"id": 31, "type": "function_declarator", "text": "GdbinitParser (void)", "parent": 29, "children": [32, 33], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 45}}, {"id": 32, "type": "identifier", "text": "GdbinitParser", "parent": 31, "children": [], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 38}}, {"id": 33, "type": "parameter_list", "text": "(void)", "parent": 31, "children": [34], "start_point": {"row": 14, "column": 39}, "end_point": {"row": 14, "column": 45}}, {"id": 34, "type": "parameter_declaration", "text": "void", "parent": 33, "children": [35], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 44}}, {"id": 35, "type": "primitive_type", "text": "void", "parent": 34, "children": [], "start_point": {"row": 14, "column": 40}, "end_point": {"row": 14, "column": 44}}, {"id": 36, "type": "declaration", "text": "static const char *const extensions [] = {\n\t\t\"gdb\",\n\t\tNULL\n\t};", "parent": 25, "children": [37, 38], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 19, "column": 3}}, {"id": 37, "type": "primitive_type", "text": "char", "parent": 36, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 18}}, {"id": 38, "type": "init_declarator", "text": "*const extensions [] = {\n\t\t\"gdb\",\n\t\tNULL\n\t}", "parent": 36, "children": [39, 43, 44], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 19, "column": 2}}, {"id": 39, "type": "pointer_declarator", "text": "*const extensions []", "parent": 38, "children": [40, 41], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 39}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 16, "column": 19}, "end_point": {"row": 16, "column": 20}}, {"id": 41, "type": "array_declarator", "text": "extensions []", "parent": 39, "children": [42], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 39}}, {"id": 42, "type": "identifier", "text": "extensions", "parent": 41, "children": [], "start_point": {"row": 16, "column": 26}, "end_point": {"row": 16, "column": 36}}, {"id": 43, "type": "=", "text": "=", "parent": 38, "children": [], "start_point": {"row": 16, "column": 40}, "end_point": {"row": 16, "column": 41}}, {"id": 44, "type": "initializer_list", "text": "{\n\t\t\"gdb\",\n\t\tNULL\n\t}", "parent": 38, "children": [45, 46], "start_point": {"row": 16, "column": 42}, "end_point": {"row": 19, "column": 2}}, {"id": 45, "type": "string_literal", "text": "\"gdb\"", "parent": 44, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 7}}, {"id": 46, "type": "null", "text": "NULL", "parent": 44, "children": [47], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 47, "type": "NULL", "text": "NULL", "parent": 46, "children": [], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 6}}, {"id": 48, "type": "declaration", "text": "static const char *const aliases [] = {\n\t\tNULL\n\t};", "parent": 25, "children": [49, 50], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 23, "column": 3}}, {"id": 49, "type": "primitive_type", "text": "char", "parent": 48, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 18}}, {"id": 50, "type": "init_declarator", "text": "*const aliases [] = {\n\t\tNULL\n\t}", "parent": 48, "children": [51, 55, 56], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 23, "column": 2}}, {"id": 51, "type": "pointer_declarator", "text": "*const aliases []", "parent": 50, "children": [52, 53], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 36}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 20}}, {"id": 53, "type": "array_declarator", "text": "aliases []", "parent": 51, "children": [54], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 36}}, {"id": 54, "type": "identifier", "text": "aliases", "parent": 53, "children": [], "start_point": {"row": 21, "column": 26}, "end_point": {"row": 21, "column": 33}}, {"id": 55, "type": "=", "text": "=", "parent": 50, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 38}}, {"id": 56, "type": "initializer_list", "text": "{\n\t\tNULL\n\t}", "parent": 50, "children": [57], "start_point": {"row": 21, "column": 39}, "end_point": {"row": 23, "column": 2}}, {"id": 57, "type": "null", "text": "NULL", "parent": 56, "children": [58], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 6}}, {"id": 58, "type": "NULL", "text": "NULL", "parent": 57, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 6}}, {"id": 59, "type": "declaration", "text": "static const char *const patterns [] = {\n\t\t\".gdbinit\",\n\t\tNULL\n\t};", "parent": 25, "children": [60, 61], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 28, "column": 3}}, {"id": 60, "type": "primitive_type", "text": "char", "parent": 59, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 18}}, {"id": 61, "type": "init_declarator", "text": "*const patterns [] = {\n\t\t\".gdbinit\",\n\t\tNULL\n\t}", "parent": 59, "children": [62, 66, 67], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 28, "column": 2}}, {"id": 62, "type": "pointer_declarator", "text": "*const patterns []", "parent": 61, "children": [63, 64], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 37}}, {"id": 63, "type": "*", "text": "*", "parent": 62, "children": [], "start_point": {"row": 25, "column": 19}, "end_point": {"row": 25, "column": 20}}, {"id": 64, "type": "array_declarator", "text": "patterns []", "parent": 62, "children": [65], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 37}}, {"id": 65, "type": "identifier", "text": "patterns", "parent": 64, "children": [], "start_point": {"row": 25, "column": 26}, "end_point": {"row": 25, "column": 34}}, {"id": 66, "type": "=", "text": "=", "parent": 61, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 39}}, {"id": 67, "type": "initializer_list", "text": "{\n\t\t\".gdbinit\",\n\t\tNULL\n\t}", "parent": 61, "children": [68, 69], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 28, "column": 2}}, {"id": 68, "type": "string_literal", "text": "\".gdbinit\"", "parent": 67, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 12}}, {"id": 69, "type": "null", "text": "NULL", "parent": 67, "children": [70], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 6}}, {"id": 70, "type": "NULL", "text": "NULL", "parent": 69, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 6}}, {"id": 71, "type": "declaration", "text": "static kindDefinition GdbinitKindTable [] = {\n\t\t{\n\t\t true, 'd', \"definition\", \"definitions\",\n\t\t},\n\t\t{\n\t\t false, 'D', \"document\", \"documents\",\n\t\t},\n\t\t{\n\t\t true, 't', \"toplevelVariable\", \"toplevel variables\",\n\t\t},\n\t\t{\n\t\t false, 'l', \"localVariable\", \"local variables\",\n\t\t},\n\t};", "parent": 25, "children": [72, 73], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 43, "column": 3}}, {"id": 72, "type": "type_identifier", "text": "kindDefinition", "parent": 71, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 22}}, {"id": 73, "type": "init_declarator", "text": "GdbinitKindTable [] = {\n\t\t{\n\t\t true, 'd', \"definition\", \"definitions\",\n\t\t},\n\t\t{\n\t\t false, 'D', \"document\", \"documents\",\n\t\t},\n\t\t{\n\t\t true, 't', \"toplevelVariable\", \"toplevel variables\",\n\t\t},\n\t\t{\n\t\t false, 'l', \"localVariable\", \"local variables\",\n\t\t},\n\t}", "parent": 71, "children": [74, 76, 77], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 43, "column": 2}}, {"id": 74, "type": "array_declarator", "text": "GdbinitKindTable []", "parent": 73, "children": [75], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 42}}, {"id": 75, "type": "identifier", "text": "GdbinitKindTable", "parent": 74, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 39}}, {"id": 76, "type": "=", "text": "=", "parent": 73, "children": [], "start_point": {"row": 30, "column": 43}, "end_point": {"row": 30, "column": 44}}, {"id": 77, "type": "initializer_list", "text": "{\n\t\t{\n\t\t true, 'd', \"definition\", \"definitions\",\n\t\t},\n\t\t{\n\t\t false, 'D', \"document\", \"documents\",\n\t\t},\n\t\t{\n\t\t true, 't', \"toplevelVariable\", \"toplevel variables\",\n\t\t},\n\t\t{\n\t\t false, 'l', \"localVariable\", \"local variables\",\n\t\t},\n\t}", "parent": 73, "children": [78, 86, 94, 102], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 43, "column": 2}}, {"id": 78, "type": "initializer_list", "text": "{\n\t\t true, 'd', \"definition\", \"definitions\",\n\t\t}", "parent": 77, "children": [79, 80, 84, 85], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 33, "column": 3}}, {"id": 79, "type": "true", "text": "true", "parent": 78, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 8}}, {"id": 80, "type": "char_literal", "text": "'d'", "parent": 78, "children": [81, 82, 83], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 13}}, {"id": 81, "type": "'", "text": "'", "parent": 80, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 11}}, {"id": 82, "type": "character", "text": "d", "parent": 80, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 12}}, {"id": 83, "type": "'", "text": "'", "parent": 80, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 13}}, {"id": 84, "type": "string_literal", "text": "\"definition\"", "parent": 78, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 27}}, {"id": 85, "type": "string_literal", "text": "\"definitions\"", "parent": 78, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 42}}, {"id": 86, "type": "initializer_list", "text": "{\n\t\t false, 'D', \"document\", \"documents\",\n\t\t}", "parent": 77, "children": [87, 88, 92, 93], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 36, "column": 3}}, {"id": 87, "type": "false", "text": "false", "parent": 86, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 9}}, {"id": 88, "type": "char_literal", "text": "'D'", "parent": 86, "children": [89, 90, 91], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 14}}, {"id": 89, "type": "'", "text": "'", "parent": 88, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 12}}, {"id": 90, "type": "character", "text": "D", "parent": 88, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 13}}, {"id": 91, "type": "'", "text": "'", "parent": 88, "children": [], "start_point": {"row": 35, "column": 13}, "end_point": {"row": 35, "column": 14}}, {"id": 92, "type": "string_literal", "text": "\"document\"", "parent": 86, "children": [], "start_point": {"row": 35, "column": 16}, "end_point": {"row": 35, "column": 26}}, {"id": 93, "type": "string_literal", "text": "\"documents\"", "parent": 86, "children": [], "start_point": {"row": 35, "column": 28}, "end_point": {"row": 35, "column": 39}}, {"id": 94, "type": "initializer_list", "text": "{\n\t\t true, 't', \"toplevelVariable\", \"toplevel variables\",\n\t\t}", "parent": 77, "children": [95, 96, 100, 101], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 39, "column": 3}}, {"id": 95, "type": "true", "text": "true", "parent": 94, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 8}}, {"id": 96, "type": "char_literal", "text": "'t'", "parent": 94, "children": [97, 98, 99], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 13}}, {"id": 97, "type": "'", "text": "'", "parent": 96, "children": [], "start_point": {"row": 38, "column": 10}, "end_point": {"row": 38, "column": 11}}, {"id": 98, "type": "character", "text": "t", "parent": 96, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 12}}, {"id": 99, "type": "'", "text": "'", "parent": 96, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 13}}, {"id": 100, "type": "string_literal", "text": "\"toplevelVariable\"", "parent": 94, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 33}}, {"id": 101, "type": "string_literal", "text": "\"toplevel variables\"", "parent": 94, "children": [], "start_point": {"row": 38, "column": 35}, "end_point": {"row": 38, "column": 55}}, {"id": 102, "type": "initializer_list", "text": "{\n\t\t false, 'l', \"localVariable\", \"local variables\",\n\t\t}", "parent": 77, "children": [103, 104, 108, 109], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 42, "column": 3}}, {"id": 103, "type": "false", "text": "false", "parent": 102, "children": [], "start_point": {"row": 41, "column": 4}, "end_point": {"row": 41, "column": 9}}, {"id": 104, "type": "char_literal", "text": "'l'", "parent": 102, "children": [105, 106, 107], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 14}}, {"id": 105, "type": "'", "text": "'", "parent": 104, "children": [], "start_point": {"row": 41, "column": 11}, "end_point": {"row": 41, "column": 12}}, {"id": 106, "type": "character", "text": "l", "parent": 104, "children": [], "start_point": {"row": 41, "column": 12}, "end_point": {"row": 41, "column": 13}}, {"id": 107, "type": "'", "text": "'", "parent": 104, "children": [], "start_point": {"row": 41, "column": 13}, "end_point": {"row": 41, "column": 14}}, {"id": 108, "type": "string_literal", "text": "\"localVariable\"", "parent": 102, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 31}}, {"id": 109, "type": "string_literal", "text": "\"local variables\"", "parent": 102, "children": [], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 50}}, {"id": 110, "type": "declaration", "text": "static tagRegexTable GdbinitTagRegexTable [] = {\n\t\t{\"^#.*\", \"\",\n\t\t\"\", \"{exclusive}\", NULL, false},\n\t\t{\"^define[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"d\", NULL, NULL, false},\n\t\t{\"^document[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"D\", NULL, NULL, false},\n\t\t{\"^set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"t\", NULL, NULL, false},\n\t\t{\"^[[:space:]]+set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"l\", NULL, NULL, false},\n\t};", "parent": 25, "children": [111, 112], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 55, "column": 3}}, {"id": 111, "type": "type_identifier", "text": "tagRegexTable", "parent": 110, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 21}}, {"id": 112, "type": "init_declarator", "text": "GdbinitTagRegexTable [] = {\n\t\t{\"^#.*\", \"\",\n\t\t\"\", \"{exclusive}\", NULL, false},\n\t\t{\"^define[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"d\", NULL, NULL, false},\n\t\t{\"^document[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"D\", NULL, NULL, false},\n\t\t{\"^set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"t\", NULL, NULL, false},\n\t\t{\"^[[:space:]]+set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"l\", NULL, NULL, false},\n\t}", "parent": 110, "children": [113, 115, 116], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 55, "column": 2}}, {"id": 113, "type": "array_declarator", "text": "GdbinitTagRegexTable []", "parent": 112, "children": [114], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 45}}, {"id": 114, "type": "identifier", "text": "GdbinitTagRegexTable", "parent": 113, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 42}}, {"id": 115, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 44, "column": 46}, "end_point": {"row": 44, "column": 47}}, {"id": 116, "type": "initializer_list", "text": "{\n\t\t{\"^#.*\", \"\",\n\t\t\"\", \"{exclusive}\", NULL, false},\n\t\t{\"^define[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"d\", NULL, NULL, false},\n\t\t{\"^document[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"D\", NULL, NULL, false},\n\t\t{\"^set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"t\", NULL, NULL, false},\n\t\t{\"^[[:space:]]+set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"l\", NULL, NULL, false},\n\t}", "parent": 112, "children": [117, 125, 135, 145, 156], "start_point": {"row": 44, "column": 48}, "end_point": {"row": 55, "column": 2}}, {"id": 117, "type": "initializer_list", "text": "{\"^#.*\", \"\",\n\t\t\"\", \"{exclusive}\", NULL, false}", "parent": 116, "children": [118, 119, 120, 121, 122, 124], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 46, "column": 33}}, {"id": 118, "type": "string_literal", "text": "\"^#.*\"", "parent": 117, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 9}}, {"id": 119, "type": "string_literal", "text": "\"\"", "parent": 117, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 13}}, {"id": 120, "type": "string_literal", "text": "\"\"", "parent": 117, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 4}}, {"id": 121, "type": "string_literal", "text": "\"{exclusive}\"", "parent": 117, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 19}}, {"id": 122, "type": "null", "text": "NULL", "parent": 117, "children": [123], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 25}}, {"id": 123, "type": "NULL", "text": "NULL", "parent": 122, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 25}}, {"id": 124, "type": "false", "text": "false", "parent": 117, "children": [], "start_point": {"row": 46, "column": 27}, "end_point": {"row": 46, "column": 32}}, {"id": 125, "type": "initializer_list", "text": "{\"^define[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"d\", NULL, NULL, false}", "parent": 116, "children": [126, 127, 129, 130, 132, 134], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 48, "column": 25}}, {"id": 126, "type": "string_literal", "text": "\"^define[[:space:]]+([^[:space:]]+)$\"", "parent": 125, "children": [], "start_point": {"row": 47, "column": 3}, "end_point": {"row": 47, "column": 40}}, {"id": 127, "type": "string_literal", "text": "\"\\\\1\"", "parent": 125, "children": [128], "start_point": {"row": 47, "column": 42}, "end_point": {"row": 47, "column": 47}}, {"id": 128, "type": "escape_sequence", "text": "\\\\", "parent": 127, "children": [], "start_point": {"row": 47, "column": 43}, "end_point": {"row": 47, "column": 45}}, {"id": 129, "type": "string_literal", "text": "\"d\"", "parent": 125, "children": [], "start_point": {"row": 48, "column": 2}, "end_point": {"row": 48, "column": 5}}, {"id": 130, "type": "null", "text": "NULL", "parent": 125, "children": [131], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 11}}, {"id": 131, "type": "NULL", "text": "NULL", "parent": 130, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 11}}, {"id": 132, "type": "null", "text": "NULL", "parent": 125, "children": [133], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 17}}, {"id": 133, "type": "NULL", "text": "NULL", "parent": 132, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 17}}, {"id": 134, "type": "false", "text": "false", "parent": 125, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 24}}, {"id": 135, "type": "initializer_list", "text": "{\"^document[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"D\", NULL, NULL, false}", "parent": 116, "children": [136, 137, 139, 140, 142, 144], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 50, "column": 25}}, {"id": 136, "type": "string_literal", "text": "\"^document[[:space:]]+([^[:space:]]+)$\"", "parent": 135, "children": [], "start_point": {"row": 49, "column": 3}, "end_point": {"row": 49, "column": 42}}, {"id": 137, "type": "string_literal", "text": "\"\\\\1\"", "parent": 135, "children": [138], "start_point": {"row": 49, "column": 44}, "end_point": {"row": 49, "column": 49}}, {"id": 138, "type": "escape_sequence", "text": "\\\\", "parent": 137, "children": [], "start_point": {"row": 49, "column": 45}, "end_point": {"row": 49, "column": 47}}, {"id": 139, "type": "string_literal", "text": "\"D\"", "parent": 135, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 50, "column": 5}}, {"id": 140, "type": "null", "text": "NULL", "parent": 135, "children": [141], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 11}}, {"id": 141, "type": "NULL", "text": "NULL", "parent": 140, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 11}}, {"id": 142, "type": "null", "text": "NULL", "parent": 135, "children": [143], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 17}}, {"id": 143, "type": "NULL", "text": "NULL", "parent": 142, "children": [], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 17}}, {"id": 144, "type": "false", "text": "false", "parent": 135, "children": [], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 24}}, {"id": 145, "type": "initializer_list", "text": "{\"^set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"t\", NULL, NULL, false}", "parent": 116, "children": [146, 148, 150, 151, 153, 155], "start_point": {"row": 51, "column": 2}, "end_point": {"row": 52, "column": 25}}, {"id": 146, "type": "string_literal", "text": "\"^set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\"", "parent": 145, "children": [147], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 52}}, {"id": 147, "type": "escape_sequence", "text": "\\\\", "parent": 146, "children": [], "start_point": {"row": 51, "column": 20}, "end_point": {"row": 51, "column": 22}}, {"id": 148, "type": "string_literal", "text": "\"\\\\1\"", "parent": 145, "children": [149], "start_point": {"row": 51, "column": 54}, "end_point": {"row": 51, "column": 59}}, {"id": 149, "type": "escape_sequence", "text": "\\\\", "parent": 148, "children": [], "start_point": {"row": 51, "column": 55}, "end_point": {"row": 51, "column": 57}}, {"id": 150, "type": "string_literal", "text": "\"t\"", "parent": 145, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 5}}, {"id": 151, "type": "null", "text": "NULL", "parent": 145, "children": [152], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 11}}, {"id": 152, "type": "NULL", "text": "NULL", "parent": 151, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 11}}, {"id": 153, "type": "null", "text": "NULL", "parent": 145, "children": [154], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 17}}, {"id": 154, "type": "NULL", "text": "NULL", "parent": 153, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 17}}, {"id": 155, "type": "false", "text": "false", "parent": 145, "children": [], "start_point": {"row": 52, "column": 19}, "end_point": {"row": 52, "column": 24}}, {"id": 156, "type": "initializer_list", "text": "{\"^[[:space:]]+set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"l\", NULL, NULL, false}", "parent": 116, "children": [157, 159, 161, 162, 164, 166], "start_point": {"row": 53, "column": 2}, "end_point": {"row": 54, "column": 25}}, {"id": 157, "type": "string_literal", "text": "\"^[[:space:]]+set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\"", "parent": 156, "children": [158], "start_point": {"row": 53, "column": 3}, "end_point": {"row": 53, "column": 64}}, {"id": 158, "type": "escape_sequence", "text": "\\\\", "parent": 157, "children": [], "start_point": {"row": 53, "column": 32}, "end_point": {"row": 53, "column": 34}}, {"id": 159, "type": "string_literal", "text": "\"\\\\1\"", "parent": 156, "children": [160], "start_point": {"row": 53, "column": 66}, "end_point": {"row": 53, "column": 71}}, {"id": 160, "type": "escape_sequence", "text": "\\\\", "parent": 159, "children": [], "start_point": {"row": 53, "column": 67}, "end_point": {"row": 53, "column": 69}}, {"id": 161, "type": "string_literal", "text": "\"l\"", "parent": 156, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 5}}, {"id": 162, "type": "null", "text": "NULL", "parent": 156, "children": [163], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 11}}, {"id": 163, "type": "NULL", "text": "NULL", "parent": 162, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 11}}, {"id": 164, "type": "null", "text": "NULL", "parent": 156, "children": [165], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 17}}, {"id": 165, "type": "NULL", "text": "NULL", "parent": 164, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 17}}, {"id": 166, "type": "false", "text": "false", "parent": 156, "children": [], "start_point": {"row": 54, "column": 19}, "end_point": {"row": 54, "column": 24}}, {"id": 167, "type": "declaration", "text": "parserDefinition* const def = parserNew (\"Gdbinit\");", "parent": 25, "children": [168, 169], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 53}}, {"id": 168, "type": "type_identifier", "text": "parserDefinition", "parent": 167, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 17}}, {"id": 169, "type": "init_declarator", "text": "* const def = parserNew (\"Gdbinit\")", "parent": 167, "children": [170, 172, 173], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 52}}, {"id": 170, "type": "pointer_declarator", "text": "* const def", "parent": 169, "children": [171], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 28}}, {"id": 171, "type": "*", "text": "*", "parent": 170, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 18}}, {"id": 172, "type": "=", "text": "=", "parent": 169, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 30}}, {"id": 173, "type": "call_expression", "text": "parserNew (\"Gdbinit\")", "parent": 169, "children": [174, 175], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 52}}, {"id": 174, "type": "identifier", "text": "parserNew", "parent": 173, "children": [], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 40}}, {"id": 175, "type": "argument_list", "text": "(\"Gdbinit\")", "parent": 173, "children": [176], "start_point": {"row": 58, "column": 41}, "end_point": {"row": 58, "column": 52}}, {"id": 176, "type": "string_literal", "text": "\"Gdbinit\"", "parent": 175, "children": [], "start_point": {"row": 58, "column": 42}, "end_point": {"row": 58, "column": 51}}, {"id": 177, "type": "assignment_expression", "text": "def->enabled = true", "parent": 25, "children": [178, 180, 181], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 26}}, {"id": 178, "type": "field_expression", "text": "def->enabled", "parent": 177, "children": [179], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 60, "column": 13}}, {"id": 179, "type": "field_identifier", "text": "enabled", "parent": 178, "children": [], "start_point": {"row": 60, "column": 6}, "end_point": {"row": 60, "column": 13}}, {"id": 180, "type": "=", "text": "=", "parent": 177, "children": [], "start_point": {"row": 60, "column": 20}, "end_point": {"row": 60, "column": 21}}, {"id": 181, "type": "true", "text": "true", "parent": 177, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 26}}, {"id": 182, "type": "assignment_expression", "text": "def->extensions = extensions", "parent": 25, "children": [183, 185, 186], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 32}}, {"id": 183, "type": "field_expression", "text": "def->extensions", "parent": 182, "children": [184], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 16}}, {"id": 184, "type": "field_identifier", "text": "extensions", "parent": 183, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 16}}, {"id": 185, "type": "=", "text": "=", "parent": 182, "children": [], "start_point": {"row": 61, "column": 20}, "end_point": {"row": 61, "column": 21}}, {"id": 186, "type": "identifier", "text": "extensions", "parent": 182, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 32}}, {"id": 187, "type": "assignment_expression", "text": "def->patterns = patterns", "parent": 25, "children": [188, 190, 191], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 30}}, {"id": 188, "type": "field_expression", "text": "def->patterns", "parent": 187, "children": [189], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 14}}, {"id": 189, "type": "field_identifier", "text": "patterns", "parent": 188, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 14}}, {"id": 190, "type": "=", "text": "=", "parent": 187, "children": [], "start_point": {"row": 62, "column": 20}, "end_point": {"row": 62, "column": 21}}, {"id": 191, "type": "identifier", "text": "patterns", "parent": 187, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 30}}, {"id": 192, "type": "assignment_expression", "text": "def->aliases = aliases", "parent": 25, "children": [193, 195, 196], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 29}}, {"id": 193, "type": "field_expression", "text": "def->aliases", "parent": 192, "children": [194], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 13}}, {"id": 194, "type": "field_identifier", "text": "aliases", "parent": 193, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 13}}, {"id": 195, "type": "=", "text": "=", "parent": 192, "children": [], "start_point": {"row": 63, "column": 20}, "end_point": {"row": 63, "column": 21}}, {"id": 196, "type": "identifier", "text": "aliases", "parent": 192, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 29}}, {"id": 197, "type": "assignment_expression", "text": "def->method = METHOD_NOT_CRAFTED|METHOD_REGEX", "parent": 25, "children": [198, 200, 201], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 53}}, {"id": 198, "type": "field_expression", "text": "def->method", "parent": 197, "children": [199], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 12}}, {"id": 199, "type": "field_identifier", "text": "method", "parent": 198, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 12}}, {"id": 200, "type": "=", "text": "=", "parent": 197, "children": [], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 21}}, {"id": 201, "type": "binary_expression", "text": "METHOD_NOT_CRAFTED|METHOD_REGEX", "parent": 197, "children": [202, 203], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 53}}, {"id": 202, "type": "identifier", "text": "METHOD_NOT_CRAFTED", "parent": 201, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 40}}, {"id": 203, "type": "identifier", "text": "METHOD_REGEX", "parent": 201, "children": [], "start_point": {"row": 64, "column": 41}, "end_point": {"row": 64, "column": 53}}, {"id": 204, "type": "assignment_expression", "text": "def->kindTable = GdbinitKindTable", "parent": 25, "children": [205, 207, 208], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 38}}, {"id": 205, "type": "field_expression", "text": "def->kindTable", "parent": 204, "children": [206], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 15}}, {"id": 206, "type": "field_identifier", "text": "kindTable", "parent": 205, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 15}}, {"id": 207, "type": "=", "text": "=", "parent": 204, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 21}}, {"id": 208, "type": "identifier", "text": "GdbinitKindTable", "parent": 204, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 38}}, {"id": 209, "type": "assignment_expression", "text": "def->kindCount = ARRAY_SIZE(GdbinitKindTable)", "parent": 25, "children": [210, 212, 213], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 50}}, {"id": 210, "type": "field_expression", "text": "def->kindCount", "parent": 209, "children": [211], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 15}}, {"id": 211, "type": "field_identifier", "text": "kindCount", "parent": 210, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 15}}, {"id": 212, "type": "=", "text": "=", "parent": 209, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 21}}, {"id": 213, "type": "call_expression", "text": "ARRAY_SIZE(GdbinitKindTable)", "parent": 209, "children": [214, 215], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 50}}, {"id": 214, "type": "identifier", "text": "ARRAY_SIZE", "parent": 213, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 32}}, {"id": 215, "type": "argument_list", "text": "(GdbinitKindTable)", "parent": 213, "children": [216], "start_point": {"row": 66, "column": 32}, "end_point": {"row": 66, "column": 50}}, {"id": 216, "type": "identifier", "text": "GdbinitKindTable", "parent": 215, "children": [], "start_point": {"row": 66, "column": 33}, "end_point": {"row": 66, "column": 49}}, {"id": 217, "type": "assignment_expression", "text": "def->tagRegexTable = GdbinitTagRegexTable", "parent": 25, "children": [218, 220, 221], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 42}}, {"id": 218, "type": "field_expression", "text": "def->tagRegexTable", "parent": 217, "children": [219], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 19}}, {"id": 219, "type": "field_identifier", "text": "tagRegexTable", "parent": 218, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 19}}, {"id": 220, "type": "=", "text": "=", "parent": 217, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 21}}, {"id": 221, "type": "identifier", "text": "GdbinitTagRegexTable", "parent": 217, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 42}}, {"id": 222, "type": "assignment_expression", "text": "def->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable)", "parent": 25, "children": [223, 225, 226], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 54}}, {"id": 223, "type": "field_expression", "text": "def->tagRegexCount", "parent": 222, "children": [224], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 68, "column": 19}}, {"id": 224, "type": "field_identifier", "text": "tagRegexCount", "parent": 223, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 19}}, {"id": 225, "type": "=", "text": "=", "parent": 222, "children": [], "start_point": {"row": 68, "column": 20}, "end_point": {"row": 68, "column": 21}}, {"id": 226, "type": "call_expression", "text": "ARRAY_SIZE(GdbinitTagRegexTable)", "parent": 222, "children": [227, 228], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 54}}, {"id": 227, "type": "identifier", "text": "ARRAY_SIZE", "parent": 226, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 32}}, {"id": 228, "type": "argument_list", "text": "(GdbinitTagRegexTable)", "parent": 226, "children": [229], "start_point": {"row": 68, "column": 32}, "end_point": {"row": 68, "column": 54}}, {"id": 229, "type": "identifier", "text": "GdbinitTagRegexTable", "parent": 228, "children": [], "start_point": {"row": 68, "column": 33}, "end_point": {"row": 68, "column": 53}}, {"id": 230, "type": "assignment_expression", "text": "def->initialize = initializeGdbinitParser", "parent": 25, "children": [231, 233, 234], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 45}}, {"id": 231, "type": "field_expression", "text": "def->initialize", "parent": 230, "children": [232], "start_point": {"row": 69, "column": 1}, "end_point": {"row": 69, "column": 16}}, {"id": 232, "type": "field_identifier", "text": "initialize", "parent": 231, "children": [], "start_point": {"row": 69, "column": 6}, "end_point": {"row": 69, "column": 16}}, {"id": 233, "type": "=", "text": "=", "parent": 230, "children": [], "start_point": {"row": 69, "column": 20}, "end_point": {"row": 69, "column": 21}}, {"id": 234, "type": "identifier", "text": "initializeGdbinitParser", "parent": 230, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 45}}, {"id": 235, "type": "return_statement", "text": "return def;", "parent": 25, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 12}}]}, "node_categories": {"declarations": {"functions": [15, 17, 25, 31], "variables": [20, 34, 36, 48, 59, 71, 110, 167], "classes": [26], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [173, 178, 183, 188, 193, 198, 201, 205, 210, 213, 218, 223, 226, 231], "assignments": [177, 182, 187, 192, 197, 204, 209, 217, 222, 230], "loops": [], "conditionals": [18, 21, 23, 24, 28, 32, 42, 54, 65, 72, 75, 111, 114, 168, 174, 179, 184, 186, 189, 191, 194, 196, 199, 202, 203, 206, 208, 211, 214, 216, 219, 221, 224, 227, 229, 232, 234], "returns": [235], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 45, 68, 80, 84, 85, 88, 92, 93, 96, 100, 101, 104, 108, 109, 118, 119, 120, 121, 126, 127, 129, 136, 137, 139, 146, 148, 150, 157, 159, 161, 176], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "initializeGdbinitParser", "text_snippet": "static void initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)\n{\n}"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "extern parserDefinition* GdbinitParser (void)\n{\n\tstatic const char *const extensions [] = {\n\t\t\"gdb\","}, {"node_id": 31, "universal_type": "function", "name": "unknown", "text_snippet": "GdbinitParser (void)"}], "class_declarations": [{"node_id": 26, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 0, "text": "#include \"general.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"parse.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"routines.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"field.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"xtag.h\"\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/*\n * Generated by ./misc/optlib2c from optlib/gdbinit.ctags, Don't edit this manually.\n */\n#include \"general.h\"\n#include \"parse.h\"\n#include \"routines.h\"\n#include \"field.h\"\n#include \"xtag.h\"\n\n\nstatic void initializeGdbinitParser (const langType language CTAGS_ATTR_UNUSED)\n{\n}\n\nextern parserDefinition* GdbinitParser (void)\n{\n\tstatic const char *const extensions [] = {\n\t\t\"gdb\",\n\t\tNULL\n\t};\n\n\tstatic const char *const aliases [] = {\n\t\tNULL\n\t};\n\n\tstatic const char *const patterns [] = {\n\t\t\".gdbinit\",\n\t\tNULL\n\t};\n\n\tstatic kindDefinition GdbinitKindTable [] = {\n\t\t{\n\t\t true, 'd', \"definition\", \"definitions\",\n\t\t},\n\t\t{\n\t\t false, 'D', \"document\", \"documents\",\n\t\t},\n\t\t{\n\t\t true, 't', \"toplevelVariable\", \"toplevel variables\",\n\t\t},\n\t\t{\n\t\t false, 'l', \"localVariable\", \"local variables\",\n\t\t},\n\t};\n\tstatic tagRegexTable GdbinitTagRegexTable [] = {\n\t\t{\"^#.*\", \"\",\n\t\t\"\", \"{exclusive}\", NULL, false},\n\t\t{\"^define[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"d\", NULL, NULL, false},\n\t\t{\"^document[[:space:]]+([^[:space:]]+)$\", \"\\\\1\",\n\t\t\"D\", NULL, NULL, false},\n\t\t{\"^set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"t\", NULL, NULL, false},\n\t\t{\"^[[:space:]]+set[[:space:]]+\\\\$([a-zA-Z0-9_]+)[[:space:]]*=\", \"\\\\1\",\n\t\t\"l\", NULL, NULL, false},\n\t};\n\n\n\tparserDefinition* const def = parserNew (\"Gdbinit\");\n\n\tdef->enabled = true;\n\tdef->extensions = extensions;\n\tdef->patterns = patterns;\n\tdef->aliases = aliases;\n\tdef->method = METHOD_NOT_CRAFTED|METHOD_REGEX;\n\tdef->kindTable = GdbinitKindTable;\n\tdef->kindCount = ARRAY_SIZE(GdbinitKindTable);\n\tdef->tagRegexTable = GdbinitTagRegexTable;\n\tdef->tagRegexCount = ARRAY_SIZE(GdbinitTagRegexTable);\n\tdef->initialize = initializeGdbinitParser;\n\n\treturn def;\n}\n"}
80,357
c
#include <stdio.h> #include "stm32h7xx_ll_usart.h" #define DBG_UART UART4 // GNUC libc output/input function redirection #if defined (__GNUC__) void dbg_output_setup(void) { // setup stdin and stdout unbufferd setvbuf(stdin, NULL, _IONBF, 0); setvbuf(stdout, NULL, _IONBF, 0); } int _write(int fd, char *ptr, int len) { int cnt = 0; (void)fd; while (len--) { LL_USART_TransmitData8(DBG_UART, *ptr++); while (!LL_USART_IsActiveFlag_TC(DBG_UART)); cnt++; } return cnt; } int _read(int fd, char *ptr, int len) { int cnt = 0; (void)fd; while (len--) { while (!LL_USART_IsActiveFlag_RXNE(DBG_UART)); *ptr++ = LL_USART_ReceiveData8(DBG_UART); cnt++; } return cnt; } #else int fputc(int ch, FILE *f) { (void)f; LL_USART_TransmitData8(DBG_UART, ch); while (!LL_USART_IsActiveFlag_TC(DBG_UART)); return ch; } #endif
19.5
48
(translation_unit) "#include <stdio.h> \n#include "stm32h7xx_ll_usart.h" \n \n#define DBG_UART UART4 \n \n// GNUC libc output/input function redirection \n#if defined (__GNUC__) \nvoid dbg_output_setup(void) \n{ \n // setup stdin and stdout unbufferd \n setvbuf(stdin, NULL, _IONBF, 0); \n setvbuf(stdout, NULL, _IONBF, 0); \n} \n \nint _write(int fd, char *ptr, int len) \n{ \n int cnt = 0; \n (void)fd; \n \n while (len--) { \n LL_USART_TransmitData8(DBG_UART, *ptr++); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n cnt++; \n } \n return cnt; \n} \n \nint _read(int fd, char *ptr, int len) \n{ \n int cnt = 0; \n (void)fd; \n \n while (len--) { \n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART)); \n *ptr++ = LL_USART_ReceiveData8(DBG_UART); \n cnt++; \n } \n return cnt; \n} \n#else \nint fputc(int ch, FILE *f) \n{ \n (void)f; \n LL_USART_TransmitData8(DBG_UART, ch); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n return ch; \n} \n#endif \n" (preproc_include) "#include <stdio.h> \n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "stm32h7xx_ll_usart.h" \n" (#include) "#include" (string_literal) ""stm32h7xx_ll_usart.h"" (") """ (string_content) "stm32h7xx_ll_usart.h" (") """ (preproc_def) "#define DBG_UART UART4 \n" (#define) "#define" (identifier) "DBG_UART" (preproc_arg) "UART4 " (comment) "// GNUC libc output/input function redirection " (preproc_if) "#if defined (__GNUC__) \nvoid dbg_output_setup(void) \n{ \n // setup stdin and stdout unbufferd \n setvbuf(stdin, NULL, _IONBF, 0); \n setvbuf(stdout, NULL, _IONBF, 0); \n} \n \nint _write(int fd, char *ptr, int len) \n{ \n int cnt = 0; \n (void)fd; \n \n while (len--) { \n LL_USART_TransmitData8(DBG_UART, *ptr++); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n cnt++; \n } \n return cnt; \n} \n \nint _read(int fd, char *ptr, int len) \n{ \n int cnt = 0; \n (void)fd; \n \n while (len--) { \n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART)); \n *ptr++ = LL_USART_ReceiveData8(DBG_UART); \n cnt++; \n } \n return cnt; \n} \n#else \nint fputc(int ch, FILE *f) \n{ \n (void)f; \n LL_USART_TransmitData8(DBG_UART, ch); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n return ch; \n} \n#endif" (#if) "#if" (preproc_defined) "defined (__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" ( ) "\n" (function_definition) "void dbg_output_setup(void) \n{ \n // setup stdin and stdout unbufferd \n setvbuf(stdin, NULL, _IONBF, 0); \n setvbuf(stdout, NULL, _IONBF, 0); \n}" (primitive_type) "void" (function_declarator) "dbg_output_setup(void)" (identifier) "dbg_output_setup" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ \n // setup stdin and stdout unbufferd \n setvbuf(stdin, NULL, _IONBF, 0); \n setvbuf(stdout, NULL, _IONBF, 0); \n}" ({) "{" (comment) "// setup stdin and stdout unbufferd " (expression_statement) "setvbuf(stdin, NULL, _IONBF, 0);" (call_expression) "setvbuf(stdin, NULL, _IONBF, 0)" (identifier) "setvbuf" (argument_list) "(stdin, NULL, _IONBF, 0)" (() "(" (identifier) "stdin" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "_IONBF" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "setvbuf(stdout, NULL, _IONBF, 0);" (call_expression) "setvbuf(stdout, NULL, _IONBF, 0)" (identifier) "setvbuf" (argument_list) "(stdout, NULL, _IONBF, 0)" (() "(" (identifier) "stdout" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (identifier) "_IONBF" (,) "," (number_literal) "0" ()) ")" (;) ";" (}) "}" (function_definition) "int _write(int fd, char *ptr, int len) \n{ \n int cnt = 0; \n (void)fd; \n \n while (len--) { \n LL_USART_TransmitData8(DBG_UART, *ptr++); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n cnt++; \n } \n return cnt; \n}" (primitive_type) "int" (function_declarator) "_write(int fd, char *ptr, int len)" (identifier) "_write" (parameter_list) "(int fd, char *ptr, int len)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" (,) "," (parameter_declaration) "char *ptr" (primitive_type) "char" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (,) "," (parameter_declaration) "int len" (primitive_type) "int" (identifier) "len" ()) ")" (compound_statement) "{ \n int cnt = 0; \n (void)fd; \n \n while (len--) { \n LL_USART_TransmitData8(DBG_UART, *ptr++); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n cnt++; \n } \n return cnt; \n}" ({) "{" (declaration) "int cnt = 0;" (primitive_type) "int" (init_declarator) "cnt = 0" (identifier) "cnt" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "(void)fd;" (cast_expression) "(void)fd" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "fd" (;) ";" (while_statement) "while (len--) { \n LL_USART_TransmitData8(DBG_UART, *ptr++); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n cnt++; \n }" (while) "while" (parenthesized_expression) "(len--)" (() "(" (update_expression) "len--" (identifier) "len" (--) "--" ()) ")" (compound_statement) "{ \n LL_USART_TransmitData8(DBG_UART, *ptr++); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n cnt++; \n }" ({) "{" (expression_statement) "LL_USART_TransmitData8(DBG_UART, *ptr++);" (call_expression) "LL_USART_TransmitData8(DBG_UART, *ptr++)" (identifier) "LL_USART_TransmitData8" (argument_list) "(DBG_UART, *ptr++)" (() "(" (identifier) "DBG_UART" (,) "," (pointer_expression) "*ptr++" (*) "*" (update_expression) "ptr++" (identifier) "ptr" (++) "++" ()) ")" (;) ";" (while_statement) "while (!LL_USART_IsActiveFlag_TC(DBG_UART));" (while) "while" (parenthesized_expression) "(!LL_USART_IsActiveFlag_TC(DBG_UART))" (() "(" (unary_expression) "!LL_USART_IsActiveFlag_TC(DBG_UART)" (!) "!" (call_expression) "LL_USART_IsActiveFlag_TC(DBG_UART)" (identifier) "LL_USART_IsActiveFlag_TC" (argument_list) "(DBG_UART)" (() "(" (identifier) "DBG_UART" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (expression_statement) "cnt++;" (update_expression) "cnt++" (identifier) "cnt" (++) "++" (;) ";" (}) "}" (return_statement) "return cnt;" (return) "return" (identifier) "cnt" (;) ";" (}) "}" (function_definition) "int _read(int fd, char *ptr, int len) \n{ \n int cnt = 0; \n (void)fd; \n \n while (len--) { \n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART)); \n *ptr++ = LL_USART_ReceiveData8(DBG_UART); \n cnt++; \n } \n return cnt; \n}" (primitive_type) "int" (function_declarator) "_read(int fd, char *ptr, int len)" (identifier) "_read" (parameter_list) "(int fd, char *ptr, int len)" (() "(" (parameter_declaration) "int fd" (primitive_type) "int" (identifier) "fd" (,) "," (parameter_declaration) "char *ptr" (primitive_type) "char" (pointer_declarator) "*ptr" (*) "*" (identifier) "ptr" (,) "," (parameter_declaration) "int len" (primitive_type) "int" (identifier) "len" ()) ")" (compound_statement) "{ \n int cnt = 0; \n (void)fd; \n \n while (len--) { \n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART)); \n *ptr++ = LL_USART_ReceiveData8(DBG_UART); \n cnt++; \n } \n return cnt; \n}" ({) "{" (declaration) "int cnt = 0;" (primitive_type) "int" (init_declarator) "cnt = 0" (identifier) "cnt" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "(void)fd;" (cast_expression) "(void)fd" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "fd" (;) ";" (while_statement) "while (len--) { \n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART)); \n *ptr++ = LL_USART_ReceiveData8(DBG_UART); \n cnt++; \n }" (while) "while" (parenthesized_expression) "(len--)" (() "(" (update_expression) "len--" (identifier) "len" (--) "--" ()) ")" (compound_statement) "{ \n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART)); \n *ptr++ = LL_USART_ReceiveData8(DBG_UART); \n cnt++; \n }" ({) "{" (while_statement) "while (!LL_USART_IsActiveFlag_RXNE(DBG_UART));" (while) "while" (parenthesized_expression) "(!LL_USART_IsActiveFlag_RXNE(DBG_UART))" (() "(" (unary_expression) "!LL_USART_IsActiveFlag_RXNE(DBG_UART)" (!) "!" (call_expression) "LL_USART_IsActiveFlag_RXNE(DBG_UART)" (identifier) "LL_USART_IsActiveFlag_RXNE" (argument_list) "(DBG_UART)" (() "(" (identifier) "DBG_UART" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (expression_statement) "*ptr++ = LL_USART_ReceiveData8(DBG_UART);" (assignment_expression) "*ptr++ = LL_USART_ReceiveData8(DBG_UART)" (pointer_expression) "*ptr++" (*) "*" (update_expression) "ptr++" (identifier) "ptr" (++) "++" (=) "=" (call_expression) "LL_USART_ReceiveData8(DBG_UART)" (identifier) "LL_USART_ReceiveData8" (argument_list) "(DBG_UART)" (() "(" (identifier) "DBG_UART" ()) ")" (;) ";" (expression_statement) "cnt++;" (update_expression) "cnt++" (identifier) "cnt" (++) "++" (;) ";" (}) "}" (return_statement) "return cnt;" (return) "return" (identifier) "cnt" (;) ";" (}) "}" (preproc_else) "#else \nint fputc(int ch, FILE *f) \n{ \n (void)f; \n LL_USART_TransmitData8(DBG_UART, ch); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n return ch; \n}" (#else) "#else" (function_definition) "int fputc(int ch, FILE *f) \n{ \n (void)f; \n LL_USART_TransmitData8(DBG_UART, ch); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n return ch; \n}" (primitive_type) "int" (function_declarator) "fputc(int ch, FILE *f)" (identifier) "fputc" (parameter_list) "(int ch, FILE *f)" (() "(" (parameter_declaration) "int ch" (primitive_type) "int" (identifier) "ch" (,) "," (parameter_declaration) "FILE *f" (type_identifier) "FILE" (pointer_declarator) "*f" (*) "*" (identifier) "f" ()) ")" (compound_statement) "{ \n (void)f; \n LL_USART_TransmitData8(DBG_UART, ch); \n while (!LL_USART_IsActiveFlag_TC(DBG_UART)); \n return ch; \n}" ({) "{" (expression_statement) "(void)f;" (cast_expression) "(void)f" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (identifier) "f" (;) ";" (expression_statement) "LL_USART_TransmitData8(DBG_UART, ch);" (call_expression) "LL_USART_TransmitData8(DBG_UART, ch)" (identifier) "LL_USART_TransmitData8" (argument_list) "(DBG_UART, ch)" (() "(" (identifier) "DBG_UART" (,) "," (identifier) "ch" ()) ")" (;) ";" (while_statement) "while (!LL_USART_IsActiveFlag_TC(DBG_UART));" (while) "while" (parenthesized_expression) "(!LL_USART_IsActiveFlag_TC(DBG_UART))" (() "(" (unary_expression) "!LL_USART_IsActiveFlag_TC(DBG_UART)" (!) "!" (call_expression) "LL_USART_IsActiveFlag_TC(DBG_UART)" (identifier) "LL_USART_IsActiveFlag_TC" (argument_list) "(DBG_UART)" (() "(" (identifier) "DBG_UART" ()) ")" ()) ")" (expression_statement) ";" (;) ";" (return_statement) "return ch;" (return) "return" (identifier) "ch" (;) ";" (}) "}" (#endif) "#endif"
300
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 19.5, "nodes": 182, "errors": 0, "source_hash": "ab3bc0c78536a17498766f84b544a1a567362ee09f7d69d45ba24115952b759c", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include \"stm32h7xx_ll_usart.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": "\"stm32h7xx_ll_usart.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 31}}, {"id": 6, "type": "preproc_def", "text": "#define DBG_UART UART4\r\n", "parent": null, "children": [7, 8, 9], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "identifier", "text": "DBG_UART", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 16}}, {"id": 9, "type": "preproc_arg", "text": "UART4\r", "parent": 6, "children": [], "start_point": {"row": 3, "column": 24}, "end_point": {"row": 3, "column": 30}}, {"id": 10, "type": "preproc_if", "text": "#if defined (__GNUC__)\r\nvoid dbg_output_setup(void)\r\n{\r\n // setup stdin and stdout unbufferd\r\n setvbuf(stdin, NULL, _IONBF, 0);\r\n setvbuf(stdout, NULL, _IONBF, 0);\r\n}\r\n\r\nint _write(int fd, char *ptr, int len)\r\n{\r\n int cnt = 0;\r\n (void)fd;\r\n\r\n while (len--) {\r\n LL_USART_TransmitData8(DBG_UART, *ptr++);\r\n while (!LL_USART_IsActiveFlag_TC(DBG_UART));\r\n cnt++;\r\n }\r\n return cnt;\r\n}\r\n\r\nint _read(int fd, char *ptr, int len)\r\n{\r\n int cnt = 0;\r\n (void)fd;\r\n\r\n while (len--) {\r\n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART));\r\n *ptr++ = LL_USART_ReceiveData8(DBG_UART);\r\n cnt++;\r\n }\r\n return cnt;\r\n}\r\n#else\r\nint fputc(int ch, FILE *f)\r\n{\r\n (void)f;\r\n LL_USART_TransmitData8(DBG_UART, ch);\r\n while (!LL_USART_IsActiveFlag_TC(DBG_UART));\r\n return ch;\r\n}\r\n#endif", "parent": null, "children": [11, 12, 15, 16, 39, 92, 147, 181], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 47, "column": 6}}, {"id": 11, "type": "#if", "text": "#if", "parent": 10, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 3}}, {"id": 12, "type": "preproc_defined", "text": "defined (__GNUC__)", "parent": 10, "children": [13, 14], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 22}}, {"id": 13, "type": "defined", "text": "defined", "parent": 12, "children": [], "start_point": {"row": 6, "column": 4}, "end_point": {"row": 6, "column": 11}}, {"id": 14, "type": "identifier", "text": "__GNUC__", "parent": 12, "children": [], "start_point": {"row": 6, "column": 13}, "end_point": {"row": 6, "column": 21}}, {"id": 15, "type": "\n", "text": "\n", "parent": 10, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 7, "column": 0}}, {"id": 16, "type": "function_definition", "text": "void dbg_output_setup(void)\r\n{\r\n // setup stdin and stdout unbufferd\r\n setvbuf(stdin, NULL, _IONBF, 0);\r\n setvbuf(stdout, NULL, _IONBF, 0);\r\n}", "parent": 10, "children": [17, 18], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 17, "type": "primitive_type", "text": "void", "parent": 16, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 4}}, {"id": 18, "type": "function_declarator", "text": "dbg_output_setup(void)", "parent": 16, "children": [19, 20], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 27}}, {"id": 19, "type": "identifier", "text": "dbg_output_setup", "parent": 18, "children": [], "start_point": {"row": 7, "column": 5}, "end_point": {"row": 7, "column": 21}}, {"id": 20, "type": "parameter_list", "text": "(void)", "parent": 18, "children": [21], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 27}}, {"id": 21, "type": "parameter_declaration", "text": "void", "parent": 20, "children": [22], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 26}}, {"id": 22, "type": "primitive_type", "text": "void", "parent": 21, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 26}}, {"id": 23, "type": "call_expression", "text": "setvbuf(stdin, NULL, _IONBF, 0)", "parent": 16, "children": [24, 25], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 35}}, {"id": 24, "type": "identifier", "text": "setvbuf", "parent": 23, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 11}}, {"id": 25, "type": "argument_list", "text": "(stdin, NULL, _IONBF, 0)", "parent": 23, "children": [26, 27, 29, 30], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 35}}, {"id": 26, "type": "identifier", "text": "stdin", "parent": 25, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 17}}, {"id": 27, "type": "null", "text": "NULL", "parent": 25, "children": [28], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 23}}, {"id": 28, "type": "NULL", "text": "NULL", "parent": 27, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 23}}, {"id": 29, "type": "identifier", "text": "_IONBF", "parent": 25, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 31}}, {"id": 30, "type": "number_literal", "text": "0", "parent": 25, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 34}}, {"id": 31, "type": "call_expression", "text": "setvbuf(stdout, NULL, _IONBF, 0)", "parent": 16, "children": [32, 33], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 36}}, {"id": 32, "type": "identifier", "text": "setvbuf", "parent": 31, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 11}}, {"id": 33, "type": "argument_list", "text": "(stdout, NULL, _IONBF, 0)", "parent": 31, "children": [34, 35, 37, 38], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 36}}, {"id": 34, "type": "identifier", "text": "stdout", "parent": 33, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 18}}, {"id": 35, "type": "null", "text": "NULL", "parent": 33, "children": [36], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 24}}, {"id": 36, "type": "NULL", "text": "NULL", "parent": 35, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 24}}, {"id": 37, "type": "identifier", "text": "_IONBF", "parent": 33, "children": [], "start_point": {"row": 11, "column": 26}, "end_point": {"row": 11, "column": 32}}, {"id": 38, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 11, "column": 34}, "end_point": {"row": 11, "column": 35}}, {"id": 39, "type": "function_definition", "text": "int _write(int fd, char *ptr, int len)\r\n{\r\n int cnt = 0;\r\n (void)fd;\r\n\r\n while (len--) {\r\n LL_USART_TransmitData8(DBG_UART, *ptr++);\r\n while (!LL_USART_IsActiveFlag_TC(DBG_UART));\r\n cnt++;\r\n }\r\n return cnt;\r\n}", "parent": 10, "children": [40, 41], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 3}}, {"id": 41, "type": "function_declarator", "text": "_write(int fd, char *ptr, int len)", "parent": 39, "children": [42, 43], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 38}}, {"id": 42, "type": "identifier", "text": "_write", "parent": 41, "children": [], "start_point": {"row": 14, "column": 4}, "end_point": {"row": 14, "column": 10}}, {"id": 43, "type": "parameter_list", "text": "(int fd, char *ptr, int len)", "parent": 41, "children": [44, 47, 52], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 38}}, {"id": 44, "type": "parameter_declaration", "text": "int fd", "parent": 43, "children": [45, 46], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 17}}, {"id": 45, "type": "primitive_type", "text": "int", "parent": 44, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 14}}, {"id": 46, "type": "identifier", "text": "fd", "parent": 44, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 17}}, {"id": 47, "type": "parameter_declaration", "text": "char *ptr", "parent": 43, "children": [48, 49], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 28}}, {"id": 48, "type": "primitive_type", "text": "char", "parent": 47, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 23}}, {"id": 49, "type": "pointer_declarator", "text": "*ptr", "parent": 47, "children": [50, 51], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 28}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 25}}, {"id": 51, "type": "identifier", "text": "ptr", "parent": 49, "children": [], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 28}}, {"id": 52, "type": "parameter_declaration", "text": "int len", "parent": 43, "children": [53, 54], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 37}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 14, "column": 30}, "end_point": {"row": 14, "column": 33}}, {"id": 54, "type": "identifier", "text": "len", "parent": 52, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 37}}, {"id": 55, "type": "declaration", "text": "int cnt = 0;", "parent": 39, "children": [56, 57], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 16}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 16, "column": 4}, "end_point": {"row": 16, "column": 7}}, {"id": 57, "type": "init_declarator", "text": "cnt = 0", "parent": 55, "children": [58, 59, 60], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 15}}, {"id": 58, "type": "identifier", "text": "cnt", "parent": 57, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 11}}, {"id": 59, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 16, "column": 12}, "end_point": {"row": 16, "column": 13}}, {"id": 60, "type": "number_literal", "text": "0", "parent": 57, "children": [], "start_point": {"row": 16, "column": 14}, "end_point": {"row": 16, "column": 15}}, {"id": 61, "type": "cast_expression", "text": "(void)fd", "parent": 39, "children": [62, 64], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 12}}, {"id": 62, "type": "type_descriptor", "text": "void", "parent": 61, "children": [63], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 9}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 9}}, {"id": 64, "type": "identifier", "text": "fd", "parent": 61, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 12}}, {"id": 65, "type": "while_statement", "text": "while (len--) {\r\n LL_USART_TransmitData8(DBG_UART, *ptr++);\r\n while (!LL_USART_IsActiveFlag_TC(DBG_UART));\r\n cnt++;\r\n }", "parent": 39, "children": [66], "start_point": {"row": 19, "column": 4}, "end_point": {"row": 23, "column": 5}}, {"id": 66, "type": "parenthesized_expression", "text": "(len--)", "parent": 65, "children": [67], "start_point": {"row": 19, "column": 10}, "end_point": {"row": 19, "column": 17}}, {"id": 67, "type": "update_expression", "text": "len--", "parent": 66, "children": [68, 69], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 16}}, {"id": 68, "type": "identifier", "text": "len", "parent": 67, "children": [], "start_point": {"row": 19, "column": 11}, "end_point": {"row": 19, "column": 14}}, {"id": 69, "type": "--", "text": "--", "parent": 67, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 16}}, {"id": 70, "type": "call_expression", "text": "LL_USART_TransmitData8(DBG_UART, *ptr++)", "parent": 65, "children": [71, 72], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 48}}, {"id": 71, "type": "identifier", "text": "LL_USART_TransmitData8", "parent": 70, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 30}}, {"id": 72, "type": "argument_list", "text": "(DBG_UART, *ptr++)", "parent": 70, "children": [73, 74], "start_point": {"row": 20, "column": 30}, "end_point": {"row": 20, "column": 48}}, {"id": 73, "type": "identifier", "text": "DBG_UART", "parent": 72, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 39}}, {"id": 74, "type": "pointer_expression", "text": "*ptr++", "parent": 72, "children": [75, 76], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 47}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 42}}, {"id": 76, "type": "update_expression", "text": "ptr++", "parent": 74, "children": [77, 78], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 47}}, {"id": 77, "type": "identifier", "text": "ptr", "parent": 76, "children": [], "start_point": {"row": 20, "column": 42}, "end_point": {"row": 20, "column": 45}}, {"id": 78, "type": "++", "text": "++", "parent": 76, "children": [], "start_point": {"row": 20, "column": 45}, "end_point": {"row": 20, "column": 47}}, {"id": 79, "type": "while_statement", "text": "while (!LL_USART_IsActiveFlag_TC(DBG_UART));", "parent": 65, "children": [80], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 52}}, {"id": 80, "type": "parenthesized_expression", "text": "(!LL_USART_IsActiveFlag_TC(DBG_UART))", "parent": 79, "children": [81], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 51}}, {"id": 81, "type": "unary_expression", "text": "!LL_USART_IsActiveFlag_TC(DBG_UART)", "parent": 80, "children": [82, 83], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 50}}, {"id": 82, "type": "!", "text": "!", "parent": 81, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 16}}, {"id": 83, "type": "call_expression", "text": "LL_USART_IsActiveFlag_TC(DBG_UART)", "parent": 81, "children": [84, 85], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 50}}, {"id": 84, "type": "identifier", "text": "LL_USART_IsActiveFlag_TC", "parent": 83, "children": [], "start_point": {"row": 21, "column": 16}, "end_point": {"row": 21, "column": 40}}, {"id": 85, "type": "argument_list", "text": "(DBG_UART)", "parent": 83, "children": [86], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 50}}, {"id": 86, "type": "identifier", "text": "DBG_UART", "parent": 85, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 49}}, {"id": 87, "type": "update_expression", "text": "cnt++", "parent": 65, "children": [88, 89], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 13}}, {"id": 88, "type": "identifier", "text": "cnt", "parent": 87, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 11}}, {"id": 89, "type": "++", "text": "++", "parent": 87, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 13}}, {"id": 90, "type": "return_statement", "text": "return cnt;", "parent": 39, "children": [91], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 15}}, {"id": 91, "type": "identifier", "text": "cnt", "parent": 90, "children": [], "start_point": {"row": 24, "column": 11}, "end_point": {"row": 24, "column": 14}}, {"id": 92, "type": "function_definition", "text": "int _read(int fd, char *ptr, int len)\r\n{\r\n int cnt = 0;\r\n (void)fd;\r\n\r\n while (len--) {\r\n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART));\r\n *ptr++ = LL_USART_ReceiveData8(DBG_UART);\r\n cnt++;\r\n }\r\n return cnt;\r\n}", "parent": 10, "children": [93, 94], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 93, "type": "primitive_type", "text": "int", "parent": 92, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 3}}, {"id": 94, "type": "function_declarator", "text": "_read(int fd, char *ptr, int len)", "parent": 92, "children": [95, 96], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 37}}, {"id": 95, "type": "identifier", "text": "_read", "parent": 94, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 9}}, {"id": 96, "type": "parameter_list", "text": "(int fd, char *ptr, int len)", "parent": 94, "children": [97, 100, 105], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 37}}, {"id": 97, "type": "parameter_declaration", "text": "int fd", "parent": 96, "children": [98, 99], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 16}}, {"id": 98, "type": "primitive_type", "text": "int", "parent": 97, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 13}}, {"id": 99, "type": "identifier", "text": "fd", "parent": 97, "children": [], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 16}}, {"id": 100, "type": "parameter_declaration", "text": "char *ptr", "parent": 96, "children": [101, 102], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 27}}, {"id": 101, "type": "primitive_type", "text": "char", "parent": 100, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 22}}, {"id": 102, "type": "pointer_declarator", "text": "*ptr", "parent": 100, "children": [103, 104], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 27}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 104, "type": "identifier", "text": "ptr", "parent": 102, "children": [], "start_point": {"row": 27, "column": 24}, "end_point": {"row": 27, "column": 27}}, {"id": 105, "type": "parameter_declaration", "text": "int len", "parent": 96, "children": [106, 107], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 36}}, {"id": 106, "type": "primitive_type", "text": "int", "parent": 105, "children": [], "start_point": {"row": 27, "column": 29}, "end_point": {"row": 27, "column": 32}}, {"id": 107, "type": "identifier", "text": "len", "parent": 105, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 36}}, {"id": 108, "type": "declaration", "text": "int cnt = 0;", "parent": 92, "children": [109, 110], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 16}}, {"id": 109, "type": "primitive_type", "text": "int", "parent": 108, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 7}}, {"id": 110, "type": "init_declarator", "text": "cnt = 0", "parent": 108, "children": [111, 112, 113], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 15}}, {"id": 111, "type": "identifier", "text": "cnt", "parent": 110, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 11}}, {"id": 112, "type": "=", "text": "=", "parent": 110, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 113, "type": "number_literal", "text": "0", "parent": 110, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 114, "type": "cast_expression", "text": "(void)fd", "parent": 92, "children": [115, 117], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 12}}, {"id": 115, "type": "type_descriptor", "text": "void", "parent": 114, "children": [116], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 9}}, {"id": 116, "type": "primitive_type", "text": "void", "parent": 115, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 9}}, {"id": 117, "type": "identifier", "text": "fd", "parent": 114, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 12}}, {"id": 118, "type": "while_statement", "text": "while (len--) {\r\n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART));\r\n *ptr++ = LL_USART_ReceiveData8(DBG_UART);\r\n cnt++;\r\n }", "parent": 92, "children": [119], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 36, "column": 5}}, {"id": 119, "type": "parenthesized_expression", "text": "(len--)", "parent": 118, "children": [120], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 17}}, {"id": 120, "type": "update_expression", "text": "len--", "parent": 119, "children": [121, 122], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 16}}, {"id": 121, "type": "identifier", "text": "len", "parent": 120, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 14}}, {"id": 122, "type": "--", "text": "--", "parent": 120, "children": [], "start_point": {"row": 32, "column": 14}, "end_point": {"row": 32, "column": 16}}, {"id": 123, "type": "while_statement", "text": "while (!LL_USART_IsActiveFlag_RXNE(DBG_UART));", "parent": 118, "children": [124], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 54}}, {"id": 124, "type": "parenthesized_expression", "text": "(!LL_USART_IsActiveFlag_RXNE(DBG_UART))", "parent": 123, "children": [125], "start_point": {"row": 33, "column": 14}, "end_point": {"row": 33, "column": 53}}, {"id": 125, "type": "unary_expression", "text": "!LL_USART_IsActiveFlag_RXNE(DBG_UART)", "parent": 124, "children": [126, 127], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 52}}, {"id": 126, "type": "!", "text": "!", "parent": 125, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 16}}, {"id": 127, "type": "call_expression", "text": "LL_USART_IsActiveFlag_RXNE(DBG_UART)", "parent": 125, "children": [128, 129], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 52}}, {"id": 128, "type": "identifier", "text": "LL_USART_IsActiveFlag_RXNE", "parent": 127, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 42}}, {"id": 129, "type": "argument_list", "text": "(DBG_UART)", "parent": 127, "children": [130], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 52}}, {"id": 130, "type": "identifier", "text": "DBG_UART", "parent": 129, "children": [], "start_point": {"row": 33, "column": 43}, "end_point": {"row": 33, "column": 51}}, {"id": 131, "type": "assignment_expression", "text": "*ptr++ = LL_USART_ReceiveData8(DBG_UART)", "parent": 118, "children": [132, 137, 138], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 48}}, {"id": 132, "type": "pointer_expression", "text": "*ptr++", "parent": 131, "children": [133, 134], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 14}}, {"id": 133, "type": "*", "text": "*", "parent": 132, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 9}}, {"id": 134, "type": "update_expression", "text": "ptr++", "parent": 132, "children": [135, 136], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 14}}, {"id": 135, "type": "identifier", "text": "ptr", "parent": 134, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 12}}, {"id": 136, "type": "++", "text": "++", "parent": 134, "children": [], "start_point": {"row": 34, "column": 12}, "end_point": {"row": 34, "column": 14}}, {"id": 137, "type": "=", "text": "=", "parent": 131, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 16}}, {"id": 138, "type": "call_expression", "text": "LL_USART_ReceiveData8(DBG_UART)", "parent": 131, "children": [139, 140], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 48}}, {"id": 139, "type": "identifier", "text": "LL_USART_ReceiveData8", "parent": 138, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 38}}, {"id": 140, "type": "argument_list", "text": "(DBG_UART)", "parent": 138, "children": [141], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 48}}, {"id": 141, "type": "identifier", "text": "DBG_UART", "parent": 140, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 47}}, {"id": 142, "type": "update_expression", "text": "cnt++", "parent": 118, "children": [143, 144], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 13}}, {"id": 143, "type": "identifier", "text": "cnt", "parent": 142, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 11}}, {"id": 144, "type": "++", "text": "++", "parent": 142, "children": [], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 13}}, {"id": 145, "type": "return_statement", "text": "return cnt;", "parent": 92, "children": [146], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 15}}, {"id": 146, "type": "identifier", "text": "cnt", "parent": 145, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 14}}, {"id": 147, "type": "preproc_else", "text": "#else\r\nint fputc(int ch, FILE *f)\r\n{\r\n (void)f;\r\n LL_USART_TransmitData8(DBG_UART, ch);\r\n while (!LL_USART_IsActiveFlag_TC(DBG_UART));\r\n return ch;\r\n}", "parent": 10, "children": [148, 149], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 148, "type": "#else", "text": "#else", "parent": 147, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 5}}, {"id": 149, "type": "function_definition", "text": "int fputc(int ch, FILE *f)\r\n{\r\n (void)f;\r\n LL_USART_TransmitData8(DBG_UART, ch);\r\n while (!LL_USART_IsActiveFlag_TC(DBG_UART));\r\n return ch;\r\n}", "parent": 147, "children": [150, 151], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 150, "type": "primitive_type", "text": "int", "parent": 149, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 3}}, {"id": 151, "type": "function_declarator", "text": "fputc(int ch, FILE *f)", "parent": 149, "children": [152, 153], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 26}}, {"id": 152, "type": "identifier", "text": "fputc", "parent": 151, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 9}}, {"id": 153, "type": "parameter_list", "text": "(int ch, FILE *f)", "parent": 151, "children": [154, 157], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 26}}, {"id": 154, "type": "parameter_declaration", "text": "int ch", "parent": 153, "children": [155, 156], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 16}}, {"id": 155, "type": "primitive_type", "text": "int", "parent": 154, "children": [], "start_point": {"row": 40, "column": 10}, "end_point": {"row": 40, "column": 13}}, {"id": 156, "type": "identifier", "text": "ch", "parent": 154, "children": [], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 16}}, {"id": 157, "type": "parameter_declaration", "text": "FILE *f", "parent": 153, "children": [158, 159], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 25}}, {"id": 158, "type": "type_identifier", "text": "FILE", "parent": 157, "children": [], "start_point": {"row": 40, "column": 18}, "end_point": {"row": 40, "column": 22}}, {"id": 159, "type": "pointer_declarator", "text": "*f", "parent": 157, "children": [160, 161], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 25}}, {"id": 160, "type": "*", "text": "*", "parent": 159, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 24}}, {"id": 161, "type": "identifier", "text": "f", "parent": 159, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 25}}, {"id": 162, "type": "cast_expression", "text": "(void)f", "parent": 149, "children": [163, 165], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 11}}, {"id": 163, "type": "type_descriptor", "text": "void", "parent": 162, "children": [164], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 9}}, {"id": 164, "type": "primitive_type", "text": "void", "parent": 163, "children": [], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 9}}, {"id": 165, "type": "identifier", "text": "f", "parent": 162, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 11}}, {"id": 166, "type": "call_expression", "text": "LL_USART_TransmitData8(DBG_UART, ch)", "parent": 149, "children": [167, 168], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 40}}, {"id": 167, "type": "identifier", "text": "LL_USART_TransmitData8", "parent": 166, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 26}}, {"id": 168, "type": "argument_list", "text": "(DBG_UART, ch)", "parent": 166, "children": [169, 170], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 40}}, {"id": 169, "type": "identifier", "text": "DBG_UART", "parent": 168, "children": [], "start_point": {"row": 43, "column": 27}, "end_point": {"row": 43, "column": 35}}, {"id": 170, "type": "identifier", "text": "ch", "parent": 168, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 39}}, {"id": 171, "type": "while_statement", "text": "while (!LL_USART_IsActiveFlag_TC(DBG_UART));", "parent": 149, "children": [172], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 48}}, {"id": 172, "type": "parenthesized_expression", "text": "(!LL_USART_IsActiveFlag_TC(DBG_UART))", "parent": 171, "children": [173], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 47}}, {"id": 173, "type": "unary_expression", "text": "!LL_USART_IsActiveFlag_TC(DBG_UART)", "parent": 172, "children": [174, 175], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 46}}, {"id": 174, "type": "!", "text": "!", "parent": 173, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 12}}, {"id": 175, "type": "call_expression", "text": "LL_USART_IsActiveFlag_TC(DBG_UART)", "parent": 173, "children": [176, 177], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 46}}, {"id": 176, "type": "identifier", "text": "LL_USART_IsActiveFlag_TC", "parent": 175, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 36}}, {"id": 177, "type": "argument_list", "text": "(DBG_UART)", "parent": 175, "children": [178], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 46}}, {"id": 178, "type": "identifier", "text": "DBG_UART", "parent": 177, "children": [], "start_point": {"row": 44, "column": 37}, "end_point": {"row": 44, "column": 45}}, {"id": 179, "type": "return_statement", "text": "return ch;", "parent": 149, "children": [180], "start_point": {"row": 45, "column": 4}, "end_point": {"row": 45, "column": 14}}, {"id": 180, "type": "identifier", "text": "ch", "parent": 179, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 13}}, {"id": 181, "type": "#endif", "text": "#endif", "parent": 10, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 6}}]}, "node_categories": {"declarations": {"functions": [16, 18, 39, 41, 92, 94, 149, 151], "variables": [21, 44, 47, 52, 55, 97, 100, 105, 108, 154, 157], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [23, 31, 61, 66, 67, 70, 74, 76, 80, 81, 83, 87, 114, 119, 120, 124, 125, 127, 132, 134, 138, 142, 162, 166, 172, 173, 175], "assignments": [131], "loops": [65, 79, 118, 123, 171], "conditionals": [8, 10, 11, 14, 19, 24, 26, 29, 32, 34, 37, 42, 46, 51, 54, 58, 64, 68, 71, 73, 77, 84, 86, 88, 91, 95, 99, 104, 107, 111, 117, 121, 128, 130, 135, 139, 141, 143, 146, 152, 156, 158, 161, 165, 167, 169, 170, 176, 178, 180, 181], "returns": [90, 145, 179], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 30, 38, 60, 113], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 16, "universal_type": "function", "name": "dbg_output_setup", "text_snippet": "void dbg_output_setup(void)\r\n{\r\n // setup stdin and stdout unbufferd\r\n setvbuf(stdin, NULL, _I"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "dbg_output_setup(void)"}, {"node_id": 39, "universal_type": "function", "name": "_write", "text_snippet": "int _write(int fd, char *ptr, int len)\r\n{\r\n int cnt = 0;\r\n (void)fd;\r\n\r\n while (len--) {\r\n "}, {"node_id": 41, "universal_type": "function", "name": "len)", "text_snippet": "_write(int fd, char *ptr, int len)"}, {"node_id": 92, "universal_type": "function", "name": "_read", "text_snippet": "int _read(int fd, char *ptr, int len)\r\n{\r\n int cnt = 0;\r\n (void)fd;\r\n\r\n while (len--) {\r\n "}, {"node_id": 94, "universal_type": "function", "name": "len)", "text_snippet": "_read(int fd, char *ptr, int len)"}, {"node_id": 149, "universal_type": "function", "name": "fputc", "text_snippet": "int fputc(int ch, FILE *f)\r\n{\r\n (void)f;\r\n LL_USART_TransmitData8(DBG_UART, ch);\r\n while (!"}, {"node_id": 151, "universal_type": "function", "name": "unknown", "text_snippet": "fputc(int ch, FILE *f)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <stdio.h>\r\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"stm32h7xx_ll_usart.h\"\r\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\r\n#include \"stm32h7xx_ll_usart.h\"\r\n\r\n#define DBG_UART UART4\r\n\r\n// GNUC libc output/input function redirection \r\n#if defined (__GNUC__)\r\nvoid dbg_output_setup(void)\r\n{\r\n // setup stdin and stdout unbufferd\r\n setvbuf(stdin, NULL, _IONBF, 0);\r\n setvbuf(stdout, NULL, _IONBF, 0);\r\n}\r\n\r\nint _write(int fd, char *ptr, int len)\r\n{\r\n int cnt = 0;\r\n (void)fd;\r\n\r\n while (len--) {\r\n LL_USART_TransmitData8(DBG_UART, *ptr++);\r\n while (!LL_USART_IsActiveFlag_TC(DBG_UART));\r\n cnt++;\r\n }\r\n return cnt;\r\n}\r\n\r\nint _read(int fd, char *ptr, int len)\r\n{\r\n int cnt = 0;\r\n (void)fd;\r\n\r\n while (len--) {\r\n while (!LL_USART_IsActiveFlag_RXNE(DBG_UART));\r\n *ptr++ = LL_USART_ReceiveData8(DBG_UART);\r\n cnt++;\r\n }\r\n return cnt;\r\n}\r\n#else\r\nint fputc(int ch, FILE *f)\r\n{\r\n (void)f;\r\n LL_USART_TransmitData8(DBG_UART, ch);\r\n while (!LL_USART_IsActiveFlag_TC(DBG_UART));\r\n return ch;\r\n}\r\n#endif\r\n"}
80,358
c
// // ViewController.h // WTTextView // // Created by macmini on 2018/3/27. // Copyright © 2018年 org.objc.yandere. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
18.82
11
(translation_unit) "//\n// ViewController.h\n// WTTextView\n//\n// Created by macmini on 2018/3/27.\n// Copyright © 2018年 org.objc.yandere. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n" (comment) "//" (comment) "// ViewController.h" (comment) "// WTTextView" (comment) "//" (comment) "// Created by macmini on 2018/3/27." (comment) "// Copyright © 2018年 org.objc.yandere. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <UIKit/UIKit.h>\n\n@i" (preproc_directive) "port <U" (preproc_arg) "Kit/UIKit.h>\n\n@" (ERROR) "t" (ERROR) "t" (declaration) "erface ViewController : UIViewController\n\n\n@end\n\n" (type_identifier) "erface Vi" (ERROR) "wController : UIViewController\n\n\n@end" (identifier) "wController : " (:) "I" (identifier) "iewController\n\n\n" (ERROR) "d" (identifier) "\n\n" (;) ""
22
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 18.82, "nodes": 12, "errors": 0, "source_hash": "7b778a477bef17e085c9deeb2dd5bae648c2f7e8fb828b5fa200715ded54954c", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit/UIKit.h>\n\n@i", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <U", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "Kit/UIKit.h>\n\n@", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "ERROR", "text": "t", "parent": null, "children": [4], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 4, "type": "ERROR", "text": "t", "parent": 3, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 5, "type": "declaration", "text": "erface ViewController : UIViewController\n\n\n@end\n\n", "parent": null, "children": [6, 7, 11], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 13, "column": 4}}, {"id": 6, "type": "type_identifier", "text": "erface Vi", "parent": 5, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 7, "type": "ERROR", "text": "wController : UIViewController\n\n\n@end", "parent": 5, "children": [8, 9, 10], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 13, "column": 1}}, {"id": 8, "type": "identifier", "text": "wController : ", "parent": 7, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 25}}, {"id": 9, "type": "identifier", "text": "iewController\n\n\n", "parent": 7, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 44}}, {"id": 10, "type": "ERROR", "text": "d", "parent": 7, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 11, "type": "identifier", "text": "\n\n", "parent": 5, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 4}}]}, "node_categories": {"declarations": {"functions": [], "variables": [5], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [6, 8, 9, 11], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// ViewController.h\n// WTTextView\n//\n// Created by macmini on 2018/3/27.\n// Copyright \u00a9 2018\u5e74 org.objc.yandere. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n\n\n@end\n\n"}
80,359
c
/* $FreeBSD: head/sys/dev/drm2/radeon/r600_cp.h 254885 2013-08-25 19:37:15Z dumbbell $ */ #ifndef __R600_CP_H__ #define __R600_CP_H__ void r600_cs_legacy_get_tiling_conf(struct drm_device *dev, u32 *npipes, u32 *nbanks, u32 *group_size); int r600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp, unsigned family, u32 *ib, int *l); void r600_cs_legacy_init(void); #endif /* !defined(__R600_CP_H__) */
46.78
9
(translation_unit) "/* $FreeBSD: head/sys/dev/drm2/radeon/r600_cp.h 254885 2013-08-25 19:37:15Z dumbbell $ */\n\n#ifndef __R600_CP_H__\n#define __R600_CP_H__\n\nvoid r600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n u32 *npipes, u32 *nbanks, u32 *group_size);\n\nint r600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n unsigned family, u32 *ib, int *l);\nvoid r600_cs_legacy_init(void);\n\n#endif /* !defined(__R600_CP_H__) */\n" (comment) "/* $FreeBSD: head/sys/dev/drm2/radeon/r600_cp.h 254885 2013-08-25 19:37:15Z dumbbell $ */" (preproc_ifdef) "#ifndef __R600_CP_H__\n#define __R600_CP_H__\n\nvoid r600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n u32 *npipes, u32 *nbanks, u32 *group_size);\n\nint r600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n unsigned family, u32 *ib, int *l);\nvoid r600_cs_legacy_init(void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "__R600_CP_H__" (preproc_def) "#define __R600_CP_H__\n" (#define) "#define" (identifier) "__R600_CP_H__" (declaration) "void r600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n u32 *npipes, u32 *nbanks, u32 *group_size);" (primitive_type) "void" (function_declarator) "r600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n u32 *npipes, u32 *nbanks, u32 *group_size)" (identifier) "r600_cs_legacy_get_tiling_conf" (parameter_list) "(struct drm_device *dev,\n u32 *npipes, u32 *nbanks, u32 *group_size)" (() "(" (parameter_declaration) "struct drm_device *dev" (struct_specifier) "struct drm_device" (struct) "struct" (type_identifier) "drm_device" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "u32 *npipes" (type_identifier) "u32" (pointer_declarator) "*npipes" (*) "*" (identifier) "npipes" (,) "," (parameter_declaration) "u32 *nbanks" (type_identifier) "u32" (pointer_declarator) "*nbanks" (*) "*" (identifier) "nbanks" (,) "," (parameter_declaration) "u32 *group_size" (type_identifier) "u32" (pointer_declarator) "*group_size" (*) "*" (identifier) "group_size" ()) ")" (;) ";" (declaration) "int r600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n unsigned family, u32 *ib, int *l);" (primitive_type) "int" (function_declarator) "r600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n unsigned family, u32 *ib, int *l)" (identifier) "r600_cs_legacy" (parameter_list) "(struct drm_device *dev, void *data, struct drm_file *filp,\n unsigned family, u32 *ib, int *l)" (() "(" (parameter_declaration) "struct drm_device *dev" (struct_specifier) "struct drm_device" (struct) "struct" (type_identifier) "drm_device" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "void *data" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (identifier) "data" (,) "," (parameter_declaration) "struct drm_file *filp" (struct_specifier) "struct drm_file" (struct) "struct" (type_identifier) "drm_file" (pointer_declarator) "*filp" (*) "*" (identifier) "filp" (,) "," (parameter_declaration) "unsigned family" (sized_type_specifier) "unsigned" (unsigned) "unsigned" (identifier) "family" (,) "," (parameter_declaration) "u32 *ib" (type_identifier) "u32" (pointer_declarator) "*ib" (*) "*" (identifier) "ib" (,) "," (parameter_declaration) "int *l" (primitive_type) "int" (pointer_declarator) "*l" (*) "*" (identifier) "l" ()) ")" (;) ";" (declaration) "void r600_cs_legacy_init(void);" (primitive_type) "void" (function_declarator) "r600_cs_legacy_init(void)" (identifier) "r600_cs_legacy_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif" (comment) "/* !defined(__R600_CP_H__) */"
99
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 46.78, "nodes": 79, "errors": 0, "source_hash": "96306036409e395245d06c17ab590224c311400a0034b38841691a15f220eef7", "categorized_nodes": 49}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __R600_CP_H__\n#define\t__R600_CP_H__\n\nvoid\tr600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n\t u32 *npipes, u32 *nbanks, u32 *group_size);\n\nint\tr600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n\t unsigned family, u32 *ib, int *l);\nvoid\tr600_cs_legacy_init(void);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 33, 71, 78], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 12, "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": "__R600_CP_H__", "parent": 0, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define\t__R600_CP_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": "__R600_CP_H__", "parent": 3, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 21}}, {"id": 6, "type": "declaration", "text": "void\tr600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n\t u32 *npipes, u32 *nbanks, u32 *group_size);", "parent": 0, "children": [7, 8], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 48}}, {"id": 7, "type": "primitive_type", "text": "void", "parent": 6, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 8, "type": "function_declarator", "text": "r600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n\t u32 *npipes, u32 *nbanks, u32 *group_size)", "parent": 6, "children": [9, 10], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 6, "column": 47}}, {"id": 9, "type": "identifier", "text": "r600_cs_legacy_get_tiling_conf", "parent": 8, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 35}}, {"id": 10, "type": "parameter_list", "text": "(struct drm_device *dev,\n\t u32 *npipes, u32 *nbanks, u32 *group_size)", "parent": 8, "children": [11, 18, 23, 28], "start_point": {"row": 5, "column": 35}, "end_point": {"row": 6, "column": 47}}, {"id": 11, "type": "parameter_declaration", "text": "struct drm_device *dev", "parent": 10, "children": [12, 15], "start_point": {"row": 5, "column": 36}, "end_point": {"row": 5, "column": 58}}, {"id": 12, "type": "struct_specifier", "text": "struct drm_device", "parent": 11, "children": [13, 14], "start_point": {"row": 5, "column": 36}, "end_point": {"row": 5, "column": 53}}, {"id": 13, "type": "struct", "text": "struct", "parent": 12, "children": [], "start_point": {"row": 5, "column": 36}, "end_point": {"row": 5, "column": 42}}, {"id": 14, "type": "type_identifier", "text": "drm_device", "parent": 12, "children": [], "start_point": {"row": 5, "column": 43}, "end_point": {"row": 5, "column": 53}}, {"id": 15, "type": "pointer_declarator", "text": "*dev", "parent": 11, "children": [16, 17], "start_point": {"row": 5, "column": 54}, "end_point": {"row": 5, "column": 58}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 5, "column": 54}, "end_point": {"row": 5, "column": 55}}, {"id": 17, "type": "identifier", "text": "dev", "parent": 15, "children": [], "start_point": {"row": 5, "column": 55}, "end_point": {"row": 5, "column": 58}}, {"id": 18, "type": "parameter_declaration", "text": "u32 *npipes", "parent": 10, "children": [19, 20], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 16}}, {"id": 19, "type": "type_identifier", "text": "u32", "parent": 18, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 8}}, {"id": 20, "type": "pointer_declarator", "text": "*npipes", "parent": 18, "children": [21, 22], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 16}}, {"id": 21, "type": "*", "text": "*", "parent": 20, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 10}}, {"id": 22, "type": "identifier", "text": "npipes", "parent": 20, "children": [], "start_point": {"row": 6, "column": 10}, "end_point": {"row": 6, "column": 16}}, {"id": 23, "type": "parameter_declaration", "text": "u32 *nbanks", "parent": 10, "children": [24, 25], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 29}}, {"id": 24, "type": "type_identifier", "text": "u32", "parent": 23, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 21}}, {"id": 25, "type": "pointer_declarator", "text": "*nbanks", "parent": 23, "children": [26, 27], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 29}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 6, "column": 22}, "end_point": {"row": 6, "column": 23}}, {"id": 27, "type": "identifier", "text": "nbanks", "parent": 25, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 29}}, {"id": 28, "type": "parameter_declaration", "text": "u32 *group_size", "parent": 10, "children": [29, 30], "start_point": {"row": 6, "column": 31}, "end_point": {"row": 6, "column": 46}}, {"id": 29, "type": "type_identifier", "text": "u32", "parent": 28, "children": [], "start_point": {"row": 6, "column": 31}, "end_point": {"row": 6, "column": 34}}, {"id": 30, "type": "pointer_declarator", "text": "*group_size", "parent": 28, "children": [31, 32], "start_point": {"row": 6, "column": 35}, "end_point": {"row": 6, "column": 46}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 6, "column": 35}, "end_point": {"row": 6, "column": 36}}, {"id": 32, "type": "identifier", "text": "group_size", "parent": 30, "children": [], "start_point": {"row": 6, "column": 36}, "end_point": {"row": 6, "column": 46}}, {"id": 33, "type": "declaration", "text": "int\tr600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n\t unsigned family, u32 *ib, int *l);", "parent": 0, "children": [34, 35], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 39}}, {"id": 34, "type": "primitive_type", "text": "int", "parent": 33, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 35, "type": "function_declarator", "text": "r600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n\t unsigned family, u32 *ib, int *l)", "parent": 33, "children": [36, 37], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 9, "column": 38}}, {"id": 36, "type": "identifier", "text": "r600_cs_legacy", "parent": 35, "children": [], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 18}}, {"id": 37, "type": "parameter_list", "text": "(struct drm_device *dev, void *data, struct drm_file *filp,\n\t unsigned family, u32 *ib, int *l)", "parent": 35, "children": [38, 45, 50, 57, 61, 66], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 9, "column": 38}}, {"id": 38, "type": "parameter_declaration", "text": "struct drm_device *dev", "parent": 37, "children": [39, 42], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 41}}, {"id": 39, "type": "struct_specifier", "text": "struct drm_device", "parent": 38, "children": [40, 41], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 36}}, {"id": 40, "type": "struct", "text": "struct", "parent": 39, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 25}}, {"id": 41, "type": "type_identifier", "text": "drm_device", "parent": 39, "children": [], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 36}}, {"id": 42, "type": "pointer_declarator", "text": "*dev", "parent": 38, "children": [43, 44], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 41}}, {"id": 43, "type": "*", "text": "*", "parent": 42, "children": [], "start_point": {"row": 8, "column": 37}, "end_point": {"row": 8, "column": 38}}, {"id": 44, "type": "identifier", "text": "dev", "parent": 42, "children": [], "start_point": {"row": 8, "column": 38}, "end_point": {"row": 8, "column": 41}}, {"id": 45, "type": "parameter_declaration", "text": "void *data", "parent": 37, "children": [46, 47], "start_point": {"row": 8, "column": 43}, "end_point": {"row": 8, "column": 53}}, {"id": 46, "type": "primitive_type", "text": "void", "parent": 45, "children": [], "start_point": {"row": 8, "column": 43}, "end_point": {"row": 8, "column": 47}}, {"id": 47, "type": "pointer_declarator", "text": "*data", "parent": 45, "children": [48, 49], "start_point": {"row": 8, "column": 48}, "end_point": {"row": 8, "column": 53}}, {"id": 48, "type": "*", "text": "*", "parent": 47, "children": [], "start_point": {"row": 8, "column": 48}, "end_point": {"row": 8, "column": 49}}, {"id": 49, "type": "identifier", "text": "data", "parent": 47, "children": [], "start_point": {"row": 8, "column": 49}, "end_point": {"row": 8, "column": 53}}, {"id": 50, "type": "parameter_declaration", "text": "struct drm_file *filp", "parent": 37, "children": [51, 54], "start_point": {"row": 8, "column": 55}, "end_point": {"row": 8, "column": 76}}, {"id": 51, "type": "struct_specifier", "text": "struct drm_file", "parent": 50, "children": [52, 53], "start_point": {"row": 8, "column": 55}, "end_point": {"row": 8, "column": 70}}, {"id": 52, "type": "struct", "text": "struct", "parent": 51, "children": [], "start_point": {"row": 8, "column": 55}, "end_point": {"row": 8, "column": 61}}, {"id": 53, "type": "type_identifier", "text": "drm_file", "parent": 51, "children": [], "start_point": {"row": 8, "column": 62}, "end_point": {"row": 8, "column": 70}}, {"id": 54, "type": "pointer_declarator", "text": "*filp", "parent": 50, "children": [55, 56], "start_point": {"row": 8, "column": 71}, "end_point": {"row": 8, "column": 76}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 8, "column": 71}, "end_point": {"row": 8, "column": 72}}, {"id": 56, "type": "identifier", "text": "filp", "parent": 54, "children": [], "start_point": {"row": 8, "column": 72}, "end_point": {"row": 8, "column": 76}}, {"id": 57, "type": "parameter_declaration", "text": "unsigned family", "parent": 37, "children": [58, 60], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 20}}, {"id": 58, "type": "sized_type_specifier", "text": "unsigned", "parent": 57, "children": [59], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 13}}, {"id": 59, "type": "unsigned", "text": "unsigned", "parent": 58, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 13}}, {"id": 60, "type": "identifier", "text": "family", "parent": 57, "children": [], "start_point": {"row": 9, "column": 14}, "end_point": {"row": 9, "column": 20}}, {"id": 61, "type": "parameter_declaration", "text": "u32 *ib", "parent": 37, "children": [62, 63], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 29}}, {"id": 62, "type": "type_identifier", "text": "u32", "parent": 61, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 25}}, {"id": 63, "type": "pointer_declarator", "text": "*ib", "parent": 61, "children": [64, 65], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 29}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 9, "column": 26}, "end_point": {"row": 9, "column": 27}}, {"id": 65, "type": "identifier", "text": "ib", "parent": 63, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 29}}, {"id": 66, "type": "parameter_declaration", "text": "int *l", "parent": 37, "children": [67, 68], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 37}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 66, "children": [], "start_point": {"row": 9, "column": 31}, "end_point": {"row": 9, "column": 34}}, {"id": 68, "type": "pointer_declarator", "text": "*l", "parent": 66, "children": [69, 70], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 37}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 36}}, {"id": 70, "type": "identifier", "text": "l", "parent": 68, "children": [], "start_point": {"row": 9, "column": 36}, "end_point": {"row": 9, "column": 37}}, {"id": 71, "type": "declaration", "text": "void\tr600_cs_legacy_init(void);", "parent": 0, "children": [72, 73], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 31}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 4}}, {"id": 73, "type": "function_declarator", "text": "r600_cs_legacy_init(void)", "parent": 71, "children": [74, 75], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 30}}, {"id": 74, "type": "identifier", "text": "r600_cs_legacy_init", "parent": 73, "children": [], "start_point": {"row": 10, "column": 5}, "end_point": {"row": 10, "column": 24}}, {"id": 75, "type": "parameter_list", "text": "(void)", "parent": 73, "children": [76], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 30}}, {"id": 76, "type": "parameter_declaration", "text": "void", "parent": 75, "children": [77], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 29}}, {"id": 77, "type": "primitive_type", "text": "void", "parent": 76, "children": [], "start_point": {"row": 10, "column": 25}, "end_point": {"row": 10, "column": 29}}, {"id": 78, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 6}}]}, "node_categories": {"declarations": {"functions": [8, 35, 73], "variables": [6, 11, 18, 23, 28, 33, 38, 45, 50, 57, 61, 66, 71, 76], "classes": [12, 13, 39, 40, 51, 52], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 14, 17, 19, 22, 24, 27, 29, 32, 36, 41, 44, 49, 53, 56, 58, 60, 62, 65, 70, 74, 78], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "r600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n\t u32 *npipes, u32 *nbanks, u32 *group_siz"}, {"node_id": 35, "universal_type": "function", "name": "*data,", "text_snippet": "r600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n\t unsigned family, u32 "}, {"node_id": 73, "universal_type": "function", "name": "unknown", "text_snippet": "r600_cs_legacy_init(void)"}], "class_declarations": [{"node_id": 12, "universal_type": "class", "name": "drm_device", "text_snippet": "struct drm_device"}, {"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 39, "universal_type": "class", "name": "drm_device", "text_snippet": "struct drm_device"}, {"node_id": 40, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 51, "universal_type": "class", "name": "drm_file", "text_snippet": "struct drm_file"}, {"node_id": 52, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/* $FreeBSD: head/sys/dev/drm2/radeon/r600_cp.h 254885 2013-08-25 19:37:15Z dumbbell $ */\n\n#ifndef __R600_CP_H__\n#define\t__R600_CP_H__\n\nvoid\tr600_cs_legacy_get_tiling_conf(struct drm_device *dev,\n\t u32 *npipes, u32 *nbanks, u32 *group_size);\n\nint\tr600_cs_legacy(struct drm_device *dev, void *data, struct drm_file *filp,\n\t unsigned family, u32 *ib, int *l);\nvoid\tr600_cs_legacy_init(void);\n\n#endif /* !defined(__R600_CP_H__) */\n"}
80,360
c
// // UIControl+AgainTouch.h // CategoryDemo // // Created by MaricleZhang on 2019/3/20. // Copyright © 2019 MaricleZhang. All rights reserved. // /** 防止按钮重复点击 */ #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIControl (AgainTouch) @property (nonatomic, assign) NSTimeInterval touchInterval; @end NS_ASSUME_NONNULL_END
23.07
14
(translation_unit) "//\n// UIControl+AgainTouch.h\n// CategoryDemo\n//\n// Created by MaricleZhang on 2019/3/20.\n// Copyright © 2019 MaricleZhang. All rights reserved.\n//\n\n/** 防止按钮重复点击 */\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIControl (AgainTouch)\n\n@property (nonatomic, assign) NSTimeInterval touchInterval;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// UIControl+AgainTouch.h" (comment) "// CategoryDemo" (comment) "//" (comment) "// Created by MaricleZhang on 2019/3/20." (comment) "// Copyright © 2019 MaricleZhang. All rights reserved.\n" (comment) "/\n" (comment) "** 防止按钮重复点击 */\n#import <UIKit/U" (preproc_call) "Kit.h>\n\nNS_ASSUME_NONNUL" (preproc_directive) "Kit.h>\n" (preproc_arg) "NS_ASSUME_NONNU" (ERROR) "_BEGIN\n\n@interface UIControl (AgainTouch)\n\n@property (nonatomic, assign) NSTimeInterval touchInterval;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "_BEGIN\n\n@interface UICo" (ERROR) "rol (Again" (ERROR) "r" (identifier) "ol (Again" (function_declarator) "ouch)\n\n@property (nona" (identifier) "ouch)\n\n@p" (parameter_list) "operty (nona" (() "o" (identifier) "perty (non" ()) "a" (ERROR) "m" (ERROR) "m" (declaration) "ic, assign) NSTimeInterval touchInterval;\n\n@end\n\nNS_ASSUME" (macro_type_specifier) "ic, assign) NSTimeInterval t" (identifier) "ic, assi" (() "n" (type_descriptor) ") NSTimeI" (type_identifier) ") NSTimeI" (ERROR) "nterval " (,) "n" (identifier) "erval " ()) "t" (identifier) "uchInterval;\n\n" (ERROR) "end\n\nNS_ASSUM" (identifier) "end\n\nNS_ASSUM" (;) "E" (ERROR) "O" (ERROR) "O" (type_identifier) "NNU" (identifier) "_END\n"
43
9
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 23.07, "nodes": 28, "errors": 0, "source_hash": "7293892f4199beea7a7d2c95ea2d22b6dfd201428ddc7a46b5f465f59b2c4b73", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Kit.h>\n\nNS_ASSUME_NONNUL", "parent": null, "children": [1, 2], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "Kit.h>\n", "parent": 0, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "NS_ASSUME_NONNU", "parent": 0, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 23}}, {"id": 3, "type": "ERROR", "text": "_BEGIN\n\n@interface UIControl (AgainTouch)\n\n@property (nonatomic, assign) NSTimeInterval touchInterval;\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [4, 5, 8, 12, 14, 24, 26, 27], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 19, "column": 21}}, {"id": 4, "type": "type_identifier", "text": "_BEGIN\n\n@interface UICo", "parent": 3, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 23}}, {"id": 5, "type": "ERROR", "text": "rol (Again", "parent": 3, "children": [6, 7], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 10}}, {"id": 6, "type": "ERROR", "text": "r", "parent": 5, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 1}}, {"id": 7, "type": "identifier", "text": "ol (Again", "parent": 5, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 10}}, {"id": 8, "type": "function_declarator", "text": "ouch)\n\n@property (nona", "parent": 3, "children": [9, 10], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 33}}, {"id": 9, "type": "identifier", "text": "ouch)\n\n@p", "parent": 8, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 20}}, {"id": 10, "type": "parameter_list", "text": "operty (nona", "parent": 8, "children": [11], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 33}}, {"id": 11, "type": "identifier", "text": "perty (non", "parent": 10, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 32}}, {"id": 12, "type": "ERROR", "text": "m", "parent": 3, "children": [13], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 13, "type": "ERROR", "text": "m", "parent": 12, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 14, "type": "declaration", "text": "ic, assign) NSTimeInterval touchInterval;\n\n@end\n\nNS_ASSUME", "parent": 3, "children": [15, 21, 22], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 59}}, {"id": 15, "type": "macro_type_specifier", "text": "ic, assign) NSTimeInterval t", "parent": 14, "children": [16, 17, 19], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 29}}, {"id": 16, "type": "identifier", "text": "ic, assi", "parent": 15, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 17, "type": "type_descriptor", "text": ") NSTimeI", "parent": 15, "children": [18], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 18, "type": "type_identifier", "text": ") NSTimeI", "parent": 17, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 20}}, {"id": 19, "type": "ERROR", "text": "nterval ", "parent": 15, "children": [20], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 28}}, {"id": 20, "type": "identifier", "text": "erval ", "parent": 19, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 28}}, {"id": 21, "type": "identifier", "text": "uchInterval;\n\n", "parent": 14, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 44}}, {"id": 22, "type": "ERROR", "text": "end\n\nNS_ASSUM", "parent": 14, "children": [23], "start_point": {"row": 15, "column": 45}, "end_point": {"row": 15, "column": 58}}, {"id": 23, "type": "identifier", "text": "end\n\nNS_ASSUM", "parent": 22, "children": [], "start_point": {"row": 15, "column": 45}, "end_point": {"row": 15, "column": 58}}, {"id": 24, "type": "ERROR", "text": "O", "parent": 3, "children": [25], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 25, "type": "ERROR", "text": "O", "parent": 24, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 1}}, {"id": 26, "type": "type_identifier", "text": "NNU", "parent": 3, "children": [], "start_point": {"row": 17, "column": 1}, "end_point": {"row": 17, "column": 4}}, {"id": 27, "type": "identifier", "text": "_END\n", "parent": 3, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 21}}]}, "node_categories": {"declarations": {"functions": [8], "variables": [14], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [4, 7, 9, 11, 15, 16, 18, 20, 21, 23, 26, 27], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "ouch)\n\n@property (nona"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// UIControl+AgainTouch.h\n// CategoryDemo\n//\n// Created by MaricleZhang on 2019/3/20.\n// Copyright \u00a9 2019 MaricleZhang. All rights reserved.\n//\n\n/** \u9632\u6b62\u6309\u94ae\u91cd\u590d\u70b9\u51fb */\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface UIControl (AgainTouch)\n\n@property (nonatomic, assign) NSTimeInterval touchInterval;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,361
c
#pragma once #include "common/common.h" #include "tile.h" namespace SCAMP { static constexpr int NUM_EXTRA_OPERANDS = 3; template <typename T> struct SCAMPKernelInputArgs { SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join); T *__restrict cov; const T *__restrict dfa; const T *__restrict dfb; const T *__restrict dga; const T *__restrict dgb; const T *__restrict normsa; const T *__restrict normsb; const float *__restrict thresholds_a; const float *__restrict thresholds_b; const T *__restrict extras[NUM_EXTRA_OPERANDS]; unsigned long long int *profile_a_length; unsigned long long int *profile_b_length; int64_t max_matches_per_tile; int32_t n_x; int32_t n_y; int32_t exclusion_lower; int32_t exclusion_upper; int32_t matrix_width; int32_t matrix_height; int32_t rows_per_cell; int32_t cols_per_cell; int64_t global_start_col; int64_t global_start_row; bool has_nan_input; OptionalArgs opt; void Print(); }; } // namespace SCAMP
26.69
36
(translation_unit) "#pragma once\n\n#include "common/common.h"\n#include "tile.h"\n\nnamespace SCAMP {\n\nstatic constexpr int NUM_EXTRA_OPERANDS = 3;\n\ntemplate <typename T>\nstruct SCAMPKernelInputArgs {\n SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join);\n T *__restrict cov;\n const T *__restrict dfa;\n const T *__restrict dfb;\n const T *__restrict dga;\n const T *__restrict dgb;\n const T *__restrict normsa;\n const T *__restrict normsb;\n const float *__restrict thresholds_a;\n const float *__restrict thresholds_b;\n const T *__restrict extras[NUM_EXTRA_OPERANDS];\n unsigned long long int *profile_a_length;\n unsigned long long int *profile_b_length;\n int64_t max_matches_per_tile;\n int32_t n_x;\n int32_t n_y;\n int32_t exclusion_lower;\n int32_t exclusion_upper;\n int32_t matrix_width;\n int32_t matrix_height;\n int32_t rows_per_cell;\n int32_t cols_per_cell;\n int64_t global_start_col;\n int64_t global_start_row;\n bool has_nan_input;\n\n OptionalArgs opt;\n void Print();\n};\n\n} // namespace SCAMP\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include "common/common.h"\n" (#include) "#include" (string_literal) ""common/common.h"" (") """ (string_content) "common/common.h" (") """ (preproc_include) "#include "tile.h"\n" (#include) "#include" (string_literal) ""tile.h"" (") """ (string_content) "tile.h" (") """ (function_definition) "namespace SCAMP {\n\nstatic constexpr int NUM_EXTRA_OPERANDS = 3;\n\ntemplate <typename T>\nstruct SCAMPKernelInputArgs {\n SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join);\n T *__restrict cov;\n const T *__restrict dfa;\n const T *__restrict dfb;\n const T *__restrict dga;\n const T *__restrict dgb;\n const T *__restrict normsa;\n const T *__restrict normsb;\n const float *__restrict thresholds_a;\n const float *__restrict thresholds_b;\n const T *__restrict extras[NUM_EXTRA_OPERANDS];\n unsigned long long int *profile_a_length;\n unsigned long long int *profile_b_length;\n int64_t max_matches_per_tile;\n int32_t n_x;\n int32_t n_y;\n int32_t exclusion_lower;\n int32_t exclusion_upper;\n int32_t matrix_width;\n int32_t matrix_height;\n int32_t rows_per_cell;\n int32_t cols_per_cell;\n int64_t global_start_col;\n int64_t global_start_row;\n bool has_nan_input;\n\n OptionalArgs opt;\n void Print();\n};\n\n}" (type_identifier) "namespace" (identifier) "SCAMP" (compound_statement) "{\n\nstatic constexpr int NUM_EXTRA_OPERANDS = 3;\n\ntemplate <typename T>\nstruct SCAMPKernelInputArgs {\n SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join);\n T *__restrict cov;\n const T *__restrict dfa;\n const T *__restrict dfb;\n const T *__restrict dga;\n const T *__restrict dgb;\n const T *__restrict normsa;\n const T *__restrict normsb;\n const float *__restrict thresholds_a;\n const float *__restrict thresholds_b;\n const T *__restrict extras[NUM_EXTRA_OPERANDS];\n unsigned long long int *profile_a_length;\n unsigned long long int *profile_b_length;\n int64_t max_matches_per_tile;\n int32_t n_x;\n int32_t n_y;\n int32_t exclusion_lower;\n int32_t exclusion_upper;\n int32_t matrix_width;\n int32_t matrix_height;\n int32_t rows_per_cell;\n int32_t cols_per_cell;\n int64_t global_start_col;\n int64_t global_start_row;\n bool has_nan_input;\n\n OptionalArgs opt;\n void Print();\n};\n\n}" ({) "{" (declaration) "static constexpr int NUM_EXTRA_OPERANDS = 3;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "constexpr" (constexpr) "constexpr" (primitive_type) "int" (init_declarator) "NUM_EXTRA_OPERANDS = 3" (identifier) "NUM_EXTRA_OPERANDS" (=) "=" (number_literal) "3" (;) ";" (ERROR) "template <typename T>\nstruct SCAMPKernelInputArgs" (binary_expression) "template <typename T>\nstruct" (binary_expression) "template <typename" (identifier) "template" (<) "<" (identifier) "typename" (ERROR) "T" (identifier) "T" (>) ">" (identifier) "struct" (identifier) "SCAMPKernelInputArgs" (compound_statement) "{\n SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join);\n T *__restrict cov;\n const T *__restrict dfa;\n const T *__restrict dfb;\n const T *__restrict dga;\n const T *__restrict dgb;\n const T *__restrict normsa;\n const T *__restrict normsb;\n const float *__restrict thresholds_a;\n const float *__restrict thresholds_b;\n const T *__restrict extras[NUM_EXTRA_OPERANDS];\n unsigned long long int *profile_a_length;\n unsigned long long int *profile_b_length;\n int64_t max_matches_per_tile;\n int32_t n_x;\n int32_t n_y;\n int32_t exclusion_lower;\n int32_t exclusion_upper;\n int32_t matrix_width;\n int32_t matrix_height;\n int32_t rows_per_cell;\n int32_t cols_per_cell;\n int64_t global_start_col;\n int64_t global_start_row;\n bool has_nan_input;\n\n OptionalArgs opt;\n void Print();\n}" ({) "{" (expression_statement) "SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join);" (call_expression) "SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join)" (identifier) "SCAMPKernelInputArgs" (argument_list) "(Tile *t, bool transpose, bool ab_join)" (() "(" (binary_expression) "Tile *t" (identifier) "Tile" (*) "*" (identifier) "t" (,) "," (ERROR) "bool" (identifier) "bool" (identifier) "transpose" (,) "," (ERROR) "bool" (identifier) "bool" (identifier) "ab_join" ()) ")" (;) ";" (declaration) "T *__restrict cov;" (type_identifier) "T" (pointer_declarator) "*__restrict cov" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "cov" (;) ";" (declaration) "const T *__restrict dfa;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (pointer_declarator) "*__restrict dfa" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "dfa" (;) ";" (declaration) "const T *__restrict dfb;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (pointer_declarator) "*__restrict dfb" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "dfb" (;) ";" (declaration) "const T *__restrict dga;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (pointer_declarator) "*__restrict dga" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "dga" (;) ";" (declaration) "const T *__restrict dgb;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (pointer_declarator) "*__restrict dgb" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "dgb" (;) ";" (declaration) "const T *__restrict normsa;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (pointer_declarator) "*__restrict normsa" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "normsa" (;) ";" (declaration) "const T *__restrict normsb;" (type_qualifier) "const" (const) "const" (type_identifier) "T" (pointer_declarator) "*__restrict normsb" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "normsb" (;) ";" (declaration) "const float *__restrict thresholds_a;" (type_qualifier) "const" (const) "const" (primitive_type) "float" (pointer_declarator) "*__restrict thresholds_a" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "thresholds_a" (;) ";" (declaration) "const float *__restrict thresholds_b;" (type_qualifier) "const" (const) "const" (primitive_type) "float" (pointer_declarator) "*__restrict thresholds_b" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (identifier) "thresholds_b" (;) ";" (declaration) "const T *__restrict extras[NUM_EXTRA_OPERANDS];" (type_qualifier) "const" (const) "const" (type_identifier) "T" (pointer_declarator) "*__restrict extras[NUM_EXTRA_OPERANDS]" (*) "*" (ms_pointer_modifier) "__restrict" (ms_restrict_modifier) "__restrict" (array_declarator) "extras[NUM_EXTRA_OPERANDS]" (identifier) "extras" ([) "[" (identifier) "NUM_EXTRA_OPERANDS" (]) "]" (;) ";" (declaration) "unsigned long long int *profile_a_length;" (sized_type_specifier) "unsigned long long int" (unsigned) "unsigned" (long) "long" (long) "long" (primitive_type) "int" (pointer_declarator) "*profile_a_length" (*) "*" (identifier) "profile_a_length" (;) ";" (declaration) "unsigned long long int *profile_b_length;" (sized_type_specifier) "unsigned long long int" (unsigned) "unsigned" (long) "long" (long) "long" (primitive_type) "int" (pointer_declarator) "*profile_b_length" (*) "*" (identifier) "profile_b_length" (;) ";" (declaration) "int64_t max_matches_per_tile;" (primitive_type) "int64_t" (identifier) "max_matches_per_tile" (;) ";" (declaration) "int32_t n_x;" (primitive_type) "int32_t" (identifier) "n_x" (;) ";" (declaration) "int32_t n_y;" (primitive_type) "int32_t" (identifier) "n_y" (;) ";" (declaration) "int32_t exclusion_lower;" (primitive_type) "int32_t" (identifier) "exclusion_lower" (;) ";" (declaration) "int32_t exclusion_upper;" (primitive_type) "int32_t" (identifier) "exclusion_upper" (;) ";" (declaration) "int32_t matrix_width;" (primitive_type) "int32_t" (identifier) "matrix_width" (;) ";" (declaration) "int32_t matrix_height;" (primitive_type) "int32_t" (identifier) "matrix_height" (;) ";" (declaration) "int32_t rows_per_cell;" (primitive_type) "int32_t" (identifier) "rows_per_cell" (;) ";" (declaration) "int32_t cols_per_cell;" (primitive_type) "int32_t" (identifier) "cols_per_cell" (;) ";" (declaration) "int64_t global_start_col;" (primitive_type) "int64_t" (identifier) "global_start_col" (;) ";" (declaration) "int64_t global_start_row;" (primitive_type) "int64_t" (identifier) "global_start_row" (;) ";" (declaration) "bool has_nan_input;" (primitive_type) "bool" (identifier) "has_nan_input" (;) ";" (declaration) "OptionalArgs opt;" (type_identifier) "OptionalArgs" (identifier) "opt" (;) ";" (declaration) "void Print();" (primitive_type) "void" (function_declarator) "Print()" (identifier) "Print" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace SCAMP"
251
4
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 26.69, "nodes": 178, "errors": 0, "source_hash": "b915c7ea7a9b724fda0f6148355a1d07e84eeced822ccb8359109fb100e74646", "categorized_nodes": 115}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 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 \"common/common.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": "\"common/common.h\"", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include \"tile.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": "\"tile.h\"", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 17}}, {"id": 9, "type": "function_definition", "text": "namespace SCAMP {\n\nstatic constexpr int NUM_EXTRA_OPERANDS = 3;\n\ntemplate <typename T>\nstruct SCAMPKernelInputArgs {\n SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join);\n T *__restrict cov;\n const T *__restrict dfa;\n const T *__restrict dfb;\n const T *__restrict dga;\n const T *__restrict dgb;\n const T *__restrict normsa;\n const T *__restrict normsb;\n const float *__restrict thresholds_a;\n const float *__restrict thresholds_b;\n const T *__restrict extras[NUM_EXTRA_OPERANDS];\n unsigned long long int *profile_a_length;\n unsigned long long int *profile_b_length;\n int64_t max_matches_per_tile;\n int32_t n_x;\n int32_t n_y;\n int32_t exclusion_lower;\n int32_t exclusion_upper;\n int32_t matrix_width;\n int32_t matrix_height;\n int32_t rows_per_cell;\n int32_t cols_per_cell;\n int64_t global_start_col;\n int64_t global_start_row;\n bool has_nan_input;\n\n OptionalArgs opt;\n void Print();\n};\n\n}", "parent": null, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 9}}, {"id": 11, "type": "identifier", "text": "SCAMP", "parent": 9, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 15}}, {"id": 12, "type": "declaration", "text": "static constexpr int NUM_EXTRA_OPERANDS = 3;", "parent": 9, "children": [13, 15, 16], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 44}}, {"id": 13, "type": "type_qualifier", "text": "constexpr", "parent": 12, "children": [14], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 16}}, {"id": 14, "type": "constexpr", "text": "constexpr", "parent": 13, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 16}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 7, "column": 17}, "end_point": {"row": 7, "column": 20}}, {"id": 16, "type": "init_declarator", "text": "NUM_EXTRA_OPERANDS = 3", "parent": 12, "children": [17, 18, 19], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 43}}, {"id": 17, "type": "identifier", "text": "NUM_EXTRA_OPERANDS", "parent": 16, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 39}}, {"id": 18, "type": "=", "text": "=", "parent": 16, "children": [], "start_point": {"row": 7, "column": 40}, "end_point": {"row": 7, "column": 41}}, {"id": 19, "type": "number_literal", "text": "3", "parent": 16, "children": [], "start_point": {"row": 7, "column": 42}, "end_point": {"row": 7, "column": 43}}, {"id": 20, "type": "ERROR", "text": "template <typename T>\nstruct SCAMPKernelInputArgs", "parent": 9, "children": [21, 30], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 27}}, {"id": 21, "type": "binary_expression", "text": "template <typename T>\nstruct", "parent": 20, "children": [22, 26, 28, 29], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 22, "type": "binary_expression", "text": "template <typename", "parent": 21, "children": [23, 24, 25], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 18}}, {"id": 23, "type": "identifier", "text": "template", "parent": 22, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 24, "type": "<", "text": "<", "parent": 22, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 10}}, {"id": 25, "type": "identifier", "text": "typename", "parent": 22, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 18}}, {"id": 26, "type": "ERROR", "text": "T", "parent": 21, "children": [27], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 20}}, {"id": 27, "type": "identifier", "text": "T", "parent": 26, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 20}}, {"id": 28, "type": ">", "text": ">", "parent": 21, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 21}}, {"id": 29, "type": "identifier", "text": "struct", "parent": 21, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 30, "type": "identifier", "text": "SCAMPKernelInputArgs", "parent": 20, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 27}}, {"id": 31, "type": "call_expression", "text": "SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join)", "parent": 9, "children": [32, 33], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 61}}, {"id": 32, "type": "identifier", "text": "SCAMPKernelInputArgs", "parent": 31, "children": [], "start_point": {"row": 11, "column": 2}, "end_point": {"row": 11, "column": 22}}, {"id": 33, "type": "argument_list", "text": "(Tile *t, bool transpose, bool ab_join)", "parent": 31, "children": [34, 38, 40, 41, 43], "start_point": {"row": 11, "column": 22}, "end_point": {"row": 11, "column": 61}}, {"id": 34, "type": "binary_expression", "text": "Tile *t", "parent": 33, "children": [35, 36, 37], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 30}}, {"id": 35, "type": "identifier", "text": "Tile", "parent": 34, "children": [], "start_point": {"row": 11, "column": 23}, "end_point": {"row": 11, "column": 27}}, {"id": 36, "type": "*", "text": "*", "parent": 34, "children": [], "start_point": {"row": 11, "column": 28}, "end_point": {"row": 11, "column": 29}}, {"id": 37, "type": "identifier", "text": "t", "parent": 34, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 30}}, {"id": 38, "type": "ERROR", "text": "bool", "parent": 33, "children": [39], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 36}}, {"id": 39, "type": "identifier", "text": "bool", "parent": 38, "children": [], "start_point": {"row": 11, "column": 32}, "end_point": {"row": 11, "column": 36}}, {"id": 40, "type": "identifier", "text": "transpose", "parent": 33, "children": [], "start_point": {"row": 11, "column": 37}, "end_point": {"row": 11, "column": 46}}, {"id": 41, "type": "ERROR", "text": "bool", "parent": 33, "children": [42], "start_point": {"row": 11, "column": 48}, "end_point": {"row": 11, "column": 52}}, {"id": 42, "type": "identifier", "text": "bool", "parent": 41, "children": [], "start_point": {"row": 11, "column": 48}, "end_point": {"row": 11, "column": 52}}, {"id": 43, "type": "identifier", "text": "ab_join", "parent": 33, "children": [], "start_point": {"row": 11, "column": 53}, "end_point": {"row": 11, "column": 60}}, {"id": 44, "type": "declaration", "text": "T *__restrict cov;", "parent": 9, "children": [45, 46], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 20}}, {"id": 45, "type": "type_identifier", "text": "T", "parent": 44, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 3}}, {"id": 46, "type": "pointer_declarator", "text": "*__restrict cov", "parent": 44, "children": [47, 48, 50], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 19}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 5}}, {"id": 48, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 46, "children": [49], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 15}}, {"id": 49, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 48, "children": [], "start_point": {"row": 12, "column": 5}, "end_point": {"row": 12, "column": 15}}, {"id": 50, "type": "identifier", "text": "cov", "parent": 46, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 19}}, {"id": 51, "type": "declaration", "text": "const T *__restrict dfa;", "parent": 9, "children": [52, 53], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 26}}, {"id": 52, "type": "type_identifier", "text": "T", "parent": 51, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 9}}, {"id": 53, "type": "pointer_declarator", "text": "*__restrict dfa", "parent": 51, "children": [54, 55, 57], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 25}}, {"id": 54, "type": "*", "text": "*", "parent": 53, "children": [], "start_point": {"row": 13, "column": 10}, "end_point": {"row": 13, "column": 11}}, {"id": 55, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 53, "children": [56], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 21}}, {"id": 56, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 55, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 21}}, {"id": 57, "type": "identifier", "text": "dfa", "parent": 53, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 25}}, {"id": 58, "type": "declaration", "text": "const T *__restrict dfb;", "parent": 9, "children": [59, 60], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 26}}, {"id": 59, "type": "type_identifier", "text": "T", "parent": 58, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 9}}, {"id": 60, "type": "pointer_declarator", "text": "*__restrict dfb", "parent": 58, "children": [61, 62, 64], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 25}}, {"id": 61, "type": "*", "text": "*", "parent": 60, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 11}}, {"id": 62, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 60, "children": [63], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 21}}, {"id": 63, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 62, "children": [], "start_point": {"row": 14, "column": 11}, "end_point": {"row": 14, "column": 21}}, {"id": 64, "type": "identifier", "text": "dfb", "parent": 60, "children": [], "start_point": {"row": 14, "column": 22}, "end_point": {"row": 14, "column": 25}}, {"id": 65, "type": "declaration", "text": "const T *__restrict dga;", "parent": 9, "children": [66, 67], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 26}}, {"id": 66, "type": "type_identifier", "text": "T", "parent": 65, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 67, "type": "pointer_declarator", "text": "*__restrict dga", "parent": 65, "children": [68, 69, 71], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 25}}, {"id": 68, "type": "*", "text": "*", "parent": 67, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 11}}, {"id": 69, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 67, "children": [70], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 21}}, {"id": 70, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 69, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 21}}, {"id": 71, "type": "identifier", "text": "dga", "parent": 67, "children": [], "start_point": {"row": 15, "column": 22}, "end_point": {"row": 15, "column": 25}}, {"id": 72, "type": "declaration", "text": "const T *__restrict dgb;", "parent": 9, "children": [73, 74], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 26}}, {"id": 73, "type": "type_identifier", "text": "T", "parent": 72, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 9}}, {"id": 74, "type": "pointer_declarator", "text": "*__restrict dgb", "parent": 72, "children": [75, 76, 78], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 25}}, {"id": 75, "type": "*", "text": "*", "parent": 74, "children": [], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 11}}, {"id": 76, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 74, "children": [77], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 21}}, {"id": 77, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 76, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 21}}, {"id": 78, "type": "identifier", "text": "dgb", "parent": 74, "children": [], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 25}}, {"id": 79, "type": "declaration", "text": "const T *__restrict normsa;", "parent": 9, "children": [80, 81], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 29}}, {"id": 80, "type": "type_identifier", "text": "T", "parent": 79, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 9}}, {"id": 81, "type": "pointer_declarator", "text": "*__restrict normsa", "parent": 79, "children": [82, 83, 85], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 28}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}, {"id": 83, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 81, "children": [84], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 21}}, {"id": 84, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 83, "children": [], "start_point": {"row": 17, "column": 11}, "end_point": {"row": 17, "column": 21}}, {"id": 85, "type": "identifier", "text": "normsa", "parent": 81, "children": [], "start_point": {"row": 17, "column": 22}, "end_point": {"row": 17, "column": 28}}, {"id": 86, "type": "declaration", "text": "const T *__restrict normsb;", "parent": 9, "children": [87, 88], "start_point": {"row": 18, "column": 2}, "end_point": {"row": 18, "column": 29}}, {"id": 87, "type": "type_identifier", "text": "T", "parent": 86, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 9}}, {"id": 88, "type": "pointer_declarator", "text": "*__restrict normsb", "parent": 86, "children": [89, 90, 92], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 28}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 18, "column": 10}, "end_point": {"row": 18, "column": 11}}, {"id": 90, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 88, "children": [91], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 21}}, {"id": 91, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 90, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 21}}, {"id": 92, "type": "identifier", "text": "normsb", "parent": 88, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 28}}, {"id": 93, "type": "declaration", "text": "const float *__restrict thresholds_a;", "parent": 9, "children": [94, 95], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 39}}, {"id": 94, "type": "primitive_type", "text": "float", "parent": 93, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 13}}, {"id": 95, "type": "pointer_declarator", "text": "*__restrict thresholds_a", "parent": 93, "children": [96, 97, 99], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 38}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 15}}, {"id": 97, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 95, "children": [98], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 25}}, {"id": 98, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 97, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 25}}, {"id": 99, "type": "identifier", "text": "thresholds_a", "parent": 95, "children": [], "start_point": {"row": 19, "column": 26}, "end_point": {"row": 19, "column": 38}}, {"id": 100, "type": "declaration", "text": "const float *__restrict thresholds_b;", "parent": 9, "children": [101, 102], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 39}}, {"id": 101, "type": "primitive_type", "text": "float", "parent": 100, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 13}}, {"id": 102, "type": "pointer_declarator", "text": "*__restrict thresholds_b", "parent": 100, "children": [103, 104, 106], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 38}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 104, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 102, "children": [105], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 25}}, {"id": 105, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 104, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 25}}, {"id": 106, "type": "identifier", "text": "thresholds_b", "parent": 102, "children": [], "start_point": {"row": 20, "column": 26}, "end_point": {"row": 20, "column": 38}}, {"id": 107, "type": "declaration", "text": "const T *__restrict extras[NUM_EXTRA_OPERANDS];", "parent": 9, "children": [108, 109], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 49}}, {"id": 108, "type": "type_identifier", "text": "T", "parent": 107, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 9}}, {"id": 109, "type": "pointer_declarator", "text": "*__restrict extras[NUM_EXTRA_OPERANDS]", "parent": 107, "children": [110, 111, 113], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 48}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 11}}, {"id": 111, "type": "ms_pointer_modifier", "text": "__restrict", "parent": 109, "children": [112], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 21}}, {"id": 112, "type": "ms_restrict_modifier", "text": "__restrict", "parent": 111, "children": [], "start_point": {"row": 21, "column": 11}, "end_point": {"row": 21, "column": 21}}, {"id": 113, "type": "array_declarator", "text": "extras[NUM_EXTRA_OPERANDS]", "parent": 109, "children": [114, 115], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 48}}, {"id": 114, "type": "identifier", "text": "extras", "parent": 113, "children": [], "start_point": {"row": 21, "column": 22}, "end_point": {"row": 21, "column": 28}}, {"id": 115, "type": "identifier", "text": "NUM_EXTRA_OPERANDS", "parent": 113, "children": [], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 47}}, {"id": 116, "type": "declaration", "text": "unsigned long long int *profile_a_length;", "parent": 9, "children": [117, 122], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 43}}, {"id": 117, "type": "sized_type_specifier", "text": "unsigned long long int", "parent": 116, "children": [118, 119, 120, 121], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 24}}, {"id": 118, "type": "unsigned", "text": "unsigned", "parent": 117, "children": [], "start_point": {"row": 22, "column": 2}, "end_point": {"row": 22, "column": 10}}, {"id": 119, "type": "long", "text": "long", "parent": 117, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 15}}, {"id": 120, "type": "long", "text": "long", "parent": 117, "children": [], "start_point": {"row": 22, "column": 16}, "end_point": {"row": 22, "column": 20}}, {"id": 121, "type": "primitive_type", "text": "int", "parent": 117, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 24}}, {"id": 122, "type": "pointer_declarator", "text": "*profile_a_length", "parent": 116, "children": [123, 124], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 42}}, {"id": 123, "type": "*", "text": "*", "parent": 122, "children": [], "start_point": {"row": 22, "column": 25}, "end_point": {"row": 22, "column": 26}}, {"id": 124, "type": "identifier", "text": "profile_a_length", "parent": 122, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 42}}, {"id": 125, "type": "declaration", "text": "unsigned long long int *profile_b_length;", "parent": 9, "children": [126, 131], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 43}}, {"id": 126, "type": "sized_type_specifier", "text": "unsigned long long int", "parent": 125, "children": [127, 128, 129, 130], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 24}}, {"id": 127, "type": "unsigned", "text": "unsigned", "parent": 126, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 10}}, {"id": 128, "type": "long", "text": "long", "parent": 126, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 15}}, {"id": 129, "type": "long", "text": "long", "parent": 126, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 20}}, {"id": 130, "type": "primitive_type", "text": "int", "parent": 126, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 24}}, {"id": 131, "type": "pointer_declarator", "text": "*profile_b_length", "parent": 125, "children": [132, 133], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 42}}, {"id": 132, "type": "*", "text": "*", "parent": 131, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 26}}, {"id": 133, "type": "identifier", "text": "profile_b_length", "parent": 131, "children": [], "start_point": {"row": 23, "column": 26}, "end_point": {"row": 23, "column": 42}}, {"id": 134, "type": "declaration", "text": "int64_t max_matches_per_tile;", "parent": 9, "children": [135, 136], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 31}}, {"id": 135, "type": "primitive_type", "text": "int64_t", "parent": 134, "children": [], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 9}}, {"id": 136, "type": "identifier", "text": "max_matches_per_tile", "parent": 134, "children": [], "start_point": {"row": 24, "column": 10}, "end_point": {"row": 24, "column": 30}}, {"id": 137, "type": "declaration", "text": "int32_t n_x;", "parent": 9, "children": [138, 139], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 14}}, {"id": 138, "type": "primitive_type", "text": "int32_t", "parent": 137, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 9}}, {"id": 139, "type": "identifier", "text": "n_x", "parent": 137, "children": [], "start_point": {"row": 25, "column": 10}, "end_point": {"row": 25, "column": 13}}, {"id": 140, "type": "declaration", "text": "int32_t n_y;", "parent": 9, "children": [141, 142], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 14}}, {"id": 141, "type": "primitive_type", "text": "int32_t", "parent": 140, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 9}}, {"id": 142, "type": "identifier", "text": "n_y", "parent": 140, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 13}}, {"id": 143, "type": "declaration", "text": "int32_t exclusion_lower;", "parent": 9, "children": [144, 145], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 26}}, {"id": 144, "type": "primitive_type", "text": "int32_t", "parent": 143, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 9}}, {"id": 145, "type": "identifier", "text": "exclusion_lower", "parent": 143, "children": [], "start_point": {"row": 27, "column": 10}, "end_point": {"row": 27, "column": 25}}, {"id": 146, "type": "declaration", "text": "int32_t exclusion_upper;", "parent": 9, "children": [147, 148], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 26}}, {"id": 147, "type": "primitive_type", "text": "int32_t", "parent": 146, "children": [], "start_point": {"row": 28, "column": 2}, "end_point": {"row": 28, "column": 9}}, {"id": 148, "type": "identifier", "text": "exclusion_upper", "parent": 146, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 25}}, {"id": 149, "type": "declaration", "text": "int32_t matrix_width;", "parent": 9, "children": [150, 151], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 23}}, {"id": 150, "type": "primitive_type", "text": "int32_t", "parent": 149, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 9}}, {"id": 151, "type": "identifier", "text": "matrix_width", "parent": 149, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 22}}, {"id": 152, "type": "declaration", "text": "int32_t matrix_height;", "parent": 9, "children": [153, 154], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 24}}, {"id": 153, "type": "primitive_type", "text": "int32_t", "parent": 152, "children": [], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 30, "column": 9}}, {"id": 154, "type": "identifier", "text": "matrix_height", "parent": 152, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 23}}, {"id": 155, "type": "declaration", "text": "int32_t rows_per_cell;", "parent": 9, "children": [156, 157], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 24}}, {"id": 156, "type": "primitive_type", "text": "int32_t", "parent": 155, "children": [], "start_point": {"row": 31, "column": 2}, "end_point": {"row": 31, "column": 9}}, {"id": 157, "type": "identifier", "text": "rows_per_cell", "parent": 155, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 23}}, {"id": 158, "type": "declaration", "text": "int32_t cols_per_cell;", "parent": 9, "children": [159, 160], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 24}}, {"id": 159, "type": "primitive_type", "text": "int32_t", "parent": 158, "children": [], "start_point": {"row": 32, "column": 2}, "end_point": {"row": 32, "column": 9}}, {"id": 160, "type": "identifier", "text": "cols_per_cell", "parent": 158, "children": [], "start_point": {"row": 32, "column": 10}, "end_point": {"row": 32, "column": 23}}, {"id": 161, "type": "declaration", "text": "int64_t global_start_col;", "parent": 9, "children": [162, 163], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 27}}, {"id": 162, "type": "primitive_type", "text": "int64_t", "parent": 161, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 9}}, {"id": 163, "type": "identifier", "text": "global_start_col", "parent": 161, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 26}}, {"id": 164, "type": "declaration", "text": "int64_t global_start_row;", "parent": 9, "children": [165, 166], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 27}}, {"id": 165, "type": "primitive_type", "text": "int64_t", "parent": 164, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 9}}, {"id": 166, "type": "identifier", "text": "global_start_row", "parent": 164, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 26}}, {"id": 167, "type": "declaration", "text": "bool has_nan_input;", "parent": 9, "children": [168, 169], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 21}}, {"id": 168, "type": "primitive_type", "text": "bool", "parent": 167, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 6}}, {"id": 169, "type": "identifier", "text": "has_nan_input", "parent": 167, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 20}}, {"id": 170, "type": "declaration", "text": "OptionalArgs opt;", "parent": 9, "children": [171, 172], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 19}}, {"id": 171, "type": "type_identifier", "text": "OptionalArgs", "parent": 170, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 14}}, {"id": 172, "type": "identifier", "text": "opt", "parent": 170, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 18}}, {"id": 173, "type": "declaration", "text": "void Print();", "parent": 9, "children": [174, 175], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 15}}, {"id": 174, "type": "primitive_type", "text": "void", "parent": 173, "children": [], "start_point": {"row": 38, "column": 2}, "end_point": {"row": 38, "column": 6}}, {"id": 175, "type": "function_declarator", "text": "Print()", "parent": 173, "children": [176, 177], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 14}}, {"id": 176, "type": "identifier", "text": "Print", "parent": 175, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 12}}, {"id": 177, "type": "parameter_list", "text": "()", "parent": 175, "children": [], "start_point": {"row": 38, "column": 12}, "end_point": {"row": 38, "column": 14}}]}, "node_categories": {"declarations": {"functions": [9, 175], "variables": [12, 44, 51, 58, 65, 72, 79, 86, 93, 100, 107, 116, 125, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173], "classes": [], "imports": [3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [21, 22, 31, 34], "assignments": [], "loops": [], "conditionals": [10, 11, 13, 17, 23, 25, 27, 29, 30, 32, 35, 37, 39, 40, 42, 43, 45, 48, 49, 50, 52, 55, 56, 57, 59, 62, 63, 64, 66, 69, 70, 71, 73, 76, 77, 78, 80, 83, 84, 85, 87, 90, 91, 92, 97, 98, 99, 104, 105, 106, 108, 111, 112, 114, 115, 117, 124, 126, 133, 136, 139, 142, 145, 148, 151, 154, 157, 160, 163, 166, 169, 171, 172, 176], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 19], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "NUM_EXTRA_OPERANDS", "text_snippet": "namespace SCAMP {\n\nstatic constexpr int NUM_EXTRA_OPERANDS = 3;\n\ntemplate <typename T>\nstruct SCAMPK"}, {"node_id": 175, "universal_type": "function", "name": "unknown", "text_snippet": "Print()"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include \"common/common.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"tile.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include \"common/common.h\"\n#include \"tile.h\"\n\nnamespace SCAMP {\n\nstatic constexpr int NUM_EXTRA_OPERANDS = 3;\n\ntemplate <typename T>\nstruct SCAMPKernelInputArgs {\n SCAMPKernelInputArgs(Tile *t, bool transpose, bool ab_join);\n T *__restrict cov;\n const T *__restrict dfa;\n const T *__restrict dfb;\n const T *__restrict dga;\n const T *__restrict dgb;\n const T *__restrict normsa;\n const T *__restrict normsb;\n const float *__restrict thresholds_a;\n const float *__restrict thresholds_b;\n const T *__restrict extras[NUM_EXTRA_OPERANDS];\n unsigned long long int *profile_a_length;\n unsigned long long int *profile_b_length;\n int64_t max_matches_per_tile;\n int32_t n_x;\n int32_t n_y;\n int32_t exclusion_lower;\n int32_t exclusion_upper;\n int32_t matrix_width;\n int32_t matrix_height;\n int32_t rows_per_cell;\n int32_t cols_per_cell;\n int64_t global_start_col;\n int64_t global_start_row;\n bool has_nan_input;\n\n OptionalArgs opt;\n void Print();\n};\n\n} // namespace SCAMP\n"}
80,362
c
/* This file was automatically generated by CasADi. The CasADi copyright holders make no ownership claim of its contents. */ #ifdef __cplusplus extern "C" { #endif /* How to prefix internal symbols */ #ifdef CODEGEN_PREFIX #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID) #define _NAMESPACE_CONCAT(NS, ID) NS ## ID #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID) #else #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID #endif #include <math.h> #ifndef casadi_real #define casadi_real double #endif #ifndef casadi_int #define casadi_int int #endif /* Add prefix to internal symbols */ #define casadi_f0 CASADI_PREFIX(f0) #define casadi_s0 CASADI_PREFIX(s0) #define casadi_s1 CASADI_PREFIX(s1) #define casadi_s2 CASADI_PREFIX(s2) #define casadi_s3 CASADI_PREFIX(s3) #define casadi_s4 CASADI_PREFIX(s4) #define casadi_s5 CASADI_PREFIX(s5) #define casadi_s6 CASADI_PREFIX(s6) /* Symbol visibility in DLLs */ #ifndef CASADI_SYMBOL_EXPORT #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) #if defined(STATIC_LINKED) #define CASADI_SYMBOL_EXPORT #else #define CASADI_SYMBOL_EXPORT __declspec(dllexport) #endif #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default"))) #else #define CASADI_SYMBOL_EXPORT #endif #endif static const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5}; static const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0}; static const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4}; static const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; static const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10}; static const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10}; static const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8}; /* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */ static int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) { casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9; a0=arg[1] ? arg[1][0] : 0; a1=arg[0] ? arg[0][2] : 0; a0=(a0-a1); if (res[0]!=0) res[0][0]=a0; a0=arg[1] ? arg[1][1] : 0; a2=arg[0] ? arg[0][3] : 0; a0=(a0-a2); if (res[0]!=0) res[0][1]=a0; a0=arg[1] ? arg[1][2] : 0; a3=arg[3] ? arg[3][0] : 0; a0=(a0-a3); if (res[0]!=0) res[0][2]=a0; a0=arg[1] ? arg[1][3] : 0; a4=arg[3] ? arg[3][1] : 0; a0=(a0-a4); if (res[0]!=0) res[0][3]=a0; a0=arg[1] ? arg[1][4] : 0; a5=arg[3] ? arg[3][2] : 0; a0=(a0-a5); if (res[0]!=0) res[0][4]=a0; a0=arg[0] ? arg[0][4] : 0; a6=(a2*a0); a6=(a3+a6); a7=arg[0] ? arg[0][1] : 0; a8=(a7*a5); a6=(a6+a8); if (res[0]!=0) res[0][5]=a6; a6=(a1*a0); a6=(a4-a6); a8=arg[0] ? arg[0][0] : 0; a9=(a8*a5); a6=(a6-a9); if (res[0]!=0) res[0][6]=a6; a6=1.0000000000000001e-01; a6=(a6*a5); a9=3.5000000000000000e+00; a6=(a6-a9); a9=arg[3] ? arg[3][3] : 0; a10=arg[2] ? arg[2][0] : 0; a11=(a9+a10); a12=(a11*a7); a6=(a6-a12); a12=arg[3] ? arg[3][4] : 0; a8=(a12*a8); a6=(a6+a8); if (res[0]!=0) res[0][7]=a6; a6=2.; a3=(a6*a3); a9=(a9+a10); a3=(a3-a9); if (res[0]!=0) res[0][8]=a3; a6=(a6*a4); a4=1.9620000000000001e+01; a6=(a6+a4); a6=(a6-a12); if (res[0]!=0) res[0][9]=a6; a6=arg[1] ? arg[1][5] : 0; a6=(a6-a0); if (res[0]!=0) res[0][10]=a6; a6=(-a5); if (res[1]!=0) res[1][0]=a6; if (res[1]!=0) res[1][1]=a12; if (res[1]!=0) res[1][2]=a5; a11=(-a11); if (res[1]!=0) res[1][3]=a11; a11=-1.; if (res[1]!=0) res[1][4]=a11; a5=(-a0); if (res[1]!=0) res[1][5]=a5; if (res[1]!=0) res[1][6]=a11; if (res[1]!=0) res[1][7]=a0; if (res[1]!=0) res[1][8]=a2; a1=(-a1); if (res[1]!=0) res[1][9]=a1; if (res[1]!=0) res[1][10]=a11; a1=1.; if (res[2]!=0) res[2][0]=a1; if (res[2]!=0) res[2][1]=a1; if (res[2]!=0) res[2][2]=a1; if (res[2]!=0) res[2][3]=a1; if (res[2]!=0) res[2][4]=a1; if (res[2]!=0) res[2][5]=a1; a7=(-a7); if (res[3]!=0) res[3][0]=a7; if (res[3]!=0) res[3][1]=a11; return 0; } CASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){ return casadi_f0(arg, res, iw, w, mem); } CASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) { } CASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) { } CASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;} CASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;} CASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){ switch (i) { case 0: return "i0"; case 1: return "i1"; case 2: return "i2"; case 3: return "i3"; default: return 0; } } CASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){ switch (i) { case 0: return "o0"; case 1: return "o1"; case 2: return "o2"; case 3: return "o3"; default: return 0; } } CASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) { switch (i) { case 0: return casadi_s0; case 1: return casadi_s0; case 2: return casadi_s1; case 3: return casadi_s2; default: return 0; } } CASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) { switch (i) { case 0: return casadi_s3; case 1: return casadi_s4; case 2: return casadi_s5; case 3: return casadi_s6; default: return 0; } } CASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) { if (sz_arg) *sz_arg = 4; if (sz_res) *sz_res = 4; if (sz_iw) *sz_iw = 0; if (sz_w) *sz_w = 0; return 0; } #ifdef __cplusplus } /* extern "C" */ #endif
30.24
196
(translation_unit) "/* This file was automatically generated by CasADi.\n The CasADi copyright holders make no ownership claim of its contents. */\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* How to prefix internal symbols */\n#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif\n\n#include <math.h>\n\n#ifndef casadi_real\n#define casadi_real double\n#endif\n\n#ifndef casadi_int\n#define casadi_int int\n#endif\n\n/* Add prefix to internal symbols */\n#define casadi_f0 CASADI_PREFIX(f0)\n#define casadi_s0 CASADI_PREFIX(s0)\n#define casadi_s1 CASADI_PREFIX(s1)\n#define casadi_s2 CASADI_PREFIX(s2)\n#define casadi_s3 CASADI_PREFIX(s3)\n#define casadi_s4 CASADI_PREFIX(s4)\n#define casadi_s5 CASADI_PREFIX(s5)\n#define casadi_s6 CASADI_PREFIX(s6)\n\n/* Symbol visibility in DLLs */\n#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif\n\nstatic const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};\nstatic const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};\nstatic const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};\nstatic const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\nstatic const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};\nstatic const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};\nstatic const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};\n\n/* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */\nstatic int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return "i0";\n case 1: return "i1";\n case 2: return "i2";\n case 3: return "i3";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return "o0";\n case 1: return "o1";\n case 2: return "o2";\n case 3: return "o3";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}\n\n\n#ifdef __cplusplus\n} /* extern "C" */\n#endif\n" (comment) "/* This file was automatically generated by CasADi.\n The CasADi copyright holders make no ownership claim of its contents. */" (preproc_ifdef) "#ifdef __cplusplus\nextern "C" {\n#endif\n\n/* How to prefix internal symbols */\n#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif\n\n#include <math.h>\n\n#ifndef casadi_real\n#define casadi_real double\n#endif\n\n#ifndef casadi_int\n#define casadi_int int\n#endif\n\n/* Add prefix to internal symbols */\n#define casadi_f0 CASADI_PREFIX(f0)\n#define casadi_s0 CASADI_PREFIX(s0)\n#define casadi_s1 CASADI_PREFIX(s1)\n#define casadi_s2 CASADI_PREFIX(s2)\n#define casadi_s3 CASADI_PREFIX(s3)\n#define casadi_s4 CASADI_PREFIX(s4)\n#define casadi_s5 CASADI_PREFIX(s5)\n#define casadi_s6 CASADI_PREFIX(s6)\n\n/* Symbol visibility in DLLs */\n#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif\n\nstatic const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};\nstatic const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};\nstatic const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};\nstatic const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\nstatic const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};\nstatic const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};\nstatic const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};\n\n/* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */\nstatic int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return "i0";\n case 1: return "i1";\n case 2: return "i2";\n case 3: return "i3";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return "o0";\n case 1: return "o1";\n case 2: return "o2";\n case 3: return "o3";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}\n\n\n#ifdef __cplusplus\n} /* extern "C" */\n#endif" (#ifdef) "#ifdef" (identifier) "__cplusplus" (linkage_specification) "extern "C" {\n#endif\n\n/* How to prefix internal symbols */\n#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif\n\n#include <math.h>\n\n#ifndef casadi_real\n#define casadi_real double\n#endif\n\n#ifndef casadi_int\n#define casadi_int int\n#endif\n\n/* Add prefix to internal symbols */\n#define casadi_f0 CASADI_PREFIX(f0)\n#define casadi_s0 CASADI_PREFIX(s0)\n#define casadi_s1 CASADI_PREFIX(s1)\n#define casadi_s2 CASADI_PREFIX(s2)\n#define casadi_s3 CASADI_PREFIX(s3)\n#define casadi_s4 CASADI_PREFIX(s4)\n#define casadi_s5 CASADI_PREFIX(s5)\n#define casadi_s6 CASADI_PREFIX(s6)\n\n/* Symbol visibility in DLLs */\n#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif\n\nstatic const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};\nstatic const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};\nstatic const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};\nstatic const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\nstatic const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};\nstatic const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};\nstatic const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};\n\n/* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */\nstatic int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return "i0";\n case 1: return "i1";\n case 2: return "i2";\n case 3: return "i3";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return "o0";\n case 1: return "o1";\n case 2: return "o2";\n case 3: return "o3";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}\n\n\n#ifdef __cplusplus\n}" (extern) "extern" (string_literal) ""C"" (") """ (string_content) "C" (") """ (declaration_list) "{\n#endif\n\n/* How to prefix internal symbols */\n#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif\n\n#include <math.h>\n\n#ifndef casadi_real\n#define casadi_real double\n#endif\n\n#ifndef casadi_int\n#define casadi_int int\n#endif\n\n/* Add prefix to internal symbols */\n#define casadi_f0 CASADI_PREFIX(f0)\n#define casadi_s0 CASADI_PREFIX(s0)\n#define casadi_s1 CASADI_PREFIX(s1)\n#define casadi_s2 CASADI_PREFIX(s2)\n#define casadi_s3 CASADI_PREFIX(s3)\n#define casadi_s4 CASADI_PREFIX(s4)\n#define casadi_s5 CASADI_PREFIX(s5)\n#define casadi_s6 CASADI_PREFIX(s6)\n\n/* Symbol visibility in DLLs */\n#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif\n\nstatic const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};\nstatic const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};\nstatic const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};\nstatic const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\nstatic const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};\nstatic const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};\nstatic const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};\n\n/* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */\nstatic int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return "i0";\n case 1: return "i1";\n case 2: return "i2";\n case 3: return "i3";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return "o0";\n case 1: return "o1";\n case 2: return "o2";\n case 3: return "o3";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}\n\n\n#ifdef __cplusplus\n}" ({) "{" (preproc_call) "#endif\n" (preproc_directive) "#endif" (comment) "/* How to prefix internal symbols */" (preproc_ifdef) "#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif" (#ifdef) "#ifdef" (identifier) "CODEGEN_PREFIX" (preproc_function_def) "#define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n" (#define) "#define" (identifier) "NAMESPACE_CONCAT" (preproc_params) "(NS, ID)" (() "(" (identifier) "NS" (,) "," (identifier) "ID" ()) ")" (preproc_arg) "_NAMESPACE_CONCAT(NS, ID)" (preproc_function_def) "#define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n" (#define) "#define" (identifier) "_NAMESPACE_CONCAT" (preproc_params) "(NS, ID)" (() "(" (identifier) "NS" (,) "," (identifier) "ID" ()) ")" (preproc_arg) "NS ## ID" (preproc_function_def) "#define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n" (#define) "#define" (identifier) "CASADI_PREFIX" (preproc_params) "(ID)" (() "(" (identifier) "ID" ()) ")" (preproc_arg) "NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)" (preproc_else) "#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n" (#else) "#else" (preproc_function_def) "#define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n" (#define) "#define" (identifier) "CASADI_PREFIX" (preproc_params) "(ID)" (() "(" (identifier) "ID" ()) ")" (preproc_arg) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID" (#endif) "#endif" (preproc_include) "#include <math.h>\n" (#include) "#include" (system_lib_string) "<math.h>" (preproc_ifdef) "#ifndef casadi_real\n#define casadi_real double\n#endif" (#ifndef) "#ifndef" (identifier) "casadi_real" (preproc_def) "#define casadi_real double\n" (#define) "#define" (identifier) "casadi_real" (preproc_arg) "double" (#endif) "#endif" (preproc_ifdef) "#ifndef casadi_int\n#define casadi_int int\n#endif" (#ifndef) "#ifndef" (identifier) "casadi_int" (preproc_def) "#define casadi_int int\n" (#define) "#define" (identifier) "casadi_int" (preproc_arg) "int" (#endif) "#endif" (comment) "/* Add prefix to internal symbols */" (preproc_def) "#define casadi_f0 CASADI_PREFIX(f0)\n" (#define) "#define" (identifier) "casadi_f0" (preproc_arg) "CASADI_PREFIX(f0)" (preproc_def) "#define casadi_s0 CASADI_PREFIX(s0)\n" (#define) "#define" (identifier) "casadi_s0" (preproc_arg) "CASADI_PREFIX(s0)" (preproc_def) "#define casadi_s1 CASADI_PREFIX(s1)\n" (#define) "#define" (identifier) "casadi_s1" (preproc_arg) "CASADI_PREFIX(s1)" (preproc_def) "#define casadi_s2 CASADI_PREFIX(s2)\n" (#define) "#define" (identifier) "casadi_s2" (preproc_arg) "CASADI_PREFIX(s2)" (preproc_def) "#define casadi_s3 CASADI_PREFIX(s3)\n" (#define) "#define" (identifier) "casadi_s3" (preproc_arg) "CASADI_PREFIX(s3)" (preproc_def) "#define casadi_s4 CASADI_PREFIX(s4)\n" (#define) "#define" (identifier) "casadi_s4" (preproc_arg) "CASADI_PREFIX(s4)" (preproc_def) "#define casadi_s5 CASADI_PREFIX(s5)\n" (#define) "#define" (identifier) "casadi_s5" (preproc_arg) "CASADI_PREFIX(s5)" (preproc_def) "#define casadi_s6 CASADI_PREFIX(s6)\n" (#define) "#define" (identifier) "casadi_s6" (preproc_arg) "CASADI_PREFIX(s6)" (comment) "/* Symbol visibility in DLLs */" (preproc_ifdef) "#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif" (#ifndef) "#ifndef" (identifier) "CASADI_SYMBOL_EXPORT" (preproc_if) "#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif" (#if) "#if" (binary_expression) "defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)" (binary_expression) "defined(_WIN32) || defined(__WIN32__)" (preproc_defined) "defined(_WIN32)" (defined) "defined" (() "(" (identifier) "_WIN32" ()) ")" (||) "||" (preproc_defined) "defined(__WIN32__)" (defined) "defined" (() "(" (identifier) "__WIN32__" ()) ")" (||) "||" (preproc_defined) "defined(__CYGWIN__)" (defined) "defined" (() "(" (identifier) "__CYGWIN__" ()) ")" ( ) "\n" (preproc_if) "#if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif" (#if) "#if" (preproc_defined) "defined(STATIC_LINKED)" (defined) "defined" (() "(" (identifier) "STATIC_LINKED" ()) ")" ( ) "\n" (preproc_def) "#define CASADI_SYMBOL_EXPORT\n" (#define) "#define" (identifier) "CASADI_SYMBOL_EXPORT" (preproc_else) "#else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n" (#else) "#else" (preproc_def) "#define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n" (#define) "#define" (identifier) "CASADI_SYMBOL_EXPORT" (preproc_arg) "__declspec(dllexport)" (#endif) "#endif" (preproc_elif) "#elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))\n #else\n #define CASADI_SYMBOL_EXPORT\n" (#elif) "#elif" (binary_expression) "defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)" (preproc_defined) "defined(__GNUC__)" (defined) "defined" (() "(" (identifier) "__GNUC__" ()) ")" (&&) "&&" (preproc_defined) "defined(GCC_HASCLASSVISIBILITY)" (defined) "defined" (() "(" (identifier) "GCC_HASCLASSVISIBILITY" ()) ")" ( ) "\n" (preproc_def) "#define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))\n" (#define) "#define" (identifier) "CASADI_SYMBOL_EXPORT" (preproc_arg) "__attribute__ ((visibility ("default")))" (preproc_else) "#else\n #define CASADI_SYMBOL_EXPORT\n" (#else) "#else" (preproc_def) "#define CASADI_SYMBOL_EXPORT\n" (#define) "#define" (identifier) "CASADI_SYMBOL_EXPORT" (#endif) "#endif" (#endif) "#endif" (declaration) "static const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_int" (init_declarator) "casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5}" (array_declarator) "casadi_s0[10]" (identifier) "casadi_s0" ([) "[" (number_literal) "10" (]) "]" (=) "=" (initializer_list) "{6, 1, 0, 6, 0, 1, 2, 3, 4, 5}" ({) "{" (number_literal) "6" (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (number_literal) "6" (,) "," (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "2" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (}) "}" (;) ";" (declaration) "static const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_int" (init_declarator) "casadi_s1[5] = {1, 1, 0, 1, 0}" (array_declarator) "casadi_s1[5]" (identifier) "casadi_s1" ([) "[" (number_literal) "5" (]) "]" (=) "=" (initializer_list) "{1, 1, 0, 1, 0}" ({) "{" (number_literal) "1" (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "0" (}) "}" (;) ";" (declaration) "static const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_int" (init_declarator) "casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4}" (array_declarator) "casadi_s2[9]" (identifier) "casadi_s2" ([) "[" (number_literal) "9" (]) "]" (=) "=" (initializer_list) "{5, 1, 0, 5, 0, 1, 2, 3, 4}" ({) "{" (number_literal) "5" (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (number_literal) "5" (,) "," (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "2" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (}) "}" (;) ";" (declaration) "static const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_int" (init_declarator) "casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}" (array_declarator) "casadi_s3[15]" (identifier) "casadi_s3" ([) "[" (number_literal) "15" (]) "]" (=) "=" (initializer_list) "{11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}" ({) "{" (number_literal) "11" (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (number_literal) "11" (,) "," (number_literal) "0" (,) "," (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" (}) "}" (;) ";" (declaration) "static const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_int" (init_declarator) "casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10}" (array_declarator) "casadi_s4[20]" (identifier) "casadi_s4" ([) "[" (number_literal) "20" (]) "]" (=) "=" (initializer_list) "{11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10}" ({) "{" (number_literal) "11" (,) "," (number_literal) "6" (,) "," (number_literal) "0" (,) "," (number_literal) "2" (,) "," (number_literal) "4" (,) "," (number_literal) "6" (,) "," (number_literal) "8" (,) "," (number_literal) "11" (,) "," (number_literal) "11" (,) "," (number_literal) "6" (,) "," (number_literal) "7" (,) "," (number_literal) "5" (,) "," (number_literal) "7" (,) "," (number_literal) "0" (,) "," (number_literal) "6" (,) "," (number_literal) "1" (,) "," (number_literal) "5" (,) "," (number_literal) "5" (,) "," (number_literal) "6" (,) "," (number_literal) "10" (}) "}" (;) ";" (declaration) "static const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_int" (init_declarator) "casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10}" (array_declarator) "casadi_s5[15]" (identifier) "casadi_s5" ([) "[" (number_literal) "15" (]) "]" (=) "=" (initializer_list) "{11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10}" ({) "{" (number_literal) "11" (,) "," (number_literal) "6" (,) "," (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "2" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "5" (,) "," (number_literal) "6" (,) "," (number_literal) "0" (,) "," (number_literal) "1" (,) "," (number_literal) "2" (,) "," (number_literal) "3" (,) "," (number_literal) "4" (,) "," (number_literal) "10" (}) "}" (;) ";" (declaration) "static const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_int" (init_declarator) "casadi_s6[6] = {11, 1, 0, 2, 7, 8}" (array_declarator) "casadi_s6[6]" (identifier) "casadi_s6" ([) "[" (number_literal) "6" (]) "]" (=) "=" (initializer_list) "{11, 1, 0, 2, 7, 8}" ({) "{" (number_literal) "11" (,) "," (number_literal) "1" (,) "," (number_literal) "0" (,) "," (number_literal) "2" (,) "," (number_literal) "7" (,) "," (number_literal) "8" (}) "}" (;) ";" (comment) "/* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */" (function_definition) "static int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (function_declarator) "casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)" (identifier) "casadi_f0" (parameter_list) "(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)" (() "(" (parameter_declaration) "const casadi_real** arg" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_real" (pointer_declarator) "** arg" (*) "*" (pointer_declarator) "* arg" (*) "*" (identifier) "arg" (,) "," (parameter_declaration) "casadi_real** res" (type_identifier) "casadi_real" (pointer_declarator) "** res" (*) "*" (pointer_declarator) "* res" (*) "*" (identifier) "res" (,) "," (parameter_declaration) "casadi_int* iw" (type_identifier) "casadi_int" (pointer_declarator) "* iw" (*) "*" (identifier) "iw" (,) "," (parameter_declaration) "casadi_real* w" (type_identifier) "casadi_real" (pointer_declarator) "* w" (*) "*" (identifier) "w" (,) "," (parameter_declaration) "void* mem" (primitive_type) "void" (pointer_declarator) "* mem" (*) "*" (identifier) "mem" ()) ")" (compound_statement) "{\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}" ({) "{" (declaration) "casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;" (type_identifier) "casadi_real" (identifier) "a0" (,) "," (identifier) "a1" (,) "," (identifier) "a10" (,) "," (identifier) "a11" (,) "," (identifier) "a12" (,) "," (identifier) "a2" (,) "," (identifier) "a3" (,) "," (identifier) "a4" (,) "," (identifier) "a5" (,) "," (identifier) "a6" (,) "," (identifier) "a7" (,) "," (identifier) "a8" (,) "," (identifier) "a9" (;) ";" (expression_statement) "a0=arg[1] ? arg[1][0] : 0;" (assignment_expression) "a0=arg[1] ? arg[1][0] : 0" (identifier) "a0" (=) "=" (conditional_expression) "arg[1] ? arg[1][0] : 0" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" (?) "?" (subscript_expression) "arg[1][0]" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "0" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a1=arg[0] ? arg[0][2] : 0;" (assignment_expression) "a1=arg[0] ? arg[0][2] : 0" (identifier) "a1" (=) "=" (conditional_expression) "arg[0] ? arg[0][2] : 0" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" (?) "?" (subscript_expression) "arg[0][2]" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "2" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a0=(a0-a1);" (assignment_expression) "a0=(a0-a1)" (identifier) "a0" (=) "=" (parenthesized_expression) "(a0-a1)" (() "(" (binary_expression) "a0-a1" (identifier) "a0" (-) "-" (identifier) "a1" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][0]=a0;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][0]=a0;" (assignment_expression) "res[0][0]=a0" (subscript_expression) "res[0][0]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "0" (]) "]" (=) "=" (identifier) "a0" (;) ";" (expression_statement) "a0=arg[1] ? arg[1][1] : 0;" (assignment_expression) "a0=arg[1] ? arg[1][1] : 0" (identifier) "a0" (=) "=" (conditional_expression) "arg[1] ? arg[1][1] : 0" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" (?) "?" (subscript_expression) "arg[1][1]" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "1" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a2=arg[0] ? arg[0][3] : 0;" (assignment_expression) "a2=arg[0] ? arg[0][3] : 0" (identifier) "a2" (=) "=" (conditional_expression) "arg[0] ? arg[0][3] : 0" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" (?) "?" (subscript_expression) "arg[0][3]" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "3" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a0=(a0-a2);" (assignment_expression) "a0=(a0-a2)" (identifier) "a0" (=) "=" (parenthesized_expression) "(a0-a2)" (() "(" (binary_expression) "a0-a2" (identifier) "a0" (-) "-" (identifier) "a2" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][1]=a0;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][1]=a0;" (assignment_expression) "res[0][1]=a0" (subscript_expression) "res[0][1]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "1" (]) "]" (=) "=" (identifier) "a0" (;) ";" (expression_statement) "a0=arg[1] ? arg[1][2] : 0;" (assignment_expression) "a0=arg[1] ? arg[1][2] : 0" (identifier) "a0" (=) "=" (conditional_expression) "arg[1] ? arg[1][2] : 0" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" (?) "?" (subscript_expression) "arg[1][2]" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "2" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a3=arg[3] ? arg[3][0] : 0;" (assignment_expression) "a3=arg[3] ? arg[3][0] : 0" (identifier) "a3" (=) "=" (conditional_expression) "arg[3] ? arg[3][0] : 0" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" (?) "?" (subscript_expression) "arg[3][0]" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" ([) "[" (number_literal) "0" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a0=(a0-a3);" (assignment_expression) "a0=(a0-a3)" (identifier) "a0" (=) "=" (parenthesized_expression) "(a0-a3)" (() "(" (binary_expression) "a0-a3" (identifier) "a0" (-) "-" (identifier) "a3" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][2]=a0;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][2]=a0;" (assignment_expression) "res[0][2]=a0" (subscript_expression) "res[0][2]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "2" (]) "]" (=) "=" (identifier) "a0" (;) ";" (expression_statement) "a0=arg[1] ? arg[1][3] : 0;" (assignment_expression) "a0=arg[1] ? arg[1][3] : 0" (identifier) "a0" (=) "=" (conditional_expression) "arg[1] ? arg[1][3] : 0" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" (?) "?" (subscript_expression) "arg[1][3]" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "3" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a4=arg[3] ? arg[3][1] : 0;" (assignment_expression) "a4=arg[3] ? arg[3][1] : 0" (identifier) "a4" (=) "=" (conditional_expression) "arg[3] ? arg[3][1] : 0" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" (?) "?" (subscript_expression) "arg[3][1]" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" ([) "[" (number_literal) "1" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a0=(a0-a4);" (assignment_expression) "a0=(a0-a4)" (identifier) "a0" (=) "=" (parenthesized_expression) "(a0-a4)" (() "(" (binary_expression) "a0-a4" (identifier) "a0" (-) "-" (identifier) "a4" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][3]=a0;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][3]=a0;" (assignment_expression) "res[0][3]=a0" (subscript_expression) "res[0][3]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "3" (]) "]" (=) "=" (identifier) "a0" (;) ";" (expression_statement) "a0=arg[1] ? arg[1][4] : 0;" (assignment_expression) "a0=arg[1] ? arg[1][4] : 0" (identifier) "a0" (=) "=" (conditional_expression) "arg[1] ? arg[1][4] : 0" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" (?) "?" (subscript_expression) "arg[1][4]" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "4" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a5=arg[3] ? arg[3][2] : 0;" (assignment_expression) "a5=arg[3] ? arg[3][2] : 0" (identifier) "a5" (=) "=" (conditional_expression) "arg[3] ? arg[3][2] : 0" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" (?) "?" (subscript_expression) "arg[3][2]" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" ([) "[" (number_literal) "2" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a0=(a0-a5);" (assignment_expression) "a0=(a0-a5)" (identifier) "a0" (=) "=" (parenthesized_expression) "(a0-a5)" (() "(" (binary_expression) "a0-a5" (identifier) "a0" (-) "-" (identifier) "a5" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][4]=a0;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][4]=a0;" (assignment_expression) "res[0][4]=a0" (subscript_expression) "res[0][4]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "4" (]) "]" (=) "=" (identifier) "a0" (;) ";" (expression_statement) "a0=arg[0] ? arg[0][4] : 0;" (assignment_expression) "a0=arg[0] ? arg[0][4] : 0" (identifier) "a0" (=) "=" (conditional_expression) "arg[0] ? arg[0][4] : 0" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" (?) "?" (subscript_expression) "arg[0][4]" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "4" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a6=(a2*a0);" (assignment_expression) "a6=(a2*a0)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a2*a0)" (() "(" (binary_expression) "a2*a0" (identifier) "a2" (*) "*" (identifier) "a0" ()) ")" (;) ";" (expression_statement) "a6=(a3+a6);" (assignment_expression) "a6=(a3+a6)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a3+a6)" (() "(" (binary_expression) "a3+a6" (identifier) "a3" (+) "+" (identifier) "a6" ()) ")" (;) ";" (expression_statement) "a7=arg[0] ? arg[0][1] : 0;" (assignment_expression) "a7=arg[0] ? arg[0][1] : 0" (identifier) "a7" (=) "=" (conditional_expression) "arg[0] ? arg[0][1] : 0" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" (?) "?" (subscript_expression) "arg[0][1]" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "1" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a8=(a7*a5);" (assignment_expression) "a8=(a7*a5)" (identifier) "a8" (=) "=" (parenthesized_expression) "(a7*a5)" (() "(" (binary_expression) "a7*a5" (identifier) "a7" (*) "*" (identifier) "a5" ()) ")" (;) ";" (expression_statement) "a6=(a6+a8);" (assignment_expression) "a6=(a6+a8)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6+a8)" (() "(" (binary_expression) "a6+a8" (identifier) "a6" (+) "+" (identifier) "a8" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][5]=a6;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][5]=a6;" (assignment_expression) "res[0][5]=a6" (subscript_expression) "res[0][5]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "5" (]) "]" (=) "=" (identifier) "a6" (;) ";" (expression_statement) "a6=(a1*a0);" (assignment_expression) "a6=(a1*a0)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a1*a0)" (() "(" (binary_expression) "a1*a0" (identifier) "a1" (*) "*" (identifier) "a0" ()) ")" (;) ";" (expression_statement) "a6=(a4-a6);" (assignment_expression) "a6=(a4-a6)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a4-a6)" (() "(" (binary_expression) "a4-a6" (identifier) "a4" (-) "-" (identifier) "a6" ()) ")" (;) ";" (expression_statement) "a8=arg[0] ? arg[0][0] : 0;" (assignment_expression) "a8=arg[0] ? arg[0][0] : 0" (identifier) "a8" (=) "=" (conditional_expression) "arg[0] ? arg[0][0] : 0" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" (?) "?" (subscript_expression) "arg[0][0]" (subscript_expression) "arg[0]" (identifier) "arg" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "0" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a9=(a8*a5);" (assignment_expression) "a9=(a8*a5)" (identifier) "a9" (=) "=" (parenthesized_expression) "(a8*a5)" (() "(" (binary_expression) "a8*a5" (identifier) "a8" (*) "*" (identifier) "a5" ()) ")" (;) ";" (expression_statement) "a6=(a6-a9);" (assignment_expression) "a6=(a6-a9)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6-a9)" (() "(" (binary_expression) "a6-a9" (identifier) "a6" (-) "-" (identifier) "a9" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][6]=a6;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][6]=a6;" (assignment_expression) "res[0][6]=a6" (subscript_expression) "res[0][6]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "6" (]) "]" (=) "=" (identifier) "a6" (;) ";" (expression_statement) "a6=1.0000000000000001e-01;" (assignment_expression) "a6=1.0000000000000001e-01" (identifier) "a6" (=) "=" (number_literal) "1.0000000000000001e-01" (;) ";" (expression_statement) "a6=(a6*a5);" (assignment_expression) "a6=(a6*a5)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6*a5)" (() "(" (binary_expression) "a6*a5" (identifier) "a6" (*) "*" (identifier) "a5" ()) ")" (;) ";" (expression_statement) "a9=3.5000000000000000e+00;" (assignment_expression) "a9=3.5000000000000000e+00" (identifier) "a9" (=) "=" (number_literal) "3.5000000000000000e+00" (;) ";" (expression_statement) "a6=(a6-a9);" (assignment_expression) "a6=(a6-a9)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6-a9)" (() "(" (binary_expression) "a6-a9" (identifier) "a6" (-) "-" (identifier) "a9" ()) ")" (;) ";" (expression_statement) "a9=arg[3] ? arg[3][3] : 0;" (assignment_expression) "a9=arg[3] ? arg[3][3] : 0" (identifier) "a9" (=) "=" (conditional_expression) "arg[3] ? arg[3][3] : 0" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" (?) "?" (subscript_expression) "arg[3][3]" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" ([) "[" (number_literal) "3" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a10=arg[2] ? arg[2][0] : 0;" (assignment_expression) "a10=arg[2] ? arg[2][0] : 0" (identifier) "a10" (=) "=" (conditional_expression) "arg[2] ? arg[2][0] : 0" (subscript_expression) "arg[2]" (identifier) "arg" ([) "[" (number_literal) "2" (]) "]" (?) "?" (subscript_expression) "arg[2][0]" (subscript_expression) "arg[2]" (identifier) "arg" ([) "[" (number_literal) "2" (]) "]" ([) "[" (number_literal) "0" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a11=(a9+a10);" (assignment_expression) "a11=(a9+a10)" (identifier) "a11" (=) "=" (parenthesized_expression) "(a9+a10)" (() "(" (binary_expression) "a9+a10" (identifier) "a9" (+) "+" (identifier) "a10" ()) ")" (;) ";" (expression_statement) "a12=(a11*a7);" (assignment_expression) "a12=(a11*a7)" (identifier) "a12" (=) "=" (parenthesized_expression) "(a11*a7)" (() "(" (binary_expression) "a11*a7" (identifier) "a11" (*) "*" (identifier) "a7" ()) ")" (;) ";" (expression_statement) "a6=(a6-a12);" (assignment_expression) "a6=(a6-a12)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6-a12)" (() "(" (binary_expression) "a6-a12" (identifier) "a6" (-) "-" (identifier) "a12" ()) ")" (;) ";" (expression_statement) "a12=arg[3] ? arg[3][4] : 0;" (assignment_expression) "a12=arg[3] ? arg[3][4] : 0" (identifier) "a12" (=) "=" (conditional_expression) "arg[3] ? arg[3][4] : 0" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" (?) "?" (subscript_expression) "arg[3][4]" (subscript_expression) "arg[3]" (identifier) "arg" ([) "[" (number_literal) "3" (]) "]" ([) "[" (number_literal) "4" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a8=(a12*a8);" (assignment_expression) "a8=(a12*a8)" (identifier) "a8" (=) "=" (parenthesized_expression) "(a12*a8)" (() "(" (binary_expression) "a12*a8" (identifier) "a12" (*) "*" (identifier) "a8" ()) ")" (;) ";" (expression_statement) "a6=(a6+a8);" (assignment_expression) "a6=(a6+a8)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6+a8)" (() "(" (binary_expression) "a6+a8" (identifier) "a6" (+) "+" (identifier) "a8" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][7]=a6;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][7]=a6;" (assignment_expression) "res[0][7]=a6" (subscript_expression) "res[0][7]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "7" (]) "]" (=) "=" (identifier) "a6" (;) ";" (expression_statement) "a6=2.;" (assignment_expression) "a6=2." (identifier) "a6" (=) "=" (number_literal) "2." (;) ";" (expression_statement) "a3=(a6*a3);" (assignment_expression) "a3=(a6*a3)" (identifier) "a3" (=) "=" (parenthesized_expression) "(a6*a3)" (() "(" (binary_expression) "a6*a3" (identifier) "a6" (*) "*" (identifier) "a3" ()) ")" (;) ";" (expression_statement) "a9=(a9+a10);" (assignment_expression) "a9=(a9+a10)" (identifier) "a9" (=) "=" (parenthesized_expression) "(a9+a10)" (() "(" (binary_expression) "a9+a10" (identifier) "a9" (+) "+" (identifier) "a10" ()) ")" (;) ";" (expression_statement) "a3=(a3-a9);" (assignment_expression) "a3=(a3-a9)" (identifier) "a3" (=) "=" (parenthesized_expression) "(a3-a9)" (() "(" (binary_expression) "a3-a9" (identifier) "a3" (-) "-" (identifier) "a9" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][8]=a3;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][8]=a3;" (assignment_expression) "res[0][8]=a3" (subscript_expression) "res[0][8]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "8" (]) "]" (=) "=" (identifier) "a3" (;) ";" (expression_statement) "a6=(a6*a4);" (assignment_expression) "a6=(a6*a4)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6*a4)" (() "(" (binary_expression) "a6*a4" (identifier) "a6" (*) "*" (identifier) "a4" ()) ")" (;) ";" (expression_statement) "a4=1.9620000000000001e+01;" (assignment_expression) "a4=1.9620000000000001e+01" (identifier) "a4" (=) "=" (number_literal) "1.9620000000000001e+01" (;) ";" (expression_statement) "a6=(a6+a4);" (assignment_expression) "a6=(a6+a4)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6+a4)" (() "(" (binary_expression) "a6+a4" (identifier) "a6" (+) "+" (identifier) "a4" ()) ")" (;) ";" (expression_statement) "a6=(a6-a12);" (assignment_expression) "a6=(a6-a12)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6-a12)" (() "(" (binary_expression) "a6-a12" (identifier) "a6" (-) "-" (identifier) "a12" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][9]=a6;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][9]=a6;" (assignment_expression) "res[0][9]=a6" (subscript_expression) "res[0][9]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "9" (]) "]" (=) "=" (identifier) "a6" (;) ";" (expression_statement) "a6=arg[1] ? arg[1][5] : 0;" (assignment_expression) "a6=arg[1] ? arg[1][5] : 0" (identifier) "a6" (=) "=" (conditional_expression) "arg[1] ? arg[1][5] : 0" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" (?) "?" (subscript_expression) "arg[1][5]" (subscript_expression) "arg[1]" (identifier) "arg" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "5" (]) "]" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "a6=(a6-a0);" (assignment_expression) "a6=(a6-a0)" (identifier) "a6" (=) "=" (parenthesized_expression) "(a6-a0)" (() "(" (binary_expression) "a6-a0" (identifier) "a6" (-) "-" (identifier) "a0" ()) ")" (;) ";" (if_statement) "if (res[0]!=0) res[0][10]=a6;" (if) "if" (parenthesized_expression) "(res[0]!=0)" (() "(" (binary_expression) "res[0]!=0" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[0][10]=a6;" (assignment_expression) "res[0][10]=a6" (subscript_expression) "res[0][10]" (subscript_expression) "res[0]" (identifier) "res" ([) "[" (number_literal) "0" (]) "]" ([) "[" (number_literal) "10" (]) "]" (=) "=" (identifier) "a6" (;) ";" (expression_statement) "a6=(-a5);" (assignment_expression) "a6=(-a5)" (identifier) "a6" (=) "=" (parenthesized_expression) "(-a5)" (() "(" (unary_expression) "-a5" (-) "-" (identifier) "a5" ()) ")" (;) ";" (if_statement) "if (res[1]!=0) res[1][0]=a6;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][0]=a6;" (assignment_expression) "res[1][0]=a6" (subscript_expression) "res[1][0]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "0" (]) "]" (=) "=" (identifier) "a6" (;) ";" (if_statement) "if (res[1]!=0) res[1][1]=a12;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][1]=a12;" (assignment_expression) "res[1][1]=a12" (subscript_expression) "res[1][1]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "1" (]) "]" (=) "=" (identifier) "a12" (;) ";" (if_statement) "if (res[1]!=0) res[1][2]=a5;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][2]=a5;" (assignment_expression) "res[1][2]=a5" (subscript_expression) "res[1][2]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "2" (]) "]" (=) "=" (identifier) "a5" (;) ";" (expression_statement) "a11=(-a11);" (assignment_expression) "a11=(-a11)" (identifier) "a11" (=) "=" (parenthesized_expression) "(-a11)" (() "(" (unary_expression) "-a11" (-) "-" (identifier) "a11" ()) ")" (;) ";" (if_statement) "if (res[1]!=0) res[1][3]=a11;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][3]=a11;" (assignment_expression) "res[1][3]=a11" (subscript_expression) "res[1][3]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "3" (]) "]" (=) "=" (identifier) "a11" (;) ";" (expression_statement) "a11=-1.;" (assignment_expression) "a11=-1." (identifier) "a11" (=) "=" (number_literal) "-1." (;) ";" (if_statement) "if (res[1]!=0) res[1][4]=a11;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][4]=a11;" (assignment_expression) "res[1][4]=a11" (subscript_expression) "res[1][4]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "4" (]) "]" (=) "=" (identifier) "a11" (;) ";" (expression_statement) "a5=(-a0);" (assignment_expression) "a5=(-a0)" (identifier) "a5" (=) "=" (parenthesized_expression) "(-a0)" (() "(" (unary_expression) "-a0" (-) "-" (identifier) "a0" ()) ")" (;) ";" (if_statement) "if (res[1]!=0) res[1][5]=a5;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][5]=a5;" (assignment_expression) "res[1][5]=a5" (subscript_expression) "res[1][5]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "5" (]) "]" (=) "=" (identifier) "a5" (;) ";" (if_statement) "if (res[1]!=0) res[1][6]=a11;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][6]=a11;" (assignment_expression) "res[1][6]=a11" (subscript_expression) "res[1][6]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "6" (]) "]" (=) "=" (identifier) "a11" (;) ";" (if_statement) "if (res[1]!=0) res[1][7]=a0;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][7]=a0;" (assignment_expression) "res[1][7]=a0" (subscript_expression) "res[1][7]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "7" (]) "]" (=) "=" (identifier) "a0" (;) ";" (if_statement) "if (res[1]!=0) res[1][8]=a2;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][8]=a2;" (assignment_expression) "res[1][8]=a2" (subscript_expression) "res[1][8]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "8" (]) "]" (=) "=" (identifier) "a2" (;) ";" (expression_statement) "a1=(-a1);" (assignment_expression) "a1=(-a1)" (identifier) "a1" (=) "=" (parenthesized_expression) "(-a1)" (() "(" (unary_expression) "-a1" (-) "-" (identifier) "a1" ()) ")" (;) ";" (if_statement) "if (res[1]!=0) res[1][9]=a1;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][9]=a1;" (assignment_expression) "res[1][9]=a1" (subscript_expression) "res[1][9]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "9" (]) "]" (=) "=" (identifier) "a1" (;) ";" (if_statement) "if (res[1]!=0) res[1][10]=a11;" (if) "if" (parenthesized_expression) "(res[1]!=0)" (() "(" (binary_expression) "res[1]!=0" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[1][10]=a11;" (assignment_expression) "res[1][10]=a11" (subscript_expression) "res[1][10]" (subscript_expression) "res[1]" (identifier) "res" ([) "[" (number_literal) "1" (]) "]" ([) "[" (number_literal) "10" (]) "]" (=) "=" (identifier) "a11" (;) ";" (expression_statement) "a1=1.;" (assignment_expression) "a1=1." (identifier) "a1" (=) "=" (number_literal) "1." (;) ";" (if_statement) "if (res[2]!=0) res[2][0]=a1;" (if) "if" (parenthesized_expression) "(res[2]!=0)" (() "(" (binary_expression) "res[2]!=0" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[2][0]=a1;" (assignment_expression) "res[2][0]=a1" (subscript_expression) "res[2][0]" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" ([) "[" (number_literal) "0" (]) "]" (=) "=" (identifier) "a1" (;) ";" (if_statement) "if (res[2]!=0) res[2][1]=a1;" (if) "if" (parenthesized_expression) "(res[2]!=0)" (() "(" (binary_expression) "res[2]!=0" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[2][1]=a1;" (assignment_expression) "res[2][1]=a1" (subscript_expression) "res[2][1]" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" ([) "[" (number_literal) "1" (]) "]" (=) "=" (identifier) "a1" (;) ";" (if_statement) "if (res[2]!=0) res[2][2]=a1;" (if) "if" (parenthesized_expression) "(res[2]!=0)" (() "(" (binary_expression) "res[2]!=0" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[2][2]=a1;" (assignment_expression) "res[2][2]=a1" (subscript_expression) "res[2][2]" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" ([) "[" (number_literal) "2" (]) "]" (=) "=" (identifier) "a1" (;) ";" (if_statement) "if (res[2]!=0) res[2][3]=a1;" (if) "if" (parenthesized_expression) "(res[2]!=0)" (() "(" (binary_expression) "res[2]!=0" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[2][3]=a1;" (assignment_expression) "res[2][3]=a1" (subscript_expression) "res[2][3]" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" ([) "[" (number_literal) "3" (]) "]" (=) "=" (identifier) "a1" (;) ";" (if_statement) "if (res[2]!=0) res[2][4]=a1;" (if) "if" (parenthesized_expression) "(res[2]!=0)" (() "(" (binary_expression) "res[2]!=0" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[2][4]=a1;" (assignment_expression) "res[2][4]=a1" (subscript_expression) "res[2][4]" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" ([) "[" (number_literal) "4" (]) "]" (=) "=" (identifier) "a1" (;) ";" (if_statement) "if (res[2]!=0) res[2][5]=a1;" (if) "if" (parenthesized_expression) "(res[2]!=0)" (() "(" (binary_expression) "res[2]!=0" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[2][5]=a1;" (assignment_expression) "res[2][5]=a1" (subscript_expression) "res[2][5]" (subscript_expression) "res[2]" (identifier) "res" ([) "[" (number_literal) "2" (]) "]" ([) "[" (number_literal) "5" (]) "]" (=) "=" (identifier) "a1" (;) ";" (expression_statement) "a7=(-a7);" (assignment_expression) "a7=(-a7)" (identifier) "a7" (=) "=" (parenthesized_expression) "(-a7)" (() "(" (unary_expression) "-a7" (-) "-" (identifier) "a7" ()) ")" (;) ";" (if_statement) "if (res[3]!=0) res[3][0]=a7;" (if) "if" (parenthesized_expression) "(res[3]!=0)" (() "(" (binary_expression) "res[3]!=0" (subscript_expression) "res[3]" (identifier) "res" ([) "[" (number_literal) "3" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[3][0]=a7;" (assignment_expression) "res[3][0]=a7" (subscript_expression) "res[3][0]" (subscript_expression) "res[3]" (identifier) "res" ([) "[" (number_literal) "3" (]) "]" ([) "[" (number_literal) "0" (]) "]" (=) "=" (identifier) "a7" (;) ";" (if_statement) "if (res[3]!=0) res[3][1]=a11;" (if) "if" (parenthesized_expression) "(res[3]!=0)" (() "(" (binary_expression) "res[3]!=0" (subscript_expression) "res[3]" (identifier) "res" ([) "[" (number_literal) "3" (]) "]" (!=) "!=" (number_literal) "0" ()) ")" (expression_statement) "res[3][1]=a11;" (assignment_expression) "res[3][1]=a11" (subscript_expression) "res[3][1]" (subscript_expression) "res[3]" (identifier) "res" ([) "[" (number_literal) "3" (]) "]" ([) "[" (number_literal) "1" (]) "]" (=) "=" (identifier) "a11" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}" (type_identifier) "CASADI_SYMBOL_EXPORT" (ERROR) "int" (identifier) "int" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u" (parameter_list) "(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)" (() "(" (parameter_declaration) "const casadi_real** arg" (type_qualifier) "const" (const) "const" (type_identifier) "casadi_real" (pointer_declarator) "** arg" (*) "*" (pointer_declarator) "* arg" (*) "*" (identifier) "arg" (,) "," (parameter_declaration) "casadi_real** res" (type_identifier) "casadi_real" (pointer_declarator) "** res" (*) "*" (pointer_declarator) "* res" (*) "*" (identifier) "res" (,) "," (parameter_declaration) "casadi_int* iw" (type_identifier) "casadi_int" (pointer_declarator) "* iw" (*) "*" (identifier) "iw" (,) "," (parameter_declaration) "casadi_real* w" (type_identifier) "casadi_real" (pointer_declarator) "* w" (*) "*" (identifier) "w" (,) "," (parameter_declaration) "void* mem" (primitive_type) "void" (pointer_declarator) "* mem" (*) "*" (identifier) "mem" ()) ")" (compound_statement) "{\n return casadi_f0(arg, res, iw, w, mem);\n}" ({) "{" (return_statement) "return casadi_f0(arg, res, iw, w, mem);" (return) "return" (call_expression) "casadi_f0(arg, res, iw, w, mem)" (identifier) "casadi_f0" (argument_list) "(arg, res, iw, w, mem)" (() "(" (identifier) "arg" (,) "," (identifier) "res" (,) "," (identifier) "iw" (,) "," (identifier) "w" (,) "," (identifier) "mem" ()) ")" (;) ";" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}" (type_identifier) "CASADI_SYMBOL_EXPORT" (ERROR) "void" (identifier) "void" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}" (type_identifier) "CASADI_SYMBOL_EXPORT" (ERROR) "void" (identifier) "void" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}" (type_identifier) "CASADI_SYMBOL_EXPORT" (ERROR) "casadi_int" (identifier) "casadi_int" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ return 4;}" ({) "{" (return_statement) "return 4;" (return) "return" (number_literal) "4" (;) ";" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}" (type_identifier) "CASADI_SYMBOL_EXPORT" (ERROR) "casadi_int" (identifier) "casadi_int" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{ return 4;}" ({) "{" (return_statement) "return 4;" (return) "return" (number_literal) "4" (;) ";" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return "i0";\n case 1: return "i1";\n case 2: return "i2";\n case 3: return "i3";\n default: return 0;\n }\n}" (type_identifier) "CASADI_SYMBOL_EXPORT" (type_qualifier) "const" (const) "const" (ERROR) "char" (identifier) "char" (pointer_declarator) "* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i)" (*) "*" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in" (parameter_list) "(casadi_int i)" (() "(" (parameter_declaration) "casadi_int i" (type_identifier) "casadi_int" (identifier) "i" ()) ")" (compound_statement) "{\n switch (i) {\n case 0: return "i0";\n case 1: return "i1";\n case 2: return "i2";\n case 3: return "i3";\n default: return 0;\n }\n}" ({) "{" (switch_statement) "switch (i) {\n case 0: return "i0";\n case 1: return "i1";\n case 2: return "i2";\n case 3: return "i3";\n default: return 0;\n }" (switch) "switch" (parenthesized_expression) "(i)" (() "(" (identifier) "i" ()) ")" (compound_statement) "{\n case 0: return "i0";\n case 1: return "i1";\n case 2: return "i2";\n case 3: return "i3";\n default: return 0;\n }" ({) "{" (case_statement) "case 0: return "i0";" (case) "case" (number_literal) "0" (:) ":" (return_statement) "return "i0";" (return) "return" (string_literal) ""i0"" (") """ (string_content) "i0" (") """ (;) ";" (case_statement) "case 1: return "i1";" (case) "case" (number_literal) "1" (:) ":" (return_statement) "return "i1";" (return) "return" (string_literal) ""i1"" (") """ (string_content) "i1" (") """ (;) ";" (case_statement) "case 2: return "i2";" (case) "case" (number_literal) "2" (:) ":" (return_statement) "return "i2";" (return) "return" (string_literal) ""i2"" (") """ (string_content) "i2" (") """ (;) ";" (case_statement) "case 3: return "i3";" (case) "case" (number_literal) "3" (:) ":" (return_statement) "return "i3";" (return) "return" (string_literal) ""i3"" (") """ (string_content) "i3" (") """ (;) ";" (case_statement) "default: return 0;" (default) "default" (:) ":" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return "o0";\n case 1: return "o1";\n case 2: return "o2";\n case 3: return "o3";\n default: return 0;\n }\n}" (type_identifier) "CASADI_SYMBOL_EXPORT" (type_qualifier) "const" (const) "const" (ERROR) "char" (identifier) "char" (pointer_declarator) "* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i)" (*) "*" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out" (parameter_list) "(casadi_int i)" (() "(" (parameter_declaration) "casadi_int i" (type_identifier) "casadi_int" (identifier) "i" ()) ")" (compound_statement) "{\n switch (i) {\n case 0: return "o0";\n case 1: return "o1";\n case 2: return "o2";\n case 3: return "o3";\n default: return 0;\n }\n}" ({) "{" (switch_statement) "switch (i) {\n case 0: return "o0";\n case 1: return "o1";\n case 2: return "o2";\n case 3: return "o3";\n default: return 0;\n }" (switch) "switch" (parenthesized_expression) "(i)" (() "(" (identifier) "i" ()) ")" (compound_statement) "{\n case 0: return "o0";\n case 1: return "o1";\n case 2: return "o2";\n case 3: return "o3";\n default: return 0;\n }" ({) "{" (case_statement) "case 0: return "o0";" (case) "case" (number_literal) "0" (:) ":" (return_statement) "return "o0";" (return) "return" (string_literal) ""o0"" (") """ (string_content) "o0" (") """ (;) ";" (case_statement) "case 1: return "o1";" (case) "case" (number_literal) "1" (:) ":" (return_statement) "return "o1";" (return) "return" (string_literal) ""o1"" (") """ (string_content) "o1" (") """ (;) ";" (case_statement) "case 2: return "o2";" (case) "case" (number_literal) "2" (:) ":" (return_statement) "return "o2";" (return) "return" (string_literal) ""o2"" (") """ (string_content) "o2" (") """ (;) ";" (case_statement) "case 3: return "o3";" (case) "case" (number_literal) "3" (:) ":" (return_statement) "return "o3";" (return) "return" (string_literal) ""o3"" (") """ (string_content) "o3" (") """ (;) ";" (case_statement) "default: return 0;" (default) "default" (:) ":" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}" (type_identifier) "CASADI_SYMBOL_EXPORT" (type_qualifier) "const" (const) "const" (ERROR) "casadi_int" (identifier) "casadi_int" (pointer_declarator) "* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i)" (*) "*" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in" (parameter_list) "(casadi_int i)" (() "(" (parameter_declaration) "casadi_int i" (type_identifier) "casadi_int" (identifier) "i" ()) ")" (compound_statement) "{\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}" ({) "{" (switch_statement) "switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }" (switch) "switch" (parenthesized_expression) "(i)" (() "(" (identifier) "i" ()) ")" (compound_statement) "{\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }" ({) "{" (case_statement) "case 0: return casadi_s0;" (case) "case" (number_literal) "0" (:) ":" (return_statement) "return casadi_s0;" (return) "return" (identifier) "casadi_s0" (;) ";" (case_statement) "case 1: return casadi_s0;" (case) "case" (number_literal) "1" (:) ":" (return_statement) "return casadi_s0;" (return) "return" (identifier) "casadi_s0" (;) ";" (case_statement) "case 2: return casadi_s1;" (case) "case" (number_literal) "2" (:) ":" (return_statement) "return casadi_s1;" (return) "return" (identifier) "casadi_s1" (;) ";" (case_statement) "case 3: return casadi_s2;" (case) "case" (number_literal) "3" (:) ":" (return_statement) "return casadi_s2;" (return) "return" (identifier) "casadi_s2" (;) ";" (case_statement) "default: return 0;" (default) "default" (:) ":" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}" (type_identifier) "CASADI_SYMBOL_EXPORT" (type_qualifier) "const" (const) "const" (ERROR) "casadi_int" (identifier) "casadi_int" (pointer_declarator) "* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i)" (*) "*" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out" (parameter_list) "(casadi_int i)" (() "(" (parameter_declaration) "casadi_int i" (type_identifier) "casadi_int" (identifier) "i" ()) ")" (compound_statement) "{\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}" ({) "{" (switch_statement) "switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }" (switch) "switch" (parenthesized_expression) "(i)" (() "(" (identifier) "i" ()) ")" (compound_statement) "{\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }" ({) "{" (case_statement) "case 0: return casadi_s3;" (case) "case" (number_literal) "0" (:) ":" (return_statement) "return casadi_s3;" (return) "return" (identifier) "casadi_s3" (;) ";" (case_statement) "case 1: return casadi_s4;" (case) "case" (number_literal) "1" (:) ":" (return_statement) "return casadi_s4;" (return) "return" (identifier) "casadi_s4" (;) ";" (case_statement) "case 2: return casadi_s5;" (case) "case" (number_literal) "2" (:) ":" (return_statement) "return casadi_s5;" (return) "return" (identifier) "casadi_s5" (;) ";" (case_statement) "case 3: return casadi_s6;" (case) "case" (number_literal) "3" (:) ":" (return_statement) "return casadi_s6;" (return) "return" (identifier) "casadi_s6" (;) ";" (case_statement) "default: return 0;" (default) "default" (:) ":" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (}) "}" (function_definition) "CASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}" (type_identifier) "CASADI_SYMBOL_EXPORT" (ERROR) "int" (identifier) "int" (function_declarator) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w)" (identifier) "inv_pendulum_impl_ode_fun_jac_x_xdot_u_work" (parameter_list) "(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w)" (() "(" (parameter_declaration) "casadi_int *sz_arg" (type_identifier) "casadi_int" (pointer_declarator) "*sz_arg" (*) "*" (identifier) "sz_arg" (,) "," (parameter_declaration) "casadi_int* sz_res" (type_identifier) "casadi_int" (pointer_declarator) "* sz_res" (*) "*" (identifier) "sz_res" (,) "," (parameter_declaration) "casadi_int *sz_iw" (type_identifier) "casadi_int" (pointer_declarator) "*sz_iw" (*) "*" (identifier) "sz_iw" (,) "," (parameter_declaration) "casadi_int *sz_w" (type_identifier) "casadi_int" (pointer_declarator) "*sz_w" (*) "*" (identifier) "sz_w" ()) ")" (compound_statement) "{\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}" ({) "{" (if_statement) "if (sz_arg) *sz_arg = 4;" (if) "if" (parenthesized_expression) "(sz_arg)" (() "(" (identifier) "sz_arg" ()) ")" (expression_statement) "*sz_arg = 4;" (assignment_expression) "*sz_arg = 4" (pointer_expression) "*sz_arg" (*) "*" (identifier) "sz_arg" (=) "=" (number_literal) "4" (;) ";" (if_statement) "if (sz_res) *sz_res = 4;" (if) "if" (parenthesized_expression) "(sz_res)" (() "(" (identifier) "sz_res" ()) ")" (expression_statement) "*sz_res = 4;" (assignment_expression) "*sz_res = 4" (pointer_expression) "*sz_res" (*) "*" (identifier) "sz_res" (=) "=" (number_literal) "4" (;) ";" (if_statement) "if (sz_iw) *sz_iw = 0;" (if) "if" (parenthesized_expression) "(sz_iw)" (() "(" (identifier) "sz_iw" ()) ")" (expression_statement) "*sz_iw = 0;" (assignment_expression) "*sz_iw = 0" (pointer_expression) "*sz_iw" (*) "*" (identifier) "sz_iw" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if (sz_w) *sz_w = 0;" (if) "if" (parenthesized_expression) "(sz_w)" (() "(" (identifier) "sz_w" ()) ")" (expression_statement) "*sz_w = 0;" (assignment_expression) "*sz_w = 0" (pointer_expression) "*sz_w" (*) "*" (identifier) "sz_w" (=) "=" (number_literal) "0" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (preproc_ifdef) "#ifdef __cplusplus" (#ifdef) "#ifdef" (identifier) "__cplusplus" (#endif) "" (}) "}" (comment) "/* extern "C" */" (#endif) "#endif"
2,670
10
{"language": "c", "success": true, "metadata": {"lines": 196, "avg_line_length": 30.24, "nodes": 1643, "errors": 0, "source_hash": "1ea83d093fca89dd0f9d09086b176537142d5cf8a7d79489c76546fde0f3512c", "categorized_nodes": 1288}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* How to prefix internal symbols */\n#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif\n\n#include <math.h>\n\n#ifndef casadi_real\n#define casadi_real double\n#endif\n\n#ifndef casadi_int\n#define casadi_int int\n#endif\n\n/* Add prefix to internal symbols */\n#define casadi_f0 CASADI_PREFIX(f0)\n#define casadi_s0 CASADI_PREFIX(s0)\n#define casadi_s1 CASADI_PREFIX(s1)\n#define casadi_s2 CASADI_PREFIX(s2)\n#define casadi_s3 CASADI_PREFIX(s3)\n#define casadi_s4 CASADI_PREFIX(s4)\n#define casadi_s5 CASADI_PREFIX(s5)\n#define casadi_s6 CASADI_PREFIX(s6)\n\n/* Symbol visibility in DLLs */\n#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility (\"default\")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif\n\nstatic const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};\nstatic const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};\nstatic const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};\nstatic const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\nstatic const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};\nstatic const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};\nstatic const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};\n\n/* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */\nstatic int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return \"i0\";\n case 1: return \"i1\";\n case 2: return \"i2\";\n case 3: return \"i3\";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return \"o0\";\n case 1: return \"o1\";\n case 2: return \"o2\";\n case 3: return \"o3\";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}\n\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif", "parent": null, "children": [1, 2, 3, 1642], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 214, "column": 6}}, {"id": 1, "type": "#ifdef", "text": "#ifdef", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 6}}, {"id": 2, "type": "identifier", "text": "__cplusplus", "parent": 0, "children": [], "start_point": {"row": 2, "column": 7}, "end_point": {"row": 2, "column": 18}}, {"id": 3, "type": "linkage_specification", "text": "extern \"C\" {\n#endif\n\n/* How to prefix internal symbols */\n#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif\n\n#include <math.h>\n\n#ifndef casadi_real\n#define casadi_real double\n#endif\n\n#ifndef casadi_int\n#define casadi_int int\n#endif\n\n/* Add prefix to internal symbols */\n#define casadi_f0 CASADI_PREFIX(f0)\n#define casadi_s0 CASADI_PREFIX(s0)\n#define casadi_s1 CASADI_PREFIX(s1)\n#define casadi_s2 CASADI_PREFIX(s2)\n#define casadi_s3 CASADI_PREFIX(s3)\n#define casadi_s4 CASADI_PREFIX(s4)\n#define casadi_s5 CASADI_PREFIX(s5)\n#define casadi_s6 CASADI_PREFIX(s6)\n\n/* Symbol visibility in DLLs */\n#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility (\"default\")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif\n\nstatic const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};\nstatic const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};\nstatic const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};\nstatic const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\nstatic const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};\nstatic const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};\nstatic const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};\n\n/* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */\nstatic int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return \"i0\";\n case 1: return \"i1\";\n case 2: return \"i2\";\n case 3: return \"i3\";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return \"o0\";\n case 1: return \"o1\";\n case 2: return \"o2\";\n case 3: return \"o3\";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}\n\n\n#ifdef __cplusplus\n}", "parent": 0, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 213, "column": 1}}, {"id": 4, "type": "extern", "text": "extern", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 6}}, {"id": 5, "type": "string_literal", "text": "\"C\"", "parent": 3, "children": [], "start_point": {"row": 3, "column": 7}, "end_point": {"row": 3, "column": 10}}, {"id": 6, "type": "preproc_call", "text": "#endif\n", "parent": 3, "children": [7], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#endif", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}, {"id": 8, "type": "preproc_ifdef", "text": "#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif", "parent": 3, "children": [9, 10, 11, 18, 25, 31, 39], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 9, "type": "#ifdef", "text": "#ifdef", "parent": 8, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 10, "type": "identifier", "text": "CODEGEN_PREFIX", "parent": 8, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 21}}, {"id": 11, "type": "preproc_function_def", "text": "#define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n", "parent": 8, "children": [12, 13, 14, 17], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 9, "column": 0}}, {"id": 12, "type": "#define", "text": "#define", "parent": 11, "children": [], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 9}}, {"id": 13, "type": "identifier", "text": "NAMESPACE_CONCAT", "parent": 11, "children": [], "start_point": {"row": 8, "column": 10}, "end_point": {"row": 8, "column": 26}}, {"id": 14, "type": "preproc_params", "text": "(NS, ID)", "parent": 11, "children": [15, 16], "start_point": {"row": 8, "column": 26}, "end_point": {"row": 8, "column": 34}}, {"id": 15, "type": "identifier", "text": "NS", "parent": 14, "children": [], "start_point": {"row": 8, "column": 27}, "end_point": {"row": 8, "column": 29}}, {"id": 16, "type": "identifier", "text": "ID", "parent": 14, "children": [], "start_point": {"row": 8, "column": 31}, "end_point": {"row": 8, "column": 33}}, {"id": 17, "type": "preproc_arg", "text": "_NAMESPACE_CONCAT(NS, ID)", "parent": 11, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 60}}, {"id": 18, "type": "preproc_function_def", "text": "#define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n", "parent": 8, "children": [19, 20, 21, 24], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 10, "column": 0}}, {"id": 19, "type": "#define", "text": "#define", "parent": 18, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 9}}, {"id": 20, "type": "identifier", "text": "_NAMESPACE_CONCAT", "parent": 18, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 27}}, {"id": 21, "type": "preproc_params", "text": "(NS, ID)", "parent": 18, "children": [22, 23], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 35}}, {"id": 22, "type": "identifier", "text": "NS", "parent": 21, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 30}}, {"id": 23, "type": "identifier", "text": "ID", "parent": 21, "children": [], "start_point": {"row": 9, "column": 32}, "end_point": {"row": 9, "column": 34}}, {"id": 24, "type": "preproc_arg", "text": "NS ## ID", "parent": 18, "children": [], "start_point": {"row": 9, "column": 36}, "end_point": {"row": 9, "column": 44}}, {"id": 25, "type": "preproc_function_def", "text": "#define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n", "parent": 8, "children": [26, 27, 28, 30], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 11, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 10, "column": 2}, "end_point": {"row": 10, "column": 9}}, {"id": 27, "type": "identifier", "text": "CASADI_PREFIX", "parent": 25, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 23}}, {"id": 28, "type": "preproc_params", "text": "(ID)", "parent": 25, "children": [29], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 27}}, {"id": 29, "type": "identifier", "text": "ID", "parent": 28, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 26}}, {"id": 30, "type": "preproc_arg", "text": "NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)", "parent": 25, "children": [], "start_point": {"row": 10, "column": 28}, "end_point": {"row": 10, "column": 64}}, {"id": 31, "type": "preproc_else", "text": "#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n", "parent": 8, "children": [32, 33], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 32, "type": "#else", "text": "#else", "parent": 31, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 33, "type": "preproc_function_def", "text": "#define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n", "parent": 31, "children": [34, 35, 36, 38], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 13, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 12, "column": 2}, "end_point": {"row": 12, "column": 9}}, {"id": 35, "type": "identifier", "text": "CASADI_PREFIX", "parent": 33, "children": [], "start_point": {"row": 12, "column": 10}, "end_point": {"row": 12, "column": 23}}, {"id": 36, "type": "preproc_params", "text": "(ID)", "parent": 33, "children": [37], "start_point": {"row": 12, "column": 23}, "end_point": {"row": 12, "column": 27}}, {"id": 37, "type": "identifier", "text": "ID", "parent": 36, "children": [], "start_point": {"row": 12, "column": 24}, "end_point": {"row": 12, "column": 26}}, {"id": 38, "type": "preproc_arg", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID", "parent": 33, "children": [], "start_point": {"row": 12, "column": 28}, "end_point": {"row": 12, "column": 73}}, {"id": 39, "type": "#endif", "text": "#endif", "parent": 8, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 6}}, {"id": 40, "type": "preproc_include", "text": "#include <math.h>\n", "parent": 3, "children": [41, 42], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 41, "type": "#include", "text": "#include", "parent": 40, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 8}}, {"id": 42, "type": "system_lib_string", "text": "<math.h>", "parent": 40, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 17}}, {"id": 43, "type": "preproc_ifdef", "text": "#ifndef casadi_real\n#define casadi_real double\n#endif", "parent": 3, "children": [44, 45, 46, 50], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 44, "type": "#ifndef", "text": "#ifndef", "parent": 43, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 45, "type": "identifier", "text": "casadi_real", "parent": 43, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 19}}, {"id": 46, "type": "preproc_def", "text": "#define casadi_real double\n", "parent": 43, "children": [47, 48, 49], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 47, "type": "#define", "text": "#define", "parent": 46, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 48, "type": "identifier", "text": "casadi_real", "parent": 46, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 19}}, {"id": 49, "type": "preproc_arg", "text": "double", "parent": 46, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 26}}, {"id": 50, "type": "#endif", "text": "#endif", "parent": 43, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 6}}, {"id": 51, "type": "preproc_ifdef", "text": "#ifndef casadi_int\n#define casadi_int int\n#endif", "parent": 3, "children": [52, 53, 54, 58], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 52, "type": "#ifndef", "text": "#ifndef", "parent": 51, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 53, "type": "identifier", "text": "casadi_int", "parent": 51, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 18}}, {"id": 54, "type": "preproc_def", "text": "#define casadi_int int\n", "parent": 51, "children": [55, 56, 57], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 55, "type": "#define", "text": "#define", "parent": 54, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 56, "type": "identifier", "text": "casadi_int", "parent": 54, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 18}}, {"id": 57, "type": "preproc_arg", "text": "int", "parent": 54, "children": [], "start_point": {"row": 22, "column": 19}, "end_point": {"row": 22, "column": 22}}, {"id": 58, "type": "#endif", "text": "#endif", "parent": 51, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 6}}, {"id": 59, "type": "preproc_def", "text": "#define casadi_f0 CASADI_PREFIX(f0)\n", "parent": 3, "children": [60, 61, 62], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 60, "type": "#define", "text": "#define", "parent": 59, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 61, "type": "identifier", "text": "casadi_f0", "parent": 59, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 17}}, {"id": 62, "type": "preproc_arg", "text": "CASADI_PREFIX(f0)", "parent": 59, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 35}}, {"id": 63, "type": "preproc_def", "text": "#define casadi_s0 CASADI_PREFIX(s0)\n", "parent": 3, "children": [64, 65, 66], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 64, "type": "#define", "text": "#define", "parent": 63, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 65, "type": "identifier", "text": "casadi_s0", "parent": 63, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 17}}, {"id": 66, "type": "preproc_arg", "text": "CASADI_PREFIX(s0)", "parent": 63, "children": [], "start_point": {"row": 27, "column": 18}, "end_point": {"row": 27, "column": 35}}, {"id": 67, "type": "preproc_def", "text": "#define casadi_s1 CASADI_PREFIX(s1)\n", "parent": 3, "children": [68, 69, 70], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 68, "type": "#define", "text": "#define", "parent": 67, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 69, "type": "identifier", "text": "casadi_s1", "parent": 67, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 17}}, {"id": 70, "type": "preproc_arg", "text": "CASADI_PREFIX(s1)", "parent": 67, "children": [], "start_point": {"row": 28, "column": 18}, "end_point": {"row": 28, "column": 35}}, {"id": 71, "type": "preproc_def", "text": "#define casadi_s2 CASADI_PREFIX(s2)\n", "parent": 3, "children": [72, 73, 74], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 72, "type": "#define", "text": "#define", "parent": 71, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 73, "type": "identifier", "text": "casadi_s2", "parent": 71, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 17}}, {"id": 74, "type": "preproc_arg", "text": "CASADI_PREFIX(s2)", "parent": 71, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 35}}, {"id": 75, "type": "preproc_def", "text": "#define casadi_s3 CASADI_PREFIX(s3)\n", "parent": 3, "children": [76, 77, 78], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 76, "type": "#define", "text": "#define", "parent": 75, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 7}}, {"id": 77, "type": "identifier", "text": "casadi_s3", "parent": 75, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 17}}, {"id": 78, "type": "preproc_arg", "text": "CASADI_PREFIX(s3)", "parent": 75, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 35}}, {"id": 79, "type": "preproc_def", "text": "#define casadi_s4 CASADI_PREFIX(s4)\n", "parent": 3, "children": [80, 81, 82], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 80, "type": "#define", "text": "#define", "parent": 79, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 81, "type": "identifier", "text": "casadi_s4", "parent": 79, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 17}}, {"id": 82, "type": "preproc_arg", "text": "CASADI_PREFIX(s4)", "parent": 79, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 35}}, {"id": 83, "type": "preproc_def", "text": "#define casadi_s5 CASADI_PREFIX(s5)\n", "parent": 3, "children": [84, 85, 86], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 84, "type": "#define", "text": "#define", "parent": 83, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 85, "type": "identifier", "text": "casadi_s5", "parent": 83, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 17}}, {"id": 86, "type": "preproc_arg", "text": "CASADI_PREFIX(s5)", "parent": 83, "children": [], "start_point": {"row": 32, "column": 18}, "end_point": {"row": 32, "column": 35}}, {"id": 87, "type": "preproc_def", "text": "#define casadi_s6 CASADI_PREFIX(s6)\n", "parent": 3, "children": [88, 89, 90], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 88, "type": "#define", "text": "#define", "parent": 87, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 89, "type": "identifier", "text": "casadi_s6", "parent": 87, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 17}}, {"id": 90, "type": "preproc_arg", "text": "CASADI_PREFIX(s6)", "parent": 87, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 35}}, {"id": 91, "type": "preproc_ifdef", "text": "#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility (\"default\")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif", "parent": 3, "children": [92, 93, 94, 147], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 92, "type": "#ifndef", "text": "#ifndef", "parent": 91, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 93, "type": "identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 91, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 28}}, {"id": 94, "type": "preproc_if", "text": "#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility (\"default\")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif", "parent": 91, "children": [95, 96, 109, 110, 126, 146], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 95, "type": "#if", "text": "#if", "parent": 94, "children": [], "start_point": {"row": 37, "column": 2}, "end_point": {"row": 37, "column": 5}}, {"id": 96, "type": "binary_expression", "text": "defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)", "parent": 94, "children": [97, 105, 106], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 66}}, {"id": 97, "type": "binary_expression", "text": "defined(_WIN32) || defined(__WIN32__)", "parent": 96, "children": [98, 101, 102], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 43}}, {"id": 98, "type": "preproc_defined", "text": "defined(_WIN32)", "parent": 97, "children": [99, 100], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 21}}, {"id": 99, "type": "defined", "text": "defined", "parent": 98, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 13}}, {"id": 100, "type": "identifier", "text": "_WIN32", "parent": 98, "children": [], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 20}}, {"id": 101, "type": "||", "text": "||", "parent": 97, "children": [], "start_point": {"row": 37, "column": 22}, "end_point": {"row": 37, "column": 24}}, {"id": 102, "type": "preproc_defined", "text": "defined(__WIN32__)", "parent": 97, "children": [103, 104], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 43}}, {"id": 103, "type": "defined", "text": "defined", "parent": 102, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 32}}, {"id": 104, "type": "identifier", "text": "__WIN32__", "parent": 102, "children": [], "start_point": {"row": 37, "column": 33}, "end_point": {"row": 37, "column": 42}}, {"id": 105, "type": "||", "text": "||", "parent": 96, "children": [], "start_point": {"row": 37, "column": 44}, "end_point": {"row": 37, "column": 46}}, {"id": 106, "type": "preproc_defined", "text": "defined(__CYGWIN__)", "parent": 96, "children": [107, 108], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 66}}, {"id": 107, "type": "defined", "text": "defined", "parent": 106, "children": [], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 54}}, {"id": 108, "type": "identifier", "text": "__CYGWIN__", "parent": 106, "children": [], "start_point": {"row": 37, "column": 55}, "end_point": {"row": 37, "column": 65}}, {"id": 109, "type": "\n", "text": "\n", "parent": 94, "children": [], "start_point": {"row": 37, "column": 66}, "end_point": {"row": 38, "column": 0}}, {"id": 110, "type": "preproc_if", "text": "#if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif", "parent": 94, "children": [111, 112, 115, 116, 119, 125], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 111, "type": "#if", "text": "#if", "parent": 110, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 7}}, {"id": 112, "type": "preproc_defined", "text": "defined(STATIC_LINKED)", "parent": 110, "children": [113, 114], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 30}}, {"id": 113, "type": "defined", "text": "defined", "parent": 112, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 15}}, {"id": 114, "type": "identifier", "text": "STATIC_LINKED", "parent": 112, "children": [], "start_point": {"row": 38, "column": 16}, "end_point": {"row": 38, "column": 29}}, {"id": 115, "type": "\n", "text": "\n", "parent": 110, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 39, "column": 0}}, {"id": 116, "type": "preproc_def", "text": "#define CASADI_SYMBOL_EXPORT\n", "parent": 110, "children": [117, 118], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 40, "column": 0}}, {"id": 117, "type": "#define", "text": "#define", "parent": 116, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 13}}, {"id": 118, "type": "identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 116, "children": [], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 34}}, {"id": 119, "type": "preproc_else", "text": "#else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n", "parent": 110, "children": [120, 121], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 42, "column": 0}}, {"id": 120, "type": "#else", "text": "#else", "parent": 119, "children": [], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 9}}, {"id": 121, "type": "preproc_def", "text": "#define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n", "parent": 119, "children": [122, 123, 124], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 42, "column": 0}}, {"id": 122, "type": "#define", "text": "#define", "parent": 121, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 13}}, {"id": 123, "type": "identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 121, "children": [], "start_point": {"row": 41, "column": 14}, "end_point": {"row": 41, "column": 34}}, {"id": 124, "type": "preproc_arg", "text": "__declspec(dllexport)", "parent": 121, "children": [], "start_point": {"row": 41, "column": 35}, "end_point": {"row": 41, "column": 56}}, {"id": 125, "type": "#endif", "text": "#endif", "parent": 110, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 42, "column": 10}}, {"id": 126, "type": "preproc_elif", "text": "#elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility (\"default\")))\n #else\n #define CASADI_SYMBOL_EXPORT\n", "parent": 94, "children": [127, 128, 136, 137, 141], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 47, "column": 0}}, {"id": 127, "type": "#elif", "text": "#elif", "parent": 126, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 7}}, {"id": 128, "type": "binary_expression", "text": "defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)", "parent": 126, "children": [129, 132, 133], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 60}}, {"id": 129, "type": "preproc_defined", "text": "defined(__GNUC__)", "parent": 128, "children": [130, 131], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 25}}, {"id": 130, "type": "defined", "text": "defined", "parent": 129, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 15}}, {"id": 131, "type": "identifier", "text": "__GNUC__", "parent": 129, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 24}}, {"id": 132, "type": "&&", "text": "&&", "parent": 128, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 28}}, {"id": 133, "type": "preproc_defined", "text": "defined(GCC_HASCLASSVISIBILITY)", "parent": 128, "children": [134, 135], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 60}}, {"id": 134, "type": "defined", "text": "defined", "parent": 133, "children": [], "start_point": {"row": 43, "column": 29}, "end_point": {"row": 43, "column": 36}}, {"id": 135, "type": "identifier", "text": "GCC_HASCLASSVISIBILITY", "parent": 133, "children": [], "start_point": {"row": 43, "column": 37}, "end_point": {"row": 43, "column": 59}}, {"id": 136, "type": "\n", "text": "\n", "parent": 126, "children": [], "start_point": {"row": 43, "column": 60}, "end_point": {"row": 44, "column": 0}}, {"id": 137, "type": "preproc_def", "text": "#define CASADI_SYMBOL_EXPORT __attribute__ ((visibility (\"default\")))\n", "parent": 126, "children": [138, 139, 140], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 45, "column": 0}}, {"id": 138, "type": "#define", "text": "#define", "parent": 137, "children": [], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 11}}, {"id": 139, "type": "identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 137, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 32}}, {"id": 140, "type": "preproc_arg", "text": "__attribute__ ((visibility (\"default\")))", "parent": 137, "children": [], "start_point": {"row": 44, "column": 33}, "end_point": {"row": 44, "column": 73}}, {"id": 141, "type": "preproc_else", "text": "#else\n #define CASADI_SYMBOL_EXPORT\n", "parent": 126, "children": [142, 143], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 47, "column": 0}}, {"id": 142, "type": "#else", "text": "#else", "parent": 141, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 7}}, {"id": 143, "type": "preproc_def", "text": "#define CASADI_SYMBOL_EXPORT\n", "parent": 141, "children": [144, 145], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 47, "column": 0}}, {"id": 144, "type": "#define", "text": "#define", "parent": 143, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 11}}, {"id": 145, "type": "identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 143, "children": [], "start_point": {"row": 46, "column": 12}, "end_point": {"row": 46, "column": 32}}, {"id": 146, "type": "#endif", "text": "#endif", "parent": 94, "children": [], "start_point": {"row": 47, "column": 2}, "end_point": {"row": 47, "column": 8}}, {"id": 147, "type": "#endif", "text": "#endif", "parent": 91, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 148, "type": "declaration", "text": "static const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};", "parent": 3, "children": [149, 150], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 71}}, {"id": 149, "type": "type_identifier", "text": "casadi_int", "parent": 148, "children": [], "start_point": {"row": 50, "column": 13}, "end_point": {"row": 50, "column": 23}}, {"id": 150, "type": "init_declarator", "text": "casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5}", "parent": 148, "children": [151, 154, 155], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 70}}, {"id": 151, "type": "array_declarator", "text": "casadi_s0[10]", "parent": 150, "children": [152, 153], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 37}}, {"id": 152, "type": "identifier", "text": "casadi_s0", "parent": 151, "children": [], "start_point": {"row": 50, "column": 24}, "end_point": {"row": 50, "column": 33}}, {"id": 153, "type": "number_literal", "text": "10", "parent": 151, "children": [], "start_point": {"row": 50, "column": 34}, "end_point": {"row": 50, "column": 36}}, {"id": 154, "type": "=", "text": "=", "parent": 150, "children": [], "start_point": {"row": 50, "column": 38}, "end_point": {"row": 50, "column": 39}}, {"id": 155, "type": "initializer_list", "text": "{6, 1, 0, 6, 0, 1, 2, 3, 4, 5}", "parent": 150, "children": [156, 157, 158, 159, 160, 161, 162, 163, 164, 165], "start_point": {"row": 50, "column": 40}, "end_point": {"row": 50, "column": 70}}, {"id": 156, "type": "number_literal", "text": "6", "parent": 155, "children": [], "start_point": {"row": 50, "column": 41}, "end_point": {"row": 50, "column": 42}}, {"id": 157, "type": "number_literal", "text": "1", "parent": 155, "children": [], "start_point": {"row": 50, "column": 44}, "end_point": {"row": 50, "column": 45}}, {"id": 158, "type": "number_literal", "text": "0", "parent": 155, "children": [], "start_point": {"row": 50, "column": 47}, "end_point": {"row": 50, "column": 48}}, {"id": 159, "type": "number_literal", "text": "6", "parent": 155, "children": [], "start_point": {"row": 50, "column": 50}, "end_point": {"row": 50, "column": 51}}, {"id": 160, "type": "number_literal", "text": "0", "parent": 155, "children": [], "start_point": {"row": 50, "column": 53}, "end_point": {"row": 50, "column": 54}}, {"id": 161, "type": "number_literal", "text": "1", "parent": 155, "children": [], "start_point": {"row": 50, "column": 56}, "end_point": {"row": 50, "column": 57}}, {"id": 162, "type": "number_literal", "text": "2", "parent": 155, "children": [], "start_point": {"row": 50, "column": 59}, "end_point": {"row": 50, "column": 60}}, {"id": 163, "type": "number_literal", "text": "3", "parent": 155, "children": [], "start_point": {"row": 50, "column": 62}, "end_point": {"row": 50, "column": 63}}, {"id": 164, "type": "number_literal", "text": "4", "parent": 155, "children": [], "start_point": {"row": 50, "column": 65}, "end_point": {"row": 50, "column": 66}}, {"id": 165, "type": "number_literal", "text": "5", "parent": 155, "children": [], "start_point": {"row": 50, "column": 68}, "end_point": {"row": 50, "column": 69}}, {"id": 166, "type": "declaration", "text": "static const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};", "parent": 3, "children": [167, 168], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 55}}, {"id": 167, "type": "type_identifier", "text": "casadi_int", "parent": 166, "children": [], "start_point": {"row": 51, "column": 13}, "end_point": {"row": 51, "column": 23}}, {"id": 168, "type": "init_declarator", "text": "casadi_s1[5] = {1, 1, 0, 1, 0}", "parent": 166, "children": [169, 172, 173], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 54}}, {"id": 169, "type": "array_declarator", "text": "casadi_s1[5]", "parent": 168, "children": [170, 171], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 36}}, {"id": 170, "type": "identifier", "text": "casadi_s1", "parent": 169, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 33}}, {"id": 171, "type": "number_literal", "text": "5", "parent": 169, "children": [], "start_point": {"row": 51, "column": 34}, "end_point": {"row": 51, "column": 35}}, {"id": 172, "type": "=", "text": "=", "parent": 168, "children": [], "start_point": {"row": 51, "column": 37}, "end_point": {"row": 51, "column": 38}}, {"id": 173, "type": "initializer_list", "text": "{1, 1, 0, 1, 0}", "parent": 168, "children": [174, 175, 176, 177, 178], "start_point": {"row": 51, "column": 39}, "end_point": {"row": 51, "column": 54}}, {"id": 174, "type": "number_literal", "text": "1", "parent": 173, "children": [], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 41}}, {"id": 175, "type": "number_literal", "text": "1", "parent": 173, "children": [], "start_point": {"row": 51, "column": 43}, "end_point": {"row": 51, "column": 44}}, {"id": 176, "type": "number_literal", "text": "0", "parent": 173, "children": [], "start_point": {"row": 51, "column": 46}, "end_point": {"row": 51, "column": 47}}, {"id": 177, "type": "number_literal", "text": "1", "parent": 173, "children": [], "start_point": {"row": 51, "column": 49}, "end_point": {"row": 51, "column": 50}}, {"id": 178, "type": "number_literal", "text": "0", "parent": 173, "children": [], "start_point": {"row": 51, "column": 52}, "end_point": {"row": 51, "column": 53}}, {"id": 179, "type": "declaration", "text": "static const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};", "parent": 3, "children": [180, 181], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 67}}, {"id": 180, "type": "type_identifier", "text": "casadi_int", "parent": 179, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 23}}, {"id": 181, "type": "init_declarator", "text": "casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4}", "parent": 179, "children": [182, 185, 186], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 66}}, {"id": 182, "type": "array_declarator", "text": "casadi_s2[9]", "parent": 181, "children": [183, 184], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 36}}, {"id": 183, "type": "identifier", "text": "casadi_s2", "parent": 182, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 33}}, {"id": 184, "type": "number_literal", "text": "9", "parent": 182, "children": [], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 35}}, {"id": 185, "type": "=", "text": "=", "parent": 181, "children": [], "start_point": {"row": 52, "column": 37}, "end_point": {"row": 52, "column": 38}}, {"id": 186, "type": "initializer_list", "text": "{5, 1, 0, 5, 0, 1, 2, 3, 4}", "parent": 181, "children": [187, 188, 189, 190, 191, 192, 193, 194, 195], "start_point": {"row": 52, "column": 39}, "end_point": {"row": 52, "column": 66}}, {"id": 187, "type": "number_literal", "text": "5", "parent": 186, "children": [], "start_point": {"row": 52, "column": 40}, "end_point": {"row": 52, "column": 41}}, {"id": 188, "type": "number_literal", "text": "1", "parent": 186, "children": [], "start_point": {"row": 52, "column": 43}, "end_point": {"row": 52, "column": 44}}, {"id": 189, "type": "number_literal", "text": "0", "parent": 186, "children": [], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 47}}, {"id": 190, "type": "number_literal", "text": "5", "parent": 186, "children": [], "start_point": {"row": 52, "column": 49}, "end_point": {"row": 52, "column": 50}}, {"id": 191, "type": "number_literal", "text": "0", "parent": 186, "children": [], "start_point": {"row": 52, "column": 52}, "end_point": {"row": 52, "column": 53}}, {"id": 192, "type": "number_literal", "text": "1", "parent": 186, "children": [], "start_point": {"row": 52, "column": 55}, "end_point": {"row": 52, "column": 56}}, {"id": 193, "type": "number_literal", "text": "2", "parent": 186, "children": [], "start_point": {"row": 52, "column": 58}, "end_point": {"row": 52, "column": 59}}, {"id": 194, "type": "number_literal", "text": "3", "parent": 186, "children": [], "start_point": {"row": 52, "column": 61}, "end_point": {"row": 52, "column": 62}}, {"id": 195, "type": "number_literal", "text": "4", "parent": 186, "children": [], "start_point": {"row": 52, "column": 64}, "end_point": {"row": 52, "column": 65}}, {"id": 196, "type": "declaration", "text": "static const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};", "parent": 3, "children": [197, 198], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 89}}, {"id": 197, "type": "type_identifier", "text": "casadi_int", "parent": 196, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 23}}, {"id": 198, "type": "init_declarator", "text": "casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}", "parent": 196, "children": [199, 202, 203], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 88}}, {"id": 199, "type": "array_declarator", "text": "casadi_s3[15]", "parent": 198, "children": [200, 201], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 37}}, {"id": 200, "type": "identifier", "text": "casadi_s3", "parent": 199, "children": [], "start_point": {"row": 53, "column": 24}, "end_point": {"row": 53, "column": 33}}, {"id": 201, "type": "number_literal", "text": "15", "parent": 199, "children": [], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 36}}, {"id": 202, "type": "=", "text": "=", "parent": 198, "children": [], "start_point": {"row": 53, "column": 38}, "end_point": {"row": 53, "column": 39}}, {"id": 203, "type": "initializer_list", "text": "{11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}", "parent": 198, "children": [204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 88}}, {"id": 204, "type": "number_literal", "text": "11", "parent": 203, "children": [], "start_point": {"row": 53, "column": 41}, "end_point": {"row": 53, "column": 43}}, {"id": 205, "type": "number_literal", "text": "1", "parent": 203, "children": [], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 46}}, {"id": 206, "type": "number_literal", "text": "0", "parent": 203, "children": [], "start_point": {"row": 53, "column": 48}, "end_point": {"row": 53, "column": 49}}, {"id": 207, "type": "number_literal", "text": "11", "parent": 203, "children": [], "start_point": {"row": 53, "column": 51}, "end_point": {"row": 53, "column": 53}}, {"id": 208, "type": "number_literal", "text": "0", "parent": 203, "children": [], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 56}}, {"id": 209, "type": "number_literal", "text": "1", "parent": 203, "children": [], "start_point": {"row": 53, "column": 58}, "end_point": {"row": 53, "column": 59}}, {"id": 210, "type": "number_literal", "text": "2", "parent": 203, "children": [], "start_point": {"row": 53, "column": 61}, "end_point": {"row": 53, "column": 62}}, {"id": 211, "type": "number_literal", "text": "3", "parent": 203, "children": [], "start_point": {"row": 53, "column": 64}, "end_point": {"row": 53, "column": 65}}, {"id": 212, "type": "number_literal", "text": "4", "parent": 203, "children": [], "start_point": {"row": 53, "column": 67}, "end_point": {"row": 53, "column": 68}}, {"id": 213, "type": "number_literal", "text": "5", "parent": 203, "children": [], "start_point": {"row": 53, "column": 70}, "end_point": {"row": 53, "column": 71}}, {"id": 214, "type": "number_literal", "text": "6", "parent": 203, "children": [], "start_point": {"row": 53, "column": 73}, "end_point": {"row": 53, "column": 74}}, {"id": 215, "type": "number_literal", "text": "7", "parent": 203, "children": [], "start_point": {"row": 53, "column": 76}, "end_point": {"row": 53, "column": 77}}, {"id": 216, "type": "number_literal", "text": "8", "parent": 203, "children": [], "start_point": {"row": 53, "column": 79}, "end_point": {"row": 53, "column": 80}}, {"id": 217, "type": "number_literal", "text": "9", "parent": 203, "children": [], "start_point": {"row": 53, "column": 82}, "end_point": {"row": 53, "column": 83}}, {"id": 218, "type": "number_literal", "text": "10", "parent": 203, "children": [], "start_point": {"row": 53, "column": 85}, "end_point": {"row": 53, "column": 87}}, {"id": 219, "type": "declaration", "text": "static const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};", "parent": 3, "children": [220, 221], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 105}}, {"id": 220, "type": "type_identifier", "text": "casadi_int", "parent": 219, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 23}}, {"id": 221, "type": "init_declarator", "text": "casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10}", "parent": 219, "children": [222, 225, 226], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 104}}, {"id": 222, "type": "array_declarator", "text": "casadi_s4[20]", "parent": 221, "children": [223, 224], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 37}}, {"id": 223, "type": "identifier", "text": "casadi_s4", "parent": 222, "children": [], "start_point": {"row": 54, "column": 24}, "end_point": {"row": 54, "column": 33}}, {"id": 224, "type": "number_literal", "text": "20", "parent": 222, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 36}}, {"id": 225, "type": "=", "text": "=", "parent": 221, "children": [], "start_point": {"row": 54, "column": 38}, "end_point": {"row": 54, "column": 39}}, {"id": 226, "type": "initializer_list", "text": "{11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10}", "parent": 221, "children": [227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246], "start_point": {"row": 54, "column": 40}, "end_point": {"row": 54, "column": 104}}, {"id": 227, "type": "number_literal", "text": "11", "parent": 226, "children": [], "start_point": {"row": 54, "column": 41}, "end_point": {"row": 54, "column": 43}}, {"id": 228, "type": "number_literal", "text": "6", "parent": 226, "children": [], "start_point": {"row": 54, "column": 45}, "end_point": {"row": 54, "column": 46}}, {"id": 229, "type": "number_literal", "text": "0", "parent": 226, "children": [], "start_point": {"row": 54, "column": 48}, "end_point": {"row": 54, "column": 49}}, {"id": 230, "type": "number_literal", "text": "2", "parent": 226, "children": [], "start_point": {"row": 54, "column": 51}, "end_point": {"row": 54, "column": 52}}, {"id": 231, "type": "number_literal", "text": "4", "parent": 226, "children": [], "start_point": {"row": 54, "column": 54}, "end_point": {"row": 54, "column": 55}}, {"id": 232, "type": "number_literal", "text": "6", "parent": 226, "children": [], "start_point": {"row": 54, "column": 57}, "end_point": {"row": 54, "column": 58}}, {"id": 233, "type": "number_literal", "text": "8", "parent": 226, "children": [], "start_point": {"row": 54, "column": 60}, "end_point": {"row": 54, "column": 61}}, {"id": 234, "type": "number_literal", "text": "11", "parent": 226, "children": [], "start_point": {"row": 54, "column": 63}, "end_point": {"row": 54, "column": 65}}, {"id": 235, "type": "number_literal", "text": "11", "parent": 226, "children": [], "start_point": {"row": 54, "column": 67}, "end_point": {"row": 54, "column": 69}}, {"id": 236, "type": "number_literal", "text": "6", "parent": 226, "children": [], "start_point": {"row": 54, "column": 71}, "end_point": {"row": 54, "column": 72}}, {"id": 237, "type": "number_literal", "text": "7", "parent": 226, "children": [], "start_point": {"row": 54, "column": 74}, "end_point": {"row": 54, "column": 75}}, {"id": 238, "type": "number_literal", "text": "5", "parent": 226, "children": [], "start_point": {"row": 54, "column": 77}, "end_point": {"row": 54, "column": 78}}, {"id": 239, "type": "number_literal", "text": "7", "parent": 226, "children": [], "start_point": {"row": 54, "column": 80}, "end_point": {"row": 54, "column": 81}}, {"id": 240, "type": "number_literal", "text": "0", "parent": 226, "children": [], "start_point": {"row": 54, "column": 83}, "end_point": {"row": 54, "column": 84}}, {"id": 241, "type": "number_literal", "text": "6", "parent": 226, "children": [], "start_point": {"row": 54, "column": 86}, "end_point": {"row": 54, "column": 87}}, {"id": 242, "type": "number_literal", "text": "1", "parent": 226, "children": [], "start_point": {"row": 54, "column": 89}, "end_point": {"row": 54, "column": 90}}, {"id": 243, "type": "number_literal", "text": "5", "parent": 226, "children": [], "start_point": {"row": 54, "column": 92}, "end_point": {"row": 54, "column": 93}}, {"id": 244, "type": "number_literal", "text": "5", "parent": 226, "children": [], "start_point": {"row": 54, "column": 95}, "end_point": {"row": 54, "column": 96}}, {"id": 245, "type": "number_literal", "text": "6", "parent": 226, "children": [], "start_point": {"row": 54, "column": 98}, "end_point": {"row": 54, "column": 99}}, {"id": 246, "type": "number_literal", "text": "10", "parent": 226, "children": [], "start_point": {"row": 54, "column": 101}, "end_point": {"row": 54, "column": 103}}, {"id": 247, "type": "declaration", "text": "static const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};", "parent": 3, "children": [248, 249], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 88}}, {"id": 248, "type": "type_identifier", "text": "casadi_int", "parent": 247, "children": [], "start_point": {"row": 55, "column": 13}, "end_point": {"row": 55, "column": 23}}, {"id": 249, "type": "init_declarator", "text": "casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10}", "parent": 247, "children": [250, 253, 254], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 87}}, {"id": 250, "type": "array_declarator", "text": "casadi_s5[15]", "parent": 249, "children": [251, 252], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 37}}, {"id": 251, "type": "identifier", "text": "casadi_s5", "parent": 250, "children": [], "start_point": {"row": 55, "column": 24}, "end_point": {"row": 55, "column": 33}}, {"id": 252, "type": "number_literal", "text": "15", "parent": 250, "children": [], "start_point": {"row": 55, "column": 34}, "end_point": {"row": 55, "column": 36}}, {"id": 253, "type": "=", "text": "=", "parent": 249, "children": [], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 39}}, {"id": 254, "type": "initializer_list", "text": "{11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10}", "parent": 249, "children": [255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269], "start_point": {"row": 55, "column": 40}, "end_point": {"row": 55, "column": 87}}, {"id": 255, "type": "number_literal", "text": "11", "parent": 254, "children": [], "start_point": {"row": 55, "column": 41}, "end_point": {"row": 55, "column": 43}}, {"id": 256, "type": "number_literal", "text": "6", "parent": 254, "children": [], "start_point": {"row": 55, "column": 45}, "end_point": {"row": 55, "column": 46}}, {"id": 257, "type": "number_literal", "text": "0", "parent": 254, "children": [], "start_point": {"row": 55, "column": 48}, "end_point": {"row": 55, "column": 49}}, {"id": 258, "type": "number_literal", "text": "1", "parent": 254, "children": [], "start_point": {"row": 55, "column": 51}, "end_point": {"row": 55, "column": 52}}, {"id": 259, "type": "number_literal", "text": "2", "parent": 254, "children": [], "start_point": {"row": 55, "column": 54}, "end_point": {"row": 55, "column": 55}}, {"id": 260, "type": "number_literal", "text": "3", "parent": 254, "children": [], "start_point": {"row": 55, "column": 57}, "end_point": {"row": 55, "column": 58}}, {"id": 261, "type": "number_literal", "text": "4", "parent": 254, "children": [], "start_point": {"row": 55, "column": 60}, "end_point": {"row": 55, "column": 61}}, {"id": 262, "type": "number_literal", "text": "5", "parent": 254, "children": [], "start_point": {"row": 55, "column": 63}, "end_point": {"row": 55, "column": 64}}, {"id": 263, "type": "number_literal", "text": "6", "parent": 254, "children": [], "start_point": {"row": 55, "column": 66}, "end_point": {"row": 55, "column": 67}}, {"id": 264, "type": "number_literal", "text": "0", "parent": 254, "children": [], "start_point": {"row": 55, "column": 69}, "end_point": {"row": 55, "column": 70}}, {"id": 265, "type": "number_literal", "text": "1", "parent": 254, "children": [], "start_point": {"row": 55, "column": 72}, "end_point": {"row": 55, "column": 73}}, {"id": 266, "type": "number_literal", "text": "2", "parent": 254, "children": [], "start_point": {"row": 55, "column": 75}, "end_point": {"row": 55, "column": 76}}, {"id": 267, "type": "number_literal", "text": "3", "parent": 254, "children": [], "start_point": {"row": 55, "column": 78}, "end_point": {"row": 55, "column": 79}}, {"id": 268, "type": "number_literal", "text": "4", "parent": 254, "children": [], "start_point": {"row": 55, "column": 81}, "end_point": {"row": 55, "column": 82}}, {"id": 269, "type": "number_literal", "text": "10", "parent": 254, "children": [], "start_point": {"row": 55, "column": 84}, "end_point": {"row": 55, "column": 86}}, {"id": 270, "type": "declaration", "text": "static const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};", "parent": 3, "children": [271, 272], "start_point": {"row": 56, "column": 0}, "end_point": {"row": 56, "column": 59}}, {"id": 271, "type": "type_identifier", "text": "casadi_int", "parent": 270, "children": [], "start_point": {"row": 56, "column": 13}, "end_point": {"row": 56, "column": 23}}, {"id": 272, "type": "init_declarator", "text": "casadi_s6[6] = {11, 1, 0, 2, 7, 8}", "parent": 270, "children": [273, 276, 277], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 58}}, {"id": 273, "type": "array_declarator", "text": "casadi_s6[6]", "parent": 272, "children": [274, 275], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 36}}, {"id": 274, "type": "identifier", "text": "casadi_s6", "parent": 273, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 33}}, {"id": 275, "type": "number_literal", "text": "6", "parent": 273, "children": [], "start_point": {"row": 56, "column": 34}, "end_point": {"row": 56, "column": 35}}, {"id": 276, "type": "=", "text": "=", "parent": 272, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 38}}, {"id": 277, "type": "initializer_list", "text": "{11, 1, 0, 2, 7, 8}", "parent": 272, "children": [278, 279, 280, 281, 282, 283], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 58}}, {"id": 278, "type": "number_literal", "text": "11", "parent": 277, "children": [], "start_point": {"row": 56, "column": 40}, "end_point": {"row": 56, "column": 42}}, {"id": 279, "type": "number_literal", "text": "1", "parent": 277, "children": [], "start_point": {"row": 56, "column": 44}, "end_point": {"row": 56, "column": 45}}, {"id": 280, "type": "number_literal", "text": "0", "parent": 277, "children": [], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 48}}, {"id": 281, "type": "number_literal", "text": "2", "parent": 277, "children": [], "start_point": {"row": 56, "column": 50}, "end_point": {"row": 56, "column": 51}}, {"id": 282, "type": "number_literal", "text": "7", "parent": 277, "children": [], "start_point": {"row": 56, "column": 53}, "end_point": {"row": 56, "column": 54}}, {"id": 283, "type": "number_literal", "text": "8", "parent": 277, "children": [], "start_point": {"row": 56, "column": 56}, "end_point": {"row": 56, "column": 57}}, {"id": 284, "type": "function_definition", "text": "static int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}", "parent": 3, "children": [285, 286], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 147, "column": 1}}, {"id": 285, "type": "primitive_type", "text": "int", "parent": 284, "children": [], "start_point": {"row": 59, "column": 7}, "end_point": {"row": 59, "column": 10}}, {"id": 286, "type": "function_declarator", "text": "casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)", "parent": 284, "children": [287, 288], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 107}}, {"id": 287, "type": "identifier", "text": "casadi_f0", "parent": 286, "children": [], "start_point": {"row": 59, "column": 11}, "end_point": {"row": 59, "column": 20}}, {"id": 288, "type": "parameter_list", "text": "(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)", "parent": 286, "children": [289, 296, 303, 308, 313], "start_point": {"row": 59, "column": 20}, "end_point": {"row": 59, "column": 107}}, {"id": 289, "type": "parameter_declaration", "text": "const casadi_real** arg", "parent": 288, "children": [290, 291], "start_point": {"row": 59, "column": 21}, "end_point": {"row": 59, "column": 44}}, {"id": 290, "type": "type_identifier", "text": "casadi_real", "parent": 289, "children": [], "start_point": {"row": 59, "column": 27}, "end_point": {"row": 59, "column": 38}}, {"id": 291, "type": "pointer_declarator", "text": "** arg", "parent": 289, "children": [292, 293], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 44}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 39}}, {"id": 293, "type": "pointer_declarator", "text": "* arg", "parent": 291, "children": [294, 295], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 44}}, {"id": 294, "type": "*", "text": "*", "parent": 293, "children": [], "start_point": {"row": 59, "column": 39}, "end_point": {"row": 59, "column": 40}}, {"id": 295, "type": "identifier", "text": "arg", "parent": 293, "children": [], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 44}}, {"id": 296, "type": "parameter_declaration", "text": "casadi_real** res", "parent": 288, "children": [297, 298], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 63}}, {"id": 297, "type": "type_identifier", "text": "casadi_real", "parent": 296, "children": [], "start_point": {"row": 59, "column": 46}, "end_point": {"row": 59, "column": 57}}, {"id": 298, "type": "pointer_declarator", "text": "** res", "parent": 296, "children": [299, 300], "start_point": {"row": 59, "column": 57}, "end_point": {"row": 59, "column": 63}}, {"id": 299, "type": "*", "text": "*", "parent": 298, "children": [], "start_point": {"row": 59, "column": 57}, "end_point": {"row": 59, "column": 58}}, {"id": 300, "type": "pointer_declarator", "text": "* res", "parent": 298, "children": [301, 302], "start_point": {"row": 59, "column": 58}, "end_point": {"row": 59, "column": 63}}, {"id": 301, "type": "*", "text": "*", "parent": 300, "children": [], "start_point": {"row": 59, "column": 58}, "end_point": {"row": 59, "column": 59}}, {"id": 302, "type": "identifier", "text": "res", "parent": 300, "children": [], "start_point": {"row": 59, "column": 60}, "end_point": {"row": 59, "column": 63}}, {"id": 303, "type": "parameter_declaration", "text": "casadi_int* iw", "parent": 288, "children": [304, 305], "start_point": {"row": 59, "column": 65}, "end_point": {"row": 59, "column": 79}}, {"id": 304, "type": "type_identifier", "text": "casadi_int", "parent": 303, "children": [], "start_point": {"row": 59, "column": 65}, "end_point": {"row": 59, "column": 75}}, {"id": 305, "type": "pointer_declarator", "text": "* iw", "parent": 303, "children": [306, 307], "start_point": {"row": 59, "column": 75}, "end_point": {"row": 59, "column": 79}}, {"id": 306, "type": "*", "text": "*", "parent": 305, "children": [], "start_point": {"row": 59, "column": 75}, "end_point": {"row": 59, "column": 76}}, {"id": 307, "type": "identifier", "text": "iw", "parent": 305, "children": [], "start_point": {"row": 59, "column": 77}, "end_point": {"row": 59, "column": 79}}, {"id": 308, "type": "parameter_declaration", "text": "casadi_real* w", "parent": 288, "children": [309, 310], "start_point": {"row": 59, "column": 81}, "end_point": {"row": 59, "column": 95}}, {"id": 309, "type": "type_identifier", "text": "casadi_real", "parent": 308, "children": [], "start_point": {"row": 59, "column": 81}, "end_point": {"row": 59, "column": 92}}, {"id": 310, "type": "pointer_declarator", "text": "* w", "parent": 308, "children": [311, 312], "start_point": {"row": 59, "column": 92}, "end_point": {"row": 59, "column": 95}}, {"id": 311, "type": "*", "text": "*", "parent": 310, "children": [], "start_point": {"row": 59, "column": 92}, "end_point": {"row": 59, "column": 93}}, {"id": 312, "type": "identifier", "text": "w", "parent": 310, "children": [], "start_point": {"row": 59, "column": 94}, "end_point": {"row": 59, "column": 95}}, {"id": 313, "type": "parameter_declaration", "text": "void* mem", "parent": 288, "children": [314, 315], "start_point": {"row": 59, "column": 97}, "end_point": {"row": 59, "column": 106}}, {"id": 314, "type": "primitive_type", "text": "void", "parent": 313, "children": [], "start_point": {"row": 59, "column": 97}, "end_point": {"row": 59, "column": 101}}, {"id": 315, "type": "pointer_declarator", "text": "* mem", "parent": 313, "children": [316, 317], "start_point": {"row": 59, "column": 101}, "end_point": {"row": 59, "column": 106}}, {"id": 316, "type": "*", "text": "*", "parent": 315, "children": [], "start_point": {"row": 59, "column": 101}, "end_point": {"row": 59, "column": 102}}, {"id": 317, "type": "identifier", "text": "mem", "parent": 315, "children": [], "start_point": {"row": 59, "column": 103}, "end_point": {"row": 59, "column": 106}}, {"id": 318, "type": "declaration", "text": "casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;", "parent": 284, "children": [319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 68}}, {"id": 319, "type": "type_identifier", "text": "casadi_real", "parent": 318, "children": [], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 13}}, {"id": 320, "type": "identifier", "text": "a0", "parent": 318, "children": [], "start_point": {"row": 60, "column": 14}, "end_point": {"row": 60, "column": 16}}, {"id": 321, "type": "identifier", "text": "a1", "parent": 318, "children": [], "start_point": {"row": 60, "column": 18}, "end_point": {"row": 60, "column": 20}}, {"id": 322, "type": "identifier", "text": "a10", "parent": 318, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 25}}, {"id": 323, "type": "identifier", "text": "a11", "parent": 318, "children": [], "start_point": {"row": 60, "column": 27}, "end_point": {"row": 60, "column": 30}}, {"id": 324, "type": "identifier", "text": "a12", "parent": 318, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 35}}, {"id": 325, "type": "identifier", "text": "a2", "parent": 318, "children": [], "start_point": {"row": 60, "column": 37}, "end_point": {"row": 60, "column": 39}}, {"id": 326, "type": "identifier", "text": "a3", "parent": 318, "children": [], "start_point": {"row": 60, "column": 41}, "end_point": {"row": 60, "column": 43}}, {"id": 327, "type": "identifier", "text": "a4", "parent": 318, "children": [], "start_point": {"row": 60, "column": 45}, "end_point": {"row": 60, "column": 47}}, {"id": 328, "type": "identifier", "text": "a5", "parent": 318, "children": [], "start_point": {"row": 60, "column": 49}, "end_point": {"row": 60, "column": 51}}, {"id": 329, "type": "identifier", "text": "a6", "parent": 318, "children": [], "start_point": {"row": 60, "column": 53}, "end_point": {"row": 60, "column": 55}}, {"id": 330, "type": "identifier", "text": "a7", "parent": 318, "children": [], "start_point": {"row": 60, "column": 57}, "end_point": {"row": 60, "column": 59}}, {"id": 331, "type": "identifier", "text": "a8", "parent": 318, "children": [], "start_point": {"row": 60, "column": 61}, "end_point": {"row": 60, "column": 63}}, {"id": 332, "type": "identifier", "text": "a9", "parent": 318, "children": [], "start_point": {"row": 60, "column": 65}, "end_point": {"row": 60, "column": 67}}, {"id": 333, "type": "assignment_expression", "text": "a0=arg[1] ? arg[1][0] : 0", "parent": 284, "children": [334, 335, 336], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 27}}, {"id": 334, "type": "identifier", "text": "a0", "parent": 333, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 4}}, {"id": 335, "type": "=", "text": "=", "parent": 333, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 336, "type": "conditional_expression", "text": "arg[1] ? arg[1][0] : 0", "parent": 333, "children": [337, 340, 341, 346], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 27}}, {"id": 337, "type": "subscript_expression", "text": "arg[1]", "parent": 336, "children": [338, 339], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 11}}, {"id": 338, "type": "identifier", "text": "arg", "parent": 337, "children": [], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 8}}, {"id": 339, "type": "number_literal", "text": "1", "parent": 337, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 10}}, {"id": 340, "type": "?", "text": "?", "parent": 336, "children": [], "start_point": {"row": 61, "column": 12}, "end_point": {"row": 61, "column": 13}}, {"id": 341, "type": "subscript_expression", "text": "arg[1][0]", "parent": 336, "children": [342, 345], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 23}}, {"id": 342, "type": "subscript_expression", "text": "arg[1]", "parent": 341, "children": [343, 344], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 20}}, {"id": 343, "type": "identifier", "text": "arg", "parent": 342, "children": [], "start_point": {"row": 61, "column": 14}, "end_point": {"row": 61, "column": 17}}, {"id": 344, "type": "number_literal", "text": "1", "parent": 342, "children": [], "start_point": {"row": 61, "column": 18}, "end_point": {"row": 61, "column": 19}}, {"id": 345, "type": "number_literal", "text": "0", "parent": 341, "children": [], "start_point": {"row": 61, "column": 21}, "end_point": {"row": 61, "column": 22}}, {"id": 346, "type": "number_literal", "text": "0", "parent": 336, "children": [], "start_point": {"row": 61, "column": 26}, "end_point": {"row": 61, "column": 27}}, {"id": 347, "type": "assignment_expression", "text": "a1=arg[0] ? arg[0][2] : 0", "parent": 284, "children": [348, 349, 350], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 27}}, {"id": 348, "type": "identifier", "text": "a1", "parent": 347, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 4}}, {"id": 349, "type": "=", "text": "=", "parent": 347, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 5}}, {"id": 350, "type": "conditional_expression", "text": "arg[0] ? arg[0][2] : 0", "parent": 347, "children": [351, 354, 355, 360], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 27}}, {"id": 351, "type": "subscript_expression", "text": "arg[0]", "parent": 350, "children": [352, 353], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 11}}, {"id": 352, "type": "identifier", "text": "arg", "parent": 351, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 8}}, {"id": 353, "type": "number_literal", "text": "0", "parent": 351, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 10}}, {"id": 354, "type": "?", "text": "?", "parent": 350, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 13}}, {"id": 355, "type": "subscript_expression", "text": "arg[0][2]", "parent": 350, "children": [356, 359], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 23}}, {"id": 356, "type": "subscript_expression", "text": "arg[0]", "parent": 355, "children": [357, 358], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 20}}, {"id": 357, "type": "identifier", "text": "arg", "parent": 356, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 17}}, {"id": 358, "type": "number_literal", "text": "0", "parent": 356, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 19}}, {"id": 359, "type": "number_literal", "text": "2", "parent": 355, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 22}}, {"id": 360, "type": "number_literal", "text": "0", "parent": 350, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 27}}, {"id": 361, "type": "assignment_expression", "text": "a0=(a0-a1)", "parent": 284, "children": [362, 363, 364], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 12}}, {"id": 362, "type": "identifier", "text": "a0", "parent": 361, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 4}}, {"id": 363, "type": "=", "text": "=", "parent": 361, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 5}}, {"id": 364, "type": "parenthesized_expression", "text": "(a0-a1)", "parent": 361, "children": [365], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 12}}, {"id": 365, "type": "binary_expression", "text": "a0-a1", "parent": 364, "children": [366, 367, 368], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 11}}, {"id": 366, "type": "identifier", "text": "a0", "parent": 365, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 8}}, {"id": 367, "type": "-", "text": "-", "parent": 365, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 9}}, {"id": 368, "type": "identifier", "text": "a1", "parent": 365, "children": [], "start_point": {"row": 63, "column": 9}, "end_point": {"row": 63, "column": 11}}, {"id": 369, "type": "if_statement", "text": "if (res[0]!=0) res[0][0]=a0;", "parent": 284, "children": [370], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 30}}, {"id": 370, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 369, "children": [371], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 16}}, {"id": 371, "type": "binary_expression", "text": "res[0]!=0", "parent": 370, "children": [372, 375, 376], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 15}}, {"id": 372, "type": "subscript_expression", "text": "res[0]", "parent": 371, "children": [373, 374], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 12}}, {"id": 373, "type": "identifier", "text": "res", "parent": 372, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 9}}, {"id": 374, "type": "number_literal", "text": "0", "parent": 372, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 11}}, {"id": 375, "type": "!=", "text": "!=", "parent": 371, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 14}}, {"id": 376, "type": "number_literal", "text": "0", "parent": 371, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 15}}, {"id": 377, "type": "assignment_expression", "text": "res[0][0]=a0", "parent": 369, "children": [378, 383, 384], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 29}}, {"id": 378, "type": "subscript_expression", "text": "res[0][0]", "parent": 377, "children": [379, 382], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 26}}, {"id": 379, "type": "subscript_expression", "text": "res[0]", "parent": 378, "children": [380, 381], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 23}}, {"id": 380, "type": "identifier", "text": "res", "parent": 379, "children": [], "start_point": {"row": 64, "column": 17}, "end_point": {"row": 64, "column": 20}}, {"id": 381, "type": "number_literal", "text": "0", "parent": 379, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 22}}, {"id": 382, "type": "number_literal", "text": "0", "parent": 378, "children": [], "start_point": {"row": 64, "column": 24}, "end_point": {"row": 64, "column": 25}}, {"id": 383, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 27}}, {"id": 384, "type": "identifier", "text": "a0", "parent": 377, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 29}}, {"id": 385, "type": "assignment_expression", "text": "a0=arg[1] ? arg[1][1] : 0", "parent": 284, "children": [386, 387, 388], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 27}}, {"id": 386, "type": "identifier", "text": "a0", "parent": 385, "children": [], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 4}}, {"id": 387, "type": "=", "text": "=", "parent": 385, "children": [], "start_point": {"row": 65, "column": 4}, "end_point": {"row": 65, "column": 5}}, {"id": 388, "type": "conditional_expression", "text": "arg[1] ? arg[1][1] : 0", "parent": 385, "children": [389, 392, 393, 398], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 27}}, {"id": 389, "type": "subscript_expression", "text": "arg[1]", "parent": 388, "children": [390, 391], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 11}}, {"id": 390, "type": "identifier", "text": "arg", "parent": 389, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 8}}, {"id": 391, "type": "number_literal", "text": "1", "parent": 389, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 10}}, {"id": 392, "type": "?", "text": "?", "parent": 388, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 393, "type": "subscript_expression", "text": "arg[1][1]", "parent": 388, "children": [394, 397], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 23}}, {"id": 394, "type": "subscript_expression", "text": "arg[1]", "parent": 393, "children": [395, 396], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 20}}, {"id": 395, "type": "identifier", "text": "arg", "parent": 394, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 17}}, {"id": 396, "type": "number_literal", "text": "1", "parent": 394, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 19}}, {"id": 397, "type": "number_literal", "text": "1", "parent": 393, "children": [], "start_point": {"row": 65, "column": 21}, "end_point": {"row": 65, "column": 22}}, {"id": 398, "type": "number_literal", "text": "0", "parent": 388, "children": [], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 65, "column": 27}}, {"id": 399, "type": "assignment_expression", "text": "a2=arg[0] ? arg[0][3] : 0", "parent": 284, "children": [400, 401, 402], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 27}}, {"id": 400, "type": "identifier", "text": "a2", "parent": 399, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 4}}, {"id": 401, "type": "=", "text": "=", "parent": 399, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 5}}, {"id": 402, "type": "conditional_expression", "text": "arg[0] ? arg[0][3] : 0", "parent": 399, "children": [403, 406, 407, 412], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 27}}, {"id": 403, "type": "subscript_expression", "text": "arg[0]", "parent": 402, "children": [404, 405], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 11}}, {"id": 404, "type": "identifier", "text": "arg", "parent": 403, "children": [], "start_point": {"row": 66, "column": 5}, "end_point": {"row": 66, "column": 8}}, {"id": 405, "type": "number_literal", "text": "0", "parent": 403, "children": [], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 10}}, {"id": 406, "type": "?", "text": "?", "parent": 402, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 407, "type": "subscript_expression", "text": "arg[0][3]", "parent": 402, "children": [408, 411], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 23}}, {"id": 408, "type": "subscript_expression", "text": "arg[0]", "parent": 407, "children": [409, 410], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 20}}, {"id": 409, "type": "identifier", "text": "arg", "parent": 408, "children": [], "start_point": {"row": 66, "column": 14}, "end_point": {"row": 66, "column": 17}}, {"id": 410, "type": "number_literal", "text": "0", "parent": 408, "children": [], "start_point": {"row": 66, "column": 18}, "end_point": {"row": 66, "column": 19}}, {"id": 411, "type": "number_literal", "text": "3", "parent": 407, "children": [], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 22}}, {"id": 412, "type": "number_literal", "text": "0", "parent": 402, "children": [], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 27}}, {"id": 413, "type": "assignment_expression", "text": "a0=(a0-a2)", "parent": 284, "children": [414, 415, 416], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 12}}, {"id": 414, "type": "identifier", "text": "a0", "parent": 413, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 4}}, {"id": 415, "type": "=", "text": "=", "parent": 413, "children": [], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 5}}, {"id": 416, "type": "parenthesized_expression", "text": "(a0-a2)", "parent": 413, "children": [417], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 12}}, {"id": 417, "type": "binary_expression", "text": "a0-a2", "parent": 416, "children": [418, 419, 420], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 11}}, {"id": 418, "type": "identifier", "text": "a0", "parent": 417, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 8}}, {"id": 419, "type": "-", "text": "-", "parent": 417, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 9}}, {"id": 420, "type": "identifier", "text": "a2", "parent": 417, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 11}}, {"id": 421, "type": "if_statement", "text": "if (res[0]!=0) res[0][1]=a0;", "parent": 284, "children": [422], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 30}}, {"id": 422, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 421, "children": [423], "start_point": {"row": 68, "column": 5}, "end_point": {"row": 68, "column": 16}}, {"id": 423, "type": "binary_expression", "text": "res[0]!=0", "parent": 422, "children": [424, 427, 428], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 15}}, {"id": 424, "type": "subscript_expression", "text": "res[0]", "parent": 423, "children": [425, 426], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 12}}, {"id": 425, "type": "identifier", "text": "res", "parent": 424, "children": [], "start_point": {"row": 68, "column": 6}, "end_point": {"row": 68, "column": 9}}, {"id": 426, "type": "number_literal", "text": "0", "parent": 424, "children": [], "start_point": {"row": 68, "column": 10}, "end_point": {"row": 68, "column": 11}}, {"id": 427, "type": "!=", "text": "!=", "parent": 423, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 14}}, {"id": 428, "type": "number_literal", "text": "0", "parent": 423, "children": [], "start_point": {"row": 68, "column": 14}, "end_point": {"row": 68, "column": 15}}, {"id": 429, "type": "assignment_expression", "text": "res[0][1]=a0", "parent": 421, "children": [430, 435, 436], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 29}}, {"id": 430, "type": "subscript_expression", "text": "res[0][1]", "parent": 429, "children": [431, 434], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 26}}, {"id": 431, "type": "subscript_expression", "text": "res[0]", "parent": 430, "children": [432, 433], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 23}}, {"id": 432, "type": "identifier", "text": "res", "parent": 431, "children": [], "start_point": {"row": 68, "column": 17}, "end_point": {"row": 68, "column": 20}}, {"id": 433, "type": "number_literal", "text": "0", "parent": 431, "children": [], "start_point": {"row": 68, "column": 21}, "end_point": {"row": 68, "column": 22}}, {"id": 434, "type": "number_literal", "text": "1", "parent": 430, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 25}}, {"id": 435, "type": "=", "text": "=", "parent": 429, "children": [], "start_point": {"row": 68, "column": 26}, "end_point": {"row": 68, "column": 27}}, {"id": 436, "type": "identifier", "text": "a0", "parent": 429, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 29}}, {"id": 437, "type": "assignment_expression", "text": "a0=arg[1] ? arg[1][2] : 0", "parent": 284, "children": [438, 439, 440], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 27}}, {"id": 438, "type": "identifier", "text": "a0", "parent": 437, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 4}}, {"id": 439, "type": "=", "text": "=", "parent": 437, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 5}}, {"id": 440, "type": "conditional_expression", "text": "arg[1] ? arg[1][2] : 0", "parent": 437, "children": [441, 444, 445, 450], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 27}}, {"id": 441, "type": "subscript_expression", "text": "arg[1]", "parent": 440, "children": [442, 443], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 11}}, {"id": 442, "type": "identifier", "text": "arg", "parent": 441, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 8}}, {"id": 443, "type": "number_literal", "text": "1", "parent": 441, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 10}}, {"id": 444, "type": "?", "text": "?", "parent": 440, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 13}}, {"id": 445, "type": "subscript_expression", "text": "arg[1][2]", "parent": 440, "children": [446, 449], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 23}}, {"id": 446, "type": "subscript_expression", "text": "arg[1]", "parent": 445, "children": [447, 448], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 20}}, {"id": 447, "type": "identifier", "text": "arg", "parent": 446, "children": [], "start_point": {"row": 69, "column": 14}, "end_point": {"row": 69, "column": 17}}, {"id": 448, "type": "number_literal", "text": "1", "parent": 446, "children": [], "start_point": {"row": 69, "column": 18}, "end_point": {"row": 69, "column": 19}}, {"id": 449, "type": "number_literal", "text": "2", "parent": 445, "children": [], "start_point": {"row": 69, "column": 21}, "end_point": {"row": 69, "column": 22}}, {"id": 450, "type": "number_literal", "text": "0", "parent": 440, "children": [], "start_point": {"row": 69, "column": 26}, "end_point": {"row": 69, "column": 27}}, {"id": 451, "type": "assignment_expression", "text": "a3=arg[3] ? arg[3][0] : 0", "parent": 284, "children": [452, 453, 454], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 27}}, {"id": 452, "type": "identifier", "text": "a3", "parent": 451, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 4}}, {"id": 453, "type": "=", "text": "=", "parent": 451, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 5}}, {"id": 454, "type": "conditional_expression", "text": "arg[3] ? arg[3][0] : 0", "parent": 451, "children": [455, 458, 459, 464], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 27}}, {"id": 455, "type": "subscript_expression", "text": "arg[3]", "parent": 454, "children": [456, 457], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 11}}, {"id": 456, "type": "identifier", "text": "arg", "parent": 455, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 8}}, {"id": 457, "type": "number_literal", "text": "3", "parent": 455, "children": [], "start_point": {"row": 70, "column": 9}, "end_point": {"row": 70, "column": 10}}, {"id": 458, "type": "?", "text": "?", "parent": 454, "children": [], "start_point": {"row": 70, "column": 12}, "end_point": {"row": 70, "column": 13}}, {"id": 459, "type": "subscript_expression", "text": "arg[3][0]", "parent": 454, "children": [460, 463], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 23}}, {"id": 460, "type": "subscript_expression", "text": "arg[3]", "parent": 459, "children": [461, 462], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 20}}, {"id": 461, "type": "identifier", "text": "arg", "parent": 460, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 17}}, {"id": 462, "type": "number_literal", "text": "3", "parent": 460, "children": [], "start_point": {"row": 70, "column": 18}, "end_point": {"row": 70, "column": 19}}, {"id": 463, "type": "number_literal", "text": "0", "parent": 459, "children": [], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 22}}, {"id": 464, "type": "number_literal", "text": "0", "parent": 454, "children": [], "start_point": {"row": 70, "column": 26}, "end_point": {"row": 70, "column": 27}}, {"id": 465, "type": "assignment_expression", "text": "a0=(a0-a3)", "parent": 284, "children": [466, 467, 468], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 12}}, {"id": 466, "type": "identifier", "text": "a0", "parent": 465, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 4}}, {"id": 467, "type": "=", "text": "=", "parent": 465, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 5}}, {"id": 468, "type": "parenthesized_expression", "text": "(a0-a3)", "parent": 465, "children": [469], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 12}}, {"id": 469, "type": "binary_expression", "text": "a0-a3", "parent": 468, "children": [470, 471, 472], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 11}}, {"id": 470, "type": "identifier", "text": "a0", "parent": 469, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 8}}, {"id": 471, "type": "-", "text": "-", "parent": 469, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 9}}, {"id": 472, "type": "identifier", "text": "a3", "parent": 469, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 11}}, {"id": 473, "type": "if_statement", "text": "if (res[0]!=0) res[0][2]=a0;", "parent": 284, "children": [474], "start_point": {"row": 72, "column": 2}, "end_point": {"row": 72, "column": 30}}, {"id": 474, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 473, "children": [475], "start_point": {"row": 72, "column": 5}, "end_point": {"row": 72, "column": 16}}, {"id": 475, "type": "binary_expression", "text": "res[0]!=0", "parent": 474, "children": [476, 479, 480], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 15}}, {"id": 476, "type": "subscript_expression", "text": "res[0]", "parent": 475, "children": [477, 478], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 12}}, {"id": 477, "type": "identifier", "text": "res", "parent": 476, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 9}}, {"id": 478, "type": "number_literal", "text": "0", "parent": 476, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 11}}, {"id": 479, "type": "!=", "text": "!=", "parent": 475, "children": [], "start_point": {"row": 72, "column": 12}, "end_point": {"row": 72, "column": 14}}, {"id": 480, "type": "number_literal", "text": "0", "parent": 475, "children": [], "start_point": {"row": 72, "column": 14}, "end_point": {"row": 72, "column": 15}}, {"id": 481, "type": "assignment_expression", "text": "res[0][2]=a0", "parent": 473, "children": [482, 487, 488], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 29}}, {"id": 482, "type": "subscript_expression", "text": "res[0][2]", "parent": 481, "children": [483, 486], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 26}}, {"id": 483, "type": "subscript_expression", "text": "res[0]", "parent": 482, "children": [484, 485], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 23}}, {"id": 484, "type": "identifier", "text": "res", "parent": 483, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 20}}, {"id": 485, "type": "number_literal", "text": "0", "parent": 483, "children": [], "start_point": {"row": 72, "column": 21}, "end_point": {"row": 72, "column": 22}}, {"id": 486, "type": "number_literal", "text": "2", "parent": 482, "children": [], "start_point": {"row": 72, "column": 24}, "end_point": {"row": 72, "column": 25}}, {"id": 487, "type": "=", "text": "=", "parent": 481, "children": [], "start_point": {"row": 72, "column": 26}, "end_point": {"row": 72, "column": 27}}, {"id": 488, "type": "identifier", "text": "a0", "parent": 481, "children": [], "start_point": {"row": 72, "column": 27}, "end_point": {"row": 72, "column": 29}}, {"id": 489, "type": "assignment_expression", "text": "a0=arg[1] ? arg[1][3] : 0", "parent": 284, "children": [490, 491, 492], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 27}}, {"id": 490, "type": "identifier", "text": "a0", "parent": 489, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 4}}, {"id": 491, "type": "=", "text": "=", "parent": 489, "children": [], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 5}}, {"id": 492, "type": "conditional_expression", "text": "arg[1] ? arg[1][3] : 0", "parent": 489, "children": [493, 496, 497, 502], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 27}}, {"id": 493, "type": "subscript_expression", "text": "arg[1]", "parent": 492, "children": [494, 495], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 11}}, {"id": 494, "type": "identifier", "text": "arg", "parent": 493, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 8}}, {"id": 495, "type": "number_literal", "text": "1", "parent": 493, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 10}}, {"id": 496, "type": "?", "text": "?", "parent": 492, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 13}}, {"id": 497, "type": "subscript_expression", "text": "arg[1][3]", "parent": 492, "children": [498, 501], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 23}}, {"id": 498, "type": "subscript_expression", "text": "arg[1]", "parent": 497, "children": [499, 500], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 20}}, {"id": 499, "type": "identifier", "text": "arg", "parent": 498, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 17}}, {"id": 500, "type": "number_literal", "text": "1", "parent": 498, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 19}}, {"id": 501, "type": "number_literal", "text": "3", "parent": 497, "children": [], "start_point": {"row": 73, "column": 21}, "end_point": {"row": 73, "column": 22}}, {"id": 502, "type": "number_literal", "text": "0", "parent": 492, "children": [], "start_point": {"row": 73, "column": 26}, "end_point": {"row": 73, "column": 27}}, {"id": 503, "type": "assignment_expression", "text": "a4=arg[3] ? arg[3][1] : 0", "parent": 284, "children": [504, 505, 506], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 27}}, {"id": 504, "type": "identifier", "text": "a4", "parent": 503, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 4}}, {"id": 505, "type": "=", "text": "=", "parent": 503, "children": [], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 5}}, {"id": 506, "type": "conditional_expression", "text": "arg[3] ? arg[3][1] : 0", "parent": 503, "children": [507, 510, 511, 516], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 27}}, {"id": 507, "type": "subscript_expression", "text": "arg[3]", "parent": 506, "children": [508, 509], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 11}}, {"id": 508, "type": "identifier", "text": "arg", "parent": 507, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 8}}, {"id": 509, "type": "number_literal", "text": "3", "parent": 507, "children": [], "start_point": {"row": 74, "column": 9}, "end_point": {"row": 74, "column": 10}}, {"id": 510, "type": "?", "text": "?", "parent": 506, "children": [], "start_point": {"row": 74, "column": 12}, "end_point": {"row": 74, "column": 13}}, {"id": 511, "type": "subscript_expression", "text": "arg[3][1]", "parent": 506, "children": [512, 515], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 23}}, {"id": 512, "type": "subscript_expression", "text": "arg[3]", "parent": 511, "children": [513, 514], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 20}}, {"id": 513, "type": "identifier", "text": "arg", "parent": 512, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 17}}, {"id": 514, "type": "number_literal", "text": "3", "parent": 512, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 19}}, {"id": 515, "type": "number_literal", "text": "1", "parent": 511, "children": [], "start_point": {"row": 74, "column": 21}, "end_point": {"row": 74, "column": 22}}, {"id": 516, "type": "number_literal", "text": "0", "parent": 506, "children": [], "start_point": {"row": 74, "column": 26}, "end_point": {"row": 74, "column": 27}}, {"id": 517, "type": "assignment_expression", "text": "a0=(a0-a4)", "parent": 284, "children": [518, 519, 520], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 12}}, {"id": 518, "type": "identifier", "text": "a0", "parent": 517, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 4}}, {"id": 519, "type": "=", "text": "=", "parent": 517, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 520, "type": "parenthesized_expression", "text": "(a0-a4)", "parent": 517, "children": [521], "start_point": {"row": 75, "column": 5}, "end_point": {"row": 75, "column": 12}}, {"id": 521, "type": "binary_expression", "text": "a0-a4", "parent": 520, "children": [522, 523, 524], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 11}}, {"id": 522, "type": "identifier", "text": "a0", "parent": 521, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 8}}, {"id": 523, "type": "-", "text": "-", "parent": 521, "children": [], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 9}}, {"id": 524, "type": "identifier", "text": "a4", "parent": 521, "children": [], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 11}}, {"id": 525, "type": "if_statement", "text": "if (res[0]!=0) res[0][3]=a0;", "parent": 284, "children": [526], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 30}}, {"id": 526, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 525, "children": [527], "start_point": {"row": 76, "column": 5}, "end_point": {"row": 76, "column": 16}}, {"id": 527, "type": "binary_expression", "text": "res[0]!=0", "parent": 526, "children": [528, 531, 532], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 15}}, {"id": 528, "type": "subscript_expression", "text": "res[0]", "parent": 527, "children": [529, 530], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 12}}, {"id": 529, "type": "identifier", "text": "res", "parent": 528, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 9}}, {"id": 530, "type": "number_literal", "text": "0", "parent": 528, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 11}}, {"id": 531, "type": "!=", "text": "!=", "parent": 527, "children": [], "start_point": {"row": 76, "column": 12}, "end_point": {"row": 76, "column": 14}}, {"id": 532, "type": "number_literal", "text": "0", "parent": 527, "children": [], "start_point": {"row": 76, "column": 14}, "end_point": {"row": 76, "column": 15}}, {"id": 533, "type": "assignment_expression", "text": "res[0][3]=a0", "parent": 525, "children": [534, 539, 540], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 29}}, {"id": 534, "type": "subscript_expression", "text": "res[0][3]", "parent": 533, "children": [535, 538], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 26}}, {"id": 535, "type": "subscript_expression", "text": "res[0]", "parent": 534, "children": [536, 537], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 23}}, {"id": 536, "type": "identifier", "text": "res", "parent": 535, "children": [], "start_point": {"row": 76, "column": 17}, "end_point": {"row": 76, "column": 20}}, {"id": 537, "type": "number_literal", "text": "0", "parent": 535, "children": [], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 22}}, {"id": 538, "type": "number_literal", "text": "3", "parent": 534, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 25}}, {"id": 539, "type": "=", "text": "=", "parent": 533, "children": [], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 27}}, {"id": 540, "type": "identifier", "text": "a0", "parent": 533, "children": [], "start_point": {"row": 76, "column": 27}, "end_point": {"row": 76, "column": 29}}, {"id": 541, "type": "assignment_expression", "text": "a0=arg[1] ? arg[1][4] : 0", "parent": 284, "children": [542, 543, 544], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 27}}, {"id": 542, "type": "identifier", "text": "a0", "parent": 541, "children": [], "start_point": {"row": 77, "column": 2}, "end_point": {"row": 77, "column": 4}}, {"id": 543, "type": "=", "text": "=", "parent": 541, "children": [], "start_point": {"row": 77, "column": 4}, "end_point": {"row": 77, "column": 5}}, {"id": 544, "type": "conditional_expression", "text": "arg[1] ? arg[1][4] : 0", "parent": 541, "children": [545, 548, 549, 554], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 27}}, {"id": 545, "type": "subscript_expression", "text": "arg[1]", "parent": 544, "children": [546, 547], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 11}}, {"id": 546, "type": "identifier", "text": "arg", "parent": 545, "children": [], "start_point": {"row": 77, "column": 5}, "end_point": {"row": 77, "column": 8}}, {"id": 547, "type": "number_literal", "text": "1", "parent": 545, "children": [], "start_point": {"row": 77, "column": 9}, "end_point": {"row": 77, "column": 10}}, {"id": 548, "type": "?", "text": "?", "parent": 544, "children": [], "start_point": {"row": 77, "column": 12}, "end_point": {"row": 77, "column": 13}}, {"id": 549, "type": "subscript_expression", "text": "arg[1][4]", "parent": 544, "children": [550, 553], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 23}}, {"id": 550, "type": "subscript_expression", "text": "arg[1]", "parent": 549, "children": [551, 552], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 20}}, {"id": 551, "type": "identifier", "text": "arg", "parent": 550, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 17}}, {"id": 552, "type": "number_literal", "text": "1", "parent": 550, "children": [], "start_point": {"row": 77, "column": 18}, "end_point": {"row": 77, "column": 19}}, {"id": 553, "type": "number_literal", "text": "4", "parent": 549, "children": [], "start_point": {"row": 77, "column": 21}, "end_point": {"row": 77, "column": 22}}, {"id": 554, "type": "number_literal", "text": "0", "parent": 544, "children": [], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 77, "column": 27}}, {"id": 555, "type": "assignment_expression", "text": "a5=arg[3] ? arg[3][2] : 0", "parent": 284, "children": [556, 557, 558], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 27}}, {"id": 556, "type": "identifier", "text": "a5", "parent": 555, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 4}}, {"id": 557, "type": "=", "text": "=", "parent": 555, "children": [], "start_point": {"row": 78, "column": 4}, "end_point": {"row": 78, "column": 5}}, {"id": 558, "type": "conditional_expression", "text": "arg[3] ? arg[3][2] : 0", "parent": 555, "children": [559, 562, 563, 568], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 27}}, {"id": 559, "type": "subscript_expression", "text": "arg[3]", "parent": 558, "children": [560, 561], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 11}}, {"id": 560, "type": "identifier", "text": "arg", "parent": 559, "children": [], "start_point": {"row": 78, "column": 5}, "end_point": {"row": 78, "column": 8}}, {"id": 561, "type": "number_literal", "text": "3", "parent": 559, "children": [], "start_point": {"row": 78, "column": 9}, "end_point": {"row": 78, "column": 10}}, {"id": 562, "type": "?", "text": "?", "parent": 558, "children": [], "start_point": {"row": 78, "column": 12}, "end_point": {"row": 78, "column": 13}}, {"id": 563, "type": "subscript_expression", "text": "arg[3][2]", "parent": 558, "children": [564, 567], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 23}}, {"id": 564, "type": "subscript_expression", "text": "arg[3]", "parent": 563, "children": [565, 566], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 20}}, {"id": 565, "type": "identifier", "text": "arg", "parent": 564, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 17}}, {"id": 566, "type": "number_literal", "text": "3", "parent": 564, "children": [], "start_point": {"row": 78, "column": 18}, "end_point": {"row": 78, "column": 19}}, {"id": 567, "type": "number_literal", "text": "2", "parent": 563, "children": [], "start_point": {"row": 78, "column": 21}, "end_point": {"row": 78, "column": 22}}, {"id": 568, "type": "number_literal", "text": "0", "parent": 558, "children": [], "start_point": {"row": 78, "column": 26}, "end_point": {"row": 78, "column": 27}}, {"id": 569, "type": "assignment_expression", "text": "a0=(a0-a5)", "parent": 284, "children": [570, 571, 572], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 12}}, {"id": 570, "type": "identifier", "text": "a0", "parent": 569, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 4}}, {"id": 571, "type": "=", "text": "=", "parent": 569, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 5}}, {"id": 572, "type": "parenthesized_expression", "text": "(a0-a5)", "parent": 569, "children": [573], "start_point": {"row": 79, "column": 5}, "end_point": {"row": 79, "column": 12}}, {"id": 573, "type": "binary_expression", "text": "a0-a5", "parent": 572, "children": [574, 575, 576], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 11}}, {"id": 574, "type": "identifier", "text": "a0", "parent": 573, "children": [], "start_point": {"row": 79, "column": 6}, "end_point": {"row": 79, "column": 8}}, {"id": 575, "type": "-", "text": "-", "parent": 573, "children": [], "start_point": {"row": 79, "column": 8}, "end_point": {"row": 79, "column": 9}}, {"id": 576, "type": "identifier", "text": "a5", "parent": 573, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 11}}, {"id": 577, "type": "if_statement", "text": "if (res[0]!=0) res[0][4]=a0;", "parent": 284, "children": [578], "start_point": {"row": 80, "column": 2}, "end_point": {"row": 80, "column": 30}}, {"id": 578, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 577, "children": [579], "start_point": {"row": 80, "column": 5}, "end_point": {"row": 80, "column": 16}}, {"id": 579, "type": "binary_expression", "text": "res[0]!=0", "parent": 578, "children": [580, 583, 584], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 15}}, {"id": 580, "type": "subscript_expression", "text": "res[0]", "parent": 579, "children": [581, 582], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 12}}, {"id": 581, "type": "identifier", "text": "res", "parent": 580, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 9}}, {"id": 582, "type": "number_literal", "text": "0", "parent": 580, "children": [], "start_point": {"row": 80, "column": 10}, "end_point": {"row": 80, "column": 11}}, {"id": 583, "type": "!=", "text": "!=", "parent": 579, "children": [], "start_point": {"row": 80, "column": 12}, "end_point": {"row": 80, "column": 14}}, {"id": 584, "type": "number_literal", "text": "0", "parent": 579, "children": [], "start_point": {"row": 80, "column": 14}, "end_point": {"row": 80, "column": 15}}, {"id": 585, "type": "assignment_expression", "text": "res[0][4]=a0", "parent": 577, "children": [586, 591, 592], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 29}}, {"id": 586, "type": "subscript_expression", "text": "res[0][4]", "parent": 585, "children": [587, 590], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 26}}, {"id": 587, "type": "subscript_expression", "text": "res[0]", "parent": 586, "children": [588, 589], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 23}}, {"id": 588, "type": "identifier", "text": "res", "parent": 587, "children": [], "start_point": {"row": 80, "column": 17}, "end_point": {"row": 80, "column": 20}}, {"id": 589, "type": "number_literal", "text": "0", "parent": 587, "children": [], "start_point": {"row": 80, "column": 21}, "end_point": {"row": 80, "column": 22}}, {"id": 590, "type": "number_literal", "text": "4", "parent": 586, "children": [], "start_point": {"row": 80, "column": 24}, "end_point": {"row": 80, "column": 25}}, {"id": 591, "type": "=", "text": "=", "parent": 585, "children": [], "start_point": {"row": 80, "column": 26}, "end_point": {"row": 80, "column": 27}}, {"id": 592, "type": "identifier", "text": "a0", "parent": 585, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 29}}, {"id": 593, "type": "assignment_expression", "text": "a0=arg[0] ? arg[0][4] : 0", "parent": 284, "children": [594, 595, 596], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 27}}, {"id": 594, "type": "identifier", "text": "a0", "parent": 593, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 4}}, {"id": 595, "type": "=", "text": "=", "parent": 593, "children": [], "start_point": {"row": 81, "column": 4}, "end_point": {"row": 81, "column": 5}}, {"id": 596, "type": "conditional_expression", "text": "arg[0] ? arg[0][4] : 0", "parent": 593, "children": [597, 600, 601, 606], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 27}}, {"id": 597, "type": "subscript_expression", "text": "arg[0]", "parent": 596, "children": [598, 599], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 11}}, {"id": 598, "type": "identifier", "text": "arg", "parent": 597, "children": [], "start_point": {"row": 81, "column": 5}, "end_point": {"row": 81, "column": 8}}, {"id": 599, "type": "number_literal", "text": "0", "parent": 597, "children": [], "start_point": {"row": 81, "column": 9}, "end_point": {"row": 81, "column": 10}}, {"id": 600, "type": "?", "text": "?", "parent": 596, "children": [], "start_point": {"row": 81, "column": 12}, "end_point": {"row": 81, "column": 13}}, {"id": 601, "type": "subscript_expression", "text": "arg[0][4]", "parent": 596, "children": [602, 605], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 23}}, {"id": 602, "type": "subscript_expression", "text": "arg[0]", "parent": 601, "children": [603, 604], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 20}}, {"id": 603, "type": "identifier", "text": "arg", "parent": 602, "children": [], "start_point": {"row": 81, "column": 14}, "end_point": {"row": 81, "column": 17}}, {"id": 604, "type": "number_literal", "text": "0", "parent": 602, "children": [], "start_point": {"row": 81, "column": 18}, "end_point": {"row": 81, "column": 19}}, {"id": 605, "type": "number_literal", "text": "4", "parent": 601, "children": [], "start_point": {"row": 81, "column": 21}, "end_point": {"row": 81, "column": 22}}, {"id": 606, "type": "number_literal", "text": "0", "parent": 596, "children": [], "start_point": {"row": 81, "column": 26}, "end_point": {"row": 81, "column": 27}}, {"id": 607, "type": "assignment_expression", "text": "a6=(a2*a0)", "parent": 284, "children": [608, 609, 610], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 12}}, {"id": 608, "type": "identifier", "text": "a6", "parent": 607, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 4}}, {"id": 609, "type": "=", "text": "=", "parent": 607, "children": [], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 5}}, {"id": 610, "type": "parenthesized_expression", "text": "(a2*a0)", "parent": 607, "children": [611], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 12}}, {"id": 611, "type": "binary_expression", "text": "a2*a0", "parent": 610, "children": [612, 613, 614], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 11}}, {"id": 612, "type": "identifier", "text": "a2", "parent": 611, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 8}}, {"id": 613, "type": "*", "text": "*", "parent": 611, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 9}}, {"id": 614, "type": "identifier", "text": "a0", "parent": 611, "children": [], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 11}}, {"id": 615, "type": "assignment_expression", "text": "a6=(a3+a6)", "parent": 284, "children": [616, 617, 618], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 12}}, {"id": 616, "type": "identifier", "text": "a6", "parent": 615, "children": [], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 83, "column": 4}}, {"id": 617, "type": "=", "text": "=", "parent": 615, "children": [], "start_point": {"row": 83, "column": 4}, "end_point": {"row": 83, "column": 5}}, {"id": 618, "type": "parenthesized_expression", "text": "(a3+a6)", "parent": 615, "children": [619], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 12}}, {"id": 619, "type": "binary_expression", "text": "a3+a6", "parent": 618, "children": [620, 621, 622], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 11}}, {"id": 620, "type": "identifier", "text": "a3", "parent": 619, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 8}}, {"id": 621, "type": "+", "text": "+", "parent": 619, "children": [], "start_point": {"row": 83, "column": 8}, "end_point": {"row": 83, "column": 9}}, {"id": 622, "type": "identifier", "text": "a6", "parent": 619, "children": [], "start_point": {"row": 83, "column": 9}, "end_point": {"row": 83, "column": 11}}, {"id": 623, "type": "assignment_expression", "text": "a7=arg[0] ? arg[0][1] : 0", "parent": 284, "children": [624, 625, 626], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 27}}, {"id": 624, "type": "identifier", "text": "a7", "parent": 623, "children": [], "start_point": {"row": 84, "column": 2}, "end_point": {"row": 84, "column": 4}}, {"id": 625, "type": "=", "text": "=", "parent": 623, "children": [], "start_point": {"row": 84, "column": 4}, "end_point": {"row": 84, "column": 5}}, {"id": 626, "type": "conditional_expression", "text": "arg[0] ? arg[0][1] : 0", "parent": 623, "children": [627, 630, 631, 636], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 27}}, {"id": 627, "type": "subscript_expression", "text": "arg[0]", "parent": 626, "children": [628, 629], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 11}}, {"id": 628, "type": "identifier", "text": "arg", "parent": 627, "children": [], "start_point": {"row": 84, "column": 5}, "end_point": {"row": 84, "column": 8}}, {"id": 629, "type": "number_literal", "text": "0", "parent": 627, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 10}}, {"id": 630, "type": "?", "text": "?", "parent": 626, "children": [], "start_point": {"row": 84, "column": 12}, "end_point": {"row": 84, "column": 13}}, {"id": 631, "type": "subscript_expression", "text": "arg[0][1]", "parent": 626, "children": [632, 635], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 23}}, {"id": 632, "type": "subscript_expression", "text": "arg[0]", "parent": 631, "children": [633, 634], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 20}}, {"id": 633, "type": "identifier", "text": "arg", "parent": 632, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 17}}, {"id": 634, "type": "number_literal", "text": "0", "parent": 632, "children": [], "start_point": {"row": 84, "column": 18}, "end_point": {"row": 84, "column": 19}}, {"id": 635, "type": "number_literal", "text": "1", "parent": 631, "children": [], "start_point": {"row": 84, "column": 21}, "end_point": {"row": 84, "column": 22}}, {"id": 636, "type": "number_literal", "text": "0", "parent": 626, "children": [], "start_point": {"row": 84, "column": 26}, "end_point": {"row": 84, "column": 27}}, {"id": 637, "type": "assignment_expression", "text": "a8=(a7*a5)", "parent": 284, "children": [638, 639, 640], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 12}}, {"id": 638, "type": "identifier", "text": "a8", "parent": 637, "children": [], "start_point": {"row": 85, "column": 2}, "end_point": {"row": 85, "column": 4}}, {"id": 639, "type": "=", "text": "=", "parent": 637, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 5}}, {"id": 640, "type": "parenthesized_expression", "text": "(a7*a5)", "parent": 637, "children": [641], "start_point": {"row": 85, "column": 5}, "end_point": {"row": 85, "column": 12}}, {"id": 641, "type": "binary_expression", "text": "a7*a5", "parent": 640, "children": [642, 643, 644], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 11}}, {"id": 642, "type": "identifier", "text": "a7", "parent": 641, "children": [], "start_point": {"row": 85, "column": 6}, "end_point": {"row": 85, "column": 8}}, {"id": 643, "type": "*", "text": "*", "parent": 641, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 9}}, {"id": 644, "type": "identifier", "text": "a5", "parent": 641, "children": [], "start_point": {"row": 85, "column": 9}, "end_point": {"row": 85, "column": 11}}, {"id": 645, "type": "assignment_expression", "text": "a6=(a6+a8)", "parent": 284, "children": [646, 647, 648], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 12}}, {"id": 646, "type": "identifier", "text": "a6", "parent": 645, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 4}}, {"id": 647, "type": "=", "text": "=", "parent": 645, "children": [], "start_point": {"row": 86, "column": 4}, "end_point": {"row": 86, "column": 5}}, {"id": 648, "type": "parenthesized_expression", "text": "(a6+a8)", "parent": 645, "children": [649], "start_point": {"row": 86, "column": 5}, "end_point": {"row": 86, "column": 12}}, {"id": 649, "type": "binary_expression", "text": "a6+a8", "parent": 648, "children": [650, 651, 652], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 11}}, {"id": 650, "type": "identifier", "text": "a6", "parent": 649, "children": [], "start_point": {"row": 86, "column": 6}, "end_point": {"row": 86, "column": 8}}, {"id": 651, "type": "+", "text": "+", "parent": 649, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 9}}, {"id": 652, "type": "identifier", "text": "a8", "parent": 649, "children": [], "start_point": {"row": 86, "column": 9}, "end_point": {"row": 86, "column": 11}}, {"id": 653, "type": "if_statement", "text": "if (res[0]!=0) res[0][5]=a6;", "parent": 284, "children": [654], "start_point": {"row": 87, "column": 2}, "end_point": {"row": 87, "column": 30}}, {"id": 654, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 653, "children": [655], "start_point": {"row": 87, "column": 5}, "end_point": {"row": 87, "column": 16}}, {"id": 655, "type": "binary_expression", "text": "res[0]!=0", "parent": 654, "children": [656, 659, 660], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 15}}, {"id": 656, "type": "subscript_expression", "text": "res[0]", "parent": 655, "children": [657, 658], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 12}}, {"id": 657, "type": "identifier", "text": "res", "parent": 656, "children": [], "start_point": {"row": 87, "column": 6}, "end_point": {"row": 87, "column": 9}}, {"id": 658, "type": "number_literal", "text": "0", "parent": 656, "children": [], "start_point": {"row": 87, "column": 10}, "end_point": {"row": 87, "column": 11}}, {"id": 659, "type": "!=", "text": "!=", "parent": 655, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 14}}, {"id": 660, "type": "number_literal", "text": "0", "parent": 655, "children": [], "start_point": {"row": 87, "column": 14}, "end_point": {"row": 87, "column": 15}}, {"id": 661, "type": "assignment_expression", "text": "res[0][5]=a6", "parent": 653, "children": [662, 667, 668], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 29}}, {"id": 662, "type": "subscript_expression", "text": "res[0][5]", "parent": 661, "children": [663, 666], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 26}}, {"id": 663, "type": "subscript_expression", "text": "res[0]", "parent": 662, "children": [664, 665], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 23}}, {"id": 664, "type": "identifier", "text": "res", "parent": 663, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 20}}, {"id": 665, "type": "number_literal", "text": "0", "parent": 663, "children": [], "start_point": {"row": 87, "column": 21}, "end_point": {"row": 87, "column": 22}}, {"id": 666, "type": "number_literal", "text": "5", "parent": 662, "children": [], "start_point": {"row": 87, "column": 24}, "end_point": {"row": 87, "column": 25}}, {"id": 667, "type": "=", "text": "=", "parent": 661, "children": [], "start_point": {"row": 87, "column": 26}, "end_point": {"row": 87, "column": 27}}, {"id": 668, "type": "identifier", "text": "a6", "parent": 661, "children": [], "start_point": {"row": 87, "column": 27}, "end_point": {"row": 87, "column": 29}}, {"id": 669, "type": "assignment_expression", "text": "a6=(a1*a0)", "parent": 284, "children": [670, 671, 672], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 12}}, {"id": 670, "type": "identifier", "text": "a6", "parent": 669, "children": [], "start_point": {"row": 88, "column": 2}, "end_point": {"row": 88, "column": 4}}, {"id": 671, "type": "=", "text": "=", "parent": 669, "children": [], "start_point": {"row": 88, "column": 4}, "end_point": {"row": 88, "column": 5}}, {"id": 672, "type": "parenthesized_expression", "text": "(a1*a0)", "parent": 669, "children": [673], "start_point": {"row": 88, "column": 5}, "end_point": {"row": 88, "column": 12}}, {"id": 673, "type": "binary_expression", "text": "a1*a0", "parent": 672, "children": [674, 675, 676], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 11}}, {"id": 674, "type": "identifier", "text": "a1", "parent": 673, "children": [], "start_point": {"row": 88, "column": 6}, "end_point": {"row": 88, "column": 8}}, {"id": 675, "type": "*", "text": "*", "parent": 673, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 9}}, {"id": 676, "type": "identifier", "text": "a0", "parent": 673, "children": [], "start_point": {"row": 88, "column": 9}, "end_point": {"row": 88, "column": 11}}, {"id": 677, "type": "assignment_expression", "text": "a6=(a4-a6)", "parent": 284, "children": [678, 679, 680], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 12}}, {"id": 678, "type": "identifier", "text": "a6", "parent": 677, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 4}}, {"id": 679, "type": "=", "text": "=", "parent": 677, "children": [], "start_point": {"row": 89, "column": 4}, "end_point": {"row": 89, "column": 5}}, {"id": 680, "type": "parenthesized_expression", "text": "(a4-a6)", "parent": 677, "children": [681], "start_point": {"row": 89, "column": 5}, "end_point": {"row": 89, "column": 12}}, {"id": 681, "type": "binary_expression", "text": "a4-a6", "parent": 680, "children": [682, 683, 684], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 11}}, {"id": 682, "type": "identifier", "text": "a4", "parent": 681, "children": [], "start_point": {"row": 89, "column": 6}, "end_point": {"row": 89, "column": 8}}, {"id": 683, "type": "-", "text": "-", "parent": 681, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 9}}, {"id": 684, "type": "identifier", "text": "a6", "parent": 681, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 11}}, {"id": 685, "type": "assignment_expression", "text": "a8=arg[0] ? arg[0][0] : 0", "parent": 284, "children": [686, 687, 688], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 27}}, {"id": 686, "type": "identifier", "text": "a8", "parent": 685, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 4}}, {"id": 687, "type": "=", "text": "=", "parent": 685, "children": [], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 90, "column": 5}}, {"id": 688, "type": "conditional_expression", "text": "arg[0] ? arg[0][0] : 0", "parent": 685, "children": [689, 692, 693, 698], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 27}}, {"id": 689, "type": "subscript_expression", "text": "arg[0]", "parent": 688, "children": [690, 691], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 11}}, {"id": 690, "type": "identifier", "text": "arg", "parent": 689, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 8}}, {"id": 691, "type": "number_literal", "text": "0", "parent": 689, "children": [], "start_point": {"row": 90, "column": 9}, "end_point": {"row": 90, "column": 10}}, {"id": 692, "type": "?", "text": "?", "parent": 688, "children": [], "start_point": {"row": 90, "column": 12}, "end_point": {"row": 90, "column": 13}}, {"id": 693, "type": "subscript_expression", "text": "arg[0][0]", "parent": 688, "children": [694, 697], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 23}}, {"id": 694, "type": "subscript_expression", "text": "arg[0]", "parent": 693, "children": [695, 696], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 20}}, {"id": 695, "type": "identifier", "text": "arg", "parent": 694, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 17}}, {"id": 696, "type": "number_literal", "text": "0", "parent": 694, "children": [], "start_point": {"row": 90, "column": 18}, "end_point": {"row": 90, "column": 19}}, {"id": 697, "type": "number_literal", "text": "0", "parent": 693, "children": [], "start_point": {"row": 90, "column": 21}, "end_point": {"row": 90, "column": 22}}, {"id": 698, "type": "number_literal", "text": "0", "parent": 688, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 27}}, {"id": 699, "type": "assignment_expression", "text": "a9=(a8*a5)", "parent": 284, "children": [700, 701, 702], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 12}}, {"id": 700, "type": "identifier", "text": "a9", "parent": 699, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 4}}, {"id": 701, "type": "=", "text": "=", "parent": 699, "children": [], "start_point": {"row": 91, "column": 4}, "end_point": {"row": 91, "column": 5}}, {"id": 702, "type": "parenthesized_expression", "text": "(a8*a5)", "parent": 699, "children": [703], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 12}}, {"id": 703, "type": "binary_expression", "text": "a8*a5", "parent": 702, "children": [704, 705, 706], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 11}}, {"id": 704, "type": "identifier", "text": "a8", "parent": 703, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 8}}, {"id": 705, "type": "*", "text": "*", "parent": 703, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 9}}, {"id": 706, "type": "identifier", "text": "a5", "parent": 703, "children": [], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 11}}, {"id": 707, "type": "assignment_expression", "text": "a6=(a6-a9)", "parent": 284, "children": [708, 709, 710], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 12}}, {"id": 708, "type": "identifier", "text": "a6", "parent": 707, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 4}}, {"id": 709, "type": "=", "text": "=", "parent": 707, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 5}}, {"id": 710, "type": "parenthesized_expression", "text": "(a6-a9)", "parent": 707, "children": [711], "start_point": {"row": 92, "column": 5}, "end_point": {"row": 92, "column": 12}}, {"id": 711, "type": "binary_expression", "text": "a6-a9", "parent": 710, "children": [712, 713, 714], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 11}}, {"id": 712, "type": "identifier", "text": "a6", "parent": 711, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 8}}, {"id": 713, "type": "-", "text": "-", "parent": 711, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 9}}, {"id": 714, "type": "identifier", "text": "a9", "parent": 711, "children": [], "start_point": {"row": 92, "column": 9}, "end_point": {"row": 92, "column": 11}}, {"id": 715, "type": "if_statement", "text": "if (res[0]!=0) res[0][6]=a6;", "parent": 284, "children": [716], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 30}}, {"id": 716, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 715, "children": [717], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 16}}, {"id": 717, "type": "binary_expression", "text": "res[0]!=0", "parent": 716, "children": [718, 721, 722], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 15}}, {"id": 718, "type": "subscript_expression", "text": "res[0]", "parent": 717, "children": [719, 720], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 12}}, {"id": 719, "type": "identifier", "text": "res", "parent": 718, "children": [], "start_point": {"row": 93, "column": 6}, "end_point": {"row": 93, "column": 9}}, {"id": 720, "type": "number_literal", "text": "0", "parent": 718, "children": [], "start_point": {"row": 93, "column": 10}, "end_point": {"row": 93, "column": 11}}, {"id": 721, "type": "!=", "text": "!=", "parent": 717, "children": [], "start_point": {"row": 93, "column": 12}, "end_point": {"row": 93, "column": 14}}, {"id": 722, "type": "number_literal", "text": "0", "parent": 717, "children": [], "start_point": {"row": 93, "column": 14}, "end_point": {"row": 93, "column": 15}}, {"id": 723, "type": "assignment_expression", "text": "res[0][6]=a6", "parent": 715, "children": [724, 729, 730], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 29}}, {"id": 724, "type": "subscript_expression", "text": "res[0][6]", "parent": 723, "children": [725, 728], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 26}}, {"id": 725, "type": "subscript_expression", "text": "res[0]", "parent": 724, "children": [726, 727], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 23}}, {"id": 726, "type": "identifier", "text": "res", "parent": 725, "children": [], "start_point": {"row": 93, "column": 17}, "end_point": {"row": 93, "column": 20}}, {"id": 727, "type": "number_literal", "text": "0", "parent": 725, "children": [], "start_point": {"row": 93, "column": 21}, "end_point": {"row": 93, "column": 22}}, {"id": 728, "type": "number_literal", "text": "6", "parent": 724, "children": [], "start_point": {"row": 93, "column": 24}, "end_point": {"row": 93, "column": 25}}, {"id": 729, "type": "=", "text": "=", "parent": 723, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 27}}, {"id": 730, "type": "identifier", "text": "a6", "parent": 723, "children": [], "start_point": {"row": 93, "column": 27}, "end_point": {"row": 93, "column": 29}}, {"id": 731, "type": "assignment_expression", "text": "a6=1.0000000000000001e-01", "parent": 284, "children": [732, 733, 734], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 27}}, {"id": 732, "type": "identifier", "text": "a6", "parent": 731, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 4}}, {"id": 733, "type": "=", "text": "=", "parent": 731, "children": [], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 5}}, {"id": 734, "type": "number_literal", "text": "1.0000000000000001e-01", "parent": 731, "children": [], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 27}}, {"id": 735, "type": "assignment_expression", "text": "a6=(a6*a5)", "parent": 284, "children": [736, 737, 738], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 12}}, {"id": 736, "type": "identifier", "text": "a6", "parent": 735, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 4}}, {"id": 737, "type": "=", "text": "=", "parent": 735, "children": [], "start_point": {"row": 95, "column": 4}, "end_point": {"row": 95, "column": 5}}, {"id": 738, "type": "parenthesized_expression", "text": "(a6*a5)", "parent": 735, "children": [739], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 12}}, {"id": 739, "type": "binary_expression", "text": "a6*a5", "parent": 738, "children": [740, 741, 742], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 11}}, {"id": 740, "type": "identifier", "text": "a6", "parent": 739, "children": [], "start_point": {"row": 95, "column": 6}, "end_point": {"row": 95, "column": 8}}, {"id": 741, "type": "*", "text": "*", "parent": 739, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 9}}, {"id": 742, "type": "identifier", "text": "a5", "parent": 739, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 11}}, {"id": 743, "type": "assignment_expression", "text": "a9=3.5000000000000000e+00", "parent": 284, "children": [744, 745, 746], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 27}}, {"id": 744, "type": "identifier", "text": "a9", "parent": 743, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 4}}, {"id": 745, "type": "=", "text": "=", "parent": 743, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 5}}, {"id": 746, "type": "number_literal", "text": "3.5000000000000000e+00", "parent": 743, "children": [], "start_point": {"row": 96, "column": 5}, "end_point": {"row": 96, "column": 27}}, {"id": 747, "type": "assignment_expression", "text": "a6=(a6-a9)", "parent": 284, "children": [748, 749, 750], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 12}}, {"id": 748, "type": "identifier", "text": "a6", "parent": 747, "children": [], "start_point": {"row": 97, "column": 2}, "end_point": {"row": 97, "column": 4}}, {"id": 749, "type": "=", "text": "=", "parent": 747, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 5}}, {"id": 750, "type": "parenthesized_expression", "text": "(a6-a9)", "parent": 747, "children": [751], "start_point": {"row": 97, "column": 5}, "end_point": {"row": 97, "column": 12}}, {"id": 751, "type": "binary_expression", "text": "a6-a9", "parent": 750, "children": [752, 753, 754], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 11}}, {"id": 752, "type": "identifier", "text": "a6", "parent": 751, "children": [], "start_point": {"row": 97, "column": 6}, "end_point": {"row": 97, "column": 8}}, {"id": 753, "type": "-", "text": "-", "parent": 751, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 9}}, {"id": 754, "type": "identifier", "text": "a9", "parent": 751, "children": [], "start_point": {"row": 97, "column": 9}, "end_point": {"row": 97, "column": 11}}, {"id": 755, "type": "assignment_expression", "text": "a9=arg[3] ? arg[3][3] : 0", "parent": 284, "children": [756, 757, 758], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 27}}, {"id": 756, "type": "identifier", "text": "a9", "parent": 755, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 4}}, {"id": 757, "type": "=", "text": "=", "parent": 755, "children": [], "start_point": {"row": 98, "column": 4}, "end_point": {"row": 98, "column": 5}}, {"id": 758, "type": "conditional_expression", "text": "arg[3] ? arg[3][3] : 0", "parent": 755, "children": [759, 762, 763, 768], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 27}}, {"id": 759, "type": "subscript_expression", "text": "arg[3]", "parent": 758, "children": [760, 761], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 11}}, {"id": 760, "type": "identifier", "text": "arg", "parent": 759, "children": [], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 8}}, {"id": 761, "type": "number_literal", "text": "3", "parent": 759, "children": [], "start_point": {"row": 98, "column": 9}, "end_point": {"row": 98, "column": 10}}, {"id": 762, "type": "?", "text": "?", "parent": 758, "children": [], "start_point": {"row": 98, "column": 12}, "end_point": {"row": 98, "column": 13}}, {"id": 763, "type": "subscript_expression", "text": "arg[3][3]", "parent": 758, "children": [764, 767], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 23}}, {"id": 764, "type": "subscript_expression", "text": "arg[3]", "parent": 763, "children": [765, 766], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 20}}, {"id": 765, "type": "identifier", "text": "arg", "parent": 764, "children": [], "start_point": {"row": 98, "column": 14}, "end_point": {"row": 98, "column": 17}}, {"id": 766, "type": "number_literal", "text": "3", "parent": 764, "children": [], "start_point": {"row": 98, "column": 18}, "end_point": {"row": 98, "column": 19}}, {"id": 767, "type": "number_literal", "text": "3", "parent": 763, "children": [], "start_point": {"row": 98, "column": 21}, "end_point": {"row": 98, "column": 22}}, {"id": 768, "type": "number_literal", "text": "0", "parent": 758, "children": [], "start_point": {"row": 98, "column": 26}, "end_point": {"row": 98, "column": 27}}, {"id": 769, "type": "assignment_expression", "text": "a10=arg[2] ? arg[2][0] : 0", "parent": 284, "children": [770, 771, 772], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 28}}, {"id": 770, "type": "identifier", "text": "a10", "parent": 769, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 5}}, {"id": 771, "type": "=", "text": "=", "parent": 769, "children": [], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 6}}, {"id": 772, "type": "conditional_expression", "text": "arg[2] ? arg[2][0] : 0", "parent": 769, "children": [773, 776, 777, 782], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 28}}, {"id": 773, "type": "subscript_expression", "text": "arg[2]", "parent": 772, "children": [774, 775], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 12}}, {"id": 774, "type": "identifier", "text": "arg", "parent": 773, "children": [], "start_point": {"row": 99, "column": 6}, "end_point": {"row": 99, "column": 9}}, {"id": 775, "type": "number_literal", "text": "2", "parent": 773, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 11}}, {"id": 776, "type": "?", "text": "?", "parent": 772, "children": [], "start_point": {"row": 99, "column": 13}, "end_point": {"row": 99, "column": 14}}, {"id": 777, "type": "subscript_expression", "text": "arg[2][0]", "parent": 772, "children": [778, 781], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 24}}, {"id": 778, "type": "subscript_expression", "text": "arg[2]", "parent": 777, "children": [779, 780], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 21}}, {"id": 779, "type": "identifier", "text": "arg", "parent": 778, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 18}}, {"id": 780, "type": "number_literal", "text": "2", "parent": 778, "children": [], "start_point": {"row": 99, "column": 19}, "end_point": {"row": 99, "column": 20}}, {"id": 781, "type": "number_literal", "text": "0", "parent": 777, "children": [], "start_point": {"row": 99, "column": 22}, "end_point": {"row": 99, "column": 23}}, {"id": 782, "type": "number_literal", "text": "0", "parent": 772, "children": [], "start_point": {"row": 99, "column": 27}, "end_point": {"row": 99, "column": 28}}, {"id": 783, "type": "assignment_expression", "text": "a11=(a9+a10)", "parent": 284, "children": [784, 785, 786], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 14}}, {"id": 784, "type": "identifier", "text": "a11", "parent": 783, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 5}}, {"id": 785, "type": "=", "text": "=", "parent": 783, "children": [], "start_point": {"row": 100, "column": 5}, "end_point": {"row": 100, "column": 6}}, {"id": 786, "type": "parenthesized_expression", "text": "(a9+a10)", "parent": 783, "children": [787], "start_point": {"row": 100, "column": 6}, "end_point": {"row": 100, "column": 14}}, {"id": 787, "type": "binary_expression", "text": "a9+a10", "parent": 786, "children": [788, 789, 790], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 13}}, {"id": 788, "type": "identifier", "text": "a9", "parent": 787, "children": [], "start_point": {"row": 100, "column": 7}, "end_point": {"row": 100, "column": 9}}, {"id": 789, "type": "+", "text": "+", "parent": 787, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 10}}, {"id": 790, "type": "identifier", "text": "a10", "parent": 787, "children": [], "start_point": {"row": 100, "column": 10}, "end_point": {"row": 100, "column": 13}}, {"id": 791, "type": "assignment_expression", "text": "a12=(a11*a7)", "parent": 284, "children": [792, 793, 794], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 14}}, {"id": 792, "type": "identifier", "text": "a12", "parent": 791, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 5}}, {"id": 793, "type": "=", "text": "=", "parent": 791, "children": [], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 6}}, {"id": 794, "type": "parenthesized_expression", "text": "(a11*a7)", "parent": 791, "children": [795], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 14}}, {"id": 795, "type": "binary_expression", "text": "a11*a7", "parent": 794, "children": [796, 797, 798], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 13}}, {"id": 796, "type": "identifier", "text": "a11", "parent": 795, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 10}}, {"id": 797, "type": "*", "text": "*", "parent": 795, "children": [], "start_point": {"row": 101, "column": 10}, "end_point": {"row": 101, "column": 11}}, {"id": 798, "type": "identifier", "text": "a7", "parent": 795, "children": [], "start_point": {"row": 101, "column": 11}, "end_point": {"row": 101, "column": 13}}, {"id": 799, "type": "assignment_expression", "text": "a6=(a6-a12)", "parent": 284, "children": [800, 801, 802], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 13}}, {"id": 800, "type": "identifier", "text": "a6", "parent": 799, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 4}}, {"id": 801, "type": "=", "text": "=", "parent": 799, "children": [], "start_point": {"row": 102, "column": 4}, "end_point": {"row": 102, "column": 5}}, {"id": 802, "type": "parenthesized_expression", "text": "(a6-a12)", "parent": 799, "children": [803], "start_point": {"row": 102, "column": 5}, "end_point": {"row": 102, "column": 13}}, {"id": 803, "type": "binary_expression", "text": "a6-a12", "parent": 802, "children": [804, 805, 806], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 12}}, {"id": 804, "type": "identifier", "text": "a6", "parent": 803, "children": [], "start_point": {"row": 102, "column": 6}, "end_point": {"row": 102, "column": 8}}, {"id": 805, "type": "-", "text": "-", "parent": 803, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 9}}, {"id": 806, "type": "identifier", "text": "a12", "parent": 803, "children": [], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 12}}, {"id": 807, "type": "assignment_expression", "text": "a12=arg[3] ? arg[3][4] : 0", "parent": 284, "children": [808, 809, 810], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 28}}, {"id": 808, "type": "identifier", "text": "a12", "parent": 807, "children": [], "start_point": {"row": 103, "column": 2}, "end_point": {"row": 103, "column": 5}}, {"id": 809, "type": "=", "text": "=", "parent": 807, "children": [], "start_point": {"row": 103, "column": 5}, "end_point": {"row": 103, "column": 6}}, {"id": 810, "type": "conditional_expression", "text": "arg[3] ? arg[3][4] : 0", "parent": 807, "children": [811, 814, 815, 820], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 28}}, {"id": 811, "type": "subscript_expression", "text": "arg[3]", "parent": 810, "children": [812, 813], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 12}}, {"id": 812, "type": "identifier", "text": "arg", "parent": 811, "children": [], "start_point": {"row": 103, "column": 6}, "end_point": {"row": 103, "column": 9}}, {"id": 813, "type": "number_literal", "text": "3", "parent": 811, "children": [], "start_point": {"row": 103, "column": 10}, "end_point": {"row": 103, "column": 11}}, {"id": 814, "type": "?", "text": "?", "parent": 810, "children": [], "start_point": {"row": 103, "column": 13}, "end_point": {"row": 103, "column": 14}}, {"id": 815, "type": "subscript_expression", "text": "arg[3][4]", "parent": 810, "children": [816, 819], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 24}}, {"id": 816, "type": "subscript_expression", "text": "arg[3]", "parent": 815, "children": [817, 818], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 21}}, {"id": 817, "type": "identifier", "text": "arg", "parent": 816, "children": [], "start_point": {"row": 103, "column": 15}, "end_point": {"row": 103, "column": 18}}, {"id": 818, "type": "number_literal", "text": "3", "parent": 816, "children": [], "start_point": {"row": 103, "column": 19}, "end_point": {"row": 103, "column": 20}}, {"id": 819, "type": "number_literal", "text": "4", "parent": 815, "children": [], "start_point": {"row": 103, "column": 22}, "end_point": {"row": 103, "column": 23}}, {"id": 820, "type": "number_literal", "text": "0", "parent": 810, "children": [], "start_point": {"row": 103, "column": 27}, "end_point": {"row": 103, "column": 28}}, {"id": 821, "type": "assignment_expression", "text": "a8=(a12*a8)", "parent": 284, "children": [822, 823, 824], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 13}}, {"id": 822, "type": "identifier", "text": "a8", "parent": 821, "children": [], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 4}}, {"id": 823, "type": "=", "text": "=", "parent": 821, "children": [], "start_point": {"row": 104, "column": 4}, "end_point": {"row": 104, "column": 5}}, {"id": 824, "type": "parenthesized_expression", "text": "(a12*a8)", "parent": 821, "children": [825], "start_point": {"row": 104, "column": 5}, "end_point": {"row": 104, "column": 13}}, {"id": 825, "type": "binary_expression", "text": "a12*a8", "parent": 824, "children": [826, 827, 828], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 12}}, {"id": 826, "type": "identifier", "text": "a12", "parent": 825, "children": [], "start_point": {"row": 104, "column": 6}, "end_point": {"row": 104, "column": 9}}, {"id": 827, "type": "*", "text": "*", "parent": 825, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 10}}, {"id": 828, "type": "identifier", "text": "a8", "parent": 825, "children": [], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 12}}, {"id": 829, "type": "assignment_expression", "text": "a6=(a6+a8)", "parent": 284, "children": [830, 831, 832], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 12}}, {"id": 830, "type": "identifier", "text": "a6", "parent": 829, "children": [], "start_point": {"row": 105, "column": 2}, "end_point": {"row": 105, "column": 4}}, {"id": 831, "type": "=", "text": "=", "parent": 829, "children": [], "start_point": {"row": 105, "column": 4}, "end_point": {"row": 105, "column": 5}}, {"id": 832, "type": "parenthesized_expression", "text": "(a6+a8)", "parent": 829, "children": [833], "start_point": {"row": 105, "column": 5}, "end_point": {"row": 105, "column": 12}}, {"id": 833, "type": "binary_expression", "text": "a6+a8", "parent": 832, "children": [834, 835, 836], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 11}}, {"id": 834, "type": "identifier", "text": "a6", "parent": 833, "children": [], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 8}}, {"id": 835, "type": "+", "text": "+", "parent": 833, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 9}}, {"id": 836, "type": "identifier", "text": "a8", "parent": 833, "children": [], "start_point": {"row": 105, "column": 9}, "end_point": {"row": 105, "column": 11}}, {"id": 837, "type": "if_statement", "text": "if (res[0]!=0) res[0][7]=a6;", "parent": 284, "children": [838], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 106, "column": 30}}, {"id": 838, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 837, "children": [839], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 16}}, {"id": 839, "type": "binary_expression", "text": "res[0]!=0", "parent": 838, "children": [840, 843, 844], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 15}}, {"id": 840, "type": "subscript_expression", "text": "res[0]", "parent": 839, "children": [841, 842], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 12}}, {"id": 841, "type": "identifier", "text": "res", "parent": 840, "children": [], "start_point": {"row": 106, "column": 6}, "end_point": {"row": 106, "column": 9}}, {"id": 842, "type": "number_literal", "text": "0", "parent": 840, "children": [], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 11}}, {"id": 843, "type": "!=", "text": "!=", "parent": 839, "children": [], "start_point": {"row": 106, "column": 12}, "end_point": {"row": 106, "column": 14}}, {"id": 844, "type": "number_literal", "text": "0", "parent": 839, "children": [], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 15}}, {"id": 845, "type": "assignment_expression", "text": "res[0][7]=a6", "parent": 837, "children": [846, 851, 852], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 29}}, {"id": 846, "type": "subscript_expression", "text": "res[0][7]", "parent": 845, "children": [847, 850], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 26}}, {"id": 847, "type": "subscript_expression", "text": "res[0]", "parent": 846, "children": [848, 849], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 23}}, {"id": 848, "type": "identifier", "text": "res", "parent": 847, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 20}}, {"id": 849, "type": "number_literal", "text": "0", "parent": 847, "children": [], "start_point": {"row": 106, "column": 21}, "end_point": {"row": 106, "column": 22}}, {"id": 850, "type": "number_literal", "text": "7", "parent": 846, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 25}}, {"id": 851, "type": "=", "text": "=", "parent": 845, "children": [], "start_point": {"row": 106, "column": 26}, "end_point": {"row": 106, "column": 27}}, {"id": 852, "type": "identifier", "text": "a6", "parent": 845, "children": [], "start_point": {"row": 106, "column": 27}, "end_point": {"row": 106, "column": 29}}, {"id": 853, "type": "assignment_expression", "text": "a6=2.", "parent": 284, "children": [854, 855, 856], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 7}}, {"id": 854, "type": "identifier", "text": "a6", "parent": 853, "children": [], "start_point": {"row": 107, "column": 2}, "end_point": {"row": 107, "column": 4}}, {"id": 855, "type": "=", "text": "=", "parent": 853, "children": [], "start_point": {"row": 107, "column": 4}, "end_point": {"row": 107, "column": 5}}, {"id": 856, "type": "number_literal", "text": "2.", "parent": 853, "children": [], "start_point": {"row": 107, "column": 5}, "end_point": {"row": 107, "column": 7}}, {"id": 857, "type": "assignment_expression", "text": "a3=(a6*a3)", "parent": 284, "children": [858, 859, 860], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 12}}, {"id": 858, "type": "identifier", "text": "a3", "parent": 857, "children": [], "start_point": {"row": 108, "column": 2}, "end_point": {"row": 108, "column": 4}}, {"id": 859, "type": "=", "text": "=", "parent": 857, "children": [], "start_point": {"row": 108, "column": 4}, "end_point": {"row": 108, "column": 5}}, {"id": 860, "type": "parenthesized_expression", "text": "(a6*a3)", "parent": 857, "children": [861], "start_point": {"row": 108, "column": 5}, "end_point": {"row": 108, "column": 12}}, {"id": 861, "type": "binary_expression", "text": "a6*a3", "parent": 860, "children": [862, 863, 864], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 11}}, {"id": 862, "type": "identifier", "text": "a6", "parent": 861, "children": [], "start_point": {"row": 108, "column": 6}, "end_point": {"row": 108, "column": 8}}, {"id": 863, "type": "*", "text": "*", "parent": 861, "children": [], "start_point": {"row": 108, "column": 8}, "end_point": {"row": 108, "column": 9}}, {"id": 864, "type": "identifier", "text": "a3", "parent": 861, "children": [], "start_point": {"row": 108, "column": 9}, "end_point": {"row": 108, "column": 11}}, {"id": 865, "type": "assignment_expression", "text": "a9=(a9+a10)", "parent": 284, "children": [866, 867, 868], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 13}}, {"id": 866, "type": "identifier", "text": "a9", "parent": 865, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 4}}, {"id": 867, "type": "=", "text": "=", "parent": 865, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 5}}, {"id": 868, "type": "parenthesized_expression", "text": "(a9+a10)", "parent": 865, "children": [869], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 13}}, {"id": 869, "type": "binary_expression", "text": "a9+a10", "parent": 868, "children": [870, 871, 872], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 12}}, {"id": 870, "type": "identifier", "text": "a9", "parent": 869, "children": [], "start_point": {"row": 109, "column": 6}, "end_point": {"row": 109, "column": 8}}, {"id": 871, "type": "+", "text": "+", "parent": 869, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 9}}, {"id": 872, "type": "identifier", "text": "a10", "parent": 869, "children": [], "start_point": {"row": 109, "column": 9}, "end_point": {"row": 109, "column": 12}}, {"id": 873, "type": "assignment_expression", "text": "a3=(a3-a9)", "parent": 284, "children": [874, 875, 876], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 12}}, {"id": 874, "type": "identifier", "text": "a3", "parent": 873, "children": [], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 110, "column": 4}}, {"id": 875, "type": "=", "text": "=", "parent": 873, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 5}}, {"id": 876, "type": "parenthesized_expression", "text": "(a3-a9)", "parent": 873, "children": [877], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 12}}, {"id": 877, "type": "binary_expression", "text": "a3-a9", "parent": 876, "children": [878, 879, 880], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 11}}, {"id": 878, "type": "identifier", "text": "a3", "parent": 877, "children": [], "start_point": {"row": 110, "column": 6}, "end_point": {"row": 110, "column": 8}}, {"id": 879, "type": "-", "text": "-", "parent": 877, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 9}}, {"id": 880, "type": "identifier", "text": "a9", "parent": 877, "children": [], "start_point": {"row": 110, "column": 9}, "end_point": {"row": 110, "column": 11}}, {"id": 881, "type": "if_statement", "text": "if (res[0]!=0) res[0][8]=a3;", "parent": 284, "children": [882], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 30}}, {"id": 882, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 881, "children": [883], "start_point": {"row": 111, "column": 5}, "end_point": {"row": 111, "column": 16}}, {"id": 883, "type": "binary_expression", "text": "res[0]!=0", "parent": 882, "children": [884, 887, 888], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 15}}, {"id": 884, "type": "subscript_expression", "text": "res[0]", "parent": 883, "children": [885, 886], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 12}}, {"id": 885, "type": "identifier", "text": "res", "parent": 884, "children": [], "start_point": {"row": 111, "column": 6}, "end_point": {"row": 111, "column": 9}}, {"id": 886, "type": "number_literal", "text": "0", "parent": 884, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 11}}, {"id": 887, "type": "!=", "text": "!=", "parent": 883, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 14}}, {"id": 888, "type": "number_literal", "text": "0", "parent": 883, "children": [], "start_point": {"row": 111, "column": 14}, "end_point": {"row": 111, "column": 15}}, {"id": 889, "type": "assignment_expression", "text": "res[0][8]=a3", "parent": 881, "children": [890, 895, 896], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 29}}, {"id": 890, "type": "subscript_expression", "text": "res[0][8]", "parent": 889, "children": [891, 894], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 26}}, {"id": 891, "type": "subscript_expression", "text": "res[0]", "parent": 890, "children": [892, 893], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 23}}, {"id": 892, "type": "identifier", "text": "res", "parent": 891, "children": [], "start_point": {"row": 111, "column": 17}, "end_point": {"row": 111, "column": 20}}, {"id": 893, "type": "number_literal", "text": "0", "parent": 891, "children": [], "start_point": {"row": 111, "column": 21}, "end_point": {"row": 111, "column": 22}}, {"id": 894, "type": "number_literal", "text": "8", "parent": 890, "children": [], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 25}}, {"id": 895, "type": "=", "text": "=", "parent": 889, "children": [], "start_point": {"row": 111, "column": 26}, "end_point": {"row": 111, "column": 27}}, {"id": 896, "type": "identifier", "text": "a3", "parent": 889, "children": [], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 29}}, {"id": 897, "type": "assignment_expression", "text": "a6=(a6*a4)", "parent": 284, "children": [898, 899, 900], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 12}}, {"id": 898, "type": "identifier", "text": "a6", "parent": 897, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 4}}, {"id": 899, "type": "=", "text": "=", "parent": 897, "children": [], "start_point": {"row": 112, "column": 4}, "end_point": {"row": 112, "column": 5}}, {"id": 900, "type": "parenthesized_expression", "text": "(a6*a4)", "parent": 897, "children": [901], "start_point": {"row": 112, "column": 5}, "end_point": {"row": 112, "column": 12}}, {"id": 901, "type": "binary_expression", "text": "a6*a4", "parent": 900, "children": [902, 903, 904], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 11}}, {"id": 902, "type": "identifier", "text": "a6", "parent": 901, "children": [], "start_point": {"row": 112, "column": 6}, "end_point": {"row": 112, "column": 8}}, {"id": 903, "type": "*", "text": "*", "parent": 901, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 9}}, {"id": 904, "type": "identifier", "text": "a4", "parent": 901, "children": [], "start_point": {"row": 112, "column": 9}, "end_point": {"row": 112, "column": 11}}, {"id": 905, "type": "assignment_expression", "text": "a4=1.9620000000000001e+01", "parent": 284, "children": [906, 907, 908], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 27}}, {"id": 906, "type": "identifier", "text": "a4", "parent": 905, "children": [], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 4}}, {"id": 907, "type": "=", "text": "=", "parent": 905, "children": [], "start_point": {"row": 113, "column": 4}, "end_point": {"row": 113, "column": 5}}, {"id": 908, "type": "number_literal", "text": "1.9620000000000001e+01", "parent": 905, "children": [], "start_point": {"row": 113, "column": 5}, "end_point": {"row": 113, "column": 27}}, {"id": 909, "type": "assignment_expression", "text": "a6=(a6+a4)", "parent": 284, "children": [910, 911, 912], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 12}}, {"id": 910, "type": "identifier", "text": "a6", "parent": 909, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 4}}, {"id": 911, "type": "=", "text": "=", "parent": 909, "children": [], "start_point": {"row": 114, "column": 4}, "end_point": {"row": 114, "column": 5}}, {"id": 912, "type": "parenthesized_expression", "text": "(a6+a4)", "parent": 909, "children": [913], "start_point": {"row": 114, "column": 5}, "end_point": {"row": 114, "column": 12}}, {"id": 913, "type": "binary_expression", "text": "a6+a4", "parent": 912, "children": [914, 915, 916], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 11}}, {"id": 914, "type": "identifier", "text": "a6", "parent": 913, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 8}}, {"id": 915, "type": "+", "text": "+", "parent": 913, "children": [], "start_point": {"row": 114, "column": 8}, "end_point": {"row": 114, "column": 9}}, {"id": 916, "type": "identifier", "text": "a4", "parent": 913, "children": [], "start_point": {"row": 114, "column": 9}, "end_point": {"row": 114, "column": 11}}, {"id": 917, "type": "assignment_expression", "text": "a6=(a6-a12)", "parent": 284, "children": [918, 919, 920], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 13}}, {"id": 918, "type": "identifier", "text": "a6", "parent": 917, "children": [], "start_point": {"row": 115, "column": 2}, "end_point": {"row": 115, "column": 4}}, {"id": 919, "type": "=", "text": "=", "parent": 917, "children": [], "start_point": {"row": 115, "column": 4}, "end_point": {"row": 115, "column": 5}}, {"id": 920, "type": "parenthesized_expression", "text": "(a6-a12)", "parent": 917, "children": [921], "start_point": {"row": 115, "column": 5}, "end_point": {"row": 115, "column": 13}}, {"id": 921, "type": "binary_expression", "text": "a6-a12", "parent": 920, "children": [922, 923, 924], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 12}}, {"id": 922, "type": "identifier", "text": "a6", "parent": 921, "children": [], "start_point": {"row": 115, "column": 6}, "end_point": {"row": 115, "column": 8}}, {"id": 923, "type": "-", "text": "-", "parent": 921, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 9}}, {"id": 924, "type": "identifier", "text": "a12", "parent": 921, "children": [], "start_point": {"row": 115, "column": 9}, "end_point": {"row": 115, "column": 12}}, {"id": 925, "type": "if_statement", "text": "if (res[0]!=0) res[0][9]=a6;", "parent": 284, "children": [926], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 116, "column": 30}}, {"id": 926, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 925, "children": [927], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 16}}, {"id": 927, "type": "binary_expression", "text": "res[0]!=0", "parent": 926, "children": [928, 931, 932], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 15}}, {"id": 928, "type": "subscript_expression", "text": "res[0]", "parent": 927, "children": [929, 930], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 12}}, {"id": 929, "type": "identifier", "text": "res", "parent": 928, "children": [], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 9}}, {"id": 930, "type": "number_literal", "text": "0", "parent": 928, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 11}}, {"id": 931, "type": "!=", "text": "!=", "parent": 927, "children": [], "start_point": {"row": 116, "column": 12}, "end_point": {"row": 116, "column": 14}}, {"id": 932, "type": "number_literal", "text": "0", "parent": 927, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 15}}, {"id": 933, "type": "assignment_expression", "text": "res[0][9]=a6", "parent": 925, "children": [934, 939, 940], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 29}}, {"id": 934, "type": "subscript_expression", "text": "res[0][9]", "parent": 933, "children": [935, 938], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 26}}, {"id": 935, "type": "subscript_expression", "text": "res[0]", "parent": 934, "children": [936, 937], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 23}}, {"id": 936, "type": "identifier", "text": "res", "parent": 935, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 20}}, {"id": 937, "type": "number_literal", "text": "0", "parent": 935, "children": [], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 22}}, {"id": 938, "type": "number_literal", "text": "9", "parent": 934, "children": [], "start_point": {"row": 116, "column": 24}, "end_point": {"row": 116, "column": 25}}, {"id": 939, "type": "=", "text": "=", "parent": 933, "children": [], "start_point": {"row": 116, "column": 26}, "end_point": {"row": 116, "column": 27}}, {"id": 940, "type": "identifier", "text": "a6", "parent": 933, "children": [], "start_point": {"row": 116, "column": 27}, "end_point": {"row": 116, "column": 29}}, {"id": 941, "type": "assignment_expression", "text": "a6=arg[1] ? arg[1][5] : 0", "parent": 284, "children": [942, 943, 944], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 27}}, {"id": 942, "type": "identifier", "text": "a6", "parent": 941, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 4}}, {"id": 943, "type": "=", "text": "=", "parent": 941, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 5}}, {"id": 944, "type": "conditional_expression", "text": "arg[1] ? arg[1][5] : 0", "parent": 941, "children": [945, 948, 949, 954], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 27}}, {"id": 945, "type": "subscript_expression", "text": "arg[1]", "parent": 944, "children": [946, 947], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 11}}, {"id": 946, "type": "identifier", "text": "arg", "parent": 945, "children": [], "start_point": {"row": 117, "column": 5}, "end_point": {"row": 117, "column": 8}}, {"id": 947, "type": "number_literal", "text": "1", "parent": 945, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 10}}, {"id": 948, "type": "?", "text": "?", "parent": 944, "children": [], "start_point": {"row": 117, "column": 12}, "end_point": {"row": 117, "column": 13}}, {"id": 949, "type": "subscript_expression", "text": "arg[1][5]", "parent": 944, "children": [950, 953], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 23}}, {"id": 950, "type": "subscript_expression", "text": "arg[1]", "parent": 949, "children": [951, 952], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 20}}, {"id": 951, "type": "identifier", "text": "arg", "parent": 950, "children": [], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 17}}, {"id": 952, "type": "number_literal", "text": "1", "parent": 950, "children": [], "start_point": {"row": 117, "column": 18}, "end_point": {"row": 117, "column": 19}}, {"id": 953, "type": "number_literal", "text": "5", "parent": 949, "children": [], "start_point": {"row": 117, "column": 21}, "end_point": {"row": 117, "column": 22}}, {"id": 954, "type": "number_literal", "text": "0", "parent": 944, "children": [], "start_point": {"row": 117, "column": 26}, "end_point": {"row": 117, "column": 27}}, {"id": 955, "type": "assignment_expression", "text": "a6=(a6-a0)", "parent": 284, "children": [956, 957, 958], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 12}}, {"id": 956, "type": "identifier", "text": "a6", "parent": 955, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 4}}, {"id": 957, "type": "=", "text": "=", "parent": 955, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 5}}, {"id": 958, "type": "parenthesized_expression", "text": "(a6-a0)", "parent": 955, "children": [959], "start_point": {"row": 118, "column": 5}, "end_point": {"row": 118, "column": 12}}, {"id": 959, "type": "binary_expression", "text": "a6-a0", "parent": 958, "children": [960, 961, 962], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 11}}, {"id": 960, "type": "identifier", "text": "a6", "parent": 959, "children": [], "start_point": {"row": 118, "column": 6}, "end_point": {"row": 118, "column": 8}}, {"id": 961, "type": "-", "text": "-", "parent": 959, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 9}}, {"id": 962, "type": "identifier", "text": "a0", "parent": 959, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 11}}, {"id": 963, "type": "if_statement", "text": "if (res[0]!=0) res[0][10]=a6;", "parent": 284, "children": [964], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 119, "column": 31}}, {"id": 964, "type": "parenthesized_expression", "text": "(res[0]!=0)", "parent": 963, "children": [965], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 16}}, {"id": 965, "type": "binary_expression", "text": "res[0]!=0", "parent": 964, "children": [966, 969, 970], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 15}}, {"id": 966, "type": "subscript_expression", "text": "res[0]", "parent": 965, "children": [967, 968], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 12}}, {"id": 967, "type": "identifier", "text": "res", "parent": 966, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 9}}, {"id": 968, "type": "number_literal", "text": "0", "parent": 966, "children": [], "start_point": {"row": 119, "column": 10}, "end_point": {"row": 119, "column": 11}}, {"id": 969, "type": "!=", "text": "!=", "parent": 965, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 14}}, {"id": 970, "type": "number_literal", "text": "0", "parent": 965, "children": [], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 15}}, {"id": 971, "type": "assignment_expression", "text": "res[0][10]=a6", "parent": 963, "children": [972, 977, 978], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 30}}, {"id": 972, "type": "subscript_expression", "text": "res[0][10]", "parent": 971, "children": [973, 976], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 27}}, {"id": 973, "type": "subscript_expression", "text": "res[0]", "parent": 972, "children": [974, 975], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 23}}, {"id": 974, "type": "identifier", "text": "res", "parent": 973, "children": [], "start_point": {"row": 119, "column": 17}, "end_point": {"row": 119, "column": 20}}, {"id": 975, "type": "number_literal", "text": "0", "parent": 973, "children": [], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 22}}, {"id": 976, "type": "number_literal", "text": "10", "parent": 972, "children": [], "start_point": {"row": 119, "column": 24}, "end_point": {"row": 119, "column": 26}}, {"id": 977, "type": "=", "text": "=", "parent": 971, "children": [], "start_point": {"row": 119, "column": 27}, "end_point": {"row": 119, "column": 28}}, {"id": 978, "type": "identifier", "text": "a6", "parent": 971, "children": [], "start_point": {"row": 119, "column": 28}, "end_point": {"row": 119, "column": 30}}, {"id": 979, "type": "assignment_expression", "text": "a6=(-a5)", "parent": 284, "children": [980, 981, 982], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 10}}, {"id": 980, "type": "identifier", "text": "a6", "parent": 979, "children": [], "start_point": {"row": 120, "column": 2}, "end_point": {"row": 120, "column": 4}}, {"id": 981, "type": "=", "text": "=", "parent": 979, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 5}}, {"id": 982, "type": "parenthesized_expression", "text": "(-a5)", "parent": 979, "children": [983], "start_point": {"row": 120, "column": 5}, "end_point": {"row": 120, "column": 10}}, {"id": 983, "type": "unary_expression", "text": "-a5", "parent": 982, "children": [984, 985], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 9}}, {"id": 984, "type": "-", "text": "-", "parent": 983, "children": [], "start_point": {"row": 120, "column": 6}, "end_point": {"row": 120, "column": 7}}, {"id": 985, "type": "identifier", "text": "a5", "parent": 983, "children": [], "start_point": {"row": 120, "column": 7}, "end_point": {"row": 120, "column": 9}}, {"id": 986, "type": "if_statement", "text": "if (res[1]!=0) res[1][0]=a6;", "parent": 284, "children": [987], "start_point": {"row": 121, "column": 2}, "end_point": {"row": 121, "column": 30}}, {"id": 987, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 986, "children": [988], "start_point": {"row": 121, "column": 5}, "end_point": {"row": 121, "column": 16}}, {"id": 988, "type": "binary_expression", "text": "res[1]!=0", "parent": 987, "children": [989, 992, 993], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 15}}, {"id": 989, "type": "subscript_expression", "text": "res[1]", "parent": 988, "children": [990, 991], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 12}}, {"id": 990, "type": "identifier", "text": "res", "parent": 989, "children": [], "start_point": {"row": 121, "column": 6}, "end_point": {"row": 121, "column": 9}}, {"id": 991, "type": "number_literal", "text": "1", "parent": 989, "children": [], "start_point": {"row": 121, "column": 10}, "end_point": {"row": 121, "column": 11}}, {"id": 992, "type": "!=", "text": "!=", "parent": 988, "children": [], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 14}}, {"id": 993, "type": "number_literal", "text": "0", "parent": 988, "children": [], "start_point": {"row": 121, "column": 14}, "end_point": {"row": 121, "column": 15}}, {"id": 994, "type": "assignment_expression", "text": "res[1][0]=a6", "parent": 986, "children": [995, 1000, 1001], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 29}}, {"id": 995, "type": "subscript_expression", "text": "res[1][0]", "parent": 994, "children": [996, 999], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 26}}, {"id": 996, "type": "subscript_expression", "text": "res[1]", "parent": 995, "children": [997, 998], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 23}}, {"id": 997, "type": "identifier", "text": "res", "parent": 996, "children": [], "start_point": {"row": 121, "column": 17}, "end_point": {"row": 121, "column": 20}}, {"id": 998, "type": "number_literal", "text": "1", "parent": 996, "children": [], "start_point": {"row": 121, "column": 21}, "end_point": {"row": 121, "column": 22}}, {"id": 999, "type": "number_literal", "text": "0", "parent": 995, "children": [], "start_point": {"row": 121, "column": 24}, "end_point": {"row": 121, "column": 25}}, {"id": 1000, "type": "=", "text": "=", "parent": 994, "children": [], "start_point": {"row": 121, "column": 26}, "end_point": {"row": 121, "column": 27}}, {"id": 1001, "type": "identifier", "text": "a6", "parent": 994, "children": [], "start_point": {"row": 121, "column": 27}, "end_point": {"row": 121, "column": 29}}, {"id": 1002, "type": "if_statement", "text": "if (res[1]!=0) res[1][1]=a12;", "parent": 284, "children": [1003], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 122, "column": 31}}, {"id": 1003, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1002, "children": [1004], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 16}}, {"id": 1004, "type": "binary_expression", "text": "res[1]!=0", "parent": 1003, "children": [1005, 1008, 1009], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 15}}, {"id": 1005, "type": "subscript_expression", "text": "res[1]", "parent": 1004, "children": [1006, 1007], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 12}}, {"id": 1006, "type": "identifier", "text": "res", "parent": 1005, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 9}}, {"id": 1007, "type": "number_literal", "text": "1", "parent": 1005, "children": [], "start_point": {"row": 122, "column": 10}, "end_point": {"row": 122, "column": 11}}, {"id": 1008, "type": "!=", "text": "!=", "parent": 1004, "children": [], "start_point": {"row": 122, "column": 12}, "end_point": {"row": 122, "column": 14}}, {"id": 1009, "type": "number_literal", "text": "0", "parent": 1004, "children": [], "start_point": {"row": 122, "column": 14}, "end_point": {"row": 122, "column": 15}}, {"id": 1010, "type": "assignment_expression", "text": "res[1][1]=a12", "parent": 1002, "children": [1011, 1016, 1017], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 30}}, {"id": 1011, "type": "subscript_expression", "text": "res[1][1]", "parent": 1010, "children": [1012, 1015], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 26}}, {"id": 1012, "type": "subscript_expression", "text": "res[1]", "parent": 1011, "children": [1013, 1014], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 23}}, {"id": 1013, "type": "identifier", "text": "res", "parent": 1012, "children": [], "start_point": {"row": 122, "column": 17}, "end_point": {"row": 122, "column": 20}}, {"id": 1014, "type": "number_literal", "text": "1", "parent": 1012, "children": [], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 22}}, {"id": 1015, "type": "number_literal", "text": "1", "parent": 1011, "children": [], "start_point": {"row": 122, "column": 24}, "end_point": {"row": 122, "column": 25}}, {"id": 1016, "type": "=", "text": "=", "parent": 1010, "children": [], "start_point": {"row": 122, "column": 26}, "end_point": {"row": 122, "column": 27}}, {"id": 1017, "type": "identifier", "text": "a12", "parent": 1010, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 30}}, {"id": 1018, "type": "if_statement", "text": "if (res[1]!=0) res[1][2]=a5;", "parent": 284, "children": [1019], "start_point": {"row": 123, "column": 2}, "end_point": {"row": 123, "column": 30}}, {"id": 1019, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1018, "children": [1020], "start_point": {"row": 123, "column": 5}, "end_point": {"row": 123, "column": 16}}, {"id": 1020, "type": "binary_expression", "text": "res[1]!=0", "parent": 1019, "children": [1021, 1024, 1025], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 15}}, {"id": 1021, "type": "subscript_expression", "text": "res[1]", "parent": 1020, "children": [1022, 1023], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 12}}, {"id": 1022, "type": "identifier", "text": "res", "parent": 1021, "children": [], "start_point": {"row": 123, "column": 6}, "end_point": {"row": 123, "column": 9}}, {"id": 1023, "type": "number_literal", "text": "1", "parent": 1021, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 11}}, {"id": 1024, "type": "!=", "text": "!=", "parent": 1020, "children": [], "start_point": {"row": 123, "column": 12}, "end_point": {"row": 123, "column": 14}}, {"id": 1025, "type": "number_literal", "text": "0", "parent": 1020, "children": [], "start_point": {"row": 123, "column": 14}, "end_point": {"row": 123, "column": 15}}, {"id": 1026, "type": "assignment_expression", "text": "res[1][2]=a5", "parent": 1018, "children": [1027, 1032, 1033], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 29}}, {"id": 1027, "type": "subscript_expression", "text": "res[1][2]", "parent": 1026, "children": [1028, 1031], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 26}}, {"id": 1028, "type": "subscript_expression", "text": "res[1]", "parent": 1027, "children": [1029, 1030], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 23}}, {"id": 1029, "type": "identifier", "text": "res", "parent": 1028, "children": [], "start_point": {"row": 123, "column": 17}, "end_point": {"row": 123, "column": 20}}, {"id": 1030, "type": "number_literal", "text": "1", "parent": 1028, "children": [], "start_point": {"row": 123, "column": 21}, "end_point": {"row": 123, "column": 22}}, {"id": 1031, "type": "number_literal", "text": "2", "parent": 1027, "children": [], "start_point": {"row": 123, "column": 24}, "end_point": {"row": 123, "column": 25}}, {"id": 1032, "type": "=", "text": "=", "parent": 1026, "children": [], "start_point": {"row": 123, "column": 26}, "end_point": {"row": 123, "column": 27}}, {"id": 1033, "type": "identifier", "text": "a5", "parent": 1026, "children": [], "start_point": {"row": 123, "column": 27}, "end_point": {"row": 123, "column": 29}}, {"id": 1034, "type": "assignment_expression", "text": "a11=(-a11)", "parent": 284, "children": [1035, 1036, 1037], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 12}}, {"id": 1035, "type": "identifier", "text": "a11", "parent": 1034, "children": [], "start_point": {"row": 124, "column": 2}, "end_point": {"row": 124, "column": 5}}, {"id": 1036, "type": "=", "text": "=", "parent": 1034, "children": [], "start_point": {"row": 124, "column": 5}, "end_point": {"row": 124, "column": 6}}, {"id": 1037, "type": "parenthesized_expression", "text": "(-a11)", "parent": 1034, "children": [1038], "start_point": {"row": 124, "column": 6}, "end_point": {"row": 124, "column": 12}}, {"id": 1038, "type": "unary_expression", "text": "-a11", "parent": 1037, "children": [1039, 1040], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 11}}, {"id": 1039, "type": "-", "text": "-", "parent": 1038, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 8}}, {"id": 1040, "type": "identifier", "text": "a11", "parent": 1038, "children": [], "start_point": {"row": 124, "column": 8}, "end_point": {"row": 124, "column": 11}}, {"id": 1041, "type": "if_statement", "text": "if (res[1]!=0) res[1][3]=a11;", "parent": 284, "children": [1042], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 125, "column": 31}}, {"id": 1042, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1041, "children": [1043], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 16}}, {"id": 1043, "type": "binary_expression", "text": "res[1]!=0", "parent": 1042, "children": [1044, 1047, 1048], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 15}}, {"id": 1044, "type": "subscript_expression", "text": "res[1]", "parent": 1043, "children": [1045, 1046], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 12}}, {"id": 1045, "type": "identifier", "text": "res", "parent": 1044, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 9}}, {"id": 1046, "type": "number_literal", "text": "1", "parent": 1044, "children": [], "start_point": {"row": 125, "column": 10}, "end_point": {"row": 125, "column": 11}}, {"id": 1047, "type": "!=", "text": "!=", "parent": 1043, "children": [], "start_point": {"row": 125, "column": 12}, "end_point": {"row": 125, "column": 14}}, {"id": 1048, "type": "number_literal", "text": "0", "parent": 1043, "children": [], "start_point": {"row": 125, "column": 14}, "end_point": {"row": 125, "column": 15}}, {"id": 1049, "type": "assignment_expression", "text": "res[1][3]=a11", "parent": 1041, "children": [1050, 1055, 1056], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 30}}, {"id": 1050, "type": "subscript_expression", "text": "res[1][3]", "parent": 1049, "children": [1051, 1054], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 26}}, {"id": 1051, "type": "subscript_expression", "text": "res[1]", "parent": 1050, "children": [1052, 1053], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 23}}, {"id": 1052, "type": "identifier", "text": "res", "parent": 1051, "children": [], "start_point": {"row": 125, "column": 17}, "end_point": {"row": 125, "column": 20}}, {"id": 1053, "type": "number_literal", "text": "1", "parent": 1051, "children": [], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 22}}, {"id": 1054, "type": "number_literal", "text": "3", "parent": 1050, "children": [], "start_point": {"row": 125, "column": 24}, "end_point": {"row": 125, "column": 25}}, {"id": 1055, "type": "=", "text": "=", "parent": 1049, "children": [], "start_point": {"row": 125, "column": 26}, "end_point": {"row": 125, "column": 27}}, {"id": 1056, "type": "identifier", "text": "a11", "parent": 1049, "children": [], "start_point": {"row": 125, "column": 27}, "end_point": {"row": 125, "column": 30}}, {"id": 1057, "type": "assignment_expression", "text": "a11=-1.", "parent": 284, "children": [1058, 1059, 1060], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 9}}, {"id": 1058, "type": "identifier", "text": "a11", "parent": 1057, "children": [], "start_point": {"row": 126, "column": 2}, "end_point": {"row": 126, "column": 5}}, {"id": 1059, "type": "=", "text": "=", "parent": 1057, "children": [], "start_point": {"row": 126, "column": 5}, "end_point": {"row": 126, "column": 6}}, {"id": 1060, "type": "number_literal", "text": "-1.", "parent": 1057, "children": [], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 9}}, {"id": 1061, "type": "if_statement", "text": "if (res[1]!=0) res[1][4]=a11;", "parent": 284, "children": [1062], "start_point": {"row": 127, "column": 2}, "end_point": {"row": 127, "column": 31}}, {"id": 1062, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1061, "children": [1063], "start_point": {"row": 127, "column": 5}, "end_point": {"row": 127, "column": 16}}, {"id": 1063, "type": "binary_expression", "text": "res[1]!=0", "parent": 1062, "children": [1064, 1067, 1068], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 15}}, {"id": 1064, "type": "subscript_expression", "text": "res[1]", "parent": 1063, "children": [1065, 1066], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 12}}, {"id": 1065, "type": "identifier", "text": "res", "parent": 1064, "children": [], "start_point": {"row": 127, "column": 6}, "end_point": {"row": 127, "column": 9}}, {"id": 1066, "type": "number_literal", "text": "1", "parent": 1064, "children": [], "start_point": {"row": 127, "column": 10}, "end_point": {"row": 127, "column": 11}}, {"id": 1067, "type": "!=", "text": "!=", "parent": 1063, "children": [], "start_point": {"row": 127, "column": 12}, "end_point": {"row": 127, "column": 14}}, {"id": 1068, "type": "number_literal", "text": "0", "parent": 1063, "children": [], "start_point": {"row": 127, "column": 14}, "end_point": {"row": 127, "column": 15}}, {"id": 1069, "type": "assignment_expression", "text": "res[1][4]=a11", "parent": 1061, "children": [1070, 1075, 1076], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 30}}, {"id": 1070, "type": "subscript_expression", "text": "res[1][4]", "parent": 1069, "children": [1071, 1074], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 26}}, {"id": 1071, "type": "subscript_expression", "text": "res[1]", "parent": 1070, "children": [1072, 1073], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 23}}, {"id": 1072, "type": "identifier", "text": "res", "parent": 1071, "children": [], "start_point": {"row": 127, "column": 17}, "end_point": {"row": 127, "column": 20}}, {"id": 1073, "type": "number_literal", "text": "1", "parent": 1071, "children": [], "start_point": {"row": 127, "column": 21}, "end_point": {"row": 127, "column": 22}}, {"id": 1074, "type": "number_literal", "text": "4", "parent": 1070, "children": [], "start_point": {"row": 127, "column": 24}, "end_point": {"row": 127, "column": 25}}, {"id": 1075, "type": "=", "text": "=", "parent": 1069, "children": [], "start_point": {"row": 127, "column": 26}, "end_point": {"row": 127, "column": 27}}, {"id": 1076, "type": "identifier", "text": "a11", "parent": 1069, "children": [], "start_point": {"row": 127, "column": 27}, "end_point": {"row": 127, "column": 30}}, {"id": 1077, "type": "assignment_expression", "text": "a5=(-a0)", "parent": 284, "children": [1078, 1079, 1080], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 10}}, {"id": 1078, "type": "identifier", "text": "a5", "parent": 1077, "children": [], "start_point": {"row": 128, "column": 2}, "end_point": {"row": 128, "column": 4}}, {"id": 1079, "type": "=", "text": "=", "parent": 1077, "children": [], "start_point": {"row": 128, "column": 4}, "end_point": {"row": 128, "column": 5}}, {"id": 1080, "type": "parenthesized_expression", "text": "(-a0)", "parent": 1077, "children": [1081], "start_point": {"row": 128, "column": 5}, "end_point": {"row": 128, "column": 10}}, {"id": 1081, "type": "unary_expression", "text": "-a0", "parent": 1080, "children": [1082, 1083], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 9}}, {"id": 1082, "type": "-", "text": "-", "parent": 1081, "children": [], "start_point": {"row": 128, "column": 6}, "end_point": {"row": 128, "column": 7}}, {"id": 1083, "type": "identifier", "text": "a0", "parent": 1081, "children": [], "start_point": {"row": 128, "column": 7}, "end_point": {"row": 128, "column": 9}}, {"id": 1084, "type": "if_statement", "text": "if (res[1]!=0) res[1][5]=a5;", "parent": 284, "children": [1085], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 30}}, {"id": 1085, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1084, "children": [1086], "start_point": {"row": 129, "column": 5}, "end_point": {"row": 129, "column": 16}}, {"id": 1086, "type": "binary_expression", "text": "res[1]!=0", "parent": 1085, "children": [1087, 1090, 1091], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 15}}, {"id": 1087, "type": "subscript_expression", "text": "res[1]", "parent": 1086, "children": [1088, 1089], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 12}}, {"id": 1088, "type": "identifier", "text": "res", "parent": 1087, "children": [], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 9}}, {"id": 1089, "type": "number_literal", "text": "1", "parent": 1087, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 11}}, {"id": 1090, "type": "!=", "text": "!=", "parent": 1086, "children": [], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 14}}, {"id": 1091, "type": "number_literal", "text": "0", "parent": 1086, "children": [], "start_point": {"row": 129, "column": 14}, "end_point": {"row": 129, "column": 15}}, {"id": 1092, "type": "assignment_expression", "text": "res[1][5]=a5", "parent": 1084, "children": [1093, 1098, 1099], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 29}}, {"id": 1093, "type": "subscript_expression", "text": "res[1][5]", "parent": 1092, "children": [1094, 1097], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 26}}, {"id": 1094, "type": "subscript_expression", "text": "res[1]", "parent": 1093, "children": [1095, 1096], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 23}}, {"id": 1095, "type": "identifier", "text": "res", "parent": 1094, "children": [], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 20}}, {"id": 1096, "type": "number_literal", "text": "1", "parent": 1094, "children": [], "start_point": {"row": 129, "column": 21}, "end_point": {"row": 129, "column": 22}}, {"id": 1097, "type": "number_literal", "text": "5", "parent": 1093, "children": [], "start_point": {"row": 129, "column": 24}, "end_point": {"row": 129, "column": 25}}, {"id": 1098, "type": "=", "text": "=", "parent": 1092, "children": [], "start_point": {"row": 129, "column": 26}, "end_point": {"row": 129, "column": 27}}, {"id": 1099, "type": "identifier", "text": "a5", "parent": 1092, "children": [], "start_point": {"row": 129, "column": 27}, "end_point": {"row": 129, "column": 29}}, {"id": 1100, "type": "if_statement", "text": "if (res[1]!=0) res[1][6]=a11;", "parent": 284, "children": [1101], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 31}}, {"id": 1101, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1100, "children": [1102], "start_point": {"row": 130, "column": 5}, "end_point": {"row": 130, "column": 16}}, {"id": 1102, "type": "binary_expression", "text": "res[1]!=0", "parent": 1101, "children": [1103, 1106, 1107], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 15}}, {"id": 1103, "type": "subscript_expression", "text": "res[1]", "parent": 1102, "children": [1104, 1105], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 12}}, {"id": 1104, "type": "identifier", "text": "res", "parent": 1103, "children": [], "start_point": {"row": 130, "column": 6}, "end_point": {"row": 130, "column": 9}}, {"id": 1105, "type": "number_literal", "text": "1", "parent": 1103, "children": [], "start_point": {"row": 130, "column": 10}, "end_point": {"row": 130, "column": 11}}, {"id": 1106, "type": "!=", "text": "!=", "parent": 1102, "children": [], "start_point": {"row": 130, "column": 12}, "end_point": {"row": 130, "column": 14}}, {"id": 1107, "type": "number_literal", "text": "0", "parent": 1102, "children": [], "start_point": {"row": 130, "column": 14}, "end_point": {"row": 130, "column": 15}}, {"id": 1108, "type": "assignment_expression", "text": "res[1][6]=a11", "parent": 1100, "children": [1109, 1114, 1115], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 30}}, {"id": 1109, "type": "subscript_expression", "text": "res[1][6]", "parent": 1108, "children": [1110, 1113], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 26}}, {"id": 1110, "type": "subscript_expression", "text": "res[1]", "parent": 1109, "children": [1111, 1112], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 23}}, {"id": 1111, "type": "identifier", "text": "res", "parent": 1110, "children": [], "start_point": {"row": 130, "column": 17}, "end_point": {"row": 130, "column": 20}}, {"id": 1112, "type": "number_literal", "text": "1", "parent": 1110, "children": [], "start_point": {"row": 130, "column": 21}, "end_point": {"row": 130, "column": 22}}, {"id": 1113, "type": "number_literal", "text": "6", "parent": 1109, "children": [], "start_point": {"row": 130, "column": 24}, "end_point": {"row": 130, "column": 25}}, {"id": 1114, "type": "=", "text": "=", "parent": 1108, "children": [], "start_point": {"row": 130, "column": 26}, "end_point": {"row": 130, "column": 27}}, {"id": 1115, "type": "identifier", "text": "a11", "parent": 1108, "children": [], "start_point": {"row": 130, "column": 27}, "end_point": {"row": 130, "column": 30}}, {"id": 1116, "type": "if_statement", "text": "if (res[1]!=0) res[1][7]=a0;", "parent": 284, "children": [1117], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 131, "column": 30}}, {"id": 1117, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1116, "children": [1118], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 16}}, {"id": 1118, "type": "binary_expression", "text": "res[1]!=0", "parent": 1117, "children": [1119, 1122, 1123], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 15}}, {"id": 1119, "type": "subscript_expression", "text": "res[1]", "parent": 1118, "children": [1120, 1121], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 12}}, {"id": 1120, "type": "identifier", "text": "res", "parent": 1119, "children": [], "start_point": {"row": 131, "column": 6}, "end_point": {"row": 131, "column": 9}}, {"id": 1121, "type": "number_literal", "text": "1", "parent": 1119, "children": [], "start_point": {"row": 131, "column": 10}, "end_point": {"row": 131, "column": 11}}, {"id": 1122, "type": "!=", "text": "!=", "parent": 1118, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 14}}, {"id": 1123, "type": "number_literal", "text": "0", "parent": 1118, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 15}}, {"id": 1124, "type": "assignment_expression", "text": "res[1][7]=a0", "parent": 1116, "children": [1125, 1130, 1131], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 29}}, {"id": 1125, "type": "subscript_expression", "text": "res[1][7]", "parent": 1124, "children": [1126, 1129], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 26}}, {"id": 1126, "type": "subscript_expression", "text": "res[1]", "parent": 1125, "children": [1127, 1128], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 23}}, {"id": 1127, "type": "identifier", "text": "res", "parent": 1126, "children": [], "start_point": {"row": 131, "column": 17}, "end_point": {"row": 131, "column": 20}}, {"id": 1128, "type": "number_literal", "text": "1", "parent": 1126, "children": [], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 22}}, {"id": 1129, "type": "number_literal", "text": "7", "parent": 1125, "children": [], "start_point": {"row": 131, "column": 24}, "end_point": {"row": 131, "column": 25}}, {"id": 1130, "type": "=", "text": "=", "parent": 1124, "children": [], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 131, "column": 27}}, {"id": 1131, "type": "identifier", "text": "a0", "parent": 1124, "children": [], "start_point": {"row": 131, "column": 27}, "end_point": {"row": 131, "column": 29}}, {"id": 1132, "type": "if_statement", "text": "if (res[1]!=0) res[1][8]=a2;", "parent": 284, "children": [1133], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 30}}, {"id": 1133, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1132, "children": [1134], "start_point": {"row": 132, "column": 5}, "end_point": {"row": 132, "column": 16}}, {"id": 1134, "type": "binary_expression", "text": "res[1]!=0", "parent": 1133, "children": [1135, 1138, 1139], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 15}}, {"id": 1135, "type": "subscript_expression", "text": "res[1]", "parent": 1134, "children": [1136, 1137], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 12}}, {"id": 1136, "type": "identifier", "text": "res", "parent": 1135, "children": [], "start_point": {"row": 132, "column": 6}, "end_point": {"row": 132, "column": 9}}, {"id": 1137, "type": "number_literal", "text": "1", "parent": 1135, "children": [], "start_point": {"row": 132, "column": 10}, "end_point": {"row": 132, "column": 11}}, {"id": 1138, "type": "!=", "text": "!=", "parent": 1134, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 14}}, {"id": 1139, "type": "number_literal", "text": "0", "parent": 1134, "children": [], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 15}}, {"id": 1140, "type": "assignment_expression", "text": "res[1][8]=a2", "parent": 1132, "children": [1141, 1146, 1147], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 29}}, {"id": 1141, "type": "subscript_expression", "text": "res[1][8]", "parent": 1140, "children": [1142, 1145], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 26}}, {"id": 1142, "type": "subscript_expression", "text": "res[1]", "parent": 1141, "children": [1143, 1144], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 23}}, {"id": 1143, "type": "identifier", "text": "res", "parent": 1142, "children": [], "start_point": {"row": 132, "column": 17}, "end_point": {"row": 132, "column": 20}}, {"id": 1144, "type": "number_literal", "text": "1", "parent": 1142, "children": [], "start_point": {"row": 132, "column": 21}, "end_point": {"row": 132, "column": 22}}, {"id": 1145, "type": "number_literal", "text": "8", "parent": 1141, "children": [], "start_point": {"row": 132, "column": 24}, "end_point": {"row": 132, "column": 25}}, {"id": 1146, "type": "=", "text": "=", "parent": 1140, "children": [], "start_point": {"row": 132, "column": 26}, "end_point": {"row": 132, "column": 27}}, {"id": 1147, "type": "identifier", "text": "a2", "parent": 1140, "children": [], "start_point": {"row": 132, "column": 27}, "end_point": {"row": 132, "column": 29}}, {"id": 1148, "type": "assignment_expression", "text": "a1=(-a1)", "parent": 284, "children": [1149, 1150, 1151], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 10}}, {"id": 1149, "type": "identifier", "text": "a1", "parent": 1148, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 133, "column": 4}}, {"id": 1150, "type": "=", "text": "=", "parent": 1148, "children": [], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 133, "column": 5}}, {"id": 1151, "type": "parenthesized_expression", "text": "(-a1)", "parent": 1148, "children": [1152], "start_point": {"row": 133, "column": 5}, "end_point": {"row": 133, "column": 10}}, {"id": 1152, "type": "unary_expression", "text": "-a1", "parent": 1151, "children": [1153, 1154], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 9}}, {"id": 1153, "type": "-", "text": "-", "parent": 1152, "children": [], "start_point": {"row": 133, "column": 6}, "end_point": {"row": 133, "column": 7}}, {"id": 1154, "type": "identifier", "text": "a1", "parent": 1152, "children": [], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 9}}, {"id": 1155, "type": "if_statement", "text": "if (res[1]!=0) res[1][9]=a1;", "parent": 284, "children": [1156], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 30}}, {"id": 1156, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1155, "children": [1157], "start_point": {"row": 134, "column": 5}, "end_point": {"row": 134, "column": 16}}, {"id": 1157, "type": "binary_expression", "text": "res[1]!=0", "parent": 1156, "children": [1158, 1161, 1162], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 15}}, {"id": 1158, "type": "subscript_expression", "text": "res[1]", "parent": 1157, "children": [1159, 1160], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 12}}, {"id": 1159, "type": "identifier", "text": "res", "parent": 1158, "children": [], "start_point": {"row": 134, "column": 6}, "end_point": {"row": 134, "column": 9}}, {"id": 1160, "type": "number_literal", "text": "1", "parent": 1158, "children": [], "start_point": {"row": 134, "column": 10}, "end_point": {"row": 134, "column": 11}}, {"id": 1161, "type": "!=", "text": "!=", "parent": 1157, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 14}}, {"id": 1162, "type": "number_literal", "text": "0", "parent": 1157, "children": [], "start_point": {"row": 134, "column": 14}, "end_point": {"row": 134, "column": 15}}, {"id": 1163, "type": "assignment_expression", "text": "res[1][9]=a1", "parent": 1155, "children": [1164, 1169, 1170], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 29}}, {"id": 1164, "type": "subscript_expression", "text": "res[1][9]", "parent": 1163, "children": [1165, 1168], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 26}}, {"id": 1165, "type": "subscript_expression", "text": "res[1]", "parent": 1164, "children": [1166, 1167], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 23}}, {"id": 1166, "type": "identifier", "text": "res", "parent": 1165, "children": [], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 20}}, {"id": 1167, "type": "number_literal", "text": "1", "parent": 1165, "children": [], "start_point": {"row": 134, "column": 21}, "end_point": {"row": 134, "column": 22}}, {"id": 1168, "type": "number_literal", "text": "9", "parent": 1164, "children": [], "start_point": {"row": 134, "column": 24}, "end_point": {"row": 134, "column": 25}}, {"id": 1169, "type": "=", "text": "=", "parent": 1163, "children": [], "start_point": {"row": 134, "column": 26}, "end_point": {"row": 134, "column": 27}}, {"id": 1170, "type": "identifier", "text": "a1", "parent": 1163, "children": [], "start_point": {"row": 134, "column": 27}, "end_point": {"row": 134, "column": 29}}, {"id": 1171, "type": "if_statement", "text": "if (res[1]!=0) res[1][10]=a11;", "parent": 284, "children": [1172], "start_point": {"row": 135, "column": 2}, "end_point": {"row": 135, "column": 32}}, {"id": 1172, "type": "parenthesized_expression", "text": "(res[1]!=0)", "parent": 1171, "children": [1173], "start_point": {"row": 135, "column": 5}, "end_point": {"row": 135, "column": 16}}, {"id": 1173, "type": "binary_expression", "text": "res[1]!=0", "parent": 1172, "children": [1174, 1177, 1178], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 15}}, {"id": 1174, "type": "subscript_expression", "text": "res[1]", "parent": 1173, "children": [1175, 1176], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 12}}, {"id": 1175, "type": "identifier", "text": "res", "parent": 1174, "children": [], "start_point": {"row": 135, "column": 6}, "end_point": {"row": 135, "column": 9}}, {"id": 1176, "type": "number_literal", "text": "1", "parent": 1174, "children": [], "start_point": {"row": 135, "column": 10}, "end_point": {"row": 135, "column": 11}}, {"id": 1177, "type": "!=", "text": "!=", "parent": 1173, "children": [], "start_point": {"row": 135, "column": 12}, "end_point": {"row": 135, "column": 14}}, {"id": 1178, "type": "number_literal", "text": "0", "parent": 1173, "children": [], "start_point": {"row": 135, "column": 14}, "end_point": {"row": 135, "column": 15}}, {"id": 1179, "type": "assignment_expression", "text": "res[1][10]=a11", "parent": 1171, "children": [1180, 1185, 1186], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 31}}, {"id": 1180, "type": "subscript_expression", "text": "res[1][10]", "parent": 1179, "children": [1181, 1184], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 27}}, {"id": 1181, "type": "subscript_expression", "text": "res[1]", "parent": 1180, "children": [1182, 1183], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 23}}, {"id": 1182, "type": "identifier", "text": "res", "parent": 1181, "children": [], "start_point": {"row": 135, "column": 17}, "end_point": {"row": 135, "column": 20}}, {"id": 1183, "type": "number_literal", "text": "1", "parent": 1181, "children": [], "start_point": {"row": 135, "column": 21}, "end_point": {"row": 135, "column": 22}}, {"id": 1184, "type": "number_literal", "text": "10", "parent": 1180, "children": [], "start_point": {"row": 135, "column": 24}, "end_point": {"row": 135, "column": 26}}, {"id": 1185, "type": "=", "text": "=", "parent": 1179, "children": [], "start_point": {"row": 135, "column": 27}, "end_point": {"row": 135, "column": 28}}, {"id": 1186, "type": "identifier", "text": "a11", "parent": 1179, "children": [], "start_point": {"row": 135, "column": 28}, "end_point": {"row": 135, "column": 31}}, {"id": 1187, "type": "assignment_expression", "text": "a1=1.", "parent": 284, "children": [1188, 1189, 1190], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 136, "column": 7}}, {"id": 1188, "type": "identifier", "text": "a1", "parent": 1187, "children": [], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 136, "column": 4}}, {"id": 1189, "type": "=", "text": "=", "parent": 1187, "children": [], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 5}}, {"id": 1190, "type": "number_literal", "text": "1.", "parent": 1187, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 7}}, {"id": 1191, "type": "if_statement", "text": "if (res[2]!=0) res[2][0]=a1;", "parent": 284, "children": [1192], "start_point": {"row": 137, "column": 2}, "end_point": {"row": 137, "column": 30}}, {"id": 1192, "type": "parenthesized_expression", "text": "(res[2]!=0)", "parent": 1191, "children": [1193], "start_point": {"row": 137, "column": 5}, "end_point": {"row": 137, "column": 16}}, {"id": 1193, "type": "binary_expression", "text": "res[2]!=0", "parent": 1192, "children": [1194, 1197, 1198], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 15}}, {"id": 1194, "type": "subscript_expression", "text": "res[2]", "parent": 1193, "children": [1195, 1196], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 12}}, {"id": 1195, "type": "identifier", "text": "res", "parent": 1194, "children": [], "start_point": {"row": 137, "column": 6}, "end_point": {"row": 137, "column": 9}}, {"id": 1196, "type": "number_literal", "text": "2", "parent": 1194, "children": [], "start_point": {"row": 137, "column": 10}, "end_point": {"row": 137, "column": 11}}, {"id": 1197, "type": "!=", "text": "!=", "parent": 1193, "children": [], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 14}}, {"id": 1198, "type": "number_literal", "text": "0", "parent": 1193, "children": [], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 15}}, {"id": 1199, "type": "assignment_expression", "text": "res[2][0]=a1", "parent": 1191, "children": [1200, 1205, 1206], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 29}}, {"id": 1200, "type": "subscript_expression", "text": "res[2][0]", "parent": 1199, "children": [1201, 1204], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 26}}, {"id": 1201, "type": "subscript_expression", "text": "res[2]", "parent": 1200, "children": [1202, 1203], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 23}}, {"id": 1202, "type": "identifier", "text": "res", "parent": 1201, "children": [], "start_point": {"row": 137, "column": 17}, "end_point": {"row": 137, "column": 20}}, {"id": 1203, "type": "number_literal", "text": "2", "parent": 1201, "children": [], "start_point": {"row": 137, "column": 21}, "end_point": {"row": 137, "column": 22}}, {"id": 1204, "type": "number_literal", "text": "0", "parent": 1200, "children": [], "start_point": {"row": 137, "column": 24}, "end_point": {"row": 137, "column": 25}}, {"id": 1205, "type": "=", "text": "=", "parent": 1199, "children": [], "start_point": {"row": 137, "column": 26}, "end_point": {"row": 137, "column": 27}}, {"id": 1206, "type": "identifier", "text": "a1", "parent": 1199, "children": [], "start_point": {"row": 137, "column": 27}, "end_point": {"row": 137, "column": 29}}, {"id": 1207, "type": "if_statement", "text": "if (res[2]!=0) res[2][1]=a1;", "parent": 284, "children": [1208], "start_point": {"row": 138, "column": 2}, "end_point": {"row": 138, "column": 30}}, {"id": 1208, "type": "parenthesized_expression", "text": "(res[2]!=0)", "parent": 1207, "children": [1209], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 16}}, {"id": 1209, "type": "binary_expression", "text": "res[2]!=0", "parent": 1208, "children": [1210, 1213, 1214], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 15}}, {"id": 1210, "type": "subscript_expression", "text": "res[2]", "parent": 1209, "children": [1211, 1212], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 12}}, {"id": 1211, "type": "identifier", "text": "res", "parent": 1210, "children": [], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 9}}, {"id": 1212, "type": "number_literal", "text": "2", "parent": 1210, "children": [], "start_point": {"row": 138, "column": 10}, "end_point": {"row": 138, "column": 11}}, {"id": 1213, "type": "!=", "text": "!=", "parent": 1209, "children": [], "start_point": {"row": 138, "column": 12}, "end_point": {"row": 138, "column": 14}}, {"id": 1214, "type": "number_literal", "text": "0", "parent": 1209, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 15}}, {"id": 1215, "type": "assignment_expression", "text": "res[2][1]=a1", "parent": 1207, "children": [1216, 1221, 1222], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 29}}, {"id": 1216, "type": "subscript_expression", "text": "res[2][1]", "parent": 1215, "children": [1217, 1220], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 26}}, {"id": 1217, "type": "subscript_expression", "text": "res[2]", "parent": 1216, "children": [1218, 1219], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 23}}, {"id": 1218, "type": "identifier", "text": "res", "parent": 1217, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 20}}, {"id": 1219, "type": "number_literal", "text": "2", "parent": 1217, "children": [], "start_point": {"row": 138, "column": 21}, "end_point": {"row": 138, "column": 22}}, {"id": 1220, "type": "number_literal", "text": "1", "parent": 1216, "children": [], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 25}}, {"id": 1221, "type": "=", "text": "=", "parent": 1215, "children": [], "start_point": {"row": 138, "column": 26}, "end_point": {"row": 138, "column": 27}}, {"id": 1222, "type": "identifier", "text": "a1", "parent": 1215, "children": [], "start_point": {"row": 138, "column": 27}, "end_point": {"row": 138, "column": 29}}, {"id": 1223, "type": "if_statement", "text": "if (res[2]!=0) res[2][2]=a1;", "parent": 284, "children": [1224], "start_point": {"row": 139, "column": 2}, "end_point": {"row": 139, "column": 30}}, {"id": 1224, "type": "parenthesized_expression", "text": "(res[2]!=0)", "parent": 1223, "children": [1225], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 16}}, {"id": 1225, "type": "binary_expression", "text": "res[2]!=0", "parent": 1224, "children": [1226, 1229, 1230], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 15}}, {"id": 1226, "type": "subscript_expression", "text": "res[2]", "parent": 1225, "children": [1227, 1228], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 12}}, {"id": 1227, "type": "identifier", "text": "res", "parent": 1226, "children": [], "start_point": {"row": 139, "column": 6}, "end_point": {"row": 139, "column": 9}}, {"id": 1228, "type": "number_literal", "text": "2", "parent": 1226, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 11}}, {"id": 1229, "type": "!=", "text": "!=", "parent": 1225, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 14}}, {"id": 1230, "type": "number_literal", "text": "0", "parent": 1225, "children": [], "start_point": {"row": 139, "column": 14}, "end_point": {"row": 139, "column": 15}}, {"id": 1231, "type": "assignment_expression", "text": "res[2][2]=a1", "parent": 1223, "children": [1232, 1237, 1238], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 29}}, {"id": 1232, "type": "subscript_expression", "text": "res[2][2]", "parent": 1231, "children": [1233, 1236], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 26}}, {"id": 1233, "type": "subscript_expression", "text": "res[2]", "parent": 1232, "children": [1234, 1235], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 23}}, {"id": 1234, "type": "identifier", "text": "res", "parent": 1233, "children": [], "start_point": {"row": 139, "column": 17}, "end_point": {"row": 139, "column": 20}}, {"id": 1235, "type": "number_literal", "text": "2", "parent": 1233, "children": [], "start_point": {"row": 139, "column": 21}, "end_point": {"row": 139, "column": 22}}, {"id": 1236, "type": "number_literal", "text": "2", "parent": 1232, "children": [], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 25}}, {"id": 1237, "type": "=", "text": "=", "parent": 1231, "children": [], "start_point": {"row": 139, "column": 26}, "end_point": {"row": 139, "column": 27}}, {"id": 1238, "type": "identifier", "text": "a1", "parent": 1231, "children": [], "start_point": {"row": 139, "column": 27}, "end_point": {"row": 139, "column": 29}}, {"id": 1239, "type": "if_statement", "text": "if (res[2]!=0) res[2][3]=a1;", "parent": 284, "children": [1240], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 30}}, {"id": 1240, "type": "parenthesized_expression", "text": "(res[2]!=0)", "parent": 1239, "children": [1241], "start_point": {"row": 140, "column": 5}, "end_point": {"row": 140, "column": 16}}, {"id": 1241, "type": "binary_expression", "text": "res[2]!=0", "parent": 1240, "children": [1242, 1245, 1246], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 15}}, {"id": 1242, "type": "subscript_expression", "text": "res[2]", "parent": 1241, "children": [1243, 1244], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 12}}, {"id": 1243, "type": "identifier", "text": "res", "parent": 1242, "children": [], "start_point": {"row": 140, "column": 6}, "end_point": {"row": 140, "column": 9}}, {"id": 1244, "type": "number_literal", "text": "2", "parent": 1242, "children": [], "start_point": {"row": 140, "column": 10}, "end_point": {"row": 140, "column": 11}}, {"id": 1245, "type": "!=", "text": "!=", "parent": 1241, "children": [], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 14}}, {"id": 1246, "type": "number_literal", "text": "0", "parent": 1241, "children": [], "start_point": {"row": 140, "column": 14}, "end_point": {"row": 140, "column": 15}}, {"id": 1247, "type": "assignment_expression", "text": "res[2][3]=a1", "parent": 1239, "children": [1248, 1253, 1254], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 29}}, {"id": 1248, "type": "subscript_expression", "text": "res[2][3]", "parent": 1247, "children": [1249, 1252], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 26}}, {"id": 1249, "type": "subscript_expression", "text": "res[2]", "parent": 1248, "children": [1250, 1251], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 23}}, {"id": 1250, "type": "identifier", "text": "res", "parent": 1249, "children": [], "start_point": {"row": 140, "column": 17}, "end_point": {"row": 140, "column": 20}}, {"id": 1251, "type": "number_literal", "text": "2", "parent": 1249, "children": [], "start_point": {"row": 140, "column": 21}, "end_point": {"row": 140, "column": 22}}, {"id": 1252, "type": "number_literal", "text": "3", "parent": 1248, "children": [], "start_point": {"row": 140, "column": 24}, "end_point": {"row": 140, "column": 25}}, {"id": 1253, "type": "=", "text": "=", "parent": 1247, "children": [], "start_point": {"row": 140, "column": 26}, "end_point": {"row": 140, "column": 27}}, {"id": 1254, "type": "identifier", "text": "a1", "parent": 1247, "children": [], "start_point": {"row": 140, "column": 27}, "end_point": {"row": 140, "column": 29}}, {"id": 1255, "type": "if_statement", "text": "if (res[2]!=0) res[2][4]=a1;", "parent": 284, "children": [1256], "start_point": {"row": 141, "column": 2}, "end_point": {"row": 141, "column": 30}}, {"id": 1256, "type": "parenthesized_expression", "text": "(res[2]!=0)", "parent": 1255, "children": [1257], "start_point": {"row": 141, "column": 5}, "end_point": {"row": 141, "column": 16}}, {"id": 1257, "type": "binary_expression", "text": "res[2]!=0", "parent": 1256, "children": [1258, 1261, 1262], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 15}}, {"id": 1258, "type": "subscript_expression", "text": "res[2]", "parent": 1257, "children": [1259, 1260], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 12}}, {"id": 1259, "type": "identifier", "text": "res", "parent": 1258, "children": [], "start_point": {"row": 141, "column": 6}, "end_point": {"row": 141, "column": 9}}, {"id": 1260, "type": "number_literal", "text": "2", "parent": 1258, "children": [], "start_point": {"row": 141, "column": 10}, "end_point": {"row": 141, "column": 11}}, {"id": 1261, "type": "!=", "text": "!=", "parent": 1257, "children": [], "start_point": {"row": 141, "column": 12}, "end_point": {"row": 141, "column": 14}}, {"id": 1262, "type": "number_literal", "text": "0", "parent": 1257, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 15}}, {"id": 1263, "type": "assignment_expression", "text": "res[2][4]=a1", "parent": 1255, "children": [1264, 1269, 1270], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 29}}, {"id": 1264, "type": "subscript_expression", "text": "res[2][4]", "parent": 1263, "children": [1265, 1268], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 26}}, {"id": 1265, "type": "subscript_expression", "text": "res[2]", "parent": 1264, "children": [1266, 1267], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 23}}, {"id": 1266, "type": "identifier", "text": "res", "parent": 1265, "children": [], "start_point": {"row": 141, "column": 17}, "end_point": {"row": 141, "column": 20}}, {"id": 1267, "type": "number_literal", "text": "2", "parent": 1265, "children": [], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 22}}, {"id": 1268, "type": "number_literal", "text": "4", "parent": 1264, "children": [], "start_point": {"row": 141, "column": 24}, "end_point": {"row": 141, "column": 25}}, {"id": 1269, "type": "=", "text": "=", "parent": 1263, "children": [], "start_point": {"row": 141, "column": 26}, "end_point": {"row": 141, "column": 27}}, {"id": 1270, "type": "identifier", "text": "a1", "parent": 1263, "children": [], "start_point": {"row": 141, "column": 27}, "end_point": {"row": 141, "column": 29}}, {"id": 1271, "type": "if_statement", "text": "if (res[2]!=0) res[2][5]=a1;", "parent": 284, "children": [1272], "start_point": {"row": 142, "column": 2}, "end_point": {"row": 142, "column": 30}}, {"id": 1272, "type": "parenthesized_expression", "text": "(res[2]!=0)", "parent": 1271, "children": [1273], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 16}}, {"id": 1273, "type": "binary_expression", "text": "res[2]!=0", "parent": 1272, "children": [1274, 1277, 1278], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 15}}, {"id": 1274, "type": "subscript_expression", "text": "res[2]", "parent": 1273, "children": [1275, 1276], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 12}}, {"id": 1275, "type": "identifier", "text": "res", "parent": 1274, "children": [], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 9}}, {"id": 1276, "type": "number_literal", "text": "2", "parent": 1274, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 11}}, {"id": 1277, "type": "!=", "text": "!=", "parent": 1273, "children": [], "start_point": {"row": 142, "column": 12}, "end_point": {"row": 142, "column": 14}}, {"id": 1278, "type": "number_literal", "text": "0", "parent": 1273, "children": [], "start_point": {"row": 142, "column": 14}, "end_point": {"row": 142, "column": 15}}, {"id": 1279, "type": "assignment_expression", "text": "res[2][5]=a1", "parent": 1271, "children": [1280, 1285, 1286], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 29}}, {"id": 1280, "type": "subscript_expression", "text": "res[2][5]", "parent": 1279, "children": [1281, 1284], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 26}}, {"id": 1281, "type": "subscript_expression", "text": "res[2]", "parent": 1280, "children": [1282, 1283], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 23}}, {"id": 1282, "type": "identifier", "text": "res", "parent": 1281, "children": [], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 20}}, {"id": 1283, "type": "number_literal", "text": "2", "parent": 1281, "children": [], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 142, "column": 22}}, {"id": 1284, "type": "number_literal", "text": "5", "parent": 1280, "children": [], "start_point": {"row": 142, "column": 24}, "end_point": {"row": 142, "column": 25}}, {"id": 1285, "type": "=", "text": "=", "parent": 1279, "children": [], "start_point": {"row": 142, "column": 26}, "end_point": {"row": 142, "column": 27}}, {"id": 1286, "type": "identifier", "text": "a1", "parent": 1279, "children": [], "start_point": {"row": 142, "column": 27}, "end_point": {"row": 142, "column": 29}}, {"id": 1287, "type": "assignment_expression", "text": "a7=(-a7)", "parent": 284, "children": [1288, 1289, 1290], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 10}}, {"id": 1288, "type": "identifier", "text": "a7", "parent": 1287, "children": [], "start_point": {"row": 143, "column": 2}, "end_point": {"row": 143, "column": 4}}, {"id": 1289, "type": "=", "text": "=", "parent": 1287, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 5}}, {"id": 1290, "type": "parenthesized_expression", "text": "(-a7)", "parent": 1287, "children": [1291], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 10}}, {"id": 1291, "type": "unary_expression", "text": "-a7", "parent": 1290, "children": [1292, 1293], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 9}}, {"id": 1292, "type": "-", "text": "-", "parent": 1291, "children": [], "start_point": {"row": 143, "column": 6}, "end_point": {"row": 143, "column": 7}}, {"id": 1293, "type": "identifier", "text": "a7", "parent": 1291, "children": [], "start_point": {"row": 143, "column": 7}, "end_point": {"row": 143, "column": 9}}, {"id": 1294, "type": "if_statement", "text": "if (res[3]!=0) res[3][0]=a7;", "parent": 284, "children": [1295], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 30}}, {"id": 1295, "type": "parenthesized_expression", "text": "(res[3]!=0)", "parent": 1294, "children": [1296], "start_point": {"row": 144, "column": 5}, "end_point": {"row": 144, "column": 16}}, {"id": 1296, "type": "binary_expression", "text": "res[3]!=0", "parent": 1295, "children": [1297, 1300, 1301], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 15}}, {"id": 1297, "type": "subscript_expression", "text": "res[3]", "parent": 1296, "children": [1298, 1299], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 12}}, {"id": 1298, "type": "identifier", "text": "res", "parent": 1297, "children": [], "start_point": {"row": 144, "column": 6}, "end_point": {"row": 144, "column": 9}}, {"id": 1299, "type": "number_literal", "text": "3", "parent": 1297, "children": [], "start_point": {"row": 144, "column": 10}, "end_point": {"row": 144, "column": 11}}, {"id": 1300, "type": "!=", "text": "!=", "parent": 1296, "children": [], "start_point": {"row": 144, "column": 12}, "end_point": {"row": 144, "column": 14}}, {"id": 1301, "type": "number_literal", "text": "0", "parent": 1296, "children": [], "start_point": {"row": 144, "column": 14}, "end_point": {"row": 144, "column": 15}}, {"id": 1302, "type": "assignment_expression", "text": "res[3][0]=a7", "parent": 1294, "children": [1303, 1308, 1309], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 29}}, {"id": 1303, "type": "subscript_expression", "text": "res[3][0]", "parent": 1302, "children": [1304, 1307], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 26}}, {"id": 1304, "type": "subscript_expression", "text": "res[3]", "parent": 1303, "children": [1305, 1306], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 23}}, {"id": 1305, "type": "identifier", "text": "res", "parent": 1304, "children": [], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 20}}, {"id": 1306, "type": "number_literal", "text": "3", "parent": 1304, "children": [], "start_point": {"row": 144, "column": 21}, "end_point": {"row": 144, "column": 22}}, {"id": 1307, "type": "number_literal", "text": "0", "parent": 1303, "children": [], "start_point": {"row": 144, "column": 24}, "end_point": {"row": 144, "column": 25}}, {"id": 1308, "type": "=", "text": "=", "parent": 1302, "children": [], "start_point": {"row": 144, "column": 26}, "end_point": {"row": 144, "column": 27}}, {"id": 1309, "type": "identifier", "text": "a7", "parent": 1302, "children": [], "start_point": {"row": 144, "column": 27}, "end_point": {"row": 144, "column": 29}}, {"id": 1310, "type": "if_statement", "text": "if (res[3]!=0) res[3][1]=a11;", "parent": 284, "children": [1311], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 31}}, {"id": 1311, "type": "parenthesized_expression", "text": "(res[3]!=0)", "parent": 1310, "children": [1312], "start_point": {"row": 145, "column": 5}, "end_point": {"row": 145, "column": 16}}, {"id": 1312, "type": "binary_expression", "text": "res[3]!=0", "parent": 1311, "children": [1313, 1316, 1317], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 15}}, {"id": 1313, "type": "subscript_expression", "text": "res[3]", "parent": 1312, "children": [1314, 1315], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 12}}, {"id": 1314, "type": "identifier", "text": "res", "parent": 1313, "children": [], "start_point": {"row": 145, "column": 6}, "end_point": {"row": 145, "column": 9}}, {"id": 1315, "type": "number_literal", "text": "3", "parent": 1313, "children": [], "start_point": {"row": 145, "column": 10}, "end_point": {"row": 145, "column": 11}}, {"id": 1316, "type": "!=", "text": "!=", "parent": 1312, "children": [], "start_point": {"row": 145, "column": 12}, "end_point": {"row": 145, "column": 14}}, {"id": 1317, "type": "number_literal", "text": "0", "parent": 1312, "children": [], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 15}}, {"id": 1318, "type": "assignment_expression", "text": "res[3][1]=a11", "parent": 1310, "children": [1319, 1324, 1325], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 30}}, {"id": 1319, "type": "subscript_expression", "text": "res[3][1]", "parent": 1318, "children": [1320, 1323], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 26}}, {"id": 1320, "type": "subscript_expression", "text": "res[3]", "parent": 1319, "children": [1321, 1322], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 23}}, {"id": 1321, "type": "identifier", "text": "res", "parent": 1320, "children": [], "start_point": {"row": 145, "column": 17}, "end_point": {"row": 145, "column": 20}}, {"id": 1322, "type": "number_literal", "text": "3", "parent": 1320, "children": [], "start_point": {"row": 145, "column": 21}, "end_point": {"row": 145, "column": 22}}, {"id": 1323, "type": "number_literal", "text": "1", "parent": 1319, "children": [], "start_point": {"row": 145, "column": 24}, "end_point": {"row": 145, "column": 25}}, {"id": 1324, "type": "=", "text": "=", "parent": 1318, "children": [], "start_point": {"row": 145, "column": 26}, "end_point": {"row": 145, "column": 27}}, {"id": 1325, "type": "identifier", "text": "a11", "parent": 1318, "children": [], "start_point": {"row": 145, "column": 27}, "end_point": {"row": 145, "column": 30}}, {"id": 1326, "type": "return_statement", "text": "return 0;", "parent": 284, "children": [1327], "start_point": {"row": 146, "column": 2}, "end_point": {"row": 146, "column": 11}}, {"id": 1327, "type": "number_literal", "text": "0", "parent": 1326, "children": [], "start_point": {"row": 146, "column": 9}, "end_point": {"row": 146, "column": 10}}, {"id": 1328, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}", "parent": 3, "children": [1329, 1330, 1332], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 151, "column": 1}}, {"id": 1329, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1328, "children": [], "start_point": {"row": 149, "column": 0}, "end_point": {"row": 149, "column": 20}}, {"id": 1330, "type": "ERROR", "text": "int", "parent": 1328, "children": [1331], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 24}}, {"id": 1331, "type": "identifier", "text": "int", "parent": 1330, "children": [], "start_point": {"row": 149, "column": 21}, "end_point": {"row": 149, "column": 24}}, {"id": 1332, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)", "parent": 1328, "children": [1333, 1334], "start_point": {"row": 149, "column": 25}, "end_point": {"row": 149, "column": 150}}, {"id": 1333, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u", "parent": 1332, "children": [], "start_point": {"row": 149, "column": 25}, "end_point": {"row": 149, "column": 63}}, {"id": 1334, "type": "parameter_list", "text": "(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)", "parent": 1332, "children": [1335, 1342, 1349, 1354, 1359], "start_point": {"row": 149, "column": 63}, "end_point": {"row": 149, "column": 150}}, {"id": 1335, "type": "parameter_declaration", "text": "const casadi_real** arg", "parent": 1334, "children": [1336, 1337], "start_point": {"row": 149, "column": 64}, "end_point": {"row": 149, "column": 87}}, {"id": 1336, "type": "type_identifier", "text": "casadi_real", "parent": 1335, "children": [], "start_point": {"row": 149, "column": 70}, "end_point": {"row": 149, "column": 81}}, {"id": 1337, "type": "pointer_declarator", "text": "** arg", "parent": 1335, "children": [1338, 1339], "start_point": {"row": 149, "column": 81}, "end_point": {"row": 149, "column": 87}}, {"id": 1338, "type": "*", "text": "*", "parent": 1337, "children": [], "start_point": {"row": 149, "column": 81}, "end_point": {"row": 149, "column": 82}}, {"id": 1339, "type": "pointer_declarator", "text": "* arg", "parent": 1337, "children": [1340, 1341], "start_point": {"row": 149, "column": 82}, "end_point": {"row": 149, "column": 87}}, {"id": 1340, "type": "*", "text": "*", "parent": 1339, "children": [], "start_point": {"row": 149, "column": 82}, "end_point": {"row": 149, "column": 83}}, {"id": 1341, "type": "identifier", "text": "arg", "parent": 1339, "children": [], "start_point": {"row": 149, "column": 84}, "end_point": {"row": 149, "column": 87}}, {"id": 1342, "type": "parameter_declaration", "text": "casadi_real** res", "parent": 1334, "children": [1343, 1344], "start_point": {"row": 149, "column": 89}, "end_point": {"row": 149, "column": 106}}, {"id": 1343, "type": "type_identifier", "text": "casadi_real", "parent": 1342, "children": [], "start_point": {"row": 149, "column": 89}, "end_point": {"row": 149, "column": 100}}, {"id": 1344, "type": "pointer_declarator", "text": "** res", "parent": 1342, "children": [1345, 1346], "start_point": {"row": 149, "column": 100}, "end_point": {"row": 149, "column": 106}}, {"id": 1345, "type": "*", "text": "*", "parent": 1344, "children": [], "start_point": {"row": 149, "column": 100}, "end_point": {"row": 149, "column": 101}}, {"id": 1346, "type": "pointer_declarator", "text": "* res", "parent": 1344, "children": [1347, 1348], "start_point": {"row": 149, "column": 101}, "end_point": {"row": 149, "column": 106}}, {"id": 1347, "type": "*", "text": "*", "parent": 1346, "children": [], "start_point": {"row": 149, "column": 101}, "end_point": {"row": 149, "column": 102}}, {"id": 1348, "type": "identifier", "text": "res", "parent": 1346, "children": [], "start_point": {"row": 149, "column": 103}, "end_point": {"row": 149, "column": 106}}, {"id": 1349, "type": "parameter_declaration", "text": "casadi_int* iw", "parent": 1334, "children": [1350, 1351], "start_point": {"row": 149, "column": 108}, "end_point": {"row": 149, "column": 122}}, {"id": 1350, "type": "type_identifier", "text": "casadi_int", "parent": 1349, "children": [], "start_point": {"row": 149, "column": 108}, "end_point": {"row": 149, "column": 118}}, {"id": 1351, "type": "pointer_declarator", "text": "* iw", "parent": 1349, "children": [1352, 1353], "start_point": {"row": 149, "column": 118}, "end_point": {"row": 149, "column": 122}}, {"id": 1352, "type": "*", "text": "*", "parent": 1351, "children": [], "start_point": {"row": 149, "column": 118}, "end_point": {"row": 149, "column": 119}}, {"id": 1353, "type": "identifier", "text": "iw", "parent": 1351, "children": [], "start_point": {"row": 149, "column": 120}, "end_point": {"row": 149, "column": 122}}, {"id": 1354, "type": "parameter_declaration", "text": "casadi_real* w", "parent": 1334, "children": [1355, 1356], "start_point": {"row": 149, "column": 124}, "end_point": {"row": 149, "column": 138}}, {"id": 1355, "type": "type_identifier", "text": "casadi_real", "parent": 1354, "children": [], "start_point": {"row": 149, "column": 124}, "end_point": {"row": 149, "column": 135}}, {"id": 1356, "type": "pointer_declarator", "text": "* w", "parent": 1354, "children": [1357, 1358], "start_point": {"row": 149, "column": 135}, "end_point": {"row": 149, "column": 138}}, {"id": 1357, "type": "*", "text": "*", "parent": 1356, "children": [], "start_point": {"row": 149, "column": 135}, "end_point": {"row": 149, "column": 136}}, {"id": 1358, "type": "identifier", "text": "w", "parent": 1356, "children": [], "start_point": {"row": 149, "column": 137}, "end_point": {"row": 149, "column": 138}}, {"id": 1359, "type": "parameter_declaration", "text": "void* mem", "parent": 1334, "children": [1360, 1361], "start_point": {"row": 149, "column": 140}, "end_point": {"row": 149, "column": 149}}, {"id": 1360, "type": "primitive_type", "text": "void", "parent": 1359, "children": [], "start_point": {"row": 149, "column": 140}, "end_point": {"row": 149, "column": 144}}, {"id": 1361, "type": "pointer_declarator", "text": "* mem", "parent": 1359, "children": [1362, 1363], "start_point": {"row": 149, "column": 144}, "end_point": {"row": 149, "column": 149}}, {"id": 1362, "type": "*", "text": "*", "parent": 1361, "children": [], "start_point": {"row": 149, "column": 144}, "end_point": {"row": 149, "column": 145}}, {"id": 1363, "type": "identifier", "text": "mem", "parent": 1361, "children": [], "start_point": {"row": 149, "column": 146}, "end_point": {"row": 149, "column": 149}}, {"id": 1364, "type": "return_statement", "text": "return casadi_f0(arg, res, iw, w, mem);", "parent": 1328, "children": [1365], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 41}}, {"id": 1365, "type": "call_expression", "text": "casadi_f0(arg, res, iw, w, mem)", "parent": 1364, "children": [1366, 1367], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 40}}, {"id": 1366, "type": "identifier", "text": "casadi_f0", "parent": 1365, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 18}}, {"id": 1367, "type": "argument_list", "text": "(arg, res, iw, w, mem)", "parent": 1365, "children": [1368, 1369, 1370, 1371, 1372], "start_point": {"row": 150, "column": 18}, "end_point": {"row": 150, "column": 40}}, {"id": 1368, "type": "identifier", "text": "arg", "parent": 1367, "children": [], "start_point": {"row": 150, "column": 19}, "end_point": {"row": 150, "column": 22}}, {"id": 1369, "type": "identifier", "text": "res", "parent": 1367, "children": [], "start_point": {"row": 150, "column": 24}, "end_point": {"row": 150, "column": 27}}, {"id": 1370, "type": "identifier", "text": "iw", "parent": 1367, "children": [], "start_point": {"row": 150, "column": 29}, "end_point": {"row": 150, "column": 31}}, {"id": 1371, "type": "identifier", "text": "w", "parent": 1367, "children": [], "start_point": {"row": 150, "column": 33}, "end_point": {"row": 150, "column": 34}}, {"id": 1372, "type": "identifier", "text": "mem", "parent": 1367, "children": [], "start_point": {"row": 150, "column": 36}, "end_point": {"row": 150, "column": 39}}, {"id": 1373, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}", "parent": 3, "children": [1374, 1375, 1377], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 154, "column": 1}}, {"id": 1374, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1373, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 20}}, {"id": 1375, "type": "ERROR", "text": "void", "parent": 1373, "children": [1376], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 25}}, {"id": 1376, "type": "identifier", "text": "void", "parent": 1375, "children": [], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 25}}, {"id": 1377, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void)", "parent": 1373, "children": [1378, 1379], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 77}}, {"id": 1378, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref", "parent": 1377, "children": [], "start_point": {"row": 153, "column": 26}, "end_point": {"row": 153, "column": 71}}, {"id": 1379, "type": "parameter_list", "text": "(void)", "parent": 1377, "children": [1380], "start_point": {"row": 153, "column": 71}, "end_point": {"row": 153, "column": 77}}, {"id": 1380, "type": "parameter_declaration", "text": "void", "parent": 1379, "children": [1381], "start_point": {"row": 153, "column": 72}, "end_point": {"row": 153, "column": 76}}, {"id": 1381, "type": "primitive_type", "text": "void", "parent": 1380, "children": [], "start_point": {"row": 153, "column": 72}, "end_point": {"row": 153, "column": 76}}, {"id": 1382, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}", "parent": 3, "children": [1383, 1384, 1386], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 157, "column": 1}}, {"id": 1383, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1382, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 20}}, {"id": 1384, "type": "ERROR", "text": "void", "parent": 1382, "children": [1385], "start_point": {"row": 156, "column": 21}, "end_point": {"row": 156, "column": 25}}, {"id": 1385, "type": "identifier", "text": "void", "parent": 1384, "children": [], "start_point": {"row": 156, "column": 21}, "end_point": {"row": 156, "column": 25}}, {"id": 1386, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void)", "parent": 1382, "children": [1387, 1388], "start_point": {"row": 156, "column": 26}, "end_point": {"row": 156, "column": 77}}, {"id": 1387, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref", "parent": 1386, "children": [], "start_point": {"row": 156, "column": 26}, "end_point": {"row": 156, "column": 71}}, {"id": 1388, "type": "parameter_list", "text": "(void)", "parent": 1386, "children": [1389], "start_point": {"row": 156, "column": 71}, "end_point": {"row": 156, "column": 77}}, {"id": 1389, "type": "parameter_declaration", "text": "void", "parent": 1388, "children": [1390], "start_point": {"row": 156, "column": 72}, "end_point": {"row": 156, "column": 76}}, {"id": 1390, "type": "primitive_type", "text": "void", "parent": 1389, "children": [], "start_point": {"row": 156, "column": 72}, "end_point": {"row": 156, "column": 76}}, {"id": 1391, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}", "parent": 3, "children": [1392, 1393, 1395], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 94}}, {"id": 1392, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1391, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 20}}, {"id": 1393, "type": "ERROR", "text": "casadi_int", "parent": 1391, "children": [1394], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 31}}, {"id": 1394, "type": "identifier", "text": "casadi_int", "parent": 1393, "children": [], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 31}}, {"id": 1395, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void)", "parent": 1391, "children": [1396, 1397], "start_point": {"row": 159, "column": 32}, "end_point": {"row": 159, "column": 81}}, {"id": 1396, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in", "parent": 1395, "children": [], "start_point": {"row": 159, "column": 32}, "end_point": {"row": 159, "column": 75}}, {"id": 1397, "type": "parameter_list", "text": "(void)", "parent": 1395, "children": [1398], "start_point": {"row": 159, "column": 75}, "end_point": {"row": 159, "column": 81}}, {"id": 1398, "type": "parameter_declaration", "text": "void", "parent": 1397, "children": [1399], "start_point": {"row": 159, "column": 76}, "end_point": {"row": 159, "column": 80}}, {"id": 1399, "type": "primitive_type", "text": "void", "parent": 1398, "children": [], "start_point": {"row": 159, "column": 76}, "end_point": {"row": 159, "column": 80}}, {"id": 1400, "type": "return_statement", "text": "return 4;", "parent": 1391, "children": [1401], "start_point": {"row": 159, "column": 84}, "end_point": {"row": 159, "column": 93}}, {"id": 1401, "type": "number_literal", "text": "4", "parent": 1400, "children": [], "start_point": {"row": 159, "column": 91}, "end_point": {"row": 159, "column": 92}}, {"id": 1402, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}", "parent": 3, "children": [1403, 1404, 1406], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 95}}, {"id": 1403, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1402, "children": [], "start_point": {"row": 161, "column": 0}, "end_point": {"row": 161, "column": 20}}, {"id": 1404, "type": "ERROR", "text": "casadi_int", "parent": 1402, "children": [1405], "start_point": {"row": 161, "column": 21}, "end_point": {"row": 161, "column": 31}}, {"id": 1405, "type": "identifier", "text": "casadi_int", "parent": 1404, "children": [], "start_point": {"row": 161, "column": 21}, "end_point": {"row": 161, "column": 31}}, {"id": 1406, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void)", "parent": 1402, "children": [1407, 1408], "start_point": {"row": 161, "column": 32}, "end_point": {"row": 161, "column": 82}}, {"id": 1407, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out", "parent": 1406, "children": [], "start_point": {"row": 161, "column": 32}, "end_point": {"row": 161, "column": 76}}, {"id": 1408, "type": "parameter_list", "text": "(void)", "parent": 1406, "children": [1409], "start_point": {"row": 161, "column": 76}, "end_point": {"row": 161, "column": 82}}, {"id": 1409, "type": "parameter_declaration", "text": "void", "parent": 1408, "children": [1410], "start_point": {"row": 161, "column": 77}, "end_point": {"row": 161, "column": 81}}, {"id": 1410, "type": "primitive_type", "text": "void", "parent": 1409, "children": [], "start_point": {"row": 161, "column": 77}, "end_point": {"row": 161, "column": 81}}, {"id": 1411, "type": "return_statement", "text": "return 4;", "parent": 1402, "children": [1412], "start_point": {"row": 161, "column": 85}, "end_point": {"row": 161, "column": 94}}, {"id": 1412, "type": "number_literal", "text": "4", "parent": 1411, "children": [], "start_point": {"row": 161, "column": 92}, "end_point": {"row": 161, "column": 93}}, {"id": 1413, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return \"i0\";\n case 1: return \"i1\";\n case 2: return \"i2\";\n case 3: return \"i3\";\n default: return 0;\n }\n}", "parent": 3, "children": [1414, 1415, 1417], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 1414, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1413, "children": [], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 163, "column": 20}}, {"id": 1415, "type": "ERROR", "text": "char", "parent": 1413, "children": [1416], "start_point": {"row": 163, "column": 27}, "end_point": {"row": 163, "column": 31}}, {"id": 1416, "type": "identifier", "text": "char", "parent": 1415, "children": [], "start_point": {"row": 163, "column": 27}, "end_point": {"row": 163, "column": 31}}, {"id": 1417, "type": "pointer_declarator", "text": "* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i)", "parent": 1413, "children": [1418, 1419], "start_point": {"row": 163, "column": 31}, "end_point": {"row": 163, "column": 93}}, {"id": 1418, "type": "*", "text": "*", "parent": 1417, "children": [], "start_point": {"row": 163, "column": 31}, "end_point": {"row": 163, "column": 32}}, {"id": 1419, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i)", "parent": 1417, "children": [1420, 1421], "start_point": {"row": 163, "column": 33}, "end_point": {"row": 163, "column": 93}}, {"id": 1420, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in", "parent": 1419, "children": [], "start_point": {"row": 163, "column": 33}, "end_point": {"row": 163, "column": 79}}, {"id": 1421, "type": "parameter_list", "text": "(casadi_int i)", "parent": 1419, "children": [1422], "start_point": {"row": 163, "column": 79}, "end_point": {"row": 163, "column": 93}}, {"id": 1422, "type": "parameter_declaration", "text": "casadi_int i", "parent": 1421, "children": [1423, 1424], "start_point": {"row": 163, "column": 80}, "end_point": {"row": 163, "column": 92}}, {"id": 1423, "type": "type_identifier", "text": "casadi_int", "parent": 1422, "children": [], "start_point": {"row": 163, "column": 80}, "end_point": {"row": 163, "column": 90}}, {"id": 1424, "type": "identifier", "text": "i", "parent": 1422, "children": [], "start_point": {"row": 163, "column": 91}, "end_point": {"row": 163, "column": 92}}, {"id": 1425, "type": "switch_statement", "text": "switch (i) {\n case 0: return \"i0\";\n case 1: return \"i1\";\n case 2: return \"i2\";\n case 3: return \"i3\";\n default: return 0;\n }", "parent": 1413, "children": [1426, 1427], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 170, "column": 3}}, {"id": 1426, "type": "switch", "text": "switch", "parent": 1425, "children": [], "start_point": {"row": 164, "column": 2}, "end_point": {"row": 164, "column": 8}}, {"id": 1427, "type": "parenthesized_expression", "text": "(i)", "parent": 1425, "children": [1428], "start_point": {"row": 164, "column": 9}, "end_point": {"row": 164, "column": 12}}, {"id": 1428, "type": "identifier", "text": "i", "parent": 1427, "children": [], "start_point": {"row": 164, "column": 10}, "end_point": {"row": 164, "column": 11}}, {"id": 1429, "type": "case_statement", "text": "case 0: return \"i0\";", "parent": 1425, "children": [1430, 1431, 1432], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 24}}, {"id": 1430, "type": "case", "text": "case", "parent": 1429, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 8}}, {"id": 1431, "type": "number_literal", "text": "0", "parent": 1429, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 10}}, {"id": 1432, "type": "return_statement", "text": "return \"i0\";", "parent": 1429, "children": [1433], "start_point": {"row": 165, "column": 12}, "end_point": {"row": 165, "column": 24}}, {"id": 1433, "type": "string_literal", "text": "\"i0\"", "parent": 1432, "children": [], "start_point": {"row": 165, "column": 19}, "end_point": {"row": 165, "column": 23}}, {"id": 1434, "type": "case_statement", "text": "case 1: return \"i1\";", "parent": 1425, "children": [1435, 1436, 1437], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 24}}, {"id": 1435, "type": "case", "text": "case", "parent": 1434, "children": [], "start_point": {"row": 166, "column": 4}, "end_point": {"row": 166, "column": 8}}, {"id": 1436, "type": "number_literal", "text": "1", "parent": 1434, "children": [], "start_point": {"row": 166, "column": 9}, "end_point": {"row": 166, "column": 10}}, {"id": 1437, "type": "return_statement", "text": "return \"i1\";", "parent": 1434, "children": [1438], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 24}}, {"id": 1438, "type": "string_literal", "text": "\"i1\"", "parent": 1437, "children": [], "start_point": {"row": 166, "column": 19}, "end_point": {"row": 166, "column": 23}}, {"id": 1439, "type": "case_statement", "text": "case 2: return \"i2\";", "parent": 1425, "children": [1440, 1441, 1442], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 24}}, {"id": 1440, "type": "case", "text": "case", "parent": 1439, "children": [], "start_point": {"row": 167, "column": 4}, "end_point": {"row": 167, "column": 8}}, {"id": 1441, "type": "number_literal", "text": "2", "parent": 1439, "children": [], "start_point": {"row": 167, "column": 9}, "end_point": {"row": 167, "column": 10}}, {"id": 1442, "type": "return_statement", "text": "return \"i2\";", "parent": 1439, "children": [1443], "start_point": {"row": 167, "column": 12}, "end_point": {"row": 167, "column": 24}}, {"id": 1443, "type": "string_literal", "text": "\"i2\"", "parent": 1442, "children": [], "start_point": {"row": 167, "column": 19}, "end_point": {"row": 167, "column": 23}}, {"id": 1444, "type": "case_statement", "text": "case 3: return \"i3\";", "parent": 1425, "children": [1445, 1446, 1447], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 24}}, {"id": 1445, "type": "case", "text": "case", "parent": 1444, "children": [], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 8}}, {"id": 1446, "type": "number_literal", "text": "3", "parent": 1444, "children": [], "start_point": {"row": 168, "column": 9}, "end_point": {"row": 168, "column": 10}}, {"id": 1447, "type": "return_statement", "text": "return \"i3\";", "parent": 1444, "children": [1448], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 24}}, {"id": 1448, "type": "string_literal", "text": "\"i3\"", "parent": 1447, "children": [], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 23}}, {"id": 1449, "type": "case_statement", "text": "default: return 0;", "parent": 1425, "children": [1450, 1451], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 22}}, {"id": 1450, "type": "default", "text": "default", "parent": 1449, "children": [], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 11}}, {"id": 1451, "type": "return_statement", "text": "return 0;", "parent": 1449, "children": [1452], "start_point": {"row": 169, "column": 13}, "end_point": {"row": 169, "column": 22}}, {"id": 1452, "type": "number_literal", "text": "0", "parent": 1451, "children": [], "start_point": {"row": 169, "column": 20}, "end_point": {"row": 169, "column": 21}}, {"id": 1453, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return \"o0\";\n case 1: return \"o1\";\n case 2: return \"o2\";\n case 3: return \"o3\";\n default: return 0;\n }\n}", "parent": 3, "children": [1454, 1455, 1457], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 181, "column": 1}}, {"id": 1454, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1453, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 20}}, {"id": 1455, "type": "ERROR", "text": "char", "parent": 1453, "children": [1456], "start_point": {"row": 173, "column": 27}, "end_point": {"row": 173, "column": 31}}, {"id": 1456, "type": "identifier", "text": "char", "parent": 1455, "children": [], "start_point": {"row": 173, "column": 27}, "end_point": {"row": 173, "column": 31}}, {"id": 1457, "type": "pointer_declarator", "text": "* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i)", "parent": 1453, "children": [1458, 1459], "start_point": {"row": 173, "column": 31}, "end_point": {"row": 173, "column": 94}}, {"id": 1458, "type": "*", "text": "*", "parent": 1457, "children": [], "start_point": {"row": 173, "column": 31}, "end_point": {"row": 173, "column": 32}}, {"id": 1459, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i)", "parent": 1457, "children": [1460, 1461], "start_point": {"row": 173, "column": 33}, "end_point": {"row": 173, "column": 94}}, {"id": 1460, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out", "parent": 1459, "children": [], "start_point": {"row": 173, "column": 33}, "end_point": {"row": 173, "column": 80}}, {"id": 1461, "type": "parameter_list", "text": "(casadi_int i)", "parent": 1459, "children": [1462], "start_point": {"row": 173, "column": 80}, "end_point": {"row": 173, "column": 94}}, {"id": 1462, "type": "parameter_declaration", "text": "casadi_int i", "parent": 1461, "children": [1463, 1464], "start_point": {"row": 173, "column": 81}, "end_point": {"row": 173, "column": 93}}, {"id": 1463, "type": "type_identifier", "text": "casadi_int", "parent": 1462, "children": [], "start_point": {"row": 173, "column": 81}, "end_point": {"row": 173, "column": 91}}, {"id": 1464, "type": "identifier", "text": "i", "parent": 1462, "children": [], "start_point": {"row": 173, "column": 92}, "end_point": {"row": 173, "column": 93}}, {"id": 1465, "type": "switch_statement", "text": "switch (i) {\n case 0: return \"o0\";\n case 1: return \"o1\";\n case 2: return \"o2\";\n case 3: return \"o3\";\n default: return 0;\n }", "parent": 1453, "children": [1466, 1467], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 180, "column": 3}}, {"id": 1466, "type": "switch", "text": "switch", "parent": 1465, "children": [], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 8}}, {"id": 1467, "type": "parenthesized_expression", "text": "(i)", "parent": 1465, "children": [1468], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 12}}, {"id": 1468, "type": "identifier", "text": "i", "parent": 1467, "children": [], "start_point": {"row": 174, "column": 10}, "end_point": {"row": 174, "column": 11}}, {"id": 1469, "type": "case_statement", "text": "case 0: return \"o0\";", "parent": 1465, "children": [1470, 1471, 1472], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 24}}, {"id": 1470, "type": "case", "text": "case", "parent": 1469, "children": [], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 175, "column": 8}}, {"id": 1471, "type": "number_literal", "text": "0", "parent": 1469, "children": [], "start_point": {"row": 175, "column": 9}, "end_point": {"row": 175, "column": 10}}, {"id": 1472, "type": "return_statement", "text": "return \"o0\";", "parent": 1469, "children": [1473], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 24}}, {"id": 1473, "type": "string_literal", "text": "\"o0\"", "parent": 1472, "children": [], "start_point": {"row": 175, "column": 19}, "end_point": {"row": 175, "column": 23}}, {"id": 1474, "type": "case_statement", "text": "case 1: return \"o1\";", "parent": 1465, "children": [1475, 1476, 1477], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 24}}, {"id": 1475, "type": "case", "text": "case", "parent": 1474, "children": [], "start_point": {"row": 176, "column": 4}, "end_point": {"row": 176, "column": 8}}, {"id": 1476, "type": "number_literal", "text": "1", "parent": 1474, "children": [], "start_point": {"row": 176, "column": 9}, "end_point": {"row": 176, "column": 10}}, {"id": 1477, "type": "return_statement", "text": "return \"o1\";", "parent": 1474, "children": [1478], "start_point": {"row": 176, "column": 12}, "end_point": {"row": 176, "column": 24}}, {"id": 1478, "type": "string_literal", "text": "\"o1\"", "parent": 1477, "children": [], "start_point": {"row": 176, "column": 19}, "end_point": {"row": 176, "column": 23}}, {"id": 1479, "type": "case_statement", "text": "case 2: return \"o2\";", "parent": 1465, "children": [1480, 1481, 1482], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 24}}, {"id": 1480, "type": "case", "text": "case", "parent": 1479, "children": [], "start_point": {"row": 177, "column": 4}, "end_point": {"row": 177, "column": 8}}, {"id": 1481, "type": "number_literal", "text": "2", "parent": 1479, "children": [], "start_point": {"row": 177, "column": 9}, "end_point": {"row": 177, "column": 10}}, {"id": 1482, "type": "return_statement", "text": "return \"o2\";", "parent": 1479, "children": [1483], "start_point": {"row": 177, "column": 12}, "end_point": {"row": 177, "column": 24}}, {"id": 1483, "type": "string_literal", "text": "\"o2\"", "parent": 1482, "children": [], "start_point": {"row": 177, "column": 19}, "end_point": {"row": 177, "column": 23}}, {"id": 1484, "type": "case_statement", "text": "case 3: return \"o3\";", "parent": 1465, "children": [1485, 1486, 1487], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 24}}, {"id": 1485, "type": "case", "text": "case", "parent": 1484, "children": [], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 8}}, {"id": 1486, "type": "number_literal", "text": "3", "parent": 1484, "children": [], "start_point": {"row": 178, "column": 9}, "end_point": {"row": 178, "column": 10}}, {"id": 1487, "type": "return_statement", "text": "return \"o3\";", "parent": 1484, "children": [1488], "start_point": {"row": 178, "column": 12}, "end_point": {"row": 178, "column": 24}}, {"id": 1488, "type": "string_literal", "text": "\"o3\"", "parent": 1487, "children": [], "start_point": {"row": 178, "column": 19}, "end_point": {"row": 178, "column": 23}}, {"id": 1489, "type": "case_statement", "text": "default: return 0;", "parent": 1465, "children": [1490, 1491], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 22}}, {"id": 1490, "type": "default", "text": "default", "parent": 1489, "children": [], "start_point": {"row": 179, "column": 4}, "end_point": {"row": 179, "column": 11}}, {"id": 1491, "type": "return_statement", "text": "return 0;", "parent": 1489, "children": [1492], "start_point": {"row": 179, "column": 13}, "end_point": {"row": 179, "column": 22}}, {"id": 1492, "type": "number_literal", "text": "0", "parent": 1491, "children": [], "start_point": {"row": 179, "column": 20}, "end_point": {"row": 179, "column": 21}}, {"id": 1493, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}", "parent": 3, "children": [1494, 1495, 1497], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 191, "column": 1}}, {"id": 1494, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1493, "children": [], "start_point": {"row": 183, "column": 0}, "end_point": {"row": 183, "column": 20}}, {"id": 1495, "type": "ERROR", "text": "casadi_int", "parent": 1493, "children": [1496], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 37}}, {"id": 1496, "type": "identifier", "text": "casadi_int", "parent": 1495, "children": [], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 37}}, {"id": 1497, "type": "pointer_declarator", "text": "* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i)", "parent": 1493, "children": [1498, 1499], "start_point": {"row": 183, "column": 37}, "end_point": {"row": 183, "column": 103}}, {"id": 1498, "type": "*", "text": "*", "parent": 1497, "children": [], "start_point": {"row": 183, "column": 37}, "end_point": {"row": 183, "column": 38}}, {"id": 1499, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i)", "parent": 1497, "children": [1500, 1501], "start_point": {"row": 183, "column": 39}, "end_point": {"row": 183, "column": 103}}, {"id": 1500, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in", "parent": 1499, "children": [], "start_point": {"row": 183, "column": 39}, "end_point": {"row": 183, "column": 89}}, {"id": 1501, "type": "parameter_list", "text": "(casadi_int i)", "parent": 1499, "children": [1502], "start_point": {"row": 183, "column": 89}, "end_point": {"row": 183, "column": 103}}, {"id": 1502, "type": "parameter_declaration", "text": "casadi_int i", "parent": 1501, "children": [1503, 1504], "start_point": {"row": 183, "column": 90}, "end_point": {"row": 183, "column": 102}}, {"id": 1503, "type": "type_identifier", "text": "casadi_int", "parent": 1502, "children": [], "start_point": {"row": 183, "column": 90}, "end_point": {"row": 183, "column": 100}}, {"id": 1504, "type": "identifier", "text": "i", "parent": 1502, "children": [], "start_point": {"row": 183, "column": 101}, "end_point": {"row": 183, "column": 102}}, {"id": 1505, "type": "switch_statement", "text": "switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }", "parent": 1493, "children": [1506, 1507], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 190, "column": 3}}, {"id": 1506, "type": "switch", "text": "switch", "parent": 1505, "children": [], "start_point": {"row": 184, "column": 2}, "end_point": {"row": 184, "column": 8}}, {"id": 1507, "type": "parenthesized_expression", "text": "(i)", "parent": 1505, "children": [1508], "start_point": {"row": 184, "column": 9}, "end_point": {"row": 184, "column": 12}}, {"id": 1508, "type": "identifier", "text": "i", "parent": 1507, "children": [], "start_point": {"row": 184, "column": 10}, "end_point": {"row": 184, "column": 11}}, {"id": 1509, "type": "case_statement", "text": "case 0: return casadi_s0;", "parent": 1505, "children": [1510, 1511, 1512], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 29}}, {"id": 1510, "type": "case", "text": "case", "parent": 1509, "children": [], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 8}}, {"id": 1511, "type": "number_literal", "text": "0", "parent": 1509, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 10}}, {"id": 1512, "type": "return_statement", "text": "return casadi_s0;", "parent": 1509, "children": [1513], "start_point": {"row": 185, "column": 12}, "end_point": {"row": 185, "column": 29}}, {"id": 1513, "type": "identifier", "text": "casadi_s0", "parent": 1512, "children": [], "start_point": {"row": 185, "column": 19}, "end_point": {"row": 185, "column": 28}}, {"id": 1514, "type": "case_statement", "text": "case 1: return casadi_s0;", "parent": 1505, "children": [1515, 1516, 1517], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 29}}, {"id": 1515, "type": "case", "text": "case", "parent": 1514, "children": [], "start_point": {"row": 186, "column": 4}, "end_point": {"row": 186, "column": 8}}, {"id": 1516, "type": "number_literal", "text": "1", "parent": 1514, "children": [], "start_point": {"row": 186, "column": 9}, "end_point": {"row": 186, "column": 10}}, {"id": 1517, "type": "return_statement", "text": "return casadi_s0;", "parent": 1514, "children": [1518], "start_point": {"row": 186, "column": 12}, "end_point": {"row": 186, "column": 29}}, {"id": 1518, "type": "identifier", "text": "casadi_s0", "parent": 1517, "children": [], "start_point": {"row": 186, "column": 19}, "end_point": {"row": 186, "column": 28}}, {"id": 1519, "type": "case_statement", "text": "case 2: return casadi_s1;", "parent": 1505, "children": [1520, 1521, 1522], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 29}}, {"id": 1520, "type": "case", "text": "case", "parent": 1519, "children": [], "start_point": {"row": 187, "column": 4}, "end_point": {"row": 187, "column": 8}}, {"id": 1521, "type": "number_literal", "text": "2", "parent": 1519, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 10}}, {"id": 1522, "type": "return_statement", "text": "return casadi_s1;", "parent": 1519, "children": [1523], "start_point": {"row": 187, "column": 12}, "end_point": {"row": 187, "column": 29}}, {"id": 1523, "type": "identifier", "text": "casadi_s1", "parent": 1522, "children": [], "start_point": {"row": 187, "column": 19}, "end_point": {"row": 187, "column": 28}}, {"id": 1524, "type": "case_statement", "text": "case 3: return casadi_s2;", "parent": 1505, "children": [1525, 1526, 1527], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 29}}, {"id": 1525, "type": "case", "text": "case", "parent": 1524, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 8}}, {"id": 1526, "type": "number_literal", "text": "3", "parent": 1524, "children": [], "start_point": {"row": 188, "column": 9}, "end_point": {"row": 188, "column": 10}}, {"id": 1527, "type": "return_statement", "text": "return casadi_s2;", "parent": 1524, "children": [1528], "start_point": {"row": 188, "column": 12}, "end_point": {"row": 188, "column": 29}}, {"id": 1528, "type": "identifier", "text": "casadi_s2", "parent": 1527, "children": [], "start_point": {"row": 188, "column": 19}, "end_point": {"row": 188, "column": 28}}, {"id": 1529, "type": "case_statement", "text": "default: return 0;", "parent": 1505, "children": [1530, 1531], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 22}}, {"id": 1530, "type": "default", "text": "default", "parent": 1529, "children": [], "start_point": {"row": 189, "column": 4}, "end_point": {"row": 189, "column": 11}}, {"id": 1531, "type": "return_statement", "text": "return 0;", "parent": 1529, "children": [1532], "start_point": {"row": 189, "column": 13}, "end_point": {"row": 189, "column": 22}}, {"id": 1532, "type": "number_literal", "text": "0", "parent": 1531, "children": [], "start_point": {"row": 189, "column": 20}, "end_point": {"row": 189, "column": 21}}, {"id": 1533, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}", "parent": 3, "children": [1534, 1535, 1537], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 201, "column": 1}}, {"id": 1534, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1533, "children": [], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 193, "column": 20}}, {"id": 1535, "type": "ERROR", "text": "casadi_int", "parent": 1533, "children": [1536], "start_point": {"row": 193, "column": 27}, "end_point": {"row": 193, "column": 37}}, {"id": 1536, "type": "identifier", "text": "casadi_int", "parent": 1535, "children": [], "start_point": {"row": 193, "column": 27}, "end_point": {"row": 193, "column": 37}}, {"id": 1537, "type": "pointer_declarator", "text": "* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i)", "parent": 1533, "children": [1538, 1539], "start_point": {"row": 193, "column": 37}, "end_point": {"row": 193, "column": 104}}, {"id": 1538, "type": "*", "text": "*", "parent": 1537, "children": [], "start_point": {"row": 193, "column": 37}, "end_point": {"row": 193, "column": 38}}, {"id": 1539, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i)", "parent": 1537, "children": [1540, 1541], "start_point": {"row": 193, "column": 39}, "end_point": {"row": 193, "column": 104}}, {"id": 1540, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out", "parent": 1539, "children": [], "start_point": {"row": 193, "column": 39}, "end_point": {"row": 193, "column": 90}}, {"id": 1541, "type": "parameter_list", "text": "(casadi_int i)", "parent": 1539, "children": [1542], "start_point": {"row": 193, "column": 90}, "end_point": {"row": 193, "column": 104}}, {"id": 1542, "type": "parameter_declaration", "text": "casadi_int i", "parent": 1541, "children": [1543, 1544], "start_point": {"row": 193, "column": 91}, "end_point": {"row": 193, "column": 103}}, {"id": 1543, "type": "type_identifier", "text": "casadi_int", "parent": 1542, "children": [], "start_point": {"row": 193, "column": 91}, "end_point": {"row": 193, "column": 101}}, {"id": 1544, "type": "identifier", "text": "i", "parent": 1542, "children": [], "start_point": {"row": 193, "column": 102}, "end_point": {"row": 193, "column": 103}}, {"id": 1545, "type": "switch_statement", "text": "switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }", "parent": 1533, "children": [1546, 1547], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 200, "column": 3}}, {"id": 1546, "type": "switch", "text": "switch", "parent": 1545, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 8}}, {"id": 1547, "type": "parenthesized_expression", "text": "(i)", "parent": 1545, "children": [1548], "start_point": {"row": 194, "column": 9}, "end_point": {"row": 194, "column": 12}}, {"id": 1548, "type": "identifier", "text": "i", "parent": 1547, "children": [], "start_point": {"row": 194, "column": 10}, "end_point": {"row": 194, "column": 11}}, {"id": 1549, "type": "case_statement", "text": "case 0: return casadi_s3;", "parent": 1545, "children": [1550, 1551, 1552], "start_point": {"row": 195, "column": 4}, "end_point": {"row": 195, "column": 29}}, {"id": 1550, "type": "case", "text": "case", "parent": 1549, "children": [], "start_point": {"row": 195, "column": 4}, "end_point": {"row": 195, "column": 8}}, {"id": 1551, "type": "number_literal", "text": "0", "parent": 1549, "children": [], "start_point": {"row": 195, "column": 9}, "end_point": {"row": 195, "column": 10}}, {"id": 1552, "type": "return_statement", "text": "return casadi_s3;", "parent": 1549, "children": [1553], "start_point": {"row": 195, "column": 12}, "end_point": {"row": 195, "column": 29}}, {"id": 1553, "type": "identifier", "text": "casadi_s3", "parent": 1552, "children": [], "start_point": {"row": 195, "column": 19}, "end_point": {"row": 195, "column": 28}}, {"id": 1554, "type": "case_statement", "text": "case 1: return casadi_s4;", "parent": 1545, "children": [1555, 1556, 1557], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 29}}, {"id": 1555, "type": "case", "text": "case", "parent": 1554, "children": [], "start_point": {"row": 196, "column": 4}, "end_point": {"row": 196, "column": 8}}, {"id": 1556, "type": "number_literal", "text": "1", "parent": 1554, "children": [], "start_point": {"row": 196, "column": 9}, "end_point": {"row": 196, "column": 10}}, {"id": 1557, "type": "return_statement", "text": "return casadi_s4;", "parent": 1554, "children": [1558], "start_point": {"row": 196, "column": 12}, "end_point": {"row": 196, "column": 29}}, {"id": 1558, "type": "identifier", "text": "casadi_s4", "parent": 1557, "children": [], "start_point": {"row": 196, "column": 19}, "end_point": {"row": 196, "column": 28}}, {"id": 1559, "type": "case_statement", "text": "case 2: return casadi_s5;", "parent": 1545, "children": [1560, 1561, 1562], "start_point": {"row": 197, "column": 4}, "end_point": {"row": 197, "column": 29}}, {"id": 1560, "type": "case", "text": "case", "parent": 1559, "children": [], "start_point": {"row": 197, "column": 4}, "end_point": {"row": 197, "column": 8}}, {"id": 1561, "type": "number_literal", "text": "2", "parent": 1559, "children": [], "start_point": {"row": 197, "column": 9}, "end_point": {"row": 197, "column": 10}}, {"id": 1562, "type": "return_statement", "text": "return casadi_s5;", "parent": 1559, "children": [1563], "start_point": {"row": 197, "column": 12}, "end_point": {"row": 197, "column": 29}}, {"id": 1563, "type": "identifier", "text": "casadi_s5", "parent": 1562, "children": [], "start_point": {"row": 197, "column": 19}, "end_point": {"row": 197, "column": 28}}, {"id": 1564, "type": "case_statement", "text": "case 3: return casadi_s6;", "parent": 1545, "children": [1565, 1566, 1567], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 29}}, {"id": 1565, "type": "case", "text": "case", "parent": 1564, "children": [], "start_point": {"row": 198, "column": 4}, "end_point": {"row": 198, "column": 8}}, {"id": 1566, "type": "number_literal", "text": "3", "parent": 1564, "children": [], "start_point": {"row": 198, "column": 9}, "end_point": {"row": 198, "column": 10}}, {"id": 1567, "type": "return_statement", "text": "return casadi_s6;", "parent": 1564, "children": [1568], "start_point": {"row": 198, "column": 12}, "end_point": {"row": 198, "column": 29}}, {"id": 1568, "type": "identifier", "text": "casadi_s6", "parent": 1567, "children": [], "start_point": {"row": 198, "column": 19}, "end_point": {"row": 198, "column": 28}}, {"id": 1569, "type": "case_statement", "text": "default: return 0;", "parent": 1545, "children": [1570, 1571], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 22}}, {"id": 1570, "type": "default", "text": "default", "parent": 1569, "children": [], "start_point": {"row": 199, "column": 4}, "end_point": {"row": 199, "column": 11}}, {"id": 1571, "type": "return_statement", "text": "return 0;", "parent": 1569, "children": [1572], "start_point": {"row": 199, "column": 13}, "end_point": {"row": 199, "column": 22}}, {"id": 1572, "type": "number_literal", "text": "0", "parent": 1571, "children": [], "start_point": {"row": 199, "column": 20}, "end_point": {"row": 199, "column": 21}}, {"id": 1573, "type": "function_definition", "text": "CASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}", "parent": 3, "children": [1574, 1575, 1577], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 209, "column": 1}}, {"id": 1574, "type": "type_identifier", "text": "CASADI_SYMBOL_EXPORT", "parent": 1573, "children": [], "start_point": {"row": 203, "column": 0}, "end_point": {"row": 203, "column": 20}}, {"id": 1575, "type": "ERROR", "text": "int", "parent": 1573, "children": [1576], "start_point": {"row": 203, "column": 21}, "end_point": {"row": 203, "column": 24}}, {"id": 1576, "type": "identifier", "text": "int", "parent": 1575, "children": [], "start_point": {"row": 203, "column": 21}, "end_point": {"row": 203, "column": 24}}, {"id": 1577, "type": "function_declarator", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w)", "parent": 1573, "children": [1578, 1579], "start_point": {"row": 203, "column": 25}, "end_point": {"row": 203, "column": 145}}, {"id": 1578, "type": "identifier", "text": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_work", "parent": 1577, "children": [], "start_point": {"row": 203, "column": 25}, "end_point": {"row": 203, "column": 68}}, {"id": 1579, "type": "parameter_list", "text": "(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w)", "parent": 1577, "children": [1580, 1585, 1590, 1595], "start_point": {"row": 203, "column": 68}, "end_point": {"row": 203, "column": 145}}, {"id": 1580, "type": "parameter_declaration", "text": "casadi_int *sz_arg", "parent": 1579, "children": [1581, 1582], "start_point": {"row": 203, "column": 69}, "end_point": {"row": 203, "column": 87}}, {"id": 1581, "type": "type_identifier", "text": "casadi_int", "parent": 1580, "children": [], "start_point": {"row": 203, "column": 69}, "end_point": {"row": 203, "column": 79}}, {"id": 1582, "type": "pointer_declarator", "text": "*sz_arg", "parent": 1580, "children": [1583, 1584], "start_point": {"row": 203, "column": 80}, "end_point": {"row": 203, "column": 87}}, {"id": 1583, "type": "*", "text": "*", "parent": 1582, "children": [], "start_point": {"row": 203, "column": 80}, "end_point": {"row": 203, "column": 81}}, {"id": 1584, "type": "identifier", "text": "sz_arg", "parent": 1582, "children": [], "start_point": {"row": 203, "column": 81}, "end_point": {"row": 203, "column": 87}}, {"id": 1585, "type": "parameter_declaration", "text": "casadi_int* sz_res", "parent": 1579, "children": [1586, 1587], "start_point": {"row": 203, "column": 89}, "end_point": {"row": 203, "column": 107}}, {"id": 1586, "type": "type_identifier", "text": "casadi_int", "parent": 1585, "children": [], "start_point": {"row": 203, "column": 89}, "end_point": {"row": 203, "column": 99}}, {"id": 1587, "type": "pointer_declarator", "text": "* sz_res", "parent": 1585, "children": [1588, 1589], "start_point": {"row": 203, "column": 99}, "end_point": {"row": 203, "column": 107}}, {"id": 1588, "type": "*", "text": "*", "parent": 1587, "children": [], "start_point": {"row": 203, "column": 99}, "end_point": {"row": 203, "column": 100}}, {"id": 1589, "type": "identifier", "text": "sz_res", "parent": 1587, "children": [], "start_point": {"row": 203, "column": 101}, "end_point": {"row": 203, "column": 107}}, {"id": 1590, "type": "parameter_declaration", "text": "casadi_int *sz_iw", "parent": 1579, "children": [1591, 1592], "start_point": {"row": 203, "column": 109}, "end_point": {"row": 203, "column": 126}}, {"id": 1591, "type": "type_identifier", "text": "casadi_int", "parent": 1590, "children": [], "start_point": {"row": 203, "column": 109}, "end_point": {"row": 203, "column": 119}}, {"id": 1592, "type": "pointer_declarator", "text": "*sz_iw", "parent": 1590, "children": [1593, 1594], "start_point": {"row": 203, "column": 120}, "end_point": {"row": 203, "column": 126}}, {"id": 1593, "type": "*", "text": "*", "parent": 1592, "children": [], "start_point": {"row": 203, "column": 120}, "end_point": {"row": 203, "column": 121}}, {"id": 1594, "type": "identifier", "text": "sz_iw", "parent": 1592, "children": [], "start_point": {"row": 203, "column": 121}, "end_point": {"row": 203, "column": 126}}, {"id": 1595, "type": "parameter_declaration", "text": "casadi_int *sz_w", "parent": 1579, "children": [1596, 1597], "start_point": {"row": 203, "column": 128}, "end_point": {"row": 203, "column": 144}}, {"id": 1596, "type": "type_identifier", "text": "casadi_int", "parent": 1595, "children": [], "start_point": {"row": 203, "column": 128}, "end_point": {"row": 203, "column": 138}}, {"id": 1597, "type": "pointer_declarator", "text": "*sz_w", "parent": 1595, "children": [1598, 1599], "start_point": {"row": 203, "column": 139}, "end_point": {"row": 203, "column": 144}}, {"id": 1598, "type": "*", "text": "*", "parent": 1597, "children": [], "start_point": {"row": 203, "column": 139}, "end_point": {"row": 203, "column": 140}}, {"id": 1599, "type": "identifier", "text": "sz_w", "parent": 1597, "children": [], "start_point": {"row": 203, "column": 140}, "end_point": {"row": 203, "column": 144}}, {"id": 1600, "type": "if_statement", "text": "if (sz_arg) *sz_arg = 4;", "parent": 1573, "children": [1601], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 26}}, {"id": 1601, "type": "parenthesized_expression", "text": "(sz_arg)", "parent": 1600, "children": [1602], "start_point": {"row": 204, "column": 5}, "end_point": {"row": 204, "column": 13}}, {"id": 1602, "type": "identifier", "text": "sz_arg", "parent": 1601, "children": [], "start_point": {"row": 204, "column": 6}, "end_point": {"row": 204, "column": 12}}, {"id": 1603, "type": "assignment_expression", "text": "*sz_arg = 4", "parent": 1600, "children": [1604, 1607, 1608], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 25}}, {"id": 1604, "type": "pointer_expression", "text": "*sz_arg", "parent": 1603, "children": [1605, 1606], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 21}}, {"id": 1605, "type": "*", "text": "*", "parent": 1604, "children": [], "start_point": {"row": 204, "column": 14}, "end_point": {"row": 204, "column": 15}}, {"id": 1606, "type": "identifier", "text": "sz_arg", "parent": 1604, "children": [], "start_point": {"row": 204, "column": 15}, "end_point": {"row": 204, "column": 21}}, {"id": 1607, "type": "=", "text": "=", "parent": 1603, "children": [], "start_point": {"row": 204, "column": 22}, "end_point": {"row": 204, "column": 23}}, {"id": 1608, "type": "number_literal", "text": "4", "parent": 1603, "children": [], "start_point": {"row": 204, "column": 24}, "end_point": {"row": 204, "column": 25}}, {"id": 1609, "type": "if_statement", "text": "if (sz_res) *sz_res = 4;", "parent": 1573, "children": [1610], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 26}}, {"id": 1610, "type": "parenthesized_expression", "text": "(sz_res)", "parent": 1609, "children": [1611], "start_point": {"row": 205, "column": 5}, "end_point": {"row": 205, "column": 13}}, {"id": 1611, "type": "identifier", "text": "sz_res", "parent": 1610, "children": [], "start_point": {"row": 205, "column": 6}, "end_point": {"row": 205, "column": 12}}, {"id": 1612, "type": "assignment_expression", "text": "*sz_res = 4", "parent": 1609, "children": [1613, 1616, 1617], "start_point": {"row": 205, "column": 14}, "end_point": {"row": 205, "column": 25}}, {"id": 1613, "type": "pointer_expression", "text": "*sz_res", "parent": 1612, "children": [1614, 1615], "start_point": {"row": 205, "column": 14}, "end_point": {"row": 205, "column": 21}}, {"id": 1614, "type": "*", "text": "*", "parent": 1613, "children": [], "start_point": {"row": 205, "column": 14}, "end_point": {"row": 205, "column": 15}}, {"id": 1615, "type": "identifier", "text": "sz_res", "parent": 1613, "children": [], "start_point": {"row": 205, "column": 15}, "end_point": {"row": 205, "column": 21}}, {"id": 1616, "type": "=", "text": "=", "parent": 1612, "children": [], "start_point": {"row": 205, "column": 22}, "end_point": {"row": 205, "column": 23}}, {"id": 1617, "type": "number_literal", "text": "4", "parent": 1612, "children": [], "start_point": {"row": 205, "column": 24}, "end_point": {"row": 205, "column": 25}}, {"id": 1618, "type": "if_statement", "text": "if (sz_iw) *sz_iw = 0;", "parent": 1573, "children": [1619], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 24}}, {"id": 1619, "type": "parenthesized_expression", "text": "(sz_iw)", "parent": 1618, "children": [1620], "start_point": {"row": 206, "column": 5}, "end_point": {"row": 206, "column": 12}}, {"id": 1620, "type": "identifier", "text": "sz_iw", "parent": 1619, "children": [], "start_point": {"row": 206, "column": 6}, "end_point": {"row": 206, "column": 11}}, {"id": 1621, "type": "assignment_expression", "text": "*sz_iw = 0", "parent": 1618, "children": [1622, 1625, 1626], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 23}}, {"id": 1622, "type": "pointer_expression", "text": "*sz_iw", "parent": 1621, "children": [1623, 1624], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 19}}, {"id": 1623, "type": "*", "text": "*", "parent": 1622, "children": [], "start_point": {"row": 206, "column": 13}, "end_point": {"row": 206, "column": 14}}, {"id": 1624, "type": "identifier", "text": "sz_iw", "parent": 1622, "children": [], "start_point": {"row": 206, "column": 14}, "end_point": {"row": 206, "column": 19}}, {"id": 1625, "type": "=", "text": "=", "parent": 1621, "children": [], "start_point": {"row": 206, "column": 20}, "end_point": {"row": 206, "column": 21}}, {"id": 1626, "type": "number_literal", "text": "0", "parent": 1621, "children": [], "start_point": {"row": 206, "column": 22}, "end_point": {"row": 206, "column": 23}}, {"id": 1627, "type": "if_statement", "text": "if (sz_w) *sz_w = 0;", "parent": 1573, "children": [1628], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 22}}, {"id": 1628, "type": "parenthesized_expression", "text": "(sz_w)", "parent": 1627, "children": [1629], "start_point": {"row": 207, "column": 5}, "end_point": {"row": 207, "column": 11}}, {"id": 1629, "type": "identifier", "text": "sz_w", "parent": 1628, "children": [], "start_point": {"row": 207, "column": 6}, "end_point": {"row": 207, "column": 10}}, {"id": 1630, "type": "assignment_expression", "text": "*sz_w = 0", "parent": 1627, "children": [1631, 1634, 1635], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 21}}, {"id": 1631, "type": "pointer_expression", "text": "*sz_w", "parent": 1630, "children": [1632, 1633], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 17}}, {"id": 1632, "type": "*", "text": "*", "parent": 1631, "children": [], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 13}}, {"id": 1633, "type": "identifier", "text": "sz_w", "parent": 1631, "children": [], "start_point": {"row": 207, "column": 13}, "end_point": {"row": 207, "column": 17}}, {"id": 1634, "type": "=", "text": "=", "parent": 1630, "children": [], "start_point": {"row": 207, "column": 18}, "end_point": {"row": 207, "column": 19}}, {"id": 1635, "type": "number_literal", "text": "0", "parent": 1630, "children": [], "start_point": {"row": 207, "column": 20}, "end_point": {"row": 207, "column": 21}}, {"id": 1636, "type": "return_statement", "text": "return 0;", "parent": 1573, "children": [1637], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 11}}, {"id": 1637, "type": "number_literal", "text": "0", "parent": 1636, "children": [], "start_point": {"row": 208, "column": 9}, "end_point": {"row": 208, "column": 10}}, {"id": 1638, "type": "preproc_ifdef", "text": "#ifdef __cplusplus", "parent": 3, "children": [1639, 1640, 1641], "start_point": {"row": 212, "column": 0}, "end_point": {"row": 212, "column": 18}}, {"id": 1639, "type": "#ifdef", "text": "#ifdef", "parent": 1638, "children": [], "start_point": {"row": 212, "column": 0}, "end_point": {"row": 212, "column": 6}}, {"id": 1640, "type": "identifier", "text": "__cplusplus", "parent": 1638, "children": [], "start_point": {"row": 212, "column": 7}, "end_point": {"row": 212, "column": 18}}, {"id": 1641, "type": "#endif", "text": "", "parent": 1638, "children": [], "start_point": {"row": 212, "column": 18}, "end_point": {"row": 212, "column": 18}}, {"id": 1642, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 214, "column": 6}}]}, "node_categories": {"declarations": {"functions": [11, 18, 25, 33, 284, 286, 1328, 1332, 1373, 1377, 1382, 1386, 1391, 1395, 1402, 1406, 1413, 1419, 1453, 1459, 1493, 1499, 1533, 1539, 1573, 1577], "variables": [148, 166, 179, 196, 219, 247, 270, 289, 296, 303, 308, 313, 318, 1335, 1342, 1349, 1354, 1359, 1380, 1389, 1398, 1409, 1422, 1462, 1502, 1542, 1580, 1585, 1590, 1595], "classes": [], "imports": [40, 41], "modules": [], "enums": []}, "statements": {"expressions": [96, 97, 128, 337, 341, 342, 351, 355, 356, 364, 365, 370, 371, 372, 378, 379, 389, 393, 394, 403, 407, 408, 416, 417, 422, 423, 424, 430, 431, 441, 445, 446, 455, 459, 460, 468, 469, 474, 475, 476, 482, 483, 493, 497, 498, 507, 511, 512, 520, 521, 526, 527, 528, 534, 535, 545, 549, 550, 559, 563, 564, 572, 573, 578, 579, 580, 586, 587, 597, 601, 602, 610, 611, 618, 619, 627, 631, 632, 640, 641, 648, 649, 654, 655, 656, 662, 663, 672, 673, 680, 681, 689, 693, 694, 702, 703, 710, 711, 716, 717, 718, 724, 725, 738, 739, 750, 751, 759, 763, 764, 773, 777, 778, 786, 787, 794, 795, 802, 803, 811, 815, 816, 824, 825, 832, 833, 838, 839, 840, 846, 847, 860, 861, 868, 869, 876, 877, 882, 883, 884, 890, 891, 900, 901, 912, 913, 920, 921, 926, 927, 928, 934, 935, 945, 949, 950, 958, 959, 964, 965, 966, 972, 973, 982, 983, 987, 988, 989, 995, 996, 1003, 1004, 1005, 1011, 1012, 1019, 1020, 1021, 1027, 1028, 1037, 1038, 1042, 1043, 1044, 1050, 1051, 1062, 1063, 1064, 1070, 1071, 1080, 1081, 1085, 1086, 1087, 1093, 1094, 1101, 1102, 1103, 1109, 1110, 1117, 1118, 1119, 1125, 1126, 1133, 1134, 1135, 1141, 1142, 1151, 1152, 1156, 1157, 1158, 1164, 1165, 1172, 1173, 1174, 1180, 1181, 1192, 1193, 1194, 1200, 1201, 1208, 1209, 1210, 1216, 1217, 1224, 1225, 1226, 1232, 1233, 1240, 1241, 1242, 1248, 1249, 1256, 1257, 1258, 1264, 1265, 1272, 1273, 1274, 1280, 1281, 1290, 1291, 1295, 1296, 1297, 1303, 1304, 1311, 1312, 1313, 1319, 1320, 1365, 1427, 1467, 1507, 1547, 1601, 1604, 1610, 1613, 1619, 1622, 1628, 1631], "assignments": [333, 347, 361, 377, 385, 399, 413, 429, 437, 451, 465, 481, 489, 503, 517, 533, 541, 555, 569, 585, 593, 607, 615, 623, 637, 645, 661, 669, 677, 685, 699, 707, 723, 731, 735, 743, 747, 755, 769, 783, 791, 799, 807, 821, 829, 845, 853, 857, 865, 873, 889, 897, 905, 909, 917, 933, 941, 955, 971, 979, 994, 1010, 1026, 1034, 1049, 1057, 1069, 1077, 1092, 1108, 1124, 1140, 1148, 1163, 1179, 1187, 1199, 1215, 1231, 1247, 1263, 1279, 1287, 1302, 1318, 1603, 1612, 1621, 1630], "loops": [], "conditionals": [0, 1, 2, 3, 8, 9, 10, 13, 15, 16, 20, 22, 23, 27, 29, 35, 37, 39, 43, 44, 45, 48, 50, 51, 52, 53, 56, 58, 61, 65, 69, 73, 77, 81, 85, 89, 91, 92, 93, 94, 95, 100, 104, 108, 110, 111, 114, 118, 123, 125, 126, 127, 131, 135, 139, 145, 146, 147, 149, 152, 167, 170, 180, 183, 197, 200, 220, 223, 248, 251, 271, 274, 287, 290, 295, 297, 302, 304, 307, 309, 312, 317, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 334, 336, 338, 343, 348, 350, 352, 357, 362, 366, 368, 369, 373, 380, 384, 386, 388, 390, 395, 400, 402, 404, 409, 414, 418, 420, 421, 425, 432, 436, 438, 440, 442, 447, 452, 454, 456, 461, 466, 470, 472, 473, 477, 484, 488, 490, 492, 494, 499, 504, 506, 508, 513, 518, 522, 524, 525, 529, 536, 540, 542, 544, 546, 551, 556, 558, 560, 565, 570, 574, 576, 577, 581, 588, 592, 594, 596, 598, 603, 608, 612, 614, 616, 620, 622, 624, 626, 628, 633, 638, 642, 644, 646, 650, 652, 653, 657, 664, 668, 670, 674, 676, 678, 682, 684, 686, 688, 690, 695, 700, 704, 706, 708, 712, 714, 715, 719, 726, 730, 732, 736, 740, 742, 744, 748, 752, 754, 756, 758, 760, 765, 770, 772, 774, 779, 784, 788, 790, 792, 796, 798, 800, 804, 806, 808, 810, 812, 817, 822, 826, 828, 830, 834, 836, 837, 841, 848, 852, 854, 858, 862, 864, 866, 870, 872, 874, 878, 880, 881, 885, 892, 896, 898, 902, 904, 906, 910, 914, 916, 918, 922, 924, 925, 929, 936, 940, 942, 944, 946, 951, 956, 960, 962, 963, 967, 974, 978, 980, 985, 986, 990, 997, 1001, 1002, 1006, 1013, 1017, 1018, 1022, 1029, 1033, 1035, 1040, 1041, 1045, 1052, 1056, 1058, 1061, 1065, 1072, 1076, 1078, 1083, 1084, 1088, 1095, 1099, 1100, 1104, 1111, 1115, 1116, 1120, 1127, 1131, 1132, 1136, 1143, 1147, 1149, 1154, 1155, 1159, 1166, 1170, 1171, 1175, 1182, 1186, 1188, 1191, 1195, 1202, 1206, 1207, 1211, 1218, 1222, 1223, 1227, 1234, 1238, 1239, 1243, 1250, 1254, 1255, 1259, 1266, 1270, 1271, 1275, 1282, 1286, 1288, 1293, 1294, 1298, 1305, 1309, 1310, 1314, 1321, 1325, 1329, 1331, 1333, 1336, 1341, 1343, 1348, 1350, 1353, 1355, 1358, 1363, 1366, 1368, 1369, 1370, 1371, 1372, 1374, 1376, 1378, 1383, 1385, 1387, 1392, 1394, 1396, 1403, 1405, 1407, 1414, 1416, 1420, 1423, 1424, 1425, 1426, 1428, 1429, 1430, 1434, 1435, 1439, 1440, 1444, 1445, 1449, 1454, 1456, 1460, 1463, 1464, 1465, 1466, 1468, 1469, 1470, 1474, 1475, 1479, 1480, 1484, 1485, 1489, 1494, 1496, 1500, 1503, 1504, 1505, 1506, 1508, 1509, 1510, 1513, 1514, 1515, 1518, 1519, 1520, 1523, 1524, 1525, 1528, 1529, 1534, 1536, 1540, 1543, 1544, 1545, 1546, 1548, 1549, 1550, 1553, 1554, 1555, 1558, 1559, 1560, 1563, 1564, 1565, 1568, 1569, 1574, 1576, 1578, 1581, 1584, 1586, 1589, 1591, 1594, 1596, 1599, 1600, 1602, 1606, 1609, 1611, 1615, 1618, 1620, 1624, 1627, 1629, 1633, 1638, 1639, 1640, 1641, 1642], "returns": [1326, 1364, 1400, 1411, 1432, 1437, 1442, 1447, 1451, 1472, 1477, 1482, 1487, 1491, 1512, 1517, 1522, 1527, 1531, 1552, 1557, 1562, 1567, 1571, 1636], "exceptions": []}, "expressions": {"calls": [6], "literals": [5, 42, 153, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 171, 174, 175, 176, 177, 178, 184, 187, 188, 189, 190, 191, 192, 193, 194, 195, 201, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 224, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 252, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 275, 278, 279, 280, 281, 282, 283, 339, 344, 345, 346, 353, 358, 359, 360, 374, 376, 381, 382, 391, 396, 397, 398, 405, 410, 411, 412, 426, 428, 433, 434, 443, 448, 449, 450, 457, 462, 463, 464, 478, 480, 485, 486, 495, 500, 501, 502, 509, 514, 515, 516, 530, 532, 537, 538, 547, 552, 553, 554, 561, 566, 567, 568, 582, 584, 589, 590, 599, 604, 605, 606, 629, 634, 635, 636, 658, 660, 665, 666, 691, 696, 697, 698, 720, 722, 727, 728, 734, 746, 761, 766, 767, 768, 775, 780, 781, 782, 813, 818, 819, 820, 842, 844, 849, 850, 856, 886, 888, 893, 894, 908, 930, 932, 937, 938, 947, 952, 953, 954, 968, 970, 975, 976, 991, 993, 998, 999, 1007, 1009, 1014, 1015, 1023, 1025, 1030, 1031, 1046, 1048, 1053, 1054, 1060, 1066, 1068, 1073, 1074, 1089, 1091, 1096, 1097, 1105, 1107, 1112, 1113, 1121, 1123, 1128, 1129, 1137, 1139, 1144, 1145, 1160, 1162, 1167, 1168, 1176, 1178, 1183, 1184, 1190, 1196, 1198, 1203, 1204, 1212, 1214, 1219, 1220, 1228, 1230, 1235, 1236, 1244, 1246, 1251, 1252, 1260, 1262, 1267, 1268, 1276, 1278, 1283, 1284, 1299, 1301, 1306, 1307, 1315, 1317, 1322, 1323, 1327, 1401, 1412, 1431, 1433, 1436, 1438, 1441, 1443, 1446, 1448, 1452, 1471, 1473, 1476, 1478, 1481, 1483, 1486, 1488, 1492, 1511, 1516, 1521, 1526, 1532, 1551, 1556, 1561, 1566, 1572, 1608, 1617, 1626, 1635, 1637], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "#define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n"}, {"node_id": 18, "universal_type": "function", "name": "unknown", "text_snippet": "#define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "#define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n"}, {"node_id": 33, "universal_type": "function", "name": "unknown", "text_snippet": "#define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n"}, {"node_id": 284, "universal_type": "function", "name": "casadi_f0", "text_snippet": "static int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, voi"}, {"node_id": 286, "universal_type": "function", "name": "unknown", "text_snippet": "casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem)"}, {"node_id": 1328, "universal_type": "function", "name": "inv_pendulum_impl_ode_fun_jac_x_xdot_u", "text_snippet": "CASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real"}, {"node_id": 1332, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, c"}, {"node_id": 1373, "universal_type": "function", "name": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref", "text_snippet": "CASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}"}, {"node_id": 1377, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void)"}, {"node_id": 1382, "universal_type": "function", "name": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref", "text_snippet": "CASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}"}, {"node_id": 1386, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void)"}, {"node_id": 1391, "universal_type": "function", "name": "unknown", "text_snippet": "CASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}"}, {"node_id": 1395, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void)"}, {"node_id": 1402, "universal_type": "function", "name": "unknown", "text_snippet": "CASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}"}, {"node_id": 1406, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void)"}, {"node_id": 1413, "universal_type": "function", "name": "unknown", "text_snippet": "CASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n swi"}, {"node_id": 1419, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i)"}, {"node_id": 1453, "universal_type": "function", "name": "unknown", "text_snippet": "CASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n sw"}, {"node_id": 1459, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i)"}, {"node_id": 1493, "universal_type": "function", "name": "unknown", "text_snippet": "CASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int"}, {"node_id": 1499, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i)"}, {"node_id": 1533, "universal_type": "function", "name": "unknown", "text_snippet": "CASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_in"}, {"node_id": 1539, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i)"}, {"node_id": 1573, "universal_type": "function", "name": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_work", "text_snippet": "CASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int*"}, {"node_id": 1577, "universal_type": "function", "name": "unknown", "text_snippet": "inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_i"}], "class_declarations": [], "import_statements": [{"node_id": 40, "text": "#include <math.h>\n"}, {"node_id": 41, "text": "#include"}]}, "original_source_code": "/* This file was automatically generated by CasADi.\n The CasADi copyright holders make no ownership claim of its contents. */\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* How to prefix internal symbols */\n#ifdef CODEGEN_PREFIX\n #define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)\n #define _NAMESPACE_CONCAT(NS, ID) NS ## ID\n #define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)\n#else\n #define CASADI_PREFIX(ID) inv_pendulum_impl_ode_fun_jac_x_xdot_u_ ## ID\n#endif\n\n#include <math.h>\n\n#ifndef casadi_real\n#define casadi_real double\n#endif\n\n#ifndef casadi_int\n#define casadi_int int\n#endif\n\n/* Add prefix to internal symbols */\n#define casadi_f0 CASADI_PREFIX(f0)\n#define casadi_s0 CASADI_PREFIX(s0)\n#define casadi_s1 CASADI_PREFIX(s1)\n#define casadi_s2 CASADI_PREFIX(s2)\n#define casadi_s3 CASADI_PREFIX(s3)\n#define casadi_s4 CASADI_PREFIX(s4)\n#define casadi_s5 CASADI_PREFIX(s5)\n#define casadi_s6 CASADI_PREFIX(s6)\n\n/* Symbol visibility in DLLs */\n#ifndef CASADI_SYMBOL_EXPORT\n #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)\n #if defined(STATIC_LINKED)\n #define CASADI_SYMBOL_EXPORT\n #else\n #define CASADI_SYMBOL_EXPORT __declspec(dllexport)\n #endif\n #elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)\n #define CASADI_SYMBOL_EXPORT __attribute__ ((visibility (\"default\")))\n #else\n #define CASADI_SYMBOL_EXPORT\n #endif\n#endif\n\nstatic const casadi_int casadi_s0[10] = {6, 1, 0, 6, 0, 1, 2, 3, 4, 5};\nstatic const casadi_int casadi_s1[5] = {1, 1, 0, 1, 0};\nstatic const casadi_int casadi_s2[9] = {5, 1, 0, 5, 0, 1, 2, 3, 4};\nstatic const casadi_int casadi_s3[15] = {11, 1, 0, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\nstatic const casadi_int casadi_s4[20] = {11, 6, 0, 2, 4, 6, 8, 11, 11, 6, 7, 5, 7, 0, 6, 1, 5, 5, 6, 10};\nstatic const casadi_int casadi_s5[15] = {11, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 10};\nstatic const casadi_int casadi_s6[6] = {11, 1, 0, 2, 7, 8};\n\n/* inv_pendulum_impl_ode_fun_jac_x_xdot_u:(i0[6],i1[6],i2,i3[5])->(o0[11],o1[11x6,11nz],o2[11x6,6nz],o3[11x1,2nz]) */\nstatic int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {\n casadi_real a0, a1, a10, a11, a12, a2, a3, a4, a5, a6, a7, a8, a9;\n a0=arg[1] ? arg[1][0] : 0;\n a1=arg[0] ? arg[0][2] : 0;\n a0=(a0-a1);\n if (res[0]!=0) res[0][0]=a0;\n a0=arg[1] ? arg[1][1] : 0;\n a2=arg[0] ? arg[0][3] : 0;\n a0=(a0-a2);\n if (res[0]!=0) res[0][1]=a0;\n a0=arg[1] ? arg[1][2] : 0;\n a3=arg[3] ? arg[3][0] : 0;\n a0=(a0-a3);\n if (res[0]!=0) res[0][2]=a0;\n a0=arg[1] ? arg[1][3] : 0;\n a4=arg[3] ? arg[3][1] : 0;\n a0=(a0-a4);\n if (res[0]!=0) res[0][3]=a0;\n a0=arg[1] ? arg[1][4] : 0;\n a5=arg[3] ? arg[3][2] : 0;\n a0=(a0-a5);\n if (res[0]!=0) res[0][4]=a0;\n a0=arg[0] ? arg[0][4] : 0;\n a6=(a2*a0);\n a6=(a3+a6);\n a7=arg[0] ? arg[0][1] : 0;\n a8=(a7*a5);\n a6=(a6+a8);\n if (res[0]!=0) res[0][5]=a6;\n a6=(a1*a0);\n a6=(a4-a6);\n a8=arg[0] ? arg[0][0] : 0;\n a9=(a8*a5);\n a6=(a6-a9);\n if (res[0]!=0) res[0][6]=a6;\n a6=1.0000000000000001e-01;\n a6=(a6*a5);\n a9=3.5000000000000000e+00;\n a6=(a6-a9);\n a9=arg[3] ? arg[3][3] : 0;\n a10=arg[2] ? arg[2][0] : 0;\n a11=(a9+a10);\n a12=(a11*a7);\n a6=(a6-a12);\n a12=arg[3] ? arg[3][4] : 0;\n a8=(a12*a8);\n a6=(a6+a8);\n if (res[0]!=0) res[0][7]=a6;\n a6=2.;\n a3=(a6*a3);\n a9=(a9+a10);\n a3=(a3-a9);\n if (res[0]!=0) res[0][8]=a3;\n a6=(a6*a4);\n a4=1.9620000000000001e+01;\n a6=(a6+a4);\n a6=(a6-a12);\n if (res[0]!=0) res[0][9]=a6;\n a6=arg[1] ? arg[1][5] : 0;\n a6=(a6-a0);\n if (res[0]!=0) res[0][10]=a6;\n a6=(-a5);\n if (res[1]!=0) res[1][0]=a6;\n if (res[1]!=0) res[1][1]=a12;\n if (res[1]!=0) res[1][2]=a5;\n a11=(-a11);\n if (res[1]!=0) res[1][3]=a11;\n a11=-1.;\n if (res[1]!=0) res[1][4]=a11;\n a5=(-a0);\n if (res[1]!=0) res[1][5]=a5;\n if (res[1]!=0) res[1][6]=a11;\n if (res[1]!=0) res[1][7]=a0;\n if (res[1]!=0) res[1][8]=a2;\n a1=(-a1);\n if (res[1]!=0) res[1][9]=a1;\n if (res[1]!=0) res[1][10]=a11;\n a1=1.;\n if (res[2]!=0) res[2][0]=a1;\n if (res[2]!=0) res[2][1]=a1;\n if (res[2]!=0) res[2][2]=a1;\n if (res[2]!=0) res[2][3]=a1;\n if (res[2]!=0) res[2][4]=a1;\n if (res[2]!=0) res[2][5]=a1;\n a7=(-a7);\n if (res[3]!=0) res[3][0]=a7;\n if (res[3]!=0) res[3][1]=a11;\n return 0;\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){\n return casadi_f0(arg, res, iw, w, mem);\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_incref(void) {\n}\n\nCASADI_SYMBOL_EXPORT void inv_pendulum_impl_ode_fun_jac_x_xdot_u_decref(void) {\n}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_in(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT casadi_int inv_pendulum_impl_ode_fun_jac_x_xdot_u_n_out(void) { return 4;}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_in(casadi_int i){\n switch (i) {\n case 0: return \"i0\";\n case 1: return \"i1\";\n case 2: return \"i2\";\n case 3: return \"i3\";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const char* inv_pendulum_impl_ode_fun_jac_x_xdot_u_name_out(casadi_int i){\n switch (i) {\n case 0: return \"o0\";\n case 1: return \"o1\";\n case 2: return \"o2\";\n case 3: return \"o3\";\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_in(casadi_int i) {\n switch (i) {\n case 0: return casadi_s0;\n case 1: return casadi_s0;\n case 2: return casadi_s1;\n case 3: return casadi_s2;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT const casadi_int* inv_pendulum_impl_ode_fun_jac_x_xdot_u_sparsity_out(casadi_int i) {\n switch (i) {\n case 0: return casadi_s3;\n case 1: return casadi_s4;\n case 2: return casadi_s5;\n case 3: return casadi_s6;\n default: return 0;\n }\n}\n\nCASADI_SYMBOL_EXPORT int inv_pendulum_impl_ode_fun_jac_x_xdot_u_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {\n if (sz_arg) *sz_arg = 4;\n if (sz_res) *sz_res = 4;\n if (sz_iw) *sz_iw = 0;\n if (sz_w) *sz_w = 0;\n return 0;\n}\n\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n"}
80,363
c
#ifndef __TEST_SDK_PACK_H__ #define __TEST_SDK_PACK_H__ #include <fstream> #include "in_sdk.pb.h" using namespace insider::sdk; void test_sdk_pack(Sdk &msg); #endif // !__TEST_SDK_PACK_H__
26
7
(translation_unit) "#ifndef __TEST_SDK_PACK_H__\n#define __TEST_SDK_PACK_H__\n#include <fstream>\n#include "in_sdk.pb.h"\n\nusing namespace insider::sdk;\nvoid test_sdk_pack(Sdk &msg);\n\n#endif // !__TEST_SDK_PACK_H__" (preproc_ifdef) "#ifndef __TEST_SDK_PACK_H__\n#define __TEST_SDK_PACK_H__\n#include <fstream>\n#include "in_sdk.pb.h"\n\nusing namespace insider::sdk;\nvoid test_sdk_pack(Sdk &msg);\n\n#endif" (#ifndef) "#ifndef" (identifier) "__TEST_SDK_PACK_H__" (preproc_def) "#define __TEST_SDK_PACK_H__\n" (#define) "#define" (identifier) "__TEST_SDK_PACK_H__" (preproc_include) "#include <fstream>\n" (#include) "#include" (system_lib_string) "<fstream>" (preproc_include) "#include "in_sdk.pb.h"\n" (#include) "#include" (string_literal) ""in_sdk.pb.h"" (") """ (string_content) "in_sdk.pb.h" (") """ (declaration) "using namespace" (type_identifier) "using" (identifier) "namespace" (;) "" (labeled_statement) "insider::sdk;" (statement_identifier) "insider" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "sdk;" (identifier) "sdk" (;) ";" (declaration) "void test_sdk_pack(Sdk &msg);" (primitive_type) "void" (function_declarator) "test_sdk_pack(Sdk &msg)" (identifier) "test_sdk_pack" (parameter_list) "(Sdk &msg)" (() "(" (parameter_declaration) "Sdk &msg" (type_identifier) "Sdk" (ERROR) "&" (&) "&" (identifier) "msg" ()) ")" (;) ";" (#endif) "#endif" (comment) "// !__TEST_SDK_PACK_H__"
43
2
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 26.0, "nodes": 27, "errors": 0, "source_hash": "732547f3a224ff159602f6b80bc78b9b717a100980a4b6f7920886ab65a69662", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __TEST_SDK_PACK_H__\n#define __TEST_SDK_PACK_H__\n#include <fstream>\n#include \"in_sdk.pb.h\"\n\nusing namespace insider::sdk;\nvoid test_sdk_pack(Sdk &msg);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 26], "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": "__TEST_SDK_PACK_H__", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define __TEST_SDK_PACK_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 5, "type": "identifier", "text": "__TEST_SDK_PACK_H__", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include <fstream>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<fstream>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 9, "type": "preproc_include", "text": "#include \"in_sdk.pb.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"in_sdk.pb.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 22}}, {"id": 12, "type": "declaration", "text": "using namespace", "parent": 0, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 15}}, {"id": 13, "type": "type_identifier", "text": "using", "parent": 12, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 5}}, {"id": 14, "type": "identifier", "text": "namespace", "parent": 12, "children": [], "start_point": {"row": 5, "column": 6}, "end_point": {"row": 5, "column": 15}}, {"id": 15, "type": "labeled_statement", "text": "insider::sdk;", "parent": 0, "children": [16], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 29}}, {"id": 16, "type": "statement_identifier", "text": "insider", "parent": 15, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 23}}, {"id": 17, "type": "identifier", "text": "sdk", "parent": 15, "children": [], "start_point": {"row": 5, "column": 25}, "end_point": {"row": 5, "column": 28}}, {"id": 18, "type": "declaration", "text": "void test_sdk_pack(Sdk &msg);", "parent": 0, "children": [19, 20], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 29}}, {"id": 19, "type": "primitive_type", "text": "void", "parent": 18, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 4}}, {"id": 20, "type": "function_declarator", "text": "test_sdk_pack(Sdk &msg)", "parent": 18, "children": [21, 22], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 28}}, {"id": 21, "type": "identifier", "text": "test_sdk_pack", "parent": 20, "children": [], "start_point": {"row": 6, "column": 5}, "end_point": {"row": 6, "column": 18}}, {"id": 22, "type": "parameter_list", "text": "(Sdk &msg)", "parent": 20, "children": [23], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 28}}, {"id": 23, "type": "parameter_declaration", "text": "Sdk &msg", "parent": 22, "children": [24, 25], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 27}}, {"id": 24, "type": "type_identifier", "text": "Sdk", "parent": 23, "children": [], "start_point": {"row": 6, "column": 19}, "end_point": {"row": 6, "column": 22}}, {"id": 25, "type": "identifier", "text": "msg", "parent": 23, "children": [], "start_point": {"row": 6, "column": 24}, "end_point": {"row": 6, "column": 27}}, {"id": 26, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}]}, "node_categories": {"declarations": {"functions": [20], "variables": [12, 18, 23], "classes": [], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 13, 14, 16, 17, 21, 24, 25, 26], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "test_sdk_pack(Sdk &msg)"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <fstream>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"in_sdk.pb.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#ifndef __TEST_SDK_PACK_H__\n#define __TEST_SDK_PACK_H__\n#include <fstream>\n#include \"in_sdk.pb.h\"\n\nusing namespace insider::sdk;\nvoid test_sdk_pack(Sdk &msg);\n\n#endif // !__TEST_SDK_PACK_H__"}
80,364
c
//////////////////////////////////////////////////////////////////////////// // // // Project : VideoNet Ver. 1.0. // Description : Video Conferencing over the LAN. // Author : <NAME> ( <EMAIL> ) // Date : 17/12/2005 // // This is the modified version of tmndecode (H.263 decoder) // written by Karl & Robert.It was in ANSI C. I have converted into C++ // so that it can be integrated into any windows application. I have // removed some of the files which had display and file storing // functions.I have removed the unnecessary code and also added some // new files.. // Original library dealt with files. Input & Output , both were files. // I have done some major changes so that it can be used for real time // decoding process. Now one can use this library for decoding H263 frames. // // // File description : // Name : GetBlk.h // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_) #define AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "DGlobal.h" #include "GetBits.h" #include "TmnDec.h" //#define SACTABLES #include "Sactbls.h" /* local prototypes */ RunCoef vlc_word_decode (int symbol_word, int *last); RunCoef Decode_Escape_Char (int intra, int *last); int DecodeTCoef (int position, int intra); void getblock (int comp, int mode); void get_sac_block (int comp, int mode); #endif // !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_)
32.04
51
(translation_unit) "//////////////////////////////////////////////////////////////////////////// \n// \n// \n// Project : VideoNet Ver. 1.0. \n// Description : Video Conferencing over the LAN. \n// Author : <NAME> ( <EMAIL> ) \n// Date : 17/12/2005 \n// \n// This is the modified version of tmndecode (H.263 decoder) \n// written by Karl & Robert.It was in ANSI C. I have converted into C++ \n// so that it can be integrated into any windows application. I have \n// removed some of the files which had display and file storing \n// functions.I have removed the unnecessary code and also added some \n// new files.. \n// Original library dealt with files. Input & Output , both were files. \n// I have done some major changes so that it can be used for real time \n// decoding process. Now one can use this library for decoding H263 frames. \n// \n// \n// File description : \n// Name : GetBlk.h \n// \n///////////////////////////////////////////////////////////////////////////// \n \n#if !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_) \n#define AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_ \n \n#if _MSC_VER > 1000 \n#pragma once \n#endif // _MSC_VER > 1000 \n \n#include "DGlobal.h" \n#include "GetBits.h" \n#include "TmnDec.h" \n \n \n//#define SACTABLES \n#include "Sactbls.h" \n \n \n/* local prototypes */ \nRunCoef vlc_word_decode (int symbol_word, int *last); \nRunCoef Decode_Escape_Char (int intra, int *last); \nint DecodeTCoef (int position, int intra); \n \nvoid getblock (int comp, int mode); \nvoid get_sac_block (int comp, int mode); \n \n \n \n#endif // !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_) \n" (comment) "//////////////////////////////////////////////////////////////////////////// " (comment) "// " (comment) "// " (comment) "// Project : VideoNet Ver. 1.0. " (comment) "// Description : Video Conferencing over the LAN. " (comment) "// Author : <NAME> ( <EMAIL> ) " (comment) "// Date : 17/12/2005 " (comment) "// " (comment) "// This is the modified version of tmndecode (H.263 decoder) " (comment) "// written by Karl & Robert.It was in ANSI C. I have converted into C++ " (comment) "// so that it can be integrated into any windows application. I have " (comment) "// removed some of the files which had display and file storing " (comment) "// functions.I have removed the unnecessary code and also added some " (comment) "// new files.. " (comment) "// Original library dealt with files. Input & Output , both were files. " (comment) "// I have done some major changes so that it can be used for real time " (comment) "// decoding process. Now one can use this library for decoding H263 frames. " (comment) "// " (comment) "// " (comment) "// File description : " (comment) "// Name : GetBlk.h " (comment) "// " (comment) "///////////////////////////////////////////////////////////////////////////// " (preproc_if) "#if !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_) \n#define AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_ \n \n#if _MSC_VER > 1000 \n#pragma once \n#endif // _MSC_VER > 1000 \n \n#include "DGlobal.h" \n#include "GetBits.h" \n#include "TmnDec.h" \n \n \n//#define SACTABLES \n#include "Sactbls.h" \n \n \n/* local prototypes */ \nRunCoef vlc_word_decode (int symbol_word, int *last); \nRunCoef Decode_Escape_Char (int intra, int *last); \nint DecodeTCoef (int position, int intra); \n \nvoid getblock (int comp, int mode); \nvoid get_sac_block (int comp, int mode); \n \n \n \n#endif" (#if) "#if" (unary_expression) "!defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_)" (!) "!" (preproc_defined) "defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_)" (defined) "defined" (() "(" (identifier) "AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_" ()) ")" ( ) "\n" (preproc_def) "#define AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_ \n" (#define) "#define" (identifier) "AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_" (preproc_if) "#if _MSC_VER > 1000 \n#pragma once \n#endif" (#if) "#if" (binary_expression) "_MSC_VER > 1000" (identifier) "_MSC_VER" (>) ">" (number_literal) "1000" ( ) "\n" (preproc_call) "#pragma once \n" (preproc_directive) "#pragma" (preproc_arg) "once " (#endif) "#endif" (comment) "// _MSC_VER > 1000 " (preproc_include) "#include "DGlobal.h" \n" (#include) "#include" (string_literal) ""DGlobal.h"" (") """ (string_content) "DGlobal.h" (") """ (preproc_include) "#include "GetBits.h" \n" (#include) "#include" (string_literal) ""GetBits.h"" (") """ (string_content) "GetBits.h" (") """ (preproc_include) "#include "TmnDec.h" \n" (#include) "#include" (string_literal) ""TmnDec.h"" (") """ (string_content) "TmnDec.h" (") """ (comment) "//#define SACTABLES " (preproc_include) "#include "Sactbls.h" \n" (#include) "#include" (string_literal) ""Sactbls.h"" (") """ (string_content) "Sactbls.h" (") """ (comment) "/* local prototypes */" (declaration) "RunCoef vlc_word_decode (int symbol_word, int *last);" (type_identifier) "RunCoef" (function_declarator) "vlc_word_decode (int symbol_word, int *last)" (identifier) "vlc_word_decode" (parameter_list) "(int symbol_word, int *last)" (() "(" (parameter_declaration) "int symbol_word" (primitive_type) "int" (identifier) "symbol_word" (,) "," (parameter_declaration) "int *last" (primitive_type) "int" (pointer_declarator) "*last" (*) "*" (identifier) "last" ()) ")" (;) ";" (declaration) "RunCoef Decode_Escape_Char (int intra, int *last);" (type_identifier) "RunCoef" (function_declarator) "Decode_Escape_Char (int intra, int *last)" (identifier) "Decode_Escape_Char" (parameter_list) "(int intra, int *last)" (() "(" (parameter_declaration) "int intra" (primitive_type) "int" (identifier) "intra" (,) "," (parameter_declaration) "int *last" (primitive_type) "int" (pointer_declarator) "*last" (*) "*" (identifier) "last" ()) ")" (;) ";" (declaration) "int DecodeTCoef (int position, int intra);" (primitive_type) "int" (function_declarator) "DecodeTCoef (int position, int intra)" (identifier) "DecodeTCoef" (parameter_list) "(int position, int intra)" (() "(" (parameter_declaration) "int position" (primitive_type) "int" (identifier) "position" (,) "," (parameter_declaration) "int intra" (primitive_type) "int" (identifier) "intra" ()) ")" (;) ";" (declaration) "void getblock (int comp, int mode);" (primitive_type) "void" (function_declarator) "getblock (int comp, int mode)" (identifier) "getblock" (parameter_list) "(int comp, int mode)" (() "(" (parameter_declaration) "int comp" (primitive_type) "int" (identifier) "comp" (,) "," (parameter_declaration) "int mode" (primitive_type) "int" (identifier) "mode" ()) ")" (;) ";" (declaration) "void get_sac_block (int comp, int mode);" (primitive_type) "void" (function_declarator) "get_sac_block (int comp, int mode)" (identifier) "get_sac_block" (parameter_list) "(int comp, int mode)" (() "(" (parameter_declaration) "int comp" (primitive_type) "int" (identifier) "comp" (,) "," (parameter_declaration) "int mode" (primitive_type) "int" (identifier) "mode" ()) ")" (;) ";" (#endif) "#endif" (comment) "// !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_) "
156
0
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 32.04, "nodes": 94, "errors": 0, "source_hash": "f1c68220b09f2c32fdc2cd29cf1a3e8fddce1cef919c92644a6e4ae3ac1a31bf", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "#if !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_)\r\n#define AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_\r\n\r\n#if _MSC_VER > 1000\r\n#pragma once\r\n#endif // _MSC_VER > 1000\r\n\r\n#include \"DGlobal.h\"\r\n#include \"GetBits.h\"\r\n#include \"TmnDec.h\"\r\n\r\n\r\n//#define SACTABLES\r\n#include \"Sactbls.h\"\r\n\r\n\r\n/* local prototypes */\r\nRunCoef vlc_word_decode (int symbol_word, int *last); \r\nRunCoef Decode_Escape_Char (int intra, int *last);\r\nint DecodeTCoef (int position, int intra);\r\n\r\nvoid getblock (int comp, int mode);\r\nvoid get_sac_block (int comp, int mode);\r\n\r\n\r\n\r\n#endif", "parent": null, "children": [1, 2, 7, 8, 11, 22, 25, 28, 31, 34, 47, 60, 71, 82, 93], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 1, "type": "#if", "text": "#if", "parent": 0, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 3}}, {"id": 2, "type": "unary_expression", "text": "!defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_)", "parent": 0, "children": [3, 4], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 75}}, {"id": 3, "type": "!", "text": "!", "parent": 2, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 5}}, {"id": 4, "type": "preproc_defined", "text": "defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_)", "parent": 2, "children": [5, 6], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 75}}, {"id": 5, "type": "defined", "text": "defined", "parent": 4, "children": [], "start_point": {"row": 24, "column": 5}, "end_point": {"row": 24, "column": 12}}, {"id": 6, "type": "identifier", "text": "AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_", "parent": 4, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 74}}, {"id": 7, "type": "\n", "text": "\n", "parent": 0, "children": [], "start_point": {"row": 24, "column": 76}, "end_point": {"row": 25, "column": 0}}, {"id": 8, "type": "preproc_def", "text": "#define AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_\r\n", "parent": 0, "children": [9, 10], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 9, "type": "#define", "text": "#define", "parent": 8, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 10, "type": "identifier", "text": "AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_", "parent": 8, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 69}}, {"id": 11, "type": "preproc_if", "text": "#if _MSC_VER > 1000\r\n#pragma once\r\n#endif", "parent": 0, "children": [12, 13, 17, 18, 21], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 12, "type": "#if", "text": "#if", "parent": 11, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 3}}, {"id": 13, "type": "binary_expression", "text": "_MSC_VER > 1000", "parent": 11, "children": [14, 15, 16], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 19}}, {"id": 14, "type": "identifier", "text": "_MSC_VER", "parent": 13, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 12}}, {"id": 15, "type": ">", "text": ">", "parent": 13, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 14}}, {"id": 16, "type": "number_literal", "text": "1000", "parent": 13, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 19}}, {"id": 17, "type": "\n", "text": "\n", "parent": 11, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 28, "column": 0}}, {"id": 18, "type": "preproc_call", "text": "#pragma once\r\n", "parent": 11, "children": [19, 20], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 19, "type": "preproc_directive", "text": "#pragma", "parent": 18, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 20, "type": "preproc_arg", "text": "once\r", "parent": 18, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 13}}, {"id": 21, "type": "#endif", "text": "#endif", "parent": 11, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 6}}, {"id": 22, "type": "preproc_include", "text": "#include \"DGlobal.h\"\r\n", "parent": 0, "children": [23, 24], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 23, "type": "#include", "text": "#include", "parent": 22, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 24, "type": "string_literal", "text": "\"DGlobal.h\"", "parent": 22, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 20}}, {"id": 25, "type": "preproc_include", "text": "#include \"GetBits.h\"\r\n", "parent": 0, "children": [26, 27], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 26, "type": "#include", "text": "#include", "parent": 25, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 27, "type": "string_literal", "text": "\"GetBits.h\"", "parent": 25, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 20}}, {"id": 28, "type": "preproc_include", "text": "#include \"TmnDec.h\"\r\n", "parent": 0, "children": [29, 30], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 29, "type": "#include", "text": "#include", "parent": 28, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 30, "type": "string_literal", "text": "\"TmnDec.h\"", "parent": 28, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 19}}, {"id": 31, "type": "preproc_include", "text": "#include \"Sactbls.h\"\r\n", "parent": 0, "children": [32, 33], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 32, "type": "#include", "text": "#include", "parent": 31, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 33, "type": "string_literal", "text": "\"Sactbls.h\"", "parent": 31, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 20}}, {"id": 34, "type": "declaration", "text": "RunCoef vlc_word_decode (int symbol_word, int *last);", "parent": 0, "children": [35, 36], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 53}}, {"id": 35, "type": "type_identifier", "text": "RunCoef", "parent": 34, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 36, "type": "function_declarator", "text": "vlc_word_decode (int symbol_word, int *last)", "parent": 34, "children": [37, 38], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 52}}, {"id": 37, "type": "identifier", "text": "vlc_word_decode", "parent": 36, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 23}}, {"id": 38, "type": "parameter_list", "text": "(int symbol_word, int *last)", "parent": 36, "children": [39, 42], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 52}}, {"id": 39, "type": "parameter_declaration", "text": "int symbol_word", "parent": 38, "children": [40, 41], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 40}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 28}}, {"id": 41, "type": "identifier", "text": "symbol_word", "parent": 39, "children": [], "start_point": {"row": 41, "column": 29}, "end_point": {"row": 41, "column": 40}}, {"id": 42, "type": "parameter_declaration", "text": "int *last", "parent": 38, "children": [43, 44], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 51}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 41, "column": 42}, "end_point": {"row": 41, "column": 45}}, {"id": 44, "type": "pointer_declarator", "text": "*last", "parent": 42, "children": [45, 46], "start_point": {"row": 41, "column": 46}, "end_point": {"row": 41, "column": 51}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 41, "column": 46}, "end_point": {"row": 41, "column": 47}}, {"id": 46, "type": "identifier", "text": "last", "parent": 44, "children": [], "start_point": {"row": 41, "column": 47}, "end_point": {"row": 41, "column": 51}}, {"id": 47, "type": "declaration", "text": "RunCoef Decode_Escape_Char (int intra, int *last);", "parent": 0, "children": [48, 49], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 50}}, {"id": 48, "type": "type_identifier", "text": "RunCoef", "parent": 47, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 49, "type": "function_declarator", "text": "Decode_Escape_Char (int intra, int *last)", "parent": 47, "children": [50, 51], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 49}}, {"id": 50, "type": "identifier", "text": "Decode_Escape_Char", "parent": 49, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 26}}, {"id": 51, "type": "parameter_list", "text": "(int intra, int *last)", "parent": 49, "children": [52, 55], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 49}}, {"id": 52, "type": "parameter_declaration", "text": "int intra", "parent": 51, "children": [53, 54], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 37}}, {"id": 53, "type": "primitive_type", "text": "int", "parent": 52, "children": [], "start_point": {"row": 42, "column": 28}, "end_point": {"row": 42, "column": 31}}, {"id": 54, "type": "identifier", "text": "intra", "parent": 52, "children": [], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 42, "column": 37}}, {"id": 55, "type": "parameter_declaration", "text": "int *last", "parent": 51, "children": [56, 57], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 48}}, {"id": 56, "type": "primitive_type", "text": "int", "parent": 55, "children": [], "start_point": {"row": 42, "column": 39}, "end_point": {"row": 42, "column": 42}}, {"id": 57, "type": "pointer_declarator", "text": "*last", "parent": 55, "children": [58, 59], "start_point": {"row": 42, "column": 43}, "end_point": {"row": 42, "column": 48}}, {"id": 58, "type": "*", "text": "*", "parent": 57, "children": [], "start_point": {"row": 42, "column": 43}, "end_point": {"row": 42, "column": 44}}, {"id": 59, "type": "identifier", "text": "last", "parent": 57, "children": [], "start_point": {"row": 42, "column": 44}, "end_point": {"row": 42, "column": 48}}, {"id": 60, "type": "declaration", "text": "int DecodeTCoef (int position, int intra);", "parent": 0, "children": [61, 62], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 42}}, {"id": 61, "type": "primitive_type", "text": "int", "parent": 60, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 3}}, {"id": 62, "type": "function_declarator", "text": "DecodeTCoef (int position, int intra)", "parent": 60, "children": [63, 64], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 41}}, {"id": 63, "type": "identifier", "text": "DecodeTCoef", "parent": 62, "children": [], "start_point": {"row": 43, "column": 4}, "end_point": {"row": 43, "column": 15}}, {"id": 64, "type": "parameter_list", "text": "(int position, int intra)", "parent": 62, "children": [65, 68], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 41}}, {"id": 65, "type": "parameter_declaration", "text": "int position", "parent": 64, "children": [66, 67], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 29}}, {"id": 66, "type": "primitive_type", "text": "int", "parent": 65, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 20}}, {"id": 67, "type": "identifier", "text": "position", "parent": 65, "children": [], "start_point": {"row": 43, "column": 21}, "end_point": {"row": 43, "column": 29}}, {"id": 68, "type": "parameter_declaration", "text": "int intra", "parent": 64, "children": [69, 70], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 40}}, {"id": 69, "type": "primitive_type", "text": "int", "parent": 68, "children": [], "start_point": {"row": 43, "column": 31}, "end_point": {"row": 43, "column": 34}}, {"id": 70, "type": "identifier", "text": "intra", "parent": 68, "children": [], "start_point": {"row": 43, "column": 35}, "end_point": {"row": 43, "column": 40}}, {"id": 71, "type": "declaration", "text": "void getblock (int comp, int mode);", "parent": 0, "children": [72, 73], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 35}}, {"id": 72, "type": "primitive_type", "text": "void", "parent": 71, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 4}}, {"id": 73, "type": "function_declarator", "text": "getblock (int comp, int mode)", "parent": 71, "children": [74, 75], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 34}}, {"id": 74, "type": "identifier", "text": "getblock", "parent": 73, "children": [], "start_point": {"row": 45, "column": 5}, "end_point": {"row": 45, "column": 13}}, {"id": 75, "type": "parameter_list", "text": "(int comp, int mode)", "parent": 73, "children": [76, 79], "start_point": {"row": 45, "column": 14}, "end_point": {"row": 45, "column": 34}}, {"id": 76, "type": "parameter_declaration", "text": "int comp", "parent": 75, "children": [77, 78], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 23}}, {"id": 77, "type": "primitive_type", "text": "int", "parent": 76, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 18}}, {"id": 78, "type": "identifier", "text": "comp", "parent": 76, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 23}}, {"id": 79, "type": "parameter_declaration", "text": "int mode", "parent": 75, "children": [80, 81], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 33}}, {"id": 80, "type": "primitive_type", "text": "int", "parent": 79, "children": [], "start_point": {"row": 45, "column": 25}, "end_point": {"row": 45, "column": 28}}, {"id": 81, "type": "identifier", "text": "mode", "parent": 79, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 33}}, {"id": 82, "type": "declaration", "text": "void get_sac_block (int comp, int mode);", "parent": 0, "children": [83, 84], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 40}}, {"id": 83, "type": "primitive_type", "text": "void", "parent": 82, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 4}}, {"id": 84, "type": "function_declarator", "text": "get_sac_block (int comp, int mode)", "parent": 82, "children": [85, 86], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 39}}, {"id": 85, "type": "identifier", "text": "get_sac_block", "parent": 84, "children": [], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 18}}, {"id": 86, "type": "parameter_list", "text": "(int comp, int mode)", "parent": 84, "children": [87, 90], "start_point": {"row": 46, "column": 19}, "end_point": {"row": 46, "column": 39}}, {"id": 87, "type": "parameter_declaration", "text": "int comp", "parent": 86, "children": [88, 89], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 28}}, {"id": 88, "type": "primitive_type", "text": "int", "parent": 87, "children": [], "start_point": {"row": 46, "column": 20}, "end_point": {"row": 46, "column": 23}}, {"id": 89, "type": "identifier", "text": "comp", "parent": 87, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 28}}, {"id": 90, "type": "parameter_declaration", "text": "int mode", "parent": 86, "children": [91, 92], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 38}}, {"id": 91, "type": "primitive_type", "text": "int", "parent": 90, "children": [], "start_point": {"row": 46, "column": 30}, "end_point": {"row": 46, "column": 33}}, {"id": 92, "type": "identifier", "text": "mode", "parent": 90, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 38}}, {"id": 93, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}]}, "node_categories": {"declarations": {"functions": [36, 49, 62, 73, 84], "variables": [34, 39, 42, 47, 52, 55, 60, 65, 68, 71, 76, 79, 82, 87, 90], "classes": [], "imports": [22, 23, 25, 26, 28, 29, 31, 32], "modules": [], "enums": []}, "statements": {"expressions": [2, 13], "assignments": [], "loops": [], "conditionals": [0, 1, 6, 10, 11, 12, 14, 21, 35, 37, 41, 46, 48, 50, 54, 59, 63, 67, 70, 74, 78, 81, 85, 89, 92, 93], "returns": [], "exceptions": []}, "expressions": {"calls": [18], "literals": [16, 24, 27, 30, 33], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 36, "universal_type": "function", "name": "*last)", "text_snippet": "vlc_word_decode (int symbol_word, int *last)"}, {"node_id": 49, "universal_type": "function", "name": "*last)", "text_snippet": "Decode_Escape_Char (int intra, int *last)"}, {"node_id": 62, "universal_type": "function", "name": "intra)", "text_snippet": "DecodeTCoef (int position, int intra)"}, {"node_id": 73, "universal_type": "function", "name": "mode)", "text_snippet": "getblock (int comp, int mode)"}, {"node_id": 84, "universal_type": "function", "name": "mode)", "text_snippet": "get_sac_block (int comp, int mode)"}], "class_declarations": [], "import_statements": [{"node_id": 22, "text": "#include \"DGlobal.h\"\r\n"}, {"node_id": 23, "text": "#include"}, {"node_id": 25, "text": "#include \"GetBits.h\"\r\n"}, {"node_id": 26, "text": "#include"}, {"node_id": 28, "text": "#include \"TmnDec.h\"\r\n"}, {"node_id": 29, "text": "#include"}, {"node_id": 31, "text": "#include \"Sactbls.h\"\r\n"}, {"node_id": 32, "text": "#include"}]}, "original_source_code": "////////////////////////////////////////////////////////////////////////////\r\n//\r\n//\r\n// Project : VideoNet Ver. 1.0.\r\n// Description : Video Conferencing over the LAN.\r\n//\t Author :\t<NAME> ( <EMAIL> )\r\n// Date : 17/12/2005\r\n//\r\n// This is the modified version of tmndecode (H.263 decoder) \r\n// written by Karl & Robert.It was in ANSI C. I have converted into C++\r\n// so that it can be integrated into any windows application. I have \r\n// removed some of the files which had display and file storing \r\n// functions.I have removed the unnecessary code and also added some\r\n// new files..\r\n//\t Original library dealt with files. Input & Output , both were files.\r\n// I have done some major changes so that it can be used for real time \r\n// decoding process. Now one can use this library for decoding H263 frames. \r\n//\r\n//\r\n// File description : \r\n// Name : GetBlk.h\r\n//\r\n/////////////////////////////////////////////////////////////////////////////\r\n\r\n#if !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_)\r\n#define AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_\r\n\r\n#if _MSC_VER > 1000\r\n#pragma once\r\n#endif // _MSC_VER > 1000\r\n\r\n#include \"DGlobal.h\"\r\n#include \"GetBits.h\"\r\n#include \"TmnDec.h\"\r\n\r\n\r\n//#define SACTABLES\r\n#include \"Sactbls.h\"\r\n\r\n\r\n/* local prototypes */\r\nRunCoef vlc_word_decode (int symbol_word, int *last); \r\nRunCoef Decode_Escape_Char (int intra, int *last);\r\nint DecodeTCoef (int position, int intra);\r\n\r\nvoid getblock (int comp, int mode);\r\nvoid get_sac_block (int comp, int mode);\r\n\r\n\r\n\r\n#endif // !defined(AFX_GETBLK_H__C5DE7F27_6033_11D6_889B_000B2B0F84B6__INCLUDED_)\r\n"}
80,365
c
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef IOPRIO_H #define IOPRIO_H #include <linux/sched.h> #include <linux/sched/rt.h> #include <linux/iocontext.h> /* * Gives us 8 prio classes with 13-bits of data for each class */ #define IOPRIO_CLASS_SHIFT (13) #define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1) #define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT) #define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_MASK) #define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data) #define ioprio_valid(mask) (IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE) /* * These are the io priority groups as implemented by CFQ. RT is the realtime * class, it always gets premium service. BE is the best-effort scheduling * class, the default for any process. IDLE is the idle scheduling class, it * is only served when no one else is using the disk. */ enum { IOPRIO_CLASS_NONE, IOPRIO_CLASS_RT, IOPRIO_CLASS_BE, IOPRIO_CLASS_IDLE, }; /* * 8 best effort priority levels are supported */ #define IOPRIO_BE_NR (8) enum { IOPRIO_WHO_PROCESS = 1, IOPRIO_WHO_PGRP, IOPRIO_WHO_USER, }; /* * Fallback BE priority */ #define IOPRIO_NORM (4) /* * if process has set io priority explicitly, use that. if not, convert * the cpu scheduler nice value to an io priority */ static inline int task_nice_ioprio(struct task_struct *task) { return (task_nice(task) + 20) / 5; } /* * This is for the case where the task hasn't asked for a specific IO class. * Check for idle and rt task process, and return appropriate IO class. */ static inline int task_nice_ioclass(struct task_struct *task) { if (task->policy == SCHED_IDLE) return IOPRIO_CLASS_IDLE; else if (task_is_realtime(task)) return IOPRIO_CLASS_RT; else return IOPRIO_CLASS_BE; } /* * For inheritance, return the highest of the two given priorities */ extern int ioprio_best(unsigned short aprio, unsigned short bprio); extern int set_task_ioprio(struct task_struct *task, int ioprio); #ifdef CONFIG_BLOCK extern int ioprio_check_cap(int ioprio); #else static inline int ioprio_check_cap(int ioprio) { return -ENOTBLK; } #endif /* CONFIG_BLOCK */ #endif
27.77
75
(translation_unit) "/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef IOPRIO_H\n#define IOPRIO_H\n\n#include <linux/sched.h>\n#include <linux/sched/rt.h>\n#include <linux/iocontext.h>\n\n/*\n * Gives us 8 prio classes with 13-bits of data for each class\n */\n#define IOPRIO_CLASS_SHIFT (13)\n#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)\n\n#define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT)\n#define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_MASK)\n#define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data)\n\n#define ioprio_valid(mask) (IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)\n\n/*\n * These are the io priority groups as implemented by CFQ. RT is the realtime\n * class, it always gets premium service. BE is the best-effort scheduling\n * class, the default for any process. IDLE is the idle scheduling class, it\n * is only served when no one else is using the disk.\n */\nenum {\n IOPRIO_CLASS_NONE,\n IOPRIO_CLASS_RT,\n IOPRIO_CLASS_BE,\n IOPRIO_CLASS_IDLE,\n};\n\n/*\n * 8 best effort priority levels are supported\n */\n#define IOPRIO_BE_NR (8)\n\nenum {\n IOPRIO_WHO_PROCESS = 1,\n IOPRIO_WHO_PGRP,\n IOPRIO_WHO_USER,\n};\n\n/*\n * Fallback BE priority\n */\n#define IOPRIO_NORM (4)\n\n/*\n * if process has set io priority explicitly, use that. if not, convert\n * the cpu scheduler nice value to an io priority\n */\nstatic inline int task_nice_ioprio(struct task_struct *task)\n{\n return (task_nice(task) + 20) / 5;\n}\n\n/*\n * This is for the case where the task hasn't asked for a specific IO class.\n * Check for idle and rt task process, and return appropriate IO class.\n */\nstatic inline int task_nice_ioclass(struct task_struct *task)\n{\n if (task->policy == SCHED_IDLE)\n return IOPRIO_CLASS_IDLE;\n else if (task_is_realtime(task))\n return IOPRIO_CLASS_RT;\n else\n return IOPRIO_CLASS_BE;\n}\n\n/*\n * For inheritance, return the highest of the two given priorities\n */\nextern int ioprio_best(unsigned short aprio, unsigned short bprio);\n\nextern int set_task_ioprio(struct task_struct *task, int ioprio);\n\n#ifdef CONFIG_BLOCK\nextern int ioprio_check_cap(int ioprio);\n#else\nstatic inline int ioprio_check_cap(int ioprio)\n{\n return -ENOTBLK;\n}\n#endif /* CONFIG_BLOCK */\n\n#endif\n" (comment) "/* SPDX-License-Identifier: GPL-2.0 */" (preproc_ifdef) "#ifndef IOPRIO_H\n#define IOPRIO_H\n\n#include <linux/sched.h>\n#include <linux/sched/rt.h>\n#include <linux/iocontext.h>\n\n/*\n * Gives us 8 prio classes with 13-bits of data for each class\n */\n#define IOPRIO_CLASS_SHIFT (13)\n#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)\n\n#define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT)\n#define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_MASK)\n#define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data)\n\n#define ioprio_valid(mask) (IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)\n\n/*\n * These are the io priority groups as implemented by CFQ. RT is the realtime\n * class, it always gets premium service. BE is the best-effort scheduling\n * class, the default for any process. IDLE is the idle scheduling class, it\n * is only served when no one else is using the disk.\n */\nenum {\n IOPRIO_CLASS_NONE,\n IOPRIO_CLASS_RT,\n IOPRIO_CLASS_BE,\n IOPRIO_CLASS_IDLE,\n};\n\n/*\n * 8 best effort priority levels are supported\n */\n#define IOPRIO_BE_NR (8)\n\nenum {\n IOPRIO_WHO_PROCESS = 1,\n IOPRIO_WHO_PGRP,\n IOPRIO_WHO_USER,\n};\n\n/*\n * Fallback BE priority\n */\n#define IOPRIO_NORM (4)\n\n/*\n * if process has set io priority explicitly, use that. if not, convert\n * the cpu scheduler nice value to an io priority\n */\nstatic inline int task_nice_ioprio(struct task_struct *task)\n{\n return (task_nice(task) + 20) / 5;\n}\n\n/*\n * This is for the case where the task hasn't asked for a specific IO class.\n * Check for idle and rt task process, and return appropriate IO class.\n */\nstatic inline int task_nice_ioclass(struct task_struct *task)\n{\n if (task->policy == SCHED_IDLE)\n return IOPRIO_CLASS_IDLE;\n else if (task_is_realtime(task))\n return IOPRIO_CLASS_RT;\n else\n return IOPRIO_CLASS_BE;\n}\n\n/*\n * For inheritance, return the highest of the two given priorities\n */\nextern int ioprio_best(unsigned short aprio, unsigned short bprio);\n\nextern int set_task_ioprio(struct task_struct *task, int ioprio);\n\n#ifdef CONFIG_BLOCK\nextern int ioprio_check_cap(int ioprio);\n#else\nstatic inline int ioprio_check_cap(int ioprio)\n{\n return -ENOTBLK;\n}\n#endif /* CONFIG_BLOCK */\n\n#endif" (#ifndef) "#ifndef" (identifier) "IOPRIO_H" (preproc_def) "#define IOPRIO_H\n" (#define) "#define" (identifier) "IOPRIO_H" (preproc_include) "#include <linux/sched.h>\n" (#include) "#include" (system_lib_string) "<linux/sched.h>" (preproc_include) "#include <linux/sched/rt.h>\n" (#include) "#include" (system_lib_string) "<linux/sched/rt.h>" (preproc_include) "#include <linux/iocontext.h>\n" (#include) "#include" (system_lib_string) "<linux/iocontext.h>" (comment) "/*\n * Gives us 8 prio classes with 13-bits of data for each class\n */" (preproc_def) "#define IOPRIO_CLASS_SHIFT (13)\n" (#define) "#define" (identifier) "IOPRIO_CLASS_SHIFT" (preproc_arg) "(13)" (preproc_def) "#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)\n" (#define) "#define" (identifier) "IOPRIO_PRIO_MASK" (preproc_arg) "((1UL << IOPRIO_CLASS_SHIFT) - 1)" (preproc_function_def) "#define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT)\n" (#define) "#define" (identifier) "IOPRIO_PRIO_CLASS" (preproc_params) "(mask)" (() "(" (identifier) "mask" ()) ")" (preproc_arg) "((mask) >> IOPRIO_CLASS_SHIFT)" (preproc_function_def) "#define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_MASK)\n" (#define) "#define" (identifier) "IOPRIO_PRIO_DATA" (preproc_params) "(mask)" (() "(" (identifier) "mask" ()) ")" (preproc_arg) "((mask) & IOPRIO_PRIO_MASK)" (preproc_function_def) "#define IOPRIO_PRIO_VALUE(class, data) (((class) << IOPRIO_CLASS_SHIFT) | data)\n" (#define) "#define" (identifier) "IOPRIO_PRIO_VALUE" (preproc_params) "(class, data)" (() "(" (identifier) "class" (,) "," (identifier) "data" ()) ")" (preproc_arg) "(((class) << IOPRIO_CLASS_SHIFT) | data)" (preproc_function_def) "#define ioprio_valid(mask) (IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)\n" (#define) "#define" (identifier) "ioprio_valid" (preproc_params) "(mask)" (() "(" (identifier) "mask" ()) ")" (preproc_arg) "(IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)" (comment) "/*\n * These are the io priority groups as implemented by CFQ. RT is the realtime\n * class, it always gets premium service. BE is the best-effort scheduling\n * class, the default for any process. IDLE is the idle scheduling class, it\n * is only served when no one else is using the disk.\n */" (enum_specifier) "enum {\n IOPRIO_CLASS_NONE,\n IOPRIO_CLASS_RT,\n IOPRIO_CLASS_BE,\n IOPRIO_CLASS_IDLE,\n}" (enum) "enum" (enumerator_list) "{\n IOPRIO_CLASS_NONE,\n IOPRIO_CLASS_RT,\n IOPRIO_CLASS_BE,\n IOPRIO_CLASS_IDLE,\n}" ({) "{" (enumerator) "IOPRIO_CLASS_NONE" (identifier) "IOPRIO_CLASS_NONE" (,) "," (enumerator) "IOPRIO_CLASS_RT" (identifier) "IOPRIO_CLASS_RT" (,) "," (enumerator) "IOPRIO_CLASS_BE" (identifier) "IOPRIO_CLASS_BE" (,) "," (enumerator) "IOPRIO_CLASS_IDLE" (identifier) "IOPRIO_CLASS_IDLE" (,) "," (}) "}" (;) ";" (comment) "/*\n * 8 best effort priority levels are supported\n */" (preproc_def) "#define IOPRIO_BE_NR (8)\n" (#define) "#define" (identifier) "IOPRIO_BE_NR" (preproc_arg) "(8)" (enum_specifier) "enum {\n IOPRIO_WHO_PROCESS = 1,\n IOPRIO_WHO_PGRP,\n IOPRIO_WHO_USER,\n}" (enum) "enum" (enumerator_list) "{\n IOPRIO_WHO_PROCESS = 1,\n IOPRIO_WHO_PGRP,\n IOPRIO_WHO_USER,\n}" ({) "{" (enumerator) "IOPRIO_WHO_PROCESS = 1" (identifier) "IOPRIO_WHO_PROCESS" (=) "=" (number_literal) "1" (,) "," (enumerator) "IOPRIO_WHO_PGRP" (identifier) "IOPRIO_WHO_PGRP" (,) "," (enumerator) "IOPRIO_WHO_USER" (identifier) "IOPRIO_WHO_USER" (,) "," (}) "}" (;) ";" (comment) "/*\n * Fallback BE priority\n */" (preproc_def) "#define IOPRIO_NORM (4)\n" (#define) "#define" (identifier) "IOPRIO_NORM" (preproc_arg) "(4)" (comment) "/*\n * if process has set io priority explicitly, use that. if not, convert\n * the cpu scheduler nice value to an io priority\n */" (function_definition) "static inline int task_nice_ioprio(struct task_struct *task)\n{\n return (task_nice(task) + 20) / 5;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "task_nice_ioprio(struct task_struct *task)" (identifier) "task_nice_ioprio" (parameter_list) "(struct task_struct *task)" (() "(" (parameter_declaration) "struct task_struct *task" (struct_specifier) "struct task_struct" (struct) "struct" (type_identifier) "task_struct" (pointer_declarator) "*task" (*) "*" (identifier) "task" ()) ")" (compound_statement) "{\n return (task_nice(task) + 20) / 5;\n}" ({) "{" (return_statement) "return (task_nice(task) + 20) / 5;" (return) "return" (binary_expression) "(task_nice(task) + 20) / 5" (parenthesized_expression) "(task_nice(task) + 20)" (() "(" (binary_expression) "task_nice(task) + 20" (call_expression) "task_nice(task)" (identifier) "task_nice" (argument_list) "(task)" (() "(" (identifier) "task" ()) ")" (+) "+" (number_literal) "20" ()) ")" (/) "/" (number_literal) "5" (;) ";" (}) "}" (comment) "/*\n * This is for the case where the task hasn't asked for a specific IO class.\n * Check for idle and rt task process, and return appropriate IO class.\n */" (function_definition) "static inline int task_nice_ioclass(struct task_struct *task)\n{\n if (task->policy == SCHED_IDLE)\n return IOPRIO_CLASS_IDLE;\n else if (task_is_realtime(task))\n return IOPRIO_CLASS_RT;\n else\n return IOPRIO_CLASS_BE;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "task_nice_ioclass(struct task_struct *task)" (identifier) "task_nice_ioclass" (parameter_list) "(struct task_struct *task)" (() "(" (parameter_declaration) "struct task_struct *task" (struct_specifier) "struct task_struct" (struct) "struct" (type_identifier) "task_struct" (pointer_declarator) "*task" (*) "*" (identifier) "task" ()) ")" (compound_statement) "{\n if (task->policy == SCHED_IDLE)\n return IOPRIO_CLASS_IDLE;\n else if (task_is_realtime(task))\n return IOPRIO_CLASS_RT;\n else\n return IOPRIO_CLASS_BE;\n}" ({) "{" (if_statement) "if (task->policy == SCHED_IDLE)\n return IOPRIO_CLASS_IDLE;\n else if (task_is_realtime(task))\n return IOPRIO_CLASS_RT;\n else\n return IOPRIO_CLASS_BE;" (if) "if" (parenthesized_expression) "(task->policy == SCHED_IDLE)" (() "(" (binary_expression) "task->policy == SCHED_IDLE" (field_expression) "task->policy" (identifier) "task" (->) "->" (field_identifier) "policy" (==) "==" (identifier) "SCHED_IDLE" ()) ")" (return_statement) "return IOPRIO_CLASS_IDLE;" (return) "return" (identifier) "IOPRIO_CLASS_IDLE" (;) ";" (else_clause) "else if (task_is_realtime(task))\n return IOPRIO_CLASS_RT;\n else\n return IOPRIO_CLASS_BE;" (else) "else" (if_statement) "if (task_is_realtime(task))\n return IOPRIO_CLASS_RT;\n else\n return IOPRIO_CLASS_BE;" (if) "if" (parenthesized_expression) "(task_is_realtime(task))" (() "(" (call_expression) "task_is_realtime(task)" (identifier) "task_is_realtime" (argument_list) "(task)" (() "(" (identifier) "task" ()) ")" ()) ")" (return_statement) "return IOPRIO_CLASS_RT;" (return) "return" (identifier) "IOPRIO_CLASS_RT" (;) ";" (else_clause) "else\n return IOPRIO_CLASS_BE;" (else) "else" (return_statement) "return IOPRIO_CLASS_BE;" (return) "return" (identifier) "IOPRIO_CLASS_BE" (;) ";" (}) "}" (comment) "/*\n * For inheritance, return the highest of the two given priorities\n */" (declaration) "extern int ioprio_best(unsigned short aprio, unsigned short bprio);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "ioprio_best(unsigned short aprio, unsigned short bprio)" (identifier) "ioprio_best" (parameter_list) "(unsigned short aprio, unsigned short bprio)" (() "(" (parameter_declaration) "unsigned short aprio" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (identifier) "aprio" (,) "," (parameter_declaration) "unsigned short bprio" (sized_type_specifier) "unsigned short" (unsigned) "unsigned" (short) "short" (identifier) "bprio" ()) ")" (;) ";" (declaration) "extern int set_task_ioprio(struct task_struct *task, int ioprio);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "set_task_ioprio(struct task_struct *task, int ioprio)" (identifier) "set_task_ioprio" (parameter_list) "(struct task_struct *task, int ioprio)" (() "(" (parameter_declaration) "struct task_struct *task" (struct_specifier) "struct task_struct" (struct) "struct" (type_identifier) "task_struct" (pointer_declarator) "*task" (*) "*" (identifier) "task" (,) "," (parameter_declaration) "int ioprio" (primitive_type) "int" (identifier) "ioprio" ()) ")" (;) ";" (preproc_ifdef) "#ifdef CONFIG_BLOCK\nextern int ioprio_check_cap(int ioprio);\n#else\nstatic inline int ioprio_check_cap(int ioprio)\n{\n return -ENOTBLK;\n}\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_BLOCK" (declaration) "extern int ioprio_check_cap(int ioprio);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (function_declarator) "ioprio_check_cap(int ioprio)" (identifier) "ioprio_check_cap" (parameter_list) "(int ioprio)" (() "(" (parameter_declaration) "int ioprio" (primitive_type) "int" (identifier) "ioprio" ()) ")" (;) ";" (preproc_else) "#else\nstatic inline int ioprio_check_cap(int ioprio)\n{\n return -ENOTBLK;\n}" (#else) "#else" (function_definition) "static inline int ioprio_check_cap(int ioprio)\n{\n return -ENOTBLK;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "ioprio_check_cap(int ioprio)" (identifier) "ioprio_check_cap" (parameter_list) "(int ioprio)" (() "(" (parameter_declaration) "int ioprio" (primitive_type) "int" (identifier) "ioprio" ()) ")" (compound_statement) "{\n return -ENOTBLK;\n}" ({) "{" (return_statement) "return -ENOTBLK;" (return) "return" (unary_expression) "-ENOTBLK" (-) "-" (identifier) "ENOTBLK" (;) ";" (}) "}" (#endif) "#endif" (comment) "/* CONFIG_BLOCK */" (#endif) "#endif"
294
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 27.77, "nodes": 204, "errors": 0, "source_hash": "3d3104992e1d9f6468e51b3998f856a3a54f4835110f0ef92b2bc11941c9ce2a", "categorized_nodes": 136}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef IOPRIO_H\n#define IOPRIO_H\n\n#include <linux/sched.h>\n#include <linux/sched/rt.h>\n#include <linux/iocontext.h>\n\n/*\n * Gives us 8 prio classes with 13-bits of data for each class\n */\n#define IOPRIO_CLASS_SHIFT\t(13)\n#define IOPRIO_PRIO_MASK\t((1UL << IOPRIO_CLASS_SHIFT) - 1)\n\n#define IOPRIO_PRIO_CLASS(mask)\t((mask) >> IOPRIO_CLASS_SHIFT)\n#define IOPRIO_PRIO_DATA(mask)\t((mask) & IOPRIO_PRIO_MASK)\n#define IOPRIO_PRIO_VALUE(class, data)\t(((class) << IOPRIO_CLASS_SHIFT) | data)\n\n#define ioprio_valid(mask)\t(IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)\n\n/*\n * These are the io priority groups as implemented by CFQ. RT is the realtime\n * class, it always gets premium service. BE is the best-effort scheduling\n * class, the default for any process. IDLE is the idle scheduling class, it\n * is only served when no one else is using the disk.\n */\nenum {\n\tIOPRIO_CLASS_NONE,\n\tIOPRIO_CLASS_RT,\n\tIOPRIO_CLASS_BE,\n\tIOPRIO_CLASS_IDLE,\n};\n\n/*\n * 8 best effort priority levels are supported\n */\n#define IOPRIO_BE_NR\t(8)\n\nenum {\n\tIOPRIO_WHO_PROCESS = 1,\n\tIOPRIO_WHO_PGRP,\n\tIOPRIO_WHO_USER,\n};\n\n/*\n * Fallback BE priority\n */\n#define IOPRIO_NORM\t(4)\n\n/*\n * if process has set io priority explicitly, use that. if not, convert\n * the cpu scheduler nice value to an io priority\n */\nstatic inline int task_nice_ioprio(struct task_struct *task)\n{\n\treturn (task_nice(task) + 20) / 5;\n}\n\n/*\n * This is for the case where the task hasn't asked for a specific IO class.\n * Check for idle and rt task process, and return appropriate IO class.\n */\nstatic inline int task_nice_ioclass(struct task_struct *task)\n{\n\tif (task->policy == SCHED_IDLE)\n\t\treturn IOPRIO_CLASS_IDLE;\n\telse if (task_is_realtime(task))\n\t\treturn IOPRIO_CLASS_RT;\n\telse\n\t\treturn IOPRIO_CLASS_BE;\n}\n\n/*\n * For inheritance, return the highest of the two given priorities\n */\nextern int ioprio_best(unsigned short aprio, unsigned short bprio);\n\nextern int set_task_ioprio(struct task_struct *task, int ioprio);\n\n#ifdef CONFIG_BLOCK\nextern int ioprio_check_cap(int ioprio);\n#else\nstatic inline int ioprio_check_cap(int ioprio)\n{\n\treturn -ENOTBLK;\n}\n#endif /* CONFIG_BLOCK */\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 19, 23, 29, 35, 41, 47, 58, 62, 73, 77, 103, 139, 156, 173, 203], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 88, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 2, "type": "identifier", "text": "IOPRIO_H", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 16}}, {"id": 3, "type": "preproc_def", "text": "#define IOPRIO_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "identifier", "text": "IOPRIO_H", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/sched.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": "system_lib_string", "text": "<linux/sched.h>", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include <linux/sched/rt.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<linux/sched/rt.h>", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 27}}, {"id": 12, "type": "preproc_include", "text": "#include <linux/iocontext.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<linux/iocontext.h>", "parent": 12, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 28}}, {"id": 15, "type": "preproc_def", "text": "#define IOPRIO_CLASS_SHIFT\t(13)\n", "parent": 0, "children": [16, 17, 18], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 17, "type": "identifier", "text": "IOPRIO_CLASS_SHIFT", "parent": 15, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 26}}, {"id": 18, "type": "preproc_arg", "text": "(13)", "parent": 15, "children": [], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 11, "column": 31}}, {"id": 19, "type": "preproc_def", "text": "#define IOPRIO_PRIO_MASK\t((1UL << IOPRIO_CLASS_SHIFT) - 1)\n", "parent": 0, "children": [20, 21, 22], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 21, "type": "identifier", "text": "IOPRIO_PRIO_MASK", "parent": 19, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 24}}, {"id": 22, "type": "preproc_arg", "text": "((1UL << IOPRIO_CLASS_SHIFT) - 1)", "parent": 19, "children": [], "start_point": {"row": 12, "column": 25}, "end_point": {"row": 12, "column": 58}}, {"id": 23, "type": "preproc_function_def", "text": "#define IOPRIO_PRIO_CLASS(mask)\t((mask) >> IOPRIO_CLASS_SHIFT)\n", "parent": 0, "children": [24, 25, 26, 28], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 24, "type": "#define", "text": "#define", "parent": 23, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 25, "type": "identifier", "text": "IOPRIO_PRIO_CLASS", "parent": 23, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 25}}, {"id": 26, "type": "preproc_params", "text": "(mask)", "parent": 23, "children": [27], "start_point": {"row": 14, "column": 25}, "end_point": {"row": 14, "column": 31}}, {"id": 27, "type": "identifier", "text": "mask", "parent": 26, "children": [], "start_point": {"row": 14, "column": 26}, "end_point": {"row": 14, "column": 30}}, {"id": 28, "type": "preproc_arg", "text": "((mask) >> IOPRIO_CLASS_SHIFT)", "parent": 23, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 62}}, {"id": 29, "type": "preproc_function_def", "text": "#define IOPRIO_PRIO_DATA(mask)\t((mask) & IOPRIO_PRIO_MASK)\n", "parent": 0, "children": [30, 31, 32, 34], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 31, "type": "identifier", "text": "IOPRIO_PRIO_DATA", "parent": 29, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 24}}, {"id": 32, "type": "preproc_params", "text": "(mask)", "parent": 29, "children": [33], "start_point": {"row": 15, "column": 24}, "end_point": {"row": 15, "column": 30}}, {"id": 33, "type": "identifier", "text": "mask", "parent": 32, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 29}}, {"id": 34, "type": "preproc_arg", "text": "((mask) & IOPRIO_PRIO_MASK)", "parent": 29, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 58}}, {"id": 35, "type": "preproc_function_def", "text": "#define IOPRIO_PRIO_VALUE(class, data)\t(((class) << IOPRIO_CLASS_SHIFT) | data)\n", "parent": 0, "children": [36, 37, 38, 40], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 36, "type": "#define", "text": "#define", "parent": 35, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 37, "type": "identifier", "text": "IOPRIO_PRIO_VALUE", "parent": 35, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 25}}, {"id": 38, "type": "preproc_params", "text": "(class, data)", "parent": 35, "children": [39], "start_point": {"row": 16, "column": 25}, "end_point": {"row": 16, "column": 38}}, {"id": 39, "type": "identifier", "text": "data", "parent": 38, "children": [], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 37}}, {"id": 40, "type": "preproc_arg", "text": "(((class) << IOPRIO_CLASS_SHIFT) | data)", "parent": 35, "children": [], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 79}}, {"id": 41, "type": "preproc_function_def", "text": "#define ioprio_valid(mask)\t(IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)\n", "parent": 0, "children": [42, 43, 44, 46], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 43, "type": "identifier", "text": "ioprio_valid", "parent": 41, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 20}}, {"id": 44, "type": "preproc_params", "text": "(mask)", "parent": 41, "children": [45], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 26}}, {"id": 45, "type": "identifier", "text": "mask", "parent": 44, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 25}}, {"id": 46, "type": "preproc_arg", "text": "(IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)", "parent": 41, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 75}}, {"id": 47, "type": "enum_specifier", "text": "enum {\n\tIOPRIO_CLASS_NONE,\n\tIOPRIO_CLASS_RT,\n\tIOPRIO_CLASS_BE,\n\tIOPRIO_CLASS_IDLE,\n}", "parent": 0, "children": [48, 49], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 31, "column": 1}}, {"id": 48, "type": "enum", "text": "enum", "parent": 47, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 49, "type": "enumerator_list", "text": "{\n\tIOPRIO_CLASS_NONE,\n\tIOPRIO_CLASS_RT,\n\tIOPRIO_CLASS_BE,\n\tIOPRIO_CLASS_IDLE,\n}", "parent": 47, "children": [50, 52, 54, 56], "start_point": {"row": 26, "column": 5}, "end_point": {"row": 31, "column": 1}}, {"id": 50, "type": "enumerator", "text": "IOPRIO_CLASS_NONE", "parent": 49, "children": [51], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 18}}, {"id": 51, "type": "identifier", "text": "IOPRIO_CLASS_NONE", "parent": 50, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 18}}, {"id": 52, "type": "enumerator", "text": "IOPRIO_CLASS_RT", "parent": 49, "children": [53], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 16}}, {"id": 53, "type": "identifier", "text": "IOPRIO_CLASS_RT", "parent": 52, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 16}}, {"id": 54, "type": "enumerator", "text": "IOPRIO_CLASS_BE", "parent": 49, "children": [55], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 16}}, {"id": 55, "type": "identifier", "text": "IOPRIO_CLASS_BE", "parent": 54, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 16}}, {"id": 56, "type": "enumerator", "text": "IOPRIO_CLASS_IDLE", "parent": 49, "children": [57], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 18}}, {"id": 57, "type": "identifier", "text": "IOPRIO_CLASS_IDLE", "parent": 56, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 18}}, {"id": 58, "type": "preproc_def", "text": "#define IOPRIO_BE_NR\t(8)\n", "parent": 0, "children": [59, 60, 61], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 59, "type": "#define", "text": "#define", "parent": 58, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 60, "type": "identifier", "text": "IOPRIO_BE_NR", "parent": 58, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 20}}, {"id": 61, "type": "preproc_arg", "text": "(8)", "parent": 58, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 24}}, {"id": 62, "type": "enum_specifier", "text": "enum {\n\tIOPRIO_WHO_PROCESS = 1,\n\tIOPRIO_WHO_PGRP,\n\tIOPRIO_WHO_USER,\n}", "parent": 0, "children": [63, 64], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 42, "column": 1}}, {"id": 63, "type": "enum", "text": "enum", "parent": 62, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 4}}, {"id": 64, "type": "enumerator_list", "text": "{\n\tIOPRIO_WHO_PROCESS = 1,\n\tIOPRIO_WHO_PGRP,\n\tIOPRIO_WHO_USER,\n}", "parent": 62, "children": [65, 69, 71], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 42, "column": 1}}, {"id": 65, "type": "enumerator", "text": "IOPRIO_WHO_PROCESS = 1", "parent": 64, "children": [66, 67, 68], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 23}}, {"id": 66, "type": "identifier", "text": "IOPRIO_WHO_PROCESS", "parent": 65, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 19}}, {"id": 67, "type": "=", "text": "=", "parent": 65, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 21}}, {"id": 68, "type": "number_literal", "text": "1", "parent": 65, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 23}}, {"id": 69, "type": "enumerator", "text": "IOPRIO_WHO_PGRP", "parent": 64, "children": [70], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 16}}, {"id": 70, "type": "identifier", "text": "IOPRIO_WHO_PGRP", "parent": 69, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 16}}, {"id": 71, "type": "enumerator", "text": "IOPRIO_WHO_USER", "parent": 64, "children": [72], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 16}}, {"id": 72, "type": "identifier", "text": "IOPRIO_WHO_USER", "parent": 71, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 16}}, {"id": 73, "type": "preproc_def", "text": "#define IOPRIO_NORM\t(4)\n", "parent": 0, "children": [74, 75, 76], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 74, "type": "#define", "text": "#define", "parent": 73, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 75, "type": "identifier", "text": "IOPRIO_NORM", "parent": 73, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 19}}, {"id": 76, "type": "preproc_arg", "text": "(4)", "parent": 73, "children": [], "start_point": {"row": 47, "column": 20}, "end_point": {"row": 47, "column": 23}}, {"id": 77, "type": "function_definition", "text": "static inline int task_nice_ioprio(struct task_struct *task)\n{\n\treturn (task_nice(task) + 20) / 5;\n}", "parent": 0, "children": [78, 80, 81], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 56, "column": 1}}, {"id": 78, "type": "storage_class_specifier", "text": "inline", "parent": 77, "children": [79], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 13}}, {"id": 79, "type": "inline", "text": "inline", "parent": 78, "children": [], "start_point": {"row": 53, "column": 7}, "end_point": {"row": 53, "column": 13}}, {"id": 80, "type": "primitive_type", "text": "int", "parent": 77, "children": [], "start_point": {"row": 53, "column": 14}, "end_point": {"row": 53, "column": 17}}, {"id": 81, "type": "function_declarator", "text": "task_nice_ioprio(struct task_struct *task)", "parent": 77, "children": [82, 83], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 60}}, {"id": 82, "type": "identifier", "text": "task_nice_ioprio", "parent": 81, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 34}}, {"id": 83, "type": "parameter_list", "text": "(struct task_struct *task)", "parent": 81, "children": [84], "start_point": {"row": 53, "column": 34}, "end_point": {"row": 53, "column": 60}}, {"id": 84, "type": "parameter_declaration", "text": "struct task_struct *task", "parent": 83, "children": [85, 88], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 59}}, {"id": 85, "type": "struct_specifier", "text": "struct task_struct", "parent": 84, "children": [86, 87], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 53}}, {"id": 86, "type": "struct", "text": "struct", "parent": 85, "children": [], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 41}}, {"id": 87, "type": "type_identifier", "text": "task_struct", "parent": 85, "children": [], "start_point": {"row": 53, "column": 42}, "end_point": {"row": 53, "column": 53}}, {"id": 88, "type": "pointer_declarator", "text": "*task", "parent": 84, "children": [89, 90], "start_point": {"row": 53, "column": 54}, "end_point": {"row": 53, "column": 59}}, {"id": 89, "type": "*", "text": "*", "parent": 88, "children": [], "start_point": {"row": 53, "column": 54}, "end_point": {"row": 53, "column": 55}}, {"id": 90, "type": "identifier", "text": "task", "parent": 88, "children": [], "start_point": {"row": 53, "column": 55}, "end_point": {"row": 53, "column": 59}}, {"id": 91, "type": "return_statement", "text": "return (task_nice(task) + 20) / 5;", "parent": 77, "children": [92], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 35}}, {"id": 92, "type": "binary_expression", "text": "(task_nice(task) + 20) / 5", "parent": 91, "children": [93, 101, 102], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 34}}, {"id": 93, "type": "parenthesized_expression", "text": "(task_nice(task) + 20)", "parent": 92, "children": [94], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 30}}, {"id": 94, "type": "binary_expression", "text": "task_nice(task) + 20", "parent": 93, "children": [95, 99, 100], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 29}}, {"id": 95, "type": "call_expression", "text": "task_nice(task)", "parent": 94, "children": [96, 97], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 24}}, {"id": 96, "type": "identifier", "text": "task_nice", "parent": 95, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 18}}, {"id": 97, "type": "argument_list", "text": "(task)", "parent": 95, "children": [98], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 24}}, {"id": 98, "type": "identifier", "text": "task", "parent": 97, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 23}}, {"id": 99, "type": "+", "text": "+", "parent": 94, "children": [], "start_point": {"row": 55, "column": 25}, "end_point": {"row": 55, "column": 26}}, {"id": 100, "type": "number_literal", "text": "20", "parent": 94, "children": [], "start_point": {"row": 55, "column": 27}, "end_point": {"row": 55, "column": 29}}, {"id": 101, "type": "/", "text": "/", "parent": 92, "children": [], "start_point": {"row": 55, "column": 31}, "end_point": {"row": 55, "column": 32}}, {"id": 102, "type": "number_literal", "text": "5", "parent": 92, "children": [], "start_point": {"row": 55, "column": 33}, "end_point": {"row": 55, "column": 34}}, {"id": 103, "type": "function_definition", "text": "static inline int task_nice_ioclass(struct task_struct *task)\n{\n\tif (task->policy == SCHED_IDLE)\n\t\treturn IOPRIO_CLASS_IDLE;\n\telse if (task_is_realtime(task))\n\t\treturn IOPRIO_CLASS_RT;\n\telse\n\t\treturn IOPRIO_CLASS_BE;\n}", "parent": 0, "children": [104, 106, 107], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 70, "column": 1}}, {"id": 104, "type": "storage_class_specifier", "text": "inline", "parent": 103, "children": [105], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 13}}, {"id": 105, "type": "inline", "text": "inline", "parent": 104, "children": [], "start_point": {"row": 62, "column": 7}, "end_point": {"row": 62, "column": 13}}, {"id": 106, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 62, "column": 14}, "end_point": {"row": 62, "column": 17}}, {"id": 107, "type": "function_declarator", "text": "task_nice_ioclass(struct task_struct *task)", "parent": 103, "children": [108, 109], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 61}}, {"id": 108, "type": "identifier", "text": "task_nice_ioclass", "parent": 107, "children": [], "start_point": {"row": 62, "column": 18}, "end_point": {"row": 62, "column": 35}}, {"id": 109, "type": "parameter_list", "text": "(struct task_struct *task)", "parent": 107, "children": [110], "start_point": {"row": 62, "column": 35}, "end_point": {"row": 62, "column": 61}}, {"id": 110, "type": "parameter_declaration", "text": "struct task_struct *task", "parent": 109, "children": [111, 114], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 60}}, {"id": 111, "type": "struct_specifier", "text": "struct task_struct", "parent": 110, "children": [112, 113], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 54}}, {"id": 112, "type": "struct", "text": "struct", "parent": 111, "children": [], "start_point": {"row": 62, "column": 36}, "end_point": {"row": 62, "column": 42}}, {"id": 113, "type": "type_identifier", "text": "task_struct", "parent": 111, "children": [], "start_point": {"row": 62, "column": 43}, "end_point": {"row": 62, "column": 54}}, {"id": 114, "type": "pointer_declarator", "text": "*task", "parent": 110, "children": [115, 116], "start_point": {"row": 62, "column": 55}, "end_point": {"row": 62, "column": 60}}, {"id": 115, "type": "*", "text": "*", "parent": 114, "children": [], "start_point": {"row": 62, "column": 55}, "end_point": {"row": 62, "column": 56}}, {"id": 116, "type": "identifier", "text": "task", "parent": 114, "children": [], "start_point": {"row": 62, "column": 56}, "end_point": {"row": 62, "column": 60}}, {"id": 117, "type": "if_statement", "text": "if (task->policy == SCHED_IDLE)\n\t\treturn IOPRIO_CLASS_IDLE;\n\telse if (task_is_realtime(task))\n\t\treturn IOPRIO_CLASS_RT;\n\telse\n\t\treturn IOPRIO_CLASS_BE;", "parent": 103, "children": [118, 125, 127], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 69, "column": 25}}, {"id": 118, "type": "parenthesized_expression", "text": "(task->policy == SCHED_IDLE)", "parent": 117, "children": [119], "start_point": {"row": 64, "column": 4}, "end_point": {"row": 64, "column": 32}}, {"id": 119, "type": "binary_expression", "text": "task->policy == SCHED_IDLE", "parent": 118, "children": [120, 123, 124], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 31}}, {"id": 120, "type": "field_expression", "text": "task->policy", "parent": 119, "children": [121, 122], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 17}}, {"id": 121, "type": "identifier", "text": "task", "parent": 120, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 9}}, {"id": 122, "type": "field_identifier", "text": "policy", "parent": 120, "children": [], "start_point": {"row": 64, "column": 11}, "end_point": {"row": 64, "column": 17}}, {"id": 123, "type": "==", "text": "==", "parent": 119, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 20}}, {"id": 124, "type": "identifier", "text": "SCHED_IDLE", "parent": 119, "children": [], "start_point": {"row": 64, "column": 21}, "end_point": {"row": 64, "column": 31}}, {"id": 125, "type": "return_statement", "text": "return IOPRIO_CLASS_IDLE;", "parent": 117, "children": [126], "start_point": {"row": 65, "column": 2}, "end_point": {"row": 65, "column": 27}}, {"id": 126, "type": "identifier", "text": "IOPRIO_CLASS_IDLE", "parent": 125, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 26}}, {"id": 127, "type": "else_clause", "text": "else if (task_is_realtime(task))\n\t\treturn IOPRIO_CLASS_RT;\n\telse\n\t\treturn IOPRIO_CLASS_BE;", "parent": 117, "children": [128], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 69, "column": 25}}, {"id": 128, "type": "if_statement", "text": "if (task_is_realtime(task))\n\t\treturn IOPRIO_CLASS_RT;\n\telse\n\t\treturn IOPRIO_CLASS_BE;", "parent": 127, "children": [129, 134, 136], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 69, "column": 25}}, {"id": 129, "type": "parenthesized_expression", "text": "(task_is_realtime(task))", "parent": 128, "children": [130], "start_point": {"row": 66, "column": 9}, "end_point": {"row": 66, "column": 33}}, {"id": 130, "type": "call_expression", "text": "task_is_realtime(task)", "parent": 129, "children": [131, 132], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 32}}, {"id": 131, "type": "identifier", "text": "task_is_realtime", "parent": 130, "children": [], "start_point": {"row": 66, "column": 10}, "end_point": {"row": 66, "column": 26}}, {"id": 132, "type": "argument_list", "text": "(task)", "parent": 130, "children": [133], "start_point": {"row": 66, "column": 26}, "end_point": {"row": 66, "column": 32}}, {"id": 133, "type": "identifier", "text": "task", "parent": 132, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 31}}, {"id": 134, "type": "return_statement", "text": "return IOPRIO_CLASS_RT;", "parent": 128, "children": [135], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 25}}, {"id": 135, "type": "identifier", "text": "IOPRIO_CLASS_RT", "parent": 134, "children": [], "start_point": {"row": 67, "column": 9}, "end_point": {"row": 67, "column": 24}}, {"id": 136, "type": "else_clause", "text": "else\n\t\treturn IOPRIO_CLASS_BE;", "parent": 128, "children": [137], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 69, "column": 25}}, {"id": 137, "type": "return_statement", "text": "return IOPRIO_CLASS_BE;", "parent": 136, "children": [138], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 25}}, {"id": 138, "type": "identifier", "text": "IOPRIO_CLASS_BE", "parent": 137, "children": [], "start_point": {"row": 69, "column": 9}, "end_point": {"row": 69, "column": 24}}, {"id": 139, "type": "declaration", "text": "extern int ioprio_best(unsigned short aprio, unsigned short bprio);", "parent": 0, "children": [140, 142, 143], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 67}}, {"id": 140, "type": "storage_class_specifier", "text": "extern", "parent": 139, "children": [141], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 141, "type": "extern", "text": "extern", "parent": 140, "children": [], "start_point": {"row": 75, "column": 0}, "end_point": {"row": 75, "column": 6}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 139, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 10}}, {"id": 143, "type": "function_declarator", "text": "ioprio_best(unsigned short aprio, unsigned short bprio)", "parent": 139, "children": [144, 145], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 66}}, {"id": 144, "type": "identifier", "text": "ioprio_best", "parent": 143, "children": [], "start_point": {"row": 75, "column": 11}, "end_point": {"row": 75, "column": 22}}, {"id": 145, "type": "parameter_list", "text": "(unsigned short aprio, unsigned short bprio)", "parent": 143, "children": [146, 151], "start_point": {"row": 75, "column": 22}, "end_point": {"row": 75, "column": 66}}, {"id": 146, "type": "parameter_declaration", "text": "unsigned short aprio", "parent": 145, "children": [147, 150], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 43}}, {"id": 147, "type": "sized_type_specifier", "text": "unsigned short", "parent": 146, "children": [148, 149], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 37}}, {"id": 148, "type": "unsigned", "text": "unsigned", "parent": 147, "children": [], "start_point": {"row": 75, "column": 23}, "end_point": {"row": 75, "column": 31}}, {"id": 149, "type": "short", "text": "short", "parent": 147, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 37}}, {"id": 150, "type": "identifier", "text": "aprio", "parent": 146, "children": [], "start_point": {"row": 75, "column": 38}, "end_point": {"row": 75, "column": 43}}, {"id": 151, "type": "parameter_declaration", "text": "unsigned short bprio", "parent": 145, "children": [152, 155], "start_point": {"row": 75, "column": 45}, "end_point": {"row": 75, "column": 65}}, {"id": 152, "type": "sized_type_specifier", "text": "unsigned short", "parent": 151, "children": [153, 154], "start_point": {"row": 75, "column": 45}, "end_point": {"row": 75, "column": 59}}, {"id": 153, "type": "unsigned", "text": "unsigned", "parent": 152, "children": [], "start_point": {"row": 75, "column": 45}, "end_point": {"row": 75, "column": 53}}, {"id": 154, "type": "short", "text": "short", "parent": 152, "children": [], "start_point": {"row": 75, "column": 54}, "end_point": {"row": 75, "column": 59}}, {"id": 155, "type": "identifier", "text": "bprio", "parent": 151, "children": [], "start_point": {"row": 75, "column": 60}, "end_point": {"row": 75, "column": 65}}, {"id": 156, "type": "declaration", "text": "extern int set_task_ioprio(struct task_struct *task, int ioprio);", "parent": 0, "children": [157, 159, 160], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 65}}, {"id": 157, "type": "storage_class_specifier", "text": "extern", "parent": 156, "children": [158], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 158, "type": "extern", "text": "extern", "parent": 157, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 6}}, {"id": 159, "type": "primitive_type", "text": "int", "parent": 156, "children": [], "start_point": {"row": 77, "column": 7}, "end_point": {"row": 77, "column": 10}}, {"id": 160, "type": "function_declarator", "text": "set_task_ioprio(struct task_struct *task, int ioprio)", "parent": 156, "children": [161, 162], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 64}}, {"id": 161, "type": "identifier", "text": "set_task_ioprio", "parent": 160, "children": [], "start_point": {"row": 77, "column": 11}, "end_point": {"row": 77, "column": 26}}, {"id": 162, "type": "parameter_list", "text": "(struct task_struct *task, int ioprio)", "parent": 160, "children": [163, 170], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 77, "column": 64}}, {"id": 163, "type": "parameter_declaration", "text": "struct task_struct *task", "parent": 162, "children": [164, 167], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 51}}, {"id": 164, "type": "struct_specifier", "text": "struct task_struct", "parent": 163, "children": [165, 166], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 45}}, {"id": 165, "type": "struct", "text": "struct", "parent": 164, "children": [], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 33}}, {"id": 166, "type": "type_identifier", "text": "task_struct", "parent": 164, "children": [], "start_point": {"row": 77, "column": 34}, "end_point": {"row": 77, "column": 45}}, {"id": 167, "type": "pointer_declarator", "text": "*task", "parent": 163, "children": [168, 169], "start_point": {"row": 77, "column": 46}, "end_point": {"row": 77, "column": 51}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 77, "column": 46}, "end_point": {"row": 77, "column": 47}}, {"id": 169, "type": "identifier", "text": "task", "parent": 167, "children": [], "start_point": {"row": 77, "column": 47}, "end_point": {"row": 77, "column": 51}}, {"id": 170, "type": "parameter_declaration", "text": "int ioprio", "parent": 162, "children": [171, 172], "start_point": {"row": 77, "column": 53}, "end_point": {"row": 77, "column": 63}}, {"id": 171, "type": "primitive_type", "text": "int", "parent": 170, "children": [], "start_point": {"row": 77, "column": 53}, "end_point": {"row": 77, "column": 56}}, {"id": 172, "type": "identifier", "text": "ioprio", "parent": 170, "children": [], "start_point": {"row": 77, "column": 57}, "end_point": {"row": 77, "column": 63}}, {"id": 173, "type": "preproc_ifdef", "text": "#ifdef CONFIG_BLOCK\nextern int ioprio_check_cap(int ioprio);\n#else\nstatic inline int ioprio_check_cap(int ioprio)\n{\n\treturn -ENOTBLK;\n}\n#endif", "parent": 0, "children": [174, 175, 176, 186, 202], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 86, "column": 6}}, {"id": 174, "type": "#ifdef", "text": "#ifdef", "parent": 173, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 6}}, {"id": 175, "type": "identifier", "text": "CONFIG_BLOCK", "parent": 173, "children": [], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 19}}, {"id": 176, "type": "declaration", "text": "extern int ioprio_check_cap(int ioprio);", "parent": 173, "children": [177, 179, 180], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 40}}, {"id": 177, "type": "storage_class_specifier", "text": "extern", "parent": 176, "children": [178], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 6}}, {"id": 178, "type": "extern", "text": "extern", "parent": 177, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 6}}, {"id": 179, "type": "primitive_type", "text": "int", "parent": 176, "children": [], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 10}}, {"id": 180, "type": "function_declarator", "text": "ioprio_check_cap(int ioprio)", "parent": 176, "children": [181, 182], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 39}}, {"id": 181, "type": "identifier", "text": "ioprio_check_cap", "parent": 180, "children": [], "start_point": {"row": 80, "column": 11}, "end_point": {"row": 80, "column": 27}}, {"id": 182, "type": "parameter_list", "text": "(int ioprio)", "parent": 180, "children": [183], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 39}}, {"id": 183, "type": "parameter_declaration", "text": "int ioprio", "parent": 182, "children": [184, 185], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 38}}, {"id": 184, "type": "primitive_type", "text": "int", "parent": 183, "children": [], "start_point": {"row": 80, "column": 28}, "end_point": {"row": 80, "column": 31}}, {"id": 185, "type": "identifier", "text": "ioprio", "parent": 183, "children": [], "start_point": {"row": 80, "column": 32}, "end_point": {"row": 80, "column": 38}}, {"id": 186, "type": "preproc_else", "text": "#else\nstatic inline int ioprio_check_cap(int ioprio)\n{\n\treturn -ENOTBLK;\n}", "parent": 173, "children": [187, 188], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 85, "column": 1}}, {"id": 187, "type": "#else", "text": "#else", "parent": 186, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 5}}, {"id": 188, "type": "function_definition", "text": "static inline int ioprio_check_cap(int ioprio)\n{\n\treturn -ENOTBLK;\n}", "parent": 186, "children": [189, 191, 192], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 85, "column": 1}}, {"id": 189, "type": "storage_class_specifier", "text": "inline", "parent": 188, "children": [190], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 13}}, {"id": 190, "type": "inline", "text": "inline", "parent": 189, "children": [], "start_point": {"row": 82, "column": 7}, "end_point": {"row": 82, "column": 13}}, {"id": 191, "type": "primitive_type", "text": "int", "parent": 188, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 17}}, {"id": 192, "type": "function_declarator", "text": "ioprio_check_cap(int ioprio)", "parent": 188, "children": [193, 194], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 46}}, {"id": 193, "type": "identifier", "text": "ioprio_check_cap", "parent": 192, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 34}}, {"id": 194, "type": "parameter_list", "text": "(int ioprio)", "parent": 192, "children": [195], "start_point": {"row": 82, "column": 34}, "end_point": {"row": 82, "column": 46}}, {"id": 195, "type": "parameter_declaration", "text": "int ioprio", "parent": 194, "children": [196, 197], "start_point": {"row": 82, "column": 35}, "end_point": {"row": 82, "column": 45}}, {"id": 196, "type": "primitive_type", "text": "int", "parent": 195, "children": [], "start_point": {"row": 82, "column": 35}, "end_point": {"row": 82, "column": 38}}, {"id": 197, "type": "identifier", "text": "ioprio", "parent": 195, "children": [], "start_point": {"row": 82, "column": 39}, "end_point": {"row": 82, "column": 45}}, {"id": 198, "type": "return_statement", "text": "return -ENOTBLK;", "parent": 188, "children": [199], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 17}}, {"id": 199, "type": "unary_expression", "text": "-ENOTBLK", "parent": 198, "children": [200, 201], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 16}}, {"id": 200, "type": "-", "text": "-", "parent": 199, "children": [], "start_point": {"row": 84, "column": 8}, "end_point": {"row": 84, "column": 9}}, {"id": 201, "type": "identifier", "text": "ENOTBLK", "parent": 199, "children": [], "start_point": {"row": 84, "column": 9}, "end_point": {"row": 84, "column": 16}}, {"id": 202, "type": "#endif", "text": "#endif", "parent": 173, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 6}}, {"id": 203, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 6}}]}, "node_categories": {"declarations": {"functions": [23, 29, 35, 41, 77, 81, 103, 107, 143, 160, 180, 188, 192], "variables": [84, 110, 139, 146, 151, 156, 163, 170, 176, 183, 195], "classes": [78, 85, 86, 104, 111, 112, 140, 157, 164, 165, 177, 189], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": [47, 48, 49, 50, 52, 54, 56, 62, 63, 64, 65, 69, 71]}, "statements": {"expressions": [92, 93, 94, 95, 118, 119, 120, 129, 130, 199], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 17, 21, 25, 27, 31, 33, 37, 39, 43, 45, 51, 53, 55, 57, 60, 66, 70, 72, 75, 82, 87, 90, 96, 98, 108, 113, 116, 117, 121, 122, 124, 126, 128, 131, 133, 135, 138, 144, 147, 150, 152, 155, 161, 166, 169, 172, 173, 174, 175, 181, 185, 193, 197, 201, 202, 203], "returns": [91, 125, 134, 137, 198], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 68, 100, 102], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOPRIO_PRIO_CLASS(mask)\t((mask) >> IOPRIO_CLASS_SHIFT)\n"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOPRIO_PRIO_DATA(mask)\t((mask) & IOPRIO_PRIO_MASK)\n"}, {"node_id": 35, "universal_type": "function", "name": "unknown", "text_snippet": "#define IOPRIO_PRIO_VALUE(class, data)\t(((class) << IOPRIO_CLASS_SHIFT) | data)\n"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "#define ioprio_valid(mask)\t(IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)\n"}, {"node_id": 77, "universal_type": "function", "name": "task_nice_ioprio", "text_snippet": "static inline int task_nice_ioprio(struct task_struct *task)\n{\n\treturn (task_nice(task) + 20) / 5;\n}"}, {"node_id": 81, "universal_type": "function", "name": "unknown", "text_snippet": "task_nice_ioprio(struct task_struct *task)"}, {"node_id": 103, "universal_type": "function", "name": "task_nice_ioclass", "text_snippet": "static inline int task_nice_ioclass(struct task_struct *task)\n{\n\tif (task->policy == SCHED_IDLE)\n\t\tr"}, {"node_id": 107, "universal_type": "function", "name": "unknown", "text_snippet": "task_nice_ioclass(struct task_struct *task)"}, {"node_id": 143, "universal_type": "function", "name": "unknown", "text_snippet": "ioprio_best(unsigned short aprio, unsigned short bprio)"}, {"node_id": 160, "universal_type": "function", "name": "ioprio)", "text_snippet": "set_task_ioprio(struct task_struct *task, int ioprio)"}, {"node_id": 180, "universal_type": "function", "name": "unknown", "text_snippet": "ioprio_check_cap(int ioprio)"}, {"node_id": 188, "universal_type": "function", "name": "ioprio_check_cap", "text_snippet": "static inline int ioprio_check_cap(int ioprio)\n{\n\treturn -ENOTBLK;\n}"}, {"node_id": 192, "universal_type": "function", "name": "unknown", "text_snippet": "ioprio_check_cap(int ioprio)"}], "class_declarations": [{"node_id": 78, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 85, "universal_type": "class", "name": "task_struct", "text_snippet": "struct task_struct"}, {"node_id": 86, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 104, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 111, "universal_type": "class", "name": "task_struct", "text_snippet": "struct task_struct"}, {"node_id": 112, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 140, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 157, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 164, "universal_type": "class", "name": "task_struct", "text_snippet": "struct task_struct"}, {"node_id": 165, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 177, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 189, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include <linux/sched.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <linux/sched/rt.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <linux/iocontext.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/* SPDX-License-Identifier: GPL-2.0 */\n#ifndef IOPRIO_H\n#define IOPRIO_H\n\n#include <linux/sched.h>\n#include <linux/sched/rt.h>\n#include <linux/iocontext.h>\n\n/*\n * Gives us 8 prio classes with 13-bits of data for each class\n */\n#define IOPRIO_CLASS_SHIFT\t(13)\n#define IOPRIO_PRIO_MASK\t((1UL << IOPRIO_CLASS_SHIFT) - 1)\n\n#define IOPRIO_PRIO_CLASS(mask)\t((mask) >> IOPRIO_CLASS_SHIFT)\n#define IOPRIO_PRIO_DATA(mask)\t((mask) & IOPRIO_PRIO_MASK)\n#define IOPRIO_PRIO_VALUE(class, data)\t(((class) << IOPRIO_CLASS_SHIFT) | data)\n\n#define ioprio_valid(mask)\t(IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE)\n\n/*\n * These are the io priority groups as implemented by CFQ. RT is the realtime\n * class, it always gets premium service. BE is the best-effort scheduling\n * class, the default for any process. IDLE is the idle scheduling class, it\n * is only served when no one else is using the disk.\n */\nenum {\n\tIOPRIO_CLASS_NONE,\n\tIOPRIO_CLASS_RT,\n\tIOPRIO_CLASS_BE,\n\tIOPRIO_CLASS_IDLE,\n};\n\n/*\n * 8 best effort priority levels are supported\n */\n#define IOPRIO_BE_NR\t(8)\n\nenum {\n\tIOPRIO_WHO_PROCESS = 1,\n\tIOPRIO_WHO_PGRP,\n\tIOPRIO_WHO_USER,\n};\n\n/*\n * Fallback BE priority\n */\n#define IOPRIO_NORM\t(4)\n\n/*\n * if process has set io priority explicitly, use that. if not, convert\n * the cpu scheduler nice value to an io priority\n */\nstatic inline int task_nice_ioprio(struct task_struct *task)\n{\n\treturn (task_nice(task) + 20) / 5;\n}\n\n/*\n * This is for the case where the task hasn't asked for a specific IO class.\n * Check for idle and rt task process, and return appropriate IO class.\n */\nstatic inline int task_nice_ioclass(struct task_struct *task)\n{\n\tif (task->policy == SCHED_IDLE)\n\t\treturn IOPRIO_CLASS_IDLE;\n\telse if (task_is_realtime(task))\n\t\treturn IOPRIO_CLASS_RT;\n\telse\n\t\treturn IOPRIO_CLASS_BE;\n}\n\n/*\n * For inheritance, return the highest of the two given priorities\n */\nextern int ioprio_best(unsigned short aprio, unsigned short bprio);\n\nextern int set_task_ioprio(struct task_struct *task, int ioprio);\n\n#ifdef CONFIG_BLOCK\nextern int ioprio_check_cap(int ioprio);\n#else\nstatic inline int ioprio_check_cap(int ioprio)\n{\n\treturn -ENOTBLK;\n}\n#endif /* CONFIG_BLOCK */\n\n#endif\n"}
80,366
c
#include "../include/asmc.h" int main(int argc, char** argv){ printf("\t=== ASMC ===\n"); short x=0; char* args[TOTAL_ATTRIBUTES]; while(x++ < TOTAL_ATTRIBUTES) args[x] = "\0"; // Fills with 0 values for(int i = 0; i < argc; i++) args[i] = *(argv + i); //Fills remaining memory attributes attrs = {args[0], args[1], args[2], args[3]}; // NOTE: Constant attributes parse_args(&attrs); return 0; }
29
15
(translation_unit) "#include "../include/asmc.h" \nint main(int argc, char** argv){ \n printf("\t=== ASMC ===\n"); \n \n short x=0; \n char* args[TOTAL_ATTRIBUTES]; \n \n while(x++ < TOTAL_ATTRIBUTES) args[x] = "\0"; // Fills with 0 values \n for(int i = 0; i < argc; i++) args[i] = *(argv + i); //Fills remaining memory \n \n attributes attrs = {args[0], args[1], args[2], args[3]}; // NOTE: Constant attributes \n parse_args(&attrs); \n \n return 0; \n} \n" (preproc_include) "#include "../include/asmc.h" \n" (#include) "#include" (string_literal) ""../include/asmc.h"" (") """ (string_content) "../include/asmc.h" (") """ (function_definition) "int main(int argc, char** argv){ \n printf("\t=== ASMC ===\n"); \n \n short x=0; \n char* args[TOTAL_ATTRIBUTES]; \n \n while(x++ < TOTAL_ATTRIBUTES) args[x] = "\0"; // Fills with 0 values \n for(int i = 0; i < argc; i++) args[i] = *(argv + i); //Fills remaining memory \n \n attributes attrs = {args[0], args[1], args[2], args[3]}; // NOTE: Constant attributes \n parse_args(&attrs); \n \n return 0; \n}" (primitive_type) "int" (function_declarator) "main(int argc, char** argv)" (identifier) "main" (parameter_list) "(int argc, char** argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char** argv" (primitive_type) "char" (pointer_declarator) "** argv" (*) "*" (pointer_declarator) "* argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{ \n printf("\t=== ASMC ===\n"); \n \n short x=0; \n char* args[TOTAL_ATTRIBUTES]; \n \n while(x++ < TOTAL_ATTRIBUTES) args[x] = "\0"; // Fills with 0 values \n for(int i = 0; i < argc; i++) args[i] = *(argv + i); //Fills remaining memory \n \n attributes attrs = {args[0], args[1], args[2], args[3]}; // NOTE: Constant attributes \n parse_args(&attrs); \n \n return 0; \n}" ({) "{" (expression_statement) "printf("\t=== ASMC ===\n");" (call_expression) "printf("\t=== ASMC ===\n")" (identifier) "printf" (argument_list) "("\t=== ASMC ===\n")" (() "(" (string_literal) ""\t=== ASMC ===\n"" (") """ (escape_sequence) "\t" (string_content) "=== ASMC ===" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (declaration) "short x=0;" (sized_type_specifier) "short" (short) "short" (init_declarator) "x=0" (identifier) "x" (=) "=" (number_literal) "0" (;) ";" (declaration) "char* args[TOTAL_ATTRIBUTES];" (primitive_type) "char" (pointer_declarator) "* args[TOTAL_ATTRIBUTES]" (*) "*" (array_declarator) "args[TOTAL_ATTRIBUTES]" (identifier) "args" ([) "[" (identifier) "TOTAL_ATTRIBUTES" (]) "]" (;) ";" (while_statement) "while(x++ < TOTAL_ATTRIBUTES) args[x] = "\0";" (while) "while" (parenthesized_expression) "(x++ < TOTAL_ATTRIBUTES)" (() "(" (binary_expression) "x++ < TOTAL_ATTRIBUTES" (update_expression) "x++" (identifier) "x" (++) "++" (<) "<" (identifier) "TOTAL_ATTRIBUTES" ()) ")" (expression_statement) "args[x] = "\0";" (assignment_expression) "args[x] = "\0"" (subscript_expression) "args[x]" (identifier) "args" ([) "[" (identifier) "x" (]) "]" (=) "=" (string_literal) ""\0"" (") """ (escape_sequence) "\0" (") """ (;) ";" (comment) "// Fills with 0 values " (for_statement) "for(int i = 0; i < argc; i++) args[i] = *(argv + i);" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < argc" (identifier) "i" (<) "<" (identifier) "argc" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (expression_statement) "args[i] = *(argv + i);" (assignment_expression) "args[i] = *(argv + i)" (subscript_expression) "args[i]" (identifier) "args" ([) "[" (identifier) "i" (]) "]" (=) "=" (pointer_expression) "*(argv + i)" (*) "*" (parenthesized_expression) "(argv + i)" (() "(" (binary_expression) "argv + i" (identifier) "argv" (+) "+" (identifier) "i" ()) ")" (;) ";" (comment) "//Fills remaining memory " (declaration) "attributes attrs = {args[0], args[1], args[2], args[3]};" (type_identifier) "attributes" (init_declarator) "attrs = {args[0], args[1], args[2], args[3]}" (identifier) "attrs" (=) "=" (initializer_list) "{args[0], args[1], args[2], args[3]}" ({) "{" (subscript_expression) "args[0]" (identifier) "args" ([) "[" (number_literal) "0" (]) "]" (,) "," (subscript_expression) "args[1]" (identifier) "args" ([) "[" (number_literal) "1" (]) "]" (,) "," (subscript_expression) "args[2]" (identifier) "args" ([) "[" (number_literal) "2" (]) "]" (,) "," (subscript_expression) "args[3]" (identifier) "args" ([) "[" (number_literal) "3" (]) "]" (}) "}" (;) ";" (comment) "// NOTE: Constant attributes " (expression_statement) "parse_args(&attrs);" (call_expression) "parse_args(&attrs)" (identifier) "parse_args" (argument_list) "(&attrs)" (() "(" (pointer_expression) "&attrs" (&) "&" (identifier) "attrs" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
169
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 29.0, "nodes": 104, "errors": 0, "source_hash": "bc73ecadb5458599655f973f53ab98153d722ce67e395196f1c707035551189c", "categorized_nodes": 70}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"../include/asmc.h\"\r\n", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 1, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"../include/asmc.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 28}}, {"id": 3, "type": "function_definition", "text": "int main(int argc, char** argv){\r\n printf(\"\\t=== ASMC ===\\n\");\r\n\r\n short x=0;\r\n char* args[TOTAL_ATTRIBUTES];\r\n\r\n while(x++ < TOTAL_ATTRIBUTES) args[x] = \"\\0\"; // Fills with 0 values\r\n for(int i = 0; i < argc; i++) args[i] = *(argv + i); //Fills remaining memory\r\n\r\n attributes attrs = {args[0], args[1], args[2], args[3]}; // NOTE: Constant attributes\r\n parse_args(&attrs);\r\n \r\n return 0;\r\n}", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "main(int argc, char** argv)", "parent": 3, "children": [6, 7], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 1, "column": 31}}, {"id": 6, "type": "identifier", "text": "main", "parent": 5, "children": [], "start_point": {"row": 1, "column": 4}, "end_point": {"row": 1, "column": 8}}, {"id": 7, "type": "parameter_list", "text": "(int argc, char** argv)", "parent": 5, "children": [8, 11], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 31}}, {"id": 8, "type": "parameter_declaration", "text": "int argc", "parent": 7, "children": [9, 10], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 17}}, {"id": 9, "type": "primitive_type", "text": "int", "parent": 8, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 12}}, {"id": 10, "type": "identifier", "text": "argc", "parent": 8, "children": [], "start_point": {"row": 1, "column": 13}, "end_point": {"row": 1, "column": 17}}, {"id": 11, "type": "parameter_declaration", "text": "char** argv", "parent": 7, "children": [12, 13], "start_point": {"row": 1, "column": 19}, "end_point": {"row": 1, "column": 30}}, {"id": 12, "type": "primitive_type", "text": "char", "parent": 11, "children": [], "start_point": {"row": 1, "column": 19}, "end_point": {"row": 1, "column": 23}}, {"id": 13, "type": "pointer_declarator", "text": "** argv", "parent": 11, "children": [14, 15], "start_point": {"row": 1, "column": 23}, "end_point": {"row": 1, "column": 30}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 1, "column": 23}, "end_point": {"row": 1, "column": 24}}, {"id": 15, "type": "pointer_declarator", "text": "* argv", "parent": 13, "children": [16, 17], "start_point": {"row": 1, "column": 24}, "end_point": {"row": 1, "column": 30}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 1, "column": 24}, "end_point": {"row": 1, "column": 25}}, {"id": 17, "type": "identifier", "text": "argv", "parent": 15, "children": [], "start_point": {"row": 1, "column": 26}, "end_point": {"row": 1, "column": 30}}, {"id": 18, "type": "call_expression", "text": "printf(\"\\t=== ASMC ===\\n\")", "parent": 3, "children": [19, 20], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 30}}, {"id": 19, "type": "identifier", "text": "printf", "parent": 18, "children": [], "start_point": {"row": 2, "column": 4}, "end_point": {"row": 2, "column": 10}}, {"id": 20, "type": "argument_list", "text": "(\"\\t=== ASMC ===\\n\")", "parent": 18, "children": [21], "start_point": {"row": 2, "column": 10}, "end_point": {"row": 2, "column": 30}}, {"id": 21, "type": "string_literal", "text": "\"\\t=== ASMC ===\\n\"", "parent": 20, "children": [22, 23], "start_point": {"row": 2, "column": 11}, "end_point": {"row": 2, "column": 29}}, {"id": 22, "type": "escape_sequence", "text": "\\t", "parent": 21, "children": [], "start_point": {"row": 2, "column": 12}, "end_point": {"row": 2, "column": 14}}, {"id": 23, "type": "escape_sequence", "text": "\\n", "parent": 21, "children": [], "start_point": {"row": 2, "column": 26}, "end_point": {"row": 2, "column": 28}}, {"id": 24, "type": "declaration", "text": "short x=0;", "parent": 3, "children": [25, 27], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 14}}, {"id": 25, "type": "sized_type_specifier", "text": "short", "parent": 24, "children": [26], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 9}}, {"id": 26, "type": "short", "text": "short", "parent": 25, "children": [], "start_point": {"row": 4, "column": 4}, "end_point": {"row": 4, "column": 9}}, {"id": 27, "type": "init_declarator", "text": "x=0", "parent": 24, "children": [28, 29, 30], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 13}}, {"id": 28, "type": "identifier", "text": "x", "parent": 27, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 11}}, {"id": 29, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 4, "column": 11}, "end_point": {"row": 4, "column": 12}}, {"id": 30, "type": "number_literal", "text": "0", "parent": 27, "children": [], "start_point": {"row": 4, "column": 12}, "end_point": {"row": 4, "column": 13}}, {"id": 31, "type": "declaration", "text": "char* args[TOTAL_ATTRIBUTES];", "parent": 3, "children": [32, 33], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 33}}, {"id": 32, "type": "primitive_type", "text": "char", "parent": 31, "children": [], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 8}}, {"id": 33, "type": "pointer_declarator", "text": "* args[TOTAL_ATTRIBUTES]", "parent": 31, "children": [34, 35], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 32}}, {"id": 34, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 9}}, {"id": 35, "type": "array_declarator", "text": "args[TOTAL_ATTRIBUTES]", "parent": 33, "children": [36, 37], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 32}}, {"id": 36, "type": "identifier", "text": "args", "parent": 35, "children": [], "start_point": {"row": 5, "column": 10}, "end_point": {"row": 5, "column": 14}}, {"id": 37, "type": "identifier", "text": "TOTAL_ATTRIBUTES", "parent": 35, "children": [], "start_point": {"row": 5, "column": 15}, "end_point": {"row": 5, "column": 31}}, {"id": 38, "type": "while_statement", "text": "while(x++ < TOTAL_ATTRIBUTES) args[x] = \"\\0\";", "parent": 3, "children": [39], "start_point": {"row": 7, "column": 4}, "end_point": {"row": 7, "column": 49}}, {"id": 39, "type": "parenthesized_expression", "text": "(x++ < TOTAL_ATTRIBUTES)", "parent": 38, "children": [40], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 33}}, {"id": 40, "type": "binary_expression", "text": "x++ < TOTAL_ATTRIBUTES", "parent": 39, "children": [41, 44, 45], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 32}}, {"id": 41, "type": "update_expression", "text": "x++", "parent": 40, "children": [42, 43], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 13}}, {"id": 42, "type": "identifier", "text": "x", "parent": 41, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 11}}, {"id": 43, "type": "++", "text": "++", "parent": 41, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 13}}, {"id": 44, "type": "<", "text": "<", "parent": 40, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 15}}, {"id": 45, "type": "identifier", "text": "TOTAL_ATTRIBUTES", "parent": 40, "children": [], "start_point": {"row": 7, "column": 16}, "end_point": {"row": 7, "column": 32}}, {"id": 46, "type": "assignment_expression", "text": "args[x] = \"\\0\"", "parent": 38, "children": [47, 50, 51], "start_point": {"row": 7, "column": 34}, "end_point": {"row": 7, "column": 48}}, {"id": 47, "type": "subscript_expression", "text": "args[x]", "parent": 46, "children": [48, 49], "start_point": {"row": 7, "column": 34}, "end_point": {"row": 7, "column": 41}}, {"id": 48, "type": "identifier", "text": "args", "parent": 47, "children": [], "start_point": {"row": 7, "column": 34}, "end_point": {"row": 7, "column": 38}}, {"id": 49, "type": "identifier", "text": "x", "parent": 47, "children": [], "start_point": {"row": 7, "column": 39}, "end_point": {"row": 7, "column": 40}}, {"id": 50, "type": "=", "text": "=", "parent": 46, "children": [], "start_point": {"row": 7, "column": 42}, "end_point": {"row": 7, "column": 43}}, {"id": 51, "type": "string_literal", "text": "\"\\0\"", "parent": 46, "children": [52], "start_point": {"row": 7, "column": 44}, "end_point": {"row": 7, "column": 48}}, {"id": 52, "type": "escape_sequence", "text": "\\0", "parent": 51, "children": [], "start_point": {"row": 7, "column": 45}, "end_point": {"row": 7, "column": 47}}, {"id": 53, "type": "for_statement", "text": "for(int i = 0; i < argc; i++) args[i] = *(argv + i);", "parent": 3, "children": [54, 60, 64], "start_point": {"row": 8, "column": 4}, "end_point": {"row": 8, "column": 56}}, {"id": 54, "type": "declaration", "text": "int i = 0;", "parent": 53, "children": [55, 56], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 18}}, {"id": 55, "type": "primitive_type", "text": "int", "parent": 54, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 11}}, {"id": 56, "type": "init_declarator", "text": "i = 0", "parent": 54, "children": [57, 58, 59], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 17}}, {"id": 57, "type": "identifier", "text": "i", "parent": 56, "children": [], "start_point": {"row": 8, "column": 12}, "end_point": {"row": 8, "column": 13}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 15}}, {"id": 59, "type": "number_literal", "text": "0", "parent": 56, "children": [], "start_point": {"row": 8, "column": 16}, "end_point": {"row": 8, "column": 17}}, {"id": 60, "type": "binary_expression", "text": "i < argc", "parent": 53, "children": [61, 62, 63], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 27}}, {"id": 61, "type": "identifier", "text": "i", "parent": 60, "children": [], "start_point": {"row": 8, "column": 19}, "end_point": {"row": 8, "column": 20}}, {"id": 62, "type": "<", "text": "<", "parent": 60, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 22}}, {"id": 63, "type": "identifier", "text": "argc", "parent": 60, "children": [], "start_point": {"row": 8, "column": 23}, "end_point": {"row": 8, "column": 27}}, {"id": 64, "type": "update_expression", "text": "i++", "parent": 53, "children": [65, 66], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 32}}, {"id": 65, "type": "identifier", "text": "i", "parent": 64, "children": [], "start_point": {"row": 8, "column": 29}, "end_point": {"row": 8, "column": 30}}, {"id": 66, "type": "++", "text": "++", "parent": 64, "children": [], "start_point": {"row": 8, "column": 30}, "end_point": {"row": 8, "column": 32}}, {"id": 67, "type": "assignment_expression", "text": "args[i] = *(argv + i)", "parent": 53, "children": [68, 71, 72], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 55}}, {"id": 68, "type": "subscript_expression", "text": "args[i]", "parent": 67, "children": [69, 70], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 41}}, {"id": 69, "type": "identifier", "text": "args", "parent": 68, "children": [], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 38}}, {"id": 70, "type": "identifier", "text": "i", "parent": 68, "children": [], "start_point": {"row": 8, "column": 39}, "end_point": {"row": 8, "column": 40}}, {"id": 71, "type": "=", "text": "=", "parent": 67, "children": [], "start_point": {"row": 8, "column": 42}, "end_point": {"row": 8, "column": 43}}, {"id": 72, "type": "pointer_expression", "text": "*(argv + i)", "parent": 67, "children": [73, 74], "start_point": {"row": 8, "column": 44}, "end_point": {"row": 8, "column": 55}}, {"id": 73, "type": "*", "text": "*", "parent": 72, "children": [], "start_point": {"row": 8, "column": 44}, "end_point": {"row": 8, "column": 45}}, {"id": 74, "type": "parenthesized_expression", "text": "(argv + i)", "parent": 72, "children": [75], "start_point": {"row": 8, "column": 45}, "end_point": {"row": 8, "column": 55}}, {"id": 75, "type": "binary_expression", "text": "argv + i", "parent": 74, "children": [76, 77, 78], "start_point": {"row": 8, "column": 46}, "end_point": {"row": 8, "column": 54}}, {"id": 76, "type": "identifier", "text": "argv", "parent": 75, "children": [], "start_point": {"row": 8, "column": 46}, "end_point": {"row": 8, "column": 50}}, {"id": 77, "type": "+", "text": "+", "parent": 75, "children": [], "start_point": {"row": 8, "column": 51}, "end_point": {"row": 8, "column": 52}}, {"id": 78, "type": "identifier", "text": "i", "parent": 75, "children": [], "start_point": {"row": 8, "column": 53}, "end_point": {"row": 8, "column": 54}}, {"id": 79, "type": "declaration", "text": "attributes attrs = {args[0], args[1], args[2], args[3]};", "parent": 3, "children": [80, 81], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 60}}, {"id": 80, "type": "type_identifier", "text": "attributes", "parent": 79, "children": [], "start_point": {"row": 10, "column": 4}, "end_point": {"row": 10, "column": 14}}, {"id": 81, "type": "init_declarator", "text": "attrs = {args[0], args[1], args[2], args[3]}", "parent": 79, "children": [82, 83, 84], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 59}}, {"id": 82, "type": "identifier", "text": "attrs", "parent": 81, "children": [], "start_point": {"row": 10, "column": 15}, "end_point": {"row": 10, "column": 20}}, {"id": 83, "type": "=", "text": "=", "parent": 81, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 22}}, {"id": 84, "type": "initializer_list", "text": "{args[0], args[1], args[2], args[3]}", "parent": 81, "children": [85, 88, 91, 94], "start_point": {"row": 10, "column": 23}, "end_point": {"row": 10, "column": 59}}, {"id": 85, "type": "subscript_expression", "text": "args[0]", "parent": 84, "children": [86, 87], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 31}}, {"id": 86, "type": "identifier", "text": "args", "parent": 85, "children": [], "start_point": {"row": 10, "column": 24}, "end_point": {"row": 10, "column": 28}}, {"id": 87, "type": "number_literal", "text": "0", "parent": 85, "children": [], "start_point": {"row": 10, "column": 29}, "end_point": {"row": 10, "column": 30}}, {"id": 88, "type": "subscript_expression", "text": "args[1]", "parent": 84, "children": [89, 90], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 40}}, {"id": 89, "type": "identifier", "text": "args", "parent": 88, "children": [], "start_point": {"row": 10, "column": 33}, "end_point": {"row": 10, "column": 37}}, {"id": 90, "type": "number_literal", "text": "1", "parent": 88, "children": [], "start_point": {"row": 10, "column": 38}, "end_point": {"row": 10, "column": 39}}, {"id": 91, "type": "subscript_expression", "text": "args[2]", "parent": 84, "children": [92, 93], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 49}}, {"id": 92, "type": "identifier", "text": "args", "parent": 91, "children": [], "start_point": {"row": 10, "column": 42}, "end_point": {"row": 10, "column": 46}}, {"id": 93, "type": "number_literal", "text": "2", "parent": 91, "children": [], "start_point": {"row": 10, "column": 47}, "end_point": {"row": 10, "column": 48}}, {"id": 94, "type": "subscript_expression", "text": "args[3]", "parent": 84, "children": [95, 96], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 58}}, {"id": 95, "type": "identifier", "text": "args", "parent": 94, "children": [], "start_point": {"row": 10, "column": 51}, "end_point": {"row": 10, "column": 55}}, {"id": 96, "type": "number_literal", "text": "3", "parent": 94, "children": [], "start_point": {"row": 10, "column": 56}, "end_point": {"row": 10, "column": 57}}, {"id": 97, "type": "call_expression", "text": "parse_args(&attrs)", "parent": 3, "children": [98, 99], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 22}}, {"id": 98, "type": "identifier", "text": "parse_args", "parent": 97, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 14}}, {"id": 99, "type": "argument_list", "text": "(&attrs)", "parent": 97, "children": [100], "start_point": {"row": 11, "column": 14}, "end_point": {"row": 11, "column": 22}}, {"id": 100, "type": "pointer_expression", "text": "&attrs", "parent": 99, "children": [101], "start_point": {"row": 11, "column": 15}, "end_point": {"row": 11, "column": 21}}, {"id": 101, "type": "identifier", "text": "attrs", "parent": 100, "children": [], "start_point": {"row": 11, "column": 16}, "end_point": {"row": 11, "column": 21}}, {"id": 102, "type": "return_statement", "text": "return 0;", "parent": 3, "children": [103], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 13}}, {"id": 103, "type": "number_literal", "text": "0", "parent": 102, "children": [], "start_point": {"row": 13, "column": 11}, "end_point": {"row": 13, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 5], "variables": [8, 11, 24, 31, 54, 79], "classes": [], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [18, 39, 40, 41, 47, 60, 64, 68, 72, 74, 75, 85, 88, 91, 94, 97, 100], "assignments": [46, 67], "loops": [38, 53], "conditionals": [6, 10, 17, 19, 25, 28, 36, 37, 42, 45, 48, 49, 57, 61, 63, 65, 69, 70, 76, 78, 80, 82, 86, 89, 92, 95, 98, 101], "returns": [102], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 21, 30, 51, 59, 87, 90, 93, 96, 103], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, char** argv){\r\n printf(\"\\t=== ASMC ===\\n\");\r\n\r\n short x=0;\r\n char* args["}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char** argv)"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"../include/asmc.h\"\r\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"../include/asmc.h\"\r\nint main(int argc, char** argv){\r\n printf(\"\\t=== ASMC ===\\n\");\r\n\r\n short x=0;\r\n char* args[TOTAL_ATTRIBUTES];\r\n\r\n while(x++ < TOTAL_ATTRIBUTES) args[x] = \"\\0\"; // Fills with 0 values\r\n for(int i = 0; i < argc; i++) args[i] = *(argv + i); //Fills remaining memory\r\n\r\n attributes attrs = {args[0], args[1], args[2], args[3]}; // NOTE: Constant attributes\r\n parse_args(&attrs);\r\n \r\n return 0;\r\n}\r\n"}
80,367
c
// Copyright 2017 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 ARC_SETUP_ARC_READ_AHEAD_H_ #define ARC_SETUP_ARC_READ_AHEAD_H_ #include <stddef.h> #include <stdint.h> #include <utility> #include "arc/setup/android_sdk_version.h" namespace base { class FilePath; class TimeDelta; } // namespace base namespace arc { static const int64_t kDefaultReadAheadSize = 128 * 1024; // Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates // the kernel's page cache with files in |scan_root|. To better emulate the // Upstart job, this function selects important files with some (not so clean) // heuristics. // The function returns a pair of (# of files read, # of bytes read). std::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root, const base::TimeDelta& timeout, AndroidSdkVersion sdk_version); } // namespace arc #endif // ARC_SETUP_ARC_READ_AHEAD_H_
43.12
25
(translation_unit) "// Copyright 2017 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 ARC_SETUP_ARC_READ_AHEAD_H_\n#define ARC_SETUP_ARC_READ_AHEAD_H_\n\n#include <stddef.h>\n#include <stdint.h>\n\n#include <utility>\n\n#include "arc/setup/android_sdk_version.h"\n\nnamespace base {\n\nclass FilePath;\nclass TimeDelta;\n\n} // namespace base\n\nnamespace arc {\n\nstatic const int64_t kDefaultReadAheadSize = 128 * 1024;\n\n// Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates\n// the kernel's page cache with files in |scan_root|. To better emulate the\n// Upstart job, this function selects important files with some (not so clean)\n// heuristics.\n// The function returns a pair of (# of files read, # of bytes read).\nstd::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);\n\n} // namespace arc\n\n#endif // ARC_SETUP_ARC_READ_AHEAD_H_\n" (comment) "// Copyright 2017 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 ARC_SETUP_ARC_READ_AHEAD_H_\n#define ARC_SETUP_ARC_READ_AHEAD_H_\n\n#include <stddef.h>\n#include <stdint.h>\n\n#include <utility>\n\n#include "arc/setup/android_sdk_version.h"\n\nnamespace base {\n\nclass FilePath;\nclass TimeDelta;\n\n} // namespace base\n\nnamespace arc {\n\nstatic const int64_t kDefaultReadAheadSize = 128 * 1024;\n\n// Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates\n// the kernel's page cache with files in |scan_root|. To better emulate the\n// Upstart job, this function selects important files with some (not so clean)\n// heuristics.\n// The function returns a pair of (# of files read, # of bytes read).\nstd::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);\n\n} // namespace arc\n\n#endif" (#ifndef) "#ifndef" (identifier) "ARC_SETUP_ARC_READ_AHEAD_H_" (preproc_def) "#define ARC_SETUP_ARC_READ_AHEAD_H_\n" (#define) "#define" (identifier) "ARC_SETUP_ARC_READ_AHEAD_H_" (preproc_include) "#include <stddef.h>\n" (#include) "#include" (system_lib_string) "<stddef.h>" (preproc_include) "#include <stdint.h>\n" (#include) "#include" (system_lib_string) "<stdint.h>" (preproc_include) "#include <utility>\n" (#include) "#include" (system_lib_string) "<utility>" (preproc_include) "#include "arc/setup/android_sdk_version.h"\n" (#include) "#include" (string_literal) ""arc/setup/android_sdk_version.h"" (") """ (string_content) "arc/setup/android_sdk_version.h" (") """ (function_definition) "namespace base {\n\nclass FilePath;\nclass TimeDelta;\n\n}" (type_identifier) "namespace" (identifier) "base" (compound_statement) "{\n\nclass FilePath;\nclass TimeDelta;\n\n}" ({) "{" (declaration) "class FilePath;" (type_identifier) "class" (identifier) "FilePath" (;) ";" (declaration) "class TimeDelta;" (type_identifier) "class" (identifier) "TimeDelta" (;) ";" (}) "}" (comment) "// namespace base" (function_definition) "namespace arc {\n\nstatic const int64_t kDefaultReadAheadSize = 128 * 1024;\n\n// Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates\n// the kernel's page cache with files in |scan_root|. To better emulate the\n// Upstart job, this function selects important files with some (not so clean)\n// heuristics.\n// The function returns a pair of (# of files read, # of bytes read).\nstd::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);\n\n}" (type_identifier) "namespace" (identifier) "arc" (compound_statement) "{\n\nstatic const int64_t kDefaultReadAheadSize = 128 * 1024;\n\n// Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates\n// the kernel's page cache with files in |scan_root|. To better emulate the\n// Upstart job, this function selects important files with some (not so clean)\n// heuristics.\n// The function returns a pair of (# of files read, # of bytes read).\nstd::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);\n\n}" ({) "{" (declaration) "static const int64_t kDefaultReadAheadSize = 128 * 1024;" (storage_class_specifier) "static" (static) "static" (type_qualifier) "const" (const) "const" (primitive_type) "int64_t" (init_declarator) "kDefaultReadAheadSize = 128 * 1024" (identifier) "kDefaultReadAheadSize" (=) "=" (binary_expression) "128 * 1024" (number_literal) "128" (*) "*" (number_literal) "1024" (;) ";" (comment) "// Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates" (comment) "// the kernel's page cache with files in |scan_root|. To better emulate the" (comment) "// Upstart job, this function selects important files with some (not so clean)" (comment) "// heuristics." (comment) "// The function returns a pair of (# of files read, # of bytes read)." (labeled_statement) "std::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);" (statement_identifier) "std" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);" (comma_expression) "pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version)" (binary_expression) "pair<size_t" (identifier) "pair" (<) "<" (identifier) "size_t" (,) "," (binary_expression) "size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version)" (identifier) "size_t" (>) ">" (call_expression) "EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version)" (identifier) "EmulateArcUreadahead" (argument_list) "(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version)" (() "(" (ERROR) "const base::" (identifier) "const" (identifier) "base" (:) ":" (:) ":" (binary_expression) "FilePath& scan_root" (identifier) "FilePath" (&) "&" (identifier) "scan_root" (,) "," (ERROR) "const base::" (identifier) "const" (identifier) "base" (:) ":" (:) ":" (binary_expression) "TimeDelta& timeout" (identifier) "TimeDelta" (&) "&" (identifier) "timeout" (,) "," (identifier) "AndroidSdkVersion" (ERROR) "sdk_version" (identifier) "sdk_version" ()) ")" (;) ";" (}) "}" (comment) "// namespace arc" (#endif) "#endif" (comment) "// ARC_SETUP_ARC_READ_AHEAD_H_"
112
4
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 43.12, "nodes": 64, "errors": 0, "source_hash": "470e334eb45831d3d9faa6fb371e673d2d741f7807506fad6f7ad26dae624329", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ARC_SETUP_ARC_READ_AHEAD_H_\n#define ARC_SETUP_ARC_READ_AHEAD_H_\n\n#include <stddef.h>\n#include <stdint.h>\n\n#include <utility>\n\n#include \"arc/setup/android_sdk_version.h\"\n\nnamespace base {\n\nclass FilePath;\nclass TimeDelta;\n\n} // namespace base\n\nnamespace arc {\n\nstatic const int64_t kDefaultReadAheadSize = 128 * 1024;\n\n// Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates\n// the kernel's page cache with files in |scan_root|. To better emulate the\n// Upstart job, this function selects important files with some (not so clean)\n// heuristics.\n// The function returns a pair of (# of files read, # of bytes read).\nstd::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);\n\n} // namespace arc\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 25, 63], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 36, "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": "ARC_SETUP_ARC_READ_AHEAD_H_", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 35}}, {"id": 3, "type": "preproc_def", "text": "#define ARC_SETUP_ARC_READ_AHEAD_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": "ARC_SETUP_ARC_READ_AHEAD_H_", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 35}}, {"id": 6, "type": "preproc_include", "text": "#include <stddef.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": "<stddef.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <stdint.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<stdint.h>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <utility>\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": "<utility>", "parent": 12, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include \"arc/setup/android_sdk_version.h\"\n", "parent": 0, "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": "\"arc/setup/android_sdk_version.h\"", "parent": 15, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 42}}, {"id": 18, "type": "function_definition", "text": "namespace base {\n\nclass FilePath;\nclass TimeDelta;\n\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 19, "type": "type_identifier", "text": "namespace", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 20, "type": "identifier", "text": "base", "parent": 18, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 14}}, {"id": 21, "type": "declaration", "text": "class FilePath;", "parent": 18, "children": [22], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 15}}, {"id": 22, "type": "identifier", "text": "FilePath", "parent": 21, "children": [], "start_point": {"row": 16, "column": 6}, "end_point": {"row": 16, "column": 14}}, {"id": 23, "type": "declaration", "text": "class TimeDelta;", "parent": 18, "children": [24], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 16}}, {"id": 24, "type": "identifier", "text": "TimeDelta", "parent": 23, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 15}}, {"id": 25, "type": "function_definition", "text": "namespace arc {\n\nstatic const int64_t kDefaultReadAheadSize = 128 * 1024;\n\n// Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates\n// the kernel's page cache with files in |scan_root|. To better emulate the\n// Upstart job, this function selects important files with some (not so clean)\n// heuristics.\n// The function returns a pair of (# of files read, # of bytes read).\nstd::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);\n\n}", "parent": 0, "children": [26, 27], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 26, "type": "type_identifier", "text": "namespace", "parent": 25, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 9}}, {"id": 27, "type": "identifier", "text": "arc", "parent": 25, "children": [], "start_point": {"row": 21, "column": 10}, "end_point": {"row": 21, "column": 13}}, {"id": 28, "type": "declaration", "text": "static const int64_t kDefaultReadAheadSize = 128 * 1024;", "parent": 25, "children": [29, 30], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 56}}, {"id": 29, "type": "primitive_type", "text": "int64_t", "parent": 28, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 20}}, {"id": 30, "type": "init_declarator", "text": "kDefaultReadAheadSize = 128 * 1024", "parent": 28, "children": [31, 32, 33], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 55}}, {"id": 31, "type": "identifier", "text": "kDefaultReadAheadSize", "parent": 30, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 42}}, {"id": 32, "type": "=", "text": "=", "parent": 30, "children": [], "start_point": {"row": 23, "column": 43}, "end_point": {"row": 23, "column": 44}}, {"id": 33, "type": "binary_expression", "text": "128 * 1024", "parent": 30, "children": [34, 35, 36], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 55}}, {"id": 34, "type": "number_literal", "text": "128", "parent": 33, "children": [], "start_point": {"row": 23, "column": 45}, "end_point": {"row": 23, "column": 48}}, {"id": 35, "type": "*", "text": "*", "parent": 33, "children": [], "start_point": {"row": 23, "column": 49}, "end_point": {"row": 23, "column": 50}}, {"id": 36, "type": "number_literal", "text": "1024", "parent": 33, "children": [], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 55}}, {"id": 37, "type": "labeled_statement", "text": "std::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);", "parent": 25, "children": [38], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 32, "column": 78}}, {"id": 38, "type": "statement_identifier", "text": "std", "parent": 37, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 3}}, {"id": 39, "type": "comma_expression", "text": "pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version)", "parent": 37, "children": [40, 44], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 32, "column": 77}}, {"id": 40, "type": "binary_expression", "text": "pair<size_t", "parent": 39, "children": [41, 42, 43], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 16}}, {"id": 41, "type": "identifier", "text": "pair", "parent": 40, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 9}}, {"id": 42, "type": "<", "text": "<", "parent": 40, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 10}}, {"id": 43, "type": "identifier", "text": "size_t", "parent": 40, "children": [], "start_point": {"row": 30, "column": 10}, "end_point": {"row": 30, "column": 16}}, {"id": 44, "type": "binary_expression", "text": "size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version)", "parent": 39, "children": [45, 46, 47], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 32, "column": 77}}, {"id": 45, "type": "identifier", "text": "size_t", "parent": 44, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 24}}, {"id": 46, "type": ">", "text": ">", "parent": 44, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 25}}, {"id": 47, "type": "call_expression", "text": "EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version)", "parent": 44, "children": [48, 49], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 32, "column": 77}}, {"id": 48, "type": "identifier", "text": "EmulateArcUreadahead", "parent": 47, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 46}}, {"id": 49, "type": "argument_list", "text": "(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version)", "parent": 47, "children": [50, 52, 55, 57, 60, 61], "start_point": {"row": 30, "column": 46}, "end_point": {"row": 32, "column": 77}}, {"id": 50, "type": "ERROR", "text": "const base::", "parent": 49, "children": [51], "start_point": {"row": 30, "column": 47}, "end_point": {"row": 30, "column": 59}}, {"id": 51, "type": "identifier", "text": "base", "parent": 50, "children": [], "start_point": {"row": 30, "column": 53}, "end_point": {"row": 30, "column": 57}}, {"id": 52, "type": "binary_expression", "text": "FilePath& scan_root", "parent": 49, "children": [53, 54], "start_point": {"row": 30, "column": 59}, "end_point": {"row": 30, "column": 78}}, {"id": 53, "type": "identifier", "text": "FilePath", "parent": 52, "children": [], "start_point": {"row": 30, "column": 59}, "end_point": {"row": 30, "column": 67}}, {"id": 54, "type": "identifier", "text": "scan_root", "parent": 52, "children": [], "start_point": {"row": 30, "column": 69}, "end_point": {"row": 30, "column": 78}}, {"id": 55, "type": "ERROR", "text": "const base::", "parent": 49, "children": [56], "start_point": {"row": 31, "column": 47}, "end_point": {"row": 31, "column": 59}}, {"id": 56, "type": "identifier", "text": "base", "parent": 55, "children": [], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 57}}, {"id": 57, "type": "binary_expression", "text": "TimeDelta& timeout", "parent": 49, "children": [58, 59], "start_point": {"row": 31, "column": 59}, "end_point": {"row": 31, "column": 77}}, {"id": 58, "type": "identifier", "text": "TimeDelta", "parent": 57, "children": [], "start_point": {"row": 31, "column": 59}, "end_point": {"row": 31, "column": 68}}, {"id": 59, "type": "identifier", "text": "timeout", "parent": 57, "children": [], "start_point": {"row": 31, "column": 70}, "end_point": {"row": 31, "column": 77}}, {"id": 60, "type": "identifier", "text": "AndroidSdkVersion", "parent": 49, "children": [], "start_point": {"row": 32, "column": 47}, "end_point": {"row": 32, "column": 64}}, {"id": 61, "type": "ERROR", "text": "sdk_version", "parent": 49, "children": [62], "start_point": {"row": 32, "column": 65}, "end_point": {"row": 32, "column": 76}}, {"id": 62, "type": "identifier", "text": "sdk_version", "parent": 61, "children": [], "start_point": {"row": 32, "column": 65}, "end_point": {"row": 32, "column": 76}}, {"id": 63, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 25], "variables": [21, 23, 28], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [33, 39, 40, 44, 47, 52, 57], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 20, 22, 24, 26, 27, 31, 38, 41, 43, 45, 48, 51, 53, 54, 56, 58, 59, 60, 62, 63], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 34, 36], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "FilePath;", "text_snippet": "namespace base {\n\nclass FilePath;\nclass TimeDelta;\n\n}"}, {"node_id": 25, "universal_type": "function", "name": "unknown", "text_snippet": "namespace arc {\n\nstatic const int64_t kDefaultReadAheadSize = 128 * 1024;\n\n// Tries to do what arc-u"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <stddef.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <stdint.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <utility>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"arc/setup/android_sdk_version.h\"\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "// Copyright 2017 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 ARC_SETUP_ARC_READ_AHEAD_H_\n#define ARC_SETUP_ARC_READ_AHEAD_H_\n\n#include <stddef.h>\n#include <stdint.h>\n\n#include <utility>\n\n#include \"arc/setup/android_sdk_version.h\"\n\nnamespace base {\n\nclass FilePath;\nclass TimeDelta;\n\n} // namespace base\n\nnamespace arc {\n\nstatic const int64_t kDefaultReadAheadSize = 128 * 1024;\n\n// Tries to do what arc-uradahead.conf does with ARC++ pack file, and populates\n// the kernel's page cache with files in |scan_root|. To better emulate the\n// Upstart job, this function selects important files with some (not so clean)\n// heuristics.\n// The function returns a pair of (# of files read, # of bytes read).\nstd::pair<size_t, size_t> EmulateArcUreadahead(const base::FilePath& scan_root,\n const base::TimeDelta& timeout,\n AndroidSdkVersion sdk_version);\n\n} // namespace arc\n\n#endif // ARC_SETUP_ARC_READ_AHEAD_H_\n"}
80,368
c
#ifndef _THROTTLE_H #define _THROTTLE_H typedef struct Throttle Throttle; Throttle *Throttle_New(const char *name); #endif
23.6
5
(translation_unit) "#ifndef _THROTTLE_H\n#define _THROTTLE_H\ntypedef struct Throttle Throttle;\nThrottle *Throttle_New(const char *name);\n#endif\n" (preproc_ifdef) "#ifndef _THROTTLE_H\n#define _THROTTLE_H\ntypedef struct Throttle Throttle;\nThrottle *Throttle_New(const char *name);\n#endif" (#ifndef) "#ifndef" (identifier) "_THROTTLE_H" (preproc_def) "#define _THROTTLE_H\n" (#define) "#define" (identifier) "_THROTTLE_H" (type_definition) "typedef struct Throttle Throttle;" (typedef) "typedef" (struct_specifier) "struct Throttle" (struct) "struct" (type_identifier) "Throttle" (type_identifier) "Throttle" (;) ";" (declaration) "Throttle *Throttle_New(const char *name);" (type_identifier) "Throttle" (pointer_declarator) "*Throttle_New(const char *name)" (*) "*" (function_declarator) "Throttle_New(const char *name)" (identifier) "Throttle_New" (parameter_list) "(const char *name)" (() "(" (parameter_declaration) "const char *name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (#endif) "#endif"
32
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 23.6, "nodes": 25, "errors": 0, "source_hash": "ebc13810a669120ef06d489818fc6ee752f67eda40adb24f3a90619fc67eddfa", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _THROTTLE_H\n#define _THROTTLE_H\ntypedef struct Throttle Throttle;\nThrottle *Throttle_New(const char *name);\n#endif", "parent": null, "children": [1, 2, 3, 6, 12, 24], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 4, "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": "_THROTTLE_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 19}}, {"id": 3, "type": "preproc_def", "text": "#define _THROTTLE_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": "_THROTTLE_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 19}}, {"id": 6, "type": "type_definition", "text": "typedef struct Throttle Throttle;", "parent": 0, "children": [7, 8, 11], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 33}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 8, "type": "struct_specifier", "text": "struct Throttle", "parent": 6, "children": [9, 10], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 23}}, {"id": 9, "type": "struct", "text": "struct", "parent": 8, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 14}}, {"id": 10, "type": "type_identifier", "text": "Throttle", "parent": 8, "children": [], "start_point": {"row": 2, "column": 15}, "end_point": {"row": 2, "column": 23}}, {"id": 11, "type": "type_identifier", "text": "Throttle", "parent": 6, "children": [], "start_point": {"row": 2, "column": 24}, "end_point": {"row": 2, "column": 32}}, {"id": 12, "type": "declaration", "text": "Throttle *Throttle_New(const char *name);", "parent": 0, "children": [13, 14], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 41}}, {"id": 13, "type": "type_identifier", "text": "Throttle", "parent": 12, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 14, "type": "pointer_declarator", "text": "*Throttle_New(const char *name)", "parent": 12, "children": [15, 16], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 40}}, {"id": 15, "type": "*", "text": "*", "parent": 14, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 10}}, {"id": 16, "type": "function_declarator", "text": "Throttle_New(const char *name)", "parent": 14, "children": [17, 18], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 40}}, {"id": 17, "type": "identifier", "text": "Throttle_New", "parent": 16, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 22}}, {"id": 18, "type": "parameter_list", "text": "(const char *name)", "parent": 16, "children": [19], "start_point": {"row": 3, "column": 22}, "end_point": {"row": 3, "column": 40}}, {"id": 19, "type": "parameter_declaration", "text": "const char *name", "parent": 18, "children": [20, 21], "start_point": {"row": 3, "column": 23}, "end_point": {"row": 3, "column": 39}}, {"id": 20, "type": "primitive_type", "text": "char", "parent": 19, "children": [], "start_point": {"row": 3, "column": 29}, "end_point": {"row": 3, "column": 33}}, {"id": 21, "type": "pointer_declarator", "text": "*name", "parent": 19, "children": [22, 23], "start_point": {"row": 3, "column": 34}, "end_point": {"row": 3, "column": 39}}, {"id": 22, "type": "*", "text": "*", "parent": 21, "children": [], "start_point": {"row": 3, "column": 34}, "end_point": {"row": 3, "column": 35}}, {"id": 23, "type": "identifier", "text": "name", "parent": 21, "children": [], "start_point": {"row": 3, "column": 35}, "end_point": {"row": 3, "column": 39}}, {"id": 24, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 6}}]}, "node_categories": {"declarations": {"functions": [16], "variables": [6, 12, 19], "classes": [8, 9], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 13, 17, 23, 24], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "Throttle_New(const char *name)"}], "class_declarations": [{"node_id": 8, "universal_type": "class", "name": "Throttle", "text_snippet": "struct Throttle"}, {"node_id": 9, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "#ifndef _THROTTLE_H\n#define _THROTTLE_H\ntypedef struct Throttle Throttle;\nThrottle *Throttle_New(const char *name);\n#endif\n"}
80,369
c
// // TJY_BaseViewController.h // TJYFoundation // // Created by wang_wei on 2018/4/9. // Copyright © 2018年 wangwei. All rights reserved. // #import <UIKit/UIKit.h> #import "NavTitleView.h" @interface TJY_BaseViewController : UIViewController { NavTitleView *titleView; } @property(nonatomic,assign) BOOL navTitleViewIsHidden ; @property(nonatomic,strong)NavTitleView *titleView; @property (copy, nonatomic) void (^backClicked)(void); //取消网络请求 - (void)cancelRequest; // 修改textField 的placeholedColor -(void)textFieldPlaceholderColorWithTextField:(UITextField*)textField; -(NSString *)dateWithTimeIntervalString:(NSString *)string; - (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay; - (NSString *)Charactor:(NSString *)aString getFirstCharactor:(BOOL)isGetFirst; @end
32.29
24
(translation_unit) "//\n// TJY_BaseViewController.h\n// TJYFoundation\n//\n// Created by wang_wei on 2018/4/9.\n// Copyright © 2018年 wangwei. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "NavTitleView.h"\n@interface TJY_BaseViewController : UIViewController\n{\n NavTitleView *titleView;\n}\n@property(nonatomic,assign) BOOL navTitleViewIsHidden ;\n@property(nonatomic,strong)NavTitleView *titleView;\n@property (copy, nonatomic) void (^backClicked)(void);\n\n//取消网络请求\n- (void)cancelRequest;\n// 修改textField 的placeholedColor\n-(void)textFieldPlaceholderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Charactor:(NSString *)aString getFirstCharactor:(BOOL)isGetFirst;\n@end\n" (comment) "//" (comment) "// TJY_BaseViewController.h" (comment) "// TJYFoundation" (comment) "//" (comment) "// Created by wang_wei on 2018/4/9." (comment) "// Copyright © 2018年 wangwei. All rights reserved.\n//" (comment) "\n#" (preproc_call) "port <UIKit/UIKit.h>\n#im" (preproc_directive) "port <U" (preproc_arg) "Kit/UIKit.h>\n#i" (preproc_call) "port "NavTitleView.h"\n@in" (preproc_directive) "port "N" (preproc_arg) "vTitleView.h"\n@i" (ERROR) "t" (ERROR) "t" (function_definition) "erface TJY_BaseViewController : UIViewController\n{\n NavTitleView *titleView;\n}\n@p" (type_identifier) "erface TJ" (identifier) "_BaseViewController : " (ERROR) "IViewController\n{\n" (:) "I" (identifier) "iewController\n{\n" (compound_statement) " NavTitleView *titleView;\n}\n@p" ({) " " (declaration) "TitleView *titleView;\n}\n" (type_identifier) "TitleView *t" (pointer_declarator) "tleView;\n}" (*) "t" (identifier) "leView;\n}" (;) "\n" (}) "p" (ERROR) "operty(nonatomic,assign) BOOL n" (ERROR) "o" (call_expression) "perty(nonatomic,assign) BO" (identifier) "perty(no" (argument_list) "natomic,assign) BO" (() "n" (identifier) "atomic,as" (,) "s" (identifier) "ign) B" ()) "O" (identifier) "L n" (expression_statement) "TitleViewIsHidden ;\n@p" (identifier) "TitleViewIsHidden ;\n" (;) "p" (ERROR) "o" (ERROR) "o" (expression_statement) "perty(nonatomic,strong)Nav" (call_expression) "perty(nonatomic,strong)Nav" (identifier) "perty(no" (argument_list) "natomic,strong)Nav" (() "n" (identifier) "atomic,st" (,) "r" (identifier) "ong)Na" ()) "v" (;) "" (declaration) "TitleView *titleView;\n@p" (type_identifier) "TitleView *t" (pointer_declarator) "tleView;\n@" (*) "t" (identifier) "leView;\n@" (;) "p" (ERROR) "o" (ERROR) "o" (expression_statement) "perty (copy, nonatomic) void (^backClicked)(void);\n\n/" (call_expression) "perty (copy, nonatomic) void (^backClicked)(void);\n\n" (call_expression) "perty (copy, nonatomic) void (^backClicked)(vo" (call_expression) "perty (copy, nonatomic) vo" (identifier) "perty (c" (argument_list) "py, nonatomic) vo" (() "p" (identifier) "y, n" (,) "o" (identifier) "atomic) v" ()) "o" (ERROR) "d (^" (identifier) "d (^" (argument_list) "ackClicked)(vo" (() "a" (ERROR) "c" (^) "c" (identifier) "kClicked)(v" ()) "o" (argument_list) "id);\n\n" (() "i" (identifier) "d);\n" ()) "\n" (;) "/" (comment) "消网络请求\n- (void)cancel" (expression_statement) "equest;\n// 修改textField" (unary_expression) "equest;\n// 修改textFiel" (-) "e" (cast_expression) "uest;\n// 修改textFiel" (() "u" (type_descriptor) "est;" (primitive_type) "est;" ()) "\n" (identifier) "// 修改textFiel" (;) "d" (comment) "的placeholedColor\n-(void)textFieldPlac" (ERROR) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Charactor:(NSString *)aString getFirstCharactor:(BOOL)isGetFirst;\n@end\n" (binary_expression) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Charactor:(NSString *)aString getFirstCharactor:(BOOL)isGetFirst;\n@e" (binary_expression) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Charactor:(NSString *)aString " (binary_expression) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Chara" (binary_expression) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay" (binary_expression) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay wit" (binary_expression) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDa" (binary_expression) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n" (binary_expression) "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateW" (unary_expression) "holderColorWithTextField:(UITextField*)textFi" (-) "h" (cast_expression) "olderColorWithTextField:(UITextField*)textFi" (() "o" (type_descriptor) "lder" (primitive_type) "lder" ()) "C" (identifier) "olorWithTextField:(UITextField*)textFi" (ERROR) "eld;\n\n-(NSStr" (:) "e" (() "l" (identifier) "d;\n\n-(NSStr" (*) "i" (ERROR) "n" ()) "n" (identifier) "g *)dateW" (ERROR) "i" (;) "i" (-) "T" (cast_expression) "imeIntervalString:(NSString *)string;\n" (() "i" (type_descriptor) "meInterval" (type_identifier) "meInterv" (abstract_pointer_declarator) "l" (*) "l" ()) "S" (identifier) "tring:(NSString *)string;\n" (ERROR) "- (int)com" (:) "-" (() " " (identifier) "(int)com" (*) "a" (ERROR) "r" ()) "r" (identifier) "eOneDa" (ERROR) "y" (;) "y" (-) "(" (cast_expression) "SDate *)oneDay wit" (() "S" (type_descriptor) "Dat" (primitive_type) "Dat" ()) "e" (identifier) " *)oneDay wit" (ERROR) "hAnother" (:) "h" (() "A" (identifier) "nother" (*) "a" (ERROR) "y:(NSDa" ()) "y" (identifier) ":(NSDa" (identifier) "e *)anotherDay" (ERROR) ";\n- (NSS" (:) ";" (() "\n" (identifier) "- (NSS" (*) "r" (ERROR) "i" ()) "i" (identifier) "ng *)Chara" (ERROR) "c" (;) "c" (-) "o" (cast_expression) ":(NSString *)aString " (() ":" (type_descriptor) "(NSString " (type_identifier) "(NSStrin" (abstract_pointer_declarator) " " (*) " " ()) "*" (identifier) ")aString " (ERROR) "getFirstCh" (:) "g" (() "e" (identifier) "tFirstCh" (*) "r" (ERROR) "actor:(B" ()) "a" (identifier) "ctor:(B" (identifier) "OL)isGetFirst;\n@e" (:) "n" (() "d" (identifier) "\n" ()) "" (identifier) "" (;) "" (ERROR) "" (identifier) ""
199
26
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 32.29, "nodes": 129, "errors": 0, "source_hash": "b37c708bd15e2e14176dd78727fb48f444cd1b0ba611d6065ee329c798b17419", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit/UIKit.h>\n#im", "parent": null, "children": [1, 2], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "port <U", "parent": 0, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "Kit/UIKit.h>\n#i", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 3, "type": "preproc_call", "text": "port \"NavTitleView.h\"\n@in", "parent": null, "children": [4, 5], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "port \"N", "parent": 3, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "vTitleView.h\"\n@i", "parent": 3, "children": [], "start_point": {"row": 9, "column": 8}, "end_point": {"row": 9, "column": 24}}, {"id": 6, "type": "ERROR", "text": "t", "parent": null, "children": [7], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 7, "type": "ERROR", "text": "t", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 1}}, {"id": 8, "type": "function_definition", "text": "erface TJY_BaseViewController : UIViewController\n{\n NavTitleView *titleView;\n}\n@p", "parent": null, "children": [9, 10, 11], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 13, "column": 1}}, {"id": 9, "type": "type_identifier", "text": "erface TJ", "parent": 8, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 10}}, {"id": 10, "type": "identifier", "text": "_BaseViewController : ", "parent": 8, "children": [], "start_point": {"row": 10, "column": 11}, "end_point": {"row": 10, "column": 33}}, {"id": 11, "type": "ERROR", "text": "IViewController\n{\n", "parent": 8, "children": [12], "start_point": {"row": 10, "column": 34}, "end_point": {"row": 10, "column": 52}}, {"id": 12, "type": "identifier", "text": "iewController\n{\n", "parent": 11, "children": [], "start_point": {"row": 10, "column": 36}, "end_point": {"row": 10, "column": 52}}, {"id": 13, "type": "declaration", "text": "TitleView *titleView;\n}\n", "parent": 8, "children": [14, 15], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 28}}, {"id": 14, "type": "type_identifier", "text": "TitleView *t", "parent": 13, "children": [], "start_point": {"row": 12, "column": 4}, "end_point": {"row": 12, "column": 16}}, {"id": 15, "type": "pointer_declarator", "text": "tleView;\n}", "parent": 13, "children": [16, 17], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 27}}, {"id": 16, "type": "*", "text": "t", "parent": 15, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 18}}, {"id": 17, "type": "identifier", "text": "leView;\n}", "parent": 15, "children": [], "start_point": {"row": 12, "column": 18}, "end_point": {"row": 12, "column": 27}}, {"id": 18, "type": "ERROR", "text": "operty(nonatomic,assign) BOOL n", "parent": null, "children": [19, 20, 25], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 32}}, {"id": 19, "type": "ERROR", "text": "o", "parent": 18, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 20, "type": "call_expression", "text": "perty(nonatomic,assign) BO", "parent": 18, "children": [21, 22], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 27}}, {"id": 21, "type": "identifier", "text": "perty(no", "parent": 20, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 9}}, {"id": 22, "type": "argument_list", "text": "natomic,assign) BO", "parent": 20, "children": [23, 24], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 27}}, {"id": 23, "type": "identifier", "text": "atomic,as", "parent": 22, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 19}}, {"id": 24, "type": "identifier", "text": "ign) B", "parent": 22, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 26}}, {"id": 25, "type": "identifier", "text": "L n", "parent": 18, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 32}}, {"id": 26, "type": "identifier", "text": "TitleViewIsHidden ;\n", "parent": null, "children": [], "start_point": {"row": 14, "column": 34}, "end_point": {"row": 14, "column": 54}}, {"id": 27, "type": "ERROR", "text": "o", "parent": null, "children": [28], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 28, "type": "ERROR", "text": "o", "parent": 27, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 1}}, {"id": 29, "type": "call_expression", "text": "perty(nonatomic,strong)Nav", "parent": null, "children": [30, 31], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 27}}, {"id": 30, "type": "identifier", "text": "perty(no", "parent": 29, "children": [], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 9}}, {"id": 31, "type": "argument_list", "text": "natomic,strong)Nav", "parent": 29, "children": [32, 33], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 27}}, {"id": 32, "type": "identifier", "text": "atomic,st", "parent": 31, "children": [], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 19}}, {"id": 33, "type": "identifier", "text": "ong)Na", "parent": 31, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 26}}, {"id": 34, "type": "declaration", "text": "TitleView *titleView;\n@p", "parent": null, "children": [35, 36], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 51}}, {"id": 35, "type": "type_identifier", "text": "TitleView *t", "parent": 34, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 39}}, {"id": 36, "type": "pointer_declarator", "text": "tleView;\n@", "parent": 34, "children": [37, 38], "start_point": {"row": 15, "column": 40}, "end_point": {"row": 15, "column": 50}}, {"id": 37, "type": "*", "text": "t", "parent": 36, "children": [], "start_point": {"row": 15, "column": 40}, "end_point": {"row": 15, "column": 41}}, {"id": 38, "type": "identifier", "text": "leView;\n@", "parent": 36, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 50}}, {"id": 39, "type": "ERROR", "text": "o", "parent": null, "children": [40], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 40, "type": "ERROR", "text": "o", "parent": 39, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 41, "type": "call_expression", "text": "perty (copy, nonatomic) void (^backClicked)(void);\n\n", "parent": null, "children": [42, 54], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 53}}, {"id": 42, "type": "call_expression", "text": "perty (copy, nonatomic) void (^backClicked)(vo", "parent": 41, "children": [43, 48, 50], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 47}}, {"id": 43, "type": "call_expression", "text": "perty (copy, nonatomic) vo", "parent": 42, "children": [44, 45], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 27}}, {"id": 44, "type": "identifier", "text": "perty (c", "parent": 43, "children": [], "start_point": {"row": 16, "column": 1}, "end_point": {"row": 16, "column": 9}}, {"id": 45, "type": "argument_list", "text": "py, nonatomic) vo", "parent": 43, "children": [46, 47], "start_point": {"row": 16, "column": 10}, "end_point": {"row": 16, "column": 27}}, {"id": 46, "type": "identifier", "text": "y, n", "parent": 45, "children": [], "start_point": {"row": 16, "column": 11}, "end_point": {"row": 16, "column": 15}}, {"id": 47, "type": "identifier", "text": "atomic) v", "parent": 45, "children": [], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 26}}, {"id": 48, "type": "ERROR", "text": "d (^", "parent": 42, "children": [49], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 32}}, {"id": 49, "type": "identifier", "text": "d (^", "parent": 48, "children": [], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 32}}, {"id": 50, "type": "argument_list", "text": "ackClicked)(vo", "parent": 42, "children": [51, 53], "start_point": {"row": 16, "column": 33}, "end_point": {"row": 16, "column": 47}}, {"id": 51, "type": "ERROR", "text": "c", "parent": 50, "children": [52], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 35}}, {"id": 52, "type": "^", "text": "c", "parent": 51, "children": [], "start_point": {"row": 16, "column": 34}, "end_point": {"row": 16, "column": 35}}, {"id": 53, "type": "identifier", "text": "kClicked)(v", "parent": 50, "children": [], "start_point": {"row": 16, "column": 35}, "end_point": {"row": 16, "column": 46}}, {"id": 54, "type": "argument_list", "text": "id);\n\n", "parent": 41, "children": [55], "start_point": {"row": 16, "column": 47}, "end_point": {"row": 16, "column": 53}}, {"id": 55, "type": "identifier", "text": "d);\n", "parent": 54, "children": [], "start_point": {"row": 16, "column": 48}, "end_point": {"row": 16, "column": 52}}, {"id": 56, "type": "unary_expression", "text": "equest;\n// \u4fee\u6539textFiel", "parent": null, "children": [57, 58], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 21}}, {"id": 57, "type": "-", "text": "e", "parent": 56, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 1}}, {"id": 58, "type": "cast_expression", "text": "uest;\n// \u4fee\u6539textFiel", "parent": 56, "children": [59, 61], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 21}}, {"id": 59, "type": "type_descriptor", "text": "est;", "parent": 58, "children": [60], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 60, "type": "primitive_type", "text": "est;", "parent": 59, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 61, "type": "identifier", "text": "// \u4fee\u6539textFiel", "parent": 58, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 21}}, {"id": 62, "type": "ERROR", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Charactor:(NSString *)aString getFirstCharactor:(BOOL)isGetFirst;\n@end\n", "parent": null, "children": [63, 125, 126, 127, 128], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 26, "column": 4}}, {"id": 63, "type": "binary_expression", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Charactor:(NSString *)aString getFirstCharactor:(BOOL)isGetFirst;\n@e", "parent": 62, "children": [64, 119, 121, 122, 124], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 25, "column": 61}}, {"id": 64, "type": "binary_expression", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Charactor:(NSString *)aString ", "parent": 63, "children": [65, 111, 112, 113], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 25, "column": 23}}, {"id": 65, "type": "binary_expression", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Chara", "parent": 64, "children": [66, 106, 108, 109, 110], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 24, "column": 73}}, {"id": 66, "type": "binary_expression", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay", "parent": 65, "children": [67, 100, 102, 103, 105], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 24, "column": 52}}, {"id": 67, "type": "binary_expression", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay wit", "parent": 66, "children": [68, 95, 96], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 24, "column": 20}}, {"id": 68, "type": "binary_expression", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDa", "parent": 67, "children": [69, 90, 92, 93, 94], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 58}}, {"id": 69, "type": "binary_expression", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n", "parent": 68, "children": [70, 82, 83, 84], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 39}}, {"id": 70, "type": "binary_expression", "text": "holderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateW", "parent": 69, "children": [71, 77, 79, 80, 81], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 69}}, {"id": 71, "type": "unary_expression", "text": "holderColorWithTextField:(UITextField*)textFi", "parent": 70, "children": [72, 73], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 45}}, {"id": 72, "type": "-", "text": "h", "parent": 71, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 1}}, {"id": 73, "type": "cast_expression", "text": "olderColorWithTextField:(UITextField*)textFi", "parent": 71, "children": [74, 76], "start_point": {"row": 21, "column": 1}, "end_point": {"row": 21, "column": 45}}, {"id": 74, "type": "type_descriptor", "text": "lder", "parent": 73, "children": [75], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 6}}, {"id": 75, "type": "primitive_type", "text": "lder", "parent": 74, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 6}}, {"id": 76, "type": "identifier", "text": "olorWithTextField:(UITextField*)textFi", "parent": 73, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 45}}, {"id": 77, "type": "ERROR", "text": "eld;\n\n-(NSStr", "parent": 70, "children": [78], "start_point": {"row": 21, "column": 45}, "end_point": {"row": 21, "column": 58}}, {"id": 78, "type": "identifier", "text": "d;\n\n-(NSStr", "parent": 77, "children": [], "start_point": {"row": 21, "column": 47}, "end_point": {"row": 21, "column": 58}}, {"id": 79, "type": "*", "text": "i", "parent": 70, "children": [], "start_point": {"row": 21, "column": 58}, "end_point": {"row": 21, "column": 59}}, {"id": 80, "type": "ERROR", "text": "n", "parent": 70, "children": [], "start_point": {"row": 21, "column": 59}, "end_point": {"row": 21, "column": 60}}, {"id": 81, "type": "identifier", "text": "g *)dateW", "parent": 70, "children": [], "start_point": {"row": 21, "column": 60}, "end_point": {"row": 21, "column": 69}}, {"id": 82, "type": "ERROR", "text": "i", "parent": 69, "children": [], "start_point": {"row": 21, "column": 69}, "end_point": {"row": 21, "column": 70}}, {"id": 83, "type": "-", "text": "T", "parent": 69, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 84, "type": "cast_expression", "text": "imeIntervalString:(NSString *)string;\n", "parent": 69, "children": [85, 89], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 39}}, {"id": 85, "type": "type_descriptor", "text": "meInterval", "parent": 84, "children": [86, 87], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 12}}, {"id": 86, "type": "type_identifier", "text": "meInterv", "parent": 85, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 10}}, {"id": 87, "type": "abstract_pointer_declarator", "text": "l", "parent": 85, "children": [88], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 88, "type": "*", "text": "l", "parent": 87, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 12}}, {"id": 89, "type": "identifier", "text": "tring:(NSString *)string;\n", "parent": 84, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 39}}, {"id": 90, "type": "ERROR", "text": "- (int)com", "parent": 68, "children": [91], "start_point": {"row": 23, "column": 39}, "end_point": {"row": 23, "column": 49}}, {"id": 91, "type": "identifier", "text": "(int)com", "parent": 90, "children": [], "start_point": {"row": 23, "column": 41}, "end_point": {"row": 23, "column": 49}}, {"id": 92, "type": "*", "text": "a", "parent": 68, "children": [], "start_point": {"row": 23, "column": 50}, "end_point": {"row": 23, "column": 51}}, {"id": 93, "type": "ERROR", "text": "r", "parent": 68, "children": [], "start_point": {"row": 23, "column": 51}, "end_point": {"row": 23, "column": 52}}, {"id": 94, "type": "identifier", "text": "eOneDa", "parent": 68, "children": [], "start_point": {"row": 23, "column": 52}, "end_point": {"row": 23, "column": 58}}, {"id": 95, "type": "ERROR", "text": "y", "parent": 67, "children": [], "start_point": {"row": 23, "column": 58}, "end_point": {"row": 23, "column": 59}}, {"id": 96, "type": "cast_expression", "text": "SDate *)oneDay wit", "parent": 67, "children": [97, 99], "start_point": {"row": 24, "column": 2}, "end_point": {"row": 24, "column": 20}}, {"id": 97, "type": "type_descriptor", "text": "Dat", "parent": 96, "children": [98], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 6}}, {"id": 98, "type": "primitive_type", "text": "Dat", "parent": 97, "children": [], "start_point": {"row": 24, "column": 3}, "end_point": {"row": 24, "column": 6}}, {"id": 99, "type": "identifier", "text": " *)oneDay wit", "parent": 96, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 20}}, {"id": 100, "type": "ERROR", "text": "hAnother", "parent": 66, "children": [101], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 28}}, {"id": 101, "type": "identifier", "text": "nother", "parent": 100, "children": [], "start_point": {"row": 24, "column": 22}, "end_point": {"row": 24, "column": 28}}, {"id": 102, "type": "*", "text": "a", "parent": 66, "children": [], "start_point": {"row": 24, "column": 29}, "end_point": {"row": 24, "column": 30}}, {"id": 103, "type": "ERROR", "text": "y:(NSDa", "parent": 66, "children": [104], "start_point": {"row": 24, "column": 30}, "end_point": {"row": 24, "column": 37}}, {"id": 104, "type": "identifier", "text": ":(NSDa", "parent": 103, "children": [], "start_point": {"row": 24, "column": 31}, "end_point": {"row": 24, "column": 37}}, {"id": 105, "type": "identifier", "text": "e *)anotherDay", "parent": 66, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 52}}, {"id": 106, "type": "ERROR", "text": ";\n- (NSS", "parent": 65, "children": [107], "start_point": {"row": 24, "column": 52}, "end_point": {"row": 24, "column": 60}}, {"id": 107, "type": "identifier", "text": "- (NSS", "parent": 106, "children": [], "start_point": {"row": 24, "column": 54}, "end_point": {"row": 24, "column": 60}}, {"id": 108, "type": "*", "text": "r", "parent": 65, "children": [], "start_point": {"row": 24, "column": 61}, "end_point": {"row": 24, "column": 62}}, {"id": 109, "type": "ERROR", "text": "i", "parent": 65, "children": [], "start_point": {"row": 24, "column": 62}, "end_point": {"row": 24, "column": 63}}, {"id": 110, "type": "identifier", "text": "ng *)Chara", "parent": 65, "children": [], "start_point": {"row": 24, "column": 63}, "end_point": {"row": 24, "column": 73}}, {"id": 111, "type": "ERROR", "text": "c", "parent": 64, "children": [], "start_point": {"row": 24, "column": 73}, "end_point": {"row": 24, "column": 74}}, {"id": 112, "type": "-", "text": "o", "parent": 64, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 113, "type": "cast_expression", "text": ":(NSString *)aString ", "parent": 64, "children": [114, 118], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 23}}, {"id": 114, "type": "type_descriptor", "text": "(NSString ", "parent": 113, "children": [115, 116], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 13}}, {"id": 115, "type": "type_identifier", "text": "(NSStrin", "parent": 114, "children": [], "start_point": {"row": 25, "column": 3}, "end_point": {"row": 25, "column": 11}}, {"id": 116, "type": "abstract_pointer_declarator", "text": " ", "parent": 114, "children": [117], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 117, "type": "*", "text": " ", "parent": 116, "children": [], "start_point": {"row": 25, "column": 12}, "end_point": {"row": 25, "column": 13}}, {"id": 118, "type": "identifier", "text": ")aString ", "parent": 113, "children": [], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 23}}, {"id": 119, "type": "ERROR", "text": "getFirstCh", "parent": 63, "children": [120], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 33}}, {"id": 120, "type": "identifier", "text": "tFirstCh", "parent": 119, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 33}}, {"id": 121, "type": "*", "text": "r", "parent": 63, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 35}}, {"id": 122, "type": "ERROR", "text": "actor:(B", "parent": 63, "children": [123], "start_point": {"row": 25, "column": 35}, "end_point": {"row": 25, "column": 43}}, {"id": 123, "type": "identifier", "text": "ctor:(B", "parent": 122, "children": [], "start_point": {"row": 25, "column": 36}, "end_point": {"row": 25, "column": 43}}, {"id": 124, "type": "identifier", "text": "OL)isGetFirst;\n@e", "parent": 63, "children": [], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 61}}, {"id": 125, "type": "identifier", "text": "\n", "parent": 62, "children": [], "start_point": {"row": 25, "column": 63}, "end_point": {"row": 25, "column": 67}}, {"id": 126, "type": "identifier", "text": "", "parent": 62, "children": [], "start_point": {"row": 25, "column": 68}, "end_point": {"row": 25, "column": 78}}, {"id": 127, "type": "ERROR", "text": "", "parent": 62, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 128, "type": "identifier", "text": "", "parent": 62, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 4}}]}, "node_categories": {"declarations": {"functions": [8], "variables": [13, 34], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [20, 29, 41, 42, 43, 56, 58, 63, 64, 65, 66, 67, 68, 69, 70, 71, 73, 84, 96, 113], "assignments": [], "loops": [], "conditionals": [9, 10, 12, 14, 17, 21, 23, 24, 25, 26, 30, 32, 33, 35, 38, 44, 46, 47, 49, 53, 55, 61, 76, 78, 81, 86, 89, 91, 94, 99, 101, 104, 105, 107, 110, 115, 118, 120, 123, 124, 125, 126, 128], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 8, "universal_type": "function", "name": "unknown", "text_snippet": "erface TJY_BaseViewController : UIViewController\n{\n NavTitleView *titleView;\n}\n@p"}], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// TJY_BaseViewController.h\n// TJYFoundation\n//\n// Created by wang_wei on 2018/4/9.\n// Copyright \u00a9 2018\u5e74 wangwei. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"NavTitleView.h\"\n@interface TJY_BaseViewController : UIViewController\n{\n NavTitleView *titleView;\n}\n@property(nonatomic,assign) BOOL navTitleViewIsHidden ;\n@property(nonatomic,strong)NavTitleView *titleView;\n@property (copy, nonatomic) void (^backClicked)(void);\n\n//\u53d6\u6d88\u7f51\u7edc\u8bf7\u6c42\n- (void)cancelRequest;\n// \u4fee\u6539textField \u7684placeholedColor\n-(void)textFieldPlaceholderColorWithTextField:(UITextField*)textField;\n\n-(NSString *)dateWithTimeIntervalString:(NSString *)string;\n- (int)compareOneDay:(NSDate *)oneDay withAnotherDay:(NSDate *)anotherDay;\n- (NSString *)Charactor:(NSString *)aString getFirstCharactor:(BOOL)isGetFirst;\n@end\n"}
80,370
c
// .NAME vtkGeoReferencedImageReader // By: <NAME> // Uses libtiff and geotiff libraries from http://trac.osgeo.org/geotiff/ // Reads standard .tiff, .jpg and .png files. // Also reads GeoTIFF (with both embedded info and external text files). // Supports .tfw files for any .tiff, .jpg or .png #ifndef __vtkGeoReferencedImageReader_h #define __vtkGeoReferencedImageReader_h #include "vtkPolyDataAlgorithm.h" class VTK_EXPORT vtkGeoReferencedImageReader : public vtkPolyDataAlgorithm { public: static vtkGeoReferencedImageReader* New(); vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm); void PrintSelf(ostream& os, vtkIndent indent); vtkSetStringMacro(FileName); // SetFileName(); vtkGetStringMacro(FileName); //GetFileName() vtkSetMacro(NorthernHemisphere, int); vtkGetMacro(NorthernHemisphere, int); protected: vtkGeoReferencedImageReader(); ~vtkGeoReferencedImageReader(); int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector); int RequestData(vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector); void ParseTFW( double adfCoeff[6], bool &YInversion ); void FindFileInfo(); bool Flip; private: vtkStdString FileExt; vtkStdString FileShortName; vtkStdString FilePath; int NorthernHemisphere; bool TFWFound; char* FileName; //name of file (full path), useful for obtaining object names vtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&); // Not implemented. void operator=(const vtkGeoReferencedImageReader&); // Not implemented. }; #endif
39.31
42
(translation_unit) "// .NAME vtkGeoReferencedImageReader \n// By: <NAME>\n// Uses libtiff and geotiff libraries from http://trac.osgeo.org/geotiff/\n// Reads standard .tiff, .jpg and .png files.\n// Also reads GeoTIFF (with both embedded info and external text files).\n// Supports .tfw files for any .tiff, .jpg or .png\n\n#ifndef __vtkGeoReferencedImageReader_h\n#define __vtkGeoReferencedImageReader_h\n\n#include "vtkPolyDataAlgorithm.h"\n\nclass VTK_EXPORT vtkGeoReferencedImageReader : public vtkPolyDataAlgorithm\n{\npublic:\n static vtkGeoReferencedImageReader* New();\n vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm);\n void PrintSelf(ostream& os, vtkIndent indent);\n\n vtkSetStringMacro(FileName); // SetFileName();\n vtkGetStringMacro(FileName); //GetFileName()\n\n vtkSetMacro(NorthernHemisphere, int);\n vtkGetMacro(NorthernHemisphere, int);\n\nprotected:\n vtkGeoReferencedImageReader();\n ~vtkGeoReferencedImageReader();\n\n int RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n void ParseTFW( double adfCoeff[6], bool &YInversion );\n\n void FindFileInfo();\n\n bool Flip;\n\nprivate:\n vtkStdString FileExt;\n vtkStdString FileShortName;\n vtkStdString FilePath;\n\n int NorthernHemisphere;\n\n bool TFWFound;\n\n char* FileName; //name of file (full path), useful for obtaining object names\n\n vtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&); // Not implemented.\n void operator=(const vtkGeoReferencedImageReader&); // Not implemented.\n\n};\n\n#endif\n" (comment) "// .NAME vtkGeoReferencedImageReader " (comment) "// By: <NAME>" (comment) "// Uses libtiff and geotiff libraries from http://trac.osgeo.org/geotiff/" (comment) "// Reads standard .tiff, .jpg and .png files." (comment) "// Also reads GeoTIFF (with both embedded info and external text files)." (comment) "// Supports .tfw files for any .tiff, .jpg or .png" (preproc_ifdef) "#ifndef __vtkGeoReferencedImageReader_h\n#define __vtkGeoReferencedImageReader_h\n\n#include "vtkPolyDataAlgorithm.h"\n\nclass VTK_EXPORT vtkGeoReferencedImageReader : public vtkPolyDataAlgorithm\n{\npublic:\n static vtkGeoReferencedImageReader* New();\n vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm);\n void PrintSelf(ostream& os, vtkIndent indent);\n\n vtkSetStringMacro(FileName); // SetFileName();\n vtkGetStringMacro(FileName); //GetFileName()\n\n vtkSetMacro(NorthernHemisphere, int);\n vtkGetMacro(NorthernHemisphere, int);\n\nprotected:\n vtkGeoReferencedImageReader();\n ~vtkGeoReferencedImageReader();\n\n int RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n void ParseTFW( double adfCoeff[6], bool &YInversion );\n\n void FindFileInfo();\n\n bool Flip;\n\nprivate:\n vtkStdString FileExt;\n vtkStdString FileShortName;\n vtkStdString FilePath;\n\n int NorthernHemisphere;\n\n bool TFWFound;\n\n char* FileName; //name of file (full path), useful for obtaining object names\n\n vtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&); // Not implemented.\n void operator=(const vtkGeoReferencedImageReader&); // Not implemented.\n\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "__vtkGeoReferencedImageReader_h" (preproc_def) "#define __vtkGeoReferencedImageReader_h\n" (#define) "#define" (identifier) "__vtkGeoReferencedImageReader_h" (preproc_include) "#include "vtkPolyDataAlgorithm.h"\n" (#include) "#include" (string_literal) ""vtkPolyDataAlgorithm.h"" (") """ (string_content) "vtkPolyDataAlgorithm.h" (") """ (declaration) "class VTK_EXPORT" (type_identifier) "class" (identifier) "VTK_EXPORT" (;) "" (labeled_statement) "vtkGeoReferencedImageReader : public vtkPolyDataAlgorithm\n{\npublic:\n static vtkGeoReferencedImageReader* New();\n vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm);\n void PrintSelf(ostream& os, vtkIndent indent);\n\n vtkSetStringMacro(FileName); // SetFileName();\n vtkGetStringMacro(FileName); //GetFileName()\n\n vtkSetMacro(NorthernHemisphere, int);\n vtkGetMacro(NorthernHemisphere, int);\n\nprotected:\n vtkGeoReferencedImageReader();\n ~vtkGeoReferencedImageReader();\n\n int RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n void ParseTFW( double adfCoeff[6], bool &YInversion );\n\n void FindFileInfo();\n\n bool Flip;\n\nprivate:\n vtkStdString FileExt;\n vtkStdString FileShortName;\n vtkStdString FilePath;\n\n int NorthernHemisphere;\n\n bool TFWFound;\n\n char* FileName; //name of file (full path), useful for obtaining object names\n\n vtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&); // Not implemented.\n void operator=(const vtkGeoReferencedImageReader&); // Not implemented.\n\n}" (statement_identifier) "vtkGeoReferencedImageReader" (:) ":" (ERROR) "public vtkPolyDataAlgorithm" (type_identifier) "public" (identifier) "vtkPolyDataAlgorithm" (compound_statement) "{\npublic:\n static vtkGeoReferencedImageReader* New();\n vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm);\n void PrintSelf(ostream& os, vtkIndent indent);\n\n vtkSetStringMacro(FileName); // SetFileName();\n vtkGetStringMacro(FileName); //GetFileName()\n\n vtkSetMacro(NorthernHemisphere, int);\n vtkGetMacro(NorthernHemisphere, int);\n\nprotected:\n vtkGeoReferencedImageReader();\n ~vtkGeoReferencedImageReader();\n\n int RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n void ParseTFW( double adfCoeff[6], bool &YInversion );\n\n void FindFileInfo();\n\n bool Flip;\n\nprivate:\n vtkStdString FileExt;\n vtkStdString FileShortName;\n vtkStdString FilePath;\n\n int NorthernHemisphere;\n\n bool TFWFound;\n\n char* FileName; //name of file (full path), useful for obtaining object names\n\n vtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&); // Not implemented.\n void operator=(const vtkGeoReferencedImageReader&); // Not implemented.\n\n}" ({) "{" (labeled_statement) "public:\n static vtkGeoReferencedImageReader* New();" (statement_identifier) "public" (:) ":" (declaration) "static vtkGeoReferencedImageReader* New();" (storage_class_specifier) "static" (static) "static" (type_identifier) "vtkGeoReferencedImageReader" (pointer_declarator) "* New()" (*) "*" (function_declarator) "New()" (identifier) "New" (parameter_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm);" (call_expression) "vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm)" (identifier) "vtkTypeRevisionMacro" (argument_list) "(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm)" (() "(" (identifier) "vtkGeoReferencedImageReader" (,) "," (identifier) "vtkPolyDataAlgorithm" ()) ")" (;) ";" (declaration) "void PrintSelf(ostream& os, vtkIndent indent);" (primitive_type) "void" (function_declarator) "PrintSelf(ostream& os, vtkIndent indent)" (identifier) "PrintSelf" (parameter_list) "(ostream& os, vtkIndent indent)" (() "(" (parameter_declaration) "ostream& os" (type_identifier) "ostream" (ERROR) "&" (&) "&" (identifier) "os" (,) "," (parameter_declaration) "vtkIndent indent" (type_identifier) "vtkIndent" (identifier) "indent" ()) ")" (;) ";" (expression_statement) "vtkSetStringMacro(FileName);" (call_expression) "vtkSetStringMacro(FileName)" (identifier) "vtkSetStringMacro" (argument_list) "(FileName)" (() "(" (identifier) "FileName" ()) ")" (;) ";" (comment) "// SetFileName();" (expression_statement) "vtkGetStringMacro(FileName);" (call_expression) "vtkGetStringMacro(FileName)" (identifier) "vtkGetStringMacro" (argument_list) "(FileName)" (() "(" (identifier) "FileName" ()) ")" (;) ";" (comment) "//GetFileName()" (expression_statement) "vtkSetMacro(NorthernHemisphere, int);" (call_expression) "vtkSetMacro(NorthernHemisphere, int)" (identifier) "vtkSetMacro" (argument_list) "(NorthernHemisphere, int)" (() "(" (identifier) "NorthernHemisphere" (,) "," (identifier) "int" ()) ")" (;) ";" (expression_statement) "vtkGetMacro(NorthernHemisphere, int);" (call_expression) "vtkGetMacro(NorthernHemisphere, int)" (identifier) "vtkGetMacro" (argument_list) "(NorthernHemisphere, int)" (() "(" (identifier) "NorthernHemisphere" (,) "," (identifier) "int" ()) ")" (;) ";" (labeled_statement) "protected:\n vtkGeoReferencedImageReader();" (statement_identifier) "protected" (:) ":" (expression_statement) "vtkGeoReferencedImageReader();" (call_expression) "vtkGeoReferencedImageReader()" (identifier) "vtkGeoReferencedImageReader" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "~vtkGeoReferencedImageReader();" (unary_expression) "~vtkGeoReferencedImageReader()" (~) "~" (call_expression) "vtkGeoReferencedImageReader()" (identifier) "vtkGeoReferencedImageReader" (argument_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);" (primitive_type) "int" (function_declarator) "RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector)" (identifier) "RequestInformation" (parameter_list) "(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector)" (() "(" (parameter_declaration) "vtkInformation* request" (type_identifier) "vtkInformation" (pointer_declarator) "* request" (*) "*" (identifier) "request" (,) "," (parameter_declaration) "vtkInformationVector** inputVector" (type_identifier) "vtkInformationVector" (pointer_declarator) "** inputVector" (*) "*" (pointer_declarator) "* inputVector" (*) "*" (identifier) "inputVector" (,) "," (parameter_declaration) "vtkInformationVector* outputVector" (type_identifier) "vtkInformationVector" (pointer_declarator) "* outputVector" (*) "*" (identifier) "outputVector" ()) ")" (;) ";" (declaration) "int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);" (primitive_type) "int" (function_declarator) "RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector)" (identifier) "RequestData" (parameter_list) "(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector)" (() "(" (parameter_declaration) "vtkInformation* request" (type_identifier) "vtkInformation" (pointer_declarator) "* request" (*) "*" (identifier) "request" (,) "," (parameter_declaration) "vtkInformationVector** inputVector" (type_identifier) "vtkInformationVector" (pointer_declarator) "** inputVector" (*) "*" (pointer_declarator) "* inputVector" (*) "*" (identifier) "inputVector" (,) "," (parameter_declaration) "vtkInformationVector* outputVector" (type_identifier) "vtkInformationVector" (pointer_declarator) "* outputVector" (*) "*" (identifier) "outputVector" ()) ")" (;) ";" (declaration) "void ParseTFW( double adfCoeff[6], bool &YInversion );" (primitive_type) "void" (function_declarator) "ParseTFW( double adfCoeff[6], bool &YInversion )" (identifier) "ParseTFW" (parameter_list) "( double adfCoeff[6], bool &YInversion )" (() "(" (parameter_declaration) "double adfCoeff[6]" (primitive_type) "double" (array_declarator) "adfCoeff[6]" (identifier) "adfCoeff" ([) "[" (number_literal) "6" (]) "]" (,) "," (parameter_declaration) "bool &YInversion" (primitive_type) "bool" (ERROR) "&" (&) "&" (identifier) "YInversion" ()) ")" (;) ";" (declaration) "void FindFileInfo();" (primitive_type) "void" (function_declarator) "FindFileInfo()" (identifier) "FindFileInfo" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "bool Flip;" (primitive_type) "bool" (identifier) "Flip" (;) ";" (labeled_statement) "private:\n vtkStdString FileExt;" (statement_identifier) "private" (:) ":" (declaration) "vtkStdString FileExt;" (type_identifier) "vtkStdString" (identifier) "FileExt" (;) ";" (declaration) "vtkStdString FileShortName;" (type_identifier) "vtkStdString" (identifier) "FileShortName" (;) ";" (declaration) "vtkStdString FilePath;" (type_identifier) "vtkStdString" (identifier) "FilePath" (;) ";" (declaration) "int NorthernHemisphere;" (primitive_type) "int" (identifier) "NorthernHemisphere" (;) ";" (declaration) "bool TFWFound;" (primitive_type) "bool" (identifier) "TFWFound" (;) ";" (declaration) "char* FileName;" (primitive_type) "char" (pointer_declarator) "* FileName" (*) "*" (identifier) "FileName" (;) ";" (comment) "//name of file (full path), useful for obtaining object names" (macro_type_specifier) "vtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&)" (identifier) "vtkGeoReferencedImageReader" (() "(" (type_descriptor) "const vtkGeoReferencedImageReader" (type_qualifier) "const" (const) "const" (type_identifier) "vtkGeoReferencedImageReader" (ERROR) "&" (&) "&" ()) ")" (;) ";" (comment) "// Not implemented." (declaration) "void operator=(const vtkGeoReferencedImageReader&);" (primitive_type) "void" (init_declarator) "operator=(const vtkGeoReferencedImageReader&)" (identifier) "operator" (=) "=" (cast_expression) "(const vtkGeoReferencedImageReader&)" (() "(" (type_descriptor) "const vtkGeoReferencedImageReader" (type_qualifier) "const" (const) "const" (type_identifier) "vtkGeoReferencedImageReader" (ERROR) "&" (&) "&" ()) ")" (identifier) "" (;) ";" (comment) "// Not implemented." (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
280
5
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 39.31, "nodes": 166, "errors": 0, "source_hash": "17b5cbe25345d748695bc877aae882456f035de0540c5d099241dd22a22915f0", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __vtkGeoReferencedImageReader_h\n#define __vtkGeoReferencedImageReader_h\n\n#include \"vtkPolyDataAlgorithm.h\"\n\nclass VTK_EXPORT vtkGeoReferencedImageReader : public vtkPolyDataAlgorithm\n{\npublic:\n static vtkGeoReferencedImageReader* New();\n vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm);\n void PrintSelf(ostream& os, vtkIndent indent);\n\n\tvtkSetStringMacro(FileName); // SetFileName();\n\tvtkGetStringMacro(FileName); //GetFileName()\n\n\tvtkSetMacro(NorthernHemisphere, int);\n\tvtkGetMacro(NorthernHemisphere, int);\n\nprotected:\n vtkGeoReferencedImageReader();\n ~vtkGeoReferencedImageReader();\n\n\tint RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n\tvoid ParseTFW( double adfCoeff[6], bool &YInversion );\n\n\tvoid FindFileInfo();\n\n\tbool Flip;\n\nprivate:\n\tvtkStdString FileExt;\n vtkStdString FileShortName;\n vtkStdString FilePath;\n\n\tint NorthernHemisphere;\n\n\tbool TFWFound;\n\n\tchar* FileName; //name of file (full path), useful for obtaining object names\n\n\tvtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&); // Not implemented.\n void operator=(const vtkGeoReferencedImageReader&); // Not implemented.\n\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 11, 165], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 59, "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": "__vtkGeoReferencedImageReader_h", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 39}}, {"id": 3, "type": "preproc_def", "text": "#define __vtkGeoReferencedImageReader_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": "__vtkGeoReferencedImageReader_h", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 39}}, {"id": 6, "type": "preproc_include", "text": "#include \"vtkPolyDataAlgorithm.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"vtkPolyDataAlgorithm.h\"", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 33}}, {"id": 9, "type": "declaration", "text": "class VTK_EXPORT", "parent": 0, "children": [10], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 16}}, {"id": 10, "type": "identifier", "text": "VTK_EXPORT", "parent": 9, "children": [], "start_point": {"row": 12, "column": 6}, "end_point": {"row": 12, "column": 16}}, {"id": 11, "type": "labeled_statement", "text": "vtkGeoReferencedImageReader : public vtkPolyDataAlgorithm\n{\npublic:\n static vtkGeoReferencedImageReader* New();\n vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm);\n void PrintSelf(ostream& os, vtkIndent indent);\n\n\tvtkSetStringMacro(FileName); // SetFileName();\n\tvtkGetStringMacro(FileName); //GetFileName()\n\n\tvtkSetMacro(NorthernHemisphere, int);\n\tvtkGetMacro(NorthernHemisphere, int);\n\nprotected:\n vtkGeoReferencedImageReader();\n ~vtkGeoReferencedImageReader();\n\n\tint RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n\tvoid ParseTFW( double adfCoeff[6], bool &YInversion );\n\n\tvoid FindFileInfo();\n\n\tbool Flip;\n\nprivate:\n\tvtkStdString FileExt;\n vtkStdString FileShortName;\n vtkStdString FilePath;\n\n\tint NorthernHemisphere;\n\n\tbool TFWFound;\n\n\tchar* FileName; //name of file (full path), useful for obtaining object names\n\n\tvtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&); // Not implemented.\n void operator=(const vtkGeoReferencedImageReader&); // Not implemented.\n\n}", "parent": 0, "children": [12, 13], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 57, "column": 1}}, {"id": 12, "type": "statement_identifier", "text": "vtkGeoReferencedImageReader", "parent": 11, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 44}}, {"id": 13, "type": "ERROR", "text": "public vtkPolyDataAlgorithm", "parent": 11, "children": [14], "start_point": {"row": 12, "column": 47}, "end_point": {"row": 12, "column": 74}}, {"id": 14, "type": "identifier", "text": "vtkPolyDataAlgorithm", "parent": 13, "children": [], "start_point": {"row": 12, "column": 54}, "end_point": {"row": 12, "column": 74}}, {"id": 15, "type": "labeled_statement", "text": "public:\n static vtkGeoReferencedImageReader* New();", "parent": 11, "children": [16], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 44}}, {"id": 16, "type": "declaration", "text": "static vtkGeoReferencedImageReader* New();", "parent": 15, "children": [17, 18], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 44}}, {"id": 17, "type": "type_identifier", "text": "vtkGeoReferencedImageReader", "parent": 16, "children": [], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 36}}, {"id": 18, "type": "pointer_declarator", "text": "* New()", "parent": 16, "children": [19, 20], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 43}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 37}}, {"id": 20, "type": "function_declarator", "text": "New()", "parent": 18, "children": [21, 22], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 43}}, {"id": 21, "type": "identifier", "text": "New", "parent": 20, "children": [], "start_point": {"row": 15, "column": 38}, "end_point": {"row": 15, "column": 41}}, {"id": 22, "type": "parameter_list", "text": "()", "parent": 20, "children": [], "start_point": {"row": 15, "column": 41}, "end_point": {"row": 15, "column": 43}}, {"id": 23, "type": "call_expression", "text": "vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm)", "parent": 11, "children": [24, 25], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 72}}, {"id": 24, "type": "identifier", "text": "vtkTypeRevisionMacro", "parent": 23, "children": [], "start_point": {"row": 16, "column": 2}, "end_point": {"row": 16, "column": 22}}, {"id": 25, "type": "argument_list", "text": "(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm)", "parent": 23, "children": [26, 27], "start_point": {"row": 16, "column": 22}, "end_point": {"row": 16, "column": 72}}, {"id": 26, "type": "identifier", "text": "vtkGeoReferencedImageReader", "parent": 25, "children": [], "start_point": {"row": 16, "column": 23}, "end_point": {"row": 16, "column": 50}}, {"id": 27, "type": "identifier", "text": "vtkPolyDataAlgorithm", "parent": 25, "children": [], "start_point": {"row": 16, "column": 51}, "end_point": {"row": 16, "column": 71}}, {"id": 28, "type": "declaration", "text": "void PrintSelf(ostream& os, vtkIndent indent);", "parent": 11, "children": [29, 30], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 48}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 6}}, {"id": 30, "type": "function_declarator", "text": "PrintSelf(ostream& os, vtkIndent indent)", "parent": 28, "children": [31, 32], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 47}}, {"id": 31, "type": "identifier", "text": "PrintSelf", "parent": 30, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 16}}, {"id": 32, "type": "parameter_list", "text": "(ostream& os, vtkIndent indent)", "parent": 30, "children": [33, 36], "start_point": {"row": 17, "column": 16}, "end_point": {"row": 17, "column": 47}}, {"id": 33, "type": "parameter_declaration", "text": "ostream& os", "parent": 32, "children": [34, 35], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 28}}, {"id": 34, "type": "type_identifier", "text": "ostream", "parent": 33, "children": [], "start_point": {"row": 17, "column": 17}, "end_point": {"row": 17, "column": 24}}, {"id": 35, "type": "identifier", "text": "os", "parent": 33, "children": [], "start_point": {"row": 17, "column": 26}, "end_point": {"row": 17, "column": 28}}, {"id": 36, "type": "parameter_declaration", "text": "vtkIndent indent", "parent": 32, "children": [37, 38], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 46}}, {"id": 37, "type": "type_identifier", "text": "vtkIndent", "parent": 36, "children": [], "start_point": {"row": 17, "column": 30}, "end_point": {"row": 17, "column": 39}}, {"id": 38, "type": "identifier", "text": "indent", "parent": 36, "children": [], "start_point": {"row": 17, "column": 40}, "end_point": {"row": 17, "column": 46}}, {"id": 39, "type": "call_expression", "text": "vtkSetStringMacro(FileName)", "parent": 11, "children": [40, 41], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 28}}, {"id": 40, "type": "identifier", "text": "vtkSetStringMacro", "parent": 39, "children": [], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 18}}, {"id": 41, "type": "argument_list", "text": "(FileName)", "parent": 39, "children": [42], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 28}}, {"id": 42, "type": "identifier", "text": "FileName", "parent": 41, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 27}}, {"id": 43, "type": "call_expression", "text": "vtkGetStringMacro(FileName)", "parent": 11, "children": [44, 45], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 28}}, {"id": 44, "type": "identifier", "text": "vtkGetStringMacro", "parent": 43, "children": [], "start_point": {"row": 20, "column": 1}, "end_point": {"row": 20, "column": 18}}, {"id": 45, "type": "argument_list", "text": "(FileName)", "parent": 43, "children": [46], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 28}}, {"id": 46, "type": "identifier", "text": "FileName", "parent": 45, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 27}}, {"id": 47, "type": "call_expression", "text": "vtkSetMacro(NorthernHemisphere, int)", "parent": 11, "children": [48, 49], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 37}}, {"id": 48, "type": "identifier", "text": "vtkSetMacro", "parent": 47, "children": [], "start_point": {"row": 22, "column": 1}, "end_point": {"row": 22, "column": 12}}, {"id": 49, "type": "argument_list", "text": "(NorthernHemisphere, int)", "parent": 47, "children": [50, 51], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 37}}, {"id": 50, "type": "identifier", "text": "NorthernHemisphere", "parent": 49, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 31}}, {"id": 51, "type": "identifier", "text": "int", "parent": 49, "children": [], "start_point": {"row": 22, "column": 33}, "end_point": {"row": 22, "column": 36}}, {"id": 52, "type": "call_expression", "text": "vtkGetMacro(NorthernHemisphere, int)", "parent": 11, "children": [53, 54], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 37}}, {"id": 53, "type": "identifier", "text": "vtkGetMacro", "parent": 52, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 12}}, {"id": 54, "type": "argument_list", "text": "(NorthernHemisphere, int)", "parent": 52, "children": [55, 56], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 37}}, {"id": 55, "type": "identifier", "text": "NorthernHemisphere", "parent": 54, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 31}}, {"id": 56, "type": "identifier", "text": "int", "parent": 54, "children": [], "start_point": {"row": 23, "column": 33}, "end_point": {"row": 23, "column": 36}}, {"id": 57, "type": "labeled_statement", "text": "protected:\n vtkGeoReferencedImageReader();", "parent": 11, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 32}}, {"id": 58, "type": "call_expression", "text": "vtkGeoReferencedImageReader()", "parent": 57, "children": [59, 60], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 31}}, {"id": 59, "type": "identifier", "text": "vtkGeoReferencedImageReader", "parent": 58, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 29}}, {"id": 60, "type": "argument_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 26, "column": 29}, "end_point": {"row": 26, "column": 31}}, {"id": 61, "type": "unary_expression", "text": "~vtkGeoReferencedImageReader()", "parent": 11, "children": [62, 63], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 32}}, {"id": 62, "type": "~", "text": "~", "parent": 61, "children": [], "start_point": {"row": 27, "column": 2}, "end_point": {"row": 27, "column": 3}}, {"id": 63, "type": "call_expression", "text": "vtkGeoReferencedImageReader()", "parent": 61, "children": [64, 65], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 32}}, {"id": 64, "type": "identifier", "text": "vtkGeoReferencedImageReader", "parent": 63, "children": [], "start_point": {"row": 27, "column": 3}, "end_point": {"row": 27, "column": 30}}, {"id": 65, "type": "argument_list", "text": "()", "parent": 63, "children": [], "start_point": {"row": 27, "column": 30}, "end_point": {"row": 27, "column": 32}}, {"id": 66, "type": "declaration", "text": "int RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);", "parent": 11, "children": [67, 68], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 31, "column": 54}}, {"id": 67, "type": "primitive_type", "text": "int", "parent": 66, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 4}}, {"id": 68, "type": "function_declarator", "text": "RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector)", "parent": 66, "children": [69, 70], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 31, "column": 53}}, {"id": 69, "type": "identifier", "text": "RequestInformation", "parent": 68, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 23}}, {"id": 70, "type": "parameter_list", "text": "(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector)", "parent": 68, "children": [71, 76, 83], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 31, "column": 53}}, {"id": 71, "type": "parameter_declaration", "text": "vtkInformation* request", "parent": 70, "children": [72, 73], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 47}}, {"id": 72, "type": "type_identifier", "text": "vtkInformation", "parent": 71, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 38}}, {"id": 73, "type": "pointer_declarator", "text": "* request", "parent": 71, "children": [74, 75], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 47}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 29, "column": 38}, "end_point": {"row": 29, "column": 39}}, {"id": 75, "type": "identifier", "text": "request", "parent": 73, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 47}}, {"id": 76, "type": "parameter_declaration", "text": "vtkInformationVector** inputVector", "parent": 70, "children": [77, 78], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 52}}, {"id": 77, "type": "type_identifier", "text": "vtkInformationVector", "parent": 76, "children": [], "start_point": {"row": 30, "column": 18}, "end_point": {"row": 30, "column": 38}}, {"id": 78, "type": "pointer_declarator", "text": "** inputVector", "parent": 76, "children": [79, 80], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 52}}, {"id": 79, "type": "*", "text": "*", "parent": 78, "children": [], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 39}}, {"id": 80, "type": "pointer_declarator", "text": "* inputVector", "parent": 78, "children": [81, 82], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 52}}, {"id": 81, "type": "*", "text": "*", "parent": 80, "children": [], "start_point": {"row": 30, "column": 39}, "end_point": {"row": 30, "column": 40}}, {"id": 82, "type": "identifier", "text": "inputVector", "parent": 80, "children": [], "start_point": {"row": 30, "column": 41}, "end_point": {"row": 30, "column": 52}}, {"id": 83, "type": "parameter_declaration", "text": "vtkInformationVector* outputVector", "parent": 70, "children": [84, 85], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 52}}, {"id": 84, "type": "type_identifier", "text": "vtkInformationVector", "parent": 83, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 38}}, {"id": 85, "type": "pointer_declarator", "text": "* outputVector", "parent": 83, "children": [86, 87], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 52}}, {"id": 86, "type": "*", "text": "*", "parent": 85, "children": [], "start_point": {"row": 31, "column": 38}, "end_point": {"row": 31, "column": 39}}, {"id": 87, "type": "identifier", "text": "outputVector", "parent": 85, "children": [], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 52}}, {"id": 88, "type": "declaration", "text": "int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);", "parent": 11, "children": [89, 90], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 35, "column": 54}}, {"id": 89, "type": "primitive_type", "text": "int", "parent": 88, "children": [], "start_point": {"row": 33, "column": 2}, "end_point": {"row": 33, "column": 5}}, {"id": 90, "type": "function_declarator", "text": "RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector)", "parent": 88, "children": [91, 92], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 35, "column": 53}}, {"id": 91, "type": "identifier", "text": "RequestData", "parent": 90, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 17}}, {"id": 92, "type": "parameter_list", "text": "(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector)", "parent": 90, "children": [93, 98, 105], "start_point": {"row": 33, "column": 17}, "end_point": {"row": 35, "column": 53}}, {"id": 93, "type": "parameter_declaration", "text": "vtkInformation* request", "parent": 92, "children": [94, 95], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 41}}, {"id": 94, "type": "type_identifier", "text": "vtkInformation", "parent": 93, "children": [], "start_point": {"row": 33, "column": 18}, "end_point": {"row": 33, "column": 32}}, {"id": 95, "type": "pointer_declarator", "text": "* request", "parent": 93, "children": [96, 97], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 41}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 33, "column": 32}, "end_point": {"row": 33, "column": 33}}, {"id": 97, "type": "identifier", "text": "request", "parent": 95, "children": [], "start_point": {"row": 33, "column": 34}, "end_point": {"row": 33, "column": 41}}, {"id": 98, "type": "parameter_declaration", "text": "vtkInformationVector** inputVector", "parent": 92, "children": [99, 100], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 52}}, {"id": 99, "type": "type_identifier", "text": "vtkInformationVector", "parent": 98, "children": [], "start_point": {"row": 34, "column": 18}, "end_point": {"row": 34, "column": 38}}, {"id": 100, "type": "pointer_declarator", "text": "** inputVector", "parent": 98, "children": [101, 102], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 52}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 34, "column": 38}, "end_point": {"row": 34, "column": 39}}, {"id": 102, "type": "pointer_declarator", "text": "* inputVector", "parent": 100, "children": [103, 104], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 52}}, {"id": 103, "type": "*", "text": "*", "parent": 102, "children": [], "start_point": {"row": 34, "column": 39}, "end_point": {"row": 34, "column": 40}}, {"id": 104, "type": "identifier", "text": "inputVector", "parent": 102, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 52}}, {"id": 105, "type": "parameter_declaration", "text": "vtkInformationVector* outputVector", "parent": 92, "children": [106, 107], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 52}}, {"id": 106, "type": "type_identifier", "text": "vtkInformationVector", "parent": 105, "children": [], "start_point": {"row": 35, "column": 18}, "end_point": {"row": 35, "column": 38}}, {"id": 107, "type": "pointer_declarator", "text": "* outputVector", "parent": 105, "children": [108, 109], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 52}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 35, "column": 38}, "end_point": {"row": 35, "column": 39}}, {"id": 109, "type": "identifier", "text": "outputVector", "parent": 107, "children": [], "start_point": {"row": 35, "column": 40}, "end_point": {"row": 35, "column": 52}}, {"id": 110, "type": "declaration", "text": "void ParseTFW( double adfCoeff[6], bool &YInversion );", "parent": 11, "children": [111, 112], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 55}}, {"id": 111, "type": "primitive_type", "text": "void", "parent": 110, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 5}}, {"id": 112, "type": "function_declarator", "text": "ParseTFW( double adfCoeff[6], bool &YInversion )", "parent": 110, "children": [113, 114], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 54}}, {"id": 113, "type": "identifier", "text": "ParseTFW", "parent": 112, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 14}}, {"id": 114, "type": "parameter_list", "text": "( double adfCoeff[6], bool &YInversion )", "parent": 112, "children": [115, 120], "start_point": {"row": 37, "column": 14}, "end_point": {"row": 37, "column": 54}}, {"id": 115, "type": "parameter_declaration", "text": "double adfCoeff[6]", "parent": 114, "children": [116, 117], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 34}}, {"id": 116, "type": "primitive_type", "text": "double", "parent": 115, "children": [], "start_point": {"row": 37, "column": 16}, "end_point": {"row": 37, "column": 22}}, {"id": 117, "type": "array_declarator", "text": "adfCoeff[6]", "parent": 115, "children": [118, 119], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 34}}, {"id": 118, "type": "identifier", "text": "adfCoeff", "parent": 117, "children": [], "start_point": {"row": 37, "column": 23}, "end_point": {"row": 37, "column": 31}}, {"id": 119, "type": "number_literal", "text": "6", "parent": 117, "children": [], "start_point": {"row": 37, "column": 32}, "end_point": {"row": 37, "column": 33}}, {"id": 120, "type": "parameter_declaration", "text": "bool &YInversion", "parent": 114, "children": [121, 122], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 52}}, {"id": 121, "type": "primitive_type", "text": "bool", "parent": 120, "children": [], "start_point": {"row": 37, "column": 36}, "end_point": {"row": 37, "column": 40}}, {"id": 122, "type": "identifier", "text": "YInversion", "parent": 120, "children": [], "start_point": {"row": 37, "column": 42}, "end_point": {"row": 37, "column": 52}}, {"id": 123, "type": "declaration", "text": "void FindFileInfo();", "parent": 11, "children": [124, 125], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 21}}, {"id": 124, "type": "primitive_type", "text": "void", "parent": 123, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 5}}, {"id": 125, "type": "function_declarator", "text": "FindFileInfo()", "parent": 123, "children": [126, 127], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 20}}, {"id": 126, "type": "identifier", "text": "FindFileInfo", "parent": 125, "children": [], "start_point": {"row": 39, "column": 6}, "end_point": {"row": 39, "column": 18}}, {"id": 127, "type": "parameter_list", "text": "()", "parent": 125, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 20}}, {"id": 128, "type": "declaration", "text": "bool Flip;", "parent": 11, "children": [129, 130], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 11}}, {"id": 129, "type": "primitive_type", "text": "bool", "parent": 128, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 5}}, {"id": 130, "type": "identifier", "text": "Flip", "parent": 128, "children": [], "start_point": {"row": 41, "column": 6}, "end_point": {"row": 41, "column": 10}}, {"id": 131, "type": "labeled_statement", "text": "private:\n\tvtkStdString FileExt;", "parent": 11, "children": [132], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 22}}, {"id": 132, "type": "declaration", "text": "vtkStdString FileExt;", "parent": 131, "children": [133, 134], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 22}}, {"id": 133, "type": "type_identifier", "text": "vtkStdString", "parent": 132, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 13}}, {"id": 134, "type": "identifier", "text": "FileExt", "parent": 132, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 21}}, {"id": 135, "type": "declaration", "text": "vtkStdString FileShortName;", "parent": 11, "children": [136, 137], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 29}}, {"id": 136, "type": "type_identifier", "text": "vtkStdString", "parent": 135, "children": [], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 14}}, {"id": 137, "type": "identifier", "text": "FileShortName", "parent": 135, "children": [], "start_point": {"row": 45, "column": 15}, "end_point": {"row": 45, "column": 28}}, {"id": 138, "type": "declaration", "text": "vtkStdString FilePath;", "parent": 11, "children": [139, 140], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 24}}, {"id": 139, "type": "type_identifier", "text": "vtkStdString", "parent": 138, "children": [], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 46, "column": 14}}, {"id": 140, "type": "identifier", "text": "FilePath", "parent": 138, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 23}}, {"id": 141, "type": "declaration", "text": "int NorthernHemisphere;", "parent": 11, "children": [142, 143], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 24}}, {"id": 142, "type": "primitive_type", "text": "int", "parent": 141, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 4}}, {"id": 143, "type": "identifier", "text": "NorthernHemisphere", "parent": 141, "children": [], "start_point": {"row": 48, "column": 5}, "end_point": {"row": 48, "column": 23}}, {"id": 144, "type": "declaration", "text": "bool TFWFound;", "parent": 11, "children": [145, 146], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 15}}, {"id": 145, "type": "primitive_type", "text": "bool", "parent": 144, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 5}}, {"id": 146, "type": "identifier", "text": "TFWFound", "parent": 144, "children": [], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 14}}, {"id": 147, "type": "declaration", "text": "char* FileName;", "parent": 11, "children": [148, 149], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 16}}, {"id": 148, "type": "primitive_type", "text": "char", "parent": 147, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 5}}, {"id": 149, "type": "pointer_declarator", "text": "* FileName", "parent": 147, "children": [150, 151], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 15}}, {"id": 150, "type": "*", "text": "*", "parent": 149, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 6}}, {"id": 151, "type": "identifier", "text": "FileName", "parent": 149, "children": [], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 15}}, {"id": 152, "type": "macro_type_specifier", "text": "vtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&)", "parent": 11, "children": [153, 154], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 64}}, {"id": 153, "type": "identifier", "text": "vtkGeoReferencedImageReader", "parent": 152, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 28}}, {"id": 154, "type": "type_descriptor", "text": "const vtkGeoReferencedImageReader", "parent": 152, "children": [155], "start_point": {"row": 54, "column": 29}, "end_point": {"row": 54, "column": 62}}, {"id": 155, "type": "type_identifier", "text": "vtkGeoReferencedImageReader", "parent": 154, "children": [], "start_point": {"row": 54, "column": 35}, "end_point": {"row": 54, "column": 62}}, {"id": 156, "type": "declaration", "text": "void operator=(const vtkGeoReferencedImageReader&);", "parent": 11, "children": [157, 158], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 53}}, {"id": 157, "type": "primitive_type", "text": "void", "parent": 156, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 6}}, {"id": 158, "type": "init_declarator", "text": "operator=(const vtkGeoReferencedImageReader&)", "parent": 156, "children": [159, 160, 161], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 52}}, {"id": 159, "type": "identifier", "text": "operator", "parent": 158, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 15}}, {"id": 160, "type": "=", "text": "=", "parent": 158, "children": [], "start_point": {"row": 55, "column": 15}, "end_point": {"row": 55, "column": 16}}, {"id": 161, "type": "cast_expression", "text": "(const vtkGeoReferencedImageReader&)", "parent": 158, "children": [162, 164], "start_point": {"row": 55, "column": 16}, "end_point": {"row": 55, "column": 52}}, {"id": 162, "type": "type_descriptor", "text": "const vtkGeoReferencedImageReader", "parent": 161, "children": [163], "start_point": {"row": 55, "column": 17}, "end_point": {"row": 55, "column": 50}}, {"id": 163, "type": "type_identifier", "text": "vtkGeoReferencedImageReader", "parent": 162, "children": [], "start_point": {"row": 55, "column": 23}, "end_point": {"row": 55, "column": 50}}, {"id": 164, "type": "identifier", "text": "", "parent": 161, "children": [], "start_point": {"row": 55, "column": 52}, "end_point": {"row": 55, "column": 52}}, {"id": 165, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 6}}]}, "node_categories": {"declarations": {"functions": [20, 30, 68, 90, 112, 125], "variables": [9, 16, 28, 33, 36, 66, 71, 76, 83, 88, 93, 98, 105, 110, 115, 120, 123, 128, 132, 135, 138, 141, 144, 147, 156], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [23, 39, 43, 47, 52, 58, 61, 63, 161], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 12, 14, 17, 21, 24, 26, 27, 31, 34, 35, 37, 38, 40, 42, 44, 46, 48, 50, 51, 53, 55, 56, 59, 64, 69, 72, 75, 77, 82, 84, 87, 91, 94, 97, 99, 104, 106, 109, 113, 118, 122, 126, 130, 133, 134, 136, 137, 139, 140, 143, 146, 151, 152, 153, 155, 159, 163, 164, 165], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 119], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 20, "universal_type": "function", "name": "unknown", "text_snippet": "New()"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "PrintSelf(ostream& os, vtkIndent indent)"}, {"node_id": 68, "universal_type": "function", "name": "unknown", "text_snippet": "RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n "}, {"node_id": 90, "universal_type": "function", "name": "unknown", "text_snippet": "RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n "}, {"node_id": 112, "universal_type": "function", "name": "&YInversion", "text_snippet": "ParseTFW( double adfCoeff[6], bool &YInversion )"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "FindFileInfo()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"vtkPolyDataAlgorithm.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// .NAME vtkGeoReferencedImageReader \n// By: <NAME>\n// Uses libtiff and geotiff libraries from http://trac.osgeo.org/geotiff/\n// Reads standard .tiff, .jpg and .png files.\n// Also reads GeoTIFF (with both embedded info and external text files).\n// Supports .tfw files for any .tiff, .jpg or .png\n\n#ifndef __vtkGeoReferencedImageReader_h\n#define __vtkGeoReferencedImageReader_h\n\n#include \"vtkPolyDataAlgorithm.h\"\n\nclass VTK_EXPORT vtkGeoReferencedImageReader : public vtkPolyDataAlgorithm\n{\npublic:\n static vtkGeoReferencedImageReader* New();\n vtkTypeRevisionMacro(vtkGeoReferencedImageReader,vtkPolyDataAlgorithm);\n void PrintSelf(ostream& os, vtkIndent indent);\n\n\tvtkSetStringMacro(FileName); // SetFileName();\n\tvtkGetStringMacro(FileName); //GetFileName()\n\n\tvtkSetMacro(NorthernHemisphere, int);\n\tvtkGetMacro(NorthernHemisphere, int);\n\nprotected:\n vtkGeoReferencedImageReader();\n ~vtkGeoReferencedImageReader();\n\n\tint RequestInformation(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n int RequestData(vtkInformation* request,\n vtkInformationVector** inputVector,\n vtkInformationVector* outputVector);\n\n\tvoid ParseTFW( double adfCoeff[6], bool &YInversion );\n\n\tvoid FindFileInfo();\n\n\tbool Flip;\n\nprivate:\n\tvtkStdString FileExt;\n vtkStdString FileShortName;\n vtkStdString FilePath;\n\n\tint NorthernHemisphere;\n\n\tbool TFWFound;\n\n\tchar* FileName; //name of file (full path), useful for obtaining object names\n\n\tvtkGeoReferencedImageReader(const vtkGeoReferencedImageReader&); // Not implemented.\n void operator=(const vtkGeoReferencedImageReader&); // Not implemented.\n\n};\n\n#endif\n"}
80,371
c
/* -*- c-basic-offset: 3 -*- * * ENSICAEN * 6 <NAME> * F-14050 Caen Cedex * * This file is owned by ENSICAEN students. * No portion of this document may be reproduced, copied * or revised without written permission of the authors. */ /** * @author Luigi * @version 0.0.1 / 7-10-2017 */ /** * @file Structure.h * Contains all structure need for the maze game */ #ifndef __STRUCTURE_H #define __STRUCTURE_H /** * Define the structure of the board */ typedef struct Board { int** matrix; int rows; int cols; char* name; }Board; /** * Define the structure of score */ typedef struct Score { char* playerName; int score; }Score; #endif
15.35
43
(translation_unit) "/* -*- c-basic-offset: 3 -*- \n * \n * ENSICAEN \n * 6 <NAME> \n * F-14050 Caen Cedex \n * \n * This file is owned by ENSICAEN students. \n * No portion of this document may be reproduced, copied \n * or revised without written permission of the authors. \n */ \n \n/** \n * @author Luigi \n * @version 0.0.1 / 7-10-2017 \n */ \n \n/** \n * @file Structure.h \n * Contains all structure need for the maze game \n */ \n \n#ifndef __STRUCTURE_H \n#define __STRUCTURE_H \n \n/** \n * Define the structure of the board \n*/ \ntypedef struct Board { \n int** matrix; \n int rows; \n int cols; \n char* name; \n}Board; \n \n/** \n * Define the structure of score \n*/ \ntypedef struct Score { \n char* playerName; \n int score; \n}Score; \n \n#endif \n" (comment) "/* -*- c-basic-offset: 3 -*- \n * \n * ENSICAEN \n * 6 <NAME> \n * F-14050 Caen Cedex \n * \n * This file is owned by ENSICAEN students. \n * No portion of this document may be reproduced, copied \n * or revised without written permission of the authors. \n */" (comment) "/** \n * @author Luigi \n * @version 0.0.1 / 7-10-2017 \n */" (comment) "/** \n * @file Structure.h \n * Contains all structure need for the maze game \n */" (preproc_ifdef) "#ifndef __STRUCTURE_H \n#define __STRUCTURE_H \n \n/** \n * Define the structure of the board \n*/ \ntypedef struct Board { \n int** matrix; \n int rows; \n int cols; \n char* name; \n}Board; \n \n/** \n * Define the structure of score \n*/ \ntypedef struct Score { \n char* playerName; \n int score; \n}Score; \n \n#endif" (#ifndef) "#ifndef" (identifier) "__STRUCTURE_H" (preproc_def) "#define __STRUCTURE_H \n" (#define) "#define" (identifier) "__STRUCTURE_H" (comment) "/** \n * Define the structure of the board \n*/" (type_definition) "typedef struct Board { \n int** matrix; \n int rows; \n int cols; \n char* name; \n}Board;" (typedef) "typedef" (struct_specifier) "struct Board { \n int** matrix; \n int rows; \n int cols; \n char* name; \n}" (struct) "struct" (type_identifier) "Board" (field_declaration_list) "{ \n int** matrix; \n int rows; \n int cols; \n char* name; \n}" ({) "{" (field_declaration) "int** matrix;" (primitive_type) "int" (pointer_declarator) "** matrix" (*) "*" (pointer_declarator) "* matrix" (*) "*" (field_identifier) "matrix" (;) ";" (field_declaration) "int rows;" (primitive_type) "int" (field_identifier) "rows" (;) ";" (field_declaration) "int cols;" (primitive_type) "int" (field_identifier) "cols" (;) ";" (field_declaration) "char* name;" (primitive_type) "char" (pointer_declarator) "* name" (*) "*" (field_identifier) "name" (;) ";" (}) "}" (type_identifier) "Board" (;) ";" (comment) "/** \n * Define the structure of score \n*/" (type_definition) "typedef struct Score { \n char* playerName; \n int score; \n}Score;" (typedef) "typedef" (struct_specifier) "struct Score { \n char* playerName; \n int score; \n}" (struct) "struct" (type_identifier) "Score" (field_declaration_list) "{ \n char* playerName; \n int score; \n}" ({) "{" (field_declaration) "char* playerName;" (primitive_type) "char" (pointer_declarator) "* playerName" (*) "*" (field_identifier) "playerName" (;) ";" (field_declaration) "int score;" (primitive_type) "int" (field_identifier) "score" (;) ";" (}) "}" (type_identifier) "Score" (;) ";" (#endif) "#endif"
65
0
{"language": "c", "success": true, "metadata": {"lines": 43, "avg_line_length": 15.35, "nodes": 45, "errors": 0, "source_hash": "309ed33e3e586017d4603f1aeca98ff84b6abf178e9b4d206a26e4b8118ffa4d", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __STRUCTURE_H\r\n#define __STRUCTURE_H\r\n\r\n/**\r\n * Define the structure of the board\r\n*/\r\ntypedef struct Board {\r\n\tint** matrix;\r\n\tint rows;\r\n\tint cols;\r\n\tchar* name;\r\n}Board;\r\n\r\n/**\r\n * Define the structure of score\r\n*/\r\ntypedef struct Score {\r\n\tchar* playerName;\r\n\tint score;\r\n}Score;\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 30, 44], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 42, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 2, "type": "identifier", "text": "__STRUCTURE_H", "parent": 0, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 21}}, {"id": 3, "type": "preproc_def", "text": "#define __STRUCTURE_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 5, "type": "identifier", "text": "__STRUCTURE_H", "parent": 3, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 21}}, {"id": 6, "type": "type_definition", "text": "typedef struct Board {\r\n\tint** matrix;\r\n\tint rows;\r\n\tint cols;\r\n\tchar* name;\r\n}Board;", "parent": 0, "children": [7, 8, 29], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 7, "type": "typedef", "text": "typedef", "parent": 6, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 7}}, {"id": 8, "type": "struct_specifier", "text": "struct Board {\r\n\tint** matrix;\r\n\tint rows;\r\n\tint cols;\r\n\tchar* name;\r\n}", "parent": 6, "children": [9, 10], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 32, "column": 1}}, {"id": 9, "type": "struct", "text": "struct", "parent": 8, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 14}}, {"id": 10, "type": "type_identifier", "text": "Board", "parent": 8, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 20}}, {"id": 11, "type": "field_declaration", "text": "int** matrix;", "parent": 8, "children": [12, 13], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 14}}, {"id": 12, "type": "primitive_type", "text": "int", "parent": 11, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 4}}, {"id": 13, "type": "pointer_declarator", "text": "** matrix", "parent": 11, "children": [14, 15], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 13}}, {"id": 14, "type": "*", "text": "*", "parent": 13, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 5}}, {"id": 15, "type": "pointer_declarator", "text": "* matrix", "parent": 13, "children": [16, 17], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 13}}, {"id": 16, "type": "*", "text": "*", "parent": 15, "children": [], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 6}}, {"id": 17, "type": "field_identifier", "text": "matrix", "parent": 15, "children": [], "start_point": {"row": 28, "column": 7}, "end_point": {"row": 28, "column": 13}}, {"id": 18, "type": "field_declaration", "text": "int rows;", "parent": 8, "children": [19, 20], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 10}}, {"id": 19, "type": "primitive_type", "text": "int", "parent": 18, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 4}}, {"id": 20, "type": "field_identifier", "text": "rows", "parent": 18, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 9}}, {"id": 21, "type": "field_declaration", "text": "int cols;", "parent": 8, "children": [22, 23], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 10}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 4}}, {"id": 23, "type": "field_identifier", "text": "cols", "parent": 21, "children": [], "start_point": {"row": 30, "column": 5}, "end_point": {"row": 30, "column": 9}}, {"id": 24, "type": "field_declaration", "text": "char* name;", "parent": 8, "children": [25, 26], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 12}}, {"id": 25, "type": "primitive_type", "text": "char", "parent": 24, "children": [], "start_point": {"row": 31, "column": 1}, "end_point": {"row": 31, "column": 5}}, {"id": 26, "type": "pointer_declarator", "text": "* name", "parent": 24, "children": [27, 28], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 11}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 6}}, {"id": 28, "type": "field_identifier", "text": "name", "parent": 26, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 11}}, {"id": 29, "type": "type_identifier", "text": "Board", "parent": 6, "children": [], "start_point": {"row": 32, "column": 1}, "end_point": {"row": 32, "column": 6}}, {"id": 30, "type": "type_definition", "text": "typedef struct Score {\r\n\tchar* playerName;\r\n\tint score;\r\n}Score;", "parent": 0, "children": [31, 32, 43], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 31, "type": "typedef", "text": "typedef", "parent": 30, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 32, "type": "struct_specifier", "text": "struct Score {\r\n\tchar* playerName;\r\n\tint score;\r\n}", "parent": 30, "children": [33, 34], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 40, "column": 1}}, {"id": 33, "type": "struct", "text": "struct", "parent": 32, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 14}}, {"id": 34, "type": "type_identifier", "text": "Score", "parent": 32, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 20}}, {"id": 35, "type": "field_declaration", "text": "char* playerName;", "parent": 32, "children": [36, 37], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 18}}, {"id": 36, "type": "primitive_type", "text": "char", "parent": 35, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 5}}, {"id": 37, "type": "pointer_declarator", "text": "* playerName", "parent": 35, "children": [38, 39], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 17}}, {"id": 38, "type": "*", "text": "*", "parent": 37, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 6}}, {"id": 39, "type": "field_identifier", "text": "playerName", "parent": 37, "children": [], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 17}}, {"id": 40, "type": "field_declaration", "text": "int score;", "parent": 32, "children": [41, 42], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 11}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 4}}, {"id": 42, "type": "field_identifier", "text": "score", "parent": 40, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 10}}, {"id": 43, "type": "type_identifier", "text": "Score", "parent": 30, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 6}}, {"id": 44, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [6, 11, 18, 21, 24, 30, 35, 40], "classes": [8, 9, 32, 33], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 17, 20, 23, 28, 29, 34, 39, 42, 43, 44], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [{"node_id": 8, "universal_type": "class", "name": "Board", "text_snippet": "struct Board {\r\n\tint** matrix;\r\n\tint rows;\r\n\tint cols;\r\n\tchar* name;\r\n}"}, {"node_id": 9, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 32, "universal_type": "class", "name": "Score", "text_snippet": "struct Score {\r\n\tchar* playerName;\r\n\tint score;\r\n}"}, {"node_id": 33, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": []}, "original_source_code": "/* -*- c-basic-offset: 3 -*-\r\n *\r\n * ENSICAEN\r\n * 6 <NAME>\r\n * F-14050 Caen Cedex\r\n *\r\n * This file is owned by ENSICAEN students.\r\n * No portion of this document may be reproduced, copied\r\n * or revised without written permission of the authors.\r\n */\r\n\r\n/**\r\n * @author Luigi \r\n * @version 0.0.1 / 7-10-2017\r\n */\r\n\r\n/**\r\n * @file Structure.h\r\n * Contains all structure need for the maze game\r\n */\r\n\r\n#ifndef __STRUCTURE_H\r\n#define __STRUCTURE_H\r\n\r\n/**\r\n * Define the structure of the board\r\n*/\r\ntypedef struct Board {\r\n\tint** matrix;\r\n\tint rows;\r\n\tint cols;\r\n\tchar* name;\r\n}Board;\r\n\r\n/**\r\n * Define the structure of score\r\n*/\r\ntypedef struct Score {\r\n\tchar* playerName;\r\n\tint score;\r\n}Score;\r\n\r\n#endif\r\n"}
80,372
c
#include "GraphicRenderer.h" #include "../Cameras/PerspectiveCamera.h" namespace Z_Engine::Rendering::Renderers { class GraphicRenderer3D : public GraphicRenderer { public: void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) { GraphicRenderer::BeginScene(camera); } void EndScene() override { /*GraphicRenderer::EndScene();*/ } }; }
23.2
15
(translation_unit) "#include "GraphicRenderer.h"\n#include "../Cameras/PerspectiveCamera.h"\n\n\nnamespace Z_Engine::Rendering::Renderers {\n\n class GraphicRenderer3D : public GraphicRenderer {\n public:\n\n void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n GraphicRenderer::BeginScene(camera);\n }\n\n\n void EndScene() override {\n /*GraphicRenderer::EndScene();*/\n }\n };\n}\n" (preproc_include) "#include "GraphicRenderer.h"\n" (#include) "#include" (string_literal) ""GraphicRenderer.h"" (") """ (string_content) "GraphicRenderer.h" (") """ (preproc_include) "#include "../Cameras/PerspectiveCamera.h"\n" (#include) "#include" (string_literal) ""../Cameras/PerspectiveCamera.h"" (") """ (string_content) "../Cameras/PerspectiveCamera.h" (") """ (function_definition) "namespace Z_Engine::Rendering::Renderers {\n\n class GraphicRenderer3D : public GraphicRenderer {\n public:\n\n void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n GraphicRenderer::BeginScene(camera);\n }\n\n\n void EndScene() override {\n /*GraphicRenderer::EndScene();*/\n }\n };\n}" (type_identifier) "namespace" (ERROR) "Z_Engine::Rendering::" (identifier) "Z_Engine" (:) ":" (:) ":" (identifier) "Rendering" (:) ":" (:) ":" (identifier) "Renderers" (compound_statement) "{\n\n class GraphicRenderer3D : public GraphicRenderer {\n public:\n\n void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n GraphicRenderer::BeginScene(camera);\n }\n\n\n void EndScene() override {\n /*GraphicRenderer::EndScene();*/\n }\n };\n}" ({) "{" (function_definition) "class GraphicRenderer3D : public GraphicRenderer {\n public:\n\n void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n GraphicRenderer::BeginScene(camera);\n }\n\n\n void EndScene() override {\n /*GraphicRenderer::EndScene();*/\n }\n }" (type_identifier) "class" (identifier) "GraphicRenderer3D" (ERROR) ": public GraphicRenderer" (:) ":" (identifier) "public" (identifier) "GraphicRenderer" (compound_statement) "{\n public:\n\n void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n GraphicRenderer::BeginScene(camera);\n }\n\n\n void EndScene() override {\n /*GraphicRenderer::EndScene();*/\n }\n }" ({) "{" (labeled_statement) "public:\n\n void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n GraphicRenderer::BeginScene(camera);\n }" (statement_identifier) "public" (:) ":" (ERROR) "void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera)" (primitive_type) "void" (function_declarator) "BeginScene(const Ref<Cameras::PerspectiveCamera>& camera)" (identifier) "BeginScene" (parameter_list) "(const Ref<Cameras::PerspectiveCamera>& camera)" (() "(" (parameter_declaration) "const Ref<Cameras::PerspectiveCamera>& camera" (type_qualifier) "const" (const) "const" (type_identifier) "Ref" (ERROR) "<Cameras::PerspectiveCamera>&" (<) "<" (identifier) "Cameras" (:) ":" (:) ":" (identifier) "PerspectiveCamera" (>) ">" (&) "&" (identifier) "camera" ()) ")" (compound_statement) "{\n GraphicRenderer::BeginScene(camera);\n }" ({) "{" (labeled_statement) "GraphicRenderer::BeginScene(camera);" (statement_identifier) "GraphicRenderer" (:) ":" (ERROR) ":" (:) ":" (expression_statement) "BeginScene(camera);" (call_expression) "BeginScene(camera)" (identifier) "BeginScene" (argument_list) "(camera)" (() "(" (identifier) "camera" ()) ")" (;) ";" (}) "}" (function_definition) "void EndScene() override {\n /*GraphicRenderer::EndScene();*/\n }" (primitive_type) "void" (function_declarator) "EndScene() override" (identifier) "EndScene" (parameter_list) "()" (() "(" ()) ")" (identifier) "override" (compound_statement) "{\n /*GraphicRenderer::EndScene();*/\n }" ({) "{" (comment) "/*GraphicRenderer::EndScene();*/" (}) "}" (}) "}" (expression_statement) ";" (;) ";" (}) "}"
89
5
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 23.2, "nodes": 42, "errors": 0, "source_hash": "b785ed78c1b44c2d71a648c58e92935d6519071e28f599c7218b65f7d38f75cb", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"GraphicRenderer.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": "\"GraphicRenderer.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 28}}, {"id": 3, "type": "preproc_include", "text": "#include \"../Cameras/PerspectiveCamera.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": "\"../Cameras/PerspectiveCamera.h\"", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 41}}, {"id": 6, "type": "function_definition", "text": "namespace Z_Engine::Rendering::Renderers {\n\n\tclass GraphicRenderer3D : public GraphicRenderer {\n\tpublic:\n\n\t\tvoid BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n\t\t\tGraphicRenderer::BeginScene(camera);\n\t\t}\n\n\n\t\tvoid EndScene() override {\n\t\t\t/*GraphicRenderer::EndScene();*/\n\t\t}\n\t};\n}", "parent": null, "children": [7, 8, 11], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 18, "column": 1}}, {"id": 7, "type": "type_identifier", "text": "namespace", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 9}}, {"id": 8, "type": "ERROR", "text": "Z_Engine::Rendering::", "parent": 6, "children": [9, 10], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 31}}, {"id": 9, "type": "identifier", "text": "Z_Engine", "parent": 8, "children": [], "start_point": {"row": 4, "column": 10}, "end_point": {"row": 4, "column": 18}}, {"id": 10, "type": "identifier", "text": "Rendering", "parent": 8, "children": [], "start_point": {"row": 4, "column": 20}, "end_point": {"row": 4, "column": 29}}, {"id": 11, "type": "identifier", "text": "Renderers", "parent": 6, "children": [], "start_point": {"row": 4, "column": 31}, "end_point": {"row": 4, "column": 40}}, {"id": 12, "type": "function_definition", "text": "class GraphicRenderer3D : public GraphicRenderer {\n\tpublic:\n\n\t\tvoid BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n\t\t\tGraphicRenderer::BeginScene(camera);\n\t\t}\n\n\n\t\tvoid EndScene() override {\n\t\t\t/*GraphicRenderer::EndScene();*/\n\t\t}\n\t}", "parent": 6, "children": [13, 14], "start_point": {"row": 6, "column": 1}, "end_point": {"row": 17, "column": 2}}, {"id": 13, "type": "identifier", "text": "GraphicRenderer3D", "parent": 12, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 24}}, {"id": 14, "type": "ERROR", "text": ": public GraphicRenderer", "parent": 12, "children": [15], "start_point": {"row": 6, "column": 25}, "end_point": {"row": 6, "column": 49}}, {"id": 15, "type": "identifier", "text": "GraphicRenderer", "parent": 14, "children": [], "start_point": {"row": 6, "column": 34}, "end_point": {"row": 6, "column": 49}}, {"id": 16, "type": "labeled_statement", "text": "public:\n\n\t\tvoid BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n\t\t\tGraphicRenderer::BeginScene(camera);\n\t\t}", "parent": 12, "children": [17], "start_point": {"row": 7, "column": 1}, "end_point": {"row": 11, "column": 3}}, {"id": 17, "type": "ERROR", "text": "void BeginScene(const Ref<Cameras::PerspectiveCamera>& camera)", "parent": 16, "children": [18, 19], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 64}}, {"id": 18, "type": "primitive_type", "text": "void", "parent": 17, "children": [], "start_point": {"row": 9, "column": 2}, "end_point": {"row": 9, "column": 6}}, {"id": 19, "type": "function_declarator", "text": "BeginScene(const Ref<Cameras::PerspectiveCamera>& camera)", "parent": 17, "children": [20, 21], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 64}}, {"id": 20, "type": "identifier", "text": "BeginScene", "parent": 19, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 17}}, {"id": 21, "type": "parameter_list", "text": "(const Ref<Cameras::PerspectiveCamera>& camera)", "parent": 19, "children": [22], "start_point": {"row": 9, "column": 17}, "end_point": {"row": 9, "column": 64}}, {"id": 22, "type": "parameter_declaration", "text": "const Ref<Cameras::PerspectiveCamera>& camera", "parent": 21, "children": [23, 24, 29], "start_point": {"row": 9, "column": 18}, "end_point": {"row": 9, "column": 63}}, {"id": 23, "type": "type_identifier", "text": "Ref", "parent": 22, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 27}}, {"id": 24, "type": "ERROR", "text": "<Cameras::PerspectiveCamera>&", "parent": 22, "children": [25, 26, 27, 28], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 56}}, {"id": 25, "type": "<", "text": "<", "parent": 24, "children": [], "start_point": {"row": 9, "column": 27}, "end_point": {"row": 9, "column": 28}}, {"id": 26, "type": "identifier", "text": "Cameras", "parent": 24, "children": [], "start_point": {"row": 9, "column": 28}, "end_point": {"row": 9, "column": 35}}, {"id": 27, "type": "identifier", "text": "PerspectiveCamera", "parent": 24, "children": [], "start_point": {"row": 9, "column": 37}, "end_point": {"row": 9, "column": 54}}, {"id": 28, "type": ">", "text": ">", "parent": 24, "children": [], "start_point": {"row": 9, "column": 54}, "end_point": {"row": 9, "column": 55}}, {"id": 29, "type": "identifier", "text": "camera", "parent": 22, "children": [], "start_point": {"row": 9, "column": 57}, "end_point": {"row": 9, "column": 63}}, {"id": 30, "type": "labeled_statement", "text": "GraphicRenderer::BeginScene(camera);", "parent": 16, "children": [31], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 39}}, {"id": 31, "type": "statement_identifier", "text": "GraphicRenderer", "parent": 30, "children": [], "start_point": {"row": 10, "column": 3}, "end_point": {"row": 10, "column": 18}}, {"id": 32, "type": "call_expression", "text": "BeginScene(camera)", "parent": 30, "children": [33, 34], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 38}}, {"id": 33, "type": "identifier", "text": "BeginScene", "parent": 32, "children": [], "start_point": {"row": 10, "column": 20}, "end_point": {"row": 10, "column": 30}}, {"id": 34, "type": "argument_list", "text": "(camera)", "parent": 32, "children": [35], "start_point": {"row": 10, "column": 30}, "end_point": {"row": 10, "column": 38}}, {"id": 35, "type": "identifier", "text": "camera", "parent": 34, "children": [], "start_point": {"row": 10, "column": 31}, "end_point": {"row": 10, "column": 37}}, {"id": 36, "type": "function_definition", "text": "void EndScene() override {\n\t\t\t/*GraphicRenderer::EndScene();*/\n\t\t}", "parent": 12, "children": [37, 38], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 16, "column": 3}}, {"id": 37, "type": "primitive_type", "text": "void", "parent": 36, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 6}}, {"id": 38, "type": "function_declarator", "text": "EndScene() override", "parent": 36, "children": [39, 40, 41], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 26}}, {"id": 39, "type": "identifier", "text": "EndScene", "parent": 38, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 15}}, {"id": 40, "type": "parameter_list", "text": "()", "parent": 38, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 17}}, {"id": 41, "type": "identifier", "text": "override", "parent": 38, "children": [], "start_point": {"row": 14, "column": 18}, "end_point": {"row": 14, "column": 26}}]}, "node_categories": {"declarations": {"functions": [6, 12, 19, 36, 38], "variables": [22], "classes": [], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [32], "assignments": [], "loops": [], "conditionals": [7, 9, 10, 11, 13, 15, 20, 23, 26, 27, 29, 31, 33, 35, 39, 41], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "GraphicRenderer3D", "text_snippet": "namespace Z_Engine::Rendering::Renderers {\n\n\tclass GraphicRenderer3D : public GraphicRenderer {\n\tpub"}, {"node_id": 12, "universal_type": "function", "name": "GraphicRenderer3D", "text_snippet": "class GraphicRenderer3D : public GraphicRenderer {\n\tpublic:\n\n\t\tvoid BeginScene(const Ref<Cameras::Pe"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "BeginScene(const Ref<Cameras::PerspectiveCamera>& camera)"}, {"node_id": 36, "universal_type": "function", "name": "EndScene", "text_snippet": "void EndScene() override {\n\t\t\t/*GraphicRenderer::EndScene();*/\n\t\t}"}, {"node_id": 38, "universal_type": "function", "name": "unknown", "text_snippet": "EndScene() override"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include \"GraphicRenderer.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"../Cameras/PerspectiveCamera.h\"\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include \"GraphicRenderer.h\"\n#include \"../Cameras/PerspectiveCamera.h\"\n\n\nnamespace Z_Engine::Rendering::Renderers {\n\n\tclass GraphicRenderer3D : public GraphicRenderer {\n\tpublic:\n\n\t\tvoid BeginScene(const Ref<Cameras::PerspectiveCamera>& camera) {\n\t\t\tGraphicRenderer::BeginScene(camera);\n\t\t}\n\n\n\t\tvoid EndScene() override {\n\t\t\t/*GraphicRenderer::EndScene();*/\n\t\t}\n\t};\n}\n"}
80,373
c
#include "pwalign.h" #include <numpy/arrayobject.h> // Docstrings static char module_docstring[] = "C module for pairwise alignment"; static char pwalign_docstring[] = "\ Performs global optimal pairwise alignment of two sequences using Gotoh's \ algorithm"; // pwalign python method declaration static PyObject *pwalign_pwalign(PyObject *self, PyObject *args); // Helper function declarations static bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj, PyObject *matrixObj, PyArrayObject **seqANpPtr, PyArrayObject **seqBNpPtr, PyArrayObject **matrixNpPtr); // Module methods static PyMethodDef module_methods[] = { {"pwalign", pwalign_pwalign, METH_VARARGS, pwalign_docstring}, {NULL, NULL, 0, NULL} }; // Module initialization PyMODINIT_FUNC init_pwalign(void) { PyObject *m = Py_InitModule3("_pwalign", module_methods, module_docstring); if(m == NULL) return; // Load numpy functionality import_array(); } // pwalign python method definition static PyObject *pwalign_pwalign(PyObject *self, PyObject *args) { PyObject *seqAObj, *seqBObj, *matrixObj; PyArrayObject *seqANp, *seqBNp, *matrixNp; float gap_open, gap_extend; npy_ubyte *seqA, *seqB; npy_intp lenA, lenB; struct PairwiseScoringMethod sm; npy_intp tbLen; npy_float alignScore; PyArrayObject *gapArray; // Parse input tuple if(!PyArg_ParseTuple(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend)) return NULL; // Interpret input objects as Numpy arrays if(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp)) return NULL; // Get sequence arrays and length seqA = (npy_ubyte*)PyArray_DATA(seqANp); seqB = (npy_ubyte*)PyArray_DATA(seqBNp); lenA = PyArray_DIM(seqANp, 0); lenB = PyArray_DIM(seqBNp, 0); // Create scoring method sm.matrix = (npy_float*)PyArray_DATA(matrixNp); sm.o = gap_open; sm.e = gap_extend; // Run the alignment algorithm and get a traceback array seq_edit traceback[lenA + lenB]; tbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore); // Check if alignment successful, if so create gap array if(tbLen != -1) { npy_intp gapDims[2] = {2, tbLen}; gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE); } else { gapArray = NULL; } // Only proceed to fill it if there haven't been any erros so far // (not actually sure, but I think PyArray_SimpleNew() can return NULL // on failure, so try to catch that) if(gapArray != NULL) { // Get pointer to array data and increment reference count npy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray); Py_INCREF(gapArray); // Fill in gap array tracebackToGaps(traceback, tbLen, gapData); } // Decrement reference counts on Python objects that were created in this // function (regardless of whether creating the gap array succeeded or not) Py_DECREF(seqANp); Py_DECREF(seqBNp); Py_DECREF(matrixNp); // Build and return output tuple if(gapArray != NULL) { float alignScoreFloat = (float)alignScore; PyObject *ret = Py_BuildValue("Of", gapArray, alignScoreFloat); return ret; } else { return NULL; } } static bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj, PyObject *matrixObj, PyArrayObject **seqANpPtr, PyArrayObject **seqBNpPtr, PyArrayObject **matrixNpPtr) { bool arrayError; // Get as array objects PyArrayObject *seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj, NPY_UBYTE, NPY_ARRAY_IN_ARRAY); PyArrayObject *seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj, NPY_UBYTE, NPY_ARRAY_IN_ARRAY); PyArrayObject *matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj, NPY_FLOAT, NPY_ARRAY_IN_ARRAY); // Check error conditions arrayError = false; if(seqANp == NULL || seqBNp == NULL || matrixNp == NULL) { arrayError = true; } else if(PyArray_NDIM(seqANp) != 1) { PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1"); arrayError = true; } else if(PyArray_NDIM(seqBNp) != 1) { PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2"); arrayError = true; } else if(PyArray_NDIM(matrixNp) != 2) { PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix"); arrayError = true; } else { npy_intp *matrixShape = PyArray_DIMS(matrixNp); if(matrixShape[0] != 256 || matrixShape[1] != 256) { PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - " "should be (256, 256)"); arrayError = true; } } // Clean up and return if error if(arrayError) { Py_XDECREF(seqANp); Py_XDECREF(seqBNp); Py_XDECREF(matrixNp); return false; } else { *seqANpPtr = seqANp; *seqBNpPtr = seqBNp; *matrixNpPtr = matrixNp; return true; } }
28.8
162
(translation_unit) "#include "pwalign.h"\n\n#include <numpy/arrayobject.h>\n\n\n// Docstrings\nstatic char module_docstring[] = "C module for pairwise alignment";\nstatic char pwalign_docstring[] = "\\nPerforms global optimal pairwise alignment of two sequences using Gotoh's \\nalgorithm";\n\n\n// pwalign python method declaration\nstatic PyObject *pwalign_pwalign(PyObject *self, PyObject *args);\n\n\n// Helper function declarations\nstatic bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr);\n\n\n// Module methods\nstatic PyMethodDef module_methods[] = {\n {"pwalign", pwalign_pwalign, METH_VARARGS, pwalign_docstring},\n {NULL, NULL, 0, NULL}\n};\n\n\n// Module initialization\nPyMODINIT_FUNC init_pwalign(void)\n{\n PyObject *m = Py_InitModule3("_pwalign", module_methods, module_docstring);\n if(m == NULL)\n return;\n\n // Load numpy functionality\n import_array();\n}\n\n\n// pwalign python method definition\nstatic PyObject *pwalign_pwalign(PyObject *self, PyObject *args)\n{\n PyObject *seqAObj, *seqBObj, *matrixObj;\n PyArrayObject *seqANp, *seqBNp, *matrixNp;\n float gap_open, gap_extend;\n npy_ubyte *seqA, *seqB;\n npy_intp lenA, lenB;\n struct PairwiseScoringMethod sm;\n npy_intp tbLen;\n npy_float alignScore;\n PyArrayObject *gapArray;\n\n // Parse input tuple\n if(!PyArg_ParseTuple(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))\n return NULL;\n\n // Interpret input objects as Numpy arrays\n if(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))\n return NULL;\n\n // Get sequence arrays and length\n seqA = (npy_ubyte*)PyArray_DATA(seqANp);\n seqB = (npy_ubyte*)PyArray_DATA(seqBNp);\n lenA = PyArray_DIM(seqANp, 0);\n lenB = PyArray_DIM(seqBNp, 0);\n\n // Create scoring method\n sm.matrix = (npy_float*)PyArray_DATA(matrixNp);\n sm.o = gap_open;\n sm.e = gap_extend;\n\n // Run the alignment algorithm and get a traceback array\n seq_edit traceback[lenA + lenB];\n tbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore);\n\n // Check if alignment successful, if so create gap array\n if(tbLen != -1)\n {\n npy_intp gapDims[2] = {2, tbLen};\n gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);\n }\n else\n {\n gapArray = NULL;\n }\n\n // Only proceed to fill it if there haven't been any erros so far\n // (not actually sure, but I think PyArray_SimpleNew() can return NULL\n // on failure, so try to catch that)\n if(gapArray != NULL)\n {\n // Get pointer to array data and increment reference count\n npy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);\n Py_INCREF(gapArray);\n\n // Fill in gap array\n tracebackToGaps(traceback, tbLen, gapData);\n }\n\n // Decrement reference counts on Python objects that were created in this\n // function (regardless of whether creating the gap array succeeded or not)\n Py_DECREF(seqANp);\n Py_DECREF(seqBNp);\n Py_DECREF(matrixNp);\n\n // Build and return output tuple\n if(gapArray != NULL)\n {\n float alignScoreFloat = (float)alignScore;\n PyObject *ret = Py_BuildValue("Of", gapArray, alignScoreFloat);\n return ret;\n }\n else\n {\n return NULL;\n }\n}\n\nstatic bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)\n{\n bool arrayError;\n\n // Get as array objects\n PyArrayObject *seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n PyArrayObject *seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n PyArrayObject *matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n NPY_FLOAT, NPY_ARRAY_IN_ARRAY);\n\n // Check error conditions\n arrayError = false;\n if(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)\n {\n arrayError = true;\n }\n else if(PyArray_NDIM(seqANp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1");\n arrayError = true;\n }\n else if(PyArray_NDIM(seqBNp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }\n else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }\n \n // Clean up and return if error\n if(arrayError)\n {\n Py_XDECREF(seqANp);\n Py_XDECREF(seqBNp);\n Py_XDECREF(matrixNp);\n return false;\n }\n else\n {\n *seqANpPtr = seqANp;\n *seqBNpPtr = seqBNp;\n *matrixNpPtr = matrixNp;\n return true;\n }\n}\n" (preproc_include) "#include "pwalign.h"\n" (#include) "#include" (string_literal) ""pwalign.h"" (") """ (string_content) "pwalign.h" (") """ (preproc_include) "#include <numpy/arrayobject.h>\n" (#include) "#include" (system_lib_string) "<numpy/arrayobject.h>" (comment) "// Docstrings" (declaration) "static char module_docstring[] = "C module for pairwise alignment";" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "module_docstring[] = "C module for pairwise alignment"" (array_declarator) "module_docstring[]" (identifier) "module_docstring" ([) "[" (]) "]" (=) "=" (string_literal) ""C module for pairwise alignment"" (") """ (string_content) "C module for pairwise alignment" (") """ (;) ";" (declaration) "static char pwalign_docstring[] = "\\nPerforms global optimal pairwise alignment of two sequences using Gotoh's \\nalgorithm";" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "pwalign_docstring[] = "\\nPerforms global optimal pairwise alignment of two sequences using Gotoh's \\nalgorithm"" (array_declarator) "pwalign_docstring[]" (identifier) "pwalign_docstring" ([) "[" (]) "]" (=) "=" (string_literal) ""\\nPerforms global optimal pairwise alignment of two sequences using Gotoh's \\nalgorithm"" (") """ (escape_sequence) "\\n" (string_content) "Performs global optimal pairwise alignment of two sequences using Gotoh's " (escape_sequence) "\\n" (string_content) "algorithm" (") """ (;) ";" (comment) "// pwalign python method declaration" (declaration) "static PyObject *pwalign_pwalign(PyObject *self, PyObject *args);" (storage_class_specifier) "static" (static) "static" (type_identifier) "PyObject" (pointer_declarator) "*pwalign_pwalign(PyObject *self, PyObject *args)" (*) "*" (function_declarator) "pwalign_pwalign(PyObject *self, PyObject *args)" (identifier) "pwalign_pwalign" (parameter_list) "(PyObject *self, PyObject *args)" (() "(" (parameter_declaration) "PyObject *self" (type_identifier) "PyObject" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "PyObject *args" (type_identifier) "PyObject" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (;) ";" (comment) "// Helper function declarations" (declaration) "static bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr);" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)" (identifier) "pwalignGetArgArrays" (parameter_list) "(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)" (() "(" (parameter_declaration) "PyObject *seqAObj" (type_identifier) "PyObject" (pointer_declarator) "*seqAObj" (*) "*" (identifier) "seqAObj" (,) "," (parameter_declaration) "PyObject *seqBObj" (type_identifier) "PyObject" (pointer_declarator) "*seqBObj" (*) "*" (identifier) "seqBObj" (,) "," (parameter_declaration) "PyObject *matrixObj" (type_identifier) "PyObject" (pointer_declarator) "*matrixObj" (*) "*" (identifier) "matrixObj" (,) "," (parameter_declaration) "PyArrayObject **seqANpPtr" (type_identifier) "PyArrayObject" (pointer_declarator) "**seqANpPtr" (*) "*" (pointer_declarator) "*seqANpPtr" (*) "*" (identifier) "seqANpPtr" (,) "," (parameter_declaration) "PyArrayObject **seqBNpPtr" (type_identifier) "PyArrayObject" (pointer_declarator) "**seqBNpPtr" (*) "*" (pointer_declarator) "*seqBNpPtr" (*) "*" (identifier) "seqBNpPtr" (,) "," (parameter_declaration) "PyArrayObject **matrixNpPtr" (type_identifier) "PyArrayObject" (pointer_declarator) "**matrixNpPtr" (*) "*" (pointer_declarator) "*matrixNpPtr" (*) "*" (identifier) "matrixNpPtr" ()) ")" (;) ";" (comment) "// Module methods" (declaration) "static PyMethodDef module_methods[] = {\n {"pwalign", pwalign_pwalign, METH_VARARGS, pwalign_docstring},\n {NULL, NULL, 0, NULL}\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "PyMethodDef" (init_declarator) "module_methods[] = {\n {"pwalign", pwalign_pwalign, METH_VARARGS, pwalign_docstring},\n {NULL, NULL, 0, NULL}\n}" (array_declarator) "module_methods[]" (identifier) "module_methods" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n {"pwalign", pwalign_pwalign, METH_VARARGS, pwalign_docstring},\n {NULL, NULL, 0, NULL}\n}" ({) "{" (initializer_list) "{"pwalign", pwalign_pwalign, METH_VARARGS, pwalign_docstring}" ({) "{" (string_literal) ""pwalign"" (") """ (string_content) "pwalign" (") """ (,) "," (identifier) "pwalign_pwalign" (,) "," (identifier) "METH_VARARGS" (,) "," (identifier) "pwalign_docstring" (}) "}" (,) "," (initializer_list) "{NULL, NULL, 0, NULL}" ({) "{" (null) "NULL" (NULL) "NULL" (,) "," (null) "NULL" (NULL) "NULL" (,) "," (number_literal) "0" (,) "," (null) "NULL" (NULL) "NULL" (}) "}" (}) "}" (;) ";" (comment) "// Module initialization" (function_definition) "PyMODINIT_FUNC init_pwalign(void)\n{\n PyObject *m = Py_InitModule3("_pwalign", module_methods, module_docstring);\n if(m == NULL)\n return;\n\n // Load numpy functionality\n import_array();\n}" (type_identifier) "PyMODINIT_FUNC" (function_declarator) "init_pwalign(void)" (identifier) "init_pwalign" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n PyObject *m = Py_InitModule3("_pwalign", module_methods, module_docstring);\n if(m == NULL)\n return;\n\n // Load numpy functionality\n import_array();\n}" ({) "{" (declaration) "PyObject *m = Py_InitModule3("_pwalign", module_methods, module_docstring);" (type_identifier) "PyObject" (init_declarator) "*m = Py_InitModule3("_pwalign", module_methods, module_docstring)" (pointer_declarator) "*m" (*) "*" (identifier) "m" (=) "=" (call_expression) "Py_InitModule3("_pwalign", module_methods, module_docstring)" (identifier) "Py_InitModule3" (argument_list) "("_pwalign", module_methods, module_docstring)" (() "(" (string_literal) ""_pwalign"" (") """ (string_content) "_pwalign" (") """ (,) "," (identifier) "module_methods" (,) "," (identifier) "module_docstring" ()) ")" (;) ";" (if_statement) "if(m == NULL)\n return;" (if) "if" (parenthesized_expression) "(m == NULL)" (() "(" (binary_expression) "m == NULL" (identifier) "m" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (return_statement) "return;" (return) "return" (;) ";" (comment) "// Load numpy functionality" (expression_statement) "import_array();" (call_expression) "import_array()" (identifier) "import_array" (argument_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (comment) "// pwalign python method definition" (function_definition) "static PyObject *pwalign_pwalign(PyObject *self, PyObject *args)\n{\n PyObject *seqAObj, *seqBObj, *matrixObj;\n PyArrayObject *seqANp, *seqBNp, *matrixNp;\n float gap_open, gap_extend;\n npy_ubyte *seqA, *seqB;\n npy_intp lenA, lenB;\n struct PairwiseScoringMethod sm;\n npy_intp tbLen;\n npy_float alignScore;\n PyArrayObject *gapArray;\n\n // Parse input tuple\n if(!PyArg_ParseTuple(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))\n return NULL;\n\n // Interpret input objects as Numpy arrays\n if(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))\n return NULL;\n\n // Get sequence arrays and length\n seqA = (npy_ubyte*)PyArray_DATA(seqANp);\n seqB = (npy_ubyte*)PyArray_DATA(seqBNp);\n lenA = PyArray_DIM(seqANp, 0);\n lenB = PyArray_DIM(seqBNp, 0);\n\n // Create scoring method\n sm.matrix = (npy_float*)PyArray_DATA(matrixNp);\n sm.o = gap_open;\n sm.e = gap_extend;\n\n // Run the alignment algorithm and get a traceback array\n seq_edit traceback[lenA + lenB];\n tbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore);\n\n // Check if alignment successful, if so create gap array\n if(tbLen != -1)\n {\n npy_intp gapDims[2] = {2, tbLen};\n gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);\n }\n else\n {\n gapArray = NULL;\n }\n\n // Only proceed to fill it if there haven't been any erros so far\n // (not actually sure, but I think PyArray_SimpleNew() can return NULL\n // on failure, so try to catch that)\n if(gapArray != NULL)\n {\n // Get pointer to array data and increment reference count\n npy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);\n Py_INCREF(gapArray);\n\n // Fill in gap array\n tracebackToGaps(traceback, tbLen, gapData);\n }\n\n // Decrement reference counts on Python objects that were created in this\n // function (regardless of whether creating the gap array succeeded or not)\n Py_DECREF(seqANp);\n Py_DECREF(seqBNp);\n Py_DECREF(matrixNp);\n\n // Build and return output tuple\n if(gapArray != NULL)\n {\n float alignScoreFloat = (float)alignScore;\n PyObject *ret = Py_BuildValue("Of", gapArray, alignScoreFloat);\n return ret;\n }\n else\n {\n return NULL;\n }\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "PyObject" (pointer_declarator) "*pwalign_pwalign(PyObject *self, PyObject *args)" (*) "*" (function_declarator) "pwalign_pwalign(PyObject *self, PyObject *args)" (identifier) "pwalign_pwalign" (parameter_list) "(PyObject *self, PyObject *args)" (() "(" (parameter_declaration) "PyObject *self" (type_identifier) "PyObject" (pointer_declarator) "*self" (*) "*" (identifier) "self" (,) "," (parameter_declaration) "PyObject *args" (type_identifier) "PyObject" (pointer_declarator) "*args" (*) "*" (identifier) "args" ()) ")" (compound_statement) "{\n PyObject *seqAObj, *seqBObj, *matrixObj;\n PyArrayObject *seqANp, *seqBNp, *matrixNp;\n float gap_open, gap_extend;\n npy_ubyte *seqA, *seqB;\n npy_intp lenA, lenB;\n struct PairwiseScoringMethod sm;\n npy_intp tbLen;\n npy_float alignScore;\n PyArrayObject *gapArray;\n\n // Parse input tuple\n if(!PyArg_ParseTuple(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))\n return NULL;\n\n // Interpret input objects as Numpy arrays\n if(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))\n return NULL;\n\n // Get sequence arrays and length\n seqA = (npy_ubyte*)PyArray_DATA(seqANp);\n seqB = (npy_ubyte*)PyArray_DATA(seqBNp);\n lenA = PyArray_DIM(seqANp, 0);\n lenB = PyArray_DIM(seqBNp, 0);\n\n // Create scoring method\n sm.matrix = (npy_float*)PyArray_DATA(matrixNp);\n sm.o = gap_open;\n sm.e = gap_extend;\n\n // Run the alignment algorithm and get a traceback array\n seq_edit traceback[lenA + lenB];\n tbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore);\n\n // Check if alignment successful, if so create gap array\n if(tbLen != -1)\n {\n npy_intp gapDims[2] = {2, tbLen};\n gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);\n }\n else\n {\n gapArray = NULL;\n }\n\n // Only proceed to fill it if there haven't been any erros so far\n // (not actually sure, but I think PyArray_SimpleNew() can return NULL\n // on failure, so try to catch that)\n if(gapArray != NULL)\n {\n // Get pointer to array data and increment reference count\n npy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);\n Py_INCREF(gapArray);\n\n // Fill in gap array\n tracebackToGaps(traceback, tbLen, gapData);\n }\n\n // Decrement reference counts on Python objects that were created in this\n // function (regardless of whether creating the gap array succeeded or not)\n Py_DECREF(seqANp);\n Py_DECREF(seqBNp);\n Py_DECREF(matrixNp);\n\n // Build and return output tuple\n if(gapArray != NULL)\n {\n float alignScoreFloat = (float)alignScore;\n PyObject *ret = Py_BuildValue("Of", gapArray, alignScoreFloat);\n return ret;\n }\n else\n {\n return NULL;\n }\n}" ({) "{" (declaration) "PyObject *seqAObj, *seqBObj, *matrixObj;" (type_identifier) "PyObject" (pointer_declarator) "*seqAObj" (*) "*" (identifier) "seqAObj" (,) "," (pointer_declarator) "*seqBObj" (*) "*" (identifier) "seqBObj" (,) "," (pointer_declarator) "*matrixObj" (*) "*" (identifier) "matrixObj" (;) ";" (declaration) "PyArrayObject *seqANp, *seqBNp, *matrixNp;" (type_identifier) "PyArrayObject" (pointer_declarator) "*seqANp" (*) "*" (identifier) "seqANp" (,) "," (pointer_declarator) "*seqBNp" (*) "*" (identifier) "seqBNp" (,) "," (pointer_declarator) "*matrixNp" (*) "*" (identifier) "matrixNp" (;) ";" (declaration) "float gap_open, gap_extend;" (primitive_type) "float" (identifier) "gap_open" (,) "," (identifier) "gap_extend" (;) ";" (declaration) "npy_ubyte *seqA, *seqB;" (type_identifier) "npy_ubyte" (pointer_declarator) "*seqA" (*) "*" (identifier) "seqA" (,) "," (pointer_declarator) "*seqB" (*) "*" (identifier) "seqB" (;) ";" (declaration) "npy_intp lenA, lenB;" (type_identifier) "npy_intp" (identifier) "lenA" (,) "," (identifier) "lenB" (;) ";" (declaration) "struct PairwiseScoringMethod sm;" (struct_specifier) "struct PairwiseScoringMethod" (struct) "struct" (type_identifier) "PairwiseScoringMethod" (identifier) "sm" (;) ";" (declaration) "npy_intp tbLen;" (type_identifier) "npy_intp" (identifier) "tbLen" (;) ";" (declaration) "npy_float alignScore;" (type_identifier) "npy_float" (identifier) "alignScore" (;) ";" (declaration) "PyArrayObject *gapArray;" (type_identifier) "PyArrayObject" (pointer_declarator) "*gapArray" (*) "*" (identifier) "gapArray" (;) ";" (comment) "// Parse input tuple" (if_statement) "if(!PyArg_ParseTuple(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))\n return NULL;" (if) "if" (parenthesized_expression) "(!PyArg_ParseTuple(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))" (() "(" (unary_expression) "!PyArg_ParseTuple(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend)" (!) "!" (call_expression) "PyArg_ParseTuple(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend)" (identifier) "PyArg_ParseTuple" (argument_list) "(args, "OOOff", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend)" (() "(" (identifier) "args" (,) "," (string_literal) ""OOOff"" (") """ (string_content) "OOOff" (") """ (,) "," (pointer_expression) "&seqAObj" (&) "&" (identifier) "seqAObj" (,) "," (pointer_expression) "&seqBObj" (&) "&" (identifier) "seqBObj" (,) "," (pointer_expression) "&matrixObj" (&) "&" (identifier) "matrixObj" (,) "," (pointer_expression) "&gap_open" (&) "&" (identifier) "gap_open" (,) "," (pointer_expression) "&gap_extend" (&) "&" (identifier) "gap_extend" ()) ")" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (comment) "// Interpret input objects as Numpy arrays" (if_statement) "if(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))\n return NULL;" (if) "if" (parenthesized_expression) "(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))" (() "(" (unary_expression) "!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp)" (!) "!" (call_expression) "pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp)" (identifier) "pwalignGetArgArrays" (argument_list) "(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp)" (() "(" (identifier) "seqAObj" (,) "," (identifier) "seqBObj" (,) "," (identifier) "matrixObj" (,) "," (pointer_expression) "&seqANp" (&) "&" (identifier) "seqANp" (,) "," (pointer_expression) "&seqBNp" (&) "&" (identifier) "seqBNp" (,) "," (pointer_expression) "&matrixNp" (&) "&" (identifier) "matrixNp" ()) ")" ()) ")" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (comment) "// Get sequence arrays and length" (expression_statement) "seqA = (npy_ubyte*)PyArray_DATA(seqANp);" (assignment_expression) "seqA = (npy_ubyte*)PyArray_DATA(seqANp)" (identifier) "seqA" (=) "=" (cast_expression) "(npy_ubyte*)PyArray_DATA(seqANp)" (() "(" (type_descriptor) "npy_ubyte*" (type_identifier) "npy_ubyte" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PyArray_DATA(seqANp)" (identifier) "PyArray_DATA" (argument_list) "(seqANp)" (() "(" (identifier) "seqANp" ()) ")" (;) ";" (expression_statement) "seqB = (npy_ubyte*)PyArray_DATA(seqBNp);" (assignment_expression) "seqB = (npy_ubyte*)PyArray_DATA(seqBNp)" (identifier) "seqB" (=) "=" (cast_expression) "(npy_ubyte*)PyArray_DATA(seqBNp)" (() "(" (type_descriptor) "npy_ubyte*" (type_identifier) "npy_ubyte" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PyArray_DATA(seqBNp)" (identifier) "PyArray_DATA" (argument_list) "(seqBNp)" (() "(" (identifier) "seqBNp" ()) ")" (;) ";" (expression_statement) "lenA = PyArray_DIM(seqANp, 0);" (assignment_expression) "lenA = PyArray_DIM(seqANp, 0)" (identifier) "lenA" (=) "=" (call_expression) "PyArray_DIM(seqANp, 0)" (identifier) "PyArray_DIM" (argument_list) "(seqANp, 0)" (() "(" (identifier) "seqANp" (,) "," (number_literal) "0" ()) ")" (;) ";" (expression_statement) "lenB = PyArray_DIM(seqBNp, 0);" (assignment_expression) "lenB = PyArray_DIM(seqBNp, 0)" (identifier) "lenB" (=) "=" (call_expression) "PyArray_DIM(seqBNp, 0)" (identifier) "PyArray_DIM" (argument_list) "(seqBNp, 0)" (() "(" (identifier) "seqBNp" (,) "," (number_literal) "0" ()) ")" (;) ";" (comment) "// Create scoring method" (expression_statement) "sm.matrix = (npy_float*)PyArray_DATA(matrixNp);" (assignment_expression) "sm.matrix = (npy_float*)PyArray_DATA(matrixNp)" (field_expression) "sm.matrix" (identifier) "sm" (.) "." (field_identifier) "matrix" (=) "=" (cast_expression) "(npy_float*)PyArray_DATA(matrixNp)" (() "(" (type_descriptor) "npy_float*" (type_identifier) "npy_float" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PyArray_DATA(matrixNp)" (identifier) "PyArray_DATA" (argument_list) "(matrixNp)" (() "(" (identifier) "matrixNp" ()) ")" (;) ";" (expression_statement) "sm.o = gap_open;" (assignment_expression) "sm.o = gap_open" (field_expression) "sm.o" (identifier) "sm" (.) "." (field_identifier) "o" (=) "=" (identifier) "gap_open" (;) ";" (expression_statement) "sm.e = gap_extend;" (assignment_expression) "sm.e = gap_extend" (field_expression) "sm.e" (identifier) "sm" (.) "." (field_identifier) "e" (=) "=" (identifier) "gap_extend" (;) ";" (comment) "// Run the alignment algorithm and get a traceback array" (declaration) "seq_edit traceback[lenA + lenB];" (type_identifier) "seq_edit" (array_declarator) "traceback[lenA + lenB]" (identifier) "traceback" ([) "[" (binary_expression) "lenA + lenB" (identifier) "lenA" (+) "+" (identifier) "lenB" (]) "]" (;) ";" (expression_statement) "tbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore);" (assignment_expression) "tbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore)" (identifier) "tbLen" (=) "=" (call_expression) "gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore)" (identifier) "gotohAlign" (argument_list) "(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore)" (() "(" (identifier) "seqA" (,) "," (identifier) "lenA" (,) "," (identifier) "seqB" (,) "," (identifier) "lenB" (,) "," (pointer_expression) "&sm" (&) "&" (identifier) "sm" (,) "," (identifier) "traceback" (,) "," (pointer_expression) "&alignScore" (&) "&" (identifier) "alignScore" ()) ")" (;) ";" (comment) "// Check if alignment successful, if so create gap array" (if_statement) "if(tbLen != -1)\n {\n npy_intp gapDims[2] = {2, tbLen};\n gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);\n }\n else\n {\n gapArray = NULL;\n }" (if) "if" (parenthesized_expression) "(tbLen != -1)" (() "(" (binary_expression) "tbLen != -1" (identifier) "tbLen" (!=) "!=" (number_literal) "-1" ()) ")" (compound_statement) "{\n npy_intp gapDims[2] = {2, tbLen};\n gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);\n }" ({) "{" (declaration) "npy_intp gapDims[2] = {2, tbLen};" (type_identifier) "npy_intp" (init_declarator) "gapDims[2] = {2, tbLen}" (array_declarator) "gapDims[2]" (identifier) "gapDims" ([) "[" (number_literal) "2" (]) "]" (=) "=" (initializer_list) "{2, tbLen}" ({) "{" (number_literal) "2" (,) "," (identifier) "tbLen" (}) "}" (;) ";" (expression_statement) "gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);" (assignment_expression) "gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE)" (identifier) "gapArray" (=) "=" (cast_expression) "(PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE)" (() "(" (type_descriptor) "PyArrayObject*" (type_identifier) "PyArrayObject" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PyArray_SimpleNew(2, gapDims, NPY_UBYTE)" (identifier) "PyArray_SimpleNew" (argument_list) "(2, gapDims, NPY_UBYTE)" (() "(" (number_literal) "2" (,) "," (identifier) "gapDims" (,) "," (identifier) "NPY_UBYTE" ()) ")" (;) ";" (}) "}" (else_clause) "else\n {\n gapArray = NULL;\n }" (else) "else" (compound_statement) "{\n gapArray = NULL;\n }" ({) "{" (expression_statement) "gapArray = NULL;" (assignment_expression) "gapArray = NULL" (identifier) "gapArray" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (comment) "// Only proceed to fill it if there haven't been any erros so far" (comment) "// (not actually sure, but I think PyArray_SimpleNew() can return NULL" (comment) "// on failure, so try to catch that)" (if_statement) "if(gapArray != NULL)\n {\n // Get pointer to array data and increment reference count\n npy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);\n Py_INCREF(gapArray);\n\n // Fill in gap array\n tracebackToGaps(traceback, tbLen, gapData);\n }" (if) "if" (parenthesized_expression) "(gapArray != NULL)" (() "(" (binary_expression) "gapArray != NULL" (identifier) "gapArray" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n // Get pointer to array data and increment reference count\n npy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);\n Py_INCREF(gapArray);\n\n // Fill in gap array\n tracebackToGaps(traceback, tbLen, gapData);\n }" ({) "{" (comment) "// Get pointer to array data and increment reference count" (declaration) "npy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);" (type_identifier) "npy_bool" (init_declarator) "*gapData = (npy_bool*)PyArray_DATA(gapArray)" (pointer_declarator) "*gapData" (*) "*" (identifier) "gapData" (=) "=" (cast_expression) "(npy_bool*)PyArray_DATA(gapArray)" (() "(" (type_descriptor) "npy_bool*" (type_identifier) "npy_bool" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PyArray_DATA(gapArray)" (identifier) "PyArray_DATA" (argument_list) "(gapArray)" (() "(" (identifier) "gapArray" ()) ")" (;) ";" (expression_statement) "Py_INCREF(gapArray);" (call_expression) "Py_INCREF(gapArray)" (identifier) "Py_INCREF" (argument_list) "(gapArray)" (() "(" (identifier) "gapArray" ()) ")" (;) ";" (comment) "// Fill in gap array" (expression_statement) "tracebackToGaps(traceback, tbLen, gapData);" (call_expression) "tracebackToGaps(traceback, tbLen, gapData)" (identifier) "tracebackToGaps" (argument_list) "(traceback, tbLen, gapData)" (() "(" (identifier) "traceback" (,) "," (identifier) "tbLen" (,) "," (identifier) "gapData" ()) ")" (;) ";" (}) "}" (comment) "// Decrement reference counts on Python objects that were created in this" (comment) "// function (regardless of whether creating the gap array succeeded or not)" (expression_statement) "Py_DECREF(seqANp);" (call_expression) "Py_DECREF(seqANp)" (identifier) "Py_DECREF" (argument_list) "(seqANp)" (() "(" (identifier) "seqANp" ()) ")" (;) ";" (expression_statement) "Py_DECREF(seqBNp);" (call_expression) "Py_DECREF(seqBNp)" (identifier) "Py_DECREF" (argument_list) "(seqBNp)" (() "(" (identifier) "seqBNp" ()) ")" (;) ";" (expression_statement) "Py_DECREF(matrixNp);" (call_expression) "Py_DECREF(matrixNp)" (identifier) "Py_DECREF" (argument_list) "(matrixNp)" (() "(" (identifier) "matrixNp" ()) ")" (;) ";" (comment) "// Build and return output tuple" (if_statement) "if(gapArray != NULL)\n {\n float alignScoreFloat = (float)alignScore;\n PyObject *ret = Py_BuildValue("Of", gapArray, alignScoreFloat);\n return ret;\n }\n else\n {\n return NULL;\n }" (if) "if" (parenthesized_expression) "(gapArray != NULL)" (() "(" (binary_expression) "gapArray != NULL" (identifier) "gapArray" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n float alignScoreFloat = (float)alignScore;\n PyObject *ret = Py_BuildValue("Of", gapArray, alignScoreFloat);\n return ret;\n }" ({) "{" (declaration) "float alignScoreFloat = (float)alignScore;" (primitive_type) "float" (init_declarator) "alignScoreFloat = (float)alignScore" (identifier) "alignScoreFloat" (=) "=" (cast_expression) "(float)alignScore" (() "(" (type_descriptor) "float" (primitive_type) "float" ()) ")" (identifier) "alignScore" (;) ";" (declaration) "PyObject *ret = Py_BuildValue("Of", gapArray, alignScoreFloat);" (type_identifier) "PyObject" (init_declarator) "*ret = Py_BuildValue("Of", gapArray, alignScoreFloat)" (pointer_declarator) "*ret" (*) "*" (identifier) "ret" (=) "=" (call_expression) "Py_BuildValue("Of", gapArray, alignScoreFloat)" (identifier) "Py_BuildValue" (argument_list) "("Of", gapArray, alignScoreFloat)" (() "(" (string_literal) ""Of"" (") """ (string_content) "Of" (") """ (,) "," (identifier) "gapArray" (,) "," (identifier) "alignScoreFloat" ()) ")" (;) ";" (return_statement) "return ret;" (return) "return" (identifier) "ret" (;) ";" (}) "}" (else_clause) "else\n {\n return NULL;\n }" (else) "else" (compound_statement) "{\n return NULL;\n }" ({) "{" (return_statement) "return NULL;" (return) "return" (null) "NULL" (NULL) "NULL" (;) ";" (}) "}" (}) "}" (function_definition) "static bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)\n{\n bool arrayError;\n\n // Get as array objects\n PyArrayObject *seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n PyArrayObject *seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n PyArrayObject *matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n NPY_FLOAT, NPY_ARRAY_IN_ARRAY);\n\n // Check error conditions\n arrayError = false;\n if(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)\n {\n arrayError = true;\n }\n else if(PyArray_NDIM(seqANp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1");\n arrayError = true;\n }\n else if(PyArray_NDIM(seqBNp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }\n else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }\n \n // Clean up and return if error\n if(arrayError)\n {\n Py_XDECREF(seqANp);\n Py_XDECREF(seqBNp);\n Py_XDECREF(matrixNp);\n return false;\n }\n else\n {\n *seqANpPtr = seqANp;\n *seqBNpPtr = seqBNp;\n *matrixNpPtr = matrixNp;\n return true;\n }\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)" (identifier) "pwalignGetArgArrays" (parameter_list) "(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)" (() "(" (parameter_declaration) "PyObject *seqAObj" (type_identifier) "PyObject" (pointer_declarator) "*seqAObj" (*) "*" (identifier) "seqAObj" (,) "," (parameter_declaration) "PyObject *seqBObj" (type_identifier) "PyObject" (pointer_declarator) "*seqBObj" (*) "*" (identifier) "seqBObj" (,) "," (parameter_declaration) "PyObject *matrixObj" (type_identifier) "PyObject" (pointer_declarator) "*matrixObj" (*) "*" (identifier) "matrixObj" (,) "," (parameter_declaration) "PyArrayObject **seqANpPtr" (type_identifier) "PyArrayObject" (pointer_declarator) "**seqANpPtr" (*) "*" (pointer_declarator) "*seqANpPtr" (*) "*" (identifier) "seqANpPtr" (,) "," (parameter_declaration) "PyArrayObject **seqBNpPtr" (type_identifier) "PyArrayObject" (pointer_declarator) "**seqBNpPtr" (*) "*" (pointer_declarator) "*seqBNpPtr" (*) "*" (identifier) "seqBNpPtr" (,) "," (parameter_declaration) "PyArrayObject **matrixNpPtr" (type_identifier) "PyArrayObject" (pointer_declarator) "**matrixNpPtr" (*) "*" (pointer_declarator) "*matrixNpPtr" (*) "*" (identifier) "matrixNpPtr" ()) ")" (compound_statement) "{\n bool arrayError;\n\n // Get as array objects\n PyArrayObject *seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n PyArrayObject *seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n PyArrayObject *matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n NPY_FLOAT, NPY_ARRAY_IN_ARRAY);\n\n // Check error conditions\n arrayError = false;\n if(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)\n {\n arrayError = true;\n }\n else if(PyArray_NDIM(seqANp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1");\n arrayError = true;\n }\n else if(PyArray_NDIM(seqBNp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }\n else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }\n \n // Clean up and return if error\n if(arrayError)\n {\n Py_XDECREF(seqANp);\n Py_XDECREF(seqBNp);\n Py_XDECREF(matrixNp);\n return false;\n }\n else\n {\n *seqANpPtr = seqANp;\n *seqBNpPtr = seqBNp;\n *matrixNpPtr = matrixNp;\n return true;\n }\n}" ({) "{" (declaration) "bool arrayError;" (primitive_type) "bool" (identifier) "arrayError" (;) ";" (comment) "// Get as array objects" (declaration) "PyArrayObject *seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY);" (type_identifier) "PyArrayObject" (init_declarator) "*seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY)" (pointer_declarator) "*seqANp" (*) "*" (identifier) "seqANp" (=) "=" (cast_expression) "(PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY)" (() "(" (type_descriptor) "PyArrayObject*" (type_identifier) "PyArrayObject" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PyArray_FROM_OTF(seqAObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY)" (identifier) "PyArray_FROM_OTF" (argument_list) "(seqAObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY)" (() "(" (identifier) "seqAObj" (,) "," (identifier) "NPY_UBYTE" (,) "," (identifier) "NPY_ARRAY_IN_ARRAY" ()) ")" (;) ";" (declaration) "PyArrayObject *seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY);" (type_identifier) "PyArrayObject" (init_declarator) "*seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY)" (pointer_declarator) "*seqBNp" (*) "*" (identifier) "seqBNp" (=) "=" (cast_expression) "(PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY)" (() "(" (type_descriptor) "PyArrayObject*" (type_identifier) "PyArrayObject" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PyArray_FROM_OTF(seqBObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY)" (identifier) "PyArray_FROM_OTF" (argument_list) "(seqBObj,\n NPY_UBYTE, NPY_ARRAY_IN_ARRAY)" (() "(" (identifier) "seqBObj" (,) "," (identifier) "NPY_UBYTE" (,) "," (identifier) "NPY_ARRAY_IN_ARRAY" ()) ")" (;) ";" (declaration) "PyArrayObject *matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n NPY_FLOAT, NPY_ARRAY_IN_ARRAY);" (type_identifier) "PyArrayObject" (init_declarator) "*matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n NPY_FLOAT, NPY_ARRAY_IN_ARRAY)" (pointer_declarator) "*matrixNp" (*) "*" (identifier) "matrixNp" (=) "=" (cast_expression) "(PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n NPY_FLOAT, NPY_ARRAY_IN_ARRAY)" (() "(" (type_descriptor) "PyArrayObject*" (type_identifier) "PyArrayObject" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "PyArray_FROM_OTF(matrixObj,\n NPY_FLOAT, NPY_ARRAY_IN_ARRAY)" (identifier) "PyArray_FROM_OTF" (argument_list) "(matrixObj,\n NPY_FLOAT, NPY_ARRAY_IN_ARRAY)" (() "(" (identifier) "matrixObj" (,) "," (identifier) "NPY_FLOAT" (,) "," (identifier) "NPY_ARRAY_IN_ARRAY" ()) ")" (;) ";" (comment) "// Check error conditions" (expression_statement) "arrayError = false;" (assignment_expression) "arrayError = false" (identifier) "arrayError" (=) "=" (false) "false" (;) ";" (if_statement) "if(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)\n {\n arrayError = true;\n }\n else if(PyArray_NDIM(seqANp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1");\n arrayError = true;\n }\n else if(PyArray_NDIM(seqBNp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }\n else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" (if) "if" (parenthesized_expression) "(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)" (() "(" (binary_expression) "seqANp == NULL || seqBNp == NULL || matrixNp == NULL" (binary_expression) "seqANp == NULL || seqBNp == NULL" (binary_expression) "seqANp == NULL" (identifier) "seqANp" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (binary_expression) "seqBNp == NULL" (identifier) "seqBNp" (==) "==" (null) "NULL" (NULL) "NULL" (||) "||" (binary_expression) "matrixNp == NULL" (identifier) "matrixNp" (==) "==" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n arrayError = true;\n }" ({) "{" (expression_statement) "arrayError = true;" (assignment_expression) "arrayError = true" (identifier) "arrayError" (=) "=" (true) "true" (;) ";" (}) "}" (else_clause) "else if(PyArray_NDIM(seqANp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1");\n arrayError = true;\n }\n else if(PyArray_NDIM(seqBNp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }\n else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" (else) "else" (if_statement) "if(PyArray_NDIM(seqANp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1");\n arrayError = true;\n }\n else if(PyArray_NDIM(seqBNp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }\n else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" (if) "if" (parenthesized_expression) "(PyArray_NDIM(seqANp) != 1)" (() "(" (binary_expression) "PyArray_NDIM(seqANp) != 1" (call_expression) "PyArray_NDIM(seqANp)" (identifier) "PyArray_NDIM" (argument_list) "(seqANp)" (() "(" (identifier) "seqANp" ()) ")" (!=) "!=" (number_literal) "1" ()) ")" (compound_statement) "{\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1");\n arrayError = true;\n }" ({) "{" (expression_statement) "PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1");" (call_expression) "PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 1")" (identifier) "PyErr_SetString" (argument_list) "(PyExc_ValueError, "Bad number of dimensions on sequnce 1")" (() "(" (identifier) "PyExc_ValueError" (,) "," (string_literal) ""Bad number of dimensions on sequnce 1"" (") """ (string_content) "Bad number of dimensions on sequnce 1" (") """ ()) ")" (;) ";" (expression_statement) "arrayError = true;" (assignment_expression) "arrayError = true" (identifier) "arrayError" (=) "=" (true) "true" (;) ";" (}) "}" (else_clause) "else if(PyArray_NDIM(seqBNp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }\n else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" (else) "else" (if_statement) "if(PyArray_NDIM(seqBNp) != 1)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }\n else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" (if) "if" (parenthesized_expression) "(PyArray_NDIM(seqBNp) != 1)" (() "(" (binary_expression) "PyArray_NDIM(seqBNp) != 1" (call_expression) "PyArray_NDIM(seqBNp)" (identifier) "PyArray_NDIM" (argument_list) "(seqBNp)" (() "(" (identifier) "seqBNp" ()) ")" (!=) "!=" (number_literal) "1" ()) ")" (compound_statement) "{\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");\n arrayError = true;\n }" ({) "{" (expression_statement) "PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2");" (call_expression) "PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on sequnce 2")" (identifier) "PyErr_SetString" (argument_list) "(PyExc_ValueError, "Bad number of dimensions on sequnce 2")" (() "(" (identifier) "PyExc_ValueError" (,) "," (string_literal) ""Bad number of dimensions on sequnce 2"" (") """ (string_content) "Bad number of dimensions on sequnce 2" (") """ ()) ")" (;) ";" (expression_statement) "arrayError = true;" (assignment_expression) "arrayError = true" (identifier) "arrayError" (=) "=" (true) "true" (;) ";" (}) "}" (else_clause) "else if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" (else) "else" (if_statement) "if(PyArray_NDIM(matrixNp) != 2)\n {\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }\n else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" (if) "if" (parenthesized_expression) "(PyArray_NDIM(matrixNp) != 2)" (() "(" (binary_expression) "PyArray_NDIM(matrixNp) != 2" (call_expression) "PyArray_NDIM(matrixNp)" (identifier) "PyArray_NDIM" (argument_list) "(matrixNp)" (() "(" (identifier) "matrixNp" ()) ")" (!=) "!=" (number_literal) "2" ()) ")" (compound_statement) "{\n PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");\n arrayError = true;\n }" ({) "{" (expression_statement) "PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix");" (call_expression) "PyErr_SetString(PyExc_ValueError, "Bad number of dimensions on matrix")" (identifier) "PyErr_SetString" (argument_list) "(PyExc_ValueError, "Bad number of dimensions on matrix")" (() "(" (identifier) "PyExc_ValueError" (,) "," (string_literal) ""Bad number of dimensions on matrix"" (") """ (string_content) "Bad number of dimensions on matrix" (") """ ()) ")" (;) ";" (expression_statement) "arrayError = true;" (assignment_expression) "arrayError = true" (identifier) "arrayError" (=) "=" (true) "true" (;) ";" (}) "}" (else_clause) "else\n {\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" (else) "else" (compound_statement) "{\n npy_intp *matrixShape = PyArray_DIMS(matrixNp);\n if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }\n }" ({) "{" (declaration) "npy_intp *matrixShape = PyArray_DIMS(matrixNp);" (type_identifier) "npy_intp" (init_declarator) "*matrixShape = PyArray_DIMS(matrixNp)" (pointer_declarator) "*matrixShape" (*) "*" (identifier) "matrixShape" (=) "=" (call_expression) "PyArray_DIMS(matrixNp)" (identifier) "PyArray_DIMS" (argument_list) "(matrixNp)" (() "(" (identifier) "matrixNp" ()) ")" (;) ";" (if_statement) "if(matrixShape[0] != 256 || matrixShape[1] != 256)\n {\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }" (if) "if" (parenthesized_expression) "(matrixShape[0] != 256 || matrixShape[1] != 256)" (() "(" (binary_expression) "matrixShape[0] != 256 || matrixShape[1] != 256" (binary_expression) "matrixShape[0] != 256" (subscript_expression) "matrixShape[0]" (identifier) "matrixShape" ([) "[" (number_literal) "0" (]) "]" (!=) "!=" (number_literal) "256" (||) "||" (binary_expression) "matrixShape[1] != 256" (subscript_expression) "matrixShape[1]" (identifier) "matrixShape" ([) "[" (number_literal) "1" (]) "]" (!=) "!=" (number_literal) "256" ()) ")" (compound_statement) "{\n PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");\n arrayError = true;\n }" ({) "{" (expression_statement) "PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)");" (call_expression) "PyErr_SetString(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)")" (identifier) "PyErr_SetString" (argument_list) "(PyExc_ValueError, "Bad shape on matrix - "\n "should be (256, 256)")" (() "(" (identifier) "PyExc_ValueError" (,) "," (concatenated_string) ""Bad shape on matrix - "\n "should be (256, 256)"" (string_literal) ""Bad shape on matrix - "" (") """ (string_content) "Bad shape on matrix - " (") """ (string_literal) ""should be (256, 256)"" (") """ (string_content) "should be (256, 256)" (") """ ()) ")" (;) ";" (expression_statement) "arrayError = true;" (assignment_expression) "arrayError = true" (identifier) "arrayError" (=) "=" (true) "true" (;) ";" (}) "}" (}) "}" (comment) "// Clean up and return if error" (if_statement) "if(arrayError)\n {\n Py_XDECREF(seqANp);\n Py_XDECREF(seqBNp);\n Py_XDECREF(matrixNp);\n return false;\n }\n else\n {\n *seqANpPtr = seqANp;\n *seqBNpPtr = seqBNp;\n *matrixNpPtr = matrixNp;\n return true;\n }" (if) "if" (parenthesized_expression) "(arrayError)" (() "(" (identifier) "arrayError" ()) ")" (compound_statement) "{\n Py_XDECREF(seqANp);\n Py_XDECREF(seqBNp);\n Py_XDECREF(matrixNp);\n return false;\n }" ({) "{" (expression_statement) "Py_XDECREF(seqANp);" (call_expression) "Py_XDECREF(seqANp)" (identifier) "Py_XDECREF" (argument_list) "(seqANp)" (() "(" (identifier) "seqANp" ()) ")" (;) ";" (expression_statement) "Py_XDECREF(seqBNp);" (call_expression) "Py_XDECREF(seqBNp)" (identifier) "Py_XDECREF" (argument_list) "(seqBNp)" (() "(" (identifier) "seqBNp" ()) ")" (;) ";" (expression_statement) "Py_XDECREF(matrixNp);" (call_expression) "Py_XDECREF(matrixNp)" (identifier) "Py_XDECREF" (argument_list) "(matrixNp)" (() "(" (identifier) "matrixNp" ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (else_clause) "else\n {\n *seqANpPtr = seqANp;\n *seqBNpPtr = seqBNp;\n *matrixNpPtr = matrixNp;\n return true;\n }" (else) "else" (compound_statement) "{\n *seqANpPtr = seqANp;\n *seqBNpPtr = seqBNp;\n *matrixNpPtr = matrixNp;\n return true;\n }" ({) "{" (expression_statement) "*seqANpPtr = seqANp;" (assignment_expression) "*seqANpPtr = seqANp" (pointer_expression) "*seqANpPtr" (*) "*" (identifier) "seqANpPtr" (=) "=" (identifier) "seqANp" (;) ";" (expression_statement) "*seqBNpPtr = seqBNp;" (assignment_expression) "*seqBNpPtr = seqBNp" (pointer_expression) "*seqBNpPtr" (*) "*" (identifier) "seqBNpPtr" (=) "=" (identifier) "seqBNp" (;) ";" (expression_statement) "*matrixNpPtr = matrixNp;" (assignment_expression) "*matrixNpPtr = matrixNp" (pointer_expression) "*matrixNpPtr" (*) "*" (identifier) "matrixNpPtr" (=) "=" (identifier) "matrixNp" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (}) "}"
1,170
0
{"language": "c", "success": true, "metadata": {"lines": 162, "avg_line_length": 28.8, "nodes": 709, "errors": 0, "source_hash": "59b7c42fc6dac01b41db48eda0bc439ad98e280a1f66a7c252f72961b8a0edfa", "categorized_nodes": 442}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"pwalign.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": "\"pwalign.h\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 20}}, {"id": 3, "type": "preproc_include", "text": "#include <numpy/arrayobject.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": "<numpy/arrayobject.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 30}}, {"id": 6, "type": "declaration", "text": "static char module_docstring[] = \"C module for pairwise alignment\";", "parent": null, "children": [7, 8], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 67}}, {"id": 7, "type": "primitive_type", "text": "char", "parent": 6, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 11}}, {"id": 8, "type": "init_declarator", "text": "module_docstring[] = \"C module for pairwise alignment\"", "parent": 6, "children": [9, 11, 12], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 66}}, {"id": 9, "type": "array_declarator", "text": "module_docstring[]", "parent": 8, "children": [10], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 30}}, {"id": 10, "type": "identifier", "text": "module_docstring", "parent": 9, "children": [], "start_point": {"row": 6, "column": 12}, "end_point": {"row": 6, "column": 28}}, {"id": 11, "type": "=", "text": "=", "parent": 8, "children": [], "start_point": {"row": 6, "column": 31}, "end_point": {"row": 6, "column": 32}}, {"id": 12, "type": "string_literal", "text": "\"C module for pairwise alignment\"", "parent": 8, "children": [], "start_point": {"row": 6, "column": 33}, "end_point": {"row": 6, "column": 66}}, {"id": 13, "type": "declaration", "text": "static char pwalign_docstring[] = \"\\\nPerforms global optimal pairwise alignment of two sequences using Gotoh's \\\nalgorithm\";", "parent": null, "children": [14, 15], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 9, "column": 11}}, {"id": 14, "type": "primitive_type", "text": "char", "parent": 13, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 11}}, {"id": 15, "type": "init_declarator", "text": "pwalign_docstring[] = \"\\\nPerforms global optimal pairwise alignment of two sequences using Gotoh's \\\nalgorithm\"", "parent": 13, "children": [16, 18, 19], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 9, "column": 10}}, {"id": 16, "type": "array_declarator", "text": "pwalign_docstring[]", "parent": 15, "children": [17], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 31}}, {"id": 17, "type": "identifier", "text": "pwalign_docstring", "parent": 16, "children": [], "start_point": {"row": 7, "column": 12}, "end_point": {"row": 7, "column": 29}}, {"id": 18, "type": "=", "text": "=", "parent": 15, "children": [], "start_point": {"row": 7, "column": 32}, "end_point": {"row": 7, "column": 33}}, {"id": 19, "type": "string_literal", "text": "\"\\\nPerforms global optimal pairwise alignment of two sequences using Gotoh's \\\nalgorithm\"", "parent": 15, "children": [20, 21], "start_point": {"row": 7, "column": 34}, "end_point": {"row": 9, "column": 10}}, {"id": 20, "type": "escape_sequence", "text": "\\\n", "parent": 19, "children": [], "start_point": {"row": 7, "column": 35}, "end_point": {"row": 8, "column": 0}}, {"id": 21, "type": "escape_sequence", "text": "\\\n", "parent": 19, "children": [], "start_point": {"row": 8, "column": 74}, "end_point": {"row": 9, "column": 0}}, {"id": 22, "type": "declaration", "text": "static PyObject *pwalign_pwalign(PyObject *self, PyObject *args);", "parent": null, "children": [23, 24], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 65}}, {"id": 23, "type": "type_identifier", "text": "PyObject", "parent": 22, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 15}}, {"id": 24, "type": "pointer_declarator", "text": "*pwalign_pwalign(PyObject *self, PyObject *args)", "parent": 22, "children": [25, 26], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 64}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 17}}, {"id": 26, "type": "function_declarator", "text": "pwalign_pwalign(PyObject *self, PyObject *args)", "parent": 24, "children": [27, 28], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 64}}, {"id": 27, "type": "identifier", "text": "pwalign_pwalign", "parent": 26, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 32}}, {"id": 28, "type": "parameter_list", "text": "(PyObject *self, PyObject *args)", "parent": 26, "children": [29, 34], "start_point": {"row": 13, "column": 32}, "end_point": {"row": 13, "column": 64}}, {"id": 29, "type": "parameter_declaration", "text": "PyObject *self", "parent": 28, "children": [30, 31], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 47}}, {"id": 30, "type": "type_identifier", "text": "PyObject", "parent": 29, "children": [], "start_point": {"row": 13, "column": 33}, "end_point": {"row": 13, "column": 41}}, {"id": 31, "type": "pointer_declarator", "text": "*self", "parent": 29, "children": [32, 33], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 47}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 13, "column": 42}, "end_point": {"row": 13, "column": 43}}, {"id": 33, "type": "identifier", "text": "self", "parent": 31, "children": [], "start_point": {"row": 13, "column": 43}, "end_point": {"row": 13, "column": 47}}, {"id": 34, "type": "parameter_declaration", "text": "PyObject *args", "parent": 28, "children": [35, 36], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 63}}, {"id": 35, "type": "type_identifier", "text": "PyObject", "parent": 34, "children": [], "start_point": {"row": 13, "column": 49}, "end_point": {"row": 13, "column": 57}}, {"id": 36, "type": "pointer_declarator", "text": "*args", "parent": 34, "children": [37, 38], "start_point": {"row": 13, "column": 58}, "end_point": {"row": 13, "column": 63}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 13, "column": 58}, "end_point": {"row": 13, "column": 59}}, {"id": 38, "type": "identifier", "text": "args", "parent": 36, "children": [], "start_point": {"row": 13, "column": 59}, "end_point": {"row": 13, "column": 63}}, {"id": 39, "type": "declaration", "text": "static bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr);", "parent": null, "children": [40, 41], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 20, "column": 61}}, {"id": 40, "type": "primitive_type", "text": "bool", "parent": 39, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 11}}, {"id": 41, "type": "function_declarator", "text": "pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)", "parent": 39, "children": [42, 43], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 20, "column": 60}}, {"id": 42, "type": "identifier", "text": "pwalignGetArgArrays", "parent": 41, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 31}}, {"id": 43, "type": "parameter_list", "text": "(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)", "parent": 41, "children": [44, 49, 54, 59, 66, 73], "start_point": {"row": 17, "column": 31}, "end_point": {"row": 20, "column": 60}}, {"id": 44, "type": "parameter_declaration", "text": "PyObject *seqAObj", "parent": 43, "children": [45, 46], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 49}}, {"id": 45, "type": "type_identifier", "text": "PyObject", "parent": 44, "children": [], "start_point": {"row": 17, "column": 32}, "end_point": {"row": 17, "column": 40}}, {"id": 46, "type": "pointer_declarator", "text": "*seqAObj", "parent": 44, "children": [47, 48], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 49}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 42}}, {"id": 48, "type": "identifier", "text": "seqAObj", "parent": 46, "children": [], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 49}}, {"id": 49, "type": "parameter_declaration", "text": "PyObject *seqBObj", "parent": 43, "children": [50, 51], "start_point": {"row": 17, "column": 51}, "end_point": {"row": 17, "column": 68}}, {"id": 50, "type": "type_identifier", "text": "PyObject", "parent": 49, "children": [], "start_point": {"row": 17, "column": 51}, "end_point": {"row": 17, "column": 59}}, {"id": 51, "type": "pointer_declarator", "text": "*seqBObj", "parent": 49, "children": [52, 53], "start_point": {"row": 17, "column": 60}, "end_point": {"row": 17, "column": 68}}, {"id": 52, "type": "*", "text": "*", "parent": 51, "children": [], "start_point": {"row": 17, "column": 60}, "end_point": {"row": 17, "column": 61}}, {"id": 53, "type": "identifier", "text": "seqBObj", "parent": 51, "children": [], "start_point": {"row": 17, "column": 61}, "end_point": {"row": 17, "column": 68}}, {"id": 54, "type": "parameter_declaration", "text": "PyObject *matrixObj", "parent": 43, "children": [55, 56], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 51}}, {"id": 55, "type": "type_identifier", "text": "PyObject", "parent": 54, "children": [], "start_point": {"row": 18, "column": 32}, "end_point": {"row": 18, "column": 40}}, {"id": 56, "type": "pointer_declarator", "text": "*matrixObj", "parent": 54, "children": [57, 58], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 51}}, {"id": 57, "type": "*", "text": "*", "parent": 56, "children": [], "start_point": {"row": 18, "column": 41}, "end_point": {"row": 18, "column": 42}}, {"id": 58, "type": "identifier", "text": "matrixObj", "parent": 56, "children": [], "start_point": {"row": 18, "column": 42}, "end_point": {"row": 18, "column": 51}}, {"id": 59, "type": "parameter_declaration", "text": "PyArrayObject **seqANpPtr", "parent": 43, "children": [60, 61], "start_point": {"row": 18, "column": 53}, "end_point": {"row": 18, "column": 78}}, {"id": 60, "type": "type_identifier", "text": "PyArrayObject", "parent": 59, "children": [], "start_point": {"row": 18, "column": 53}, "end_point": {"row": 18, "column": 66}}, {"id": 61, "type": "pointer_declarator", "text": "**seqANpPtr", "parent": 59, "children": [62, 63], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 78}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 18, "column": 67}, "end_point": {"row": 18, "column": 68}}, {"id": 63, "type": "pointer_declarator", "text": "*seqANpPtr", "parent": 61, "children": [64, 65], "start_point": {"row": 18, "column": 68}, "end_point": {"row": 18, "column": 78}}, {"id": 64, "type": "*", "text": "*", "parent": 63, "children": [], "start_point": {"row": 18, "column": 68}, "end_point": {"row": 18, "column": 69}}, {"id": 65, "type": "identifier", "text": "seqANpPtr", "parent": 63, "children": [], "start_point": {"row": 18, "column": 69}, "end_point": {"row": 18, "column": 78}}, {"id": 66, "type": "parameter_declaration", "text": "PyArrayObject **seqBNpPtr", "parent": 43, "children": [67, 68], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 57}}, {"id": 67, "type": "type_identifier", "text": "PyArrayObject", "parent": 66, "children": [], "start_point": {"row": 19, "column": 32}, "end_point": {"row": 19, "column": 45}}, {"id": 68, "type": "pointer_declarator", "text": "**seqBNpPtr", "parent": 66, "children": [69, 70], "start_point": {"row": 19, "column": 46}, "end_point": {"row": 19, "column": 57}}, {"id": 69, "type": "*", "text": "*", "parent": 68, "children": [], "start_point": {"row": 19, "column": 46}, "end_point": {"row": 19, "column": 47}}, {"id": 70, "type": "pointer_declarator", "text": "*seqBNpPtr", "parent": 68, "children": [71, 72], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 57}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 19, "column": 47}, "end_point": {"row": 19, "column": 48}}, {"id": 72, "type": "identifier", "text": "seqBNpPtr", "parent": 70, "children": [], "start_point": {"row": 19, "column": 48}, "end_point": {"row": 19, "column": 57}}, {"id": 73, "type": "parameter_declaration", "text": "PyArrayObject **matrixNpPtr", "parent": 43, "children": [74, 75], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 59}}, {"id": 74, "type": "type_identifier", "text": "PyArrayObject", "parent": 73, "children": [], "start_point": {"row": 20, "column": 32}, "end_point": {"row": 20, "column": 45}}, {"id": 75, "type": "pointer_declarator", "text": "**matrixNpPtr", "parent": 73, "children": [76, 77], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 59}}, {"id": 76, "type": "*", "text": "*", "parent": 75, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 47}}, {"id": 77, "type": "pointer_declarator", "text": "*matrixNpPtr", "parent": 75, "children": [78, 79], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 59}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 20, "column": 47}, "end_point": {"row": 20, "column": 48}}, {"id": 79, "type": "identifier", "text": "matrixNpPtr", "parent": 77, "children": [], "start_point": {"row": 20, "column": 48}, "end_point": {"row": 20, "column": 59}}, {"id": 80, "type": "declaration", "text": "static PyMethodDef module_methods[] = {\n\t{\"pwalign\", pwalign_pwalign, METH_VARARGS, pwalign_docstring},\n\t{NULL, NULL, 0, NULL}\n};", "parent": null, "children": [81, 82], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 27, "column": 2}}, {"id": 81, "type": "type_identifier", "text": "PyMethodDef", "parent": 80, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 18}}, {"id": 82, "type": "init_declarator", "text": "module_methods[] = {\n\t{\"pwalign\", pwalign_pwalign, METH_VARARGS, pwalign_docstring},\n\t{NULL, NULL, 0, NULL}\n}", "parent": 80, "children": [83, 85, 86], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 27, "column": 1}}, {"id": 83, "type": "array_declarator", "text": "module_methods[]", "parent": 82, "children": [84], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 35}}, {"id": 84, "type": "identifier", "text": "module_methods", "parent": 83, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 33}}, {"id": 85, "type": "=", "text": "=", "parent": 82, "children": [], "start_point": {"row": 24, "column": 36}, "end_point": {"row": 24, "column": 37}}, {"id": 86, "type": "initializer_list", "text": "{\n\t{\"pwalign\", pwalign_pwalign, METH_VARARGS, pwalign_docstring},\n\t{NULL, NULL, 0, NULL}\n}", "parent": 82, "children": [87, 92], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 27, "column": 1}}, {"id": 87, "type": "initializer_list", "text": "{\"pwalign\", pwalign_pwalign, METH_VARARGS, pwalign_docstring}", "parent": 86, "children": [88, 89, 90, 91], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 62}}, {"id": 88, "type": "string_literal", "text": "\"pwalign\"", "parent": 87, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 11}}, {"id": 89, "type": "identifier", "text": "pwalign_pwalign", "parent": 87, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 28}}, {"id": 90, "type": "identifier", "text": "METH_VARARGS", "parent": 87, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 42}}, {"id": 91, "type": "identifier", "text": "pwalign_docstring", "parent": 87, "children": [], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 61}}, {"id": 92, "type": "initializer_list", "text": "{NULL, NULL, 0, NULL}", "parent": 86, "children": [93, 95, 97, 98], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 22}}, {"id": 93, "type": "null", "text": "NULL", "parent": 92, "children": [94], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 94, "type": "NULL", "text": "NULL", "parent": 93, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 6}}, {"id": 95, "type": "null", "text": "NULL", "parent": 92, "children": [96], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 12}}, {"id": 96, "type": "NULL", "text": "NULL", "parent": 95, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 12}}, {"id": 97, "type": "number_literal", "text": "0", "parent": 92, "children": [], "start_point": {"row": 26, "column": 14}, "end_point": {"row": 26, "column": 15}}, {"id": 98, "type": "null", "text": "NULL", "parent": 92, "children": [99], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 21}}, {"id": 99, "type": "NULL", "text": "NULL", "parent": 98, "children": [], "start_point": {"row": 26, "column": 17}, "end_point": {"row": 26, "column": 21}}, {"id": 100, "type": "function_definition", "text": "PyMODINIT_FUNC init_pwalign(void)\n{\n\tPyObject *m = Py_InitModule3(\"_pwalign\", module_methods, module_docstring);\n\tif(m == NULL)\n\t\treturn;\n\n\t// Load numpy functionality\n\timport_array();\n}", "parent": null, "children": [101, 102], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 101, "type": "type_identifier", "text": "PyMODINIT_FUNC", "parent": 100, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 14}}, {"id": 102, "type": "function_declarator", "text": "init_pwalign(void)", "parent": 100, "children": [103, 104], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 33}}, {"id": 103, "type": "identifier", "text": "init_pwalign", "parent": 102, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 27}}, {"id": 104, "type": "parameter_list", "text": "(void)", "parent": 102, "children": [105], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 33}}, {"id": 105, "type": "parameter_declaration", "text": "void", "parent": 104, "children": [106], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 32}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 32}}, {"id": 107, "type": "declaration", "text": "PyObject *m = Py_InitModule3(\"_pwalign\", module_methods, module_docstring);", "parent": 100, "children": [108, 109], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 76}}, {"id": 108, "type": "type_identifier", "text": "PyObject", "parent": 107, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 9}}, {"id": 109, "type": "init_declarator", "text": "*m = Py_InitModule3(\"_pwalign\", module_methods, module_docstring)", "parent": 107, "children": [110, 113, 114], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 75}}, {"id": 110, "type": "pointer_declarator", "text": "*m", "parent": 109, "children": [111, 112], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 12}}, {"id": 111, "type": "*", "text": "*", "parent": 110, "children": [], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 11}}, {"id": 112, "type": "identifier", "text": "m", "parent": 110, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 12}}, {"id": 113, "type": "=", "text": "=", "parent": 109, "children": [], "start_point": {"row": 33, "column": 13}, "end_point": {"row": 33, "column": 14}}, {"id": 114, "type": "call_expression", "text": "Py_InitModule3(\"_pwalign\", module_methods, module_docstring)", "parent": 109, "children": [115, 116], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 75}}, {"id": 115, "type": "identifier", "text": "Py_InitModule3", "parent": 114, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 29}}, {"id": 116, "type": "argument_list", "text": "(\"_pwalign\", module_methods, module_docstring)", "parent": 114, "children": [117, 118, 119], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 75}}, {"id": 117, "type": "string_literal", "text": "\"_pwalign\"", "parent": 116, "children": [], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 40}}, {"id": 118, "type": "identifier", "text": "module_methods", "parent": 116, "children": [], "start_point": {"row": 33, "column": 42}, "end_point": {"row": 33, "column": 56}}, {"id": 119, "type": "identifier", "text": "module_docstring", "parent": 116, "children": [], "start_point": {"row": 33, "column": 58}, "end_point": {"row": 33, "column": 74}}, {"id": 120, "type": "if_statement", "text": "if(m == NULL)\n\t\treturn;", "parent": 100, "children": [121, 127], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 35, "column": 9}}, {"id": 121, "type": "parenthesized_expression", "text": "(m == NULL)", "parent": 120, "children": [122], "start_point": {"row": 34, "column": 3}, "end_point": {"row": 34, "column": 14}}, {"id": 122, "type": "binary_expression", "text": "m == NULL", "parent": 121, "children": [123, 124, 125], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 13}}, {"id": 123, "type": "identifier", "text": "m", "parent": 122, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 5}}, {"id": 124, "type": "==", "text": "==", "parent": 122, "children": [], "start_point": {"row": 34, "column": 6}, "end_point": {"row": 34, "column": 8}}, {"id": 125, "type": "null", "text": "NULL", "parent": 122, "children": [126], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 13}}, {"id": 126, "type": "NULL", "text": "NULL", "parent": 125, "children": [], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 13}}, {"id": 127, "type": "return_statement", "text": "return;", "parent": 120, "children": [], "start_point": {"row": 35, "column": 2}, "end_point": {"row": 35, "column": 9}}, {"id": 128, "type": "call_expression", "text": "import_array()", "parent": 100, "children": [129, 130], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 15}}, {"id": 129, "type": "identifier", "text": "import_array", "parent": 128, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 13}}, {"id": 130, "type": "argument_list", "text": "()", "parent": 128, "children": [], "start_point": {"row": 38, "column": 13}, "end_point": {"row": 38, "column": 15}}, {"id": 131, "type": "function_definition", "text": "static PyObject *pwalign_pwalign(PyObject *self, PyObject *args)\n{\n\tPyObject *seqAObj, *seqBObj, *matrixObj;\n\tPyArrayObject *seqANp, *seqBNp, *matrixNp;\n\tfloat gap_open, gap_extend;\n\tnpy_ubyte *seqA, *seqB;\n\tnpy_intp lenA, lenB;\n\tstruct PairwiseScoringMethod sm;\n\tnpy_intp tbLen;\n\tnpy_float alignScore;\n\tPyArrayObject *gapArray;\n\n\t// Parse input tuple\n\tif(!PyArg_ParseTuple(args, \"OOOff\", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))\n\t\treturn NULL;\n\n\t// Interpret input objects as Numpy arrays\n\tif(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))\n\t\treturn NULL;\n\n\t// Get sequence arrays and length\n\tseqA = (npy_ubyte*)PyArray_DATA(seqANp);\n\tseqB = (npy_ubyte*)PyArray_DATA(seqBNp);\n\tlenA = PyArray_DIM(seqANp, 0);\n\tlenB = PyArray_DIM(seqBNp, 0);\n\n\t// Create scoring method\n\tsm.matrix = (npy_float*)PyArray_DATA(matrixNp);\n\tsm.o = gap_open;\n\tsm.e = gap_extend;\n\n\t// Run the alignment algorithm and get a traceback array\n\tseq_edit traceback[lenA + lenB];\n\ttbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore);\n\n\t// Check if alignment successful, if so create gap array\n\tif(tbLen != -1)\n\t{\n\t\tnpy_intp gapDims[2] = {2, tbLen};\n\t\tgapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);\n\t}\n\telse\n\t{\n\t\tgapArray = NULL;\n\t}\n\n\t// Only proceed to fill it if there haven't been any erros so far\n\t// (not actually sure, but I think PyArray_SimpleNew() can return NULL\n\t// on failure, so try to catch that)\n\tif(gapArray != NULL)\n\t{\n\t\t// Get pointer to array data and increment reference count\n\t\tnpy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);\n\t\tPy_INCREF(gapArray);\n\n\t\t// Fill in gap array\n\t\ttracebackToGaps(traceback, tbLen, gapData);\n\t}\n\n\t// Decrement reference counts on Python objects that were created in this\n\t// function (regardless of whether creating the gap array succeeded or not)\n\tPy_DECREF(seqANp);\n\tPy_DECREF(seqBNp);\n\tPy_DECREF(matrixNp);\n\n\t// Build and return output tuple\n\tif(gapArray != NULL)\n\t{\n\t\tfloat alignScoreFloat = (float)alignScore;\n\t\tPyObject *ret = Py_BuildValue(\"Of\", gapArray, alignScoreFloat);\n\t\treturn ret;\n\t}\n\telse\n\t{\n\t\treturn NULL;\n\t}\n}", "parent": null, "children": [132, 133], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 119, "column": 1}}, {"id": 132, "type": "type_identifier", "text": "PyObject", "parent": 131, "children": [], "start_point": {"row": 43, "column": 7}, "end_point": {"row": 43, "column": 15}}, {"id": 133, "type": "pointer_declarator", "text": "*pwalign_pwalign(PyObject *self, PyObject *args)", "parent": 131, "children": [134, 135], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 64}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 43, "column": 16}, "end_point": {"row": 43, "column": 17}}, {"id": 135, "type": "function_declarator", "text": "pwalign_pwalign(PyObject *self, PyObject *args)", "parent": 133, "children": [136, 137], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 64}}, {"id": 136, "type": "identifier", "text": "pwalign_pwalign", "parent": 135, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 32}}, {"id": 137, "type": "parameter_list", "text": "(PyObject *self, PyObject *args)", "parent": 135, "children": [138, 143], "start_point": {"row": 43, "column": 32}, "end_point": {"row": 43, "column": 64}}, {"id": 138, "type": "parameter_declaration", "text": "PyObject *self", "parent": 137, "children": [139, 140], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 47}}, {"id": 139, "type": "type_identifier", "text": "PyObject", "parent": 138, "children": [], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 41}}, {"id": 140, "type": "pointer_declarator", "text": "*self", "parent": 138, "children": [141, 142], "start_point": {"row": 43, "column": 42}, "end_point": {"row": 43, "column": 47}}, {"id": 141, "type": "*", "text": "*", "parent": 140, "children": [], "start_point": {"row": 43, "column": 42}, "end_point": {"row": 43, "column": 43}}, {"id": 142, "type": "identifier", "text": "self", "parent": 140, "children": [], "start_point": {"row": 43, "column": 43}, "end_point": {"row": 43, "column": 47}}, {"id": 143, "type": "parameter_declaration", "text": "PyObject *args", "parent": 137, "children": [144, 145], "start_point": {"row": 43, "column": 49}, "end_point": {"row": 43, "column": 63}}, {"id": 144, "type": "type_identifier", "text": "PyObject", "parent": 143, "children": [], "start_point": {"row": 43, "column": 49}, "end_point": {"row": 43, "column": 57}}, {"id": 145, "type": "pointer_declarator", "text": "*args", "parent": 143, "children": [146, 147], "start_point": {"row": 43, "column": 58}, "end_point": {"row": 43, "column": 63}}, {"id": 146, "type": "*", "text": "*", "parent": 145, "children": [], "start_point": {"row": 43, "column": 58}, "end_point": {"row": 43, "column": 59}}, {"id": 147, "type": "identifier", "text": "args", "parent": 145, "children": [], "start_point": {"row": 43, "column": 59}, "end_point": {"row": 43, "column": 63}}, {"id": 148, "type": "declaration", "text": "PyObject *seqAObj, *seqBObj, *matrixObj;", "parent": 131, "children": [149, 150, 153, 156], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 41}}, {"id": 149, "type": "type_identifier", "text": "PyObject", "parent": 148, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 9}}, {"id": 150, "type": "pointer_declarator", "text": "*seqAObj", "parent": 148, "children": [151, 152], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 18}}, {"id": 151, "type": "*", "text": "*", "parent": 150, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 11}}, {"id": 152, "type": "identifier", "text": "seqAObj", "parent": 150, "children": [], "start_point": {"row": 45, "column": 11}, "end_point": {"row": 45, "column": 18}}, {"id": 153, "type": "pointer_declarator", "text": "*seqBObj", "parent": 148, "children": [154, 155], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 28}}, {"id": 154, "type": "*", "text": "*", "parent": 153, "children": [], "start_point": {"row": 45, "column": 20}, "end_point": {"row": 45, "column": 21}}, {"id": 155, "type": "identifier", "text": "seqBObj", "parent": 153, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 28}}, {"id": 156, "type": "pointer_declarator", "text": "*matrixObj", "parent": 148, "children": [157, 158], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 40}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 45, "column": 30}, "end_point": {"row": 45, "column": 31}}, {"id": 158, "type": "identifier", "text": "matrixObj", "parent": 156, "children": [], "start_point": {"row": 45, "column": 31}, "end_point": {"row": 45, "column": 40}}, {"id": 159, "type": "declaration", "text": "PyArrayObject *seqANp, *seqBNp, *matrixNp;", "parent": 131, "children": [160, 161, 164, 167], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 43}}, {"id": 160, "type": "type_identifier", "text": "PyArrayObject", "parent": 159, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 14}}, {"id": 161, "type": "pointer_declarator", "text": "*seqANp", "parent": 159, "children": [162, 163], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 22}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 46, "column": 15}, "end_point": {"row": 46, "column": 16}}, {"id": 163, "type": "identifier", "text": "seqANp", "parent": 161, "children": [], "start_point": {"row": 46, "column": 16}, "end_point": {"row": 46, "column": 22}}, {"id": 164, "type": "pointer_declarator", "text": "*seqBNp", "parent": 159, "children": [165, 166], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 31}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 25}}, {"id": 166, "type": "identifier", "text": "seqBNp", "parent": 164, "children": [], "start_point": {"row": 46, "column": 25}, "end_point": {"row": 46, "column": 31}}, {"id": 167, "type": "pointer_declarator", "text": "*matrixNp", "parent": 159, "children": [168, 169], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 42}}, {"id": 168, "type": "*", "text": "*", "parent": 167, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 34}}, {"id": 169, "type": "identifier", "text": "matrixNp", "parent": 167, "children": [], "start_point": {"row": 46, "column": 34}, "end_point": {"row": 46, "column": 42}}, {"id": 170, "type": "declaration", "text": "float gap_open, gap_extend;", "parent": 131, "children": [171, 172, 173], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 28}}, {"id": 171, "type": "primitive_type", "text": "float", "parent": 170, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 6}}, {"id": 172, "type": "identifier", "text": "gap_open", "parent": 170, "children": [], "start_point": {"row": 47, "column": 7}, "end_point": {"row": 47, "column": 15}}, {"id": 173, "type": "identifier", "text": "gap_extend", "parent": 170, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 27}}, {"id": 174, "type": "declaration", "text": "npy_ubyte *seqA, *seqB;", "parent": 131, "children": [175, 176, 179], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 24}}, {"id": 175, "type": "type_identifier", "text": "npy_ubyte", "parent": 174, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 10}}, {"id": 176, "type": "pointer_declarator", "text": "*seqA", "parent": 174, "children": [177, 178], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 16}}, {"id": 177, "type": "*", "text": "*", "parent": 176, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 12}}, {"id": 178, "type": "identifier", "text": "seqA", "parent": 176, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 16}}, {"id": 179, "type": "pointer_declarator", "text": "*seqB", "parent": 174, "children": [180, 181], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 23}}, {"id": 180, "type": "*", "text": "*", "parent": 179, "children": [], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 19}}, {"id": 181, "type": "identifier", "text": "seqB", "parent": 179, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 23}}, {"id": 182, "type": "declaration", "text": "npy_intp lenA, lenB;", "parent": 131, "children": [183, 184, 185], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 21}}, {"id": 183, "type": "type_identifier", "text": "npy_intp", "parent": 182, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 9}}, {"id": 184, "type": "identifier", "text": "lenA", "parent": 182, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 14}}, {"id": 185, "type": "identifier", "text": "lenB", "parent": 182, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 20}}, {"id": 186, "type": "declaration", "text": "struct PairwiseScoringMethod sm;", "parent": 131, "children": [187, 190], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 33}}, {"id": 187, "type": "struct_specifier", "text": "struct PairwiseScoringMethod", "parent": 186, "children": [188, 189], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 29}}, {"id": 188, "type": "struct", "text": "struct", "parent": 187, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 7}}, {"id": 189, "type": "type_identifier", "text": "PairwiseScoringMethod", "parent": 187, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 29}}, {"id": 190, "type": "identifier", "text": "sm", "parent": 186, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 32}}, {"id": 191, "type": "declaration", "text": "npy_intp tbLen;", "parent": 131, "children": [192, 193], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 16}}, {"id": 192, "type": "type_identifier", "text": "npy_intp", "parent": 191, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 9}}, {"id": 193, "type": "identifier", "text": "tbLen", "parent": 191, "children": [], "start_point": {"row": 51, "column": 10}, "end_point": {"row": 51, "column": 15}}, {"id": 194, "type": "declaration", "text": "npy_float alignScore;", "parent": 131, "children": [195, 196], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 22}}, {"id": 195, "type": "type_identifier", "text": "npy_float", "parent": 194, "children": [], "start_point": {"row": 52, "column": 1}, "end_point": {"row": 52, "column": 10}}, {"id": 196, "type": "identifier", "text": "alignScore", "parent": 194, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 21}}, {"id": 197, "type": "declaration", "text": "PyArrayObject *gapArray;", "parent": 131, "children": [198, 199], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 25}}, {"id": 198, "type": "type_identifier", "text": "PyArrayObject", "parent": 197, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 14}}, {"id": 199, "type": "pointer_declarator", "text": "*gapArray", "parent": 197, "children": [200, 201], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 24}}, {"id": 200, "type": "*", "text": "*", "parent": 199, "children": [], "start_point": {"row": 53, "column": 15}, "end_point": {"row": 53, "column": 16}}, {"id": 201, "type": "identifier", "text": "gapArray", "parent": 199, "children": [], "start_point": {"row": 53, "column": 16}, "end_point": {"row": 53, "column": 24}}, {"id": 202, "type": "if_statement", "text": "if(!PyArg_ParseTuple(args, \"OOOff\", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))\n\t\treturn NULL;", "parent": 131, "children": [203, 221], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 57, "column": 14}}, {"id": 203, "type": "parenthesized_expression", "text": "(!PyArg_ParseTuple(args, \"OOOff\", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))", "parent": 202, "children": [204], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 93}}, {"id": 204, "type": "unary_expression", "text": "!PyArg_ParseTuple(args, \"OOOff\", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend)", "parent": 203, "children": [205, 206], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 92}}, {"id": 205, "type": "!", "text": "!", "parent": 204, "children": [], "start_point": {"row": 56, "column": 4}, "end_point": {"row": 56, "column": 5}}, {"id": 206, "type": "call_expression", "text": "PyArg_ParseTuple(args, \"OOOff\", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend)", "parent": 204, "children": [207, 208], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 92}}, {"id": 207, "type": "identifier", "text": "PyArg_ParseTuple", "parent": 206, "children": [], "start_point": {"row": 56, "column": 5}, "end_point": {"row": 56, "column": 21}}, {"id": 208, "type": "argument_list", "text": "(args, \"OOOff\", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend)", "parent": 206, "children": [209, 210, 211, 213, 215, 217, 219], "start_point": {"row": 56, "column": 21}, "end_point": {"row": 56, "column": 92}}, {"id": 209, "type": "identifier", "text": "args", "parent": 208, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 26}}, {"id": 210, "type": "string_literal", "text": "\"OOOff\"", "parent": 208, "children": [], "start_point": {"row": 56, "column": 28}, "end_point": {"row": 56, "column": 35}}, {"id": 211, "type": "pointer_expression", "text": "&seqAObj", "parent": 208, "children": [212], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 45}}, {"id": 212, "type": "identifier", "text": "seqAObj", "parent": 211, "children": [], "start_point": {"row": 56, "column": 38}, "end_point": {"row": 56, "column": 45}}, {"id": 213, "type": "pointer_expression", "text": "&seqBObj", "parent": 208, "children": [214], "start_point": {"row": 56, "column": 47}, "end_point": {"row": 56, "column": 55}}, {"id": 214, "type": "identifier", "text": "seqBObj", "parent": 213, "children": [], "start_point": {"row": 56, "column": 48}, "end_point": {"row": 56, "column": 55}}, {"id": 215, "type": "pointer_expression", "text": "&matrixObj", "parent": 208, "children": [216], "start_point": {"row": 56, "column": 57}, "end_point": {"row": 56, "column": 67}}, {"id": 216, "type": "identifier", "text": "matrixObj", "parent": 215, "children": [], "start_point": {"row": 56, "column": 58}, "end_point": {"row": 56, "column": 67}}, {"id": 217, "type": "pointer_expression", "text": "&gap_open", "parent": 208, "children": [218], "start_point": {"row": 56, "column": 69}, "end_point": {"row": 56, "column": 78}}, {"id": 218, "type": "identifier", "text": "gap_open", "parent": 217, "children": [], "start_point": {"row": 56, "column": 70}, "end_point": {"row": 56, "column": 78}}, {"id": 219, "type": "pointer_expression", "text": "&gap_extend", "parent": 208, "children": [220], "start_point": {"row": 56, "column": 80}, "end_point": {"row": 56, "column": 91}}, {"id": 220, "type": "identifier", "text": "gap_extend", "parent": 219, "children": [], "start_point": {"row": 56, "column": 81}, "end_point": {"row": 56, "column": 91}}, {"id": 221, "type": "return_statement", "text": "return NULL;", "parent": 202, "children": [222], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 57, "column": 14}}, {"id": 222, "type": "null", "text": "NULL", "parent": 221, "children": [223], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 13}}, {"id": 223, "type": "NULL", "text": "NULL", "parent": 222, "children": [], "start_point": {"row": 57, "column": 9}, "end_point": {"row": 57, "column": 13}}, {"id": 224, "type": "if_statement", "text": "if(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))\n\t\treturn NULL;", "parent": 131, "children": [225, 240], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 61, "column": 14}}, {"id": 225, "type": "parenthesized_expression", "text": "(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))", "parent": 224, "children": [226], "start_point": {"row": 60, "column": 3}, "end_point": {"row": 60, "column": 83}}, {"id": 226, "type": "unary_expression", "text": "!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp)", "parent": 225, "children": [227, 228], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 82}}, {"id": 227, "type": "!", "text": "!", "parent": 226, "children": [], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 60, "column": 5}}, {"id": 228, "type": "call_expression", "text": "pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp)", "parent": 226, "children": [229, 230], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 82}}, {"id": 229, "type": "identifier", "text": "pwalignGetArgArrays", "parent": 228, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 24}}, {"id": 230, "type": "argument_list", "text": "(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp)", "parent": 228, "children": [231, 232, 233, 234, 236, 238], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 82}}, {"id": 231, "type": "identifier", "text": "seqAObj", "parent": 230, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 32}}, {"id": 232, "type": "identifier", "text": "seqBObj", "parent": 230, "children": [], "start_point": {"row": 60, "column": 34}, "end_point": {"row": 60, "column": 41}}, {"id": 233, "type": "identifier", "text": "matrixObj", "parent": 230, "children": [], "start_point": {"row": 60, "column": 43}, "end_point": {"row": 60, "column": 52}}, {"id": 234, "type": "pointer_expression", "text": "&seqANp", "parent": 230, "children": [235], "start_point": {"row": 60, "column": 54}, "end_point": {"row": 60, "column": 61}}, {"id": 235, "type": "identifier", "text": "seqANp", "parent": 234, "children": [], "start_point": {"row": 60, "column": 55}, "end_point": {"row": 60, "column": 61}}, {"id": 236, "type": "pointer_expression", "text": "&seqBNp", "parent": 230, "children": [237], "start_point": {"row": 60, "column": 63}, "end_point": {"row": 60, "column": 70}}, {"id": 237, "type": "identifier", "text": "seqBNp", "parent": 236, "children": [], "start_point": {"row": 60, "column": 64}, "end_point": {"row": 60, "column": 70}}, {"id": 238, "type": "pointer_expression", "text": "&matrixNp", "parent": 230, "children": [239], "start_point": {"row": 60, "column": 72}, "end_point": {"row": 60, "column": 81}}, {"id": 239, "type": "identifier", "text": "matrixNp", "parent": 238, "children": [], "start_point": {"row": 60, "column": 73}, "end_point": {"row": 60, "column": 81}}, {"id": 240, "type": "return_statement", "text": "return NULL;", "parent": 224, "children": [241], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 14}}, {"id": 241, "type": "null", "text": "NULL", "parent": 240, "children": [242], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 13}}, {"id": 242, "type": "NULL", "text": "NULL", "parent": 241, "children": [], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 13}}, {"id": 243, "type": "assignment_expression", "text": "seqA = (npy_ubyte*)PyArray_DATA(seqANp)", "parent": 131, "children": [244, 245, 246], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 40}}, {"id": 244, "type": "identifier", "text": "seqA", "parent": 243, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 5}}, {"id": 245, "type": "=", "text": "=", "parent": 243, "children": [], "start_point": {"row": 64, "column": 6}, "end_point": {"row": 64, "column": 7}}, {"id": 246, "type": "cast_expression", "text": "(npy_ubyte*)PyArray_DATA(seqANp)", "parent": 243, "children": [247, 251], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 40}}, {"id": 247, "type": "type_descriptor", "text": "npy_ubyte*", "parent": 246, "children": [248, 249], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 19}}, {"id": 248, "type": "type_identifier", "text": "npy_ubyte", "parent": 247, "children": [], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 18}}, {"id": 249, "type": "abstract_pointer_declarator", "text": "*", "parent": 247, "children": [250], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 19}}, {"id": 250, "type": "*", "text": "*", "parent": 249, "children": [], "start_point": {"row": 64, "column": 18}, "end_point": {"row": 64, "column": 19}}, {"id": 251, "type": "call_expression", "text": "PyArray_DATA(seqANp)", "parent": 246, "children": [252, 253], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 40}}, {"id": 252, "type": "identifier", "text": "PyArray_DATA", "parent": 251, "children": [], "start_point": {"row": 64, "column": 20}, "end_point": {"row": 64, "column": 32}}, {"id": 253, "type": "argument_list", "text": "(seqANp)", "parent": 251, "children": [254], "start_point": {"row": 64, "column": 32}, "end_point": {"row": 64, "column": 40}}, {"id": 254, "type": "identifier", "text": "seqANp", "parent": 253, "children": [], "start_point": {"row": 64, "column": 33}, "end_point": {"row": 64, "column": 39}}, {"id": 255, "type": "assignment_expression", "text": "seqB = (npy_ubyte*)PyArray_DATA(seqBNp)", "parent": 131, "children": [256, 257, 258], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 40}}, {"id": 256, "type": "identifier", "text": "seqB", "parent": 255, "children": [], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 65, "column": 5}}, {"id": 257, "type": "=", "text": "=", "parent": 255, "children": [], "start_point": {"row": 65, "column": 6}, "end_point": {"row": 65, "column": 7}}, {"id": 258, "type": "cast_expression", "text": "(npy_ubyte*)PyArray_DATA(seqBNp)", "parent": 255, "children": [259, 263], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 40}}, {"id": 259, "type": "type_descriptor", "text": "npy_ubyte*", "parent": 258, "children": [260, 261], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 19}}, {"id": 260, "type": "type_identifier", "text": "npy_ubyte", "parent": 259, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 18}}, {"id": 261, "type": "abstract_pointer_declarator", "text": "*", "parent": 259, "children": [262], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 19}}, {"id": 262, "type": "*", "text": "*", "parent": 261, "children": [], "start_point": {"row": 65, "column": 18}, "end_point": {"row": 65, "column": 19}}, {"id": 263, "type": "call_expression", "text": "PyArray_DATA(seqBNp)", "parent": 258, "children": [264, 265], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 40}}, {"id": 264, "type": "identifier", "text": "PyArray_DATA", "parent": 263, "children": [], "start_point": {"row": 65, "column": 20}, "end_point": {"row": 65, "column": 32}}, {"id": 265, "type": "argument_list", "text": "(seqBNp)", "parent": 263, "children": [266], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 40}}, {"id": 266, "type": "identifier", "text": "seqBNp", "parent": 265, "children": [], "start_point": {"row": 65, "column": 33}, "end_point": {"row": 65, "column": 39}}, {"id": 267, "type": "assignment_expression", "text": "lenA = PyArray_DIM(seqANp, 0)", "parent": 131, "children": [268, 269, 270], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 30}}, {"id": 268, "type": "identifier", "text": "lenA", "parent": 267, "children": [], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 5}}, {"id": 269, "type": "=", "text": "=", "parent": 267, "children": [], "start_point": {"row": 66, "column": 6}, "end_point": {"row": 66, "column": 7}}, {"id": 270, "type": "call_expression", "text": "PyArray_DIM(seqANp, 0)", "parent": 267, "children": [271, 272], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 30}}, {"id": 271, "type": "identifier", "text": "PyArray_DIM", "parent": 270, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 19}}, {"id": 272, "type": "argument_list", "text": "(seqANp, 0)", "parent": 270, "children": [273, 274], "start_point": {"row": 66, "column": 19}, "end_point": {"row": 66, "column": 30}}, {"id": 273, "type": "identifier", "text": "seqANp", "parent": 272, "children": [], "start_point": {"row": 66, "column": 20}, "end_point": {"row": 66, "column": 26}}, {"id": 274, "type": "number_literal", "text": "0", "parent": 272, "children": [], "start_point": {"row": 66, "column": 28}, "end_point": {"row": 66, "column": 29}}, {"id": 275, "type": "assignment_expression", "text": "lenB = PyArray_DIM(seqBNp, 0)", "parent": 131, "children": [276, 277, 278], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 30}}, {"id": 276, "type": "identifier", "text": "lenB", "parent": 275, "children": [], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 67, "column": 5}}, {"id": 277, "type": "=", "text": "=", "parent": 275, "children": [], "start_point": {"row": 67, "column": 6}, "end_point": {"row": 67, "column": 7}}, {"id": 278, "type": "call_expression", "text": "PyArray_DIM(seqBNp, 0)", "parent": 275, "children": [279, 280], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 30}}, {"id": 279, "type": "identifier", "text": "PyArray_DIM", "parent": 278, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 19}}, {"id": 280, "type": "argument_list", "text": "(seqBNp, 0)", "parent": 278, "children": [281, 282], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 30}}, {"id": 281, "type": "identifier", "text": "seqBNp", "parent": 280, "children": [], "start_point": {"row": 67, "column": 20}, "end_point": {"row": 67, "column": 26}}, {"id": 282, "type": "number_literal", "text": "0", "parent": 280, "children": [], "start_point": {"row": 67, "column": 28}, "end_point": {"row": 67, "column": 29}}, {"id": 283, "type": "assignment_expression", "text": "sm.matrix = (npy_float*)PyArray_DATA(matrixNp)", "parent": 131, "children": [284, 287, 288], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 47}}, {"id": 284, "type": "field_expression", "text": "sm.matrix", "parent": 283, "children": [285, 286], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 10}}, {"id": 285, "type": "identifier", "text": "sm", "parent": 284, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 3}}, {"id": 286, "type": "field_identifier", "text": "matrix", "parent": 284, "children": [], "start_point": {"row": 70, "column": 4}, "end_point": {"row": 70, "column": 10}}, {"id": 287, "type": "=", "text": "=", "parent": 283, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 12}}, {"id": 288, "type": "cast_expression", "text": "(npy_float*)PyArray_DATA(matrixNp)", "parent": 283, "children": [289, 293], "start_point": {"row": 70, "column": 13}, "end_point": {"row": 70, "column": 47}}, {"id": 289, "type": "type_descriptor", "text": "npy_float*", "parent": 288, "children": [290, 291], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 24}}, {"id": 290, "type": "type_identifier", "text": "npy_float", "parent": 289, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 23}}, {"id": 291, "type": "abstract_pointer_declarator", "text": "*", "parent": 289, "children": [292], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 24}}, {"id": 292, "type": "*", "text": "*", "parent": 291, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 24}}, {"id": 293, "type": "call_expression", "text": "PyArray_DATA(matrixNp)", "parent": 288, "children": [294, 295], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 47}}, {"id": 294, "type": "identifier", "text": "PyArray_DATA", "parent": 293, "children": [], "start_point": {"row": 70, "column": 25}, "end_point": {"row": 70, "column": 37}}, {"id": 295, "type": "argument_list", "text": "(matrixNp)", "parent": 293, "children": [296], "start_point": {"row": 70, "column": 37}, "end_point": {"row": 70, "column": 47}}, {"id": 296, "type": "identifier", "text": "matrixNp", "parent": 295, "children": [], "start_point": {"row": 70, "column": 38}, "end_point": {"row": 70, "column": 46}}, {"id": 297, "type": "assignment_expression", "text": "sm.o = gap_open", "parent": 131, "children": [298, 301, 302], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 16}}, {"id": 298, "type": "field_expression", "text": "sm.o", "parent": 297, "children": [299, 300], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 5}}, {"id": 299, "type": "identifier", "text": "sm", "parent": 298, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 3}}, {"id": 300, "type": "field_identifier", "text": "o", "parent": 298, "children": [], "start_point": {"row": 71, "column": 4}, "end_point": {"row": 71, "column": 5}}, {"id": 301, "type": "=", "text": "=", "parent": 297, "children": [], "start_point": {"row": 71, "column": 6}, "end_point": {"row": 71, "column": 7}}, {"id": 302, "type": "identifier", "text": "gap_open", "parent": 297, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 16}}, {"id": 303, "type": "assignment_expression", "text": "sm.e = gap_extend", "parent": 131, "children": [304, 307, 308], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 18}}, {"id": 304, "type": "field_expression", "text": "sm.e", "parent": 303, "children": [305, 306], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 5}}, {"id": 305, "type": "identifier", "text": "sm", "parent": 304, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 3}}, {"id": 306, "type": "field_identifier", "text": "e", "parent": 304, "children": [], "start_point": {"row": 72, "column": 4}, "end_point": {"row": 72, "column": 5}}, {"id": 307, "type": "=", "text": "=", "parent": 303, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 7}}, {"id": 308, "type": "identifier", "text": "gap_extend", "parent": 303, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 18}}, {"id": 309, "type": "declaration", "text": "seq_edit traceback[lenA + lenB];", "parent": 131, "children": [310, 311], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 33}}, {"id": 310, "type": "type_identifier", "text": "seq_edit", "parent": 309, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 9}}, {"id": 311, "type": "array_declarator", "text": "traceback[lenA + lenB]", "parent": 309, "children": [312, 313], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 32}}, {"id": 312, "type": "identifier", "text": "traceback", "parent": 311, "children": [], "start_point": {"row": 75, "column": 10}, "end_point": {"row": 75, "column": 19}}, {"id": 313, "type": "binary_expression", "text": "lenA + lenB", "parent": 311, "children": [314, 315, 316], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 31}}, {"id": 314, "type": "identifier", "text": "lenA", "parent": 313, "children": [], "start_point": {"row": 75, "column": 20}, "end_point": {"row": 75, "column": 24}}, {"id": 315, "type": "+", "text": "+", "parent": 313, "children": [], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 26}}, {"id": 316, "type": "identifier", "text": "lenB", "parent": 313, "children": [], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 31}}, {"id": 317, "type": "assignment_expression", "text": "tbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore)", "parent": 131, "children": [318, 319, 320], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 72}}, {"id": 318, "type": "identifier", "text": "tbLen", "parent": 317, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 6}}, {"id": 319, "type": "=", "text": "=", "parent": 317, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 8}}, {"id": 320, "type": "call_expression", "text": "gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore)", "parent": 317, "children": [321, 322], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 72}}, {"id": 321, "type": "identifier", "text": "gotohAlign", "parent": 320, "children": [], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 19}}, {"id": 322, "type": "argument_list", "text": "(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore)", "parent": 320, "children": [323, 324, 325, 326, 327, 329, 330], "start_point": {"row": 76, "column": 19}, "end_point": {"row": 76, "column": 72}}, {"id": 323, "type": "identifier", "text": "seqA", "parent": 322, "children": [], "start_point": {"row": 76, "column": 20}, "end_point": {"row": 76, "column": 24}}, {"id": 324, "type": "identifier", "text": "lenA", "parent": 322, "children": [], "start_point": {"row": 76, "column": 26}, "end_point": {"row": 76, "column": 30}}, {"id": 325, "type": "identifier", "text": "seqB", "parent": 322, "children": [], "start_point": {"row": 76, "column": 32}, "end_point": {"row": 76, "column": 36}}, {"id": 326, "type": "identifier", "text": "lenB", "parent": 322, "children": [], "start_point": {"row": 76, "column": 38}, "end_point": {"row": 76, "column": 42}}, {"id": 327, "type": "pointer_expression", "text": "&sm", "parent": 322, "children": [328], "start_point": {"row": 76, "column": 44}, "end_point": {"row": 76, "column": 47}}, {"id": 328, "type": "identifier", "text": "sm", "parent": 327, "children": [], "start_point": {"row": 76, "column": 45}, "end_point": {"row": 76, "column": 47}}, {"id": 329, "type": "identifier", "text": "traceback", "parent": 322, "children": [], "start_point": {"row": 76, "column": 49}, "end_point": {"row": 76, "column": 58}}, {"id": 330, "type": "pointer_expression", "text": "&alignScore", "parent": 322, "children": [331], "start_point": {"row": 76, "column": 60}, "end_point": {"row": 76, "column": 71}}, {"id": 331, "type": "identifier", "text": "alignScore", "parent": 330, "children": [], "start_point": {"row": 76, "column": 61}, "end_point": {"row": 76, "column": 71}}, {"id": 332, "type": "if_statement", "text": "if(tbLen != -1)\n\t{\n\t\tnpy_intp gapDims[2] = {2, tbLen};\n\t\tgapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);\n\t}\n\telse\n\t{\n\t\tgapArray = NULL;\n\t}", "parent": 131, "children": [333, 362], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 87, "column": 2}}, {"id": 333, "type": "parenthesized_expression", "text": "(tbLen != -1)", "parent": 332, "children": [334], "start_point": {"row": 79, "column": 3}, "end_point": {"row": 79, "column": 16}}, {"id": 334, "type": "binary_expression", "text": "tbLen != -1", "parent": 333, "children": [335, 336, 337], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 15}}, {"id": 335, "type": "identifier", "text": "tbLen", "parent": 334, "children": [], "start_point": {"row": 79, "column": 4}, "end_point": {"row": 79, "column": 9}}, {"id": 336, "type": "!=", "text": "!=", "parent": 334, "children": [], "start_point": {"row": 79, "column": 10}, "end_point": {"row": 79, "column": 12}}, {"id": 337, "type": "number_literal", "text": "-1", "parent": 334, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 15}}, {"id": 338, "type": "declaration", "text": "npy_intp gapDims[2] = {2, tbLen};", "parent": 332, "children": [339, 340], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 35}}, {"id": 339, "type": "type_identifier", "text": "npy_intp", "parent": 338, "children": [], "start_point": {"row": 81, "column": 2}, "end_point": {"row": 81, "column": 10}}, {"id": 340, "type": "init_declarator", "text": "gapDims[2] = {2, tbLen}", "parent": 338, "children": [341, 344, 345], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 34}}, {"id": 341, "type": "array_declarator", "text": "gapDims[2]", "parent": 340, "children": [342, 343], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 21}}, {"id": 342, "type": "identifier", "text": "gapDims", "parent": 341, "children": [], "start_point": {"row": 81, "column": 11}, "end_point": {"row": 81, "column": 18}}, {"id": 343, "type": "number_literal", "text": "2", "parent": 341, "children": [], "start_point": {"row": 81, "column": 19}, "end_point": {"row": 81, "column": 20}}, {"id": 344, "type": "=", "text": "=", "parent": 340, "children": [], "start_point": {"row": 81, "column": 22}, "end_point": {"row": 81, "column": 23}}, {"id": 345, "type": "initializer_list", "text": "{2, tbLen}", "parent": 340, "children": [346, 347], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 34}}, {"id": 346, "type": "number_literal", "text": "2", "parent": 345, "children": [], "start_point": {"row": 81, "column": 25}, "end_point": {"row": 81, "column": 26}}, {"id": 347, "type": "identifier", "text": "tbLen", "parent": 345, "children": [], "start_point": {"row": 81, "column": 28}, "end_point": {"row": 81, "column": 33}}, {"id": 348, "type": "assignment_expression", "text": "gapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE)", "parent": 332, "children": [349, 350, 351], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 69}}, {"id": 349, "type": "identifier", "text": "gapArray", "parent": 348, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 10}}, {"id": 350, "type": "=", "text": "=", "parent": 348, "children": [], "start_point": {"row": 82, "column": 11}, "end_point": {"row": 82, "column": 12}}, {"id": 351, "type": "cast_expression", "text": "(PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE)", "parent": 348, "children": [352, 356], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 69}}, {"id": 352, "type": "type_descriptor", "text": "PyArrayObject*", "parent": 351, "children": [353, 354], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 28}}, {"id": 353, "type": "type_identifier", "text": "PyArrayObject", "parent": 352, "children": [], "start_point": {"row": 82, "column": 14}, "end_point": {"row": 82, "column": 27}}, {"id": 354, "type": "abstract_pointer_declarator", "text": "*", "parent": 352, "children": [355], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 28}}, {"id": 355, "type": "*", "text": "*", "parent": 354, "children": [], "start_point": {"row": 82, "column": 27}, "end_point": {"row": 82, "column": 28}}, {"id": 356, "type": "call_expression", "text": "PyArray_SimpleNew(2, gapDims, NPY_UBYTE)", "parent": 351, "children": [357, 358], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 69}}, {"id": 357, "type": "identifier", "text": "PyArray_SimpleNew", "parent": 356, "children": [], "start_point": {"row": 82, "column": 29}, "end_point": {"row": 82, "column": 46}}, {"id": 358, "type": "argument_list", "text": "(2, gapDims, NPY_UBYTE)", "parent": 356, "children": [359, 360, 361], "start_point": {"row": 82, "column": 46}, "end_point": {"row": 82, "column": 69}}, {"id": 359, "type": "number_literal", "text": "2", "parent": 358, "children": [], "start_point": {"row": 82, "column": 47}, "end_point": {"row": 82, "column": 48}}, {"id": 360, "type": "identifier", "text": "gapDims", "parent": 358, "children": [], "start_point": {"row": 82, "column": 50}, "end_point": {"row": 82, "column": 57}}, {"id": 361, "type": "identifier", "text": "NPY_UBYTE", "parent": 358, "children": [], "start_point": {"row": 82, "column": 59}, "end_point": {"row": 82, "column": 68}}, {"id": 362, "type": "else_clause", "text": "else\n\t{\n\t\tgapArray = NULL;\n\t}", "parent": 332, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 87, "column": 2}}, {"id": 363, "type": "assignment_expression", "text": "gapArray = NULL", "parent": 362, "children": [364, 365, 366], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 17}}, {"id": 364, "type": "identifier", "text": "gapArray", "parent": 363, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 10}}, {"id": 365, "type": "=", "text": "=", "parent": 363, "children": [], "start_point": {"row": 86, "column": 11}, "end_point": {"row": 86, "column": 12}}, {"id": 366, "type": "null", "text": "NULL", "parent": 363, "children": [367], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 17}}, {"id": 367, "type": "NULL", "text": "NULL", "parent": 366, "children": [], "start_point": {"row": 86, "column": 13}, "end_point": {"row": 86, "column": 17}}, {"id": 368, "type": "if_statement", "text": "if(gapArray != NULL)\n\t{\n\t\t// Get pointer to array data and increment reference count\n\t\tnpy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);\n\t\tPy_INCREF(gapArray);\n\n\t\t// Fill in gap array\n\t\ttracebackToGaps(traceback, tbLen, gapData);\n\t}", "parent": 131, "children": [369], "start_point": {"row": 92, "column": 1}, "end_point": {"row": 100, "column": 2}}, {"id": 369, "type": "parenthesized_expression", "text": "(gapArray != NULL)", "parent": 368, "children": [370], "start_point": {"row": 92, "column": 3}, "end_point": {"row": 92, "column": 21}}, {"id": 370, "type": "binary_expression", "text": "gapArray != NULL", "parent": 369, "children": [371, 372, 373], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 20}}, {"id": 371, "type": "identifier", "text": "gapArray", "parent": 370, "children": [], "start_point": {"row": 92, "column": 4}, "end_point": {"row": 92, "column": 12}}, {"id": 372, "type": "!=", "text": "!=", "parent": 370, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 15}}, {"id": 373, "type": "null", "text": "NULL", "parent": 370, "children": [374], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 20}}, {"id": 374, "type": "NULL", "text": "NULL", "parent": 373, "children": [], "start_point": {"row": 92, "column": 16}, "end_point": {"row": 92, "column": 20}}, {"id": 375, "type": "declaration", "text": "npy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);", "parent": 368, "children": [376, 377], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 56}}, {"id": 376, "type": "type_identifier", "text": "npy_bool", "parent": 375, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 10}}, {"id": 377, "type": "init_declarator", "text": "*gapData = (npy_bool*)PyArray_DATA(gapArray)", "parent": 375, "children": [378, 381, 382], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 55}}, {"id": 378, "type": "pointer_declarator", "text": "*gapData", "parent": 377, "children": [379, 380], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 19}}, {"id": 379, "type": "*", "text": "*", "parent": 378, "children": [], "start_point": {"row": 95, "column": 11}, "end_point": {"row": 95, "column": 12}}, {"id": 380, "type": "identifier", "text": "gapData", "parent": 378, "children": [], "start_point": {"row": 95, "column": 12}, "end_point": {"row": 95, "column": 19}}, {"id": 381, "type": "=", "text": "=", "parent": 377, "children": [], "start_point": {"row": 95, "column": 20}, "end_point": {"row": 95, "column": 21}}, {"id": 382, "type": "cast_expression", "text": "(npy_bool*)PyArray_DATA(gapArray)", "parent": 377, "children": [383, 387], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 55}}, {"id": 383, "type": "type_descriptor", "text": "npy_bool*", "parent": 382, "children": [384, 385], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 32}}, {"id": 384, "type": "type_identifier", "text": "npy_bool", "parent": 383, "children": [], "start_point": {"row": 95, "column": 23}, "end_point": {"row": 95, "column": 31}}, {"id": 385, "type": "abstract_pointer_declarator", "text": "*", "parent": 383, "children": [386], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 32}}, {"id": 386, "type": "*", "text": "*", "parent": 385, "children": [], "start_point": {"row": 95, "column": 31}, "end_point": {"row": 95, "column": 32}}, {"id": 387, "type": "call_expression", "text": "PyArray_DATA(gapArray)", "parent": 382, "children": [388, 389], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 55}}, {"id": 388, "type": "identifier", "text": "PyArray_DATA", "parent": 387, "children": [], "start_point": {"row": 95, "column": 33}, "end_point": {"row": 95, "column": 45}}, {"id": 389, "type": "argument_list", "text": "(gapArray)", "parent": 387, "children": [390], "start_point": {"row": 95, "column": 45}, "end_point": {"row": 95, "column": 55}}, {"id": 390, "type": "identifier", "text": "gapArray", "parent": 389, "children": [], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 54}}, {"id": 391, "type": "call_expression", "text": "Py_INCREF(gapArray)", "parent": 368, "children": [392, 393], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 21}}, {"id": 392, "type": "identifier", "text": "Py_INCREF", "parent": 391, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 11}}, {"id": 393, "type": "argument_list", "text": "(gapArray)", "parent": 391, "children": [394], "start_point": {"row": 96, "column": 11}, "end_point": {"row": 96, "column": 21}}, {"id": 394, "type": "identifier", "text": "gapArray", "parent": 393, "children": [], "start_point": {"row": 96, "column": 12}, "end_point": {"row": 96, "column": 20}}, {"id": 395, "type": "call_expression", "text": "tracebackToGaps(traceback, tbLen, gapData)", "parent": 368, "children": [396, 397], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 44}}, {"id": 396, "type": "identifier", "text": "tracebackToGaps", "parent": 395, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 17}}, {"id": 397, "type": "argument_list", "text": "(traceback, tbLen, gapData)", "parent": 395, "children": [398, 399, 400], "start_point": {"row": 99, "column": 17}, "end_point": {"row": 99, "column": 44}}, {"id": 398, "type": "identifier", "text": "traceback", "parent": 397, "children": [], "start_point": {"row": 99, "column": 18}, "end_point": {"row": 99, "column": 27}}, {"id": 399, "type": "identifier", "text": "tbLen", "parent": 397, "children": [], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 34}}, {"id": 400, "type": "identifier", "text": "gapData", "parent": 397, "children": [], "start_point": {"row": 99, "column": 36}, "end_point": {"row": 99, "column": 43}}, {"id": 401, "type": "call_expression", "text": "Py_DECREF(seqANp)", "parent": 131, "children": [402, 403], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 18}}, {"id": 402, "type": "identifier", "text": "Py_DECREF", "parent": 401, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 10}}, {"id": 403, "type": "argument_list", "text": "(seqANp)", "parent": 401, "children": [404], "start_point": {"row": 104, "column": 10}, "end_point": {"row": 104, "column": 18}}, {"id": 404, "type": "identifier", "text": "seqANp", "parent": 403, "children": [], "start_point": {"row": 104, "column": 11}, "end_point": {"row": 104, "column": 17}}, {"id": 405, "type": "call_expression", "text": "Py_DECREF(seqBNp)", "parent": 131, "children": [406, 407], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 18}}, {"id": 406, "type": "identifier", "text": "Py_DECREF", "parent": 405, "children": [], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 105, "column": 10}}, {"id": 407, "type": "argument_list", "text": "(seqBNp)", "parent": 405, "children": [408], "start_point": {"row": 105, "column": 10}, "end_point": {"row": 105, "column": 18}}, {"id": 408, "type": "identifier", "text": "seqBNp", "parent": 407, "children": [], "start_point": {"row": 105, "column": 11}, "end_point": {"row": 105, "column": 17}}, {"id": 409, "type": "call_expression", "text": "Py_DECREF(matrixNp)", "parent": 131, "children": [410, 411], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 20}}, {"id": 410, "type": "identifier", "text": "Py_DECREF", "parent": 409, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 10}}, {"id": 411, "type": "argument_list", "text": "(matrixNp)", "parent": 409, "children": [412], "start_point": {"row": 106, "column": 10}, "end_point": {"row": 106, "column": 20}}, {"id": 412, "type": "identifier", "text": "matrixNp", "parent": 411, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 19}}, {"id": 413, "type": "if_statement", "text": "if(gapArray != NULL)\n\t{\n\t\tfloat alignScoreFloat = (float)alignScore;\n\t\tPyObject *ret = Py_BuildValue(\"Of\", gapArray, alignScoreFloat);\n\t\treturn ret;\n\t}\n\telse\n\t{\n\t\treturn NULL;\n\t}", "parent": 131, "children": [414, 444], "start_point": {"row": 109, "column": 1}, "end_point": {"row": 118, "column": 2}}, {"id": 414, "type": "parenthesized_expression", "text": "(gapArray != NULL)", "parent": 413, "children": [415], "start_point": {"row": 109, "column": 3}, "end_point": {"row": 109, "column": 21}}, {"id": 415, "type": "binary_expression", "text": "gapArray != NULL", "parent": 414, "children": [416, 417, 418], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 20}}, {"id": 416, "type": "identifier", "text": "gapArray", "parent": 415, "children": [], "start_point": {"row": 109, "column": 4}, "end_point": {"row": 109, "column": 12}}, {"id": 417, "type": "!=", "text": "!=", "parent": 415, "children": [], "start_point": {"row": 109, "column": 13}, "end_point": {"row": 109, "column": 15}}, {"id": 418, "type": "null", "text": "NULL", "parent": 415, "children": [419], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 20}}, {"id": 419, "type": "NULL", "text": "NULL", "parent": 418, "children": [], "start_point": {"row": 109, "column": 16}, "end_point": {"row": 109, "column": 20}}, {"id": 420, "type": "declaration", "text": "float alignScoreFloat = (float)alignScore;", "parent": 413, "children": [421, 422], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 44}}, {"id": 421, "type": "primitive_type", "text": "float", "parent": 420, "children": [], "start_point": {"row": 111, "column": 2}, "end_point": {"row": 111, "column": 7}}, {"id": 422, "type": "init_declarator", "text": "alignScoreFloat = (float)alignScore", "parent": 420, "children": [423, 424, 425], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 43}}, {"id": 423, "type": "identifier", "text": "alignScoreFloat", "parent": 422, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 23}}, {"id": 424, "type": "=", "text": "=", "parent": 422, "children": [], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 25}}, {"id": 425, "type": "cast_expression", "text": "(float)alignScore", "parent": 422, "children": [426, 428], "start_point": {"row": 111, "column": 26}, "end_point": {"row": 111, "column": 43}}, {"id": 426, "type": "type_descriptor", "text": "float", "parent": 425, "children": [427], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 32}}, {"id": 427, "type": "primitive_type", "text": "float", "parent": 426, "children": [], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 32}}, {"id": 428, "type": "identifier", "text": "alignScore", "parent": 425, "children": [], "start_point": {"row": 111, "column": 33}, "end_point": {"row": 111, "column": 43}}, {"id": 429, "type": "declaration", "text": "PyObject *ret = Py_BuildValue(\"Of\", gapArray, alignScoreFloat);", "parent": 413, "children": [430, 431], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 65}}, {"id": 430, "type": "type_identifier", "text": "PyObject", "parent": 429, "children": [], "start_point": {"row": 112, "column": 2}, "end_point": {"row": 112, "column": 10}}, {"id": 431, "type": "init_declarator", "text": "*ret = Py_BuildValue(\"Of\", gapArray, alignScoreFloat)", "parent": 429, "children": [432, 435, 436], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 64}}, {"id": 432, "type": "pointer_declarator", "text": "*ret", "parent": 431, "children": [433, 434], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 15}}, {"id": 433, "type": "*", "text": "*", "parent": 432, "children": [], "start_point": {"row": 112, "column": 11}, "end_point": {"row": 112, "column": 12}}, {"id": 434, "type": "identifier", "text": "ret", "parent": 432, "children": [], "start_point": {"row": 112, "column": 12}, "end_point": {"row": 112, "column": 15}}, {"id": 435, "type": "=", "text": "=", "parent": 431, "children": [], "start_point": {"row": 112, "column": 16}, "end_point": {"row": 112, "column": 17}}, {"id": 436, "type": "call_expression", "text": "Py_BuildValue(\"Of\", gapArray, alignScoreFloat)", "parent": 431, "children": [437, 438], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 64}}, {"id": 437, "type": "identifier", "text": "Py_BuildValue", "parent": 436, "children": [], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 31}}, {"id": 438, "type": "argument_list", "text": "(\"Of\", gapArray, alignScoreFloat)", "parent": 436, "children": [439, 440, 441], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 64}}, {"id": 439, "type": "string_literal", "text": "\"Of\"", "parent": 438, "children": [], "start_point": {"row": 112, "column": 32}, "end_point": {"row": 112, "column": 36}}, {"id": 440, "type": "identifier", "text": "gapArray", "parent": 438, "children": [], "start_point": {"row": 112, "column": 38}, "end_point": {"row": 112, "column": 46}}, {"id": 441, "type": "identifier", "text": "alignScoreFloat", "parent": 438, "children": [], "start_point": {"row": 112, "column": 48}, "end_point": {"row": 112, "column": 63}}, {"id": 442, "type": "return_statement", "text": "return ret;", "parent": 413, "children": [443], "start_point": {"row": 113, "column": 2}, "end_point": {"row": 113, "column": 13}}, {"id": 443, "type": "identifier", "text": "ret", "parent": 442, "children": [], "start_point": {"row": 113, "column": 9}, "end_point": {"row": 113, "column": 12}}, {"id": 444, "type": "else_clause", "text": "else\n\t{\n\t\treturn NULL;\n\t}", "parent": 413, "children": [], "start_point": {"row": 115, "column": 1}, "end_point": {"row": 118, "column": 2}}, {"id": 445, "type": "return_statement", "text": "return NULL;", "parent": 444, "children": [446], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 14}}, {"id": 446, "type": "null", "text": "NULL", "parent": 445, "children": [447], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 13}}, {"id": 447, "type": "NULL", "text": "NULL", "parent": 446, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 13}}, {"id": 448, "type": "function_definition", "text": "static bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)\n{\n\tbool arrayError;\n\n\t// Get as array objects\n\tPyArrayObject *seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n\tPyArrayObject *seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n\tPyArrayObject *matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n\t\tNPY_FLOAT, NPY_ARRAY_IN_ARRAY);\n\n\t// Check error conditions\n\tarrayError = false;\n\tif(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)\n\t{\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(seqANp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 1\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(seqBNp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}\n\t\n\t// Clean up and return if error\n\tif(arrayError)\n\t{\n\t\tPy_XDECREF(seqANp);\n\t\tPy_XDECREF(seqBNp);\n\t\tPy_XDECREF(matrixNp);\n\t\treturn false;\n\t}\n\telse\n\t{\n\t\t*seqANpPtr = seqANp;\n\t\t*seqBNpPtr = seqBNp;\n\t\t*matrixNpPtr = matrixNp;\n\t\treturn true;\n\t}\n}", "parent": null, "children": [449, 450], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 183, "column": 1}}, {"id": 449, "type": "primitive_type", "text": "bool", "parent": 448, "children": [], "start_point": {"row": 121, "column": 7}, "end_point": {"row": 121, "column": 11}}, {"id": 450, "type": "function_declarator", "text": "pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)", "parent": 448, "children": [451, 452], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 124, "column": 60}}, {"id": 451, "type": "identifier", "text": "pwalignGetArgArrays", "parent": 450, "children": [], "start_point": {"row": 121, "column": 12}, "end_point": {"row": 121, "column": 31}}, {"id": 452, "type": "parameter_list", "text": "(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)", "parent": 450, "children": [453, 458, 463, 468, 475, 482], "start_point": {"row": 121, "column": 31}, "end_point": {"row": 124, "column": 60}}, {"id": 453, "type": "parameter_declaration", "text": "PyObject *seqAObj", "parent": 452, "children": [454, 455], "start_point": {"row": 121, "column": 32}, "end_point": {"row": 121, "column": 49}}, {"id": 454, "type": "type_identifier", "text": "PyObject", "parent": 453, "children": [], "start_point": {"row": 121, "column": 32}, "end_point": {"row": 121, "column": 40}}, {"id": 455, "type": "pointer_declarator", "text": "*seqAObj", "parent": 453, "children": [456, 457], "start_point": {"row": 121, "column": 41}, "end_point": {"row": 121, "column": 49}}, {"id": 456, "type": "*", "text": "*", "parent": 455, "children": [], "start_point": {"row": 121, "column": 41}, "end_point": {"row": 121, "column": 42}}, {"id": 457, "type": "identifier", "text": "seqAObj", "parent": 455, "children": [], "start_point": {"row": 121, "column": 42}, "end_point": {"row": 121, "column": 49}}, {"id": 458, "type": "parameter_declaration", "text": "PyObject *seqBObj", "parent": 452, "children": [459, 460], "start_point": {"row": 121, "column": 51}, "end_point": {"row": 121, "column": 68}}, {"id": 459, "type": "type_identifier", "text": "PyObject", "parent": 458, "children": [], "start_point": {"row": 121, "column": 51}, "end_point": {"row": 121, "column": 59}}, {"id": 460, "type": "pointer_declarator", "text": "*seqBObj", "parent": 458, "children": [461, 462], "start_point": {"row": 121, "column": 60}, "end_point": {"row": 121, "column": 68}}, {"id": 461, "type": "*", "text": "*", "parent": 460, "children": [], "start_point": {"row": 121, "column": 60}, "end_point": {"row": 121, "column": 61}}, {"id": 462, "type": "identifier", "text": "seqBObj", "parent": 460, "children": [], "start_point": {"row": 121, "column": 61}, "end_point": {"row": 121, "column": 68}}, {"id": 463, "type": "parameter_declaration", "text": "PyObject *matrixObj", "parent": 452, "children": [464, 465], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 51}}, {"id": 464, "type": "type_identifier", "text": "PyObject", "parent": 463, "children": [], "start_point": {"row": 122, "column": 32}, "end_point": {"row": 122, "column": 40}}, {"id": 465, "type": "pointer_declarator", "text": "*matrixObj", "parent": 463, "children": [466, 467], "start_point": {"row": 122, "column": 41}, "end_point": {"row": 122, "column": 51}}, {"id": 466, "type": "*", "text": "*", "parent": 465, "children": [], "start_point": {"row": 122, "column": 41}, "end_point": {"row": 122, "column": 42}}, {"id": 467, "type": "identifier", "text": "matrixObj", "parent": 465, "children": [], "start_point": {"row": 122, "column": 42}, "end_point": {"row": 122, "column": 51}}, {"id": 468, "type": "parameter_declaration", "text": "PyArrayObject **seqANpPtr", "parent": 452, "children": [469, 470], "start_point": {"row": 122, "column": 53}, "end_point": {"row": 122, "column": 78}}, {"id": 469, "type": "type_identifier", "text": "PyArrayObject", "parent": 468, "children": [], "start_point": {"row": 122, "column": 53}, "end_point": {"row": 122, "column": 66}}, {"id": 470, "type": "pointer_declarator", "text": "**seqANpPtr", "parent": 468, "children": [471, 472], "start_point": {"row": 122, "column": 67}, "end_point": {"row": 122, "column": 78}}, {"id": 471, "type": "*", "text": "*", "parent": 470, "children": [], "start_point": {"row": 122, "column": 67}, "end_point": {"row": 122, "column": 68}}, {"id": 472, "type": "pointer_declarator", "text": "*seqANpPtr", "parent": 470, "children": [473, 474], "start_point": {"row": 122, "column": 68}, "end_point": {"row": 122, "column": 78}}, {"id": 473, "type": "*", "text": "*", "parent": 472, "children": [], "start_point": {"row": 122, "column": 68}, "end_point": {"row": 122, "column": 69}}, {"id": 474, "type": "identifier", "text": "seqANpPtr", "parent": 472, "children": [], "start_point": {"row": 122, "column": 69}, "end_point": {"row": 122, "column": 78}}, {"id": 475, "type": "parameter_declaration", "text": "PyArrayObject **seqBNpPtr", "parent": 452, "children": [476, 477], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 57}}, {"id": 476, "type": "type_identifier", "text": "PyArrayObject", "parent": 475, "children": [], "start_point": {"row": 123, "column": 32}, "end_point": {"row": 123, "column": 45}}, {"id": 477, "type": "pointer_declarator", "text": "**seqBNpPtr", "parent": 475, "children": [478, 479], "start_point": {"row": 123, "column": 46}, "end_point": {"row": 123, "column": 57}}, {"id": 478, "type": "*", "text": "*", "parent": 477, "children": [], "start_point": {"row": 123, "column": 46}, "end_point": {"row": 123, "column": 47}}, {"id": 479, "type": "pointer_declarator", "text": "*seqBNpPtr", "parent": 477, "children": [480, 481], "start_point": {"row": 123, "column": 47}, "end_point": {"row": 123, "column": 57}}, {"id": 480, "type": "*", "text": "*", "parent": 479, "children": [], "start_point": {"row": 123, "column": 47}, "end_point": {"row": 123, "column": 48}}, {"id": 481, "type": "identifier", "text": "seqBNpPtr", "parent": 479, "children": [], "start_point": {"row": 123, "column": 48}, "end_point": {"row": 123, "column": 57}}, {"id": 482, "type": "parameter_declaration", "text": "PyArrayObject **matrixNpPtr", "parent": 452, "children": [483, 484], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 59}}, {"id": 483, "type": "type_identifier", "text": "PyArrayObject", "parent": 482, "children": [], "start_point": {"row": 124, "column": 32}, "end_point": {"row": 124, "column": 45}}, {"id": 484, "type": "pointer_declarator", "text": "**matrixNpPtr", "parent": 482, "children": [485, 486], "start_point": {"row": 124, "column": 46}, "end_point": {"row": 124, "column": 59}}, {"id": 485, "type": "*", "text": "*", "parent": 484, "children": [], "start_point": {"row": 124, "column": 46}, "end_point": {"row": 124, "column": 47}}, {"id": 486, "type": "pointer_declarator", "text": "*matrixNpPtr", "parent": 484, "children": [487, 488], "start_point": {"row": 124, "column": 47}, "end_point": {"row": 124, "column": 59}}, {"id": 487, "type": "*", "text": "*", "parent": 486, "children": [], "start_point": {"row": 124, "column": 47}, "end_point": {"row": 124, "column": 48}}, {"id": 488, "type": "identifier", "text": "matrixNpPtr", "parent": 486, "children": [], "start_point": {"row": 124, "column": 48}, "end_point": {"row": 124, "column": 59}}, {"id": 489, "type": "declaration", "text": "bool arrayError;", "parent": 448, "children": [490, 491], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 17}}, {"id": 490, "type": "primitive_type", "text": "bool", "parent": 489, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 5}}, {"id": 491, "type": "identifier", "text": "arrayError", "parent": 489, "children": [], "start_point": {"row": 126, "column": 6}, "end_point": {"row": 126, "column": 16}}, {"id": 492, "type": "declaration", "text": "PyArrayObject *seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY);", "parent": 448, "children": [493, 494], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 130, "column": 33}}, {"id": 493, "type": "type_identifier", "text": "PyArrayObject", "parent": 492, "children": [], "start_point": {"row": 129, "column": 1}, "end_point": {"row": 129, "column": 14}}, {"id": 494, "type": "init_declarator", "text": "*seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY)", "parent": 492, "children": [495, 498, 499], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 130, "column": 32}}, {"id": 495, "type": "pointer_declarator", "text": "*seqANp", "parent": 494, "children": [496, 497], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 22}}, {"id": 496, "type": "*", "text": "*", "parent": 495, "children": [], "start_point": {"row": 129, "column": 15}, "end_point": {"row": 129, "column": 16}}, {"id": 497, "type": "identifier", "text": "seqANp", "parent": 495, "children": [], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 22}}, {"id": 498, "type": "=", "text": "=", "parent": 494, "children": [], "start_point": {"row": 129, "column": 23}, "end_point": {"row": 129, "column": 24}}, {"id": 499, "type": "cast_expression", "text": "(PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY)", "parent": 494, "children": [500, 504], "start_point": {"row": 129, "column": 25}, "end_point": {"row": 130, "column": 32}}, {"id": 500, "type": "type_descriptor", "text": "PyArrayObject*", "parent": 499, "children": [501, 502], "start_point": {"row": 129, "column": 26}, "end_point": {"row": 129, "column": 40}}, {"id": 501, "type": "type_identifier", "text": "PyArrayObject", "parent": 500, "children": [], "start_point": {"row": 129, "column": 26}, "end_point": {"row": 129, "column": 39}}, {"id": 502, "type": "abstract_pointer_declarator", "text": "*", "parent": 500, "children": [503], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 40}}, {"id": 503, "type": "*", "text": "*", "parent": 502, "children": [], "start_point": {"row": 129, "column": 39}, "end_point": {"row": 129, "column": 40}}, {"id": 504, "type": "call_expression", "text": "PyArray_FROM_OTF(seqAObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY)", "parent": 499, "children": [505, 506], "start_point": {"row": 129, "column": 41}, "end_point": {"row": 130, "column": 32}}, {"id": 505, "type": "identifier", "text": "PyArray_FROM_OTF", "parent": 504, "children": [], "start_point": {"row": 129, "column": 41}, "end_point": {"row": 129, "column": 57}}, {"id": 506, "type": "argument_list", "text": "(seqAObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY)", "parent": 504, "children": [507, 508, 509], "start_point": {"row": 129, "column": 57}, "end_point": {"row": 130, "column": 32}}, {"id": 507, "type": "identifier", "text": "seqAObj", "parent": 506, "children": [], "start_point": {"row": 129, "column": 58}, "end_point": {"row": 129, "column": 65}}, {"id": 508, "type": "identifier", "text": "NPY_UBYTE", "parent": 506, "children": [], "start_point": {"row": 130, "column": 2}, "end_point": {"row": 130, "column": 11}}, {"id": 509, "type": "identifier", "text": "NPY_ARRAY_IN_ARRAY", "parent": 506, "children": [], "start_point": {"row": 130, "column": 13}, "end_point": {"row": 130, "column": 31}}, {"id": 510, "type": "declaration", "text": "PyArrayObject *seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY);", "parent": 448, "children": [511, 512], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 132, "column": 33}}, {"id": 511, "type": "type_identifier", "text": "PyArrayObject", "parent": 510, "children": [], "start_point": {"row": 131, "column": 1}, "end_point": {"row": 131, "column": 14}}, {"id": 512, "type": "init_declarator", "text": "*seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY)", "parent": 510, "children": [513, 516, 517], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 132, "column": 32}}, {"id": 513, "type": "pointer_declarator", "text": "*seqBNp", "parent": 512, "children": [514, 515], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 22}}, {"id": 514, "type": "*", "text": "*", "parent": 513, "children": [], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 16}}, {"id": 515, "type": "identifier", "text": "seqBNp", "parent": 513, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 22}}, {"id": 516, "type": "=", "text": "=", "parent": 512, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 24}}, {"id": 517, "type": "cast_expression", "text": "(PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY)", "parent": 512, "children": [518, 522], "start_point": {"row": 131, "column": 25}, "end_point": {"row": 132, "column": 32}}, {"id": 518, "type": "type_descriptor", "text": "PyArrayObject*", "parent": 517, "children": [519, 520], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 131, "column": 40}}, {"id": 519, "type": "type_identifier", "text": "PyArrayObject", "parent": 518, "children": [], "start_point": {"row": 131, "column": 26}, "end_point": {"row": 131, "column": 39}}, {"id": 520, "type": "abstract_pointer_declarator", "text": "*", "parent": 518, "children": [521], "start_point": {"row": 131, "column": 39}, "end_point": {"row": 131, "column": 40}}, {"id": 521, "type": "*", "text": "*", "parent": 520, "children": [], "start_point": {"row": 131, "column": 39}, "end_point": {"row": 131, "column": 40}}, {"id": 522, "type": "call_expression", "text": "PyArray_FROM_OTF(seqBObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY)", "parent": 517, "children": [523, 524], "start_point": {"row": 131, "column": 41}, "end_point": {"row": 132, "column": 32}}, {"id": 523, "type": "identifier", "text": "PyArray_FROM_OTF", "parent": 522, "children": [], "start_point": {"row": 131, "column": 41}, "end_point": {"row": 131, "column": 57}}, {"id": 524, "type": "argument_list", "text": "(seqBObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY)", "parent": 522, "children": [525, 526, 527], "start_point": {"row": 131, "column": 57}, "end_point": {"row": 132, "column": 32}}, {"id": 525, "type": "identifier", "text": "seqBObj", "parent": 524, "children": [], "start_point": {"row": 131, "column": 58}, "end_point": {"row": 131, "column": 65}}, {"id": 526, "type": "identifier", "text": "NPY_UBYTE", "parent": 524, "children": [], "start_point": {"row": 132, "column": 2}, "end_point": {"row": 132, "column": 11}}, {"id": 527, "type": "identifier", "text": "NPY_ARRAY_IN_ARRAY", "parent": 524, "children": [], "start_point": {"row": 132, "column": 13}, "end_point": {"row": 132, "column": 31}}, {"id": 528, "type": "declaration", "text": "PyArrayObject *matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n\t\tNPY_FLOAT, NPY_ARRAY_IN_ARRAY);", "parent": 448, "children": [529, 530], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 134, "column": 33}}, {"id": 529, "type": "type_identifier", "text": "PyArrayObject", "parent": 528, "children": [], "start_point": {"row": 133, "column": 1}, "end_point": {"row": 133, "column": 14}}, {"id": 530, "type": "init_declarator", "text": "*matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n\t\tNPY_FLOAT, NPY_ARRAY_IN_ARRAY)", "parent": 528, "children": [531, 534, 535], "start_point": {"row": 133, "column": 15}, "end_point": {"row": 134, "column": 32}}, {"id": 531, "type": "pointer_declarator", "text": "*matrixNp", "parent": 530, "children": [532, 533], "start_point": {"row": 133, "column": 15}, "end_point": {"row": 133, "column": 24}}, {"id": 532, "type": "*", "text": "*", "parent": 531, "children": [], "start_point": {"row": 133, "column": 15}, "end_point": {"row": 133, "column": 16}}, {"id": 533, "type": "identifier", "text": "matrixNp", "parent": 531, "children": [], "start_point": {"row": 133, "column": 16}, "end_point": {"row": 133, "column": 24}}, {"id": 534, "type": "=", "text": "=", "parent": 530, "children": [], "start_point": {"row": 133, "column": 25}, "end_point": {"row": 133, "column": 26}}, {"id": 535, "type": "cast_expression", "text": "(PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n\t\tNPY_FLOAT, NPY_ARRAY_IN_ARRAY)", "parent": 530, "children": [536, 540], "start_point": {"row": 133, "column": 27}, "end_point": {"row": 134, "column": 32}}, {"id": 536, "type": "type_descriptor", "text": "PyArrayObject*", "parent": 535, "children": [537, 538], "start_point": {"row": 133, "column": 28}, "end_point": {"row": 133, "column": 42}}, {"id": 537, "type": "type_identifier", "text": "PyArrayObject", "parent": 536, "children": [], "start_point": {"row": 133, "column": 28}, "end_point": {"row": 133, "column": 41}}, {"id": 538, "type": "abstract_pointer_declarator", "text": "*", "parent": 536, "children": [539], "start_point": {"row": 133, "column": 41}, "end_point": {"row": 133, "column": 42}}, {"id": 539, "type": "*", "text": "*", "parent": 538, "children": [], "start_point": {"row": 133, "column": 41}, "end_point": {"row": 133, "column": 42}}, {"id": 540, "type": "call_expression", "text": "PyArray_FROM_OTF(matrixObj,\n\t\tNPY_FLOAT, NPY_ARRAY_IN_ARRAY)", "parent": 535, "children": [541, 542], "start_point": {"row": 133, "column": 43}, "end_point": {"row": 134, "column": 32}}, {"id": 541, "type": "identifier", "text": "PyArray_FROM_OTF", "parent": 540, "children": [], "start_point": {"row": 133, "column": 43}, "end_point": {"row": 133, "column": 59}}, {"id": 542, "type": "argument_list", "text": "(matrixObj,\n\t\tNPY_FLOAT, NPY_ARRAY_IN_ARRAY)", "parent": 540, "children": [543, 544, 545], "start_point": {"row": 133, "column": 59}, "end_point": {"row": 134, "column": 32}}, {"id": 543, "type": "identifier", "text": "matrixObj", "parent": 542, "children": [], "start_point": {"row": 133, "column": 60}, "end_point": {"row": 133, "column": 69}}, {"id": 544, "type": "identifier", "text": "NPY_FLOAT", "parent": 542, "children": [], "start_point": {"row": 134, "column": 2}, "end_point": {"row": 134, "column": 11}}, {"id": 545, "type": "identifier", "text": "NPY_ARRAY_IN_ARRAY", "parent": 542, "children": [], "start_point": {"row": 134, "column": 13}, "end_point": {"row": 134, "column": 31}}, {"id": 546, "type": "assignment_expression", "text": "arrayError = false", "parent": 448, "children": [547, 548, 549], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 19}}, {"id": 547, "type": "identifier", "text": "arrayError", "parent": 546, "children": [], "start_point": {"row": 137, "column": 1}, "end_point": {"row": 137, "column": 11}}, {"id": 548, "type": "=", "text": "=", "parent": 546, "children": [], "start_point": {"row": 137, "column": 12}, "end_point": {"row": 137, "column": 13}}, {"id": 549, "type": "false", "text": "false", "parent": 546, "children": [], "start_point": {"row": 137, "column": 14}, "end_point": {"row": 137, "column": 19}}, {"id": 550, "type": "if_statement", "text": "if(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)\n\t{\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(seqANp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 1\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(seqBNp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}", "parent": 448, "children": [551, 575], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 166, "column": 2}}, {"id": 551, "type": "parenthesized_expression", "text": "(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)", "parent": 550, "children": [552], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 138, "column": 57}}, {"id": 552, "type": "binary_expression", "text": "seqANp == NULL || seqBNp == NULL || matrixNp == NULL", "parent": 551, "children": [553, 565, 566], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 56}}, {"id": 553, "type": "binary_expression", "text": "seqANp == NULL || seqBNp == NULL", "parent": 552, "children": [554, 559, 560], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 36}}, {"id": 554, "type": "binary_expression", "text": "seqANp == NULL", "parent": 553, "children": [555, 556, 557], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 18}}, {"id": 555, "type": "identifier", "text": "seqANp", "parent": 554, "children": [], "start_point": {"row": 138, "column": 4}, "end_point": {"row": 138, "column": 10}}, {"id": 556, "type": "==", "text": "==", "parent": 554, "children": [], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 13}}, {"id": 557, "type": "null", "text": "NULL", "parent": 554, "children": [558], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 18}}, {"id": 558, "type": "NULL", "text": "NULL", "parent": 557, "children": [], "start_point": {"row": 138, "column": 14}, "end_point": {"row": 138, "column": 18}}, {"id": 559, "type": "||", "text": "||", "parent": 553, "children": [], "start_point": {"row": 138, "column": 19}, "end_point": {"row": 138, "column": 21}}, {"id": 560, "type": "binary_expression", "text": "seqBNp == NULL", "parent": 553, "children": [561, 562, 563], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 36}}, {"id": 561, "type": "identifier", "text": "seqBNp", "parent": 560, "children": [], "start_point": {"row": 138, "column": 22}, "end_point": {"row": 138, "column": 28}}, {"id": 562, "type": "==", "text": "==", "parent": 560, "children": [], "start_point": {"row": 138, "column": 29}, "end_point": {"row": 138, "column": 31}}, {"id": 563, "type": "null", "text": "NULL", "parent": 560, "children": [564], "start_point": {"row": 138, "column": 32}, "end_point": {"row": 138, "column": 36}}, {"id": 564, "type": "NULL", "text": "NULL", "parent": 563, "children": [], "start_point": {"row": 138, "column": 32}, "end_point": {"row": 138, "column": 36}}, {"id": 565, "type": "||", "text": "||", "parent": 552, "children": [], "start_point": {"row": 138, "column": 37}, "end_point": {"row": 138, "column": 39}}, {"id": 566, "type": "binary_expression", "text": "matrixNp == NULL", "parent": 552, "children": [567, 568, 569], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 56}}, {"id": 567, "type": "identifier", "text": "matrixNp", "parent": 566, "children": [], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 48}}, {"id": 568, "type": "==", "text": "==", "parent": 566, "children": [], "start_point": {"row": 138, "column": 49}, "end_point": {"row": 138, "column": 51}}, {"id": 569, "type": "null", "text": "NULL", "parent": 566, "children": [570], "start_point": {"row": 138, "column": 52}, "end_point": {"row": 138, "column": 56}}, {"id": 570, "type": "NULL", "text": "NULL", "parent": 569, "children": [], "start_point": {"row": 138, "column": 52}, "end_point": {"row": 138, "column": 56}}, {"id": 571, "type": "assignment_expression", "text": "arrayError = true", "parent": 550, "children": [572, 573, 574], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 19}}, {"id": 572, "type": "identifier", "text": "arrayError", "parent": 571, "children": [], "start_point": {"row": 140, "column": 2}, "end_point": {"row": 140, "column": 12}}, {"id": 573, "type": "=", "text": "=", "parent": 571, "children": [], "start_point": {"row": 140, "column": 13}, "end_point": {"row": 140, "column": 14}}, {"id": 574, "type": "true", "text": "true", "parent": 571, "children": [], "start_point": {"row": 140, "column": 15}, "end_point": {"row": 140, "column": 19}}, {"id": 575, "type": "else_clause", "text": "else if(PyArray_NDIM(seqANp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 1\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(seqBNp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}", "parent": 550, "children": [576], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 166, "column": 2}}, {"id": 576, "type": "if_statement", "text": "if(PyArray_NDIM(seqANp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 1\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(seqBNp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}", "parent": 575, "children": [577, 594], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 166, "column": 2}}, {"id": 577, "type": "parenthesized_expression", "text": "(PyArray_NDIM(seqANp) != 1)", "parent": 576, "children": [578], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 35}}, {"id": 578, "type": "binary_expression", "text": "PyArray_NDIM(seqANp) != 1", "parent": 577, "children": [579, 583, 584], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 34}}, {"id": 579, "type": "call_expression", "text": "PyArray_NDIM(seqANp)", "parent": 578, "children": [580, 581], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 29}}, {"id": 580, "type": "identifier", "text": "PyArray_NDIM", "parent": 579, "children": [], "start_point": {"row": 142, "column": 9}, "end_point": {"row": 142, "column": 21}}, {"id": 581, "type": "argument_list", "text": "(seqANp)", "parent": 579, "children": [582], "start_point": {"row": 142, "column": 21}, "end_point": {"row": 142, "column": 29}}, {"id": 582, "type": "identifier", "text": "seqANp", "parent": 581, "children": [], "start_point": {"row": 142, "column": 22}, "end_point": {"row": 142, "column": 28}}, {"id": 583, "type": "!=", "text": "!=", "parent": 578, "children": [], "start_point": {"row": 142, "column": 30}, "end_point": {"row": 142, "column": 32}}, {"id": 584, "type": "number_literal", "text": "1", "parent": 578, "children": [], "start_point": {"row": 142, "column": 33}, "end_point": {"row": 142, "column": 34}}, {"id": 585, "type": "call_expression", "text": "PyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 1\")", "parent": 576, "children": [586, 587], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 76}}, {"id": 586, "type": "identifier", "text": "PyErr_SetString", "parent": 585, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 17}}, {"id": 587, "type": "argument_list", "text": "(PyExc_ValueError, \"Bad number of dimensions on sequnce 1\")", "parent": 585, "children": [588, 589], "start_point": {"row": 144, "column": 17}, "end_point": {"row": 144, "column": 76}}, {"id": 588, "type": "identifier", "text": "PyExc_ValueError", "parent": 587, "children": [], "start_point": {"row": 144, "column": 18}, "end_point": {"row": 144, "column": 34}}, {"id": 589, "type": "string_literal", "text": "\"Bad number of dimensions on sequnce 1\"", "parent": 587, "children": [], "start_point": {"row": 144, "column": 36}, "end_point": {"row": 144, "column": 75}}, {"id": 590, "type": "assignment_expression", "text": "arrayError = true", "parent": 576, "children": [591, 592, 593], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 19}}, {"id": 591, "type": "identifier", "text": "arrayError", "parent": 590, "children": [], "start_point": {"row": 145, "column": 2}, "end_point": {"row": 145, "column": 12}}, {"id": 592, "type": "=", "text": "=", "parent": 590, "children": [], "start_point": {"row": 145, "column": 13}, "end_point": {"row": 145, "column": 14}}, {"id": 593, "type": "true", "text": "true", "parent": 590, "children": [], "start_point": {"row": 145, "column": 15}, "end_point": {"row": 145, "column": 19}}, {"id": 594, "type": "else_clause", "text": "else if(PyArray_NDIM(seqBNp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}", "parent": 576, "children": [595], "start_point": {"row": 147, "column": 1}, "end_point": {"row": 166, "column": 2}}, {"id": 595, "type": "if_statement", "text": "if(PyArray_NDIM(seqBNp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}", "parent": 594, "children": [596, 613], "start_point": {"row": 147, "column": 6}, "end_point": {"row": 166, "column": 2}}, {"id": 596, "type": "parenthesized_expression", "text": "(PyArray_NDIM(seqBNp) != 1)", "parent": 595, "children": [597], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 35}}, {"id": 597, "type": "binary_expression", "text": "PyArray_NDIM(seqBNp) != 1", "parent": 596, "children": [598, 602, 603], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 34}}, {"id": 598, "type": "call_expression", "text": "PyArray_NDIM(seqBNp)", "parent": 597, "children": [599, 600], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 29}}, {"id": 599, "type": "identifier", "text": "PyArray_NDIM", "parent": 598, "children": [], "start_point": {"row": 147, "column": 9}, "end_point": {"row": 147, "column": 21}}, {"id": 600, "type": "argument_list", "text": "(seqBNp)", "parent": 598, "children": [601], "start_point": {"row": 147, "column": 21}, "end_point": {"row": 147, "column": 29}}, {"id": 601, "type": "identifier", "text": "seqBNp", "parent": 600, "children": [], "start_point": {"row": 147, "column": 22}, "end_point": {"row": 147, "column": 28}}, {"id": 602, "type": "!=", "text": "!=", "parent": 597, "children": [], "start_point": {"row": 147, "column": 30}, "end_point": {"row": 147, "column": 32}}, {"id": 603, "type": "number_literal", "text": "1", "parent": 597, "children": [], "start_point": {"row": 147, "column": 33}, "end_point": {"row": 147, "column": 34}}, {"id": 604, "type": "call_expression", "text": "PyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\")", "parent": 595, "children": [605, 606], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 76}}, {"id": 605, "type": "identifier", "text": "PyErr_SetString", "parent": 604, "children": [], "start_point": {"row": 149, "column": 2}, "end_point": {"row": 149, "column": 17}}, {"id": 606, "type": "argument_list", "text": "(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\")", "parent": 604, "children": [607, 608], "start_point": {"row": 149, "column": 17}, "end_point": {"row": 149, "column": 76}}, {"id": 607, "type": "identifier", "text": "PyExc_ValueError", "parent": 606, "children": [], "start_point": {"row": 149, "column": 18}, "end_point": {"row": 149, "column": 34}}, {"id": 608, "type": "string_literal", "text": "\"Bad number of dimensions on sequnce 2\"", "parent": 606, "children": [], "start_point": {"row": 149, "column": 36}, "end_point": {"row": 149, "column": 75}}, {"id": 609, "type": "assignment_expression", "text": "arrayError = true", "parent": 595, "children": [610, 611, 612], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 19}}, {"id": 610, "type": "identifier", "text": "arrayError", "parent": 609, "children": [], "start_point": {"row": 150, "column": 2}, "end_point": {"row": 150, "column": 12}}, {"id": 611, "type": "=", "text": "=", "parent": 609, "children": [], "start_point": {"row": 150, "column": 13}, "end_point": {"row": 150, "column": 14}}, {"id": 612, "type": "true", "text": "true", "parent": 609, "children": [], "start_point": {"row": 150, "column": 15}, "end_point": {"row": 150, "column": 19}}, {"id": 613, "type": "else_clause", "text": "else if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}", "parent": 595, "children": [614], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 166, "column": 2}}, {"id": 614, "type": "if_statement", "text": "if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}", "parent": 613, "children": [615, 632], "start_point": {"row": 152, "column": 6}, "end_point": {"row": 166, "column": 2}}, {"id": 615, "type": "parenthesized_expression", "text": "(PyArray_NDIM(matrixNp) != 2)", "parent": 614, "children": [616], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 37}}, {"id": 616, "type": "binary_expression", "text": "PyArray_NDIM(matrixNp) != 2", "parent": 615, "children": [617, 621, 622], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 36}}, {"id": 617, "type": "call_expression", "text": "PyArray_NDIM(matrixNp)", "parent": 616, "children": [618, 619], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 31}}, {"id": 618, "type": "identifier", "text": "PyArray_NDIM", "parent": 617, "children": [], "start_point": {"row": 152, "column": 9}, "end_point": {"row": 152, "column": 21}}, {"id": 619, "type": "argument_list", "text": "(matrixNp)", "parent": 617, "children": [620], "start_point": {"row": 152, "column": 21}, "end_point": {"row": 152, "column": 31}}, {"id": 620, "type": "identifier", "text": "matrixNp", "parent": 619, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 30}}, {"id": 621, "type": "!=", "text": "!=", "parent": 616, "children": [], "start_point": {"row": 152, "column": 32}, "end_point": {"row": 152, "column": 34}}, {"id": 622, "type": "number_literal", "text": "2", "parent": 616, "children": [], "start_point": {"row": 152, "column": 35}, "end_point": {"row": 152, "column": 36}}, {"id": 623, "type": "call_expression", "text": "PyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\")", "parent": 614, "children": [624, 625], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 73}}, {"id": 624, "type": "identifier", "text": "PyErr_SetString", "parent": 623, "children": [], "start_point": {"row": 154, "column": 2}, "end_point": {"row": 154, "column": 17}}, {"id": 625, "type": "argument_list", "text": "(PyExc_ValueError, \"Bad number of dimensions on matrix\")", "parent": 623, "children": [626, 627], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 154, "column": 73}}, {"id": 626, "type": "identifier", "text": "PyExc_ValueError", "parent": 625, "children": [], "start_point": {"row": 154, "column": 18}, "end_point": {"row": 154, "column": 34}}, {"id": 627, "type": "string_literal", "text": "\"Bad number of dimensions on matrix\"", "parent": 625, "children": [], "start_point": {"row": 154, "column": 36}, "end_point": {"row": 154, "column": 72}}, {"id": 628, "type": "assignment_expression", "text": "arrayError = true", "parent": 614, "children": [629, 630, 631], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 19}}, {"id": 629, "type": "identifier", "text": "arrayError", "parent": 628, "children": [], "start_point": {"row": 155, "column": 2}, "end_point": {"row": 155, "column": 12}}, {"id": 630, "type": "=", "text": "=", "parent": 628, "children": [], "start_point": {"row": 155, "column": 13}, "end_point": {"row": 155, "column": 14}}, {"id": 631, "type": "true", "text": "true", "parent": 628, "children": [], "start_point": {"row": 155, "column": 15}, "end_point": {"row": 155, "column": 19}}, {"id": 632, "type": "else_clause", "text": "else\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}", "parent": 614, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 166, "column": 2}}, {"id": 633, "type": "declaration", "text": "npy_intp *matrixShape = PyArray_DIMS(matrixNp);", "parent": 632, "children": [634, 635], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 49}}, {"id": 634, "type": "type_identifier", "text": "npy_intp", "parent": 633, "children": [], "start_point": {"row": 159, "column": 2}, "end_point": {"row": 159, "column": 10}}, {"id": 635, "type": "init_declarator", "text": "*matrixShape = PyArray_DIMS(matrixNp)", "parent": 633, "children": [636, 639, 640], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 48}}, {"id": 636, "type": "pointer_declarator", "text": "*matrixShape", "parent": 635, "children": [637, 638], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 23}}, {"id": 637, "type": "*", "text": "*", "parent": 636, "children": [], "start_point": {"row": 159, "column": 11}, "end_point": {"row": 159, "column": 12}}, {"id": 638, "type": "identifier", "text": "matrixShape", "parent": 636, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 23}}, {"id": 639, "type": "=", "text": "=", "parent": 635, "children": [], "start_point": {"row": 159, "column": 24}, "end_point": {"row": 159, "column": 25}}, {"id": 640, "type": "call_expression", "text": "PyArray_DIMS(matrixNp)", "parent": 635, "children": [641, 642], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 48}}, {"id": 641, "type": "identifier", "text": "PyArray_DIMS", "parent": 640, "children": [], "start_point": {"row": 159, "column": 26}, "end_point": {"row": 159, "column": 38}}, {"id": 642, "type": "argument_list", "text": "(matrixNp)", "parent": 640, "children": [643], "start_point": {"row": 159, "column": 38}, "end_point": {"row": 159, "column": 48}}, {"id": 643, "type": "identifier", "text": "matrixNp", "parent": 642, "children": [], "start_point": {"row": 159, "column": 39}, "end_point": {"row": 159, "column": 47}}, {"id": 644, "type": "if_statement", "text": "if(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}", "parent": 632, "children": [645], "start_point": {"row": 160, "column": 2}, "end_point": {"row": 165, "column": 3}}, {"id": 645, "type": "parenthesized_expression", "text": "(matrixShape[0] != 256 || matrixShape[1] != 256)", "parent": 644, "children": [646], "start_point": {"row": 160, "column": 4}, "end_point": {"row": 160, "column": 52}}, {"id": 646, "type": "binary_expression", "text": "matrixShape[0] != 256 || matrixShape[1] != 256", "parent": 645, "children": [647, 653, 654], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 51}}, {"id": 647, "type": "binary_expression", "text": "matrixShape[0] != 256", "parent": 646, "children": [648, 651, 652], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 26}}, {"id": 648, "type": "subscript_expression", "text": "matrixShape[0]", "parent": 647, "children": [649, 650], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 19}}, {"id": 649, "type": "identifier", "text": "matrixShape", "parent": 648, "children": [], "start_point": {"row": 160, "column": 5}, "end_point": {"row": 160, "column": 16}}, {"id": 650, "type": "number_literal", "text": "0", "parent": 648, "children": [], "start_point": {"row": 160, "column": 17}, "end_point": {"row": 160, "column": 18}}, {"id": 651, "type": "!=", "text": "!=", "parent": 647, "children": [], "start_point": {"row": 160, "column": 20}, "end_point": {"row": 160, "column": 22}}, {"id": 652, "type": "number_literal", "text": "256", "parent": 647, "children": [], "start_point": {"row": 160, "column": 23}, "end_point": {"row": 160, "column": 26}}, {"id": 653, "type": "||", "text": "||", "parent": 646, "children": [], "start_point": {"row": 160, "column": 27}, "end_point": {"row": 160, "column": 29}}, {"id": 654, "type": "binary_expression", "text": "matrixShape[1] != 256", "parent": 646, "children": [655, 658, 659], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 51}}, {"id": 655, "type": "subscript_expression", "text": "matrixShape[1]", "parent": 654, "children": [656, 657], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 44}}, {"id": 656, "type": "identifier", "text": "matrixShape", "parent": 655, "children": [], "start_point": {"row": 160, "column": 30}, "end_point": {"row": 160, "column": 41}}, {"id": 657, "type": "number_literal", "text": "1", "parent": 655, "children": [], "start_point": {"row": 160, "column": 42}, "end_point": {"row": 160, "column": 43}}, {"id": 658, "type": "!=", "text": "!=", "parent": 654, "children": [], "start_point": {"row": 160, "column": 45}, "end_point": {"row": 160, "column": 47}}, {"id": 659, "type": "number_literal", "text": "256", "parent": 654, "children": [], "start_point": {"row": 160, "column": 48}, "end_point": {"row": 160, "column": 51}}, {"id": 660, "type": "call_expression", "text": "PyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\")", "parent": 644, "children": [661, 662], "start_point": {"row": 162, "column": 3}, "end_point": {"row": 163, "column": 36}}, {"id": 661, "type": "identifier", "text": "PyErr_SetString", "parent": 660, "children": [], "start_point": {"row": 162, "column": 3}, "end_point": {"row": 162, "column": 18}}, {"id": 662, "type": "argument_list", "text": "(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\")", "parent": 660, "children": [663, 664], "start_point": {"row": 162, "column": 18}, "end_point": {"row": 163, "column": 36}}, {"id": 663, "type": "identifier", "text": "PyExc_ValueError", "parent": 662, "children": [], "start_point": {"row": 162, "column": 19}, "end_point": {"row": 162, "column": 35}}, {"id": 664, "type": "concatenated_string", "text": "\"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\"", "parent": 662, "children": [665, 666], "start_point": {"row": 162, "column": 37}, "end_point": {"row": 163, "column": 35}}, {"id": 665, "type": "string_literal", "text": "\"Bad shape on matrix - \"", "parent": 664, "children": [], "start_point": {"row": 162, "column": 37}, "end_point": {"row": 162, "column": 61}}, {"id": 666, "type": "string_literal", "text": "\"should be (256, 256)\"", "parent": 664, "children": [], "start_point": {"row": 163, "column": 13}, "end_point": {"row": 163, "column": 35}}, {"id": 667, "type": "assignment_expression", "text": "arrayError = true", "parent": 644, "children": [668, 669, 670], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 20}}, {"id": 668, "type": "identifier", "text": "arrayError", "parent": 667, "children": [], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 13}}, {"id": 669, "type": "=", "text": "=", "parent": 667, "children": [], "start_point": {"row": 164, "column": 14}, "end_point": {"row": 164, "column": 15}}, {"id": 670, "type": "true", "text": "true", "parent": 667, "children": [], "start_point": {"row": 164, "column": 16}, "end_point": {"row": 164, "column": 20}}, {"id": 671, "type": "if_statement", "text": "if(arrayError)\n\t{\n\t\tPy_XDECREF(seqANp);\n\t\tPy_XDECREF(seqBNp);\n\t\tPy_XDECREF(matrixNp);\n\t\treturn false;\n\t}\n\telse\n\t{\n\t\t*seqANpPtr = seqANp;\n\t\t*seqBNpPtr = seqBNp;\n\t\t*matrixNpPtr = matrixNp;\n\t\treturn true;\n\t}", "parent": 448, "children": [672, 688], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 182, "column": 2}}, {"id": 672, "type": "parenthesized_expression", "text": "(arrayError)", "parent": 671, "children": [673], "start_point": {"row": 169, "column": 3}, "end_point": {"row": 169, "column": 15}}, {"id": 673, "type": "identifier", "text": "arrayError", "parent": 672, "children": [], "start_point": {"row": 169, "column": 4}, "end_point": {"row": 169, "column": 14}}, {"id": 674, "type": "call_expression", "text": "Py_XDECREF(seqANp)", "parent": 671, "children": [675, 676], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 20}}, {"id": 675, "type": "identifier", "text": "Py_XDECREF", "parent": 674, "children": [], "start_point": {"row": 171, "column": 2}, "end_point": {"row": 171, "column": 12}}, {"id": 676, "type": "argument_list", "text": "(seqANp)", "parent": 674, "children": [677], "start_point": {"row": 171, "column": 12}, "end_point": {"row": 171, "column": 20}}, {"id": 677, "type": "identifier", "text": "seqANp", "parent": 676, "children": [], "start_point": {"row": 171, "column": 13}, "end_point": {"row": 171, "column": 19}}, {"id": 678, "type": "call_expression", "text": "Py_XDECREF(seqBNp)", "parent": 671, "children": [679, 680], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 20}}, {"id": 679, "type": "identifier", "text": "Py_XDECREF", "parent": 678, "children": [], "start_point": {"row": 172, "column": 2}, "end_point": {"row": 172, "column": 12}}, {"id": 680, "type": "argument_list", "text": "(seqBNp)", "parent": 678, "children": [681], "start_point": {"row": 172, "column": 12}, "end_point": {"row": 172, "column": 20}}, {"id": 681, "type": "identifier", "text": "seqBNp", "parent": 680, "children": [], "start_point": {"row": 172, "column": 13}, "end_point": {"row": 172, "column": 19}}, {"id": 682, "type": "call_expression", "text": "Py_XDECREF(matrixNp)", "parent": 671, "children": [683, 684], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 22}}, {"id": 683, "type": "identifier", "text": "Py_XDECREF", "parent": 682, "children": [], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 12}}, {"id": 684, "type": "argument_list", "text": "(matrixNp)", "parent": 682, "children": [685], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 22}}, {"id": 685, "type": "identifier", "text": "matrixNp", "parent": 684, "children": [], "start_point": {"row": 173, "column": 13}, "end_point": {"row": 173, "column": 21}}, {"id": 686, "type": "return_statement", "text": "return false;", "parent": 671, "children": [687], "start_point": {"row": 174, "column": 2}, "end_point": {"row": 174, "column": 15}}, {"id": 687, "type": "false", "text": "false", "parent": 686, "children": [], "start_point": {"row": 174, "column": 9}, "end_point": {"row": 174, "column": 14}}, {"id": 688, "type": "else_clause", "text": "else\n\t{\n\t\t*seqANpPtr = seqANp;\n\t\t*seqBNpPtr = seqBNp;\n\t\t*matrixNpPtr = matrixNp;\n\t\treturn true;\n\t}", "parent": 671, "children": [], "start_point": {"row": 176, "column": 1}, "end_point": {"row": 182, "column": 2}}, {"id": 689, "type": "assignment_expression", "text": "*seqANpPtr = seqANp", "parent": 688, "children": [690, 693, 694], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 21}}, {"id": 690, "type": "pointer_expression", "text": "*seqANpPtr", "parent": 689, "children": [691, 692], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 12}}, {"id": 691, "type": "*", "text": "*", "parent": 690, "children": [], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 178, "column": 3}}, {"id": 692, "type": "identifier", "text": "seqANpPtr", "parent": 690, "children": [], "start_point": {"row": 178, "column": 3}, "end_point": {"row": 178, "column": 12}}, {"id": 693, "type": "=", "text": "=", "parent": 689, "children": [], "start_point": {"row": 178, "column": 13}, "end_point": {"row": 178, "column": 14}}, {"id": 694, "type": "identifier", "text": "seqANp", "parent": 689, "children": [], "start_point": {"row": 178, "column": 15}, "end_point": {"row": 178, "column": 21}}, {"id": 695, "type": "assignment_expression", "text": "*seqBNpPtr = seqBNp", "parent": 688, "children": [696, 699, 700], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 21}}, {"id": 696, "type": "pointer_expression", "text": "*seqBNpPtr", "parent": 695, "children": [697, 698], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 12}}, {"id": 697, "type": "*", "text": "*", "parent": 696, "children": [], "start_point": {"row": 179, "column": 2}, "end_point": {"row": 179, "column": 3}}, {"id": 698, "type": "identifier", "text": "seqBNpPtr", "parent": 696, "children": [], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 12}}, {"id": 699, "type": "=", "text": "=", "parent": 695, "children": [], "start_point": {"row": 179, "column": 13}, "end_point": {"row": 179, "column": 14}}, {"id": 700, "type": "identifier", "text": "seqBNp", "parent": 695, "children": [], "start_point": {"row": 179, "column": 15}, "end_point": {"row": 179, "column": 21}}, {"id": 701, "type": "assignment_expression", "text": "*matrixNpPtr = matrixNp", "parent": 688, "children": [702, 705, 706], "start_point": {"row": 180, "column": 2}, "end_point": {"row": 180, "column": 25}}, {"id": 702, "type": "pointer_expression", "text": "*matrixNpPtr", "parent": 701, "children": [703, 704], "start_point": {"row": 180, "column": 2}, "end_point": {"row": 180, "column": 14}}, {"id": 703, "type": "*", "text": "*", "parent": 702, "children": [], "start_point": {"row": 180, "column": 2}, "end_point": {"row": 180, "column": 3}}, {"id": 704, "type": "identifier", "text": "matrixNpPtr", "parent": 702, "children": [], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 180, "column": 14}}, {"id": 705, "type": "=", "text": "=", "parent": 701, "children": [], "start_point": {"row": 180, "column": 15}, "end_point": {"row": 180, "column": 16}}, {"id": 706, "type": "identifier", "text": "matrixNp", "parent": 701, "children": [], "start_point": {"row": 180, "column": 17}, "end_point": {"row": 180, "column": 25}}, {"id": 707, "type": "return_statement", "text": "return true;", "parent": 688, "children": [708], "start_point": {"row": 181, "column": 2}, "end_point": {"row": 181, "column": 14}}, {"id": 708, "type": "true", "text": "true", "parent": 707, "children": [], "start_point": {"row": 181, "column": 9}, "end_point": {"row": 181, "column": 13}}]}, "node_categories": {"declarations": {"functions": [26, 41, 100, 102, 131, 135, 448, 450], "variables": [6, 13, 22, 29, 34, 39, 44, 49, 54, 59, 66, 73, 80, 105, 107, 138, 143, 148, 159, 170, 174, 182, 186, 191, 194, 197, 309, 338, 375, 420, 429, 453, 458, 463, 468, 475, 482, 489, 492, 510, 528, 633], "classes": [187, 188], "imports": [0, 1, 3, 4], "modules": [], "enums": []}, "statements": {"expressions": [114, 121, 122, 128, 203, 204, 206, 211, 213, 215, 217, 219, 225, 226, 228, 234, 236, 238, 246, 251, 258, 263, 270, 278, 284, 288, 293, 298, 304, 313, 320, 327, 330, 333, 334, 351, 356, 369, 370, 382, 387, 391, 395, 401, 405, 409, 414, 415, 425, 436, 499, 504, 517, 522, 535, 540, 551, 552, 553, 554, 560, 566, 577, 578, 579, 585, 596, 597, 598, 604, 615, 616, 617, 623, 640, 645, 646, 647, 648, 654, 655, 660, 672, 674, 678, 682, 690, 696, 702], "assignments": [243, 255, 267, 275, 283, 297, 303, 317, 348, 363, 546, 571, 590, 609, 628, 667, 689, 695, 701], "loops": [], "conditionals": [10, 17, 23, 27, 30, 33, 35, 38, 42, 45, 48, 50, 53, 55, 58, 60, 65, 67, 72, 74, 79, 81, 84, 89, 90, 91, 101, 103, 108, 112, 115, 118, 119, 120, 123, 129, 132, 136, 139, 142, 144, 147, 149, 152, 155, 158, 160, 163, 166, 169, 172, 173, 175, 178, 181, 183, 184, 185, 189, 190, 192, 193, 195, 196, 198, 201, 202, 207, 209, 212, 214, 216, 218, 220, 224, 229, 231, 232, 233, 235, 237, 239, 244, 248, 252, 254, 256, 260, 264, 266, 268, 271, 273, 276, 279, 281, 285, 286, 290, 294, 296, 299, 300, 302, 305, 306, 308, 310, 312, 314, 316, 318, 321, 323, 324, 325, 326, 328, 329, 331, 332, 335, 339, 342, 347, 349, 353, 357, 360, 361, 364, 368, 371, 376, 380, 384, 388, 390, 392, 394, 396, 398, 399, 400, 402, 404, 406, 408, 410, 412, 413, 416, 423, 428, 430, 434, 437, 440, 441, 443, 451, 454, 457, 459, 462, 464, 467, 469, 474, 476, 481, 483, 488, 491, 493, 497, 501, 505, 507, 508, 509, 511, 515, 519, 523, 525, 526, 527, 529, 533, 537, 541, 543, 544, 545, 547, 550, 555, 561, 567, 572, 576, 580, 582, 586, 588, 591, 595, 599, 601, 605, 607, 610, 614, 618, 620, 624, 626, 629, 634, 638, 641, 643, 644, 649, 656, 661, 663, 668, 671, 673, 675, 677, 679, 681, 683, 685, 692, 694, 698, 700, 704, 706], "returns": [127, 221, 240, 442, 445, 686, 707], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 12, 19, 88, 97, 117, 210, 274, 282, 337, 343, 346, 359, 439, 584, 589, 603, 608, 622, 627, 650, 652, 657, 659, 664, 665, 666], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "pwalign_pwalign(PyObject *self, PyObject *args)"}, {"node_id": 41, "universal_type": "function", "name": "unknown", "text_snippet": "pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "PyMODINIT_FUNC init_pwalign(void)\n{\n\tPyObject *m = Py_InitModule3(\"_pwalign\", module_methods, module"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "init_pwalign(void)"}, {"node_id": 131, "universal_type": "function", "name": "PairwiseScoringMethod", "text_snippet": "static PyObject *pwalign_pwalign(PyObject *self, PyObject *args)\n{\n\tPyObject *seqAObj, *seqBObj, *ma"}, {"node_id": 135, "universal_type": "function", "name": "unknown", "text_snippet": "pwalign_pwalign(PyObject *self, PyObject *args)"}, {"node_id": 448, "universal_type": "function", "name": "pwalignGetArgArrays", "text_snippet": "static bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n "}, {"node_id": 450, "universal_type": "function", "name": "unknown", "text_snippet": "pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *"}], "class_declarations": [{"node_id": 187, "universal_type": "class", "name": "PairwiseScoringMethod", "text_snippet": "struct PairwiseScoringMethod"}, {"node_id": 188, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"pwalign.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <numpy/arrayobject.h>\n"}, {"node_id": 4, "text": "#include"}]}, "original_source_code": "#include \"pwalign.h\"\n\n#include <numpy/arrayobject.h>\n\n\n// Docstrings\nstatic char module_docstring[] = \"C module for pairwise alignment\";\nstatic char pwalign_docstring[] = \"\\\nPerforms global optimal pairwise alignment of two sequences using Gotoh's \\\nalgorithm\";\n\n\n// pwalign python method declaration\nstatic PyObject *pwalign_pwalign(PyObject *self, PyObject *args);\n\n\n// Helper function declarations\nstatic bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr);\n\n\n// Module methods\nstatic PyMethodDef module_methods[] = {\n\t{\"pwalign\", pwalign_pwalign, METH_VARARGS, pwalign_docstring},\n\t{NULL, NULL, 0, NULL}\n};\n\n\n// Module initialization\nPyMODINIT_FUNC init_pwalign(void)\n{\n\tPyObject *m = Py_InitModule3(\"_pwalign\", module_methods, module_docstring);\n\tif(m == NULL)\n\t\treturn;\n\n\t// Load numpy functionality\n\timport_array();\n}\n\n\n// pwalign python method definition\nstatic PyObject *pwalign_pwalign(PyObject *self, PyObject *args)\n{\n\tPyObject *seqAObj, *seqBObj, *matrixObj;\n\tPyArrayObject *seqANp, *seqBNp, *matrixNp;\n\tfloat gap_open, gap_extend;\n\tnpy_ubyte *seqA, *seqB;\n\tnpy_intp lenA, lenB;\n\tstruct PairwiseScoringMethod sm;\n\tnpy_intp tbLen;\n\tnpy_float alignScore;\n\tPyArrayObject *gapArray;\n\n\t// Parse input tuple\n\tif(!PyArg_ParseTuple(args, \"OOOff\", &seqAObj, &seqBObj, &matrixObj, &gap_open, &gap_extend))\n\t\treturn NULL;\n\n\t// Interpret input objects as Numpy arrays\n\tif(!pwalignGetArgArrays(seqAObj, seqBObj, matrixObj, &seqANp, &seqBNp, &matrixNp))\n\t\treturn NULL;\n\n\t// Get sequence arrays and length\n\tseqA = (npy_ubyte*)PyArray_DATA(seqANp);\n\tseqB = (npy_ubyte*)PyArray_DATA(seqBNp);\n\tlenA = PyArray_DIM(seqANp, 0);\n\tlenB = PyArray_DIM(seqBNp, 0);\n\n\t// Create scoring method\n\tsm.matrix = (npy_float*)PyArray_DATA(matrixNp);\n\tsm.o = gap_open;\n\tsm.e = gap_extend;\n\n\t// Run the alignment algorithm and get a traceback array\n\tseq_edit traceback[lenA + lenB];\n\ttbLen = gotohAlign(seqA, lenA, seqB, lenB, &sm, traceback, &alignScore);\n\n\t// Check if alignment successful, if so create gap array\n\tif(tbLen != -1)\n\t{\n\t\tnpy_intp gapDims[2] = {2, tbLen};\n\t\tgapArray = (PyArrayObject*)PyArray_SimpleNew(2, gapDims, NPY_UBYTE);\n\t}\n\telse\n\t{\n\t\tgapArray = NULL;\n\t}\n\n\t// Only proceed to fill it if there haven't been any erros so far\n\t// (not actually sure, but I think PyArray_SimpleNew() can return NULL\n\t// on failure, so try to catch that)\n\tif(gapArray != NULL)\n\t{\n\t\t// Get pointer to array data and increment reference count\n\t\tnpy_bool *gapData = (npy_bool*)PyArray_DATA(gapArray);\n\t\tPy_INCREF(gapArray);\n\n\t\t// Fill in gap array\n\t\ttracebackToGaps(traceback, tbLen, gapData);\n\t}\n\n\t// Decrement reference counts on Python objects that were created in this\n\t// function (regardless of whether creating the gap array succeeded or not)\n\tPy_DECREF(seqANp);\n\tPy_DECREF(seqBNp);\n\tPy_DECREF(matrixNp);\n\n\t// Build and return output tuple\n\tif(gapArray != NULL)\n\t{\n\t\tfloat alignScoreFloat = (float)alignScore;\n\t\tPyObject *ret = Py_BuildValue(\"Of\", gapArray, alignScoreFloat);\n\t\treturn ret;\n\t}\n\telse\n\t{\n\t\treturn NULL;\n\t}\n}\n\nstatic bool pwalignGetArgArrays(PyObject *seqAObj, PyObject *seqBObj,\n PyObject *matrixObj, PyArrayObject **seqANpPtr,\n PyArrayObject **seqBNpPtr,\n PyArrayObject **matrixNpPtr)\n{\n\tbool arrayError;\n\n\t// Get as array objects\n\tPyArrayObject *seqANp = (PyArrayObject*)PyArray_FROM_OTF(seqAObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n\tPyArrayObject *seqBNp = (PyArrayObject*)PyArray_FROM_OTF(seqBObj,\n\t\tNPY_UBYTE, NPY_ARRAY_IN_ARRAY);\n\tPyArrayObject *matrixNp = (PyArrayObject*)PyArray_FROM_OTF(matrixObj,\n\t\tNPY_FLOAT, NPY_ARRAY_IN_ARRAY);\n\n\t// Check error conditions\n\tarrayError = false;\n\tif(seqANp == NULL || seqBNp == NULL || matrixNp == NULL)\n\t{\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(seqANp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 1\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(seqBNp) != 1)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on sequnce 2\");\n\t\tarrayError = true;\n\t}\n\telse if(PyArray_NDIM(matrixNp) != 2)\n\t{\n\t\tPyErr_SetString(PyExc_ValueError, \"Bad number of dimensions on matrix\");\n\t\tarrayError = true;\n\t}\n\telse\n\t{\n\t\tnpy_intp *matrixShape = PyArray_DIMS(matrixNp);\n\t\tif(matrixShape[0] != 256 || matrixShape[1] != 256)\n\t\t{\n\t\t\tPyErr_SetString(PyExc_ValueError, \"Bad shape on matrix - \"\n\t\t\t\t\t\t\t\t\t\t\t \"should be (256, 256)\");\n\t\t\tarrayError = true;\n\t\t}\n\t}\n\t\n\t// Clean up and return if error\n\tif(arrayError)\n\t{\n\t\tPy_XDECREF(seqANp);\n\t\tPy_XDECREF(seqBNp);\n\t\tPy_XDECREF(matrixNp);\n\t\treturn false;\n\t}\n\telse\n\t{\n\t\t*seqANpPtr = seqANp;\n\t\t*seqBNpPtr = seqBNp;\n\t\t*matrixNpPtr = matrixNp;\n\t\treturn true;\n\t}\n}\n"}
80,374
c
#include "argz.c" int readme_percent_suffix(struct argz_ull *ull, const char *s) { return s && s[0] && strcmp(s, "%"); } int main(int argc, char **argv) { struct argz_ull size = { .min = 1, .suffix = argz_size_suffix, }; struct argz_ull time = { .suffix = argz_time_suffix, }; struct argz_ull percent = { .min = 0, .max = 100, .value = 50, .suffix = readme_percent_suffix, }; struct argz_path file = {0}; struct argz z[] = { {"size" , "a size value", argz_ull, &size}, {"time" , "a time value", argz_ull, &time}, {"percent", "a custom percent value", argz_ull, &percent}, {"file", "a file value", argz_path, &file}, {0}}; int err = argz_main(argc, argv, z); if (err) return err; printf("size=%llu time=%llu percent=%llu file=%s\n", size.value, time.value, percent.value, file.path ? file.path : ""); return 0; }
27.35
34
(translation_unit) "#include "argz.c"\n\nint\nreadme_percent_suffix(struct argz_ull *ull, const char *s)\n{\n return s && s[0] && strcmp(s, "%");\n}\n\nint\nmain(int argc, char **argv)\n{\n struct argz_ull size = {\n .min = 1,\n .suffix = argz_size_suffix,\n };\n struct argz_ull time = {\n .suffix = argz_time_suffix,\n };\n struct argz_ull percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n };\n struct argz_path file = {0};\n struct argz z[] = {\n {"size" , "a size value", argz_ull, &size},\n {"time" , "a time value", argz_ull, &time},\n {"percent", "a custom percent value", argz_ull, &percent},\n {"file", "a file value", argz_path, &file},\n {0}};\n\n int err = argz_main(argc, argv, z);\n\n if (err)\n return err;\n\n printf("size=%llu time=%llu percent=%llu file=%s\n",\n size.value, time.value, percent.value, file.path ? file.path : "");\n\n return 0;\n}\n" (preproc_include) "#include "argz.c"\n" (#include) "#include" (string_literal) ""argz.c"" (") """ (string_content) "argz.c" (") """ (function_definition) "int\nreadme_percent_suffix(struct argz_ull *ull, const char *s)\n{\n return s && s[0] && strcmp(s, "%");\n}" (primitive_type) "int" (function_declarator) "readme_percent_suffix(struct argz_ull *ull, const char *s)" (identifier) "readme_percent_suffix" (parameter_list) "(struct argz_ull *ull, const char *s)" (() "(" (parameter_declaration) "struct argz_ull *ull" (struct_specifier) "struct argz_ull" (struct) "struct" (type_identifier) "argz_ull" (pointer_declarator) "*ull" (*) "*" (identifier) "ull" (,) "," (parameter_declaration) "const char *s" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*s" (*) "*" (identifier) "s" ()) ")" (compound_statement) "{\n return s && s[0] && strcmp(s, "%");\n}" ({) "{" (return_statement) "return s && s[0] && strcmp(s, "%");" (return) "return" (binary_expression) "s && s[0] && strcmp(s, "%")" (binary_expression) "s && s[0]" (identifier) "s" (&&) "&&" (subscript_expression) "s[0]" (identifier) "s" ([) "[" (number_literal) "0" (]) "]" (&&) "&&" (call_expression) "strcmp(s, "%")" (identifier) "strcmp" (argument_list) "(s, "%")" (() "(" (identifier) "s" (,) "," (string_literal) ""%"" (") """ (string_content) "%" (") """ ()) ")" (;) ";" (}) "}" (function_definition) "int\nmain(int argc, char **argv)\n{\n struct argz_ull size = {\n .min = 1,\n .suffix = argz_size_suffix,\n };\n struct argz_ull time = {\n .suffix = argz_time_suffix,\n };\n struct argz_ull percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n };\n struct argz_path file = {0};\n struct argz z[] = {\n {"size" , "a size value", argz_ull, &size},\n {"time" , "a time value", argz_ull, &time},\n {"percent", "a custom percent value", argz_ull, &percent},\n {"file", "a file value", argz_path, &file},\n {0}};\n\n int err = argz_main(argc, argv, z);\n\n if (err)\n return err;\n\n printf("size=%llu time=%llu percent=%llu file=%s\n",\n size.value, time.value, percent.value, file.path ? file.path : "");\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main(int argc, char **argv)" (identifier) "main" (parameter_list) "(int argc, char **argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char **argv" (primitive_type) "char" (pointer_declarator) "**argv" (*) "*" (pointer_declarator) "*argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n struct argz_ull size = {\n .min = 1,\n .suffix = argz_size_suffix,\n };\n struct argz_ull time = {\n .suffix = argz_time_suffix,\n };\n struct argz_ull percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n };\n struct argz_path file = {0};\n struct argz z[] = {\n {"size" , "a size value", argz_ull, &size},\n {"time" , "a time value", argz_ull, &time},\n {"percent", "a custom percent value", argz_ull, &percent},\n {"file", "a file value", argz_path, &file},\n {0}};\n\n int err = argz_main(argc, argv, z);\n\n if (err)\n return err;\n\n printf("size=%llu time=%llu percent=%llu file=%s\n",\n size.value, time.value, percent.value, file.path ? file.path : "");\n\n return 0;\n}" ({) "{" (declaration) "struct argz_ull size = {\n .min = 1,\n .suffix = argz_size_suffix,\n };" (struct_specifier) "struct argz_ull" (struct) "struct" (type_identifier) "argz_ull" (init_declarator) "size = {\n .min = 1,\n .suffix = argz_size_suffix,\n }" (identifier) "size" (=) "=" (initializer_list) "{\n .min = 1,\n .suffix = argz_size_suffix,\n }" ({) "{" (initializer_pair) ".min = 1" (field_designator) ".min" (.) "." (field_identifier) "min" (=) "=" (number_literal) "1" (,) "," (initializer_pair) ".suffix = argz_size_suffix" (field_designator) ".suffix" (.) "." (field_identifier) "suffix" (=) "=" (identifier) "argz_size_suffix" (,) "," (}) "}" (;) ";" (declaration) "struct argz_ull time = {\n .suffix = argz_time_suffix,\n };" (struct_specifier) "struct argz_ull" (struct) "struct" (type_identifier) "argz_ull" (init_declarator) "time = {\n .suffix = argz_time_suffix,\n }" (identifier) "time" (=) "=" (initializer_list) "{\n .suffix = argz_time_suffix,\n }" ({) "{" (initializer_pair) ".suffix = argz_time_suffix" (field_designator) ".suffix" (.) "." (field_identifier) "suffix" (=) "=" (identifier) "argz_time_suffix" (,) "," (}) "}" (;) ";" (declaration) "struct argz_ull percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n };" (struct_specifier) "struct argz_ull" (struct) "struct" (type_identifier) "argz_ull" (init_declarator) "percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n }" (identifier) "percent" (=) "=" (initializer_list) "{\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n }" ({) "{" (initializer_pair) ".min = 0" (field_designator) ".min" (.) "." (field_identifier) "min" (=) "=" (number_literal) "0" (,) "," (initializer_pair) ".max = 100" (field_designator) ".max" (.) "." (field_identifier) "max" (=) "=" (number_literal) "100" (,) "," (initializer_pair) ".value = 50" (field_designator) ".value" (.) "." (field_identifier) "value" (=) "=" (number_literal) "50" (,) "," (initializer_pair) ".suffix = readme_percent_suffix" (field_designator) ".suffix" (.) "." (field_identifier) "suffix" (=) "=" (identifier) "readme_percent_suffix" (,) "," (}) "}" (;) ";" (declaration) "struct argz_path file = {0};" (struct_specifier) "struct argz_path" (struct) "struct" (type_identifier) "argz_path" (init_declarator) "file = {0}" (identifier) "file" (=) "=" (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (;) ";" (declaration) "struct argz z[] = {\n {"size" , "a size value", argz_ull, &size},\n {"time" , "a time value", argz_ull, &time},\n {"percent", "a custom percent value", argz_ull, &percent},\n {"file", "a file value", argz_path, &file},\n {0}};" (struct_specifier) "struct argz" (struct) "struct" (type_identifier) "argz" (init_declarator) "z[] = {\n {"size" , "a size value", argz_ull, &size},\n {"time" , "a time value", argz_ull, &time},\n {"percent", "a custom percent value", argz_ull, &percent},\n {"file", "a file value", argz_path, &file},\n {0}}" (array_declarator) "z[]" (identifier) "z" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n {"size" , "a size value", argz_ull, &size},\n {"time" , "a time value", argz_ull, &time},\n {"percent", "a custom percent value", argz_ull, &percent},\n {"file", "a file value", argz_path, &file},\n {0}}" ({) "{" (initializer_list) "{"size" , "a size value", argz_ull, &size}" ({) "{" (string_literal) ""size"" (") """ (string_content) "size" (") """ (,) "," (string_literal) ""a size value"" (") """ (string_content) "a size value" (") """ (,) "," (identifier) "argz_ull" (,) "," (pointer_expression) "&size" (&) "&" (identifier) "size" (}) "}" (,) "," (initializer_list) "{"time" , "a time value", argz_ull, &time}" ({) "{" (string_literal) ""time"" (") """ (string_content) "time" (") """ (,) "," (string_literal) ""a time value"" (") """ (string_content) "a time value" (") """ (,) "," (identifier) "argz_ull" (,) "," (pointer_expression) "&time" (&) "&" (identifier) "time" (}) "}" (,) "," (initializer_list) "{"percent", "a custom percent value", argz_ull, &percent}" ({) "{" (string_literal) ""percent"" (") """ (string_content) "percent" (") """ (,) "," (string_literal) ""a custom percent value"" (") """ (string_content) "a custom percent value" (") """ (,) "," (identifier) "argz_ull" (,) "," (pointer_expression) "&percent" (&) "&" (identifier) "percent" (}) "}" (,) "," (initializer_list) "{"file", "a file value", argz_path, &file}" ({) "{" (string_literal) ""file"" (") """ (string_content) "file" (") """ (,) "," (string_literal) ""a file value"" (") """ (string_content) "a file value" (") """ (,) "," (identifier) "argz_path" (,) "," (pointer_expression) "&file" (&) "&" (identifier) "file" (}) "}" (,) "," (initializer_list) "{0}" ({) "{" (number_literal) "0" (}) "}" (}) "}" (;) ";" (declaration) "int err = argz_main(argc, argv, z);" (primitive_type) "int" (init_declarator) "err = argz_main(argc, argv, z)" (identifier) "err" (=) "=" (call_expression) "argz_main(argc, argv, z)" (identifier) "argz_main" (argument_list) "(argc, argv, z)" (() "(" (identifier) "argc" (,) "," (identifier) "argv" (,) "," (identifier) "z" ()) ")" (;) ";" (if_statement) "if (err)\n return err;" (if) "if" (parenthesized_expression) "(err)" (() "(" (identifier) "err" ()) ")" (return_statement) "return err;" (return) "return" (identifier) "err" (;) ";" (expression_statement) "printf("size=%llu time=%llu percent=%llu file=%s\n",\n size.value, time.value, percent.value, file.path ? file.path : "");" (call_expression) "printf("size=%llu time=%llu percent=%llu file=%s\n",\n size.value, time.value, percent.value, file.path ? file.path : "")" (identifier) "printf" (argument_list) "("size=%llu time=%llu percent=%llu file=%s\n",\n size.value, time.value, percent.value, file.path ? file.path : "")" (() "(" (string_literal) ""size=%llu time=%llu percent=%llu file=%s\n"" (") """ (string_content) "size=%llu time=%llu percent=%llu file=%s" (escape_sequence) "\n" (") """ (,) "," (field_expression) "size.value" (identifier) "size" (.) "." (field_identifier) "value" (,) "," (field_expression) "time.value" (identifier) "time" (.) "." (field_identifier) "value" (,) "," (field_expression) "percent.value" (identifier) "percent" (.) "." (field_identifier) "value" (,) "," (conditional_expression) "file.path ? file.path : """ (field_expression) "file.path" (identifier) "file" (.) "." (field_identifier) "path" (?) "?" (field_expression) "file.path" (identifier) "file" (.) "." (field_identifier) "path" (:) ":" (string_literal) """" (") """ (") """ ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
337
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.35, "nodes": 193, "errors": 0, "source_hash": "685871c7519823f07d2ea1a254dfb05718c6d49037773d01c633113512687c3d", "categorized_nodes": 133}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"argz.c\"\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": "\"argz.c\"", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "function_definition", "text": "int\nreadme_percent_suffix(struct argz_ull *ull, const char *s)\n{\n return s && s[0] && strcmp(s, \"%\");\n}", "parent": null, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 6, "column": 1}}, {"id": 4, "type": "primitive_type", "text": "int", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 3}}, {"id": 5, "type": "function_declarator", "text": "readme_percent_suffix(struct argz_ull *ull, const char *s)", "parent": 3, "children": [6, 7], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 58}}, {"id": 6, "type": "identifier", "text": "readme_percent_suffix", "parent": 5, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 21}}, {"id": 7, "type": "parameter_list", "text": "(struct argz_ull *ull, const char *s)", "parent": 5, "children": [8, 15], "start_point": {"row": 3, "column": 21}, "end_point": {"row": 3, "column": 58}}, {"id": 8, "type": "parameter_declaration", "text": "struct argz_ull *ull", "parent": 7, "children": [9, 12], "start_point": {"row": 3, "column": 22}, "end_point": {"row": 3, "column": 42}}, {"id": 9, "type": "struct_specifier", "text": "struct argz_ull", "parent": 8, "children": [10, 11], "start_point": {"row": 3, "column": 22}, "end_point": {"row": 3, "column": 37}}, {"id": 10, "type": "struct", "text": "struct", "parent": 9, "children": [], "start_point": {"row": 3, "column": 22}, "end_point": {"row": 3, "column": 28}}, {"id": 11, "type": "type_identifier", "text": "argz_ull", "parent": 9, "children": [], "start_point": {"row": 3, "column": 29}, "end_point": {"row": 3, "column": 37}}, {"id": 12, "type": "pointer_declarator", "text": "*ull", "parent": 8, "children": [13, 14], "start_point": {"row": 3, "column": 38}, "end_point": {"row": 3, "column": 42}}, {"id": 13, "type": "*", "text": "*", "parent": 12, "children": [], "start_point": {"row": 3, "column": 38}, "end_point": {"row": 3, "column": 39}}, {"id": 14, "type": "identifier", "text": "ull", "parent": 12, "children": [], "start_point": {"row": 3, "column": 39}, "end_point": {"row": 3, "column": 42}}, {"id": 15, "type": "parameter_declaration", "text": "const char *s", "parent": 7, "children": [16, 17], "start_point": {"row": 3, "column": 44}, "end_point": {"row": 3, "column": 57}}, {"id": 16, "type": "primitive_type", "text": "char", "parent": 15, "children": [], "start_point": {"row": 3, "column": 50}, "end_point": {"row": 3, "column": 54}}, {"id": 17, "type": "pointer_declarator", "text": "*s", "parent": 15, "children": [18, 19], "start_point": {"row": 3, "column": 55}, "end_point": {"row": 3, "column": 57}}, {"id": 18, "type": "*", "text": "*", "parent": 17, "children": [], "start_point": {"row": 3, "column": 55}, "end_point": {"row": 3, "column": 56}}, {"id": 19, "type": "identifier", "text": "s", "parent": 17, "children": [], "start_point": {"row": 3, "column": 56}, "end_point": {"row": 3, "column": 57}}, {"id": 20, "type": "return_statement", "text": "return s && s[0] && strcmp(s, \"%\");", "parent": 3, "children": [21], "start_point": {"row": 5, "column": 4}, "end_point": {"row": 5, "column": 39}}, {"id": 21, "type": "binary_expression", "text": "s && s[0] && strcmp(s, \"%\")", "parent": 20, "children": [22, 28, 29], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 38}}, {"id": 22, "type": "binary_expression", "text": "s && s[0]", "parent": 21, "children": [23, 24, 25], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 20}}, {"id": 23, "type": "identifier", "text": "s", "parent": 22, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 12}}, {"id": 24, "type": "&&", "text": "&&", "parent": 22, "children": [], "start_point": {"row": 5, "column": 13}, "end_point": {"row": 5, "column": 15}}, {"id": 25, "type": "subscript_expression", "text": "s[0]", "parent": 22, "children": [26, 27], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 20}}, {"id": 26, "type": "identifier", "text": "s", "parent": 25, "children": [], "start_point": {"row": 5, "column": 16}, "end_point": {"row": 5, "column": 17}}, {"id": 27, "type": "number_literal", "text": "0", "parent": 25, "children": [], "start_point": {"row": 5, "column": 18}, "end_point": {"row": 5, "column": 19}}, {"id": 28, "type": "&&", "text": "&&", "parent": 21, "children": [], "start_point": {"row": 5, "column": 21}, "end_point": {"row": 5, "column": 23}}, {"id": 29, "type": "call_expression", "text": "strcmp(s, \"%\")", "parent": 21, "children": [30, 31], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 38}}, {"id": 30, "type": "identifier", "text": "strcmp", "parent": 29, "children": [], "start_point": {"row": 5, "column": 24}, "end_point": {"row": 5, "column": 30}}, {"id": 31, "type": "argument_list", "text": "(s, \"%\")", "parent": 29, "children": [32, 33], "start_point": {"row": 5, "column": 30}, "end_point": {"row": 5, "column": 38}}, {"id": 32, "type": "identifier", "text": "s", "parent": 31, "children": [], "start_point": {"row": 5, "column": 31}, "end_point": {"row": 5, "column": 32}}, {"id": 33, "type": "string_literal", "text": "\"%\"", "parent": 31, "children": [], "start_point": {"row": 5, "column": 34}, "end_point": {"row": 5, "column": 37}}, {"id": 34, "type": "function_definition", "text": "int\nmain(int argc, char **argv)\n{\n struct argz_ull size = {\n .min = 1,\n .suffix = argz_size_suffix,\n };\n struct argz_ull time = {\n .suffix = argz_time_suffix,\n };\n struct argz_ull percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n };\n struct argz_path file = {0};\n struct argz z[] = {\n {\"size\" , \"a size value\", argz_ull, &size},\n {\"time\" , \"a time value\", argz_ull, &time},\n {\"percent\", \"a custom percent value\", argz_ull, &percent},\n {\"file\", \"a file value\", argz_path, &file},\n {0}};\n\n int err = argz_main(argc, argv, z);\n\n if (err)\n return err;\n\n printf(\"size=%llu time=%llu percent=%llu file=%s\\n\",\n size.value, time.value, percent.value, file.path ? file.path : \"\");\n\n return 0;\n}", "parent": null, "children": [35, 36], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 3}}, {"id": 36, "type": "function_declarator", "text": "main(int argc, char **argv)", "parent": 34, "children": [37, 38], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 27}}, {"id": 37, "type": "identifier", "text": "main", "parent": 36, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 4}}, {"id": 38, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 36, "children": [39, 42], "start_point": {"row": 9, "column": 4}, "end_point": {"row": 9, "column": 27}}, {"id": 39, "type": "parameter_declaration", "text": "int argc", "parent": 38, "children": [40, 41], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 13}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 9, "column": 5}, "end_point": {"row": 9, "column": 8}}, {"id": 41, "type": "identifier", "text": "argc", "parent": 39, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 13}}, {"id": 42, "type": "parameter_declaration", "text": "char **argv", "parent": 38, "children": [43, 44], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 26}}, {"id": 43, "type": "primitive_type", "text": "char", "parent": 42, "children": [], "start_point": {"row": 9, "column": 15}, "end_point": {"row": 9, "column": 19}}, {"id": 44, "type": "pointer_declarator", "text": "**argv", "parent": 42, "children": [45, 46], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 26}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 9, "column": 20}, "end_point": {"row": 9, "column": 21}}, {"id": 46, "type": "pointer_declarator", "text": "*argv", "parent": 44, "children": [47, 48], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 26}}, {"id": 47, "type": "*", "text": "*", "parent": 46, "children": [], "start_point": {"row": 9, "column": 21}, "end_point": {"row": 9, "column": 22}}, {"id": 48, "type": "identifier", "text": "argv", "parent": 46, "children": [], "start_point": {"row": 9, "column": 22}, "end_point": {"row": 9, "column": 26}}, {"id": 49, "type": "declaration", "text": "struct argz_ull size = {\n .min = 1,\n .suffix = argz_size_suffix,\n };", "parent": 34, "children": [50, 53], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 14, "column": 6}}, {"id": 50, "type": "struct_specifier", "text": "struct argz_ull", "parent": 49, "children": [51, 52], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 19}}, {"id": 51, "type": "struct", "text": "struct", "parent": 50, "children": [], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 11, "column": 10}}, {"id": 52, "type": "type_identifier", "text": "argz_ull", "parent": 50, "children": [], "start_point": {"row": 11, "column": 11}, "end_point": {"row": 11, "column": 19}}, {"id": 53, "type": "init_declarator", "text": "size = {\n .min = 1,\n .suffix = argz_size_suffix,\n }", "parent": 49, "children": [54, 55, 56], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 14, "column": 5}}, {"id": 54, "type": "identifier", "text": "size", "parent": 53, "children": [], "start_point": {"row": 11, "column": 20}, "end_point": {"row": 11, "column": 24}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 11, "column": 25}, "end_point": {"row": 11, "column": 26}}, {"id": 56, "type": "initializer_list", "text": "{\n .min = 1,\n .suffix = argz_size_suffix,\n }", "parent": 53, "children": [57, 62], "start_point": {"row": 11, "column": 27}, "end_point": {"row": 14, "column": 5}}, {"id": 57, "type": "initializer_pair", "text": ".min = 1", "parent": 56, "children": [58, 60, 61], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 16}}, {"id": 58, "type": "field_designator", "text": ".min", "parent": 57, "children": [59], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 12}}, {"id": 59, "type": "field_identifier", "text": "min", "parent": 58, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 12}}, {"id": 60, "type": "=", "text": "=", "parent": 57, "children": [], "start_point": {"row": 12, "column": 13}, "end_point": {"row": 12, "column": 14}}, {"id": 61, "type": "number_literal", "text": "1", "parent": 57, "children": [], "start_point": {"row": 12, "column": 15}, "end_point": {"row": 12, "column": 16}}, {"id": 62, "type": "initializer_pair", "text": ".suffix = argz_size_suffix", "parent": 56, "children": [63, 65, 66], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 34}}, {"id": 63, "type": "field_designator", "text": ".suffix", "parent": 62, "children": [64], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 15}}, {"id": 64, "type": "field_identifier", "text": "suffix", "parent": 63, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 15}}, {"id": 65, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 13, "column": 16}, "end_point": {"row": 13, "column": 17}}, {"id": 66, "type": "identifier", "text": "argz_size_suffix", "parent": 62, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 34}}, {"id": 67, "type": "declaration", "text": "struct argz_ull time = {\n .suffix = argz_time_suffix,\n };", "parent": 34, "children": [68, 71], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 17, "column": 6}}, {"id": 68, "type": "struct_specifier", "text": "struct argz_ull", "parent": 67, "children": [69, 70], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 19}}, {"id": 69, "type": "struct", "text": "struct", "parent": 68, "children": [], "start_point": {"row": 15, "column": 4}, "end_point": {"row": 15, "column": 10}}, {"id": 70, "type": "type_identifier", "text": "argz_ull", "parent": 68, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 19}}, {"id": 71, "type": "init_declarator", "text": "time = {\n .suffix = argz_time_suffix,\n }", "parent": 67, "children": [72, 73, 74], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 17, "column": 5}}, {"id": 72, "type": "identifier", "text": "time", "parent": 71, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 24}}, {"id": 73, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 74, "type": "initializer_list", "text": "{\n .suffix = argz_time_suffix,\n }", "parent": 71, "children": [75], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 17, "column": 5}}, {"id": 75, "type": "initializer_pair", "text": ".suffix = argz_time_suffix", "parent": 74, "children": [76, 78, 79], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 34}}, {"id": 76, "type": "field_designator", "text": ".suffix", "parent": 75, "children": [77], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 15}}, {"id": 77, "type": "field_identifier", "text": "suffix", "parent": 76, "children": [], "start_point": {"row": 16, "column": 9}, "end_point": {"row": 16, "column": 15}}, {"id": 78, "type": "=", "text": "=", "parent": 75, "children": [], "start_point": {"row": 16, "column": 16}, "end_point": {"row": 16, "column": 17}}, {"id": 79, "type": "identifier", "text": "argz_time_suffix", "parent": 75, "children": [], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 34}}, {"id": 80, "type": "declaration", "text": "struct argz_ull percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n };", "parent": 34, "children": [81, 84], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 21, "column": 6}}, {"id": 81, "type": "struct_specifier", "text": "struct argz_ull", "parent": 80, "children": [82, 83], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 19}}, {"id": 82, "type": "struct", "text": "struct", "parent": 81, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 10}}, {"id": 83, "type": "type_identifier", "text": "argz_ull", "parent": 81, "children": [], "start_point": {"row": 18, "column": 11}, "end_point": {"row": 18, "column": 19}}, {"id": 84, "type": "init_declarator", "text": "percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n }", "parent": 80, "children": [85, 86, 87], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 21, "column": 5}}, {"id": 85, "type": "identifier", "text": "percent", "parent": 84, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 27}}, {"id": 86, "type": "=", "text": "=", "parent": 84, "children": [], "start_point": {"row": 18, "column": 28}, "end_point": {"row": 18, "column": 29}}, {"id": 87, "type": "initializer_list", "text": "{\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n }", "parent": 84, "children": [88, 93, 98, 103], "start_point": {"row": 18, "column": 30}, "end_point": {"row": 21, "column": 5}}, {"id": 88, "type": "initializer_pair", "text": ".min = 0", "parent": 87, "children": [89, 91, 92], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 16}}, {"id": 89, "type": "field_designator", "text": ".min", "parent": 88, "children": [90], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 12}}, {"id": 90, "type": "field_identifier", "text": "min", "parent": 89, "children": [], "start_point": {"row": 19, "column": 9}, "end_point": {"row": 19, "column": 12}}, {"id": 91, "type": "=", "text": "=", "parent": 88, "children": [], "start_point": {"row": 19, "column": 13}, "end_point": {"row": 19, "column": 14}}, {"id": 92, "type": "number_literal", "text": "0", "parent": 88, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 16}}, {"id": 93, "type": "initializer_pair", "text": ".max = 100", "parent": 87, "children": [94, 96, 97], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 28}}, {"id": 94, "type": "field_designator", "text": ".max", "parent": 93, "children": [95], "start_point": {"row": 19, "column": 18}, "end_point": {"row": 19, "column": 22}}, {"id": 95, "type": "field_identifier", "text": "max", "parent": 94, "children": [], "start_point": {"row": 19, "column": 19}, "end_point": {"row": 19, "column": 22}}, {"id": 96, "type": "=", "text": "=", "parent": 93, "children": [], "start_point": {"row": 19, "column": 23}, "end_point": {"row": 19, "column": 24}}, {"id": 97, "type": "number_literal", "text": "100", "parent": 93, "children": [], "start_point": {"row": 19, "column": 25}, "end_point": {"row": 19, "column": 28}}, {"id": 98, "type": "initializer_pair", "text": ".value = 50", "parent": 87, "children": [99, 101, 102], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 41}}, {"id": 99, "type": "field_designator", "text": ".value", "parent": 98, "children": [100], "start_point": {"row": 19, "column": 30}, "end_point": {"row": 19, "column": 36}}, {"id": 100, "type": "field_identifier", "text": "value", "parent": 99, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 36}}, {"id": 101, "type": "=", "text": "=", "parent": 98, "children": [], "start_point": {"row": 19, "column": 37}, "end_point": {"row": 19, "column": 38}}, {"id": 102, "type": "number_literal", "text": "50", "parent": 98, "children": [], "start_point": {"row": 19, "column": 39}, "end_point": {"row": 19, "column": 41}}, {"id": 103, "type": "initializer_pair", "text": ".suffix = readme_percent_suffix", "parent": 87, "children": [104, 106, 107], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 39}}, {"id": 104, "type": "field_designator", "text": ".suffix", "parent": 103, "children": [105], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 15}}, {"id": 105, "type": "field_identifier", "text": "suffix", "parent": 104, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 15}}, {"id": 106, "type": "=", "text": "=", "parent": 103, "children": [], "start_point": {"row": 20, "column": 16}, "end_point": {"row": 20, "column": 17}}, {"id": 107, "type": "identifier", "text": "readme_percent_suffix", "parent": 103, "children": [], "start_point": {"row": 20, "column": 18}, "end_point": {"row": 20, "column": 39}}, {"id": 108, "type": "declaration", "text": "struct argz_path file = {0};", "parent": 34, "children": [109, 112], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 32}}, {"id": 109, "type": "struct_specifier", "text": "struct argz_path", "parent": 108, "children": [110, 111], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 20}}, {"id": 110, "type": "struct", "text": "struct", "parent": 109, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 111, "type": "type_identifier", "text": "argz_path", "parent": 109, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 20}}, {"id": 112, "type": "init_declarator", "text": "file = {0}", "parent": 108, "children": [113, 114, 115], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 31}}, {"id": 113, "type": "identifier", "text": "file", "parent": 112, "children": [], "start_point": {"row": 22, "column": 21}, "end_point": {"row": 22, "column": 25}}, {"id": 114, "type": "=", "text": "=", "parent": 112, "children": [], "start_point": {"row": 22, "column": 26}, "end_point": {"row": 22, "column": 27}}, {"id": 115, "type": "initializer_list", "text": "{0}", "parent": 112, "children": [116], "start_point": {"row": 22, "column": 28}, "end_point": {"row": 22, "column": 31}}, {"id": 116, "type": "number_literal", "text": "0", "parent": 115, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 30}}, {"id": 117, "type": "declaration", "text": "struct argz z[] = {\n {\"size\" , \"a size value\", argz_ull, &size},\n {\"time\" , \"a time value\", argz_ull, &time},\n {\"percent\", \"a custom percent value\", argz_ull, &percent},\n {\"file\", \"a file value\", argz_path, &file},\n {0}};", "parent": 34, "children": [118, 121], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 28, "column": 13}}, {"id": 118, "type": "struct_specifier", "text": "struct argz", "parent": 117, "children": [119, 120], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 15}}, {"id": 119, "type": "struct", "text": "struct", "parent": 118, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 10}}, {"id": 120, "type": "type_identifier", "text": "argz", "parent": 118, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 15}}, {"id": 121, "type": "init_declarator", "text": "z[] = {\n {\"size\" , \"a size value\", argz_ull, &size},\n {\"time\" , \"a time value\", argz_ull, &time},\n {\"percent\", \"a custom percent value\", argz_ull, &percent},\n {\"file\", \"a file value\", argz_path, &file},\n {0}}", "parent": 117, "children": [122, 124, 125], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 28, "column": 12}}, {"id": 122, "type": "array_declarator", "text": "z[]", "parent": 121, "children": [123], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 19}}, {"id": 123, "type": "identifier", "text": "z", "parent": 122, "children": [], "start_point": {"row": 23, "column": 16}, "end_point": {"row": 23, "column": 17}}, {"id": 124, "type": "=", "text": "=", "parent": 121, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 21}}, {"id": 125, "type": "initializer_list", "text": "{\n {\"size\" , \"a size value\", argz_ull, &size},\n {\"time\" , \"a time value\", argz_ull, &time},\n {\"percent\", \"a custom percent value\", argz_ull, &percent},\n {\"file\", \"a file value\", argz_path, &file},\n {0}}", "parent": 121, "children": [126, 132, 138, 144, 150], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 28, "column": 12}}, {"id": 126, "type": "initializer_list", "text": "{\"size\" , \"a size value\", argz_ull, &size}", "parent": 125, "children": [127, 128, 129, 130], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 50}}, {"id": 127, "type": "string_literal", "text": "\"size\"", "parent": 126, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 15}}, {"id": 128, "type": "string_literal", "text": "\"a size value\"", "parent": 126, "children": [], "start_point": {"row": 24, "column": 18}, "end_point": {"row": 24, "column": 32}}, {"id": 129, "type": "identifier", "text": "argz_ull", "parent": 126, "children": [], "start_point": {"row": 24, "column": 34}, "end_point": {"row": 24, "column": 42}}, {"id": 130, "type": "pointer_expression", "text": "&size", "parent": 126, "children": [131], "start_point": {"row": 24, "column": 44}, "end_point": {"row": 24, "column": 49}}, {"id": 131, "type": "identifier", "text": "size", "parent": 130, "children": [], "start_point": {"row": 24, "column": 45}, "end_point": {"row": 24, "column": 49}}, {"id": 132, "type": "initializer_list", "text": "{\"time\" , \"a time value\", argz_ull, &time}", "parent": 125, "children": [133, 134, 135, 136], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 50}}, {"id": 133, "type": "string_literal", "text": "\"time\"", "parent": 132, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 15}}, {"id": 134, "type": "string_literal", "text": "\"a time value\"", "parent": 132, "children": [], "start_point": {"row": 25, "column": 18}, "end_point": {"row": 25, "column": 32}}, {"id": 135, "type": "identifier", "text": "argz_ull", "parent": 132, "children": [], "start_point": {"row": 25, "column": 34}, "end_point": {"row": 25, "column": 42}}, {"id": 136, "type": "pointer_expression", "text": "&time", "parent": 132, "children": [137], "start_point": {"row": 25, "column": 44}, "end_point": {"row": 25, "column": 49}}, {"id": 137, "type": "identifier", "text": "time", "parent": 136, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 49}}, {"id": 138, "type": "initializer_list", "text": "{\"percent\", \"a custom percent value\", argz_ull, &percent}", "parent": 125, "children": [139, 140, 141, 142], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 65}}, {"id": 139, "type": "string_literal", "text": "\"percent\"", "parent": 138, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 18}}, {"id": 140, "type": "string_literal", "text": "\"a custom percent value\"", "parent": 138, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 44}}, {"id": 141, "type": "identifier", "text": "argz_ull", "parent": 138, "children": [], "start_point": {"row": 26, "column": 46}, "end_point": {"row": 26, "column": 54}}, {"id": 142, "type": "pointer_expression", "text": "&percent", "parent": 138, "children": [143], "start_point": {"row": 26, "column": 56}, "end_point": {"row": 26, "column": 64}}, {"id": 143, "type": "identifier", "text": "percent", "parent": 142, "children": [], "start_point": {"row": 26, "column": 57}, "end_point": {"row": 26, "column": 64}}, {"id": 144, "type": "initializer_list", "text": "{\"file\", \"a file value\", argz_path, &file}", "parent": 125, "children": [145, 146, 147, 148], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 50}}, {"id": 145, "type": "string_literal", "text": "\"file\"", "parent": 144, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 15}}, {"id": 146, "type": "string_literal", "text": "\"a file value\"", "parent": 144, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 31}}, {"id": 147, "type": "identifier", "text": "argz_path", "parent": 144, "children": [], "start_point": {"row": 27, "column": 33}, "end_point": {"row": 27, "column": 42}}, {"id": 148, "type": "pointer_expression", "text": "&file", "parent": 144, "children": [149], "start_point": {"row": 27, "column": 44}, "end_point": {"row": 27, "column": 49}}, {"id": 149, "type": "identifier", "text": "file", "parent": 148, "children": [], "start_point": {"row": 27, "column": 45}, "end_point": {"row": 27, "column": 49}}, {"id": 150, "type": "initializer_list", "text": "{0}", "parent": 125, "children": [151], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 11}}, {"id": 151, "type": "number_literal", "text": "0", "parent": 150, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 10}}, {"id": 152, "type": "declaration", "text": "int err = argz_main(argc, argv, z);", "parent": 34, "children": [153, 154], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 39}}, {"id": 153, "type": "primitive_type", "text": "int", "parent": 152, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 7}}, {"id": 154, "type": "init_declarator", "text": "err = argz_main(argc, argv, z)", "parent": 152, "children": [155, 156, 157], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 38}}, {"id": 155, "type": "identifier", "text": "err", "parent": 154, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 11}}, {"id": 156, "type": "=", "text": "=", "parent": 154, "children": [], "start_point": {"row": 30, "column": 12}, "end_point": {"row": 30, "column": 13}}, {"id": 157, "type": "call_expression", "text": "argz_main(argc, argv, z)", "parent": 154, "children": [158, 159], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 38}}, {"id": 158, "type": "identifier", "text": "argz_main", "parent": 157, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 23}}, {"id": 159, "type": "argument_list", "text": "(argc, argv, z)", "parent": 157, "children": [160, 161, 162], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 38}}, {"id": 160, "type": "identifier", "text": "argc", "parent": 159, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 28}}, {"id": 161, "type": "identifier", "text": "argv", "parent": 159, "children": [], "start_point": {"row": 30, "column": 30}, "end_point": {"row": 30, "column": 34}}, {"id": 162, "type": "identifier", "text": "z", "parent": 159, "children": [], "start_point": {"row": 30, "column": 36}, "end_point": {"row": 30, "column": 37}}, {"id": 163, "type": "if_statement", "text": "if (err)\n return err;", "parent": 34, "children": [164, 166], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 33, "column": 19}}, {"id": 164, "type": "parenthesized_expression", "text": "(err)", "parent": 163, "children": [165], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 12}}, {"id": 165, "type": "identifier", "text": "err", "parent": 164, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 11}}, {"id": 166, "type": "return_statement", "text": "return err;", "parent": 163, "children": [167], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 19}}, {"id": 167, "type": "identifier", "text": "err", "parent": 166, "children": [], "start_point": {"row": 33, "column": 15}, "end_point": {"row": 33, "column": 18}}, {"id": 168, "type": "call_expression", "text": "printf(\"size=%llu time=%llu percent=%llu file=%s\\n\",\n size.value, time.value, percent.value, file.path ? file.path : \"\")", "parent": 34, "children": [169, 170], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 36, "column": 78}}, {"id": 169, "type": "identifier", "text": "printf", "parent": 168, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 10}}, {"id": 170, "type": "argument_list", "text": "(\"size=%llu time=%llu percent=%llu file=%s\\n\",\n size.value, time.value, percent.value, file.path ? file.path : \"\")", "parent": 168, "children": [171, 173, 176, 179, 182], "start_point": {"row": 35, "column": 10}, "end_point": {"row": 36, "column": 78}}, {"id": 171, "type": "string_literal", "text": "\"size=%llu time=%llu percent=%llu file=%s\\n\"", "parent": 170, "children": [172], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 55}}, {"id": 172, "type": "escape_sequence", "text": "\\n", "parent": 171, "children": [], "start_point": {"row": 35, "column": 52}, "end_point": {"row": 35, "column": 54}}, {"id": 173, "type": "field_expression", "text": "size.value", "parent": 170, "children": [174, 175], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 22}}, {"id": 174, "type": "identifier", "text": "size", "parent": 173, "children": [], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 16}}, {"id": 175, "type": "field_identifier", "text": "value", "parent": 173, "children": [], "start_point": {"row": 36, "column": 17}, "end_point": {"row": 36, "column": 22}}, {"id": 176, "type": "field_expression", "text": "time.value", "parent": 170, "children": [177, 178], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 34}}, {"id": 177, "type": "identifier", "text": "time", "parent": 176, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 28}}, {"id": 178, "type": "field_identifier", "text": "value", "parent": 176, "children": [], "start_point": {"row": 36, "column": 29}, "end_point": {"row": 36, "column": 34}}, {"id": 179, "type": "field_expression", "text": "percent.value", "parent": 170, "children": [180, 181], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 49}}, {"id": 180, "type": "identifier", "text": "percent", "parent": 179, "children": [], "start_point": {"row": 36, "column": 36}, "end_point": {"row": 36, "column": 43}}, {"id": 181, "type": "field_identifier", "text": "value", "parent": 179, "children": [], "start_point": {"row": 36, "column": 44}, "end_point": {"row": 36, "column": 49}}, {"id": 182, "type": "conditional_expression", "text": "file.path ? file.path : \"\"", "parent": 170, "children": [183, 186, 187, 190], "start_point": {"row": 36, "column": 51}, "end_point": {"row": 36, "column": 77}}, {"id": 183, "type": "field_expression", "text": "file.path", "parent": 182, "children": [184, 185], "start_point": {"row": 36, "column": 51}, "end_point": {"row": 36, "column": 60}}, {"id": 184, "type": "identifier", "text": "file", "parent": 183, "children": [], "start_point": {"row": 36, "column": 51}, "end_point": {"row": 36, "column": 55}}, {"id": 185, "type": "field_identifier", "text": "path", "parent": 183, "children": [], "start_point": {"row": 36, "column": 56}, "end_point": {"row": 36, "column": 60}}, {"id": 186, "type": "?", "text": "?", "parent": 182, "children": [], "start_point": {"row": 36, "column": 61}, "end_point": {"row": 36, "column": 62}}, {"id": 187, "type": "field_expression", "text": "file.path", "parent": 182, "children": [188, 189], "start_point": {"row": 36, "column": 63}, "end_point": {"row": 36, "column": 72}}, {"id": 188, "type": "identifier", "text": "file", "parent": 187, "children": [], "start_point": {"row": 36, "column": 63}, "end_point": {"row": 36, "column": 67}}, {"id": 189, "type": "field_identifier", "text": "path", "parent": 187, "children": [], "start_point": {"row": 36, "column": 68}, "end_point": {"row": 36, "column": 72}}, {"id": 190, "type": "string_literal", "text": "\"\"", "parent": 182, "children": [], "start_point": {"row": 36, "column": 75}, "end_point": {"row": 36, "column": 77}}, {"id": 191, "type": "return_statement", "text": "return 0;", "parent": 34, "children": [192], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 13}}, {"id": 192, "type": "number_literal", "text": "0", "parent": 191, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 12}}]}, "node_categories": {"declarations": {"functions": [3, 5, 34, 36], "variables": [8, 15, 39, 42, 49, 67, 80, 108, 117, 152], "classes": [9, 10, 50, 51, 68, 69, 81, 82, 109, 110, 118, 119], "imports": [0, 1], "modules": [], "enums": []}, "statements": {"expressions": [21, 22, 25, 29, 130, 136, 142, 148, 157, 164, 168, 173, 176, 179, 183, 187], "assignments": [], "loops": [], "conditionals": [6, 11, 14, 19, 23, 26, 30, 32, 37, 41, 48, 52, 54, 59, 64, 66, 70, 72, 77, 79, 83, 85, 90, 95, 100, 105, 107, 111, 113, 120, 123, 129, 131, 135, 137, 141, 143, 147, 149, 155, 158, 160, 161, 162, 163, 165, 167, 169, 174, 175, 177, 178, 180, 181, 182, 184, 185, 188, 189], "returns": [20, 166, 191], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 27, 33, 61, 92, 97, 102, 116, 127, 128, 133, 134, 139, 140, 145, 146, 151, 171, 190, 192], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [58, 63, 76, 89, 94, 99, 104]}}, "cross_language_map": {"function_declarations": [{"node_id": 3, "universal_type": "function", "name": "readme_percent_suffix", "text_snippet": "int\nreadme_percent_suffix(struct argz_ull *ull, const char *s)\n{\n return s && s[0] && strcmp(s, \""}, {"node_id": 5, "universal_type": "function", "name": "unknown", "text_snippet": "readme_percent_suffix(struct argz_ull *ull, const char *s)"}, {"node_id": 34, "universal_type": "function", "name": "main", "text_snippet": "int\nmain(int argc, char **argv)\n{\n struct argz_ull size = {\n .min = 1,\n .suffix = a"}, {"node_id": 36, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, char **argv)"}], "class_declarations": [{"node_id": 9, "universal_type": "class", "name": "argz_ull", "text_snippet": "struct argz_ull"}, {"node_id": 10, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 50, "universal_type": "class", "name": "argz_ull", "text_snippet": "struct argz_ull"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 68, "universal_type": "class", "name": "argz_ull", "text_snippet": "struct argz_ull"}, {"node_id": 69, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 81, "universal_type": "class", "name": "argz_ull", "text_snippet": "struct argz_ull"}, {"node_id": 82, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 109, "universal_type": "class", "name": "argz_path", "text_snippet": "struct argz_path"}, {"node_id": 110, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 118, "universal_type": "class", "name": "argz", "text_snippet": "struct argz"}, {"node_id": 119, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"argz.c\"\n"}, {"node_id": 1, "text": "#include"}]}, "original_source_code": "#include \"argz.c\"\n\nint\nreadme_percent_suffix(struct argz_ull *ull, const char *s)\n{\n return s && s[0] && strcmp(s, \"%\");\n}\n\nint\nmain(int argc, char **argv)\n{\n struct argz_ull size = {\n .min = 1,\n .suffix = argz_size_suffix,\n };\n struct argz_ull time = {\n .suffix = argz_time_suffix,\n };\n struct argz_ull percent = {\n .min = 0, .max = 100, .value = 50,\n .suffix = readme_percent_suffix,\n };\n struct argz_path file = {0};\n struct argz z[] = {\n {\"size\" , \"a size value\", argz_ull, &size},\n {\"time\" , \"a time value\", argz_ull, &time},\n {\"percent\", \"a custom percent value\", argz_ull, &percent},\n {\"file\", \"a file value\", argz_path, &file},\n {0}};\n\n int err = argz_main(argc, argv, z);\n\n if (err)\n return err;\n\n printf(\"size=%llu time=%llu percent=%llu file=%s\\n\",\n size.value, time.value, percent.value, file.path ? file.path : \"\");\n\n return 0;\n}\n"}
80,375
c
/** * Copyright(c) 2016-2017 rryqszq4 * * */ #ifndef _NGX_PHP_UTHREAD_H_ #define _NGX_PHP_UTHREAD_H_ #include <ngx_config.h> #include <ngx_core.h> #include <ucontext.h> #define PHP_UTHREAD_DEAD 0 #define PHP_UTHREAD_READY 1 #define PHP_UTHREAD_RUNNING 2 #define PHP_UTHREAD_SUSPEND 3 #define PHP_UTHREAD_STACK_SIZE 32*1024 #define PHP_UTHREAD_MAX_SIZE 1024 ngx_uint_t ngx_php_uthread_max; typedef struct ngx_php_uthread_s { ngx_uint_t id; ngx_int_t status; ucontext_t child; ucontext_t main; void *stack; size_t stack_size; void (*routine)(void *data); void *data; ngx_log_t *log; } ngx_php_uthread_t; ngx_int_t ngx_php_uthread_create(ngx_php_uthread_t *uthread); ngx_int_t ngx_php_uthread_yield(ngx_php_uthread_t *uthread); ngx_int_t ngx_php_uthread_resume(ngx_php_uthread_t *uthread); ngx_int_t ngx_php_uthread_destroy(ngx_php_uthread_t *uthread); ngx_uint_t ngx_php_uthread_id(ngx_php_uthread_t *uthread); #endif
29.74
34
(translation_unit) "/**\n * Copyright(c) 2016-2017 rryqszq4\n *\n *\n */\n\n#ifndef _NGX_PHP_UTHREAD_H_\n#define _NGX_PHP_UTHREAD_H_\n\n#include <ngx_config.h>\n#include <ngx_core.h>\n\n#include <ucontext.h>\n\n#define PHP_UTHREAD_DEAD 0\n#define PHP_UTHREAD_READY 1\n#define PHP_UTHREAD_RUNNING 2\n#define PHP_UTHREAD_SUSPEND 3\n\n#define PHP_UTHREAD_STACK_SIZE 32*1024\n#define PHP_UTHREAD_MAX_SIZE 1024\n\nngx_uint_t ngx_php_uthread_max;\n\ntypedef struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n} ngx_php_uthread_t;\n\nngx_int_t ngx_php_uthread_create(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_yield(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_resume(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_destroy(ngx_php_uthread_t *uthread);\n\nngx_uint_t ngx_php_uthread_id(ngx_php_uthread_t *uthread);\n\n#endif\n" (comment) "/**\n * Copyright(c) 2016-2017 rryqszq4\n *\n *\n */" (preproc_ifdef) "#ifndef _NGX_PHP_UTHREAD_H_\n#define _NGX_PHP_UTHREAD_H_\n\n#include <ngx_config.h>\n#include <ngx_core.h>\n\n#include <ucontext.h>\n\n#define PHP_UTHREAD_DEAD 0\n#define PHP_UTHREAD_READY 1\n#define PHP_UTHREAD_RUNNING 2\n#define PHP_UTHREAD_SUSPEND 3\n\n#define PHP_UTHREAD_STACK_SIZE 32*1024\n#define PHP_UTHREAD_MAX_SIZE 1024\n\nngx_uint_t ngx_php_uthread_max;\n\ntypedef struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n} ngx_php_uthread_t;\n\nngx_int_t ngx_php_uthread_create(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_yield(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_resume(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_destroy(ngx_php_uthread_t *uthread);\n\nngx_uint_t ngx_php_uthread_id(ngx_php_uthread_t *uthread);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_NGX_PHP_UTHREAD_H_" (preproc_def) "#define _NGX_PHP_UTHREAD_H_\n" (#define) "#define" (identifier) "_NGX_PHP_UTHREAD_H_" (preproc_include) "#include <ngx_config.h>\n" (#include) "#include" (system_lib_string) "<ngx_config.h>" (preproc_include) "#include <ngx_core.h>\n" (#include) "#include" (system_lib_string) "<ngx_core.h>" (preproc_include) "#include <ucontext.h>\n" (#include) "#include" (system_lib_string) "<ucontext.h>" (preproc_def) "#define PHP_UTHREAD_DEAD 0\n" (#define) "#define" (identifier) "PHP_UTHREAD_DEAD" (preproc_arg) "0" (preproc_def) "#define PHP_UTHREAD_READY 1\n" (#define) "#define" (identifier) "PHP_UTHREAD_READY" (preproc_arg) "1" (preproc_def) "#define PHP_UTHREAD_RUNNING 2\n" (#define) "#define" (identifier) "PHP_UTHREAD_RUNNING" (preproc_arg) "2" (preproc_def) "#define PHP_UTHREAD_SUSPEND 3\n" (#define) "#define" (identifier) "PHP_UTHREAD_SUSPEND" (preproc_arg) "3" (preproc_def) "#define PHP_UTHREAD_STACK_SIZE 32*1024\n" (#define) "#define" (identifier) "PHP_UTHREAD_STACK_SIZE" (preproc_arg) "32*1024" (preproc_def) "#define PHP_UTHREAD_MAX_SIZE 1024\n" (#define) "#define" (identifier) "PHP_UTHREAD_MAX_SIZE" (preproc_arg) "1024" (declaration) "ngx_uint_t ngx_php_uthread_max;" (type_identifier) "ngx_uint_t" (identifier) "ngx_php_uthread_max" (;) ";" (type_definition) "typedef struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n} ngx_php_uthread_t;" (typedef) "typedef" (struct_specifier) "struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n}" (struct) "struct" (type_identifier) "ngx_php_uthread_s" (field_declaration_list) "{\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n}" ({) "{" (field_declaration) "ngx_uint_t id;" (type_identifier) "ngx_uint_t" (field_identifier) "id" (;) ";" (field_declaration) "ngx_int_t status;" (type_identifier) "ngx_int_t" (field_identifier) "status" (;) ";" (field_declaration) "ucontext_t child;" (type_identifier) "ucontext_t" (field_identifier) "child" (;) ";" (field_declaration) "ucontext_t main;" (type_identifier) "ucontext_t" (field_identifier) "main" (;) ";" (field_declaration) "void *stack;" (primitive_type) "void" (pointer_declarator) "*stack" (*) "*" (field_identifier) "stack" (;) ";" (field_declaration) "size_t stack_size;" (primitive_type) "size_t" (field_identifier) "stack_size" (;) ";" (field_declaration) "void (*routine)(void *data);" (primitive_type) "void" (function_declarator) "(*routine)(void *data)" (parenthesized_declarator) "(*routine)" (() "(" (pointer_declarator) "*routine" (*) "*" (field_identifier) "routine" ()) ")" (parameter_list) "(void *data)" (() "(" (parameter_declaration) "void *data" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) ")" (;) ";" (field_declaration) "void *data;" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (field_identifier) "data" (;) ";" (field_declaration) "ngx_log_t *log;" (type_identifier) "ngx_log_t" (pointer_declarator) "*log" (*) "*" (field_identifier) "log" (;) ";" (}) "}" (type_identifier) "ngx_php_uthread_t" (;) ";" (declaration) "ngx_int_t ngx_php_uthread_create(ngx_php_uthread_t *uthread);" (type_identifier) "ngx_int_t" (function_declarator) "ngx_php_uthread_create(ngx_php_uthread_t *uthread)" (identifier) "ngx_php_uthread_create" (parameter_list) "(ngx_php_uthread_t *uthread)" (() "(" (parameter_declaration) "ngx_php_uthread_t *uthread" (type_identifier) "ngx_php_uthread_t" (pointer_declarator) "*uthread" (*) "*" (identifier) "uthread" ()) ")" (;) ";" (declaration) "ngx_int_t ngx_php_uthread_yield(ngx_php_uthread_t *uthread);" (type_identifier) "ngx_int_t" (function_declarator) "ngx_php_uthread_yield(ngx_php_uthread_t *uthread)" (identifier) "ngx_php_uthread_yield" (parameter_list) "(ngx_php_uthread_t *uthread)" (() "(" (parameter_declaration) "ngx_php_uthread_t *uthread" (type_identifier) "ngx_php_uthread_t" (pointer_declarator) "*uthread" (*) "*" (identifier) "uthread" ()) ")" (;) ";" (declaration) "ngx_int_t ngx_php_uthread_resume(ngx_php_uthread_t *uthread);" (type_identifier) "ngx_int_t" (function_declarator) "ngx_php_uthread_resume(ngx_php_uthread_t *uthread)" (identifier) "ngx_php_uthread_resume" (parameter_list) "(ngx_php_uthread_t *uthread)" (() "(" (parameter_declaration) "ngx_php_uthread_t *uthread" (type_identifier) "ngx_php_uthread_t" (pointer_declarator) "*uthread" (*) "*" (identifier) "uthread" ()) ")" (;) ";" (declaration) "ngx_int_t ngx_php_uthread_destroy(ngx_php_uthread_t *uthread);" (type_identifier) "ngx_int_t" (function_declarator) "ngx_php_uthread_destroy(ngx_php_uthread_t *uthread)" (identifier) "ngx_php_uthread_destroy" (parameter_list) "(ngx_php_uthread_t *uthread)" (() "(" (parameter_declaration) "ngx_php_uthread_t *uthread" (type_identifier) "ngx_php_uthread_t" (pointer_declarator) "*uthread" (*) "*" (identifier) "uthread" ()) ")" (;) ";" (declaration) "ngx_uint_t ngx_php_uthread_id(ngx_php_uthread_t *uthread);" (type_identifier) "ngx_uint_t" (function_declarator) "ngx_php_uthread_id(ngx_php_uthread_t *uthread)" (identifier) "ngx_php_uthread_id" (parameter_list) "(ngx_php_uthread_t *uthread)" (() "(" (parameter_declaration) "ngx_php_uthread_t *uthread" (type_identifier) "ngx_php_uthread_t" (pointer_declarator) "*uthread" (*) "*" (identifier) "uthread" ()) ")" (;) ";" (#endif) "#endif"
177
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 29.74, "nodes": 142, "errors": 0, "source_hash": "6d7bfcb90f3a32ba3f87e14f40e610ec6b6e13e5078e5e897f2573ee3ceede88", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _NGX_PHP_UTHREAD_H_\n#define _NGX_PHP_UTHREAD_H_\n\n#include <ngx_config.h>\n#include <ngx_core.h>\n\n#include <ucontext.h>\n\n#define PHP_UTHREAD_DEAD 0\n#define PHP_UTHREAD_READY 1\n#define PHP_UTHREAD_RUNNING 2\n#define PHP_UTHREAD_SUSPEND 3\n\n#define PHP_UTHREAD_STACK_SIZE 32*1024\n#define PHP_UTHREAD_MAX_SIZE 1024\n\nngx_uint_t ngx_php_uthread_max;\n\ntypedef struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n} ngx_php_uthread_t;\n\nngx_int_t ngx_php_uthread_create(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_yield(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_resume(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_destroy(ngx_php_uthread_t *uthread);\n\nngx_uint_t ngx_php_uthread_id(ngx_php_uthread_t *uthread);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 19, 23, 27, 31, 35, 39, 42, 91, 101, 111, 121, 131, 141], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 52, "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": "_NGX_PHP_UTHREAD_H_", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define _NGX_PHP_UTHREAD_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": "_NGX_PHP_UTHREAD_H_", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 27}}, {"id": 6, "type": "preproc_include", "text": "#include <ngx_config.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<ngx_config.h>", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include <ngx_core.h>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<ngx_core.h>", "parent": 9, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 21}}, {"id": 12, "type": "preproc_include", "text": "#include <ucontext.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<ucontext.h>", "parent": 12, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 21}}, {"id": 15, "type": "preproc_def", "text": "#define PHP_UTHREAD_DEAD 0\n", "parent": 0, "children": [16, 17, 18], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 17, "type": "identifier", "text": "PHP_UTHREAD_DEAD", "parent": 15, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 24}}, {"id": 18, "type": "preproc_arg", "text": "0", "parent": 15, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 29}}, {"id": 19, "type": "preproc_def", "text": "#define PHP_UTHREAD_READY 1\n", "parent": 0, "children": [20, 21, 22], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 16, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 21, "type": "identifier", "text": "PHP_UTHREAD_READY", "parent": 19, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 25}}, {"id": 22, "type": "preproc_arg", "text": "1", "parent": 19, "children": [], "start_point": {"row": 15, "column": 28}, "end_point": {"row": 15, "column": 29}}, {"id": 23, "type": "preproc_def", "text": "#define PHP_UTHREAD_RUNNING 2\n", "parent": 0, "children": [24, 25, 26], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 24, "type": "#define", "text": "#define", "parent": 23, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 25, "type": "identifier", "text": "PHP_UTHREAD_RUNNING", "parent": 23, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 27}}, {"id": 26, "type": "preproc_arg", "text": "2", "parent": 23, "children": [], "start_point": {"row": 16, "column": 28}, "end_point": {"row": 16, "column": 29}}, {"id": 27, "type": "preproc_def", "text": "#define PHP_UTHREAD_SUSPEND 3\n", "parent": 0, "children": [28, 29, 30], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 28, "type": "#define", "text": "#define", "parent": 27, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 29, "type": "identifier", "text": "PHP_UTHREAD_SUSPEND", "parent": 27, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 27}}, {"id": 30, "type": "preproc_arg", "text": "3", "parent": 27, "children": [], "start_point": {"row": 17, "column": 28}, "end_point": {"row": 17, "column": 29}}, {"id": 31, "type": "preproc_def", "text": "#define PHP_UTHREAD_STACK_SIZE 32*1024\n", "parent": 0, "children": [32, 33, 34], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 32, "type": "#define", "text": "#define", "parent": 31, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 33, "type": "identifier", "text": "PHP_UTHREAD_STACK_SIZE", "parent": 31, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 30}}, {"id": 34, "type": "preproc_arg", "text": "32*1024", "parent": 31, "children": [], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 43}}, {"id": 35, "type": "preproc_def", "text": "#define PHP_UTHREAD_MAX_SIZE 1024\n", "parent": 0, "children": [36, 37, 38], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 36, "type": "#define", "text": "#define", "parent": 35, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 37, "type": "identifier", "text": "PHP_UTHREAD_MAX_SIZE", "parent": 35, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 28}}, {"id": 38, "type": "preproc_arg", "text": "1024", "parent": 35, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 40}}, {"id": 39, "type": "declaration", "text": "ngx_uint_t ngx_php_uthread_max;", "parent": 0, "children": [40, 41], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 31}}, {"id": 40, "type": "type_identifier", "text": "ngx_uint_t", "parent": 39, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 10}}, {"id": 41, "type": "identifier", "text": "ngx_php_uthread_max", "parent": 39, "children": [], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 30}}, {"id": 42, "type": "type_definition", "text": "typedef struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n} ngx_php_uthread_t;", "parent": 0, "children": [43, 44, 90], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 40, "column": 20}}, {"id": 43, "type": "typedef", "text": "typedef", "parent": 42, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 44, "type": "struct_specifier", "text": "struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n}", "parent": 42, "children": [45, 46], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 40, "column": 1}}, {"id": 45, "type": "struct", "text": "struct", "parent": 44, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 14}}, {"id": 46, "type": "type_identifier", "text": "ngx_php_uthread_s", "parent": 44, "children": [], "start_point": {"row": 24, "column": 15}, "end_point": {"row": 24, "column": 32}}, {"id": 47, "type": "field_declaration", "text": "ngx_uint_t id;", "parent": 44, "children": [48, 49], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 23}}, {"id": 48, "type": "type_identifier", "text": "ngx_uint_t", "parent": 47, "children": [], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 14}}, {"id": 49, "type": "field_identifier", "text": "id", "parent": 47, "children": [], "start_point": {"row": 26, "column": 20}, "end_point": {"row": 26, "column": 22}}, {"id": 50, "type": "field_declaration", "text": "ngx_int_t status;", "parent": 44, "children": [51, 52], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 27}}, {"id": 51, "type": "type_identifier", "text": "ngx_int_t", "parent": 50, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 13}}, {"id": 52, "type": "field_identifier", "text": "status", "parent": 50, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 26}}, {"id": 53, "type": "field_declaration", "text": "ucontext_t child;", "parent": 44, "children": [54, 55], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 26}}, {"id": 54, "type": "type_identifier", "text": "ucontext_t", "parent": 53, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 14}}, {"id": 55, "type": "field_identifier", "text": "child", "parent": 53, "children": [], "start_point": {"row": 29, "column": 20}, "end_point": {"row": 29, "column": 25}}, {"id": 56, "type": "field_declaration", "text": "ucontext_t main;", "parent": 44, "children": [57, 58], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 25}}, {"id": 57, "type": "type_identifier", "text": "ucontext_t", "parent": 56, "children": [], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 30, "column": 14}}, {"id": 58, "type": "field_identifier", "text": "main", "parent": 56, "children": [], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 24}}, {"id": 59, "type": "field_declaration", "text": "void *stack;", "parent": 44, "children": [60, 61], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 27}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 59, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 8}}, {"id": 61, "type": "pointer_declarator", "text": "*stack", "parent": 59, "children": [62, 63], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 26}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 32, "column": 20}, "end_point": {"row": 32, "column": 21}}, {"id": 63, "type": "field_identifier", "text": "stack", "parent": 61, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 26}}, {"id": 64, "type": "field_declaration", "text": "size_t stack_size;", "parent": 44, "children": [65, 66], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 31}}, {"id": 65, "type": "primitive_type", "text": "size_t", "parent": 64, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 10}}, {"id": 66, "type": "field_identifier", "text": "stack_size", "parent": 64, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 30}}, {"id": 67, "type": "field_declaration", "text": "void (*routine)(void *data);", "parent": 44, "children": [68, 69], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 43}}, {"id": 68, "type": "primitive_type", "text": "void", "parent": 67, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 8}}, {"id": 69, "type": "function_declarator", "text": "(*routine)(void *data)", "parent": 67, "children": [70, 74], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 42}}, {"id": 70, "type": "parenthesized_declarator", "text": "(*routine)", "parent": 69, "children": [71], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 30}}, {"id": 71, "type": "pointer_declarator", "text": "*routine", "parent": 70, "children": [72, 73], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 29}}, {"id": 72, "type": "*", "text": "*", "parent": 71, "children": [], "start_point": {"row": 35, "column": 21}, "end_point": {"row": 35, "column": 22}}, {"id": 73, "type": "field_identifier", "text": "routine", "parent": 71, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 29}}, {"id": 74, "type": "parameter_list", "text": "(void *data)", "parent": 69, "children": [75], "start_point": {"row": 35, "column": 30}, "end_point": {"row": 35, "column": 42}}, {"id": 75, "type": "parameter_declaration", "text": "void *data", "parent": 74, "children": [76, 77], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 41}}, {"id": 76, "type": "primitive_type", "text": "void", "parent": 75, "children": [], "start_point": {"row": 35, "column": 31}, "end_point": {"row": 35, "column": 35}}, {"id": 77, "type": "pointer_declarator", "text": "*data", "parent": 75, "children": [78, 79], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 41}}, {"id": 78, "type": "*", "text": "*", "parent": 77, "children": [], "start_point": {"row": 35, "column": 36}, "end_point": {"row": 35, "column": 37}}, {"id": 79, "type": "identifier", "text": "data", "parent": 77, "children": [], "start_point": {"row": 35, "column": 37}, "end_point": {"row": 35, "column": 41}}, {"id": 80, "type": "field_declaration", "text": "void *data;", "parent": 44, "children": [81, 82], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 26}}, {"id": 81, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 36, "column": 4}, "end_point": {"row": 36, "column": 8}}, {"id": 82, "type": "pointer_declarator", "text": "*data", "parent": 80, "children": [83, 84], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 25}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 21}}, {"id": 84, "type": "field_identifier", "text": "data", "parent": 82, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 25}}, {"id": 85, "type": "field_declaration", "text": "ngx_log_t *log;", "parent": 44, "children": [86, 87], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 25}}, {"id": 86, "type": "type_identifier", "text": "ngx_log_t", "parent": 85, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 13}}, {"id": 87, "type": "pointer_declarator", "text": "*log", "parent": 85, "children": [88, 89], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 24}}, {"id": 88, "type": "*", "text": "*", "parent": 87, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 21}}, {"id": 89, "type": "field_identifier", "text": "log", "parent": 87, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 24}}, {"id": 90, "type": "type_identifier", "text": "ngx_php_uthread_t", "parent": 42, "children": [], "start_point": {"row": 40, "column": 2}, "end_point": {"row": 40, "column": 19}}, {"id": 91, "type": "declaration", "text": "ngx_int_t ngx_php_uthread_create(ngx_php_uthread_t *uthread);", "parent": 0, "children": [92, 93], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 61}}, {"id": 92, "type": "type_identifier", "text": "ngx_int_t", "parent": 91, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 9}}, {"id": 93, "type": "function_declarator", "text": "ngx_php_uthread_create(ngx_php_uthread_t *uthread)", "parent": 91, "children": [94, 95], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 60}}, {"id": 94, "type": "identifier", "text": "ngx_php_uthread_create", "parent": 93, "children": [], "start_point": {"row": 42, "column": 10}, "end_point": {"row": 42, "column": 32}}, {"id": 95, "type": "parameter_list", "text": "(ngx_php_uthread_t *uthread)", "parent": 93, "children": [96], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 42, "column": 60}}, {"id": 96, "type": "parameter_declaration", "text": "ngx_php_uthread_t *uthread", "parent": 95, "children": [97, 98], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 59}}, {"id": 97, "type": "type_identifier", "text": "ngx_php_uthread_t", "parent": 96, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 50}}, {"id": 98, "type": "pointer_declarator", "text": "*uthread", "parent": 96, "children": [99, 100], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 59}}, {"id": 99, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 42, "column": 51}, "end_point": {"row": 42, "column": 52}}, {"id": 100, "type": "identifier", "text": "uthread", "parent": 98, "children": [], "start_point": {"row": 42, "column": 52}, "end_point": {"row": 42, "column": 59}}, {"id": 101, "type": "declaration", "text": "ngx_int_t ngx_php_uthread_yield(ngx_php_uthread_t *uthread);", "parent": 0, "children": [102, 103], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 60}}, {"id": 102, "type": "type_identifier", "text": "ngx_int_t", "parent": 101, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 9}}, {"id": 103, "type": "function_declarator", "text": "ngx_php_uthread_yield(ngx_php_uthread_t *uthread)", "parent": 101, "children": [104, 105], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 59}}, {"id": 104, "type": "identifier", "text": "ngx_php_uthread_yield", "parent": 103, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 31}}, {"id": 105, "type": "parameter_list", "text": "(ngx_php_uthread_t *uthread)", "parent": 103, "children": [106], "start_point": {"row": 44, "column": 31}, "end_point": {"row": 44, "column": 59}}, {"id": 106, "type": "parameter_declaration", "text": "ngx_php_uthread_t *uthread", "parent": 105, "children": [107, 108], "start_point": {"row": 44, "column": 32}, "end_point": {"row": 44, "column": 58}}, {"id": 107, "type": "type_identifier", "text": "ngx_php_uthread_t", "parent": 106, "children": [], "start_point": {"row": 44, "column": 32}, "end_point": {"row": 44, "column": 49}}, {"id": 108, "type": "pointer_declarator", "text": "*uthread", "parent": 106, "children": [109, 110], "start_point": {"row": 44, "column": 50}, "end_point": {"row": 44, "column": 58}}, {"id": 109, "type": "*", "text": "*", "parent": 108, "children": [], "start_point": {"row": 44, "column": 50}, "end_point": {"row": 44, "column": 51}}, {"id": 110, "type": "identifier", "text": "uthread", "parent": 108, "children": [], "start_point": {"row": 44, "column": 51}, "end_point": {"row": 44, "column": 58}}, {"id": 111, "type": "declaration", "text": "ngx_int_t ngx_php_uthread_resume(ngx_php_uthread_t *uthread);", "parent": 0, "children": [112, 113], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 61}}, {"id": 112, "type": "type_identifier", "text": "ngx_int_t", "parent": 111, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 9}}, {"id": 113, "type": "function_declarator", "text": "ngx_php_uthread_resume(ngx_php_uthread_t *uthread)", "parent": 111, "children": [114, 115], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 60}}, {"id": 114, "type": "identifier", "text": "ngx_php_uthread_resume", "parent": 113, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 32}}, {"id": 115, "type": "parameter_list", "text": "(ngx_php_uthread_t *uthread)", "parent": 113, "children": [116], "start_point": {"row": 46, "column": 32}, "end_point": {"row": 46, "column": 60}}, {"id": 116, "type": "parameter_declaration", "text": "ngx_php_uthread_t *uthread", "parent": 115, "children": [117, 118], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 59}}, {"id": 117, "type": "type_identifier", "text": "ngx_php_uthread_t", "parent": 116, "children": [], "start_point": {"row": 46, "column": 33}, "end_point": {"row": 46, "column": 50}}, {"id": 118, "type": "pointer_declarator", "text": "*uthread", "parent": 116, "children": [119, 120], "start_point": {"row": 46, "column": 51}, "end_point": {"row": 46, "column": 59}}, {"id": 119, "type": "*", "text": "*", "parent": 118, "children": [], "start_point": {"row": 46, "column": 51}, "end_point": {"row": 46, "column": 52}}, {"id": 120, "type": "identifier", "text": "uthread", "parent": 118, "children": [], "start_point": {"row": 46, "column": 52}, "end_point": {"row": 46, "column": 59}}, {"id": 121, "type": "declaration", "text": "ngx_int_t ngx_php_uthread_destroy(ngx_php_uthread_t *uthread);", "parent": 0, "children": [122, 123], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 62}}, {"id": 122, "type": "type_identifier", "text": "ngx_int_t", "parent": 121, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 9}}, {"id": 123, "type": "function_declarator", "text": "ngx_php_uthread_destroy(ngx_php_uthread_t *uthread)", "parent": 121, "children": [124, 125], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 61}}, {"id": 124, "type": "identifier", "text": "ngx_php_uthread_destroy", "parent": 123, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 33}}, {"id": 125, "type": "parameter_list", "text": "(ngx_php_uthread_t *uthread)", "parent": 123, "children": [126], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 61}}, {"id": 126, "type": "parameter_declaration", "text": "ngx_php_uthread_t *uthread", "parent": 125, "children": [127, 128], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 60}}, {"id": 127, "type": "type_identifier", "text": "ngx_php_uthread_t", "parent": 126, "children": [], "start_point": {"row": 48, "column": 34}, "end_point": {"row": 48, "column": 51}}, {"id": 128, "type": "pointer_declarator", "text": "*uthread", "parent": 126, "children": [129, 130], "start_point": {"row": 48, "column": 52}, "end_point": {"row": 48, "column": 60}}, {"id": 129, "type": "*", "text": "*", "parent": 128, "children": [], "start_point": {"row": 48, "column": 52}, "end_point": {"row": 48, "column": 53}}, {"id": 130, "type": "identifier", "text": "uthread", "parent": 128, "children": [], "start_point": {"row": 48, "column": 53}, "end_point": {"row": 48, "column": 60}}, {"id": 131, "type": "declaration", "text": "ngx_uint_t ngx_php_uthread_id(ngx_php_uthread_t *uthread);", "parent": 0, "children": [132, 133], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 58}}, {"id": 132, "type": "type_identifier", "text": "ngx_uint_t", "parent": 131, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 10}}, {"id": 133, "type": "function_declarator", "text": "ngx_php_uthread_id(ngx_php_uthread_t *uthread)", "parent": 131, "children": [134, 135], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 57}}, {"id": 134, "type": "identifier", "text": "ngx_php_uthread_id", "parent": 133, "children": [], "start_point": {"row": 50, "column": 11}, "end_point": {"row": 50, "column": 29}}, {"id": 135, "type": "parameter_list", "text": "(ngx_php_uthread_t *uthread)", "parent": 133, "children": [136], "start_point": {"row": 50, "column": 29}, "end_point": {"row": 50, "column": 57}}, {"id": 136, "type": "parameter_declaration", "text": "ngx_php_uthread_t *uthread", "parent": 135, "children": [137, 138], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 56}}, {"id": 137, "type": "type_identifier", "text": "ngx_php_uthread_t", "parent": 136, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 47}}, {"id": 138, "type": "pointer_declarator", "text": "*uthread", "parent": 136, "children": [139, 140], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 56}}, {"id": 139, "type": "*", "text": "*", "parent": 138, "children": [], "start_point": {"row": 50, "column": 48}, "end_point": {"row": 50, "column": 49}}, {"id": 140, "type": "identifier", "text": "uthread", "parent": 138, "children": [], "start_point": {"row": 50, "column": 49}, "end_point": {"row": 50, "column": 56}}, {"id": 141, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 6}}]}, "node_categories": {"declarations": {"functions": [69, 93, 103, 113, 123, 133], "variables": [39, 42, 47, 50, 53, 56, 59, 64, 67, 75, 80, 85, 91, 96, 101, 106, 111, 116, 121, 126, 131, 136], "classes": [44, 45], "imports": [6, 7, 9, 10, 12, 13], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 17, 21, 25, 29, 33, 37, 40, 41, 46, 48, 49, 51, 52, 54, 55, 57, 58, 63, 66, 73, 79, 84, 86, 89, 90, 92, 94, 97, 100, 102, 104, 107, 110, 112, 114, 117, 120, 122, 124, 127, 130, 132, 134, 137, 140, 141], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "(*routine)(void *data)"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "ngx_php_uthread_create(ngx_php_uthread_t *uthread)"}, {"node_id": 103, "universal_type": "function", "name": "unknown", "text_snippet": "ngx_php_uthread_yield(ngx_php_uthread_t *uthread)"}, {"node_id": 113, "universal_type": "function", "name": "unknown", "text_snippet": "ngx_php_uthread_resume(ngx_php_uthread_t *uthread)"}, {"node_id": 123, "universal_type": "function", "name": "unknown", "text_snippet": "ngx_php_uthread_destroy(ngx_php_uthread_t *uthread)"}, {"node_id": 133, "universal_type": "function", "name": "unknown", "text_snippet": "ngx_php_uthread_id(ngx_php_uthread_t *uthread)"}], "class_declarations": [{"node_id": 44, "universal_type": "class", "name": "ngx_php_uthread_s", "text_snippet": "struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t "}, {"node_id": 45, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <ngx_config.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <ngx_core.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <ucontext.h>\n"}, {"node_id": 13, "text": "#include"}]}, "original_source_code": "/**\n * Copyright(c) 2016-2017 rryqszq4\n *\n *\n */\n\n#ifndef _NGX_PHP_UTHREAD_H_\n#define _NGX_PHP_UTHREAD_H_\n\n#include <ngx_config.h>\n#include <ngx_core.h>\n\n#include <ucontext.h>\n\n#define PHP_UTHREAD_DEAD 0\n#define PHP_UTHREAD_READY 1\n#define PHP_UTHREAD_RUNNING 2\n#define PHP_UTHREAD_SUSPEND 3\n\n#define PHP_UTHREAD_STACK_SIZE 32*1024\n#define PHP_UTHREAD_MAX_SIZE 1024\n\nngx_uint_t ngx_php_uthread_max;\n\ntypedef struct ngx_php_uthread_s {\n\n ngx_uint_t id;\n ngx_int_t status;\n\n ucontext_t child;\n ucontext_t main;\n\n void *stack;\n size_t stack_size;\n\n void (*routine)(void *data);\n void *data;\n\n ngx_log_t *log;\n\n} ngx_php_uthread_t;\n\nngx_int_t ngx_php_uthread_create(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_yield(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_resume(ngx_php_uthread_t *uthread);\n\nngx_int_t ngx_php_uthread_destroy(ngx_php_uthread_t *uthread);\n\nngx_uint_t ngx_php_uthread_id(ngx_php_uthread_t *uthread);\n\n#endif\n"}
80,376
c
#ifndef __RFDUINO_TICK_H__ #define __RFDUINO_TICK_H__ class RFDuinoTick{ public: static void startTick(); static void stopTick(); static void tick(); }; #endif
17.44
9
(translation_unit) "#ifndef __RFDUINO_TICK_H__\n#define __RFDUINO_TICK_H__\n\nclass RFDuinoTick{\npublic:\n static void startTick();\n static void stopTick();\n static void tick();\n};\n\n#endif\n" (preproc_ifdef) "#ifndef __RFDUINO_TICK_H__\n#define __RFDUINO_TICK_H__\n\nclass RFDuinoTick{\npublic:\n static void startTick();\n static void stopTick();\n static void tick();\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "__RFDUINO_TICK_H__" (preproc_def) "#define __RFDUINO_TICK_H__\n" (#define) "#define" (identifier) "__RFDUINO_TICK_H__" (function_definition) "class RFDuinoTick{\npublic:\n static void startTick();\n static void stopTick();\n static void tick();\n}" (type_identifier) "class" (identifier) "RFDuinoTick" (compound_statement) "{\npublic:\n static void startTick();\n static void stopTick();\n static void tick();\n}" ({) "{" (labeled_statement) "public:\n static void startTick();" (statement_identifier) "public" (:) ":" (declaration) "static void startTick();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "startTick()" (identifier) "startTick" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static void stopTick();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "stopTick()" (identifier) "stopTick" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "static void tick();" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "tick()" (identifier) "tick" (parameter_list) "()" (() "(" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
49
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 17.44, "nodes": 25, "errors": 0, "source_hash": "746488f47603d5c45e46225c33e5bf4de0d92aaf108350da5a5b7fd6d7eee032", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __RFDUINO_TICK_H__\n#define __RFDUINO_TICK_H__\n\nclass RFDuinoTick{\npublic:\n static void startTick();\n static void stopTick();\n static void tick();\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 24], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 2, "type": "identifier", "text": "__RFDUINO_TICK_H__", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "#define __RFDUINO_TICK_H__\n", "parent": 0, "children": [4, 5], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 7}}, {"id": 5, "type": "identifier", "text": "__RFDUINO_TICK_H__", "parent": 3, "children": [], "start_point": {"row": 2, "column": 8}, "end_point": {"row": 2, "column": 26}}, {"id": 6, "type": "function_definition", "text": "class RFDuinoTick{\npublic:\n static void startTick();\n static void stopTick();\n static void tick();\n}", "parent": 0, "children": [7], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 9, "column": 1}}, {"id": 7, "type": "identifier", "text": "RFDuinoTick", "parent": 6, "children": [], "start_point": {"row": 4, "column": 6}, "end_point": {"row": 4, "column": 17}}, {"id": 8, "type": "labeled_statement", "text": "public:\n static void startTick();", "parent": 6, "children": [9], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 6, "column": 26}}, {"id": 9, "type": "declaration", "text": "static void startTick();", "parent": 8, "children": [10, 11], "start_point": {"row": 6, "column": 2}, "end_point": {"row": 6, "column": 26}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 13}}, {"id": 11, "type": "function_declarator", "text": "startTick()", "parent": 9, "children": [12, 13], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 25}}, {"id": 12, "type": "identifier", "text": "startTick", "parent": 11, "children": [], "start_point": {"row": 6, "column": 14}, "end_point": {"row": 6, "column": 23}}, {"id": 13, "type": "parameter_list", "text": "()", "parent": 11, "children": [], "start_point": {"row": 6, "column": 23}, "end_point": {"row": 6, "column": 25}}, {"id": 14, "type": "declaration", "text": "static void stopTick();", "parent": 6, "children": [15, 16], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 25}}, {"id": 15, "type": "primitive_type", "text": "void", "parent": 14, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 13}}, {"id": 16, "type": "function_declarator", "text": "stopTick()", "parent": 14, "children": [17, 18], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 24}}, {"id": 17, "type": "identifier", "text": "stopTick", "parent": 16, "children": [], "start_point": {"row": 7, "column": 14}, "end_point": {"row": 7, "column": 22}}, {"id": 18, "type": "parameter_list", "text": "()", "parent": 16, "children": [], "start_point": {"row": 7, "column": 22}, "end_point": {"row": 7, "column": 24}}, {"id": 19, "type": "declaration", "text": "static void tick();", "parent": 6, "children": [20, 21], "start_point": {"row": 8, "column": 2}, "end_point": {"row": 8, "column": 21}}, {"id": 20, "type": "primitive_type", "text": "void", "parent": 19, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 13}}, {"id": 21, "type": "function_declarator", "text": "tick()", "parent": 19, "children": [22, 23], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 20}}, {"id": 22, "type": "identifier", "text": "tick", "parent": 21, "children": [], "start_point": {"row": 8, "column": 14}, "end_point": {"row": 8, "column": 18}}, {"id": 23, "type": "parameter_list", "text": "()", "parent": 21, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 20}}, {"id": 24, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}]}, "node_categories": {"declarations": {"functions": [6, 11, 16, 21], "variables": [9, 14, 19], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 7, 12, 17, 22, 24], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 6, "universal_type": "function", "name": "RFDuinoTick{", "text_snippet": "class RFDuinoTick{\npublic:\n static void startTick();\n static void stopTick();\n static void tick()"}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "startTick()"}, {"node_id": 16, "universal_type": "function", "name": "unknown", "text_snippet": "stopTick()"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "tick()"}], "class_declarations": [], "import_statements": []}, "original_source_code": "\n#ifndef __RFDUINO_TICK_H__\n#define __RFDUINO_TICK_H__\n\nclass RFDuinoTick{\npublic:\n static void startTick();\n static void stopTick();\n static void tick();\n};\n\n#endif\n"}
80,377
c
#include <math.h> // M_PI constant #include <stdio.h> #include <string.h> // strncopy(), strlen() etc // definin a random function void something() { printf("Ok called this function\n"); } // part II float get_pi() { return M_PI; } // loops void the_while() { int counter = 0; while (counter < 5) { printf("OK counter is now equal to: %d\n", counter); counter = counter + 1; } } void the_for() { for(int i = 0; i < 5; i = i + 1) { printf("OK i is now equal to: %d\n", i); } } // symbolic constants #define CONST_THREE 3 #define CONST_ZERO 0 // (wildly memory unsafe) conditionals char * some_complex_operation(int input_num) { if (input_num < 0) { return "That's a negative number"; } else if (input_num > 100) { return "That's a pretty big number"; } else { return "That's a number between 0 and 100!"; } } // maybe safer thing which modifies existing memory buffer // passes in a reference to existing buffer... then modifies the buffer... void populate_message(char * message, int buffersize) { const char * msg = "Hello!"; strncpy(message, msg, buffersize - 1); // copy buffersize-1 chars from msg into message message[buffersize - 1] = '\0'; // null terminate } // yeah int main() { printf("Hello World!\n"); // basic user defined function something(); // user defined fn with return value that's a lib constant float my_pi = get_pi(); printf("OK here's pi: %f\n", my_pi); // some loops though the_while(); the_for(); // use symbolic constants printf("This constant should be a zero: %d\n", CONST_ZERO); for (int j = 0; j < CONST_THREE; j = j + 1) { printf("Counting up to a symbolic constant: %d\n", j); } // seemingly unsafe non-pre-allocated char pointers char * my_message; my_message = some_complex_operation(5); printf("The message: %s\n", my_message); my_message = some_complex_operation(-1); printf("The message: %s\n", my_message); my_message = some_complex_operation(101); printf("The message: %s\n", my_message); // possibly safer pre-allocated memory? char message[15]; printf("Initial message: %s\n", message); printf("Initial message length: %ld\n", strlen(message)); populate_message(message, sizeof(message)); printf("Updated message: %s\n", message); return 0; }
24.43
91
(translation_unit) "#include <math.h> // M_PI constant\n#include <stdio.h>\n#include <string.h> // strncopy(), strlen() etc\n\n// definin a random function\nvoid something()\n{\n printf("Ok called this function\n");\n}\n\n// part II\nfloat get_pi()\n{\n return M_PI;\n}\n\n// loops\nvoid the_while()\n{\n int counter = 0;\n while (counter < 5)\n {\n printf("OK counter is now equal to: %d\n", counter);\n counter = counter + 1;\n }\n}\n\nvoid the_for()\n{\n for(int i = 0; i < 5; i = i + 1)\n {\n printf("OK i is now equal to: %d\n", i);\n }\n}\n\n// symbolic constants\n#define CONST_THREE 3\n#define CONST_ZERO 0\n\n// (wildly memory unsafe) conditionals\nchar * some_complex_operation(int input_num)\n{\n if (input_num < 0)\n {\n return "That's a negative number";\n }\n else if (input_num > 100)\n {\n return "That's a pretty big number";\n }\n else\n {\n return "That's a number between 0 and 100!";\n }\n}\n\n// maybe safer thing which modifies existing memory buffer\n// passes in a reference to existing buffer... then modifies the buffer...\nvoid populate_message(char * message, int buffersize)\n{\n const char * msg = "Hello!";\n strncpy(message, msg, buffersize - 1); // copy buffersize-1 chars from msg into message\n message[buffersize - 1] = '\0'; // null terminate\n}\n\n// yeah\nint main()\n{\n printf("Hello World!\n");\n\n // basic user defined function\n something();\n\n // user defined fn with return value that's a lib constant\n float my_pi = get_pi();\n printf("OK here's pi: %f\n", my_pi);\n\n // some loops though\n the_while();\n the_for();\n\n // use symbolic constants\n printf("This constant should be a zero: %d\n", CONST_ZERO);\n for (int j = 0; j < CONST_THREE; j = j + 1)\n {\n printf("Counting up to a symbolic constant: %d\n", j);\n }\n\n // seemingly unsafe non-pre-allocated char pointers\n char * my_message;\n my_message = some_complex_operation(5);\n printf("The message: %s\n", my_message);\n my_message = some_complex_operation(-1);\n printf("The message: %s\n", my_message);\n my_message = some_complex_operation(101);\n printf("The message: %s\n", my_message);\n\n // possibly safer pre-allocated memory?\n char message[15];\n printf("Initial message: %s\n", message);\n printf("Initial message length: %ld\n", strlen(message));\n populate_message(message, sizeof(message));\n printf("Updated message: %s\n", message);\n\n return 0;\n}\n\n" (preproc_include) "#include <math.h> // M_PI constant\n" (#include) "#include" (system_lib_string) "<math.h>" (comment) "// M_PI constant" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <string.h> // strncopy(), strlen() etc\n" (#include) "#include" (system_lib_string) "<string.h>" (comment) "// strncopy(), strlen() etc" (comment) "// definin a random function" (function_definition) "void something()\n{\n printf("Ok called this function\n");\n}" (primitive_type) "void" (function_declarator) "something()" (identifier) "something" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n printf("Ok called this function\n");\n}" ({) "{" (expression_statement) "printf("Ok called this function\n");" (call_expression) "printf("Ok called this function\n")" (identifier) "printf" (argument_list) "("Ok called this function\n")" (() "(" (string_literal) ""Ok called this function\n"" (") """ (string_content) "Ok called this function" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (comment) "// part II" (function_definition) "float get_pi()\n{\n return M_PI;\n}" (primitive_type) "float" (function_declarator) "get_pi()" (identifier) "get_pi" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n return M_PI;\n}" ({) "{" (return_statement) "return M_PI;" (return) "return" (identifier) "M_PI" (;) ";" (}) "}" (comment) "// loops" (function_definition) "void the_while()\n{\n int counter = 0;\n while (counter < 5)\n {\n printf("OK counter is now equal to: %d\n", counter);\n counter = counter + 1;\n }\n}" (primitive_type) "void" (function_declarator) "the_while()" (identifier) "the_while" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n int counter = 0;\n while (counter < 5)\n {\n printf("OK counter is now equal to: %d\n", counter);\n counter = counter + 1;\n }\n}" ({) "{" (declaration) "int counter = 0;" (primitive_type) "int" (init_declarator) "counter = 0" (identifier) "counter" (=) "=" (number_literal) "0" (;) ";" (while_statement) "while (counter < 5)\n {\n printf("OK counter is now equal to: %d\n", counter);\n counter = counter + 1;\n }" (while) "while" (parenthesized_expression) "(counter < 5)" (() "(" (binary_expression) "counter < 5" (identifier) "counter" (<) "<" (number_literal) "5" ()) ")" (compound_statement) "{\n printf("OK counter is now equal to: %d\n", counter);\n counter = counter + 1;\n }" ({) "{" (expression_statement) "printf("OK counter is now equal to: %d\n", counter);" (call_expression) "printf("OK counter is now equal to: %d\n", counter)" (identifier) "printf" (argument_list) "("OK counter is now equal to: %d\n", counter)" (() "(" (string_literal) ""OK counter is now equal to: %d\n"" (") """ (string_content) "OK counter is now equal to: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "counter" ()) ")" (;) ";" (expression_statement) "counter = counter + 1;" (assignment_expression) "counter = counter + 1" (identifier) "counter" (=) "=" (binary_expression) "counter + 1" (identifier) "counter" (+) "+" (number_literal) "1" (;) ";" (}) "}" (}) "}" (function_definition) "void the_for()\n{\n for(int i = 0; i < 5; i = i + 1)\n {\n printf("OK i is now equal to: %d\n", i);\n }\n}" (primitive_type) "void" (function_declarator) "the_for()" (identifier) "the_for" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n for(int i = 0; i < 5; i = i + 1)\n {\n printf("OK i is now equal to: %d\n", i);\n }\n}" ({) "{" (for_statement) "for(int i = 0; i < 5; i = i + 1)\n {\n printf("OK i is now equal to: %d\n", i);\n }" (for) "for" (() "(" (declaration) "int i = 0;" (primitive_type) "int" (init_declarator) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < 5" (identifier) "i" (<) "<" (number_literal) "5" (;) ";" (assignment_expression) "i = i + 1" (identifier) "i" (=) "=" (binary_expression) "i + 1" (identifier) "i" (+) "+" (number_literal) "1" ()) ")" (compound_statement) "{\n printf("OK i is now equal to: %d\n", i);\n }" ({) "{" (expression_statement) "printf("OK i is now equal to: %d\n", i);" (call_expression) "printf("OK i is now equal to: %d\n", i)" (identifier) "printf" (argument_list) "("OK i is now equal to: %d\n", i)" (() "(" (string_literal) ""OK i is now equal to: %d\n"" (") """ (string_content) "OK i is now equal to: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "i" ()) ")" (;) ";" (}) "}" (}) "}" (comment) "// symbolic constants" (preproc_def) "#define CONST_THREE 3\n" (#define) "#define" (identifier) "CONST_THREE" (preproc_arg) "3" (preproc_def) "#define CONST_ZERO 0\n" (#define) "#define" (identifier) "CONST_ZERO" (preproc_arg) "0" (comment) "// (wildly memory unsafe) conditionals" (function_definition) "char * some_complex_operation(int input_num)\n{\n if (input_num < 0)\n {\n return "That's a negative number";\n }\n else if (input_num > 100)\n {\n return "That's a pretty big number";\n }\n else\n {\n return "That's a number between 0 and 100!";\n }\n}" (primitive_type) "char" (pointer_declarator) "* some_complex_operation(int input_num)" (*) "*" (function_declarator) "some_complex_operation(int input_num)" (identifier) "some_complex_operation" (parameter_list) "(int input_num)" (() "(" (parameter_declaration) "int input_num" (primitive_type) "int" (identifier) "input_num" ()) ")" (compound_statement) "{\n if (input_num < 0)\n {\n return "That's a negative number";\n }\n else if (input_num > 100)\n {\n return "That's a pretty big number";\n }\n else\n {\n return "That's a number between 0 and 100!";\n }\n}" ({) "{" (if_statement) "if (input_num < 0)\n {\n return "That's a negative number";\n }\n else if (input_num > 100)\n {\n return "That's a pretty big number";\n }\n else\n {\n return "That's a number between 0 and 100!";\n }" (if) "if" (parenthesized_expression) "(input_num < 0)" (() "(" (binary_expression) "input_num < 0" (identifier) "input_num" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n return "That's a negative number";\n }" ({) "{" (return_statement) "return "That's a negative number";" (return) "return" (string_literal) ""That's a negative number"" (") """ (string_content) "That's a negative number" (") """ (;) ";" (}) "}" (else_clause) "else if (input_num > 100)\n {\n return "That's a pretty big number";\n }\n else\n {\n return "That's a number between 0 and 100!";\n }" (else) "else" (if_statement) "if (input_num > 100)\n {\n return "That's a pretty big number";\n }\n else\n {\n return "That's a number between 0 and 100!";\n }" (if) "if" (parenthesized_expression) "(input_num > 100)" (() "(" (binary_expression) "input_num > 100" (identifier) "input_num" (>) ">" (number_literal) "100" ()) ")" (compound_statement) "{\n return "That's a pretty big number";\n }" ({) "{" (return_statement) "return "That's a pretty big number";" (return) "return" (string_literal) ""That's a pretty big number"" (") """ (string_content) "That's a pretty big number" (") """ (;) ";" (}) "}" (else_clause) "else\n {\n return "That's a number between 0 and 100!";\n }" (else) "else" (compound_statement) "{\n return "That's a number between 0 and 100!";\n }" ({) "{" (return_statement) "return "That's a number between 0 and 100!";" (return) "return" (string_literal) ""That's a number between 0 and 100!"" (") """ (string_content) "That's a number between 0 and 100!" (") """ (;) ";" (}) "}" (}) "}" (comment) "// maybe safer thing which modifies existing memory buffer" (comment) "// passes in a reference to existing buffer... then modifies the buffer..." (function_definition) "void populate_message(char * message, int buffersize)\n{\n const char * msg = "Hello!";\n strncpy(message, msg, buffersize - 1); // copy buffersize-1 chars from msg into message\n message[buffersize - 1] = '\0'; // null terminate\n}" (primitive_type) "void" (function_declarator) "populate_message(char * message, int buffersize)" (identifier) "populate_message" (parameter_list) "(char * message, int buffersize)" (() "(" (parameter_declaration) "char * message" (primitive_type) "char" (pointer_declarator) "* message" (*) "*" (identifier) "message" (,) "," (parameter_declaration) "int buffersize" (primitive_type) "int" (identifier) "buffersize" ()) ")" (compound_statement) "{\n const char * msg = "Hello!";\n strncpy(message, msg, buffersize - 1); // copy buffersize-1 chars from msg into message\n message[buffersize - 1] = '\0'; // null terminate\n}" ({) "{" (declaration) "const char * msg = "Hello!";" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "* msg = "Hello!"" (pointer_declarator) "* msg" (*) "*" (identifier) "msg" (=) "=" (string_literal) ""Hello!"" (") """ (string_content) "Hello!" (") """ (;) ";" (expression_statement) "strncpy(message, msg, buffersize - 1);" (call_expression) "strncpy(message, msg, buffersize - 1)" (identifier) "strncpy" (argument_list) "(message, msg, buffersize - 1)" (() "(" (identifier) "message" (,) "," (identifier) "msg" (,) "," (binary_expression) "buffersize - 1" (identifier) "buffersize" (-) "-" (number_literal) "1" ()) ")" (;) ";" (comment) "// copy buffersize-1 chars from msg into message" (expression_statement) "message[buffersize - 1] = '\0';" (assignment_expression) "message[buffersize - 1] = '\0'" (subscript_expression) "message[buffersize - 1]" (identifier) "message" ([) "[" (binary_expression) "buffersize - 1" (identifier) "buffersize" (-) "-" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (comment) "// null terminate" (}) "}" (comment) "// yeah" (function_definition) "int main()\n{\n printf("Hello World!\n");\n\n // basic user defined function\n something();\n\n // user defined fn with return value that's a lib constant\n float my_pi = get_pi();\n printf("OK here's pi: %f\n", my_pi);\n\n // some loops though\n the_while();\n the_for();\n\n // use symbolic constants\n printf("This constant should be a zero: %d\n", CONST_ZERO);\n for (int j = 0; j < CONST_THREE; j = j + 1)\n {\n printf("Counting up to a symbolic constant: %d\n", j);\n }\n\n // seemingly unsafe non-pre-allocated char pointers\n char * my_message;\n my_message = some_complex_operation(5);\n printf("The message: %s\n", my_message);\n my_message = some_complex_operation(-1);\n printf("The message: %s\n", my_message);\n my_message = some_complex_operation(101);\n printf("The message: %s\n", my_message);\n\n // possibly safer pre-allocated memory?\n char message[15];\n printf("Initial message: %s\n", message);\n printf("Initial message length: %ld\n", strlen(message));\n populate_message(message, sizeof(message));\n printf("Updated message: %s\n", message);\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main()" (identifier) "main" (parameter_list) "()" (() "(" ()) ")" (compound_statement) "{\n printf("Hello World!\n");\n\n // basic user defined function\n something();\n\n // user defined fn with return value that's a lib constant\n float my_pi = get_pi();\n printf("OK here's pi: %f\n", my_pi);\n\n // some loops though\n the_while();\n the_for();\n\n // use symbolic constants\n printf("This constant should be a zero: %d\n", CONST_ZERO);\n for (int j = 0; j < CONST_THREE; j = j + 1)\n {\n printf("Counting up to a symbolic constant: %d\n", j);\n }\n\n // seemingly unsafe non-pre-allocated char pointers\n char * my_message;\n my_message = some_complex_operation(5);\n printf("The message: %s\n", my_message);\n my_message = some_complex_operation(-1);\n printf("The message: %s\n", my_message);\n my_message = some_complex_operation(101);\n printf("The message: %s\n", my_message);\n\n // possibly safer pre-allocated memory?\n char message[15];\n printf("Initial message: %s\n", message);\n printf("Initial message length: %ld\n", strlen(message));\n populate_message(message, sizeof(message));\n printf("Updated message: %s\n", message);\n\n return 0;\n}" ({) "{" (expression_statement) "printf("Hello World!\n");" (call_expression) "printf("Hello World!\n")" (identifier) "printf" (argument_list) "("Hello World!\n")" (() "(" (string_literal) ""Hello World!\n"" (") """ (string_content) "Hello World!" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (comment) "// basic user defined function" (expression_statement) "something();" (call_expression) "something()" (identifier) "something" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// user defined fn with return value that's a lib constant" (declaration) "float my_pi = get_pi();" (primitive_type) "float" (init_declarator) "my_pi = get_pi()" (identifier) "my_pi" (=) "=" (call_expression) "get_pi()" (identifier) "get_pi" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "printf("OK here's pi: %f\n", my_pi);" (call_expression) "printf("OK here's pi: %f\n", my_pi)" (identifier) "printf" (argument_list) "("OK here's pi: %f\n", my_pi)" (() "(" (string_literal) ""OK here's pi: %f\n"" (") """ (string_content) "OK here's pi: %f" (escape_sequence) "\n" (") """ (,) "," (identifier) "my_pi" ()) ")" (;) ";" (comment) "// some loops though" (expression_statement) "the_while();" (call_expression) "the_while()" (identifier) "the_while" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "the_for();" (call_expression) "the_for()" (identifier) "the_for" (argument_list) "()" (() "(" ()) ")" (;) ";" (comment) "// use symbolic constants" (expression_statement) "printf("This constant should be a zero: %d\n", CONST_ZERO);" (call_expression) "printf("This constant should be a zero: %d\n", CONST_ZERO)" (identifier) "printf" (argument_list) "("This constant should be a zero: %d\n", CONST_ZERO)" (() "(" (string_literal) ""This constant should be a zero: %d\n"" (") """ (string_content) "This constant should be a zero: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "CONST_ZERO" ()) ")" (;) ";" (for_statement) "for (int j = 0; j < CONST_THREE; j = j + 1)\n {\n printf("Counting up to a symbolic constant: %d\n", j);\n }" (for) "for" (() "(" (declaration) "int j = 0;" (primitive_type) "int" (init_declarator) "j = 0" (identifier) "j" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "j < CONST_THREE" (identifier) "j" (<) "<" (identifier) "CONST_THREE" (;) ";" (assignment_expression) "j = j + 1" (identifier) "j" (=) "=" (binary_expression) "j + 1" (identifier) "j" (+) "+" (number_literal) "1" ()) ")" (compound_statement) "{\n printf("Counting up to a symbolic constant: %d\n", j);\n }" ({) "{" (expression_statement) "printf("Counting up to a symbolic constant: %d\n", j);" (call_expression) "printf("Counting up to a symbolic constant: %d\n", j)" (identifier) "printf" (argument_list) "("Counting up to a symbolic constant: %d\n", j)" (() "(" (string_literal) ""Counting up to a symbolic constant: %d\n"" (") """ (string_content) "Counting up to a symbolic constant: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "j" ()) ")" (;) ";" (}) "}" (comment) "// seemingly unsafe non-pre-allocated char pointers" (declaration) "char * my_message;" (primitive_type) "char" (pointer_declarator) "* my_message" (*) "*" (identifier) "my_message" (;) ";" (expression_statement) "my_message = some_complex_operation(5);" (assignment_expression) "my_message = some_complex_operation(5)" (identifier) "my_message" (=) "=" (call_expression) "some_complex_operation(5)" (identifier) "some_complex_operation" (argument_list) "(5)" (() "(" (number_literal) "5" ()) ")" (;) ";" (expression_statement) "printf("The message: %s\n", my_message);" (call_expression) "printf("The message: %s\n", my_message)" (identifier) "printf" (argument_list) "("The message: %s\n", my_message)" (() "(" (string_literal) ""The message: %s\n"" (") """ (string_content) "The message: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "my_message" ()) ")" (;) ";" (expression_statement) "my_message = some_complex_operation(-1);" (assignment_expression) "my_message = some_complex_operation(-1)" (identifier) "my_message" (=) "=" (call_expression) "some_complex_operation(-1)" (identifier) "some_complex_operation" (argument_list) "(-1)" (() "(" (number_literal) "-1" ()) ")" (;) ";" (expression_statement) "printf("The message: %s\n", my_message);" (call_expression) "printf("The message: %s\n", my_message)" (identifier) "printf" (argument_list) "("The message: %s\n", my_message)" (() "(" (string_literal) ""The message: %s\n"" (") """ (string_content) "The message: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "my_message" ()) ")" (;) ";" (expression_statement) "my_message = some_complex_operation(101);" (assignment_expression) "my_message = some_complex_operation(101)" (identifier) "my_message" (=) "=" (call_expression) "some_complex_operation(101)" (identifier) "some_complex_operation" (argument_list) "(101)" (() "(" (number_literal) "101" ()) ")" (;) ";" (expression_statement) "printf("The message: %s\n", my_message);" (call_expression) "printf("The message: %s\n", my_message)" (identifier) "printf" (argument_list) "("The message: %s\n", my_message)" (() "(" (string_literal) ""The message: %s\n"" (") """ (string_content) "The message: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "my_message" ()) ")" (;) ";" (comment) "// possibly safer pre-allocated memory?" (declaration) "char message[15];" (primitive_type) "char" (array_declarator) "message[15]" (identifier) "message" ([) "[" (number_literal) "15" (]) "]" (;) ";" (expression_statement) "printf("Initial message: %s\n", message);" (call_expression) "printf("Initial message: %s\n", message)" (identifier) "printf" (argument_list) "("Initial message: %s\n", message)" (() "(" (string_literal) ""Initial message: %s\n"" (") """ (string_content) "Initial message: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "message" ()) ")" (;) ";" (expression_statement) "printf("Initial message length: %ld\n", strlen(message));" (call_expression) "printf("Initial message length: %ld\n", strlen(message))" (identifier) "printf" (argument_list) "("Initial message length: %ld\n", strlen(message))" (() "(" (string_literal) ""Initial message length: %ld\n"" (") """ (string_content) "Initial message length: %ld" (escape_sequence) "\n" (") """ (,) "," (call_expression) "strlen(message)" (identifier) "strlen" (argument_list) "(message)" (() "(" (identifier) "message" ()) ")" ()) ")" (;) ";" (expression_statement) "populate_message(message, sizeof(message));" (call_expression) "populate_message(message, sizeof(message))" (identifier) "populate_message" (argument_list) "(message, sizeof(message))" (() "(" (identifier) "message" (,) "," (sizeof_expression) "sizeof(message)" (sizeof) "sizeof" (parenthesized_expression) "(message)" (() "(" (identifier) "message" ()) ")" ()) ")" (;) ";" (expression_statement) "printf("Updated message: %s\n", message);" (call_expression) "printf("Updated message: %s\n", message)" (identifier) "printf" (argument_list) "("Updated message: %s\n", message)" (() "(" (string_literal) ""Updated message: %s\n"" (") """ (string_content) "Updated message: %s" (escape_sequence) "\n" (") """ (,) "," (identifier) "message" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
582
0
{"language": "c", "success": true, "metadata": {"lines": 91, "avg_line_length": 24.43, "nodes": 307, "errors": 0, "source_hash": "9eb2a34e599d77fab9d6c9d7a5cf7c9cc7861caa77358834c8c8ef7d2c662ecd", "categorized_nodes": 200}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <math.h> // M_PI constant\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": "<math.h>", "parent": 0, "children": [], "start_point": {"row": 0, "column": 9}, "end_point": {"row": 0, "column": 17}}, {"id": 3, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdio.h>", "parent": 3, "children": [], "start_point": {"row": 1, "column": 9}, "end_point": {"row": 1, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include <string.h> // strncopy(), strlen() etc\n", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<string.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "function_definition", "text": "void something()\n{\n printf(\"Ok called this function\\n\");\n}", "parent": null, "children": [10, 11], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 8, "column": 1}}, {"id": 10, "type": "primitive_type", "text": "void", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 11, "type": "function_declarator", "text": "something()", "parent": 9, "children": [12, 13], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 16}}, {"id": 12, "type": "identifier", "text": "something", "parent": 11, "children": [], "start_point": {"row": 5, "column": 5}, "end_point": {"row": 5, "column": 14}}, {"id": 13, "type": "parameter_list", "text": "()", "parent": 11, "children": [], "start_point": {"row": 5, "column": 14}, "end_point": {"row": 5, "column": 16}}, {"id": 14, "type": "call_expression", "text": "printf(\"Ok called this function\\n\")", "parent": 9, "children": [15, 16], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 37}}, {"id": 15, "type": "identifier", "text": "printf", "parent": 14, "children": [], "start_point": {"row": 7, "column": 2}, "end_point": {"row": 7, "column": 8}}, {"id": 16, "type": "argument_list", "text": "(\"Ok called this function\\n\")", "parent": 14, "children": [17], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 37}}, {"id": 17, "type": "string_literal", "text": "\"Ok called this function\\n\"", "parent": 16, "children": [18], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 36}}, {"id": 18, "type": "escape_sequence", "text": "\\n", "parent": 17, "children": [], "start_point": {"row": 7, "column": 33}, "end_point": {"row": 7, "column": 35}}, {"id": 19, "type": "function_definition", "text": "float get_pi()\n{\n return M_PI;\n}", "parent": null, "children": [20, 21], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 20, "type": "primitive_type", "text": "float", "parent": 19, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 21, "type": "function_declarator", "text": "get_pi()", "parent": 19, "children": [22, 23], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 14}}, {"id": 22, "type": "identifier", "text": "get_pi", "parent": 21, "children": [], "start_point": {"row": 11, "column": 6}, "end_point": {"row": 11, "column": 12}}, {"id": 23, "type": "parameter_list", "text": "()", "parent": 21, "children": [], "start_point": {"row": 11, "column": 12}, "end_point": {"row": 11, "column": 14}}, {"id": 24, "type": "return_statement", "text": "return M_PI;", "parent": 19, "children": [25], "start_point": {"row": 13, "column": 2}, "end_point": {"row": 13, "column": 14}}, {"id": 25, "type": "identifier", "text": "M_PI", "parent": 24, "children": [], "start_point": {"row": 13, "column": 9}, "end_point": {"row": 13, "column": 13}}, {"id": 26, "type": "function_definition", "text": "void the_while()\n{\n int counter = 0;\n while (counter < 5)\n {\n printf(\"OK counter is now equal to: %d\\n\", counter);\n counter = counter + 1;\n }\n}", "parent": null, "children": [27, 28], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 25, "column": 1}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 4}}, {"id": 28, "type": "function_declarator", "text": "the_while()", "parent": 26, "children": [29, 30], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 16}}, {"id": 29, "type": "identifier", "text": "the_while", "parent": 28, "children": [], "start_point": {"row": 17, "column": 5}, "end_point": {"row": 17, "column": 14}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 16}}, {"id": 31, "type": "declaration", "text": "int counter = 0;", "parent": 26, "children": [32, 33], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 18}}, {"id": 32, "type": "primitive_type", "text": "int", "parent": 31, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 5}}, {"id": 33, "type": "init_declarator", "text": "counter = 0", "parent": 31, "children": [34, 35, 36], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 17}}, {"id": 34, "type": "identifier", "text": "counter", "parent": 33, "children": [], "start_point": {"row": 19, "column": 6}, "end_point": {"row": 19, "column": 13}}, {"id": 35, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 15}}, {"id": 36, "type": "number_literal", "text": "0", "parent": 33, "children": [], "start_point": {"row": 19, "column": 16}, "end_point": {"row": 19, "column": 17}}, {"id": 37, "type": "while_statement", "text": "while (counter < 5)\n {\n printf(\"OK counter is now equal to: %d\\n\", counter);\n counter = counter + 1;\n }", "parent": 26, "children": [38], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 24, "column": 3}}, {"id": 38, "type": "parenthesized_expression", "text": "(counter < 5)", "parent": 37, "children": [39], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 21}}, {"id": 39, "type": "binary_expression", "text": "counter < 5", "parent": 38, "children": [40, 41, 42], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 20}}, {"id": 40, "type": "identifier", "text": "counter", "parent": 39, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 16}}, {"id": 41, "type": "<", "text": "<", "parent": 39, "children": [], "start_point": {"row": 20, "column": 17}, "end_point": {"row": 20, "column": 18}}, {"id": 42, "type": "number_literal", "text": "5", "parent": 39, "children": [], "start_point": {"row": 20, "column": 19}, "end_point": {"row": 20, "column": 20}}, {"id": 43, "type": "call_expression", "text": "printf(\"OK counter is now equal to: %d\\n\", counter)", "parent": 37, "children": [44, 45], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 55}}, {"id": 44, "type": "identifier", "text": "printf", "parent": 43, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 10}}, {"id": 45, "type": "argument_list", "text": "(\"OK counter is now equal to: %d\\n\", counter)", "parent": 43, "children": [46, 48], "start_point": {"row": 22, "column": 10}, "end_point": {"row": 22, "column": 55}}, {"id": 46, "type": "string_literal", "text": "\"OK counter is now equal to: %d\\n\"", "parent": 45, "children": [47], "start_point": {"row": 22, "column": 11}, "end_point": {"row": 22, "column": 45}}, {"id": 47, "type": "escape_sequence", "text": "\\n", "parent": 46, "children": [], "start_point": {"row": 22, "column": 42}, "end_point": {"row": 22, "column": 44}}, {"id": 48, "type": "identifier", "text": "counter", "parent": 45, "children": [], "start_point": {"row": 22, "column": 47}, "end_point": {"row": 22, "column": 54}}, {"id": 49, "type": "assignment_expression", "text": "counter = counter + 1", "parent": 37, "children": [50, 51, 52], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 25}}, {"id": 50, "type": "identifier", "text": "counter", "parent": 49, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 11}}, {"id": 51, "type": "=", "text": "=", "parent": 49, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 13}}, {"id": 52, "type": "binary_expression", "text": "counter + 1", "parent": 49, "children": [53, 54, 55], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 25}}, {"id": 53, "type": "identifier", "text": "counter", "parent": 52, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 21}}, {"id": 54, "type": "+", "text": "+", "parent": 52, "children": [], "start_point": {"row": 23, "column": 22}, "end_point": {"row": 23, "column": 23}}, {"id": 55, "type": "number_literal", "text": "1", "parent": 52, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 25}}, {"id": 56, "type": "function_definition", "text": "void the_for()\n{\n for(int i = 0; i < 5; i = i + 1)\n {\n printf(\"OK i is now equal to: %d\\n\", i);\n }\n}", "parent": null, "children": [57, 58], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 33, "column": 1}}, {"id": 57, "type": "primitive_type", "text": "void", "parent": 56, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 4}}, {"id": 58, "type": "function_declarator", "text": "the_for()", "parent": 56, "children": [59, 60], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 14}}, {"id": 59, "type": "identifier", "text": "the_for", "parent": 58, "children": [], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 12}}, {"id": 60, "type": "parameter_list", "text": "()", "parent": 58, "children": [], "start_point": {"row": 27, "column": 12}, "end_point": {"row": 27, "column": 14}}, {"id": 61, "type": "for_statement", "text": "for(int i = 0; i < 5; i = i + 1)\n {\n printf(\"OK i is now equal to: %d\\n\", i);\n }", "parent": 56, "children": [62, 68, 72], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 32, "column": 3}}, {"id": 62, "type": "declaration", "text": "int i = 0;", "parent": 61, "children": [63, 64], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 16}}, {"id": 63, "type": "primitive_type", "text": "int", "parent": 62, "children": [], "start_point": {"row": 29, "column": 6}, "end_point": {"row": 29, "column": 9}}, {"id": 64, "type": "init_declarator", "text": "i = 0", "parent": 62, "children": [65, 66, 67], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 15}}, {"id": 65, "type": "identifier", "text": "i", "parent": 64, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 11}}, {"id": 66, "type": "=", "text": "=", "parent": 64, "children": [], "start_point": {"row": 29, "column": 12}, "end_point": {"row": 29, "column": 13}}, {"id": 67, "type": "number_literal", "text": "0", "parent": 64, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 15}}, {"id": 68, "type": "binary_expression", "text": "i < 5", "parent": 61, "children": [69, 70, 71], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 22}}, {"id": 69, "type": "identifier", "text": "i", "parent": 68, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 70, "type": "<", "text": "<", "parent": 68, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 20}}, {"id": 71, "type": "number_literal", "text": "5", "parent": 68, "children": [], "start_point": {"row": 29, "column": 21}, "end_point": {"row": 29, "column": 22}}, {"id": 72, "type": "assignment_expression", "text": "i = i + 1", "parent": 61, "children": [73, 74, 75], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 33}}, {"id": 73, "type": "identifier", "text": "i", "parent": 72, "children": [], "start_point": {"row": 29, "column": 24}, "end_point": {"row": 29, "column": 25}}, {"id": 74, "type": "=", "text": "=", "parent": 72, "children": [], "start_point": {"row": 29, "column": 26}, "end_point": {"row": 29, "column": 27}}, {"id": 75, "type": "binary_expression", "text": "i + 1", "parent": 72, "children": [76, 77, 78], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 33}}, {"id": 76, "type": "identifier", "text": "i", "parent": 75, "children": [], "start_point": {"row": 29, "column": 28}, "end_point": {"row": 29, "column": 29}}, {"id": 77, "type": "+", "text": "+", "parent": 75, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 31}}, {"id": 78, "type": "number_literal", "text": "1", "parent": 75, "children": [], "start_point": {"row": 29, "column": 32}, "end_point": {"row": 29, "column": 33}}, {"id": 79, "type": "call_expression", "text": "printf(\"OK i is now equal to: %d\\n\", i)", "parent": 61, "children": [80, 81], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 43}}, {"id": 80, "type": "identifier", "text": "printf", "parent": 79, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 10}}, {"id": 81, "type": "argument_list", "text": "(\"OK i is now equal to: %d\\n\", i)", "parent": 79, "children": [82, 84], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 43}}, {"id": 82, "type": "string_literal", "text": "\"OK i is now equal to: %d\\n\"", "parent": 81, "children": [83], "start_point": {"row": 31, "column": 11}, "end_point": {"row": 31, "column": 39}}, {"id": 83, "type": "escape_sequence", "text": "\\n", "parent": 82, "children": [], "start_point": {"row": 31, "column": 36}, "end_point": {"row": 31, "column": 38}}, {"id": 84, "type": "identifier", "text": "i", "parent": 81, "children": [], "start_point": {"row": 31, "column": 41}, "end_point": {"row": 31, "column": 42}}, {"id": 85, "type": "preproc_def", "text": "#define CONST_THREE 3\n", "parent": null, "children": [86, 87, 88], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 86, "type": "#define", "text": "#define", "parent": 85, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 87, "type": "identifier", "text": "CONST_THREE", "parent": 85, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 19}}, {"id": 88, "type": "preproc_arg", "text": "3", "parent": 85, "children": [], "start_point": {"row": 36, "column": 20}, "end_point": {"row": 36, "column": 21}}, {"id": 89, "type": "preproc_def", "text": "#define CONST_ZERO 0\n", "parent": null, "children": [90, 91, 92], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 90, "type": "#define", "text": "#define", "parent": 89, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 91, "type": "identifier", "text": "CONST_ZERO", "parent": 89, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 18}}, {"id": 92, "type": "preproc_arg", "text": "0", "parent": 89, "children": [], "start_point": {"row": 37, "column": 19}, "end_point": {"row": 37, "column": 20}}, {"id": 93, "type": "function_definition", "text": "char * some_complex_operation(int input_num)\n{\n if (input_num < 0)\n {\n return \"That's a negative number\";\n }\n else if (input_num > 100)\n {\n return \"That's a pretty big number\";\n }\n else\n {\n return \"That's a number between 0 and 100!\";\n }\n}", "parent": null, "children": [94, 95], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 54, "column": 1}}, {"id": 94, "type": "primitive_type", "text": "char", "parent": 93, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 4}}, {"id": 95, "type": "pointer_declarator", "text": "* some_complex_operation(int input_num)", "parent": 93, "children": [96, 97], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 44}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 6}}, {"id": 97, "type": "function_declarator", "text": "some_complex_operation(int input_num)", "parent": 95, "children": [98, 99], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 44}}, {"id": 98, "type": "identifier", "text": "some_complex_operation", "parent": 97, "children": [], "start_point": {"row": 40, "column": 7}, "end_point": {"row": 40, "column": 29}}, {"id": 99, "type": "parameter_list", "text": "(int input_num)", "parent": 97, "children": [100], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 44}}, {"id": 100, "type": "parameter_declaration", "text": "int input_num", "parent": 99, "children": [101, 102], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 43}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 100, "children": [], "start_point": {"row": 40, "column": 30}, "end_point": {"row": 40, "column": 33}}, {"id": 102, "type": "identifier", "text": "input_num", "parent": 100, "children": [], "start_point": {"row": 40, "column": 34}, "end_point": {"row": 40, "column": 43}}, {"id": 103, "type": "if_statement", "text": "if (input_num < 0)\n {\n return \"That's a negative number\";\n }\n else if (input_num > 100)\n {\n return \"That's a pretty big number\";\n }\n else\n {\n return \"That's a number between 0 and 100!\";\n }", "parent": 93, "children": [104, 111], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 53, "column": 3}}, {"id": 104, "type": "parenthesized_expression", "text": "(input_num < 0)", "parent": 103, "children": [105], "start_point": {"row": 42, "column": 5}, "end_point": {"row": 42, "column": 20}}, {"id": 105, "type": "binary_expression", "text": "input_num < 0", "parent": 104, "children": [106, 107, 108], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 19}}, {"id": 106, "type": "identifier", "text": "input_num", "parent": 105, "children": [], "start_point": {"row": 42, "column": 6}, "end_point": {"row": 42, "column": 15}}, {"id": 107, "type": "<", "text": "<", "parent": 105, "children": [], "start_point": {"row": 42, "column": 16}, "end_point": {"row": 42, "column": 17}}, {"id": 108, "type": "number_literal", "text": "0", "parent": 105, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 19}}, {"id": 109, "type": "return_statement", "text": "return \"That's a negative number\";", "parent": 103, "children": [110], "start_point": {"row": 44, "column": 4}, "end_point": {"row": 44, "column": 38}}, {"id": 110, "type": "string_literal", "text": "\"That's a negative number\"", "parent": 109, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 37}}, {"id": 111, "type": "else_clause", "text": "else if (input_num > 100)\n {\n return \"That's a pretty big number\";\n }\n else\n {\n return \"That's a number between 0 and 100!\";\n }", "parent": 103, "children": [112], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 53, "column": 3}}, {"id": 112, "type": "if_statement", "text": "if (input_num > 100)\n {\n return \"That's a pretty big number\";\n }\n else\n {\n return \"That's a number between 0 and 100!\";\n }", "parent": 111, "children": [113, 120], "start_point": {"row": 46, "column": 7}, "end_point": {"row": 53, "column": 3}}, {"id": 113, "type": "parenthesized_expression", "text": "(input_num > 100)", "parent": 112, "children": [114], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 27}}, {"id": 114, "type": "binary_expression", "text": "input_num > 100", "parent": 113, "children": [115, 116, 117], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 26}}, {"id": 115, "type": "identifier", "text": "input_num", "parent": 114, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 20}}, {"id": 116, "type": ">", "text": ">", "parent": 114, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 22}}, {"id": 117, "type": "number_literal", "text": "100", "parent": 114, "children": [], "start_point": {"row": 46, "column": 23}, "end_point": {"row": 46, "column": 26}}, {"id": 118, "type": "return_statement", "text": "return \"That's a pretty big number\";", "parent": 112, "children": [119], "start_point": {"row": 48, "column": 4}, "end_point": {"row": 48, "column": 40}}, {"id": 119, "type": "string_literal", "text": "\"That's a pretty big number\"", "parent": 118, "children": [], "start_point": {"row": 48, "column": 11}, "end_point": {"row": 48, "column": 39}}, {"id": 120, "type": "else_clause", "text": "else\n {\n return \"That's a number between 0 and 100!\";\n }", "parent": 112, "children": [], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 53, "column": 3}}, {"id": 121, "type": "return_statement", "text": "return \"That's a number between 0 and 100!\";", "parent": 120, "children": [122], "start_point": {"row": 52, "column": 4}, "end_point": {"row": 52, "column": 48}}, {"id": 122, "type": "string_literal", "text": "\"That's a number between 0 and 100!\"", "parent": 121, "children": [], "start_point": {"row": 52, "column": 11}, "end_point": {"row": 52, "column": 47}}, {"id": 123, "type": "function_definition", "text": "void populate_message(char * message, int buffersize)\n{\n const char * msg = \"Hello!\";\n strncpy(message, msg, buffersize - 1); // copy buffersize-1 chars from msg into message\n message[buffersize - 1] = '\\0'; // null terminate\n}", "parent": null, "children": [124, 125], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 63, "column": 1}}, {"id": 124, "type": "primitive_type", "text": "void", "parent": 123, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 4}}, {"id": 125, "type": "function_declarator", "text": "populate_message(char * message, int buffersize)", "parent": 123, "children": [126, 127], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 53}}, {"id": 126, "type": "identifier", "text": "populate_message", "parent": 125, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 21}}, {"id": 127, "type": "parameter_list", "text": "(char * message, int buffersize)", "parent": 125, "children": [128, 133], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 53}}, {"id": 128, "type": "parameter_declaration", "text": "char * message", "parent": 127, "children": [129, 130], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 36}}, {"id": 129, "type": "primitive_type", "text": "char", "parent": 128, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 26}}, {"id": 130, "type": "pointer_declarator", "text": "* message", "parent": 128, "children": [131, 132], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 36}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 58, "column": 27}, "end_point": {"row": 58, "column": 28}}, {"id": 132, "type": "identifier", "text": "message", "parent": 130, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 36}}, {"id": 133, "type": "parameter_declaration", "text": "int buffersize", "parent": 127, "children": [134, 135], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 52}}, {"id": 134, "type": "primitive_type", "text": "int", "parent": 133, "children": [], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 41}}, {"id": 135, "type": "identifier", "text": "buffersize", "parent": 133, "children": [], "start_point": {"row": 58, "column": 42}, "end_point": {"row": 58, "column": 52}}, {"id": 136, "type": "declaration", "text": "const char * msg = \"Hello!\";", "parent": 123, "children": [137, 138], "start_point": {"row": 60, "column": 2}, "end_point": {"row": 60, "column": 30}}, {"id": 137, "type": "primitive_type", "text": "char", "parent": 136, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 12}}, {"id": 138, "type": "init_declarator", "text": "* msg = \"Hello!\"", "parent": 136, "children": [139, 142, 143], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 29}}, {"id": 139, "type": "pointer_declarator", "text": "* msg", "parent": 138, "children": [140, 141], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 18}}, {"id": 140, "type": "*", "text": "*", "parent": 139, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 14}}, {"id": 141, "type": "identifier", "text": "msg", "parent": 139, "children": [], "start_point": {"row": 60, "column": 15}, "end_point": {"row": 60, "column": 18}}, {"id": 142, "type": "=", "text": "=", "parent": 138, "children": [], "start_point": {"row": 60, "column": 19}, "end_point": {"row": 60, "column": 20}}, {"id": 143, "type": "string_literal", "text": "\"Hello!\"", "parent": 138, "children": [], "start_point": {"row": 60, "column": 21}, "end_point": {"row": 60, "column": 29}}, {"id": 144, "type": "call_expression", "text": "strncpy(message, msg, buffersize - 1)", "parent": 123, "children": [145, 146], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 39}}, {"id": 145, "type": "identifier", "text": "strncpy", "parent": 144, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 9}}, {"id": 146, "type": "argument_list", "text": "(message, msg, buffersize - 1)", "parent": 144, "children": [147, 148, 149], "start_point": {"row": 61, "column": 9}, "end_point": {"row": 61, "column": 39}}, {"id": 147, "type": "identifier", "text": "message", "parent": 146, "children": [], "start_point": {"row": 61, "column": 10}, "end_point": {"row": 61, "column": 17}}, {"id": 148, "type": "identifier", "text": "msg", "parent": 146, "children": [], "start_point": {"row": 61, "column": 19}, "end_point": {"row": 61, "column": 22}}, {"id": 149, "type": "binary_expression", "text": "buffersize - 1", "parent": 146, "children": [150, 151, 152], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 38}}, {"id": 150, "type": "identifier", "text": "buffersize", "parent": 149, "children": [], "start_point": {"row": 61, "column": 24}, "end_point": {"row": 61, "column": 34}}, {"id": 151, "type": "-", "text": "-", "parent": 149, "children": [], "start_point": {"row": 61, "column": 35}, "end_point": {"row": 61, "column": 36}}, {"id": 152, "type": "number_literal", "text": "1", "parent": 149, "children": [], "start_point": {"row": 61, "column": 37}, "end_point": {"row": 61, "column": 38}}, {"id": 153, "type": "assignment_expression", "text": "message[buffersize - 1] = '\\0'", "parent": 123, "children": [154, 160, 161], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 32}}, {"id": 154, "type": "subscript_expression", "text": "message[buffersize - 1]", "parent": 153, "children": [155, 156], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 25}}, {"id": 155, "type": "identifier", "text": "message", "parent": 154, "children": [], "start_point": {"row": 62, "column": 2}, "end_point": {"row": 62, "column": 9}}, {"id": 156, "type": "binary_expression", "text": "buffersize - 1", "parent": 154, "children": [157, 158, 159], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 24}}, {"id": 157, "type": "identifier", "text": "buffersize", "parent": 156, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 20}}, {"id": 158, "type": "-", "text": "-", "parent": 156, "children": [], "start_point": {"row": 62, "column": 21}, "end_point": {"row": 62, "column": 22}}, {"id": 159, "type": "number_literal", "text": "1", "parent": 156, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 24}}, {"id": 160, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 27}}, {"id": 161, "type": "char_literal", "text": "'\\0'", "parent": 153, "children": [162, 163, 164], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 32}}, {"id": 162, "type": "'", "text": "'", "parent": 161, "children": [], "start_point": {"row": 62, "column": 28}, "end_point": {"row": 62, "column": 29}}, {"id": 163, "type": "escape_sequence", "text": "\\0", "parent": 161, "children": [], "start_point": {"row": 62, "column": 29}, "end_point": {"row": 62, "column": 31}}, {"id": 164, "type": "'", "text": "'", "parent": 161, "children": [], "start_point": {"row": 62, "column": 31}, "end_point": {"row": 62, "column": 32}}, {"id": 165, "type": "function_definition", "text": "int main()\n{\n printf(\"Hello World!\\n\");\n\n // basic user defined function\n something();\n\n // user defined fn with return value that's a lib constant\n float my_pi = get_pi();\n printf(\"OK here's pi: %f\\n\", my_pi);\n\n // some loops though\n the_while();\n the_for();\n\n // use symbolic constants\n printf(\"This constant should be a zero: %d\\n\", CONST_ZERO);\n for (int j = 0; j < CONST_THREE; j = j + 1)\n {\n printf(\"Counting up to a symbolic constant: %d\\n\", j);\n }\n\n // seemingly unsafe non-pre-allocated char pointers\n char * my_message;\n my_message = some_complex_operation(5);\n printf(\"The message: %s\\n\", my_message);\n my_message = some_complex_operation(-1);\n printf(\"The message: %s\\n\", my_message);\n my_message = some_complex_operation(101);\n printf(\"The message: %s\\n\", my_message);\n\n // possibly safer pre-allocated memory?\n char message[15];\n printf(\"Initial message: %s\\n\", message);\n printf(\"Initial message length: %ld\\n\", strlen(message));\n populate_message(message, sizeof(message));\n printf(\"Updated message: %s\\n\", message);\n\n return 0;\n}", "parent": null, "children": [166, 167], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 105, "column": 1}}, {"id": 166, "type": "primitive_type", "text": "int", "parent": 165, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 3}}, {"id": 167, "type": "function_declarator", "text": "main()", "parent": 165, "children": [168, 169], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 10}}, {"id": 168, "type": "identifier", "text": "main", "parent": 167, "children": [], "start_point": {"row": 66, "column": 4}, "end_point": {"row": 66, "column": 8}}, {"id": 169, "type": "parameter_list", "text": "()", "parent": 167, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 10}}, {"id": 170, "type": "call_expression", "text": "printf(\"Hello World!\\n\")", "parent": 165, "children": [171, 172], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 26}}, {"id": 171, "type": "identifier", "text": "printf", "parent": 170, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 8}}, {"id": 172, "type": "argument_list", "text": "(\"Hello World!\\n\")", "parent": 170, "children": [173], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 26}}, {"id": 173, "type": "string_literal", "text": "\"Hello World!\\n\"", "parent": 172, "children": [174], "start_point": {"row": 68, "column": 9}, "end_point": {"row": 68, "column": 25}}, {"id": 174, "type": "escape_sequence", "text": "\\n", "parent": 173, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 24}}, {"id": 175, "type": "call_expression", "text": "something()", "parent": 165, "children": [176, 177], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 13}}, {"id": 176, "type": "identifier", "text": "something", "parent": 175, "children": [], "start_point": {"row": 71, "column": 2}, "end_point": {"row": 71, "column": 11}}, {"id": 177, "type": "argument_list", "text": "()", "parent": 175, "children": [], "start_point": {"row": 71, "column": 11}, "end_point": {"row": 71, "column": 13}}, {"id": 178, "type": "declaration", "text": "float my_pi = get_pi();", "parent": 165, "children": [179, 180], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 25}}, {"id": 179, "type": "primitive_type", "text": "float", "parent": 178, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 7}}, {"id": 180, "type": "init_declarator", "text": "my_pi = get_pi()", "parent": 178, "children": [181, 182, 183], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 24}}, {"id": 181, "type": "identifier", "text": "my_pi", "parent": 180, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 13}}, {"id": 182, "type": "=", "text": "=", "parent": 180, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 15}}, {"id": 183, "type": "call_expression", "text": "get_pi()", "parent": 180, "children": [184, 185], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 24}}, {"id": 184, "type": "identifier", "text": "get_pi", "parent": 183, "children": [], "start_point": {"row": 74, "column": 16}, "end_point": {"row": 74, "column": 22}}, {"id": 185, "type": "argument_list", "text": "()", "parent": 183, "children": [], "start_point": {"row": 74, "column": 22}, "end_point": {"row": 74, "column": 24}}, {"id": 186, "type": "call_expression", "text": "printf(\"OK here's pi: %f\\n\", my_pi)", "parent": 165, "children": [187, 188], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 37}}, {"id": 187, "type": "identifier", "text": "printf", "parent": 186, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 8}}, {"id": 188, "type": "argument_list", "text": "(\"OK here's pi: %f\\n\", my_pi)", "parent": 186, "children": [189, 191], "start_point": {"row": 75, "column": 8}, "end_point": {"row": 75, "column": 37}}, {"id": 189, "type": "string_literal", "text": "\"OK here's pi: %f\\n\"", "parent": 188, "children": [190], "start_point": {"row": 75, "column": 9}, "end_point": {"row": 75, "column": 29}}, {"id": 190, "type": "escape_sequence", "text": "\\n", "parent": 189, "children": [], "start_point": {"row": 75, "column": 26}, "end_point": {"row": 75, "column": 28}}, {"id": 191, "type": "identifier", "text": "my_pi", "parent": 188, "children": [], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 36}}, {"id": 192, "type": "call_expression", "text": "the_while()", "parent": 165, "children": [193, 194], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 13}}, {"id": 193, "type": "identifier", "text": "the_while", "parent": 192, "children": [], "start_point": {"row": 78, "column": 2}, "end_point": {"row": 78, "column": 11}}, {"id": 194, "type": "argument_list", "text": "()", "parent": 192, "children": [], "start_point": {"row": 78, "column": 11}, "end_point": {"row": 78, "column": 13}}, {"id": 195, "type": "call_expression", "text": "the_for()", "parent": 165, "children": [196, 197], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 11}}, {"id": 196, "type": "identifier", "text": "the_for", "parent": 195, "children": [], "start_point": {"row": 79, "column": 2}, "end_point": {"row": 79, "column": 9}}, {"id": 197, "type": "argument_list", "text": "()", "parent": 195, "children": [], "start_point": {"row": 79, "column": 9}, "end_point": {"row": 79, "column": 11}}, {"id": 198, "type": "call_expression", "text": "printf(\"This constant should be a zero: %d\\n\", CONST_ZERO)", "parent": 165, "children": [199, 200], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 60}}, {"id": 199, "type": "identifier", "text": "printf", "parent": 198, "children": [], "start_point": {"row": 82, "column": 2}, "end_point": {"row": 82, "column": 8}}, {"id": 200, "type": "argument_list", "text": "(\"This constant should be a zero: %d\\n\", CONST_ZERO)", "parent": 198, "children": [201, 203], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 60}}, {"id": 201, "type": "string_literal", "text": "\"This constant should be a zero: %d\\n\"", "parent": 200, "children": [202], "start_point": {"row": 82, "column": 9}, "end_point": {"row": 82, "column": 47}}, {"id": 202, "type": "escape_sequence", "text": "\\n", "parent": 201, "children": [], "start_point": {"row": 82, "column": 44}, "end_point": {"row": 82, "column": 46}}, {"id": 203, "type": "identifier", "text": "CONST_ZERO", "parent": 200, "children": [], "start_point": {"row": 82, "column": 49}, "end_point": {"row": 82, "column": 59}}, {"id": 204, "type": "for_statement", "text": "for (int j = 0; j < CONST_THREE; j = j + 1)\n {\n printf(\"Counting up to a symbolic constant: %d\\n\", j);\n }", "parent": 165, "children": [205, 211, 215], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 86, "column": 3}}, {"id": 205, "type": "declaration", "text": "int j = 0;", "parent": 204, "children": [206, 207], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 17}}, {"id": 206, "type": "primitive_type", "text": "int", "parent": 205, "children": [], "start_point": {"row": 83, "column": 7}, "end_point": {"row": 83, "column": 10}}, {"id": 207, "type": "init_declarator", "text": "j = 0", "parent": 205, "children": [208, 209, 210], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 16}}, {"id": 208, "type": "identifier", "text": "j", "parent": 207, "children": [], "start_point": {"row": 83, "column": 11}, "end_point": {"row": 83, "column": 12}}, {"id": 209, "type": "=", "text": "=", "parent": 207, "children": [], "start_point": {"row": 83, "column": 13}, "end_point": {"row": 83, "column": 14}}, {"id": 210, "type": "number_literal", "text": "0", "parent": 207, "children": [], "start_point": {"row": 83, "column": 15}, "end_point": {"row": 83, "column": 16}}, {"id": 211, "type": "binary_expression", "text": "j < CONST_THREE", "parent": 204, "children": [212, 213, 214], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 33}}, {"id": 212, "type": "identifier", "text": "j", "parent": 211, "children": [], "start_point": {"row": 83, "column": 18}, "end_point": {"row": 83, "column": 19}}, {"id": 213, "type": "<", "text": "<", "parent": 211, "children": [], "start_point": {"row": 83, "column": 20}, "end_point": {"row": 83, "column": 21}}, {"id": 214, "type": "identifier", "text": "CONST_THREE", "parent": 211, "children": [], "start_point": {"row": 83, "column": 22}, "end_point": {"row": 83, "column": 33}}, {"id": 215, "type": "assignment_expression", "text": "j = j + 1", "parent": 204, "children": [216, 217, 218], "start_point": {"row": 83, "column": 35}, "end_point": {"row": 83, "column": 44}}, {"id": 216, "type": "identifier", "text": "j", "parent": 215, "children": [], "start_point": {"row": 83, "column": 35}, "end_point": {"row": 83, "column": 36}}, {"id": 217, "type": "=", "text": "=", "parent": 215, "children": [], "start_point": {"row": 83, "column": 37}, "end_point": {"row": 83, "column": 38}}, {"id": 218, "type": "binary_expression", "text": "j + 1", "parent": 215, "children": [219, 220, 221], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 44}}, {"id": 219, "type": "identifier", "text": "j", "parent": 218, "children": [], "start_point": {"row": 83, "column": 39}, "end_point": {"row": 83, "column": 40}}, {"id": 220, "type": "+", "text": "+", "parent": 218, "children": [], "start_point": {"row": 83, "column": 41}, "end_point": {"row": 83, "column": 42}}, {"id": 221, "type": "number_literal", "text": "1", "parent": 218, "children": [], "start_point": {"row": 83, "column": 43}, "end_point": {"row": 83, "column": 44}}, {"id": 222, "type": "call_expression", "text": "printf(\"Counting up to a symbolic constant: %d\\n\", j)", "parent": 204, "children": [223, 224], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 57}}, {"id": 223, "type": "identifier", "text": "printf", "parent": 222, "children": [], "start_point": {"row": 85, "column": 4}, "end_point": {"row": 85, "column": 10}}, {"id": 224, "type": "argument_list", "text": "(\"Counting up to a symbolic constant: %d\\n\", j)", "parent": 222, "children": [225, 227], "start_point": {"row": 85, "column": 10}, "end_point": {"row": 85, "column": 57}}, {"id": 225, "type": "string_literal", "text": "\"Counting up to a symbolic constant: %d\\n\"", "parent": 224, "children": [226], "start_point": {"row": 85, "column": 11}, "end_point": {"row": 85, "column": 53}}, {"id": 226, "type": "escape_sequence", "text": "\\n", "parent": 225, "children": [], "start_point": {"row": 85, "column": 50}, "end_point": {"row": 85, "column": 52}}, {"id": 227, "type": "identifier", "text": "j", "parent": 224, "children": [], "start_point": {"row": 85, "column": 55}, "end_point": {"row": 85, "column": 56}}, {"id": 228, "type": "declaration", "text": "char * my_message;", "parent": 165, "children": [229, 230], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 20}}, {"id": 229, "type": "primitive_type", "text": "char", "parent": 228, "children": [], "start_point": {"row": 89, "column": 2}, "end_point": {"row": 89, "column": 6}}, {"id": 230, "type": "pointer_declarator", "text": "* my_message", "parent": 228, "children": [231, 232], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 19}}, {"id": 231, "type": "*", "text": "*", "parent": 230, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 8}}, {"id": 232, "type": "identifier", "text": "my_message", "parent": 230, "children": [], "start_point": {"row": 89, "column": 9}, "end_point": {"row": 89, "column": 19}}, {"id": 233, "type": "assignment_expression", "text": "my_message = some_complex_operation(5)", "parent": 165, "children": [234, 235, 236], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 40}}, {"id": 234, "type": "identifier", "text": "my_message", "parent": 233, "children": [], "start_point": {"row": 90, "column": 2}, "end_point": {"row": 90, "column": 12}}, {"id": 235, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 90, "column": 13}, "end_point": {"row": 90, "column": 14}}, {"id": 236, "type": "call_expression", "text": "some_complex_operation(5)", "parent": 233, "children": [237, 238], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 40}}, {"id": 237, "type": "identifier", "text": "some_complex_operation", "parent": 236, "children": [], "start_point": {"row": 90, "column": 15}, "end_point": {"row": 90, "column": 37}}, {"id": 238, "type": "argument_list", "text": "(5)", "parent": 236, "children": [239], "start_point": {"row": 90, "column": 37}, "end_point": {"row": 90, "column": 40}}, {"id": 239, "type": "number_literal", "text": "5", "parent": 238, "children": [], "start_point": {"row": 90, "column": 38}, "end_point": {"row": 90, "column": 39}}, {"id": 240, "type": "call_expression", "text": "printf(\"The message: %s\\n\", my_message)", "parent": 165, "children": [241, 242], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 41}}, {"id": 241, "type": "identifier", "text": "printf", "parent": 240, "children": [], "start_point": {"row": 91, "column": 2}, "end_point": {"row": 91, "column": 8}}, {"id": 242, "type": "argument_list", "text": "(\"The message: %s\\n\", my_message)", "parent": 240, "children": [243, 245], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 41}}, {"id": 243, "type": "string_literal", "text": "\"The message: %s\\n\"", "parent": 242, "children": [244], "start_point": {"row": 91, "column": 9}, "end_point": {"row": 91, "column": 28}}, {"id": 244, "type": "escape_sequence", "text": "\\n", "parent": 243, "children": [], "start_point": {"row": 91, "column": 25}, "end_point": {"row": 91, "column": 27}}, {"id": 245, "type": "identifier", "text": "my_message", "parent": 242, "children": [], "start_point": {"row": 91, "column": 30}, "end_point": {"row": 91, "column": 40}}, {"id": 246, "type": "assignment_expression", "text": "my_message = some_complex_operation(-1)", "parent": 165, "children": [247, 248, 249], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 41}}, {"id": 247, "type": "identifier", "text": "my_message", "parent": 246, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 12}}, {"id": 248, "type": "=", "text": "=", "parent": 246, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 14}}, {"id": 249, "type": "call_expression", "text": "some_complex_operation(-1)", "parent": 246, "children": [250, 251], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 41}}, {"id": 250, "type": "identifier", "text": "some_complex_operation", "parent": 249, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 37}}, {"id": 251, "type": "argument_list", "text": "(-1)", "parent": 249, "children": [252], "start_point": {"row": 92, "column": 37}, "end_point": {"row": 92, "column": 41}}, {"id": 252, "type": "number_literal", "text": "-1", "parent": 251, "children": [], "start_point": {"row": 92, "column": 38}, "end_point": {"row": 92, "column": 40}}, {"id": 253, "type": "call_expression", "text": "printf(\"The message: %s\\n\", my_message)", "parent": 165, "children": [254, 255], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 41}}, {"id": 254, "type": "identifier", "text": "printf", "parent": 253, "children": [], "start_point": {"row": 93, "column": 2}, "end_point": {"row": 93, "column": 8}}, {"id": 255, "type": "argument_list", "text": "(\"The message: %s\\n\", my_message)", "parent": 253, "children": [256, 258], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 41}}, {"id": 256, "type": "string_literal", "text": "\"The message: %s\\n\"", "parent": 255, "children": [257], "start_point": {"row": 93, "column": 9}, "end_point": {"row": 93, "column": 28}}, {"id": 257, "type": "escape_sequence", "text": "\\n", "parent": 256, "children": [], "start_point": {"row": 93, "column": 25}, "end_point": {"row": 93, "column": 27}}, {"id": 258, "type": "identifier", "text": "my_message", "parent": 255, "children": [], "start_point": {"row": 93, "column": 30}, "end_point": {"row": 93, "column": 40}}, {"id": 259, "type": "assignment_expression", "text": "my_message = some_complex_operation(101)", "parent": 165, "children": [260, 261, 262], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 42}}, {"id": 260, "type": "identifier", "text": "my_message", "parent": 259, "children": [], "start_point": {"row": 94, "column": 2}, "end_point": {"row": 94, "column": 12}}, {"id": 261, "type": "=", "text": "=", "parent": 259, "children": [], "start_point": {"row": 94, "column": 13}, "end_point": {"row": 94, "column": 14}}, {"id": 262, "type": "call_expression", "text": "some_complex_operation(101)", "parent": 259, "children": [263, 264], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 42}}, {"id": 263, "type": "identifier", "text": "some_complex_operation", "parent": 262, "children": [], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 37}}, {"id": 264, "type": "argument_list", "text": "(101)", "parent": 262, "children": [265], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 42}}, {"id": 265, "type": "number_literal", "text": "101", "parent": 264, "children": [], "start_point": {"row": 94, "column": 38}, "end_point": {"row": 94, "column": 41}}, {"id": 266, "type": "call_expression", "text": "printf(\"The message: %s\\n\", my_message)", "parent": 165, "children": [267, 268], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 41}}, {"id": 267, "type": "identifier", "text": "printf", "parent": 266, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 8}}, {"id": 268, "type": "argument_list", "text": "(\"The message: %s\\n\", my_message)", "parent": 266, "children": [269, 271], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 41}}, {"id": 269, "type": "string_literal", "text": "\"The message: %s\\n\"", "parent": 268, "children": [270], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 28}}, {"id": 270, "type": "escape_sequence", "text": "\\n", "parent": 269, "children": [], "start_point": {"row": 95, "column": 25}, "end_point": {"row": 95, "column": 27}}, {"id": 271, "type": "identifier", "text": "my_message", "parent": 268, "children": [], "start_point": {"row": 95, "column": 30}, "end_point": {"row": 95, "column": 40}}, {"id": 272, "type": "declaration", "text": "char message[15];", "parent": 165, "children": [273, 274], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 19}}, {"id": 273, "type": "primitive_type", "text": "char", "parent": 272, "children": [], "start_point": {"row": 98, "column": 2}, "end_point": {"row": 98, "column": 6}}, {"id": 274, "type": "array_declarator", "text": "message[15]", "parent": 272, "children": [275, 276], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 18}}, {"id": 275, "type": "identifier", "text": "message", "parent": 274, "children": [], "start_point": {"row": 98, "column": 7}, "end_point": {"row": 98, "column": 14}}, {"id": 276, "type": "number_literal", "text": "15", "parent": 274, "children": [], "start_point": {"row": 98, "column": 15}, "end_point": {"row": 98, "column": 17}}, {"id": 277, "type": "call_expression", "text": "printf(\"Initial message: %s\\n\", message)", "parent": 165, "children": [278, 279], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 42}}, {"id": 278, "type": "identifier", "text": "printf", "parent": 277, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 8}}, {"id": 279, "type": "argument_list", "text": "(\"Initial message: %s\\n\", message)", "parent": 277, "children": [280, 282], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 42}}, {"id": 280, "type": "string_literal", "text": "\"Initial message: %s\\n\"", "parent": 279, "children": [281], "start_point": {"row": 99, "column": 9}, "end_point": {"row": 99, "column": 32}}, {"id": 281, "type": "escape_sequence", "text": "\\n", "parent": 280, "children": [], "start_point": {"row": 99, "column": 29}, "end_point": {"row": 99, "column": 31}}, {"id": 282, "type": "identifier", "text": "message", "parent": 279, "children": [], "start_point": {"row": 99, "column": 34}, "end_point": {"row": 99, "column": 41}}, {"id": 283, "type": "call_expression", "text": "printf(\"Initial message length: %ld\\n\", strlen(message))", "parent": 165, "children": [284, 285], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 58}}, {"id": 284, "type": "identifier", "text": "printf", "parent": 283, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 8}}, {"id": 285, "type": "argument_list", "text": "(\"Initial message length: %ld\\n\", strlen(message))", "parent": 283, "children": [286, 288], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 58}}, {"id": 286, "type": "string_literal", "text": "\"Initial message length: %ld\\n\"", "parent": 285, "children": [287], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 40}}, {"id": 287, "type": "escape_sequence", "text": "\\n", "parent": 286, "children": [], "start_point": {"row": 100, "column": 37}, "end_point": {"row": 100, "column": 39}}, {"id": 288, "type": "call_expression", "text": "strlen(message)", "parent": 285, "children": [289, 290], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 100, "column": 57}}, {"id": 289, "type": "identifier", "text": "strlen", "parent": 288, "children": [], "start_point": {"row": 100, "column": 42}, "end_point": {"row": 100, "column": 48}}, {"id": 290, "type": "argument_list", "text": "(message)", "parent": 288, "children": [291], "start_point": {"row": 100, "column": 48}, "end_point": {"row": 100, "column": 57}}, {"id": 291, "type": "identifier", "text": "message", "parent": 290, "children": [], "start_point": {"row": 100, "column": 49}, "end_point": {"row": 100, "column": 56}}, {"id": 292, "type": "call_expression", "text": "populate_message(message, sizeof(message))", "parent": 165, "children": [293, 294], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 44}}, {"id": 293, "type": "identifier", "text": "populate_message", "parent": 292, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 18}}, {"id": 294, "type": "argument_list", "text": "(message, sizeof(message))", "parent": 292, "children": [295, 296], "start_point": {"row": 101, "column": 18}, "end_point": {"row": 101, "column": 44}}, {"id": 295, "type": "identifier", "text": "message", "parent": 294, "children": [], "start_point": {"row": 101, "column": 19}, "end_point": {"row": 101, "column": 26}}, {"id": 296, "type": "sizeof_expression", "text": "sizeof(message)", "parent": 294, "children": [297], "start_point": {"row": 101, "column": 28}, "end_point": {"row": 101, "column": 43}}, {"id": 297, "type": "parenthesized_expression", "text": "(message)", "parent": 296, "children": [298], "start_point": {"row": 101, "column": 34}, "end_point": {"row": 101, "column": 43}}, {"id": 298, "type": "identifier", "text": "message", "parent": 297, "children": [], "start_point": {"row": 101, "column": 35}, "end_point": {"row": 101, "column": 42}}, {"id": 299, "type": "call_expression", "text": "printf(\"Updated message: %s\\n\", message)", "parent": 165, "children": [300, 301], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 42}}, {"id": 300, "type": "identifier", "text": "printf", "parent": 299, "children": [], "start_point": {"row": 102, "column": 2}, "end_point": {"row": 102, "column": 8}}, {"id": 301, "type": "argument_list", "text": "(\"Updated message: %s\\n\", message)", "parent": 299, "children": [302, 304], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 42}}, {"id": 302, "type": "string_literal", "text": "\"Updated message: %s\\n\"", "parent": 301, "children": [303], "start_point": {"row": 102, "column": 9}, "end_point": {"row": 102, "column": 32}}, {"id": 303, "type": "escape_sequence", "text": "\\n", "parent": 302, "children": [], "start_point": {"row": 102, "column": 29}, "end_point": {"row": 102, "column": 31}}, {"id": 304, "type": "identifier", "text": "message", "parent": 301, "children": [], "start_point": {"row": 102, "column": 34}, "end_point": {"row": 102, "column": 41}}, {"id": 305, "type": "return_statement", "text": "return 0;", "parent": 165, "children": [306], "start_point": {"row": 104, "column": 2}, "end_point": {"row": 104, "column": 11}}, {"id": 306, "type": "number_literal", "text": "0", "parent": 305, "children": [], "start_point": {"row": 104, "column": 9}, "end_point": {"row": 104, "column": 10}}]}, "node_categories": {"declarations": {"functions": [9, 11, 19, 21, 26, 28, 56, 58, 93, 97, 123, 125, 165, 167], "variables": [31, 62, 100, 128, 133, 136, 178, 205, 228, 272], "classes": [], "imports": [0, 1, 3, 4, 6, 7], "modules": [], "enums": []}, "statements": {"expressions": [14, 38, 39, 43, 52, 68, 75, 79, 104, 105, 113, 114, 144, 149, 154, 156, 170, 175, 183, 186, 192, 195, 198, 211, 218, 222, 236, 240, 249, 253, 262, 266, 277, 283, 288, 292, 296, 297, 299], "assignments": [49, 72, 153, 215, 233, 246, 259], "loops": [37, 61, 204], "conditionals": [12, 15, 22, 25, 29, 34, 40, 44, 48, 50, 53, 59, 65, 69, 73, 76, 80, 84, 87, 91, 98, 102, 103, 106, 112, 115, 126, 132, 135, 141, 145, 147, 148, 150, 155, 157, 168, 171, 176, 181, 184, 187, 191, 193, 196, 199, 203, 208, 212, 214, 216, 219, 223, 227, 232, 234, 237, 241, 245, 247, 250, 254, 258, 260, 263, 267, 271, 275, 278, 282, 284, 289, 291, 293, 295, 298, 300, 304], "returns": [24, 109, 118, 121, 305], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 17, 36, 42, 46, 55, 67, 71, 78, 82, 108, 110, 117, 119, 122, 143, 152, 159, 161, 173, 189, 201, 210, 221, 225, 239, 243, 252, 256, 265, 269, 276, 280, 286, 302, 306], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "something", "text_snippet": "void something()\n{\n printf(\"Ok called this function\\n\");\n}"}, {"node_id": 11, "universal_type": "function", "name": "unknown", "text_snippet": "something()"}, {"node_id": 19, "universal_type": "function", "name": "unknown", "text_snippet": "float get_pi()\n{\n return M_PI;\n}"}, {"node_id": 21, "universal_type": "function", "name": "unknown", "text_snippet": "get_pi()"}, {"node_id": 26, "universal_type": "function", "name": "the_while", "text_snippet": "void the_while()\n{\n int counter = 0;\n while (counter < 5)\n {\n printf(\"OK counter is now equal "}, {"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "the_while()"}, {"node_id": 56, "universal_type": "function", "name": "the_for", "text_snippet": "void the_for()\n{\n for(int i = 0; i < 5; i = i + 1)\n {\n printf(\"OK i is now equal to: %d\\n\", i);"}, {"node_id": 58, "universal_type": "function", "name": "unknown", "text_snippet": "the_for()"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "char * some_complex_operation(int input_num)\n{\n if (input_num < 0)\n {\n return \"That's a negativ"}, {"node_id": 97, "universal_type": "function", "name": "unknown", "text_snippet": "some_complex_operation(int input_num)"}, {"node_id": 123, "universal_type": "function", "name": "populate_message", "text_snippet": "void populate_message(char * message, int buffersize)\n{\n const char * msg = \"Hello!\";\n strncpy(mes"}, {"node_id": 125, "universal_type": "function", "name": "buffersize)", "text_snippet": "populate_message(char * message, int buffersize)"}, {"node_id": 165, "universal_type": "function", "name": "main", "text_snippet": "int main()\n{\n printf(\"Hello World!\\n\");\n\n // basic user defined function\n something();\n\n // user"}, {"node_id": 167, "universal_type": "function", "name": "unknown", "text_snippet": "main()"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <math.h> // M_PI constant\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> // strncopy(), strlen() etc\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#include <math.h> // M_PI constant\n#include <stdio.h>\n#include <string.h> // strncopy(), strlen() etc\n\n// definin a random function\nvoid something()\n{\n printf(\"Ok called this function\\n\");\n}\n\n// part II\nfloat get_pi()\n{\n return M_PI;\n}\n\n// loops\nvoid the_while()\n{\n int counter = 0;\n while (counter < 5)\n {\n printf(\"OK counter is now equal to: %d\\n\", counter);\n counter = counter + 1;\n }\n}\n\nvoid the_for()\n{\n for(int i = 0; i < 5; i = i + 1)\n {\n printf(\"OK i is now equal to: %d\\n\", i);\n }\n}\n\n// symbolic constants\n#define CONST_THREE 3\n#define CONST_ZERO 0\n\n// (wildly memory unsafe) conditionals\nchar * some_complex_operation(int input_num)\n{\n if (input_num < 0)\n {\n return \"That's a negative number\";\n }\n else if (input_num > 100)\n {\n return \"That's a pretty big number\";\n }\n else\n {\n return \"That's a number between 0 and 100!\";\n }\n}\n\n// maybe safer thing which modifies existing memory buffer\n// passes in a reference to existing buffer... then modifies the buffer...\nvoid populate_message(char * message, int buffersize)\n{\n const char * msg = \"Hello!\";\n strncpy(message, msg, buffersize - 1); // copy buffersize-1 chars from msg into message\n message[buffersize - 1] = '\\0'; // null terminate\n}\n\n// yeah\nint main()\n{\n printf(\"Hello World!\\n\");\n\n // basic user defined function\n something();\n\n // user defined fn with return value that's a lib constant\n float my_pi = get_pi();\n printf(\"OK here's pi: %f\\n\", my_pi);\n\n // some loops though\n the_while();\n the_for();\n\n // use symbolic constants\n printf(\"This constant should be a zero: %d\\n\", CONST_ZERO);\n for (int j = 0; j < CONST_THREE; j = j + 1)\n {\n printf(\"Counting up to a symbolic constant: %d\\n\", j);\n }\n\n // seemingly unsafe non-pre-allocated char pointers\n char * my_message;\n my_message = some_complex_operation(5);\n printf(\"The message: %s\\n\", my_message);\n my_message = some_complex_operation(-1);\n printf(\"The message: %s\\n\", my_message);\n my_message = some_complex_operation(101);\n printf(\"The message: %s\\n\", my_message);\n\n // possibly safer pre-allocated memory?\n char message[15];\n printf(\"Initial message: %s\\n\", message);\n printf(\"Initial message length: %ld\\n\", strlen(message));\n populate_message(message, sizeof(message));\n printf(\"Updated message: %s\\n\", message);\n\n return 0;\n}\n\n"}
80,378
c
** /****************************************Copyright (c)**************************************************** ** http://www.onecm.com ** **------------------------------------File Info----------------------------------------------------------*/ /* * @Description: * @version: * @Author: Saber * @Date: 2020-08-25 11:10:27 * @FilePath: \OcmDataStream\ocm_core.h * @LastEditors: Saber * @LastEditTime: 2020-09-01 16:11:56 * @** * ********************************************************************************************************** */ #ifndef __OCMCORE_H__ #define __OCMCORE_H__ #include "ocm_def.h" #include "ocm_config.h" #include "ocm_list.h" #include "string.h" /** * interrupt interface */ ocm_base_t ocm_hw_interrupt_disable(void); void ocm_hw_interrupt_enable(ocm_base_t level); /** * object interface */ struct ocm_object_information *ocm_object_get_information(enum ocm_object_class_type type); void ocm_object_init(struct ocm_object *object, enum ocm_object_class_type type, const char *name); void ocm_object_detach(ocm_object_t object); #ifdef ALLOCATE_DELETE ocm_object_t ocm_object_allocate(enum ocm_object_class_type type, const char *name); void ocm_object_delete(ocm_object_t object); #endif ocm_bool_t ocm_object_is_systemobject(ocm_object_t object); ocm_type_t ocm_object_get_type(ocm_object_t object); ocm_object_t ocm_object_find(const char *name, ocm_uint8_t type); /** * device interface */ ocm_device_t ocm_device_find(const char *name); ocm_err_t ocm_device_register(ocm_device_t dev, const char *name, ocm_uint16_t flags); ocm_err_t ocm_device_unregister(ocm_device_t dev); ocm_device_t ocm_device_create(int type, int attach_size); void ocm_device_destroy(ocm_device_t device); ocm_err_t ocm_device_init(ocm_device_t dev); ocm_err_t ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag); ocm_err_t ocm_device_close(ocm_device_t dev); ocm_size_t ocm_device_read(ocm_device_t dev, ocm_off_t pos, void *buffer, ocm_size_t size); ocm_size_t ocm_device_write(ocm_device_t dev, ocm_off_t pos, const void *buffer, ocm_size_t size); ocm_err_t ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg); /* 钩子函数,暂未实现 */ ocm_err_t ocm_device_set_rx_indicate(ocm_device_t dev, ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size)); ocm_err_t ocm_device_set_tx_complete(ocm_device_t dev, ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer)); #endif
36.66
74
(translation_unit) "**\n/****************************************Copyright (c)****************************************************\n** http://www.onecm.com\n**\n**------------------------------------File Info----------------------------------------------------------*/\n/*\n * @Description: \n * @version: \n * @Author: Saber\n * @Date: 2020-08-25 11:10:27\n * @FilePath: \OcmDataStream\ocm_core.h\n * @LastEditors: Saber\n * @LastEditTime: 2020-09-01 16:11:56\n * @**\n * **********************************************************************************************************\n */\n\n#ifndef __OCMCORE_H__\n#define __OCMCORE_H__\n\n#include "ocm_def.h"\n#include "ocm_config.h"\n#include "ocm_list.h"\n\n#include "string.h"\n\n /**\n * interrupt interface \n */\n ocm_base_t\n ocm_hw_interrupt_disable(void);\nvoid ocm_hw_interrupt_enable(ocm_base_t level);\n\n/**\n * object interface \n */\nstruct ocm_object_information *ocm_object_get_information(enum ocm_object_class_type type);\nvoid ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_detach(ocm_object_t object);\n#ifdef ALLOCATE_DELETE\nocm_object_t ocm_object_allocate(enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_delete(ocm_object_t object);\n#endif\nocm_bool_t ocm_object_is_systemobject(ocm_object_t object);\nocm_type_t ocm_object_get_type(ocm_object_t object);\nocm_object_t ocm_object_find(const char *name, ocm_uint8_t type);\n\n/**\n * device interface \n */\nocm_device_t ocm_device_find(const char *name);\n\nocm_err_t ocm_device_register(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags);\nocm_err_t ocm_device_unregister(ocm_device_t dev);\nocm_device_t ocm_device_create(int type, int attach_size);\nvoid ocm_device_destroy(ocm_device_t device);\n\nocm_err_t ocm_device_init(ocm_device_t dev);\nocm_err_t ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag);\nocm_err_t ocm_device_close(ocm_device_t dev);\nocm_size_t ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size);\nocm_size_t ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size);\nocm_err_t ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg);\n\n/* 钩子函数,暂未实现 */\nocm_err_t\nocm_device_set_rx_indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_device_set_tx_complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif" (ERROR) "**" (*) "*" (*) "*" (comment) "/****************************************Copyright (c)****************************************************\n** http://www.onecm.com\n**\n**------------------------------------File Info----------------------------------------------------------*/" (comment) "/*\n * @Description: \n * @version: \n * @Author: Saber\n * @Date: 2020-08-25 11:10:27\n * @FilePath: \OcmDataStream\ocm_core.h\n * @LastEditors: Saber\n * @LastEditTime: 2020-09-01 16:11:56\n * @**\n * **********************************************************************************************************\n */" (preproc_ifdef) "#ifndef __OCMCORE_H__\n#define __OCMCORE_H__\n\n#include "ocm_def.h"\n#include "ocm_config.h"\n#include "ocm_list.h"\n\n#include "string.h"\n\n /**\n * interrupt interface \n */\n ocm_base_t\n ocm_hw_interrupt_disable(void);\nvoid ocm_hw_interrupt_enable(ocm_base_t level);\n\n/**\n * object interface \n */\nstruct ocm_object_information *ocm_object_get_information(enum ocm_object_class_type type);\nvoid ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_detach(ocm_object_t object);\n#ifdef ALLOCATE_DELETE\nocm_object_t ocm_object_allocate(enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_delete(ocm_object_t object);\n#endif\nocm_bool_t ocm_object_is_systemobject(ocm_object_t object);\nocm_type_t ocm_object_get_type(ocm_object_t object);\nocm_object_t ocm_object_find(const char *name, ocm_uint8_t type);\n\n/**\n * device interface \n */\nocm_device_t ocm_device_find(const char *name);\n\nocm_err_t ocm_device_register(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags);\nocm_err_t ocm_device_unregister(ocm_device_t dev);\nocm_device_t ocm_device_create(int type, int attach_size);\nvoid ocm_device_destroy(ocm_device_t device);\n\nocm_err_t ocm_device_init(ocm_device_t dev);\nocm_err_t ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag);\nocm_err_t ocm_device_close(ocm_device_t dev);\nocm_size_t ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size);\nocm_size_t ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size);\nocm_err_t ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg);\n\n/* 钩子函数,暂未实现 */\nocm_err_t\nocm_device_set_rx_indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_device_set_tx_complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif" (#ifndef) "#ifndef" (identifier) "__OCMCORE_H__" (preproc_def) "#define __OCMCORE_H__\n" (#define) "#define" (identifier) "__OCMCORE_H__" (preproc_include) "#include "ocm_def.h"\n" (#include) "#include" (string_literal) ""ocm_def.h"" (") """ (string_content) "ocm_def.h" (") """ (preproc_include) "#include "ocm_config.h"\n" (#include) "#include" (string_literal) ""ocm_config.h"" (") """ (string_content) "ocm_config.h" (") """ (preproc_include) "#include "ocm_list.h"\n" (#include) "#include" (string_literal) ""ocm_list.h"" (") """ (string_content) "ocm_list.h" (") """ (preproc_include) "#include "string.h"\n" (#include) "#include" (string_literal) ""string.h"" (") """ (string_content) "string.h" (") """ (comment) "/**\n * interrupt interface \n */" (declaration) "ocm_base_t\n ocm_hw_interrupt_disable(void);" (type_identifier) "ocm_base_t" (function_declarator) "ocm_hw_interrupt_disable(void)" (identifier) "ocm_hw_interrupt_disable" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void ocm_hw_interrupt_enable(ocm_base_t level);" (primitive_type) "void" (function_declarator) "ocm_hw_interrupt_enable(ocm_base_t level)" (identifier) "ocm_hw_interrupt_enable" (parameter_list) "(ocm_base_t level)" (() "(" (parameter_declaration) "ocm_base_t level" (type_identifier) "ocm_base_t" (identifier) "level" ()) ")" (;) ";" (comment) "/**\n * object interface \n */" (declaration) "struct ocm_object_information *ocm_object_get_information(enum ocm_object_class_type type);" (struct_specifier) "struct ocm_object_information" (struct) "struct" (type_identifier) "ocm_object_information" (pointer_declarator) "*ocm_object_get_information(enum ocm_object_class_type type)" (*) "*" (function_declarator) "ocm_object_get_information(enum ocm_object_class_type type)" (identifier) "ocm_object_get_information" (parameter_list) "(enum ocm_object_class_type type)" (() "(" (parameter_declaration) "enum ocm_object_class_type type" (enum_specifier) "enum ocm_object_class_type" (enum) "enum" (type_identifier) "ocm_object_class_type" (identifier) "type" ()) ")" (;) ";" (declaration) "void ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name);" (primitive_type) "void" (function_declarator) "ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name)" (identifier) "ocm_object_init" (parameter_list) "(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name)" (() "(" (parameter_declaration) "struct ocm_object *object" (struct_specifier) "struct ocm_object" (struct) "struct" (type_identifier) "ocm_object" (pointer_declarator) "*object" (*) "*" (identifier) "object" (,) "," (parameter_declaration) "enum ocm_object_class_type type" (enum_specifier) "enum ocm_object_class_type" (enum) "enum" (type_identifier) "ocm_object_class_type" (identifier) "type" (,) "," (parameter_declaration) "const char *name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (declaration) "void ocm_object_detach(ocm_object_t object);" (primitive_type) "void" (function_declarator) "ocm_object_detach(ocm_object_t object)" (identifier) "ocm_object_detach" (parameter_list) "(ocm_object_t object)" (() "(" (parameter_declaration) "ocm_object_t object" (type_identifier) "ocm_object_t" (identifier) "object" ()) ")" (;) ";" (preproc_ifdef) "#ifdef ALLOCATE_DELETE\nocm_object_t ocm_object_allocate(enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_delete(ocm_object_t object);\n#endif" (#ifdef) "#ifdef" (identifier) "ALLOCATE_DELETE" (declaration) "ocm_object_t ocm_object_allocate(enum ocm_object_class_type type,\n const char *name);" (type_identifier) "ocm_object_t" (function_declarator) "ocm_object_allocate(enum ocm_object_class_type type,\n const char *name)" (identifier) "ocm_object_allocate" (parameter_list) "(enum ocm_object_class_type type,\n const char *name)" (() "(" (parameter_declaration) "enum ocm_object_class_type type" (enum_specifier) "enum ocm_object_class_type" (enum) "enum" (type_identifier) "ocm_object_class_type" (identifier) "type" (,) "," (parameter_declaration) "const char *name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (declaration) "void ocm_object_delete(ocm_object_t object);" (primitive_type) "void" (function_declarator) "ocm_object_delete(ocm_object_t object)" (identifier) "ocm_object_delete" (parameter_list) "(ocm_object_t object)" (() "(" (parameter_declaration) "ocm_object_t object" (type_identifier) "ocm_object_t" (identifier) "object" ()) ")" (;) ";" (#endif) "#endif" (declaration) "ocm_bool_t ocm_object_is_systemobject(ocm_object_t object);" (type_identifier) "ocm_bool_t" (function_declarator) "ocm_object_is_systemobject(ocm_object_t object)" (identifier) "ocm_object_is_systemobject" (parameter_list) "(ocm_object_t object)" (() "(" (parameter_declaration) "ocm_object_t object" (type_identifier) "ocm_object_t" (identifier) "object" ()) ")" (;) ";" (declaration) "ocm_type_t ocm_object_get_type(ocm_object_t object);" (type_identifier) "ocm_type_t" (function_declarator) "ocm_object_get_type(ocm_object_t object)" (identifier) "ocm_object_get_type" (parameter_list) "(ocm_object_t object)" (() "(" (parameter_declaration) "ocm_object_t object" (type_identifier) "ocm_object_t" (identifier) "object" ()) ")" (;) ";" (declaration) "ocm_object_t ocm_object_find(const char *name, ocm_uint8_t type);" (type_identifier) "ocm_object_t" (function_declarator) "ocm_object_find(const char *name, ocm_uint8_t type)" (identifier) "ocm_object_find" (parameter_list) "(const char *name, ocm_uint8_t type)" (() "(" (parameter_declaration) "const char *name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "ocm_uint8_t type" (type_identifier) "ocm_uint8_t" (identifier) "type" ()) ")" (;) ";" (comment) "/**\n * device interface \n */" (declaration) "ocm_device_t ocm_device_find(const char *name);" (type_identifier) "ocm_device_t" (function_declarator) "ocm_device_find(const char *name)" (identifier) "ocm_device_find" (parameter_list) "(const char *name)" (() "(" (parameter_declaration) "const char *name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" ()) ")" (;) ";" (declaration) "ocm_err_t ocm_device_register(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags);" (type_identifier) "ocm_err_t" (function_declarator) "ocm_device_register(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags)" (identifier) "ocm_device_register" (parameter_list) "(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags)" (() "(" (parameter_declaration) "ocm_device_t dev" (type_identifier) "ocm_device_t" (identifier) "dev" (,) "," (parameter_declaration) "const char *name" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*name" (*) "*" (identifier) "name" (,) "," (parameter_declaration) "ocm_uint16_t flags" (type_identifier) "ocm_uint16_t" (identifier) "flags" ()) ")" (;) ";" (declaration) "ocm_err_t ocm_device_unregister(ocm_device_t dev);" (type_identifier) "ocm_err_t" (function_declarator) "ocm_device_unregister(ocm_device_t dev)" (identifier) "ocm_device_unregister" (parameter_list) "(ocm_device_t dev)" (() "(" (parameter_declaration) "ocm_device_t dev" (type_identifier) "ocm_device_t" (identifier) "dev" ()) ")" (;) ";" (declaration) "ocm_device_t ocm_device_create(int type, int attach_size);" (type_identifier) "ocm_device_t" (function_declarator) "ocm_device_create(int type, int attach_size)" (identifier) "ocm_device_create" (parameter_list) "(int type, int attach_size)" (() "(" (parameter_declaration) "int type" (primitive_type) "int" (identifier) "type" (,) "," (parameter_declaration) "int attach_size" (primitive_type) "int" (identifier) "attach_size" ()) ")" (;) ";" (declaration) "void ocm_device_destroy(ocm_device_t device);" (primitive_type) "void" (function_declarator) "ocm_device_destroy(ocm_device_t device)" (identifier) "ocm_device_destroy" (parameter_list) "(ocm_device_t device)" (() "(" (parameter_declaration) "ocm_device_t device" (type_identifier) "ocm_device_t" (identifier) "device" ()) ")" (;) ";" (declaration) "ocm_err_t ocm_device_init(ocm_device_t dev);" (type_identifier) "ocm_err_t" (function_declarator) "ocm_device_init(ocm_device_t dev)" (identifier) "ocm_device_init" (parameter_list) "(ocm_device_t dev)" (() "(" (parameter_declaration) "ocm_device_t dev" (type_identifier) "ocm_device_t" (identifier) "dev" ()) ")" (;) ";" (declaration) "ocm_err_t ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag);" (type_identifier) "ocm_err_t" (function_declarator) "ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag)" (identifier) "ocm_device_open" (parameter_list) "(ocm_device_t dev, ocm_uint16_t oflag)" (() "(" (parameter_declaration) "ocm_device_t dev" (type_identifier) "ocm_device_t" (identifier) "dev" (,) "," (parameter_declaration) "ocm_uint16_t oflag" (type_identifier) "ocm_uint16_t" (identifier) "oflag" ()) ")" (;) ";" (declaration) "ocm_err_t ocm_device_close(ocm_device_t dev);" (type_identifier) "ocm_err_t" (function_declarator) "ocm_device_close(ocm_device_t dev)" (identifier) "ocm_device_close" (parameter_list) "(ocm_device_t dev)" (() "(" (parameter_declaration) "ocm_device_t dev" (type_identifier) "ocm_device_t" (identifier) "dev" ()) ")" (;) ";" (declaration) "ocm_size_t ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size);" (type_identifier) "ocm_size_t" (function_declarator) "ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size)" (identifier) "ocm_device_read" (parameter_list) "(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size)" (() "(" (parameter_declaration) "ocm_device_t dev" (type_identifier) "ocm_device_t" (identifier) "dev" (,) "," (parameter_declaration) "ocm_off_t pos" (type_identifier) "ocm_off_t" (identifier) "pos" (,) "," (parameter_declaration) "void *buffer" (primitive_type) "void" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" (,) "," (parameter_declaration) "ocm_size_t size" (type_identifier) "ocm_size_t" (identifier) "size" ()) ")" (;) ";" (declaration) "ocm_size_t ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size);" (type_identifier) "ocm_size_t" (function_declarator) "ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size)" (identifier) "ocm_device_write" (parameter_list) "(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size)" (() "(" (parameter_declaration) "ocm_device_t dev" (type_identifier) "ocm_device_t" (identifier) "dev" (,) "," (parameter_declaration) "ocm_off_t pos" (type_identifier) "ocm_off_t" (identifier) "pos" (,) "," (parameter_declaration) "const void *buffer" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" (,) "," (parameter_declaration) "ocm_size_t size" (type_identifier) "ocm_size_t" (identifier) "size" ()) ")" (;) ";" (declaration) "ocm_err_t ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg);" (type_identifier) "ocm_err_t" (function_declarator) "ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg)" (identifier) "ocm_device_control" (parameter_list) "(ocm_device_t dev, ocm_cmd_t cmd, void *arg)" (() "(" (parameter_declaration) "ocm_device_t dev" (type_identifier) "ocm_device_t" (identifier) "dev" (,) "," (parameter_declaration) "ocm_cmd_t cmd" (type_identifier) "ocm_cmd_t" (identifier) "cmd" (,) "," (parameter_declaration) "void *arg" (primitive_type) "void" (pointer_declarator) "*arg" (*) "*" (identifier) "arg" ()) ")" (;) ";" (comment) "/* 钩子函数,暂未实现 */\nocm_err_t\nocm_dev" (declaration) "ce_set_rx_indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_dev" (type_identifier) "ce_set_rx" (function_declarator) "indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_de" (identifier) "indicate(ocm_device_t dev," (parameter_list) "\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_de" (() "\n" (parameter_declaration) " " (type_identifier) " " (identifier) " " (,) " " (parameter_declaration) ")(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_d" (type_identifier) ")(ocm_dev" (function_declarator) "ce_t dev, ocm_size_t size));\nocm_err_t\nocm_d" (parenthesized_declarator) "ce_t dev," (() "c" (pointer_declarator) "e_t dev" (*) "e" (identifier) "_t dev" ()) "," (parameter_list) " ocm_size_t size));\nocm_err_t\nocm_d" (() " " (parameter_declaration) "ocm_size_t size)" (type_identifier) "ocm_size_t s" (identifier) "ze)" (,) ")" (parameter_declaration) "\nocm_err_t\nocm_" (type_identifier) "\nocm_err_t" (identifier) "ocm_" ()) "d" ()) "e" (;) "v" (declaration) "ce_set_tx_complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif" (type_identifier) "ce_set_tx" (function_declarator) "complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif" (identifier) "complete(ocm_device_t dev," (parameter_list) "\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif" (() "\n" (parameter_declaration) " " (type_identifier) " " (identifier) " " (,) " " (parameter_declaration) "e)(ocm_device_t dev, void *buffer));\n\n#endif" (type_identifier) "e)(ocm_de" (function_declarator) "ice_t dev, void *buffer));\n\n#endif" (parenthesized_declarator) "ice_t dev," (() "i" (pointer_declarator) "ce_t dev" (*) "c" (identifier) "e_t dev" ()) "," (parameter_list) " void *buffer));\n\n#endif" (() " " (parameter_declaration) "void *buffer));\n" (type_identifier) "void *buffer" (identifier) ");\n" (,) "\n" (parameter_declaration) "endif" (primitive_type) "endi" (pointer_declarator) "" (*) "" (identifier) "" ()) "" ()) "" (;) "" (#endif) ""
445
1
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 36.66, "nodes": 317, "errors": 0, "source_hash": "dca951cb491a7efa0eddb14197d63f30590f15083577e22b31d608754abadda6", "categorized_nodes": 242}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "**", "parent": null, "children": [1, 2], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 2}}, {"id": 1, "type": "*", "text": "*", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 1}}, {"id": 2, "type": "*", "text": "*", "parent": 0, "children": [], "start_point": {"row": 0, "column": 1}, "end_point": {"row": 0, "column": 2}}, {"id": 3, "type": "preproc_ifdef", "text": "#ifndef __OCMCORE_H__\n#define __OCMCORE_H__\n\n#include \"ocm_def.h\"\n#include \"ocm_config.h\"\n#include \"ocm_list.h\"\n\n#include \"string.h\"\n\n /**\n * interrupt interface \n */\n ocm_base_t\n ocm_hw_interrupt_disable(void);\nvoid ocm_hw_interrupt_enable(ocm_base_t level);\n\n/**\n * object interface \n */\nstruct ocm_object_information *ocm_object_get_information(enum ocm_object_class_type type);\nvoid ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_detach(ocm_object_t object);\n#ifdef ALLOCATE_DELETE\nocm_object_t ocm_object_allocate(enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_delete(ocm_object_t object);\n#endif\nocm_bool_t ocm_object_is_systemobject(ocm_object_t object);\nocm_type_t ocm_object_get_type(ocm_object_t object);\nocm_object_t ocm_object_find(const char *name, ocm_uint8_t type);\n\n/**\n * device interface \n */\nocm_device_t ocm_device_find(const char *name);\n\nocm_err_t ocm_device_register(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags);\nocm_err_t ocm_device_unregister(ocm_device_t dev);\nocm_device_t ocm_device_create(int type, int attach_size);\nvoid ocm_device_destroy(ocm_device_t device);\n\nocm_err_t ocm_device_init(ocm_device_t dev);\nocm_err_t ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag);\nocm_err_t ocm_device_close(ocm_device_t dev);\nocm_size_t ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size);\nocm_size_t ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size);\nocm_err_t ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg);\n\n/* \u94a9\u5b50\u51fd\u6570\uff0c\u6682\u672a\u5b9e\u73b0 */\nocm_err_t\nocm_device_set_rx_indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_device_set_tx_complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif", "parent": null, "children": [4, 5, 6, 9, 12, 15, 18, 21, 28, 36, 50, 72, 80, 107, 115, 123, 136, 146, 162, 170, 181, 189, 197, 208, 216, 235, 254, 270, 292, 316], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 83, "column": 6}}, {"id": 4, "type": "#ifndef", "text": "#ifndef", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 5, "type": "identifier", "text": "__OCMCORE_H__", "parent": 3, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 21}}, {"id": 6, "type": "preproc_def", "text": "#define __OCMCORE_H__\n", "parent": 3, "children": [7, 8], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 7, "type": "#define", "text": "#define", "parent": 6, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 8, "type": "identifier", "text": "__OCMCORE_H__", "parent": 6, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 21}}, {"id": 9, "type": "preproc_include", "text": "#include \"ocm_def.h\"\n", "parent": 3, "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": "\"ocm_def.h\"", "parent": 9, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 20}}, {"id": 12, "type": "preproc_include", "text": "#include \"ocm_config.h\"\n", "parent": 3, "children": [13, 14], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"ocm_config.h\"", "parent": 12, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 23}}, {"id": 15, "type": "preproc_include", "text": "#include \"ocm_list.h\"\n", "parent": 3, "children": [16, 17], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 8}}, {"id": 17, "type": "string_literal", "text": "\"ocm_list.h\"", "parent": 15, "children": [], "start_point": {"row": 22, "column": 9}, "end_point": {"row": 22, "column": 21}}, {"id": 18, "type": "preproc_include", "text": "#include \"string.h\"\n", "parent": 3, "children": [19, 20], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 20, "type": "string_literal", "text": "\"string.h\"", "parent": 18, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 21, "type": "declaration", "text": "ocm_base_t\n ocm_hw_interrupt_disable(void);", "parent": 3, "children": [22, 23], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 30, "column": 32}}, {"id": 22, "type": "type_identifier", "text": "ocm_base_t", "parent": 21, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 11}}, {"id": 23, "type": "function_declarator", "text": "ocm_hw_interrupt_disable(void)", "parent": 21, "children": [24, 25], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 31}}, {"id": 24, "type": "identifier", "text": "ocm_hw_interrupt_disable", "parent": 23, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 25}}, {"id": 25, "type": "parameter_list", "text": "(void)", "parent": 23, "children": [26], "start_point": {"row": 30, "column": 25}, "end_point": {"row": 30, "column": 31}}, {"id": 26, "type": "parameter_declaration", "text": "void", "parent": 25, "children": [27], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 30}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 30, "column": 26}, "end_point": {"row": 30, "column": 30}}, {"id": 28, "type": "declaration", "text": "void ocm_hw_interrupt_enable(ocm_base_t level);", "parent": 3, "children": [29, 30], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 47}}, {"id": 29, "type": "primitive_type", "text": "void", "parent": 28, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 4}}, {"id": 30, "type": "function_declarator", "text": "ocm_hw_interrupt_enable(ocm_base_t level)", "parent": 28, "children": [31, 32], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 46}}, {"id": 31, "type": "identifier", "text": "ocm_hw_interrupt_enable", "parent": 30, "children": [], "start_point": {"row": 31, "column": 5}, "end_point": {"row": 31, "column": 28}}, {"id": 32, "type": "parameter_list", "text": "(ocm_base_t level)", "parent": 30, "children": [33], "start_point": {"row": 31, "column": 28}, "end_point": {"row": 31, "column": 46}}, {"id": 33, "type": "parameter_declaration", "text": "ocm_base_t level", "parent": 32, "children": [34, 35], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 45}}, {"id": 34, "type": "type_identifier", "text": "ocm_base_t", "parent": 33, "children": [], "start_point": {"row": 31, "column": 29}, "end_point": {"row": 31, "column": 39}}, {"id": 35, "type": "identifier", "text": "level", "parent": 33, "children": [], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 45}}, {"id": 36, "type": "declaration", "text": "struct ocm_object_information *ocm_object_get_information(enum ocm_object_class_type type);", "parent": 3, "children": [37, 40], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 91}}, {"id": 37, "type": "struct_specifier", "text": "struct ocm_object_information", "parent": 36, "children": [38, 39], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 29}}, {"id": 38, "type": "struct", "text": "struct", "parent": 37, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}, {"id": 39, "type": "type_identifier", "text": "ocm_object_information", "parent": 37, "children": [], "start_point": {"row": 36, "column": 7}, "end_point": {"row": 36, "column": 29}}, {"id": 40, "type": "pointer_declarator", "text": "*ocm_object_get_information(enum ocm_object_class_type type)", "parent": 36, "children": [41, 42], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 90}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 31}}, {"id": 42, "type": "function_declarator", "text": "ocm_object_get_information(enum ocm_object_class_type type)", "parent": 40, "children": [43, 44], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 90}}, {"id": 43, "type": "identifier", "text": "ocm_object_get_information", "parent": 42, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 57}}, {"id": 44, "type": "parameter_list", "text": "(enum ocm_object_class_type type)", "parent": 42, "children": [45], "start_point": {"row": 36, "column": 57}, "end_point": {"row": 36, "column": 90}}, {"id": 45, "type": "parameter_declaration", "text": "enum ocm_object_class_type type", "parent": 44, "children": [46, 49], "start_point": {"row": 36, "column": 58}, "end_point": {"row": 36, "column": 89}}, {"id": 46, "type": "enum_specifier", "text": "enum ocm_object_class_type", "parent": 45, "children": [47, 48], "start_point": {"row": 36, "column": 58}, "end_point": {"row": 36, "column": 84}}, {"id": 47, "type": "enum", "text": "enum", "parent": 46, "children": [], "start_point": {"row": 36, "column": 58}, "end_point": {"row": 36, "column": 62}}, {"id": 48, "type": "type_identifier", "text": "ocm_object_class_type", "parent": 46, "children": [], "start_point": {"row": 36, "column": 63}, "end_point": {"row": 36, "column": 84}}, {"id": 49, "type": "identifier", "text": "type", "parent": 45, "children": [], "start_point": {"row": 36, "column": 85}, "end_point": {"row": 36, "column": 89}}, {"id": 50, "type": "declaration", "text": "void ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name);", "parent": 3, "children": [51, 52], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 39, "column": 39}}, {"id": 51, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 4}}, {"id": 52, "type": "function_declarator", "text": "ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name)", "parent": 50, "children": [53, 54], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 39, "column": 38}}, {"id": 53, "type": "identifier", "text": "ocm_object_init", "parent": 52, "children": [], "start_point": {"row": 37, "column": 5}, "end_point": {"row": 37, "column": 20}}, {"id": 54, "type": "parameter_list", "text": "(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name)", "parent": 52, "children": [55, 62, 67], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 39, "column": 38}}, {"id": 55, "type": "parameter_declaration", "text": "struct ocm_object *object", "parent": 54, "children": [56, 59], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 46}}, {"id": 56, "type": "struct_specifier", "text": "struct ocm_object", "parent": 55, "children": [57, 58], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 38}}, {"id": 57, "type": "struct", "text": "struct", "parent": 56, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 27}}, {"id": 58, "type": "type_identifier", "text": "ocm_object", "parent": 56, "children": [], "start_point": {"row": 37, "column": 28}, "end_point": {"row": 37, "column": 38}}, {"id": 59, "type": "pointer_declarator", "text": "*object", "parent": 55, "children": [60, 61], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 46}}, {"id": 60, "type": "*", "text": "*", "parent": 59, "children": [], "start_point": {"row": 37, "column": 39}, "end_point": {"row": 37, "column": 40}}, {"id": 61, "type": "identifier", "text": "object", "parent": 59, "children": [], "start_point": {"row": 37, "column": 40}, "end_point": {"row": 37, "column": 46}}, {"id": 62, "type": "parameter_declaration", "text": "enum ocm_object_class_type type", "parent": 54, "children": [63, 66], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 52}}, {"id": 63, "type": "enum_specifier", "text": "enum ocm_object_class_type", "parent": 62, "children": [64, 65], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 47}}, {"id": 64, "type": "enum", "text": "enum", "parent": 63, "children": [], "start_point": {"row": 38, "column": 21}, "end_point": {"row": 38, "column": 25}}, {"id": 65, "type": "type_identifier", "text": "ocm_object_class_type", "parent": 63, "children": [], "start_point": {"row": 38, "column": 26}, "end_point": {"row": 38, "column": 47}}, {"id": 66, "type": "identifier", "text": "type", "parent": 62, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 52}}, {"id": 67, "type": "parameter_declaration", "text": "const char *name", "parent": 54, "children": [68, 69], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 39, "column": 37}}, {"id": 68, "type": "primitive_type", "text": "char", "parent": 67, "children": [], "start_point": {"row": 39, "column": 27}, "end_point": {"row": 39, "column": 31}}, {"id": 69, "type": "pointer_declarator", "text": "*name", "parent": 67, "children": [70, 71], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 37}}, {"id": 70, "type": "*", "text": "*", "parent": 69, "children": [], "start_point": {"row": 39, "column": 32}, "end_point": {"row": 39, "column": 33}}, {"id": 71, "type": "identifier", "text": "name", "parent": 69, "children": [], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 37}}, {"id": 72, "type": "declaration", "text": "void ocm_object_detach(ocm_object_t object);", "parent": 3, "children": [73, 74], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 44}}, {"id": 73, "type": "primitive_type", "text": "void", "parent": 72, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 4}}, {"id": 74, "type": "function_declarator", "text": "ocm_object_detach(ocm_object_t object)", "parent": 72, "children": [75, 76], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 43}}, {"id": 75, "type": "identifier", "text": "ocm_object_detach", "parent": 74, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 22}}, {"id": 76, "type": "parameter_list", "text": "(ocm_object_t object)", "parent": 74, "children": [77], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 43}}, {"id": 77, "type": "parameter_declaration", "text": "ocm_object_t object", "parent": 76, "children": [78, 79], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 42}}, {"id": 78, "type": "type_identifier", "text": "ocm_object_t", "parent": 77, "children": [], "start_point": {"row": 40, "column": 23}, "end_point": {"row": 40, "column": 35}}, {"id": 79, "type": "identifier", "text": "object", "parent": 77, "children": [], "start_point": {"row": 40, "column": 36}, "end_point": {"row": 40, "column": 42}}, {"id": 80, "type": "preproc_ifdef", "text": "#ifdef ALLOCATE_DELETE\nocm_object_t ocm_object_allocate(enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_delete(ocm_object_t object);\n#endif", "parent": 3, "children": [81, 82, 83, 98, 106], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 81, "type": "#ifdef", "text": "#ifdef", "parent": 80, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 6}}, {"id": 82, "type": "identifier", "text": "ALLOCATE_DELETE", "parent": 80, "children": [], "start_point": {"row": 41, "column": 7}, "end_point": {"row": 41, "column": 22}}, {"id": 83, "type": "declaration", "text": "ocm_object_t ocm_object_allocate(enum ocm_object_class_type type,\n const char *name);", "parent": 80, "children": [84, 85], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 51}}, {"id": 84, "type": "type_identifier", "text": "ocm_object_t", "parent": 83, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 12}}, {"id": 85, "type": "function_declarator", "text": "ocm_object_allocate(enum ocm_object_class_type type,\n const char *name)", "parent": 83, "children": [86, 87], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 43, "column": 50}}, {"id": 86, "type": "identifier", "text": "ocm_object_allocate", "parent": 85, "children": [], "start_point": {"row": 42, "column": 13}, "end_point": {"row": 42, "column": 32}}, {"id": 87, "type": "parameter_list", "text": "(enum ocm_object_class_type type,\n const char *name)", "parent": 85, "children": [88, 93], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 43, "column": 50}}, {"id": 88, "type": "parameter_declaration", "text": "enum ocm_object_class_type type", "parent": 87, "children": [89, 92], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 64}}, {"id": 89, "type": "enum_specifier", "text": "enum ocm_object_class_type", "parent": 88, "children": [90, 91], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 59}}, {"id": 90, "type": "enum", "text": "enum", "parent": 89, "children": [], "start_point": {"row": 42, "column": 33}, "end_point": {"row": 42, "column": 37}}, {"id": 91, "type": "type_identifier", "text": "ocm_object_class_type", "parent": 89, "children": [], "start_point": {"row": 42, "column": 38}, "end_point": {"row": 42, "column": 59}}, {"id": 92, "type": "identifier", "text": "type", "parent": 88, "children": [], "start_point": {"row": 42, "column": 60}, "end_point": {"row": 42, "column": 64}}, {"id": 93, "type": "parameter_declaration", "text": "const char *name", "parent": 87, "children": [94, 95], "start_point": {"row": 43, "column": 33}, "end_point": {"row": 43, "column": 49}}, {"id": 94, "type": "primitive_type", "text": "char", "parent": 93, "children": [], "start_point": {"row": 43, "column": 39}, "end_point": {"row": 43, "column": 43}}, {"id": 95, "type": "pointer_declarator", "text": "*name", "parent": 93, "children": [96, 97], "start_point": {"row": 43, "column": 44}, "end_point": {"row": 43, "column": 49}}, {"id": 96, "type": "*", "text": "*", "parent": 95, "children": [], "start_point": {"row": 43, "column": 44}, "end_point": {"row": 43, "column": 45}}, {"id": 97, "type": "identifier", "text": "name", "parent": 95, "children": [], "start_point": {"row": 43, "column": 45}, "end_point": {"row": 43, "column": 49}}, {"id": 98, "type": "declaration", "text": "void ocm_object_delete(ocm_object_t object);", "parent": 80, "children": [99, 100], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 44}}, {"id": 99, "type": "primitive_type", "text": "void", "parent": 98, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 4}}, {"id": 100, "type": "function_declarator", "text": "ocm_object_delete(ocm_object_t object)", "parent": 98, "children": [101, 102], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 43}}, {"id": 101, "type": "identifier", "text": "ocm_object_delete", "parent": 100, "children": [], "start_point": {"row": 44, "column": 5}, "end_point": {"row": 44, "column": 22}}, {"id": 102, "type": "parameter_list", "text": "(ocm_object_t object)", "parent": 100, "children": [103], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 43}}, {"id": 103, "type": "parameter_declaration", "text": "ocm_object_t object", "parent": 102, "children": [104, 105], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 42}}, {"id": 104, "type": "type_identifier", "text": "ocm_object_t", "parent": 103, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 35}}, {"id": 105, "type": "identifier", "text": "object", "parent": 103, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 42}}, {"id": 106, "type": "#endif", "text": "#endif", "parent": 80, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 6}}, {"id": 107, "type": "declaration", "text": "ocm_bool_t ocm_object_is_systemobject(ocm_object_t object);", "parent": 3, "children": [108, 109], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 59}}, {"id": 108, "type": "type_identifier", "text": "ocm_bool_t", "parent": 107, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 10}}, {"id": 109, "type": "function_declarator", "text": "ocm_object_is_systemobject(ocm_object_t object)", "parent": 107, "children": [110, 111], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 58}}, {"id": 110, "type": "identifier", "text": "ocm_object_is_systemobject", "parent": 109, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 37}}, {"id": 111, "type": "parameter_list", "text": "(ocm_object_t object)", "parent": 109, "children": [112], "start_point": {"row": 46, "column": 37}, "end_point": {"row": 46, "column": 58}}, {"id": 112, "type": "parameter_declaration", "text": "ocm_object_t object", "parent": 111, "children": [113, 114], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 57}}, {"id": 113, "type": "type_identifier", "text": "ocm_object_t", "parent": 112, "children": [], "start_point": {"row": 46, "column": 38}, "end_point": {"row": 46, "column": 50}}, {"id": 114, "type": "identifier", "text": "object", "parent": 112, "children": [], "start_point": {"row": 46, "column": 51}, "end_point": {"row": 46, "column": 57}}, {"id": 115, "type": "declaration", "text": "ocm_type_t ocm_object_get_type(ocm_object_t object);", "parent": 3, "children": [116, 117], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 52}}, {"id": 116, "type": "type_identifier", "text": "ocm_type_t", "parent": 115, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 10}}, {"id": 117, "type": "function_declarator", "text": "ocm_object_get_type(ocm_object_t object)", "parent": 115, "children": [118, 119], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 51}}, {"id": 118, "type": "identifier", "text": "ocm_object_get_type", "parent": 117, "children": [], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 30}}, {"id": 119, "type": "parameter_list", "text": "(ocm_object_t object)", "parent": 117, "children": [120], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 51}}, {"id": 120, "type": "parameter_declaration", "text": "ocm_object_t object", "parent": 119, "children": [121, 122], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 50}}, {"id": 121, "type": "type_identifier", "text": "ocm_object_t", "parent": 120, "children": [], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 43}}, {"id": 122, "type": "identifier", "text": "object", "parent": 120, "children": [], "start_point": {"row": 47, "column": 44}, "end_point": {"row": 47, "column": 50}}, {"id": 123, "type": "declaration", "text": "ocm_object_t ocm_object_find(const char *name, ocm_uint8_t type);", "parent": 3, "children": [124, 125], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 65}}, {"id": 124, "type": "type_identifier", "text": "ocm_object_t", "parent": 123, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 12}}, {"id": 125, "type": "function_declarator", "text": "ocm_object_find(const char *name, ocm_uint8_t type)", "parent": 123, "children": [126, 127], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 64}}, {"id": 126, "type": "identifier", "text": "ocm_object_find", "parent": 125, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 28}}, {"id": 127, "type": "parameter_list", "text": "(const char *name, ocm_uint8_t type)", "parent": 125, "children": [128, 133], "start_point": {"row": 48, "column": 28}, "end_point": {"row": 48, "column": 64}}, {"id": 128, "type": "parameter_declaration", "text": "const char *name", "parent": 127, "children": [129, 130], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 45}}, {"id": 129, "type": "primitive_type", "text": "char", "parent": 128, "children": [], "start_point": {"row": 48, "column": 35}, "end_point": {"row": 48, "column": 39}}, {"id": 130, "type": "pointer_declarator", "text": "*name", "parent": 128, "children": [131, 132], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 45}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 48, "column": 40}, "end_point": {"row": 48, "column": 41}}, {"id": 132, "type": "identifier", "text": "name", "parent": 130, "children": [], "start_point": {"row": 48, "column": 41}, "end_point": {"row": 48, "column": 45}}, {"id": 133, "type": "parameter_declaration", "text": "ocm_uint8_t type", "parent": 127, "children": [134, 135], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 63}}, {"id": 134, "type": "type_identifier", "text": "ocm_uint8_t", "parent": 133, "children": [], "start_point": {"row": 48, "column": 47}, "end_point": {"row": 48, "column": 58}}, {"id": 135, "type": "identifier", "text": "type", "parent": 133, "children": [], "start_point": {"row": 48, "column": 59}, "end_point": {"row": 48, "column": 63}}, {"id": 136, "type": "declaration", "text": "ocm_device_t ocm_device_find(const char *name);", "parent": 3, "children": [137, 138], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 47}}, {"id": 137, "type": "type_identifier", "text": "ocm_device_t", "parent": 136, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 12}}, {"id": 138, "type": "function_declarator", "text": "ocm_device_find(const char *name)", "parent": 136, "children": [139, 140], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 46}}, {"id": 139, "type": "identifier", "text": "ocm_device_find", "parent": 138, "children": [], "start_point": {"row": 53, "column": 13}, "end_point": {"row": 53, "column": 28}}, {"id": 140, "type": "parameter_list", "text": "(const char *name)", "parent": 138, "children": [141], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 46}}, {"id": 141, "type": "parameter_declaration", "text": "const char *name", "parent": 140, "children": [142, 143], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 45}}, {"id": 142, "type": "primitive_type", "text": "char", "parent": 141, "children": [], "start_point": {"row": 53, "column": 35}, "end_point": {"row": 53, "column": 39}}, {"id": 143, "type": "pointer_declarator", "text": "*name", "parent": 141, "children": [144, 145], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 45}}, {"id": 144, "type": "*", "text": "*", "parent": 143, "children": [], "start_point": {"row": 53, "column": 40}, "end_point": {"row": 53, "column": 41}}, {"id": 145, "type": "identifier", "text": "name", "parent": 143, "children": [], "start_point": {"row": 53, "column": 41}, "end_point": {"row": 53, "column": 45}}, {"id": 146, "type": "declaration", "text": "ocm_err_t ocm_device_register(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags);", "parent": 3, "children": [147, 148], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 57, "column": 50}}, {"id": 147, "type": "type_identifier", "text": "ocm_err_t", "parent": 146, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 9}}, {"id": 148, "type": "function_declarator", "text": "ocm_device_register(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags)", "parent": 146, "children": [149, 150], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 57, "column": 49}}, {"id": 149, "type": "identifier", "text": "ocm_device_register", "parent": 148, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 29}}, {"id": 150, "type": "parameter_list", "text": "(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags)", "parent": 148, "children": [151, 154, 159], "start_point": {"row": 55, "column": 29}, "end_point": {"row": 57, "column": 49}}, {"id": 151, "type": "parameter_declaration", "text": "ocm_device_t dev", "parent": 150, "children": [152, 153], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 46}}, {"id": 152, "type": "type_identifier", "text": "ocm_device_t", "parent": 151, "children": [], "start_point": {"row": 55, "column": 30}, "end_point": {"row": 55, "column": 42}}, {"id": 153, "type": "identifier", "text": "dev", "parent": 151, "children": [], "start_point": {"row": 55, "column": 43}, "end_point": {"row": 55, "column": 46}}, {"id": 154, "type": "parameter_declaration", "text": "const char *name", "parent": 150, "children": [155, 156], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 46}}, {"id": 155, "type": "primitive_type", "text": "char", "parent": 154, "children": [], "start_point": {"row": 56, "column": 36}, "end_point": {"row": 56, "column": 40}}, {"id": 156, "type": "pointer_declarator", "text": "*name", "parent": 154, "children": [157, 158], "start_point": {"row": 56, "column": 41}, "end_point": {"row": 56, "column": 46}}, {"id": 157, "type": "*", "text": "*", "parent": 156, "children": [], "start_point": {"row": 56, "column": 41}, "end_point": {"row": 56, "column": 42}}, {"id": 158, "type": "identifier", "text": "name", "parent": 156, "children": [], "start_point": {"row": 56, "column": 42}, "end_point": {"row": 56, "column": 46}}, {"id": 159, "type": "parameter_declaration", "text": "ocm_uint16_t flags", "parent": 150, "children": [160, 161], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 48}}, {"id": 160, "type": "type_identifier", "text": "ocm_uint16_t", "parent": 159, "children": [], "start_point": {"row": 57, "column": 30}, "end_point": {"row": 57, "column": 42}}, {"id": 161, "type": "identifier", "text": "flags", "parent": 159, "children": [], "start_point": {"row": 57, "column": 43}, "end_point": {"row": 57, "column": 48}}, {"id": 162, "type": "declaration", "text": "ocm_err_t ocm_device_unregister(ocm_device_t dev);", "parent": 3, "children": [163, 164], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 50}}, {"id": 163, "type": "type_identifier", "text": "ocm_err_t", "parent": 162, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 9}}, {"id": 164, "type": "function_declarator", "text": "ocm_device_unregister(ocm_device_t dev)", "parent": 162, "children": [165, 166], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 49}}, {"id": 165, "type": "identifier", "text": "ocm_device_unregister", "parent": 164, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 31}}, {"id": 166, "type": "parameter_list", "text": "(ocm_device_t dev)", "parent": 164, "children": [167], "start_point": {"row": 58, "column": 31}, "end_point": {"row": 58, "column": 49}}, {"id": 167, "type": "parameter_declaration", "text": "ocm_device_t dev", "parent": 166, "children": [168, 169], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 48}}, {"id": 168, "type": "type_identifier", "text": "ocm_device_t", "parent": 167, "children": [], "start_point": {"row": 58, "column": 32}, "end_point": {"row": 58, "column": 44}}, {"id": 169, "type": "identifier", "text": "dev", "parent": 167, "children": [], "start_point": {"row": 58, "column": 45}, "end_point": {"row": 58, "column": 48}}, {"id": 170, "type": "declaration", "text": "ocm_device_t ocm_device_create(int type, int attach_size);", "parent": 3, "children": [171, 172], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 58}}, {"id": 171, "type": "type_identifier", "text": "ocm_device_t", "parent": 170, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 12}}, {"id": 172, "type": "function_declarator", "text": "ocm_device_create(int type, int attach_size)", "parent": 170, "children": [173, 174], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 57}}, {"id": 173, "type": "identifier", "text": "ocm_device_create", "parent": 172, "children": [], "start_point": {"row": 59, "column": 13}, "end_point": {"row": 59, "column": 30}}, {"id": 174, "type": "parameter_list", "text": "(int type, int attach_size)", "parent": 172, "children": [175, 178], "start_point": {"row": 59, "column": 30}, "end_point": {"row": 59, "column": 57}}, {"id": 175, "type": "parameter_declaration", "text": "int type", "parent": 174, "children": [176, 177], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 39}}, {"id": 176, "type": "primitive_type", "text": "int", "parent": 175, "children": [], "start_point": {"row": 59, "column": 31}, "end_point": {"row": 59, "column": 34}}, {"id": 177, "type": "identifier", "text": "type", "parent": 175, "children": [], "start_point": {"row": 59, "column": 35}, "end_point": {"row": 59, "column": 39}}, {"id": 178, "type": "parameter_declaration", "text": "int attach_size", "parent": 174, "children": [179, 180], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 56}}, {"id": 179, "type": "primitive_type", "text": "int", "parent": 178, "children": [], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 44}}, {"id": 180, "type": "identifier", "text": "attach_size", "parent": 178, "children": [], "start_point": {"row": 59, "column": 45}, "end_point": {"row": 59, "column": 56}}, {"id": 181, "type": "declaration", "text": "void ocm_device_destroy(ocm_device_t device);", "parent": 3, "children": [182, 183], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 45}}, {"id": 182, "type": "primitive_type", "text": "void", "parent": 181, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 4}}, {"id": 183, "type": "function_declarator", "text": "ocm_device_destroy(ocm_device_t device)", "parent": 181, "children": [184, 185], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 44}}, {"id": 184, "type": "identifier", "text": "ocm_device_destroy", "parent": 183, "children": [], "start_point": {"row": 60, "column": 5}, "end_point": {"row": 60, "column": 23}}, {"id": 185, "type": "parameter_list", "text": "(ocm_device_t device)", "parent": 183, "children": [186], "start_point": {"row": 60, "column": 23}, "end_point": {"row": 60, "column": 44}}, {"id": 186, "type": "parameter_declaration", "text": "ocm_device_t device", "parent": 185, "children": [187, 188], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 43}}, {"id": 187, "type": "type_identifier", "text": "ocm_device_t", "parent": 186, "children": [], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 36}}, {"id": 188, "type": "identifier", "text": "device", "parent": 186, "children": [], "start_point": {"row": 60, "column": 37}, "end_point": {"row": 60, "column": 43}}, {"id": 189, "type": "declaration", "text": "ocm_err_t ocm_device_init(ocm_device_t dev);", "parent": 3, "children": [190, 191], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 44}}, {"id": 190, "type": "type_identifier", "text": "ocm_err_t", "parent": 189, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 9}}, {"id": 191, "type": "function_declarator", "text": "ocm_device_init(ocm_device_t dev)", "parent": 189, "children": [192, 193], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 43}}, {"id": 192, "type": "identifier", "text": "ocm_device_init", "parent": 191, "children": [], "start_point": {"row": 62, "column": 10}, "end_point": {"row": 62, "column": 25}}, {"id": 193, "type": "parameter_list", "text": "(ocm_device_t dev)", "parent": 191, "children": [194], "start_point": {"row": 62, "column": 25}, "end_point": {"row": 62, "column": 43}}, {"id": 194, "type": "parameter_declaration", "text": "ocm_device_t dev", "parent": 193, "children": [195, 196], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 42}}, {"id": 195, "type": "type_identifier", "text": "ocm_device_t", "parent": 194, "children": [], "start_point": {"row": 62, "column": 26}, "end_point": {"row": 62, "column": 38}}, {"id": 196, "type": "identifier", "text": "dev", "parent": 194, "children": [], "start_point": {"row": 62, "column": 39}, "end_point": {"row": 62, "column": 42}}, {"id": 197, "type": "declaration", "text": "ocm_err_t ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag);", "parent": 3, "children": [198, 199], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 64}}, {"id": 198, "type": "type_identifier", "text": "ocm_err_t", "parent": 197, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 9}}, {"id": 199, "type": "function_declarator", "text": "ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag)", "parent": 197, "children": [200, 201], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 63}}, {"id": 200, "type": "identifier", "text": "ocm_device_open", "parent": 199, "children": [], "start_point": {"row": 63, "column": 10}, "end_point": {"row": 63, "column": 25}}, {"id": 201, "type": "parameter_list", "text": "(ocm_device_t dev, ocm_uint16_t oflag)", "parent": 199, "children": [202, 205], "start_point": {"row": 63, "column": 25}, "end_point": {"row": 63, "column": 63}}, {"id": 202, "type": "parameter_declaration", "text": "ocm_device_t dev", "parent": 201, "children": [203, 204], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 42}}, {"id": 203, "type": "type_identifier", "text": "ocm_device_t", "parent": 202, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 38}}, {"id": 204, "type": "identifier", "text": "dev", "parent": 202, "children": [], "start_point": {"row": 63, "column": 39}, "end_point": {"row": 63, "column": 42}}, {"id": 205, "type": "parameter_declaration", "text": "ocm_uint16_t oflag", "parent": 201, "children": [206, 207], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 62}}, {"id": 206, "type": "type_identifier", "text": "ocm_uint16_t", "parent": 205, "children": [], "start_point": {"row": 63, "column": 44}, "end_point": {"row": 63, "column": 56}}, {"id": 207, "type": "identifier", "text": "oflag", "parent": 205, "children": [], "start_point": {"row": 63, "column": 57}, "end_point": {"row": 63, "column": 62}}, {"id": 208, "type": "declaration", "text": "ocm_err_t ocm_device_close(ocm_device_t dev);", "parent": 3, "children": [209, 210], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 45}}, {"id": 209, "type": "type_identifier", "text": "ocm_err_t", "parent": 208, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 9}}, {"id": 210, "type": "function_declarator", "text": "ocm_device_close(ocm_device_t dev)", "parent": 208, "children": [211, 212], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 44}}, {"id": 211, "type": "identifier", "text": "ocm_device_close", "parent": 210, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 26}}, {"id": 212, "type": "parameter_list", "text": "(ocm_device_t dev)", "parent": 210, "children": [213], "start_point": {"row": 64, "column": 26}, "end_point": {"row": 64, "column": 44}}, {"id": 213, "type": "parameter_declaration", "text": "ocm_device_t dev", "parent": 212, "children": [214, 215], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 43}}, {"id": 214, "type": "type_identifier", "text": "ocm_device_t", "parent": 213, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 39}}, {"id": 215, "type": "identifier", "text": "dev", "parent": 213, "children": [], "start_point": {"row": 64, "column": 40}, "end_point": {"row": 64, "column": 43}}, {"id": 216, "type": "declaration", "text": "ocm_size_t ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size);", "parent": 3, "children": [217, 218], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 68, "column": 44}}, {"id": 217, "type": "type_identifier", "text": "ocm_size_t", "parent": 216, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 10}}, {"id": 218, "type": "function_declarator", "text": "ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size)", "parent": 216, "children": [219, 220], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 68, "column": 43}}, {"id": 219, "type": "identifier", "text": "ocm_device_read", "parent": 218, "children": [], "start_point": {"row": 65, "column": 11}, "end_point": {"row": 65, "column": 26}}, {"id": 220, "type": "parameter_list", "text": "(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size)", "parent": 218, "children": [221, 224, 227, 232], "start_point": {"row": 65, "column": 26}, "end_point": {"row": 68, "column": 43}}, {"id": 221, "type": "parameter_declaration", "text": "ocm_device_t dev", "parent": 220, "children": [222, 223], "start_point": {"row": 65, "column": 27}, "end_point": {"row": 65, "column": 43}}, {"id": 222, "type": "type_identifier", "text": "ocm_device_t", "parent": 221, "children": [], "start_point": {"row": 65, "column": 27}, "end_point": {"row": 65, "column": 39}}, {"id": 223, "type": "identifier", "text": "dev", "parent": 221, "children": [], "start_point": {"row": 65, "column": 40}, "end_point": {"row": 65, "column": 43}}, {"id": 224, "type": "parameter_declaration", "text": "ocm_off_t pos", "parent": 220, "children": [225, 226], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 40}}, {"id": 225, "type": "type_identifier", "text": "ocm_off_t", "parent": 224, "children": [], "start_point": {"row": 66, "column": 27}, "end_point": {"row": 66, "column": 36}}, {"id": 226, "type": "identifier", "text": "pos", "parent": 224, "children": [], "start_point": {"row": 66, "column": 37}, "end_point": {"row": 66, "column": 40}}, {"id": 227, "type": "parameter_declaration", "text": "void *buffer", "parent": 220, "children": [228, 229], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 39}}, {"id": 228, "type": "primitive_type", "text": "void", "parent": 227, "children": [], "start_point": {"row": 67, "column": 27}, "end_point": {"row": 67, "column": 31}}, {"id": 229, "type": "pointer_declarator", "text": "*buffer", "parent": 227, "children": [230, 231], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 39}}, {"id": 230, "type": "*", "text": "*", "parent": 229, "children": [], "start_point": {"row": 67, "column": 32}, "end_point": {"row": 67, "column": 33}}, {"id": 231, "type": "identifier", "text": "buffer", "parent": 229, "children": [], "start_point": {"row": 67, "column": 33}, "end_point": {"row": 67, "column": 39}}, {"id": 232, "type": "parameter_declaration", "text": "ocm_size_t size", "parent": 220, "children": [233, 234], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 42}}, {"id": 233, "type": "type_identifier", "text": "ocm_size_t", "parent": 232, "children": [], "start_point": {"row": 68, "column": 27}, "end_point": {"row": 68, "column": 37}}, {"id": 234, "type": "identifier", "text": "size", "parent": 232, "children": [], "start_point": {"row": 68, "column": 38}, "end_point": {"row": 68, "column": 42}}, {"id": 235, "type": "declaration", "text": "ocm_size_t ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size);", "parent": 3, "children": [236, 237], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 72, "column": 45}}, {"id": 236, "type": "type_identifier", "text": "ocm_size_t", "parent": 235, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 10}}, {"id": 237, "type": "function_declarator", "text": "ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size)", "parent": 235, "children": [238, 239], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 72, "column": 44}}, {"id": 238, "type": "identifier", "text": "ocm_device_write", "parent": 237, "children": [], "start_point": {"row": 69, "column": 11}, "end_point": {"row": 69, "column": 27}}, {"id": 239, "type": "parameter_list", "text": "(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size)", "parent": 237, "children": [240, 243, 246, 251], "start_point": {"row": 69, "column": 27}, "end_point": {"row": 72, "column": 44}}, {"id": 240, "type": "parameter_declaration", "text": "ocm_device_t dev", "parent": 239, "children": [241, 242], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 44}}, {"id": 241, "type": "type_identifier", "text": "ocm_device_t", "parent": 240, "children": [], "start_point": {"row": 69, "column": 28}, "end_point": {"row": 69, "column": 40}}, {"id": 242, "type": "identifier", "text": "dev", "parent": 240, "children": [], "start_point": {"row": 69, "column": 41}, "end_point": {"row": 69, "column": 44}}, {"id": 243, "type": "parameter_declaration", "text": "ocm_off_t pos", "parent": 239, "children": [244, 245], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 41}}, {"id": 244, "type": "type_identifier", "text": "ocm_off_t", "parent": 243, "children": [], "start_point": {"row": 70, "column": 28}, "end_point": {"row": 70, "column": 37}}, {"id": 245, "type": "identifier", "text": "pos", "parent": 243, "children": [], "start_point": {"row": 70, "column": 38}, "end_point": {"row": 70, "column": 41}}, {"id": 246, "type": "parameter_declaration", "text": "const void *buffer", "parent": 239, "children": [247, 248], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 46}}, {"id": 247, "type": "primitive_type", "text": "void", "parent": 246, "children": [], "start_point": {"row": 71, "column": 34}, "end_point": {"row": 71, "column": 38}}, {"id": 248, "type": "pointer_declarator", "text": "*buffer", "parent": 246, "children": [249, 250], "start_point": {"row": 71, "column": 39}, "end_point": {"row": 71, "column": 46}}, {"id": 249, "type": "*", "text": "*", "parent": 248, "children": [], "start_point": {"row": 71, "column": 39}, "end_point": {"row": 71, "column": 40}}, {"id": 250, "type": "identifier", "text": "buffer", "parent": 248, "children": [], "start_point": {"row": 71, "column": 40}, "end_point": {"row": 71, "column": 46}}, {"id": 251, "type": "parameter_declaration", "text": "ocm_size_t size", "parent": 239, "children": [252, 253], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 43}}, {"id": 252, "type": "type_identifier", "text": "ocm_size_t", "parent": 251, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 38}}, {"id": 253, "type": "identifier", "text": "size", "parent": 251, "children": [], "start_point": {"row": 72, "column": 39}, "end_point": {"row": 72, "column": 43}}, {"id": 254, "type": "declaration", "text": "ocm_err_t ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg);", "parent": 3, "children": [255, 256], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 73}}, {"id": 255, "type": "type_identifier", "text": "ocm_err_t", "parent": 254, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 9}}, {"id": 256, "type": "function_declarator", "text": "ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg)", "parent": 254, "children": [257, 258], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 72}}, {"id": 257, "type": "identifier", "text": "ocm_device_control", "parent": 256, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 28}}, {"id": 258, "type": "parameter_list", "text": "(ocm_device_t dev, ocm_cmd_t cmd, void *arg)", "parent": 256, "children": [259, 262, 265], "start_point": {"row": 73, "column": 28}, "end_point": {"row": 73, "column": 72}}, {"id": 259, "type": "parameter_declaration", "text": "ocm_device_t dev", "parent": 258, "children": [260, 261], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 45}}, {"id": 260, "type": "type_identifier", "text": "ocm_device_t", "parent": 259, "children": [], "start_point": {"row": 73, "column": 29}, "end_point": {"row": 73, "column": 41}}, {"id": 261, "type": "identifier", "text": "dev", "parent": 259, "children": [], "start_point": {"row": 73, "column": 42}, "end_point": {"row": 73, "column": 45}}, {"id": 262, "type": "parameter_declaration", "text": "ocm_cmd_t cmd", "parent": 258, "children": [263, 264], "start_point": {"row": 73, "column": 47}, "end_point": {"row": 73, "column": 60}}, {"id": 263, "type": "type_identifier", "text": "ocm_cmd_t", "parent": 262, "children": [], "start_point": {"row": 73, "column": 47}, "end_point": {"row": 73, "column": 56}}, {"id": 264, "type": "identifier", "text": "cmd", "parent": 262, "children": [], "start_point": {"row": 73, "column": 57}, "end_point": {"row": 73, "column": 60}}, {"id": 265, "type": "parameter_declaration", "text": "void *arg", "parent": 258, "children": [266, 267], "start_point": {"row": 73, "column": 62}, "end_point": {"row": 73, "column": 71}}, {"id": 266, "type": "primitive_type", "text": "void", "parent": 265, "children": [], "start_point": {"row": 73, "column": 62}, "end_point": {"row": 73, "column": 66}}, {"id": 267, "type": "pointer_declarator", "text": "*arg", "parent": 265, "children": [268, 269], "start_point": {"row": 73, "column": 67}, "end_point": {"row": 73, "column": 71}}, {"id": 268, "type": "*", "text": "*", "parent": 267, "children": [], "start_point": {"row": 73, "column": 67}, "end_point": {"row": 73, "column": 68}}, {"id": 269, "type": "identifier", "text": "arg", "parent": 267, "children": [], "start_point": {"row": 73, "column": 68}, "end_point": {"row": 73, "column": 71}}, {"id": 270, "type": "declaration", "text": "ce_set_rx_indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_dev", "parent": 3, "children": [271, 272], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 78, "column": 83}}, {"id": 271, "type": "type_identifier", "text": "ce_set_rx", "parent": 270, "children": [], "start_point": {"row": 76, "column": 0}, "end_point": {"row": 76, "column": 9}}, {"id": 272, "type": "function_declarator", "text": "indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_de", "parent": 270, "children": [273, 274], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 78, "column": 82}}, {"id": 273, "type": "identifier", "text": "indicate(ocm_device_t dev,", "parent": 272, "children": [], "start_point": {"row": 77, "column": 0}, "end_point": {"row": 77, "column": 26}}, {"id": 274, "type": "parameter_list", "text": "\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_de", "parent": 272, "children": [275, 278], "start_point": {"row": 77, "column": 26}, "end_point": {"row": 78, "column": 82}}, {"id": 275, "type": "parameter_declaration", "text": " ", "parent": 274, "children": [276, 277], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 43}}, {"id": 276, "type": "type_identifier", "text": " ", "parent": 275, "children": [], "start_point": {"row": 77, "column": 27}, "end_point": {"row": 77, "column": 39}}, {"id": 277, "type": "identifier", "text": " ", "parent": 275, "children": [], "start_point": {"row": 77, "column": 40}, "end_point": {"row": 77, "column": 43}}, {"id": 278, "type": "parameter_declaration", "text": ")(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_d", "parent": 274, "children": [279, 280], "start_point": {"row": 78, "column": 27}, "end_point": {"row": 78, "column": 81}}, {"id": 279, "type": "type_identifier", "text": ")(ocm_dev", "parent": 278, "children": [], "start_point": {"row": 78, "column": 27}, "end_point": {"row": 78, "column": 36}}, {"id": 280, "type": "function_declarator", "text": "ce_t dev, ocm_size_t size));\nocm_err_t\nocm_d", "parent": 278, "children": [281, 285], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 81}}, {"id": 281, "type": "parenthesized_declarator", "text": "ce_t dev,", "parent": 280, "children": [282], "start_point": {"row": 78, "column": 37}, "end_point": {"row": 78, "column": 46}}, {"id": 282, "type": "pointer_declarator", "text": "e_t dev", "parent": 281, "children": [283, 284], "start_point": {"row": 78, "column": 38}, "end_point": {"row": 78, "column": 45}}, {"id": 283, "type": "*", "text": "e", "parent": 282, "children": [], "start_point": {"row": 78, "column": 38}, "end_point": {"row": 78, "column": 39}}, {"id": 284, "type": "identifier", "text": "_t dev", "parent": 282, "children": [], "start_point": {"row": 78, "column": 39}, "end_point": {"row": 78, "column": 45}}, {"id": 285, "type": "parameter_list", "text": " ocm_size_t size));\nocm_err_t\nocm_d", "parent": 280, "children": [286, 289], "start_point": {"row": 78, "column": 46}, "end_point": {"row": 78, "column": 81}}, {"id": 286, "type": "parameter_declaration", "text": "ocm_size_t size)", "parent": 285, "children": [287, 288], "start_point": {"row": 78, "column": 47}, "end_point": {"row": 78, "column": 63}}, {"id": 287, "type": "type_identifier", "text": "ocm_size_t s", "parent": 286, "children": [], "start_point": {"row": 78, "column": 47}, "end_point": {"row": 78, "column": 59}}, {"id": 288, "type": "identifier", "text": "ze)", "parent": 286, "children": [], "start_point": {"row": 78, "column": 60}, "end_point": {"row": 78, "column": 63}}, {"id": 289, "type": "parameter_declaration", "text": "\nocm_err_t\nocm_", "parent": 285, "children": [290, 291], "start_point": {"row": 78, "column": 65}, "end_point": {"row": 78, "column": 80}}, {"id": 290, "type": "type_identifier", "text": "\nocm_err_t", "parent": 289, "children": [], "start_point": {"row": 78, "column": 65}, "end_point": {"row": 78, "column": 75}}, {"id": 291, "type": "identifier", "text": "ocm_", "parent": 289, "children": [], "start_point": {"row": 78, "column": 76}, "end_point": {"row": 78, "column": 80}}, {"id": 292, "type": "declaration", "text": "ce_set_tx_complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif", "parent": 3, "children": [293, 294], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 81, "column": 81}}, {"id": 293, "type": "type_identifier", "text": "ce_set_tx", "parent": 292, "children": [], "start_point": {"row": 79, "column": 0}, "end_point": {"row": 79, "column": 9}}, {"id": 294, "type": "function_declarator", "text": "complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif", "parent": 292, "children": [295, 296], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 81, "column": 80}}, {"id": 295, "type": "identifier", "text": "complete(ocm_device_t dev,", "parent": 294, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 26}}, {"id": 296, "type": "parameter_list", "text": "\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif", "parent": 294, "children": [297, 300], "start_point": {"row": 80, "column": 26}, "end_point": {"row": 81, "column": 80}}, {"id": 297, "type": "parameter_declaration", "text": " ", "parent": 296, "children": [298, 299], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 43}}, {"id": 298, "type": "type_identifier", "text": " ", "parent": 297, "children": [], "start_point": {"row": 80, "column": 27}, "end_point": {"row": 80, "column": 39}}, {"id": 299, "type": "identifier", "text": " ", "parent": 297, "children": [], "start_point": {"row": 80, "column": 40}, "end_point": {"row": 80, "column": 43}}, {"id": 300, "type": "parameter_declaration", "text": "e)(ocm_device_t dev, void *buffer));\n\n#endif", "parent": 296, "children": [301, 302], "start_point": {"row": 81, "column": 27}, "end_point": {"row": 81, "column": 79}}, {"id": 301, "type": "type_identifier", "text": "e)(ocm_de", "parent": 300, "children": [], "start_point": {"row": 81, "column": 27}, "end_point": {"row": 81, "column": 36}}, {"id": 302, "type": "function_declarator", "text": "ice_t dev, void *buffer));\n\n#endif", "parent": 300, "children": [303, 307], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 79}}, {"id": 303, "type": "parenthesized_declarator", "text": "ice_t dev,", "parent": 302, "children": [304], "start_point": {"row": 81, "column": 37}, "end_point": {"row": 81, "column": 47}}, {"id": 304, "type": "pointer_declarator", "text": "ce_t dev", "parent": 303, "children": [305, 306], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 46}}, {"id": 305, "type": "*", "text": "c", "parent": 304, "children": [], "start_point": {"row": 81, "column": 38}, "end_point": {"row": 81, "column": 39}}, {"id": 306, "type": "identifier", "text": "e_t dev", "parent": 304, "children": [], "start_point": {"row": 81, "column": 39}, "end_point": {"row": 81, "column": 46}}, {"id": 307, "type": "parameter_list", "text": " void *buffer));\n\n#endif", "parent": 302, "children": [308, 311], "start_point": {"row": 81, "column": 47}, "end_point": {"row": 81, "column": 79}}, {"id": 308, "type": "parameter_declaration", "text": "void *buffer));\n", "parent": 307, "children": [309, 310], "start_point": {"row": 81, "column": 48}, "end_point": {"row": 81, "column": 64}}, {"id": 309, "type": "type_identifier", "text": "void *buffer", "parent": 308, "children": [], "start_point": {"row": 81, "column": 48}, "end_point": {"row": 81, "column": 60}}, {"id": 310, "type": "identifier", "text": ");\n", "parent": 308, "children": [], "start_point": {"row": 81, "column": 61}, "end_point": {"row": 81, "column": 64}}, {"id": 311, "type": "parameter_declaration", "text": "endif", "parent": 307, "children": [312, 313], "start_point": {"row": 81, "column": 66}, "end_point": {"row": 81, "column": 78}}, {"id": 312, "type": "primitive_type", "text": "endi", "parent": 311, "children": [], "start_point": {"row": 81, "column": 66}, "end_point": {"row": 81, "column": 70}}, {"id": 313, "type": "pointer_declarator", "text": "", "parent": 311, "children": [314, 315], "start_point": {"row": 81, "column": 71}, "end_point": {"row": 81, "column": 78}}, {"id": 314, "type": "*", "text": "", "parent": 313, "children": [], "start_point": {"row": 81, "column": 71}, "end_point": {"row": 81, "column": 72}}, {"id": 315, "type": "identifier", "text": "", "parent": 313, "children": [], "start_point": {"row": 81, "column": 72}, "end_point": {"row": 81, "column": 78}}, {"id": 316, "type": "#endif", "text": "", "parent": 3, "children": [], "start_point": {"row": 83, "column": 0}, "end_point": {"row": 83, "column": 6}}]}, "node_categories": {"declarations": {"functions": [23, 30, 42, 52, 74, 85, 100, 109, 117, 125, 138, 148, 164, 172, 183, 191, 199, 210, 218, 237, 256, 272, 280, 294, 302], "variables": [21, 26, 28, 33, 36, 45, 50, 55, 62, 67, 72, 77, 83, 88, 93, 98, 103, 107, 112, 115, 120, 123, 128, 133, 136, 141, 146, 151, 154, 159, 162, 167, 170, 175, 178, 181, 186, 189, 194, 197, 202, 205, 208, 213, 216, 221, 224, 227, 232, 235, 240, 243, 246, 251, 254, 259, 262, 265, 270, 275, 278, 286, 289, 292, 297, 300, 308, 311], "classes": [37, 38, 56, 57], "imports": [9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": [46, 47, 63, 64, 89, 90]}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 4, 5, 8, 22, 24, 31, 34, 35, 39, 43, 48, 49, 53, 58, 61, 65, 66, 71, 75, 78, 79, 80, 81, 82, 84, 86, 91, 92, 97, 101, 104, 105, 106, 108, 110, 113, 114, 116, 118, 121, 122, 124, 126, 132, 134, 135, 137, 139, 145, 147, 149, 152, 153, 158, 160, 161, 163, 165, 168, 169, 171, 173, 177, 180, 184, 187, 188, 190, 192, 195, 196, 198, 200, 203, 204, 206, 207, 209, 211, 214, 215, 217, 219, 222, 223, 225, 226, 231, 233, 234, 236, 238, 241, 242, 244, 245, 250, 252, 253, 255, 257, 260, 261, 263, 264, 269, 271, 273, 276, 277, 279, 284, 287, 288, 290, 291, 293, 295, 298, 299, 301, 306, 309, 310, 315, 316], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [11, 14, 17, 20], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_hw_interrupt_disable(void)"}, {"node_id": 30, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_hw_interrupt_enable(ocm_base_t level)"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_object_get_information(enum ocm_object_class_type type)"}, {"node_id": 52, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n "}, {"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_object_detach(ocm_object_t object)"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_object_allocate(enum ocm_object_class_type type,\n const char *na"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_object_delete(ocm_object_t object)"}, {"node_id": 109, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_object_is_systemobject(ocm_object_t object)"}, {"node_id": 117, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_object_get_type(ocm_object_t object)"}, {"node_id": 125, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_object_find(const char *name, ocm_uint8_t type)"}, {"node_id": 138, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_device_find(const char *name)"}, {"node_id": 148, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_device_register(ocm_device_t dev,\n const char *name,\n "}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_device_unregister(ocm_device_t dev)"}, {"node_id": 172, "universal_type": "function", "name": "attach_size)", "text_snippet": "ocm_device_create(int type, int attach_size)"}, {"node_id": 183, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_device_destroy(ocm_device_t device)"}, {"node_id": 191, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_device_init(ocm_device_t dev)"}, {"node_id": 199, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag)"}, {"node_id": 210, "universal_type": "function", "name": "unknown", "text_snippet": "ocm_device_close(ocm_device_t dev)"}, {"node_id": 218, "universal_type": "function", "name": "*buffer,", "text_snippet": "ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n "}, {"node_id": 237, "universal_type": "function", "name": "*buffer,", "text_snippet": "ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n "}, {"node_id": 256, "universal_type": "function", "name": "*arg)", "text_snippet": "ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg)"}, {"node_id": 272, "universal_type": "function", "name": "unknown", "text_snippet": "indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size"}, {"node_id": 280, "universal_type": "function", "name": "unknown", "text_snippet": "ce_t dev, ocm_size_t size));\nocm_err_t\nocm_d"}, {"node_id": 294, "universal_type": "function", "name": "*buffer));", "text_snippet": "complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *b"}, {"node_id": 302, "universal_type": "function", "name": "*buffer));", "text_snippet": "ice_t dev, void *buffer));\n\n#endif"}], "class_declarations": [{"node_id": 37, "universal_type": "class", "name": "ocm_object_information", "text_snippet": "struct ocm_object_information"}, {"node_id": 38, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 56, "universal_type": "class", "name": "ocm_object", "text_snippet": "struct ocm_object"}, {"node_id": 57, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 9, "text": "#include \"ocm_def.h\"\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"ocm_config.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include \"ocm_list.h\"\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"string.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "**\n/****************************************Copyright (c)****************************************************\n** http://www.onecm.com\n**\n**------------------------------------File Info----------------------------------------------------------*/\n/*\n * @Description: \n * @version: \n * @Author: Saber\n * @Date: 2020-08-25 11:10:27\n * @FilePath: \\OcmDataStream\\ocm_core.h\n * @LastEditors: Saber\n * @LastEditTime: 2020-09-01 16:11:56\n * @**\n * **********************************************************************************************************\n */\n\n#ifndef __OCMCORE_H__\n#define __OCMCORE_H__\n\n#include \"ocm_def.h\"\n#include \"ocm_config.h\"\n#include \"ocm_list.h\"\n\n#include \"string.h\"\n\n /**\n * interrupt interface \n */\n ocm_base_t\n ocm_hw_interrupt_disable(void);\nvoid ocm_hw_interrupt_enable(ocm_base_t level);\n\n/**\n * object interface \n */\nstruct ocm_object_information *ocm_object_get_information(enum ocm_object_class_type type);\nvoid ocm_object_init(struct ocm_object *object,\n enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_detach(ocm_object_t object);\n#ifdef ALLOCATE_DELETE\nocm_object_t ocm_object_allocate(enum ocm_object_class_type type,\n const char *name);\nvoid ocm_object_delete(ocm_object_t object);\n#endif\nocm_bool_t ocm_object_is_systemobject(ocm_object_t object);\nocm_type_t ocm_object_get_type(ocm_object_t object);\nocm_object_t ocm_object_find(const char *name, ocm_uint8_t type);\n\n/**\n * device interface \n */\nocm_device_t ocm_device_find(const char *name);\n\nocm_err_t ocm_device_register(ocm_device_t dev,\n const char *name,\n ocm_uint16_t flags);\nocm_err_t ocm_device_unregister(ocm_device_t dev);\nocm_device_t ocm_device_create(int type, int attach_size);\nvoid ocm_device_destroy(ocm_device_t device);\n\nocm_err_t ocm_device_init(ocm_device_t dev);\nocm_err_t ocm_device_open(ocm_device_t dev, ocm_uint16_t oflag);\nocm_err_t ocm_device_close(ocm_device_t dev);\nocm_size_t ocm_device_read(ocm_device_t dev,\n ocm_off_t pos,\n void *buffer,\n ocm_size_t size);\nocm_size_t ocm_device_write(ocm_device_t dev,\n ocm_off_t pos,\n const void *buffer,\n ocm_size_t size);\nocm_err_t ocm_device_control(ocm_device_t dev, ocm_cmd_t cmd, void *arg);\n\n/* \u94a9\u5b50\u51fd\u6570\uff0c\u6682\u672a\u5b9e\u73b0 */\nocm_err_t\nocm_device_set_rx_indicate(ocm_device_t dev,\n ocm_err_t (*rx_ind)(ocm_device_t dev, ocm_size_t size));\nocm_err_t\nocm_device_set_tx_complete(ocm_device_t dev,\n ocm_err_t (*tx_done)(ocm_device_t dev, void *buffer));\n\n#endif"}
80,379
c
#pragma once ////////////////////////////////////////////////////////////////////////////////////////////////// // // file: shared_materials.h // // Author <NAME> (Neill3d) // // // GitHub page - https://github.com/Neill3d/MoPlugs_Framework // Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs_Framework/blob/master/LICENSE // /////////////////////////////////////////////////////////////////////////////////////////////////// //-- #include <GL\glew.h> // STL #include <vector> #include <map> // #include "algorithm\nv_math.h" #include "graphics\OGL_Utils.h" #include "shared_textures.h" #include "shared_glsl.h" #include "shared_common.h" //////////////////////////////////////////////////////////////////////////////// // forward declaration class CGPUCacheLoaderVisitorImpl; //////////////////////////////////////////////////////////////////////////////////////////////////// // // // collect materials from FBScene or locally from gpu cache // class CMaterialsReference : public CResourceGPUModel<MaterialGLSL> { protected: virtual void Allocate(const int count); virtual void Free(); virtual void Clear(); public: //! a constructor CMaterialsReference(CResourceGPUModel<TextureGLSL> *pTextures); //! a destructor virtual ~CMaterialsReference(); // // process materials const int GetNumberOfMaterials(); const char *GetMaterialName(const int index); const GLuint64 GetMaterialDiffuseChannel(const int matindex); protected: CResourceGPUModel<TextureGLSL> *mTextures; // store names for UI std::vector<std::string> mMaterialsNames; friend class CGPUCacheLoaderVisitorImpl; };
28.35
55
(translation_unit) "#pragma once\n\n//////////////////////////////////////////////////////////////////////////////////////////////////\n//\n// file: shared_materials.h\n//\n// Author <NAME> (Neill3d)\n//\n//\n// GitHub page - https://github.com/Neill3d/MoPlugs_Framework\n// Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs_Framework/blob/master/LICENSE\n//\n///////////////////////////////////////////////////////////////////////////////////////////////////\n\n\n//-- \n#include <GL\glew.h>\n\n// STL\n#include <vector>\n#include <map>\n\n//\n#include "algorithm\nv_math.h"\n\n#include "graphics\OGL_Utils.h"\n\n#include "shared_textures.h"\n#include "shared_glsl.h"\n\n#include "shared_common.h"\n\n////////////////////////////////////////////////////////////////////////////////\n// forward declaration\nclass CGPUCacheLoaderVisitorImpl;\n\n////////////////////////////////////////////////////////////////////////////////////////////////////\n//\n//\n// collect materials from FBScene or locally from gpu cache\n//\n\nclass CMaterialsReference : public CResourceGPUModel<MaterialGLSL>\n{\n\nprotected:\n\n virtual void Allocate(const int count);\n virtual void Free();\n virtual void Clear();\n\npublic:\n\n //! a constructor\n CMaterialsReference(CResourceGPUModel<TextureGLSL> *pTextures);\n\n //! a destructor\n virtual ~CMaterialsReference();\n\n //\n // process materials\n\n const int GetNumberOfMaterials();\n const char *GetMaterialName(const int index);\n\n const GLuint64 GetMaterialDiffuseChannel(const int matindex);\n\n \n\nprotected:\n\n CResourceGPUModel<TextureGLSL> *mTextures;\n\n // store names for UI\n std::vector<std::string> mMaterialsNames;\n\n friend class CGPUCacheLoaderVisitorImpl;\n};" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (comment) "//////////////////////////////////////////////////////////////////////////////////////////////////" (comment) "//" (comment) "// file: shared_materials.h" (comment) "//" (comment) "// Author <NAME> (Neill3d)" (comment) "//" (comment) "//" (comment) "// GitHub page - https://github.com/Neill3d/MoPlugs_Framework" (comment) "// Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs_Framework/blob/master/LICENSE" (comment) "//" (comment) "///////////////////////////////////////////////////////////////////////////////////////////////////" (comment) "//-- " (preproc_include) "#include <GL\glew.h>\n" (#include) "#include" (system_lib_string) "<GL\glew.h>" (comment) "// STL" (preproc_include) "#include <vector>\n" (#include) "#include" (system_lib_string) "<vector>" (preproc_include) "#include <map>\n" (#include) "#include" (system_lib_string) "<map>" (comment) "//" (preproc_include) "#include "algorithm\nv_math.h"\n" (#include) "#include" (string_literal) ""algorithm\nv_math.h"" (") """ (string_content) "algorithm" (escape_sequence) "\n" (string_content) "v_math.h" (") """ (preproc_include) "#include "graphics\OGL_Utils.h"\n" (#include) "#include" (string_literal) ""graphics\OGL_Utils.h"" (") """ (string_content) "graphics" (escape_sequence) "\O" (string_content) "GL_Utils.h" (") """ (preproc_include) "#include "shared_textures.h"\n" (#include) "#include" (string_literal) ""shared_textures.h"" (") """ (string_content) "shared_textures.h" (") """ (preproc_include) "#include "shared_glsl.h"\n" (#include) "#include" (string_literal) ""shared_glsl.h"" (") """ (string_content) "shared_glsl.h" (") """ (preproc_include) "#include "shared_common.h"\n" (#include) "#include" (string_literal) ""shared_common.h"" (") """ (string_content) "shared_common.h" (") """ (comment) "////////////////////////////////////////////////////////////////////////////////" (comment) "// forward declaration" (declaration) "class CGPUCacheLoaderVisitorImpl;" (type_identifier) "class" (identifier) "CGPUCacheLoaderVisitorImpl" (;) ";" (comment) "////////////////////////////////////////////////////////////////////////////////////////////////////" (comment) "//" (comment) "//" (comment) "// collect materials from FBScene or locally from gpu cache" (comment) "//" (function_definition) "class CMaterialsReference : public CResourceGPUModel<MaterialGLSL>\n{\n\nprotected:\n\n virtual void Allocate(const int count);\n virtual void Free();\n virtual void Clear();\n\npublic:\n\n //! a constructor\n CMaterialsReference(CResourceGPUModel<TextureGLSL> *pTextures);\n\n //! a destructor\n virtual ~CMaterialsReference();\n\n //\n // process materials\n\n const int GetNumberOfMaterials();\n const char *GetMaterialName(const int index);\n\n const GLuint64 GetMaterialDiffuseChannel(const int matindex);\n\n \n\nprotected:\n\n CResourceGPUModel<TextureGLSL> *mTextures;\n\n // store names for UI\n std::vector<std::string> mMaterialsNames;\n\n friend class CGPUCacheLoaderVisitorImpl;\n}" (type_identifier) "class" (identifier) "CMaterialsReference" (ERROR) ": public CResourceGPUModel<MaterialGLSL>" (:) ":" (identifier) "public" (identifier) "CResourceGPUModel" (<) "<" (identifier) "MaterialGLSL" (>) ">" (compound_statement) "{\n\nprotected:\n\n virtual void Allocate(const int count);\n virtual void Free();\n virtual void Clear();\n\npublic:\n\n //! a constructor\n CMaterialsReference(CResourceGPUModel<TextureGLSL> *pTextures);\n\n //! a destructor\n virtual ~CMaterialsReference();\n\n //\n // process materials\n\n const int GetNumberOfMaterials();\n const char *GetMaterialName(const int index);\n\n const GLuint64 GetMaterialDiffuseChannel(const int matindex);\n\n \n\nprotected:\n\n CResourceGPUModel<TextureGLSL> *mTextures;\n\n // store names for UI\n std::vector<std::string> mMaterialsNames;\n\n friend class CGPUCacheLoaderVisitorImpl;\n}" ({) "{" (labeled_statement) "protected:\n\n virtual void Allocate(const int count);" (statement_identifier) "protected" (:) ":" (declaration) "virtual void Allocate(const int count);" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Allocate(const int count)" (identifier) "Allocate" (parameter_list) "(const int count)" (() "(" (parameter_declaration) "const int count" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "count" ()) ")" (;) ";" (declaration) "virtual void Free();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Free()" (identifier) "Free" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "virtual void Clear();" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (function_declarator) "Clear()" (identifier) "Clear" (parameter_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "public:\n\n //! a constructor\n CMaterialsReference(CResourceGPUModel<TextureGLSL> *pTextures);" (statement_identifier) "public" (:) ":" (comment) "//! a constructor" (expression_statement) "CMaterialsReference(CResourceGPUModel<TextureGLSL> *pTextures);" (call_expression) "CMaterialsReference(CResourceGPUModel<TextureGLSL> *pTextures)" (identifier) "CMaterialsReference" (argument_list) "(CResourceGPUModel<TextureGLSL> *pTextures)" (() "(" (binary_expression) "CResourceGPUModel<TextureGLSL> *pTextures" (binary_expression) "CResourceGPUModel<TextureGLSL" (identifier) "CResourceGPUModel" (<) "<" (identifier) "TextureGLSL" (>) ">" (pointer_expression) "*pTextures" (*) "*" (identifier) "pTextures" ()) ")" (;) ";" (comment) "//! a destructor" (declaration) "virtual ~CMaterialsReference();" (type_identifier) "virtual" (ERROR) "~" (~) "~" (function_declarator) "CMaterialsReference()" (identifier) "CMaterialsReference" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "//" (comment) "// process materials" (declaration) "const int GetNumberOfMaterials();" (type_qualifier) "const" (const) "const" (primitive_type) "int" (function_declarator) "GetNumberOfMaterials()" (identifier) "GetNumberOfMaterials" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "const char *GetMaterialName(const int index);" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*GetMaterialName(const int index)" (*) "*" (function_declarator) "GetMaterialName(const int index)" (identifier) "GetMaterialName" (parameter_list) "(const int index)" (() "(" (parameter_declaration) "const int index" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "index" ()) ")" (;) ";" (declaration) "const GLuint64 GetMaterialDiffuseChannel(const int matindex);" (type_qualifier) "const" (const) "const" (type_identifier) "GLuint64" (function_declarator) "GetMaterialDiffuseChannel(const int matindex)" (identifier) "GetMaterialDiffuseChannel" (parameter_list) "(const int matindex)" (() "(" (parameter_declaration) "const int matindex" (type_qualifier) "const" (const) "const" (primitive_type) "int" (identifier) "matindex" ()) ")" (;) ";" (labeled_statement) "protected:\n\n CResourceGPUModel<TextureGLSL> *mTextures;" (statement_identifier) "protected" (:) ":" (expression_statement) "CResourceGPUModel<TextureGLSL> *mTextures;" (binary_expression) "CResourceGPUModel<TextureGLSL> *mTextures" (binary_expression) "CResourceGPUModel<TextureGLSL" (identifier) "CResourceGPUModel" (<) "<" (identifier) "TextureGLSL" (>) ">" (pointer_expression) "*mTextures" (*) "*" (identifier) "mTextures" (;) ";" (comment) "// store names for UI" (labeled_statement) "std::vector<std::string> mMaterialsNames;" (statement_identifier) "std" (ERROR) "::vector<std:" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> mMaterialsNames;" (binary_expression) "string> mMaterialsNames" (identifier) "string" (>) ">" (identifier) "mMaterialsNames" (;) ";" (declaration) "friend class CGPUCacheLoaderVisitorImpl;" (type_identifier) "friend" (ERROR) "class" (identifier) "class" (identifier) "CGPUCacheLoaderVisitorImpl" (;) ";" (}) "}" (expression_statement) ";" (;) ";"
238
7
{"language": "c", "success": true, "metadata": {"lines": 55, "avg_line_length": 28.35, "nodes": 130, "errors": 0, "source_hash": "9924f2519e871577f8415da839a8f4417147c59c28fb62501e7010002445538f", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma once\n", "parent": null, "children": [1, 2], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 2, "column": 0}}, {"id": 1, "type": "preproc_directive", "text": "#pragma", "parent": 0, "children": [], "start_point": {"row": 1, "column": 0}, "end_point": {"row": 1, "column": 7}}, {"id": 2, "type": "preproc_arg", "text": "once", "parent": 0, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 12}}, {"id": 3, "type": "preproc_include", "text": "#include <GL\\glew.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<GL\\glew.h>", "parent": 3, "children": [], "start_point": {"row": 17, "column": 9}, "end_point": {"row": 17, "column": 20}}, {"id": 6, "type": "preproc_include", "text": "#include <vector>\n", "parent": null, "children": [7, 8], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<vector>", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include <map>\n", "parent": null, "children": [10, 11], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<map>", "parent": 9, "children": [], "start_point": {"row": 21, "column": 9}, "end_point": {"row": 21, "column": 14}}, {"id": 12, "type": "preproc_include", "text": "#include \"algorithm\\nv_math.h\"\n", "parent": null, "children": [13, 14], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 14, "type": "string_literal", "text": "\"algorithm\\nv_math.h\"", "parent": 12, "children": [15], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 30}}, {"id": 15, "type": "escape_sequence", "text": "\\n", "parent": 14, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 21}}, {"id": 16, "type": "preproc_include", "text": "#include \"graphics\\OGL_Utils.h\"\n", "parent": null, "children": [17, 18], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 18, "type": "string_literal", "text": "\"graphics\\OGL_Utils.h\"", "parent": 16, "children": [19], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 31}}, {"id": 19, "type": "escape_sequence", "text": "\\O", "parent": 18, "children": [], "start_point": {"row": 26, "column": 18}, "end_point": {"row": 26, "column": 20}}, {"id": 20, "type": "preproc_include", "text": "#include \"shared_textures.h\"\n", "parent": null, "children": [21, 22], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 21, "type": "#include", "text": "#include", "parent": 20, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 22, "type": "string_literal", "text": "\"shared_textures.h\"", "parent": 20, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 28}}, {"id": 23, "type": "preproc_include", "text": "#include \"shared_glsl.h\"\n", "parent": null, "children": [24, 25], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 24, "type": "#include", "text": "#include", "parent": 23, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 25, "type": "string_literal", "text": "\"shared_glsl.h\"", "parent": 23, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 24}}, {"id": 26, "type": "preproc_include", "text": "#include \"shared_common.h\"\n", "parent": null, "children": [27, 28], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 27, "type": "#include", "text": "#include", "parent": 26, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 28, "type": "string_literal", "text": "\"shared_common.h\"", "parent": 26, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 26}}, {"id": 29, "type": "declaration", "text": "class CGPUCacheLoaderVisitorImpl;", "parent": null, "children": [30], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 33}}, {"id": 30, "type": "identifier", "text": "CGPUCacheLoaderVisitorImpl", "parent": 29, "children": [], "start_point": {"row": 35, "column": 6}, "end_point": {"row": 35, "column": 32}}, {"id": 31, "type": "function_definition", "text": "class CMaterialsReference : public CResourceGPUModel<MaterialGLSL>\n{\n\nprotected:\n\n\tvirtual void Allocate(const int count);\n\tvirtual void Free();\n\tvirtual void Clear();\n\npublic:\n\n\t//! a constructor\n\tCMaterialsReference(CResourceGPUModel<TextureGLSL>\t*pTextures);\n\n\t//! a destructor\n\tvirtual ~CMaterialsReference();\n\n\t//\n\t// process materials\n\n\tconst int GetNumberOfMaterials();\n\tconst char *GetMaterialName(const int index);\n\n\tconst GLuint64 GetMaterialDiffuseChannel(const int matindex);\n\n\t\n\nprotected:\n\n\tCResourceGPUModel<TextureGLSL>\t*mTextures;\n\n\t// store names for UI\n\tstd::vector<std::string>\t\tmMaterialsNames;\n\n\tfriend class CGPUCacheLoaderVisitorImpl;\n}", "parent": null, "children": [32, 33], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 32, "type": "identifier", "text": "CMaterialsReference", "parent": 31, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 25}}, {"id": 33, "type": "ERROR", "text": ": public CResourceGPUModel<MaterialGLSL>", "parent": 31, "children": [34, 35, 36, 37], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 66}}, {"id": 34, "type": "identifier", "text": "CResourceGPUModel", "parent": 33, "children": [], "start_point": {"row": 43, "column": 35}, "end_point": {"row": 43, "column": 52}}, {"id": 35, "type": "<", "text": "<", "parent": 33, "children": [], "start_point": {"row": 43, "column": 52}, "end_point": {"row": 43, "column": 53}}, {"id": 36, "type": "identifier", "text": "MaterialGLSL", "parent": 33, "children": [], "start_point": {"row": 43, "column": 53}, "end_point": {"row": 43, "column": 65}}, {"id": 37, "type": ">", "text": ">", "parent": 33, "children": [], "start_point": {"row": 43, "column": 65}, "end_point": {"row": 43, "column": 66}}, {"id": 38, "type": "labeled_statement", "text": "protected:\n\n\tvirtual void Allocate(const int count);", "parent": 31, "children": [39], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 48, "column": 40}}, {"id": 39, "type": "declaration", "text": "virtual void Allocate(const int count);", "parent": 38, "children": [40, 41, 43], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 40}}, {"id": 40, "type": "type_identifier", "text": "virtual", "parent": 39, "children": [], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 48, "column": 8}}, {"id": 41, "type": "ERROR", "text": "void", "parent": 39, "children": [42], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 13}}, {"id": 42, "type": "identifier", "text": "void", "parent": 41, "children": [], "start_point": {"row": 48, "column": 9}, "end_point": {"row": 48, "column": 13}}, {"id": 43, "type": "function_declarator", "text": "Allocate(const int count)", "parent": 39, "children": [44, 45], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 39}}, {"id": 44, "type": "identifier", "text": "Allocate", "parent": 43, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 22}}, {"id": 45, "type": "parameter_list", "text": "(const int count)", "parent": 43, "children": [46], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 39}}, {"id": 46, "type": "parameter_declaration", "text": "const int count", "parent": 45, "children": [47, 48], "start_point": {"row": 48, "column": 23}, "end_point": {"row": 48, "column": 38}}, {"id": 47, "type": "primitive_type", "text": "int", "parent": 46, "children": [], "start_point": {"row": 48, "column": 29}, "end_point": {"row": 48, "column": 32}}, {"id": 48, "type": "identifier", "text": "count", "parent": 46, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 38}}, {"id": 49, "type": "declaration", "text": "virtual void Free();", "parent": 31, "children": [50, 51, 53], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 21}}, {"id": 50, "type": "type_identifier", "text": "virtual", "parent": 49, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 8}}, {"id": 51, "type": "ERROR", "text": "void", "parent": 49, "children": [52], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 13}}, {"id": 52, "type": "identifier", "text": "void", "parent": 51, "children": [], "start_point": {"row": 49, "column": 9}, "end_point": {"row": 49, "column": 13}}, {"id": 53, "type": "function_declarator", "text": "Free()", "parent": 49, "children": [54, 55], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 20}}, {"id": 54, "type": "identifier", "text": "Free", "parent": 53, "children": [], "start_point": {"row": 49, "column": 14}, "end_point": {"row": 49, "column": 18}}, {"id": 55, "type": "parameter_list", "text": "()", "parent": 53, "children": [], "start_point": {"row": 49, "column": 18}, "end_point": {"row": 49, "column": 20}}, {"id": 56, "type": "declaration", "text": "virtual void Clear();", "parent": 31, "children": [57, 58, 60], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 22}}, {"id": 57, "type": "type_identifier", "text": "virtual", "parent": 56, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 8}}, {"id": 58, "type": "ERROR", "text": "void", "parent": 56, "children": [59], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 13}}, {"id": 59, "type": "identifier", "text": "void", "parent": 58, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 13}}, {"id": 60, "type": "function_declarator", "text": "Clear()", "parent": 56, "children": [61, 62], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 21}}, {"id": 61, "type": "identifier", "text": "Clear", "parent": 60, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 19}}, {"id": 62, "type": "parameter_list", "text": "()", "parent": 60, "children": [], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 21}}, {"id": 63, "type": "labeled_statement", "text": "public:\n\n\t//! a constructor\n\tCMaterialsReference(CResourceGPUModel<TextureGLSL>\t*pTextures);", "parent": 31, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 55, "column": 64}}, {"id": 64, "type": "call_expression", "text": "CMaterialsReference(CResourceGPUModel<TextureGLSL>\t*pTextures)", "parent": 63, "children": [65, 66], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 63}}, {"id": 65, "type": "identifier", "text": "CMaterialsReference", "parent": 64, "children": [], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 55, "column": 20}}, {"id": 66, "type": "argument_list", "text": "(CResourceGPUModel<TextureGLSL>\t*pTextures)", "parent": 64, "children": [67], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 63}}, {"id": 67, "type": "binary_expression", "text": "CResourceGPUModel<TextureGLSL>\t*pTextures", "parent": 66, "children": [68, 72, 73], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 62}}, {"id": 68, "type": "binary_expression", "text": "CResourceGPUModel<TextureGLSL", "parent": 67, "children": [69, 70, 71], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 50}}, {"id": 69, "type": "identifier", "text": "CResourceGPUModel", "parent": 68, "children": [], "start_point": {"row": 55, "column": 21}, "end_point": {"row": 55, "column": 38}}, {"id": 70, "type": "<", "text": "<", "parent": 68, "children": [], "start_point": {"row": 55, "column": 38}, "end_point": {"row": 55, "column": 39}}, {"id": 71, "type": "identifier", "text": "TextureGLSL", "parent": 68, "children": [], "start_point": {"row": 55, "column": 39}, "end_point": {"row": 55, "column": 50}}, {"id": 72, "type": ">", "text": ">", "parent": 67, "children": [], "start_point": {"row": 55, "column": 50}, "end_point": {"row": 55, "column": 51}}, {"id": 73, "type": "pointer_expression", "text": "*pTextures", "parent": 67, "children": [74, 75], "start_point": {"row": 55, "column": 52}, "end_point": {"row": 55, "column": 62}}, {"id": 74, "type": "*", "text": "*", "parent": 73, "children": [], "start_point": {"row": 55, "column": 52}, "end_point": {"row": 55, "column": 53}}, {"id": 75, "type": "identifier", "text": "pTextures", "parent": 73, "children": [], "start_point": {"row": 55, "column": 53}, "end_point": {"row": 55, "column": 62}}, {"id": 76, "type": "declaration", "text": "virtual ~CMaterialsReference();", "parent": 31, "children": [77, 78, 80], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 32}}, {"id": 77, "type": "type_identifier", "text": "virtual", "parent": 76, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 8}}, {"id": 78, "type": "ERROR", "text": "~", "parent": 76, "children": [79], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 79, "type": "~", "text": "~", "parent": 78, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 80, "type": "function_declarator", "text": "CMaterialsReference()", "parent": 76, "children": [81, 82], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 31}}, {"id": 81, "type": "identifier", "text": "CMaterialsReference", "parent": 80, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 29}}, {"id": 82, "type": "parameter_list", "text": "()", "parent": 80, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 31}}, {"id": 83, "type": "declaration", "text": "const int GetNumberOfMaterials();", "parent": 31, "children": [84, 85], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 34}}, {"id": 84, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 63, "column": 7}, "end_point": {"row": 63, "column": 10}}, {"id": 85, "type": "function_declarator", "text": "GetNumberOfMaterials()", "parent": 83, "children": [86, 87], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 33}}, {"id": 86, "type": "identifier", "text": "GetNumberOfMaterials", "parent": 85, "children": [], "start_point": {"row": 63, "column": 11}, "end_point": {"row": 63, "column": 31}}, {"id": 87, "type": "parameter_list", "text": "()", "parent": 85, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 33}}, {"id": 88, "type": "declaration", "text": "const char *GetMaterialName(const int index);", "parent": 31, "children": [89, 90], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 46}}, {"id": 89, "type": "primitive_type", "text": "char", "parent": 88, "children": [], "start_point": {"row": 64, "column": 7}, "end_point": {"row": 64, "column": 11}}, {"id": 90, "type": "pointer_declarator", "text": "*GetMaterialName(const int index)", "parent": 88, "children": [91, 92], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 45}}, {"id": 91, "type": "*", "text": "*", "parent": 90, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 92, "type": "function_declarator", "text": "GetMaterialName(const int index)", "parent": 90, "children": [93, 94], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 45}}, {"id": 93, "type": "identifier", "text": "GetMaterialName", "parent": 92, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 28}}, {"id": 94, "type": "parameter_list", "text": "(const int index)", "parent": 92, "children": [95], "start_point": {"row": 64, "column": 28}, "end_point": {"row": 64, "column": 45}}, {"id": 95, "type": "parameter_declaration", "text": "const int index", "parent": 94, "children": [96, 97], "start_point": {"row": 64, "column": 29}, "end_point": {"row": 64, "column": 44}}, {"id": 96, "type": "primitive_type", "text": "int", "parent": 95, "children": [], "start_point": {"row": 64, "column": 35}, "end_point": {"row": 64, "column": 38}}, {"id": 97, "type": "identifier", "text": "index", "parent": 95, "children": [], "start_point": {"row": 64, "column": 39}, "end_point": {"row": 64, "column": 44}}, {"id": 98, "type": "declaration", "text": "const GLuint64 GetMaterialDiffuseChannel(const int matindex);", "parent": 31, "children": [99, 100], "start_point": {"row": 66, "column": 1}, "end_point": {"row": 66, "column": 62}}, {"id": 99, "type": "type_identifier", "text": "GLuint64", "parent": 98, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 15}}, {"id": 100, "type": "function_declarator", "text": "GetMaterialDiffuseChannel(const int matindex)", "parent": 98, "children": [101, 102], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 61}}, {"id": 101, "type": "identifier", "text": "GetMaterialDiffuseChannel", "parent": 100, "children": [], "start_point": {"row": 66, "column": 16}, "end_point": {"row": 66, "column": 41}}, {"id": 102, "type": "parameter_list", "text": "(const int matindex)", "parent": 100, "children": [103], "start_point": {"row": 66, "column": 41}, "end_point": {"row": 66, "column": 61}}, {"id": 103, "type": "parameter_declaration", "text": "const int matindex", "parent": 102, "children": [104, 105], "start_point": {"row": 66, "column": 42}, "end_point": {"row": 66, "column": 60}}, {"id": 104, "type": "primitive_type", "text": "int", "parent": 103, "children": [], "start_point": {"row": 66, "column": 48}, "end_point": {"row": 66, "column": 51}}, {"id": 105, "type": "identifier", "text": "matindex", "parent": 103, "children": [], "start_point": {"row": 66, "column": 52}, "end_point": {"row": 66, "column": 60}}, {"id": 106, "type": "labeled_statement", "text": "protected:\n\n\tCResourceGPUModel<TextureGLSL>\t*mTextures;", "parent": 31, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 72, "column": 43}}, {"id": 107, "type": "binary_expression", "text": "CResourceGPUModel<TextureGLSL>\t*mTextures", "parent": 106, "children": [108, 112, 113], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 42}}, {"id": 108, "type": "binary_expression", "text": "CResourceGPUModel<TextureGLSL", "parent": 107, "children": [109, 110, 111], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 30}}, {"id": 109, "type": "identifier", "text": "CResourceGPUModel", "parent": 108, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 18}}, {"id": 110, "type": "<", "text": "<", "parent": 108, "children": [], "start_point": {"row": 72, "column": 18}, "end_point": {"row": 72, "column": 19}}, {"id": 111, "type": "identifier", "text": "TextureGLSL", "parent": 108, "children": [], "start_point": {"row": 72, "column": 19}, "end_point": {"row": 72, "column": 30}}, {"id": 112, "type": ">", "text": ">", "parent": 107, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 31}}, {"id": 113, "type": "pointer_expression", "text": "*mTextures", "parent": 107, "children": [114, 115], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 42}}, {"id": 114, "type": "*", "text": "*", "parent": 113, "children": [], "start_point": {"row": 72, "column": 32}, "end_point": {"row": 72, "column": 33}}, {"id": 115, "type": "identifier", "text": "mTextures", "parent": 113, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 42}}, {"id": 116, "type": "labeled_statement", "text": "std::vector<std::string>\t\tmMaterialsNames;", "parent": 31, "children": [117, 118], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 43}}, {"id": 117, "type": "statement_identifier", "text": "std", "parent": 116, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 4}}, {"id": 118, "type": "ERROR", "text": "::vector<std:", "parent": 116, "children": [119], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 17}}, {"id": 119, "type": "binary_expression", "text": "vector<std", "parent": 118, "children": [120, 121, 122], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 16}}, {"id": 120, "type": "identifier", "text": "vector", "parent": 119, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 12}}, {"id": 121, "type": "<", "text": "<", "parent": 119, "children": [], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 13}}, {"id": 122, "type": "identifier", "text": "std", "parent": 119, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 16}}, {"id": 123, "type": "binary_expression", "text": "string>\t\tmMaterialsNames", "parent": 116, "children": [124, 125, 126], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 42}}, {"id": 124, "type": "identifier", "text": "string", "parent": 123, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 24}}, {"id": 125, "type": ">", "text": ">", "parent": 123, "children": [], "start_point": {"row": 75, "column": 24}, "end_point": {"row": 75, "column": 25}}, {"id": 126, "type": "identifier", "text": "mMaterialsNames", "parent": 123, "children": [], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 42}}, {"id": 127, "type": "declaration", "text": "friend class CGPUCacheLoaderVisitorImpl;", "parent": 31, "children": [128, 129], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 41}}, {"id": 128, "type": "type_identifier", "text": "friend", "parent": 127, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 7}}, {"id": 129, "type": "identifier", "text": "CGPUCacheLoaderVisitorImpl", "parent": 127, "children": [], "start_point": {"row": 77, "column": 14}, "end_point": {"row": 77, "column": 40}}]}, "node_categories": {"declarations": {"functions": [31, 43, 53, 60, 80, 85, 92, 100], "variables": [29, 39, 46, 49, 56, 76, 83, 88, 95, 98, 103, 127], "classes": [], "imports": [3, 4, 6, 7, 9, 10, 12, 13, 16, 17, 20, 21, 23, 24, 26, 27], "modules": [], "enums": []}, "statements": {"expressions": [64, 67, 68, 73, 107, 108, 113, 119, 123], "assignments": [], "loops": [], "conditionals": [30, 32, 34, 36, 40, 42, 44, 48, 50, 52, 54, 57, 59, 61, 65, 69, 71, 75, 77, 81, 86, 93, 97, 99, 101, 105, 109, 111, 115, 117, 120, 122, 124, 126, 128, 129], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11, 14, 18, 22, 25, 28], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 31, "universal_type": "function", "name": "CMaterialsReference", "text_snippet": "class CMaterialsReference : public CResourceGPUModel<MaterialGLSL>\n{\n\nprotected:\n\n\tvirtual void Allo"}, {"node_id": 43, "universal_type": "function", "name": "count)", "text_snippet": "Allocate(const int count)"}, {"node_id": 53, "universal_type": "function", "name": "unknown", "text_snippet": "Free()"}, {"node_id": 60, "universal_type": "function", "name": "unknown", "text_snippet": "Clear()"}, {"node_id": 80, "universal_type": "function", "name": "unknown", "text_snippet": "CMaterialsReference()"}, {"node_id": 85, "universal_type": "function", "name": "unknown", "text_snippet": "GetNumberOfMaterials()"}, {"node_id": 92, "universal_type": "function", "name": "index)", "text_snippet": "GetMaterialName(const int index)"}, {"node_id": 100, "universal_type": "function", "name": "matindex)", "text_snippet": "GetMaterialDiffuseChannel(const int matindex)"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <GL\\glew.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <vector>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <map>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include \"algorithm\\nv_math.h\"\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 16, "text": "#include \"graphics\\OGL_Utils.h\"\n"}, {"node_id": 17, "text": "#include"}, {"node_id": 20, "text": "#include \"shared_textures.h\"\n"}, {"node_id": 21, "text": "#include"}, {"node_id": 23, "text": "#include \"shared_glsl.h\"\n"}, {"node_id": 24, "text": "#include"}, {"node_id": 26, "text": "#include \"shared_common.h\"\n"}, {"node_id": 27, "text": "#include"}]}, "original_source_code": "\n#pragma once\n\n//////////////////////////////////////////////////////////////////////////////////////////////////\n//\n// file: shared_materials.h\n//\n//\tAuthor <NAME> (Neill3d)\n//\n//\n//\tGitHub page - https://github.com/Neill3d/MoPlugs_Framework\n//\tLicensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs_Framework/blob/master/LICENSE\n//\n///////////////////////////////////////////////////////////////////////////////////////////////////\n\n\n//-- \n#include <GL\\glew.h>\n\n// STL\n#include <vector>\n#include <map>\n\n//\n#include \"algorithm\\nv_math.h\"\n\n#include \"graphics\\OGL_Utils.h\"\n\n#include \"shared_textures.h\"\n#include \"shared_glsl.h\"\n\n#include \"shared_common.h\"\n\n////////////////////////////////////////////////////////////////////////////////\n// forward declaration\nclass CGPUCacheLoaderVisitorImpl;\n\n////////////////////////////////////////////////////////////////////////////////////////////////////\n//\n//\n// collect materials from FBScene or locally from gpu cache\n//\n\nclass CMaterialsReference : public CResourceGPUModel<MaterialGLSL>\n{\n\nprotected:\n\n\tvirtual void Allocate(const int count);\n\tvirtual void Free();\n\tvirtual void Clear();\n\npublic:\n\n\t//! a constructor\n\tCMaterialsReference(CResourceGPUModel<TextureGLSL>\t*pTextures);\n\n\t//! a destructor\n\tvirtual ~CMaterialsReference();\n\n\t//\n\t// process materials\n\n\tconst int GetNumberOfMaterials();\n\tconst char *GetMaterialName(const int index);\n\n\tconst GLuint64 GetMaterialDiffuseChannel(const int matindex);\n\n\t\n\nprotected:\n\n\tCResourceGPUModel<TextureGLSL>\t*mTextures;\n\n\t// store names for UI\n\tstd::vector<std::string>\t\tmMaterialsNames;\n\n\tfriend class CGPUCacheLoaderVisitorImpl;\n};"}
80,380
c
/* * heynoti * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #include <stdio.h> #include <stdlib.h> #include <glib.h> #include "heynoti.h" #define NOTINAME "APP_LAUNCH_COMPLETED" static GMainLoop *loop; static int cnt; void callback(void *data) { int fd = (int)data; cnt--; printf("%s: %d\n", __func__, cnt); if (cnt == 0) { heynoti_detach_handler(fd); printf("detach handler\n"); return; } } int main(int argc, const char *argv[]) { int r; int fd; char n[FILENAME_MAX]; fd = heynoti_init(); printf("Noti init: %d\n", fd); if (fd == -1) return -1; if (argv[1]) r = heynoti_get_snoti_name(argv[1], n, sizeof(n)); else r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n)); if (!r) { r = heynoti_subscribe(fd, n, callback, (void *)fd); printf("noti add: %d\n", r); } if (r == -1) goto err; cnt = 10; r = heynoti_attach_handler(fd); printf("attach handler : %d\n", r); if (r == -1) goto err; loop = g_main_loop_new(NULL, FALSE); g_main_loop_run(loop); err: heynoti_close(fd); g_main_loop_unref(loop); return 0; }
23.25
71
(translation_unit) "/*\n * heynoti\n *\n * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\n *\n * Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>,\n * <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <glib.h>\n\n#include "heynoti.h"\n\n#define NOTINAME "APP_LAUNCH_COMPLETED"\n\nstatic GMainLoop *loop;\nstatic int cnt;\n\nvoid callback(void *data)\n{\n int fd = (int)data;\n cnt--;\n printf("%s: %d\n", __func__, cnt);\n\n if (cnt == 0) {\n heynoti_detach_handler(fd);\n printf("detach handler\n");\n return;\n }\n}\n\nint main(int argc, const char *argv[])\n{\n int r;\n int fd;\n char n[FILENAME_MAX];\n\n fd = heynoti_init();\n printf("Noti init: %d\n", fd);\n if (fd == -1)\n return -1;\n\n if (argv[1])\n r = heynoti_get_snoti_name(argv[1], n, sizeof(n));\n else\n r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));\n if (!r) {\n r = heynoti_subscribe(fd, n, callback, (void *)fd);\n printf("noti add: %d\n", r);\n }\n\n if (r == -1)\n goto err;\n\n cnt = 10;\n r = heynoti_attach_handler(fd);\n printf("attach handler : %d\n", r);\n if (r == -1)\n goto err;\n\n loop = g_main_loop_new(NULL, FALSE);\n g_main_loop_run(loop);\n err:\n heynoti_close(fd);\n g_main_loop_unref(loop);\n\n return 0;\n}\n\n" (comment) "/*\n * heynoti\n *\n * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\n *\n * Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>,\n * <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */" (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 <glib.h>\n" (#include) "#include" (system_lib_string) "<glib.h>" (preproc_include) "#include "heynoti.h"\n" (#include) "#include" (string_literal) ""heynoti.h"" (") """ (string_content) "heynoti.h" (") """ (preproc_def) "#define NOTINAME "APP_LAUNCH_COMPLETED"\n" (#define) "#define" (identifier) "NOTINAME" (preproc_arg) ""APP_LAUNCH_COMPLETED"" (declaration) "static GMainLoop *loop;" (storage_class_specifier) "static" (static) "static" (type_identifier) "GMainLoop" (pointer_declarator) "*loop" (*) "*" (identifier) "loop" (;) ";" (declaration) "static int cnt;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (identifier) "cnt" (;) ";" (function_definition) "void callback(void *data)\n{\n int fd = (int)data;\n cnt--;\n printf("%s: %d\n", __func__, cnt);\n\n if (cnt == 0) {\n heynoti_detach_handler(fd);\n printf("detach handler\n");\n return;\n }\n}" (primitive_type) "void" (function_declarator) "callback(void *data)" (identifier) "callback" (parameter_list) "(void *data)" (() "(" (parameter_declaration) "void *data" (primitive_type) "void" (pointer_declarator) "*data" (*) "*" (identifier) "data" ()) ")" (compound_statement) "{\n int fd = (int)data;\n cnt--;\n printf("%s: %d\n", __func__, cnt);\n\n if (cnt == 0) {\n heynoti_detach_handler(fd);\n printf("detach handler\n");\n return;\n }\n}" ({) "{" (declaration) "int fd = (int)data;" (primitive_type) "int" (init_declarator) "fd = (int)data" (identifier) "fd" (=) "=" (cast_expression) "(int)data" (() "(" (type_descriptor) "int" (primitive_type) "int" ()) ")" (identifier) "data" (;) ";" (expression_statement) "cnt--;" (update_expression) "cnt--" (identifier) "cnt" (--) "--" (;) ";" (expression_statement) "printf("%s: %d\n", __func__, cnt);" (call_expression) "printf("%s: %d\n", __func__, cnt)" (identifier) "printf" (argument_list) "("%s: %d\n", __func__, cnt)" (() "(" (string_literal) ""%s: %d\n"" (") """ (string_content) "%s: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "__func__" (,) "," (identifier) "cnt" ()) ")" (;) ";" (if_statement) "if (cnt == 0) {\n heynoti_detach_handler(fd);\n printf("detach handler\n");\n return;\n }" (if) "if" (parenthesized_expression) "(cnt == 0)" (() "(" (binary_expression) "cnt == 0" (identifier) "cnt" (==) "==" (number_literal) "0" ()) ")" (compound_statement) "{\n heynoti_detach_handler(fd);\n printf("detach handler\n");\n return;\n }" ({) "{" (expression_statement) "heynoti_detach_handler(fd);" (call_expression) "heynoti_detach_handler(fd)" (identifier) "heynoti_detach_handler" (argument_list) "(fd)" (() "(" (identifier) "fd" ()) ")" (;) ";" (expression_statement) "printf("detach handler\n");" (call_expression) "printf("detach handler\n")" (identifier) "printf" (argument_list) "("detach handler\n")" (() "(" (string_literal) ""detach handler\n"" (") """ (string_content) "detach handler" (escape_sequence) "\n" (") """ ()) ")" (;) ";" (return_statement) "return;" (return) "return" (;) ";" (}) "}" (}) "}" (function_definition) "int main(int argc, const char *argv[])\n{\n int r;\n int fd;\n char n[FILENAME_MAX];\n\n fd = heynoti_init();\n printf("Noti init: %d\n", fd);\n if (fd == -1)\n return -1;\n\n if (argv[1])\n r = heynoti_get_snoti_name(argv[1], n, sizeof(n));\n else\n r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));\n if (!r) {\n r = heynoti_subscribe(fd, n, callback, (void *)fd);\n printf("noti add: %d\n", r);\n }\n\n if (r == -1)\n goto err;\n\n cnt = 10;\n r = heynoti_attach_handler(fd);\n printf("attach handler : %d\n", r);\n if (r == -1)\n goto err;\n\n loop = g_main_loop_new(NULL, FALSE);\n g_main_loop_run(loop);\n err:\n heynoti_close(fd);\n g_main_loop_unref(loop);\n\n return 0;\n}" (primitive_type) "int" (function_declarator) "main(int argc, const char *argv[])" (identifier) "main" (parameter_list) "(int argc, const char *argv[])" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "const char *argv[]" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*argv[]" (*) "*" (array_declarator) "argv[]" (identifier) "argv" ([) "[" (]) "]" ()) ")" (compound_statement) "{\n int r;\n int fd;\n char n[FILENAME_MAX];\n\n fd = heynoti_init();\n printf("Noti init: %d\n", fd);\n if (fd == -1)\n return -1;\n\n if (argv[1])\n r = heynoti_get_snoti_name(argv[1], n, sizeof(n));\n else\n r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));\n if (!r) {\n r = heynoti_subscribe(fd, n, callback, (void *)fd);\n printf("noti add: %d\n", r);\n }\n\n if (r == -1)\n goto err;\n\n cnt = 10;\n r = heynoti_attach_handler(fd);\n printf("attach handler : %d\n", r);\n if (r == -1)\n goto err;\n\n loop = g_main_loop_new(NULL, FALSE);\n g_main_loop_run(loop);\n err:\n heynoti_close(fd);\n g_main_loop_unref(loop);\n\n return 0;\n}" ({) "{" (declaration) "int r;" (primitive_type) "int" (identifier) "r" (;) ";" (declaration) "int fd;" (primitive_type) "int" (identifier) "fd" (;) ";" (declaration) "char n[FILENAME_MAX];" (primitive_type) "char" (array_declarator) "n[FILENAME_MAX]" (identifier) "n" ([) "[" (identifier) "FILENAME_MAX" (]) "]" (;) ";" (expression_statement) "fd = heynoti_init();" (assignment_expression) "fd = heynoti_init()" (identifier) "fd" (=) "=" (call_expression) "heynoti_init()" (identifier) "heynoti_init" (argument_list) "()" (() "(" ()) ")" (;) ";" (expression_statement) "printf("Noti init: %d\n", fd);" (call_expression) "printf("Noti init: %d\n", fd)" (identifier) "printf" (argument_list) "("Noti init: %d\n", fd)" (() "(" (string_literal) ""Noti init: %d\n"" (") """ (string_content) "Noti init: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "fd" ()) ")" (;) ";" (if_statement) "if (fd == -1)\n return -1;" (if) "if" (parenthesized_expression) "(fd == -1)" (() "(" (binary_expression) "fd == -1" (identifier) "fd" (==) "==" (number_literal) "-1" ()) ")" (return_statement) "return -1;" (return) "return" (number_literal) "-1" (;) ";" (if_statement) "if (argv[1])\n r = heynoti_get_snoti_name(argv[1], n, sizeof(n));\n else\n r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));" (if) "if" (parenthesized_expression) "(argv[1])" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" ()) ")" (expression_statement) "r = heynoti_get_snoti_name(argv[1], n, sizeof(n));" (assignment_expression) "r = heynoti_get_snoti_name(argv[1], n, sizeof(n))" (identifier) "r" (=) "=" (call_expression) "heynoti_get_snoti_name(argv[1], n, sizeof(n))" (identifier) "heynoti_get_snoti_name" (argument_list) "(argv[1], n, sizeof(n))" (() "(" (subscript_expression) "argv[1]" (identifier) "argv" ([) "[" (number_literal) "1" (]) "]" (,) "," (identifier) "n" (,) "," (sizeof_expression) "sizeof(n)" (sizeof) "sizeof" (parenthesized_expression) "(n)" (() "(" (identifier) "n" ()) ")" ()) ")" (;) ";" (else_clause) "else\n r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));" (else) "else" (expression_statement) "r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));" (assignment_expression) "r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n))" (identifier) "r" (=) "=" (call_expression) "heynoti_get_snoti_name(NOTINAME, n, sizeof(n))" (identifier) "heynoti_get_snoti_name" (argument_list) "(NOTINAME, n, sizeof(n))" (() "(" (identifier) "NOTINAME" (,) "," (identifier) "n" (,) "," (sizeof_expression) "sizeof(n)" (sizeof) "sizeof" (parenthesized_expression) "(n)" (() "(" (identifier) "n" ()) ")" ()) ")" (;) ";" (if_statement) "if (!r) {\n r = heynoti_subscribe(fd, n, callback, (void *)fd);\n printf("noti add: %d\n", r);\n }" (if) "if" (parenthesized_expression) "(!r)" (() "(" (unary_expression) "!r" (!) "!" (identifier) "r" ()) ")" (compound_statement) "{\n r = heynoti_subscribe(fd, n, callback, (void *)fd);\n printf("noti add: %d\n", r);\n }" ({) "{" (expression_statement) "r = heynoti_subscribe(fd, n, callback, (void *)fd);" (assignment_expression) "r = heynoti_subscribe(fd, n, callback, (void *)fd)" (identifier) "r" (=) "=" (call_expression) "heynoti_subscribe(fd, n, callback, (void *)fd)" (identifier) "heynoti_subscribe" (argument_list) "(fd, n, callback, (void *)fd)" (() "(" (identifier) "fd" (,) "," (identifier) "n" (,) "," (identifier) "callback" (,) "," (cast_expression) "(void *)fd" (() "(" (type_descriptor) "void *" (primitive_type) "void" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (identifier) "fd" ()) ")" (;) ";" (expression_statement) "printf("noti add: %d\n", r);" (call_expression) "printf("noti add: %d\n", r)" (identifier) "printf" (argument_list) "("noti add: %d\n", r)" (() "(" (string_literal) ""noti add: %d\n"" (") """ (string_content) "noti add: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "r" ()) ")" (;) ";" (}) "}" (if_statement) "if (r == -1)\n goto err;" (if) "if" (parenthesized_expression) "(r == -1)" (() "(" (binary_expression) "r == -1" (identifier) "r" (==) "==" (number_literal) "-1" ()) ")" (goto_statement) "goto err;" (goto) "goto" (statement_identifier) "err" (;) ";" (expression_statement) "cnt = 10;" (assignment_expression) "cnt = 10" (identifier) "cnt" (=) "=" (number_literal) "10" (;) ";" (expression_statement) "r = heynoti_attach_handler(fd);" (assignment_expression) "r = heynoti_attach_handler(fd)" (identifier) "r" (=) "=" (call_expression) "heynoti_attach_handler(fd)" (identifier) "heynoti_attach_handler" (argument_list) "(fd)" (() "(" (identifier) "fd" ()) ")" (;) ";" (expression_statement) "printf("attach handler : %d\n", r);" (call_expression) "printf("attach handler : %d\n", r)" (identifier) "printf" (argument_list) "("attach handler : %d\n", r)" (() "(" (string_literal) ""attach handler : %d\n"" (") """ (string_content) "attach handler : %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "r" ()) ")" (;) ";" (if_statement) "if (r == -1)\n goto err;" (if) "if" (parenthesized_expression) "(r == -1)" (() "(" (binary_expression) "r == -1" (identifier) "r" (==) "==" (number_literal) "-1" ()) ")" (goto_statement) "goto err;" (goto) "goto" (statement_identifier) "err" (;) ";" (expression_statement) "loop = g_main_loop_new(NULL, FALSE);" (assignment_expression) "loop = g_main_loop_new(NULL, FALSE)" (identifier) "loop" (=) "=" (call_expression) "g_main_loop_new(NULL, FALSE)" (identifier) "g_main_loop_new" (argument_list) "(NULL, FALSE)" (() "(" (null) "NULL" (NULL) "NULL" (,) "," (false) "FALSE" ()) ")" (;) ";" (expression_statement) "g_main_loop_run(loop);" (call_expression) "g_main_loop_run(loop)" (identifier) "g_main_loop_run" (argument_list) "(loop)" (() "(" (identifier) "loop" ()) ")" (;) ";" (labeled_statement) "err:\n heynoti_close(fd);" (statement_identifier) "err" (:) ":" (expression_statement) "heynoti_close(fd);" (call_expression) "heynoti_close(fd)" (identifier) "heynoti_close" (argument_list) "(fd)" (() "(" (identifier) "fd" ()) ")" (;) ";" (expression_statement) "g_main_loop_unref(loop);" (call_expression) "g_main_loop_unref(loop)" (identifier) "g_main_loop_unref" (argument_list) "(loop)" (() "(" (identifier) "loop" ()) ")" (;) ";" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}"
402
0
{"language": "c", "success": true, "metadata": {"lines": 71, "avg_line_length": 23.25, "nodes": 230, "errors": 0, "source_hash": "118e609881c314693192c7026f6c1620ed63e8bbd1892c04ff3541d5ccae0442", "categorized_nodes": 157}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 23, "column": 9}, "end_point": {"row": 23, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include <stdlib.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<stdlib.h>", "parent": 3, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 19}}, {"id": 6, "type": "preproc_include", "text": "#include <glib.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<glib.h>", "parent": 6, "children": [], "start_point": {"row": 25, "column": 9}, "end_point": {"row": 25, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include \"heynoti.h\"\n", "parent": null, "children": [10, 11], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"heynoti.h\"", "parent": 9, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 20}}, {"id": 12, "type": "preproc_def", "text": "#define NOTINAME \"APP_LAUNCH_COMPLETED\"\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 7}}, {"id": 14, "type": "identifier", "text": "NOTINAME", "parent": 12, "children": [], "start_point": {"row": 29, "column": 8}, "end_point": {"row": 29, "column": 16}}, {"id": 15, "type": "preproc_arg", "text": "\"APP_LAUNCH_COMPLETED\"", "parent": 12, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 39}}, {"id": 16, "type": "declaration", "text": "static GMainLoop *loop;", "parent": null, "children": [17, 18], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 23}}, {"id": 17, "type": "type_identifier", "text": "GMainLoop", "parent": 16, "children": [], "start_point": {"row": 31, "column": 7}, "end_point": {"row": 31, "column": 16}}, {"id": 18, "type": "pointer_declarator", "text": "*loop", "parent": 16, "children": [19, 20], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 22}}, {"id": 19, "type": "*", "text": "*", "parent": 18, "children": [], "start_point": {"row": 31, "column": 17}, "end_point": {"row": 31, "column": 18}}, {"id": 20, "type": "identifier", "text": "loop", "parent": 18, "children": [], "start_point": {"row": 31, "column": 18}, "end_point": {"row": 31, "column": 22}}, {"id": 21, "type": "declaration", "text": "static int cnt;", "parent": null, "children": [22, 23], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 15}}, {"id": 22, "type": "primitive_type", "text": "int", "parent": 21, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 10}}, {"id": 23, "type": "identifier", "text": "cnt", "parent": 21, "children": [], "start_point": {"row": 32, "column": 11}, "end_point": {"row": 32, "column": 14}}, {"id": 24, "type": "function_definition", "text": "void callback(void *data)\n{\n\tint fd = (int)data;\n\tcnt--;\n\tprintf(\"%s: %d\\n\", __func__, cnt);\n\n\tif (cnt == 0) {\n\t\theynoti_detach_handler(fd);\n\t\tprintf(\"detach handler\\n\");\n\t\treturn;\n\t}\n}", "parent": null, "children": [25, 26], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 45, "column": 1}}, {"id": 25, "type": "primitive_type", "text": "void", "parent": 24, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 4}}, {"id": 26, "type": "function_declarator", "text": "callback(void *data)", "parent": 24, "children": [27, 28], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 25}}, {"id": 27, "type": "identifier", "text": "callback", "parent": 26, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 13}}, {"id": 28, "type": "parameter_list", "text": "(void *data)", "parent": 26, "children": [29], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 25}}, {"id": 29, "type": "parameter_declaration", "text": "void *data", "parent": 28, "children": [30, 31], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 24}}, {"id": 30, "type": "primitive_type", "text": "void", "parent": 29, "children": [], "start_point": {"row": 34, "column": 14}, "end_point": {"row": 34, "column": 18}}, {"id": 31, "type": "pointer_declarator", "text": "*data", "parent": 29, "children": [32, 33], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 24}}, {"id": 32, "type": "*", "text": "*", "parent": 31, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 20}}, {"id": 33, "type": "identifier", "text": "data", "parent": 31, "children": [], "start_point": {"row": 34, "column": 20}, "end_point": {"row": 34, "column": 24}}, {"id": 34, "type": "declaration", "text": "int fd = (int)data;", "parent": 24, "children": [35, 36], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 20}}, {"id": 35, "type": "primitive_type", "text": "int", "parent": 34, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 4}}, {"id": 36, "type": "init_declarator", "text": "fd = (int)data", "parent": 34, "children": [37, 38, 39], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 19}}, {"id": 37, "type": "identifier", "text": "fd", "parent": 36, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 7}}, {"id": 38, "type": "=", "text": "=", "parent": 36, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 9}}, {"id": 39, "type": "cast_expression", "text": "(int)data", "parent": 36, "children": [40, 42], "start_point": {"row": 36, "column": 10}, "end_point": {"row": 36, "column": 19}}, {"id": 40, "type": "type_descriptor", "text": "int", "parent": 39, "children": [41], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 14}}, {"id": 41, "type": "primitive_type", "text": "int", "parent": 40, "children": [], "start_point": {"row": 36, "column": 11}, "end_point": {"row": 36, "column": 14}}, {"id": 42, "type": "identifier", "text": "data", "parent": 39, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 19}}, {"id": 43, "type": "update_expression", "text": "cnt--", "parent": 24, "children": [44, 45], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 6}}, {"id": 44, "type": "identifier", "text": "cnt", "parent": 43, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 4}}, {"id": 45, "type": "--", "text": "--", "parent": 43, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 6}}, {"id": 46, "type": "call_expression", "text": "printf(\"%s: %d\\n\", __func__, cnt)", "parent": 24, "children": [47, 48], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 34}}, {"id": 47, "type": "identifier", "text": "printf", "parent": 46, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 7}}, {"id": 48, "type": "argument_list", "text": "(\"%s: %d\\n\", __func__, cnt)", "parent": 46, "children": [49, 51, 52], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 34}}, {"id": 49, "type": "string_literal", "text": "\"%s: %d\\n\"", "parent": 48, "children": [50], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 18}}, {"id": 50, "type": "escape_sequence", "text": "\\n", "parent": 49, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 17}}, {"id": 51, "type": "identifier", "text": "__func__", "parent": 48, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 28}}, {"id": 52, "type": "identifier", "text": "cnt", "parent": 48, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 33}}, {"id": 53, "type": "if_statement", "text": "if (cnt == 0) {\n\t\theynoti_detach_handler(fd);\n\t\tprintf(\"detach handler\\n\");\n\t\treturn;\n\t}", "parent": 24, "children": [54], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 44, "column": 2}}, {"id": 54, "type": "parenthesized_expression", "text": "(cnt == 0)", "parent": 53, "children": [55], "start_point": {"row": 40, "column": 4}, "end_point": {"row": 40, "column": 14}}, {"id": 55, "type": "binary_expression", "text": "cnt == 0", "parent": 54, "children": [56, 57, 58], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 13}}, {"id": 56, "type": "identifier", "text": "cnt", "parent": 55, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 8}}, {"id": 57, "type": "==", "text": "==", "parent": 55, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 11}}, {"id": 58, "type": "number_literal", "text": "0", "parent": 55, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 13}}, {"id": 59, "type": "call_expression", "text": "heynoti_detach_handler(fd)", "parent": 53, "children": [60, 61], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 28}}, {"id": 60, "type": "identifier", "text": "heynoti_detach_handler", "parent": 59, "children": [], "start_point": {"row": 41, "column": 2}, "end_point": {"row": 41, "column": 24}}, {"id": 61, "type": "argument_list", "text": "(fd)", "parent": 59, "children": [62], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 28}}, {"id": 62, "type": "identifier", "text": "fd", "parent": 61, "children": [], "start_point": {"row": 41, "column": 25}, "end_point": {"row": 41, "column": 27}}, {"id": 63, "type": "call_expression", "text": "printf(\"detach handler\\n\")", "parent": 53, "children": [64, 65], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 28}}, {"id": 64, "type": "identifier", "text": "printf", "parent": 63, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 8}}, {"id": 65, "type": "argument_list", "text": "(\"detach handler\\n\")", "parent": 63, "children": [66], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 28}}, {"id": 66, "type": "string_literal", "text": "\"detach handler\\n\"", "parent": 65, "children": [67], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 27}}, {"id": 67, "type": "escape_sequence", "text": "\\n", "parent": 66, "children": [], "start_point": {"row": 42, "column": 24}, "end_point": {"row": 42, "column": 26}}, {"id": 68, "type": "return_statement", "text": "return;", "parent": 53, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 9}}, {"id": 69, "type": "function_definition", "text": "int main(int argc, const char *argv[])\n{\n\tint r;\n\tint fd;\n\tchar n[FILENAME_MAX];\n\n\tfd = heynoti_init();\n\tprintf(\"Noti init: %d\\n\", fd);\n\tif (fd == -1)\n\t\treturn -1;\n\n\tif (argv[1])\n\t\tr = heynoti_get_snoti_name(argv[1], n, sizeof(n));\n\telse\n\t\tr = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));\n\tif (!r) {\n\t\tr = heynoti_subscribe(fd, n, callback, (void *)fd);\n\t\tprintf(\"noti add: %d\\n\", r);\n\t}\n\n\tif (r == -1)\n\t\tgoto err;\n\n\tcnt = 10;\n\tr = heynoti_attach_handler(fd);\n\tprintf(\"attach handler : %d\\n\", r);\n\tif (r == -1)\n\t\tgoto err;\n\n\tloop = g_main_loop_new(NULL, FALSE);\n\tg_main_loop_run(loop);\n err:\n\theynoti_close(fd);\n\tg_main_loop_unref(loop);\n\n\treturn 0;\n}", "parent": null, "children": [70, 71], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 83, "column": 1}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 69, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 3}}, {"id": 71, "type": "function_declarator", "text": "main(int argc, const char *argv[])", "parent": 69, "children": [72, 73], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 38}}, {"id": 72, "type": "identifier", "text": "main", "parent": 71, "children": [], "start_point": {"row": 47, "column": 4}, "end_point": {"row": 47, "column": 8}}, {"id": 73, "type": "parameter_list", "text": "(int argc, const char *argv[])", "parent": 71, "children": [74, 77], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 38}}, {"id": 74, "type": "parameter_declaration", "text": "int argc", "parent": 73, "children": [75, 76], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 17}}, {"id": 75, "type": "primitive_type", "text": "int", "parent": 74, "children": [], "start_point": {"row": 47, "column": 9}, "end_point": {"row": 47, "column": 12}}, {"id": 76, "type": "identifier", "text": "argc", "parent": 74, "children": [], "start_point": {"row": 47, "column": 13}, "end_point": {"row": 47, "column": 17}}, {"id": 77, "type": "parameter_declaration", "text": "const char *argv[]", "parent": 73, "children": [78, 79], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 37}}, {"id": 78, "type": "primitive_type", "text": "char", "parent": 77, "children": [], "start_point": {"row": 47, "column": 25}, "end_point": {"row": 47, "column": 29}}, {"id": 79, "type": "pointer_declarator", "text": "*argv[]", "parent": 77, "children": [80, 81], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 37}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 31}}, {"id": 81, "type": "array_declarator", "text": "argv[]", "parent": 79, "children": [82], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 37}}, {"id": 82, "type": "identifier", "text": "argv", "parent": 81, "children": [], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 35}}, {"id": 83, "type": "declaration", "text": "int r;", "parent": 69, "children": [84, 85], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 7}}, {"id": 84, "type": "primitive_type", "text": "int", "parent": 83, "children": [], "start_point": {"row": 49, "column": 1}, "end_point": {"row": 49, "column": 4}}, {"id": 85, "type": "identifier", "text": "r", "parent": 83, "children": [], "start_point": {"row": 49, "column": 5}, "end_point": {"row": 49, "column": 6}}, {"id": 86, "type": "declaration", "text": "int fd;", "parent": 69, "children": [87, 88], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 8}}, {"id": 87, "type": "primitive_type", "text": "int", "parent": 86, "children": [], "start_point": {"row": 50, "column": 1}, "end_point": {"row": 50, "column": 4}}, {"id": 88, "type": "identifier", "text": "fd", "parent": 86, "children": [], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 7}}, {"id": 89, "type": "declaration", "text": "char n[FILENAME_MAX];", "parent": 69, "children": [90, 91], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 22}}, {"id": 90, "type": "primitive_type", "text": "char", "parent": 89, "children": [], "start_point": {"row": 51, "column": 1}, "end_point": {"row": 51, "column": 5}}, {"id": 91, "type": "array_declarator", "text": "n[FILENAME_MAX]", "parent": 89, "children": [92, 93], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 21}}, {"id": 92, "type": "identifier", "text": "n", "parent": 91, "children": [], "start_point": {"row": 51, "column": 6}, "end_point": {"row": 51, "column": 7}}, {"id": 93, "type": "identifier", "text": "FILENAME_MAX", "parent": 91, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 20}}, {"id": 94, "type": "assignment_expression", "text": "fd = heynoti_init()", "parent": 69, "children": [95, 96, 97], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 20}}, {"id": 95, "type": "identifier", "text": "fd", "parent": 94, "children": [], "start_point": {"row": 53, "column": 1}, "end_point": {"row": 53, "column": 3}}, {"id": 96, "type": "=", "text": "=", "parent": 94, "children": [], "start_point": {"row": 53, "column": 4}, "end_point": {"row": 53, "column": 5}}, {"id": 97, "type": "call_expression", "text": "heynoti_init()", "parent": 94, "children": [98, 99], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 20}}, {"id": 98, "type": "identifier", "text": "heynoti_init", "parent": 97, "children": [], "start_point": {"row": 53, "column": 6}, "end_point": {"row": 53, "column": 18}}, {"id": 99, "type": "argument_list", "text": "()", "parent": 97, "children": [], "start_point": {"row": 53, "column": 18}, "end_point": {"row": 53, "column": 20}}, {"id": 100, "type": "call_expression", "text": "printf(\"Noti init: %d\\n\", fd)", "parent": 69, "children": [101, 102], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 30}}, {"id": 101, "type": "identifier", "text": "printf", "parent": 100, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 7}}, {"id": 102, "type": "argument_list", "text": "(\"Noti init: %d\\n\", fd)", "parent": 100, "children": [103, 105], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 30}}, {"id": 103, "type": "string_literal", "text": "\"Noti init: %d\\n\"", "parent": 102, "children": [104], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 25}}, {"id": 104, "type": "escape_sequence", "text": "\\n", "parent": 103, "children": [], "start_point": {"row": 54, "column": 22}, "end_point": {"row": 54, "column": 24}}, {"id": 105, "type": "identifier", "text": "fd", "parent": 102, "children": [], "start_point": {"row": 54, "column": 27}, "end_point": {"row": 54, "column": 29}}, {"id": 106, "type": "if_statement", "text": "if (fd == -1)\n\t\treturn -1;", "parent": 69, "children": [107, 112], "start_point": {"row": 55, "column": 1}, "end_point": {"row": 56, "column": 12}}, {"id": 107, "type": "parenthesized_expression", "text": "(fd == -1)", "parent": 106, "children": [108], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 14}}, {"id": 108, "type": "binary_expression", "text": "fd == -1", "parent": 107, "children": [109, 110, 111], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 13}}, {"id": 109, "type": "identifier", "text": "fd", "parent": 108, "children": [], "start_point": {"row": 55, "column": 5}, "end_point": {"row": 55, "column": 7}}, {"id": 110, "type": "==", "text": "==", "parent": 108, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 10}}, {"id": 111, "type": "number_literal", "text": "-1", "parent": 108, "children": [], "start_point": {"row": 55, "column": 11}, "end_point": {"row": 55, "column": 13}}, {"id": 112, "type": "return_statement", "text": "return -1;", "parent": 106, "children": [113], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 12}}, {"id": 113, "type": "number_literal", "text": "-1", "parent": 112, "children": [], "start_point": {"row": 56, "column": 9}, "end_point": {"row": 56, "column": 11}}, {"id": 114, "type": "if_statement", "text": "if (argv[1])\n\t\tr = heynoti_get_snoti_name(argv[1], n, sizeof(n));\n\telse\n\t\tr = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));", "parent": 69, "children": [115, 132], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 61, "column": 53}}, {"id": 115, "type": "parenthesized_expression", "text": "(argv[1])", "parent": 114, "children": [116], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 13}}, {"id": 116, "type": "subscript_expression", "text": "argv[1]", "parent": 115, "children": [117, 118], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 12}}, {"id": 117, "type": "identifier", "text": "argv", "parent": 116, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 9}}, {"id": 118, "type": "number_literal", "text": "1", "parent": 116, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 11}}, {"id": 119, "type": "assignment_expression", "text": "r = heynoti_get_snoti_name(argv[1], n, sizeof(n))", "parent": 114, "children": [120, 121, 122], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 51}}, {"id": 120, "type": "identifier", "text": "r", "parent": 119, "children": [], "start_point": {"row": 59, "column": 2}, "end_point": {"row": 59, "column": 3}}, {"id": 121, "type": "=", "text": "=", "parent": 119, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 5}}, {"id": 122, "type": "call_expression", "text": "heynoti_get_snoti_name(argv[1], n, sizeof(n))", "parent": 119, "children": [123, 124], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 51}}, {"id": 123, "type": "identifier", "text": "heynoti_get_snoti_name", "parent": 122, "children": [], "start_point": {"row": 59, "column": 6}, "end_point": {"row": 59, "column": 28}}, {"id": 124, "type": "argument_list", "text": "(argv[1], n, sizeof(n))", "parent": 122, "children": [125, 128, 129], "start_point": {"row": 59, "column": 28}, "end_point": {"row": 59, "column": 51}}, {"id": 125, "type": "subscript_expression", "text": "argv[1]", "parent": 124, "children": [126, 127], "start_point": {"row": 59, "column": 29}, "end_point": {"row": 59, "column": 36}}, {"id": 126, "type": "identifier", "text": "argv", "parent": 125, "children": [], "start_point": {"row": 59, "column": 29}, "end_point": {"row": 59, "column": 33}}, {"id": 127, "type": "number_literal", "text": "1", "parent": 125, "children": [], "start_point": {"row": 59, "column": 34}, "end_point": {"row": 59, "column": 35}}, {"id": 128, "type": "identifier", "text": "n", "parent": 124, "children": [], "start_point": {"row": 59, "column": 38}, "end_point": {"row": 59, "column": 39}}, {"id": 129, "type": "sizeof_expression", "text": "sizeof(n)", "parent": 124, "children": [130], "start_point": {"row": 59, "column": 41}, "end_point": {"row": 59, "column": 50}}, {"id": 130, "type": "parenthesized_expression", "text": "(n)", "parent": 129, "children": [131], "start_point": {"row": 59, "column": 47}, "end_point": {"row": 59, "column": 50}}, {"id": 131, "type": "identifier", "text": "n", "parent": 130, "children": [], "start_point": {"row": 59, "column": 48}, "end_point": {"row": 59, "column": 49}}, {"id": 132, "type": "else_clause", "text": "else\n\t\tr = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));", "parent": 114, "children": [], "start_point": {"row": 60, "column": 1}, "end_point": {"row": 61, "column": 53}}, {"id": 133, "type": "assignment_expression", "text": "r = heynoti_get_snoti_name(NOTINAME, n, sizeof(n))", "parent": 132, "children": [134, 135, 136], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 52}}, {"id": 134, "type": "identifier", "text": "r", "parent": 133, "children": [], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 61, "column": 3}}, {"id": 135, "type": "=", "text": "=", "parent": 133, "children": [], "start_point": {"row": 61, "column": 4}, "end_point": {"row": 61, "column": 5}}, {"id": 136, "type": "call_expression", "text": "heynoti_get_snoti_name(NOTINAME, n, sizeof(n))", "parent": 133, "children": [137, 138], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 52}}, {"id": 137, "type": "identifier", "text": "heynoti_get_snoti_name", "parent": 136, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 28}}, {"id": 138, "type": "argument_list", "text": "(NOTINAME, n, sizeof(n))", "parent": 136, "children": [139, 140, 141], "start_point": {"row": 61, "column": 28}, "end_point": {"row": 61, "column": 52}}, {"id": 139, "type": "identifier", "text": "NOTINAME", "parent": 138, "children": [], "start_point": {"row": 61, "column": 29}, "end_point": {"row": 61, "column": 37}}, {"id": 140, "type": "identifier", "text": "n", "parent": 138, "children": [], "start_point": {"row": 61, "column": 39}, "end_point": {"row": 61, "column": 40}}, {"id": 141, "type": "sizeof_expression", "text": "sizeof(n)", "parent": 138, "children": [142], "start_point": {"row": 61, "column": 42}, "end_point": {"row": 61, "column": 51}}, {"id": 142, "type": "parenthesized_expression", "text": "(n)", "parent": 141, "children": [143], "start_point": {"row": 61, "column": 48}, "end_point": {"row": 61, "column": 51}}, {"id": 143, "type": "identifier", "text": "n", "parent": 142, "children": [], "start_point": {"row": 61, "column": 49}, "end_point": {"row": 61, "column": 50}}, {"id": 144, "type": "if_statement", "text": "if (!r) {\n\t\tr = heynoti_subscribe(fd, n, callback, (void *)fd);\n\t\tprintf(\"noti add: %d\\n\", r);\n\t}", "parent": 69, "children": [145], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 65, "column": 2}}, {"id": 145, "type": "parenthesized_expression", "text": "(!r)", "parent": 144, "children": [146], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 8}}, {"id": 146, "type": "unary_expression", "text": "!r", "parent": 145, "children": [147, 148], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 7}}, {"id": 147, "type": "!", "text": "!", "parent": 146, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 6}}, {"id": 148, "type": "identifier", "text": "r", "parent": 146, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 7}}, {"id": 149, "type": "assignment_expression", "text": "r = heynoti_subscribe(fd, n, callback, (void *)fd)", "parent": 144, "children": [150, 151, 152], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 52}}, {"id": 150, "type": "identifier", "text": "r", "parent": 149, "children": [], "start_point": {"row": 63, "column": 2}, "end_point": {"row": 63, "column": 3}}, {"id": 151, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 63, "column": 4}, "end_point": {"row": 63, "column": 5}}, {"id": 152, "type": "call_expression", "text": "heynoti_subscribe(fd, n, callback, (void *)fd)", "parent": 149, "children": [153, 154], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 52}}, {"id": 153, "type": "identifier", "text": "heynoti_subscribe", "parent": 152, "children": [], "start_point": {"row": 63, "column": 6}, "end_point": {"row": 63, "column": 23}}, {"id": 154, "type": "argument_list", "text": "(fd, n, callback, (void *)fd)", "parent": 152, "children": [155, 156, 157, 158], "start_point": {"row": 63, "column": 23}, "end_point": {"row": 63, "column": 52}}, {"id": 155, "type": "identifier", "text": "fd", "parent": 154, "children": [], "start_point": {"row": 63, "column": 24}, "end_point": {"row": 63, "column": 26}}, {"id": 156, "type": "identifier", "text": "n", "parent": 154, "children": [], "start_point": {"row": 63, "column": 28}, "end_point": {"row": 63, "column": 29}}, {"id": 157, "type": "identifier", "text": "callback", "parent": 154, "children": [], "start_point": {"row": 63, "column": 31}, "end_point": {"row": 63, "column": 39}}, {"id": 158, "type": "cast_expression", "text": "(void *)fd", "parent": 154, "children": [159, 163], "start_point": {"row": 63, "column": 41}, "end_point": {"row": 63, "column": 51}}, {"id": 159, "type": "type_descriptor", "text": "void *", "parent": 158, "children": [160, 161], "start_point": {"row": 63, "column": 42}, "end_point": {"row": 63, "column": 48}}, {"id": 160, "type": "primitive_type", "text": "void", "parent": 159, "children": [], "start_point": {"row": 63, "column": 42}, "end_point": {"row": 63, "column": 46}}, {"id": 161, "type": "abstract_pointer_declarator", "text": "*", "parent": 159, "children": [162], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 48}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 63, "column": 47}, "end_point": {"row": 63, "column": 48}}, {"id": 163, "type": "identifier", "text": "fd", "parent": 158, "children": [], "start_point": {"row": 63, "column": 49}, "end_point": {"row": 63, "column": 51}}, {"id": 164, "type": "call_expression", "text": "printf(\"noti add: %d\\n\", r)", "parent": 144, "children": [165, 166], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 29}}, {"id": 165, "type": "identifier", "text": "printf", "parent": 164, "children": [], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 8}}, {"id": 166, "type": "argument_list", "text": "(\"noti add: %d\\n\", r)", "parent": 164, "children": [167, 169], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 29}}, {"id": 167, "type": "string_literal", "text": "\"noti add: %d\\n\"", "parent": 166, "children": [168], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 25}}, {"id": 168, "type": "escape_sequence", "text": "\\n", "parent": 167, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 24}}, {"id": 169, "type": "identifier", "text": "r", "parent": 166, "children": [], "start_point": {"row": 64, "column": 27}, "end_point": {"row": 64, "column": 28}}, {"id": 170, "type": "if_statement", "text": "if (r == -1)\n\t\tgoto err;", "parent": 69, "children": [171, 176], "start_point": {"row": 67, "column": 1}, "end_point": {"row": 68, "column": 11}}, {"id": 171, "type": "parenthesized_expression", "text": "(r == -1)", "parent": 170, "children": [172], "start_point": {"row": 67, "column": 4}, "end_point": {"row": 67, "column": 13}}, {"id": 172, "type": "binary_expression", "text": "r == -1", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 12}}, {"id": 173, "type": "identifier", "text": "r", "parent": 172, "children": [], "start_point": {"row": 67, "column": 5}, "end_point": {"row": 67, "column": 6}}, {"id": 174, "type": "==", "text": "==", "parent": 172, "children": [], "start_point": {"row": 67, "column": 7}, "end_point": {"row": 67, "column": 9}}, {"id": 175, "type": "number_literal", "text": "-1", "parent": 172, "children": [], "start_point": {"row": 67, "column": 10}, "end_point": {"row": 67, "column": 12}}, {"id": 176, "type": "goto_statement", "text": "goto err;", "parent": 170, "children": [177, 178], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 11}}, {"id": 177, "type": "goto", "text": "goto", "parent": 176, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 6}}, {"id": 178, "type": "statement_identifier", "text": "err", "parent": 176, "children": [], "start_point": {"row": 68, "column": 7}, "end_point": {"row": 68, "column": 10}}, {"id": 179, "type": "assignment_expression", "text": "cnt = 10", "parent": 69, "children": [180, 181, 182], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 9}}, {"id": 180, "type": "identifier", "text": "cnt", "parent": 179, "children": [], "start_point": {"row": 70, "column": 1}, "end_point": {"row": 70, "column": 4}}, {"id": 181, "type": "=", "text": "=", "parent": 179, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 6}}, {"id": 182, "type": "number_literal", "text": "10", "parent": 179, "children": [], "start_point": {"row": 70, "column": 7}, "end_point": {"row": 70, "column": 9}}, {"id": 183, "type": "assignment_expression", "text": "r = heynoti_attach_handler(fd)", "parent": 69, "children": [184, 185, 186], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 31}}, {"id": 184, "type": "identifier", "text": "r", "parent": 183, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 2}}, {"id": 185, "type": "=", "text": "=", "parent": 183, "children": [], "start_point": {"row": 71, "column": 3}, "end_point": {"row": 71, "column": 4}}, {"id": 186, "type": "call_expression", "text": "heynoti_attach_handler(fd)", "parent": 183, "children": [187, 188], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 31}}, {"id": 187, "type": "identifier", "text": "heynoti_attach_handler", "parent": 186, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 27}}, {"id": 188, "type": "argument_list", "text": "(fd)", "parent": 186, "children": [189], "start_point": {"row": 71, "column": 27}, "end_point": {"row": 71, "column": 31}}, {"id": 189, "type": "identifier", "text": "fd", "parent": 188, "children": [], "start_point": {"row": 71, "column": 28}, "end_point": {"row": 71, "column": 30}}, {"id": 190, "type": "call_expression", "text": "printf(\"attach handler : %d\\n\", r)", "parent": 69, "children": [191, 192], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 35}}, {"id": 191, "type": "identifier", "text": "printf", "parent": 190, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 7}}, {"id": 192, "type": "argument_list", "text": "(\"attach handler : %d\\n\", r)", "parent": 190, "children": [193, 195], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 35}}, {"id": 193, "type": "string_literal", "text": "\"attach handler : %d\\n\"", "parent": 192, "children": [194], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 31}}, {"id": 194, "type": "escape_sequence", "text": "\\n", "parent": 193, "children": [], "start_point": {"row": 72, "column": 28}, "end_point": {"row": 72, "column": 30}}, {"id": 195, "type": "identifier", "text": "r", "parent": 192, "children": [], "start_point": {"row": 72, "column": 33}, "end_point": {"row": 72, "column": 34}}, {"id": 196, "type": "if_statement", "text": "if (r == -1)\n\t\tgoto err;", "parent": 69, "children": [197, 202], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 74, "column": 11}}, {"id": 197, "type": "parenthesized_expression", "text": "(r == -1)", "parent": 196, "children": [198], "start_point": {"row": 73, "column": 4}, "end_point": {"row": 73, "column": 13}}, {"id": 198, "type": "binary_expression", "text": "r == -1", "parent": 197, "children": [199, 200, 201], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 12}}, {"id": 199, "type": "identifier", "text": "r", "parent": 198, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 6}}, {"id": 200, "type": "==", "text": "==", "parent": 198, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 9}}, {"id": 201, "type": "number_literal", "text": "-1", "parent": 198, "children": [], "start_point": {"row": 73, "column": 10}, "end_point": {"row": 73, "column": 12}}, {"id": 202, "type": "goto_statement", "text": "goto err;", "parent": 196, "children": [203, 204], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 11}}, {"id": 203, "type": "goto", "text": "goto", "parent": 202, "children": [], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 74, "column": 6}}, {"id": 204, "type": "statement_identifier", "text": "err", "parent": 202, "children": [], "start_point": {"row": 74, "column": 7}, "end_point": {"row": 74, "column": 10}}, {"id": 205, "type": "assignment_expression", "text": "loop = g_main_loop_new(NULL, FALSE)", "parent": 69, "children": [206, 207, 208], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 36}}, {"id": 206, "type": "identifier", "text": "loop", "parent": 205, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 5}}, {"id": 207, "type": "=", "text": "=", "parent": 205, "children": [], "start_point": {"row": 76, "column": 6}, "end_point": {"row": 76, "column": 7}}, {"id": 208, "type": "call_expression", "text": "g_main_loop_new(NULL, FALSE)", "parent": 205, "children": [209, 210], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 36}}, {"id": 209, "type": "identifier", "text": "g_main_loop_new", "parent": 208, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 23}}, {"id": 210, "type": "argument_list", "text": "(NULL, FALSE)", "parent": 208, "children": [211, 213], "start_point": {"row": 76, "column": 23}, "end_point": {"row": 76, "column": 36}}, {"id": 211, "type": "null", "text": "NULL", "parent": 210, "children": [212], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 28}}, {"id": 212, "type": "NULL", "text": "NULL", "parent": 211, "children": [], "start_point": {"row": 76, "column": 24}, "end_point": {"row": 76, "column": 28}}, {"id": 213, "type": "false", "text": "FALSE", "parent": 210, "children": [], "start_point": {"row": 76, "column": 30}, "end_point": {"row": 76, "column": 35}}, {"id": 214, "type": "call_expression", "text": "g_main_loop_run(loop)", "parent": 69, "children": [215, 216], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 22}}, {"id": 215, "type": "identifier", "text": "g_main_loop_run", "parent": 214, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 16}}, {"id": 216, "type": "argument_list", "text": "(loop)", "parent": 214, "children": [217], "start_point": {"row": 77, "column": 16}, "end_point": {"row": 77, "column": 22}}, {"id": 217, "type": "identifier", "text": "loop", "parent": 216, "children": [], "start_point": {"row": 77, "column": 17}, "end_point": {"row": 77, "column": 21}}, {"id": 218, "type": "labeled_statement", "text": "err:\n\theynoti_close(fd);", "parent": 69, "children": [219], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 79, "column": 19}}, {"id": 219, "type": "statement_identifier", "text": "err", "parent": 218, "children": [], "start_point": {"row": 78, "column": 1}, "end_point": {"row": 78, "column": 4}}, {"id": 220, "type": "call_expression", "text": "heynoti_close(fd)", "parent": 218, "children": [221, 222], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 18}}, {"id": 221, "type": "identifier", "text": "heynoti_close", "parent": 220, "children": [], "start_point": {"row": 79, "column": 1}, "end_point": {"row": 79, "column": 14}}, {"id": 222, "type": "argument_list", "text": "(fd)", "parent": 220, "children": [223], "start_point": {"row": 79, "column": 14}, "end_point": {"row": 79, "column": 18}}, {"id": 223, "type": "identifier", "text": "fd", "parent": 222, "children": [], "start_point": {"row": 79, "column": 15}, "end_point": {"row": 79, "column": 17}}, {"id": 224, "type": "call_expression", "text": "g_main_loop_unref(loop)", "parent": 69, "children": [225, 226], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 24}}, {"id": 225, "type": "identifier", "text": "g_main_loop_unref", "parent": 224, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 18}}, {"id": 226, "type": "argument_list", "text": "(loop)", "parent": 224, "children": [227], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 24}}, {"id": 227, "type": "identifier", "text": "loop", "parent": 226, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 23}}, {"id": 228, "type": "return_statement", "text": "return 0;", "parent": 69, "children": [229], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 10}}, {"id": 229, "type": "number_literal", "text": "0", "parent": 228, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 9}}]}, "node_categories": {"declarations": {"functions": [24, 26, 69, 71], "variables": [16, 21, 29, 34, 74, 77, 83, 86, 89], "classes": [], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [39, 43, 46, 54, 55, 59, 63, 97, 100, 107, 108, 115, 116, 122, 125, 129, 130, 136, 141, 142, 145, 146, 152, 158, 164, 171, 172, 186, 190, 197, 198, 208, 214, 220, 224], "assignments": [94, 119, 133, 149, 179, 183, 205], "loops": [], "conditionals": [14, 17, 20, 23, 27, 33, 37, 42, 44, 47, 51, 52, 53, 56, 60, 62, 64, 72, 76, 82, 85, 88, 92, 93, 95, 98, 101, 105, 106, 109, 114, 117, 120, 123, 126, 128, 131, 134, 137, 139, 140, 143, 144, 148, 150, 153, 155, 156, 157, 163, 165, 169, 170, 173, 178, 180, 184, 187, 189, 191, 195, 196, 199, 204, 206, 209, 215, 217, 219, 221, 223, 225, 227], "returns": [68, 112, 228], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 49, 58, 66, 103, 111, 113, 118, 127, 167, 175, 182, 193, 201, 229], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 24, "universal_type": "function", "name": "callback", "text_snippet": "void callback(void *data)\n{\n\tint fd = (int)data;\n\tcnt--;\n\tprintf(\"%s: %d\\n\", __func__, cnt);\n\n\tif (c"}, {"node_id": 26, "universal_type": "function", "name": "unknown", "text_snippet": "callback(void *data)"}, {"node_id": 69, "universal_type": "function", "name": "main", "text_snippet": "int main(int argc, const char *argv[])\n{\n\tint r;\n\tint fd;\n\tchar n[FILENAME_MAX];\n\n\tfd = heynoti_init"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "main(int argc, const char *argv[])"}], "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 <glib.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"heynoti.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * heynoti\n *\n * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\n *\n * Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>,\n * <NAME> <<EMAIL>>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <glib.h>\n\n#include \"heynoti.h\"\n\n#define NOTINAME \"APP_LAUNCH_COMPLETED\"\n\nstatic GMainLoop *loop;\nstatic int cnt;\n\nvoid callback(void *data)\n{\n\tint fd = (int)data;\n\tcnt--;\n\tprintf(\"%s: %d\\n\", __func__, cnt);\n\n\tif (cnt == 0) {\n\t\theynoti_detach_handler(fd);\n\t\tprintf(\"detach handler\\n\");\n\t\treturn;\n\t}\n}\n\nint main(int argc, const char *argv[])\n{\n\tint r;\n\tint fd;\n\tchar n[FILENAME_MAX];\n\n\tfd = heynoti_init();\n\tprintf(\"Noti init: %d\\n\", fd);\n\tif (fd == -1)\n\t\treturn -1;\n\n\tif (argv[1])\n\t\tr = heynoti_get_snoti_name(argv[1], n, sizeof(n));\n\telse\n\t\tr = heynoti_get_snoti_name(NOTINAME, n, sizeof(n));\n\tif (!r) {\n\t\tr = heynoti_subscribe(fd, n, callback, (void *)fd);\n\t\tprintf(\"noti add: %d\\n\", r);\n\t}\n\n\tif (r == -1)\n\t\tgoto err;\n\n\tcnt = 10;\n\tr = heynoti_attach_handler(fd);\n\tprintf(\"attach handler : %d\\n\", r);\n\tif (r == -1)\n\t\tgoto err;\n\n\tloop = g_main_loop_new(NULL, FALSE);\n\tg_main_loop_run(loop);\n err:\n\theynoti_close(fd);\n\tg_main_loop_unref(loop);\n\n\treturn 0;\n}\n\n"}
80,381
c
/* itos.c -- Convert integer to string. */ /* Copyright (C) 1998, Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. Bash 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, or (at your option) any later version. Bash 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 Bash; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ #include <config.h> #if defined (HAVE_UNISTD_H) # include <unistd.h> #endif #include "bashansi.h" #include "shell.h" /* Number of characters that can appear in a string representation of an integer. 32 is larger than the string rep of 2^^31 - 1. */ #define MAX_INT_LEN 32 /* Integer to string conversion. The caller passes the buffer and the size. This should check for buffer underflow, but currently does not. */ char * inttostr (i, buf, len) int i; char *buf; int len; { char *p; int negative = 0; unsigned int ui; if (i < 0) { negative++; i = -i; } ui = (unsigned int) i; p = buf + len - 2; p[1] = '\0'; do *p-- = (ui % 10) + '0'; while (ui /= 10); if (negative) *p-- = '-'; return (p + 1); } /* Integer to string conversion. This conses the string; the caller should free it. */ char * itos (i) int i; { char *p, lbuf[MAX_INT_LEN]; p = inttostr (i, lbuf, sizeof(lbuf)); return (savestring (p)); }
29.53
60
(translation_unit) "/* itos.c -- Convert integer to string. */\n\n/* Copyright (C) 1998, Free Software Foundation, Inc.\n\n This file is part of GNU Bash, the Bourne Again SHell.\n\n Bash is free software; you can redistribute it and/or modify it under\n the terms of the GNU General Public License as published by the Free\n Software Foundation; either version 2, or (at your option) any later\n version.\n\n Bash is distributed in the hope that it will be useful, but WITHOUT ANY\n WARRANTY; without even the implied warranty of MERCHANTABILITY or\n FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n for more details.\n\n You should have received a copy of the GNU General Public License along\n with Bash; see the file COPYING. If not, write to the Free Software\n Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */\n\n#include <config.h>\n\n#if defined (HAVE_UNISTD_H)\n# include <unistd.h>\n#endif\n\n#include "bashansi.h"\n#include "shell.h"\n\n/* Number of characters that can appear in a string representation\n of an integer. 32 is larger than the string rep of 2^^31 - 1. */\n#define MAX_INT_LEN 32\n\n/* Integer to string conversion. The caller passes the buffer and\n the size. This should check for buffer underflow, but currently\n does not. */\nchar *\ninttostr (i, buf, len)\n int i;\n char *buf;\n int len;\n{\n char *p;\n int negative = 0;\n unsigned int ui;\n\n if (i < 0)\n {\n negative++;\n i = -i;\n }\n\n ui = (unsigned int) i;\n\n p = buf + len - 2;\n p[1] = '\0';\n\n do\n *p-- = (ui % 10) + '0';\n while (ui /= 10);\n\n if (negative)\n *p-- = '-';\n\n return (p + 1);\n}\n\n/* Integer to string conversion. This conses the string; the\n caller should free it. */\nchar *\nitos (i)\n int i;\n{\n char *p, lbuf[MAX_INT_LEN];\n\n p = inttostr (i, lbuf, sizeof(lbuf));\n return (savestring (p));\n}\n" (comment) "/* itos.c -- Convert integer to string. */" (comment) "/* Copyright (C) 1998, Free Software Foundation, Inc.\n\n This file is part of GNU Bash, the Bourne Again SHell.\n\n Bash is free software; you can redistribute it and/or modify it under\n the terms of the GNU General Public License as published by the Free\n Software Foundation; either version 2, or (at your option) any later\n version.\n\n Bash is distributed in the hope that it will be useful, but WITHOUT ANY\n WARRANTY; without even the implied warranty of MERCHANTABILITY or\n FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n for more details.\n\n You should have received a copy of the GNU General Public License along\n with Bash; see the file COPYING. If not, write to the Free Software\n Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */" (preproc_include) "#include <config.h>\n" (#include) "#include" (system_lib_string) "<config.h>" (preproc_if) "#if defined (HAVE_UNISTD_H)\n# include <unistd.h>\n#endif" (#if) "#if" (preproc_defined) "defined (HAVE_UNISTD_H)" (defined) "defined" (() "(" (identifier) "HAVE_UNISTD_H" ()) ")" ( ) "\n" (preproc_include) "# include <unistd.h>\n" (#include) "# include" (system_lib_string) "<unistd.h>" (#endif) "#endif" (preproc_include) "#include "bashansi.h"\n" (#include) "#include" (string_literal) ""bashansi.h"" (") """ (string_content) "bashansi.h" (") """ (preproc_include) "#include "shell.h"\n" (#include) "#include" (string_literal) ""shell.h"" (") """ (string_content) "shell.h" (") """ (comment) "/* Number of characters that can appear in a string representation\n of an integer. 32 is larger than the string rep of 2^^31 - 1. */" (preproc_def) "#define MAX_INT_LEN 32\n" (#define) "#define" (identifier) "MAX_INT_LEN" (preproc_arg) "32" (comment) "/* Integer to string conversion. The caller passes the buffer and\n the size. This should check for buffer underflow, but currently\n does not. */" (declaration) "char *\ninttostr (i, buf, len)\n int i;" (primitive_type) "char" (pointer_declarator) "*\ninttostr (i, buf, len)\n int i" (*) "*" (function_declarator) "inttostr (i, buf, len)\n int i" (identifier) "inttostr" (parameter_list) "(i, buf, len)" (() "(" (parameter_declaration) "i" (type_identifier) "i" (,) "," (parameter_declaration) "buf" (type_identifier) "buf" (,) "," (parameter_declaration) "len" (type_identifier) "len" ()) ")" (identifier) "int" (identifier) "i" (;) ";" (declaration) "char *buf;" (primitive_type) "char" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (;) ";" (declaration) "int len;" (primitive_type) "int" (identifier) "len" (;) ";" (compound_statement) "{\n char *p;\n int negative = 0;\n unsigned int ui;\n\n if (i < 0)\n {\n negative++;\n i = -i;\n }\n\n ui = (unsigned int) i;\n\n p = buf + len - 2;\n p[1] = '\0';\n\n do\n *p-- = (ui % 10) + '0';\n while (ui /= 10);\n\n if (negative)\n *p-- = '-';\n\n return (p + 1);\n}" ({) "{" (declaration) "char *p;" (primitive_type) "char" (pointer_declarator) "*p" (*) "*" (identifier) "p" (;) ";" (declaration) "int negative = 0;" (primitive_type) "int" (init_declarator) "negative = 0" (identifier) "negative" (=) "=" (number_literal) "0" (;) ";" (declaration) "unsigned int ui;" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "ui" (;) ";" (if_statement) "if (i < 0)\n {\n negative++;\n i = -i;\n }" (if) "if" (parenthesized_expression) "(i < 0)" (() "(" (binary_expression) "i < 0" (identifier) "i" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n negative++;\n i = -i;\n }" ({) "{" (expression_statement) "negative++;" (update_expression) "negative++" (identifier) "negative" (++) "++" (;) ";" (expression_statement) "i = -i;" (assignment_expression) "i = -i" (identifier) "i" (=) "=" (unary_expression) "-i" (-) "-" (identifier) "i" (;) ";" (}) "}" (expression_statement) "ui = (unsigned int) i;" (assignment_expression) "ui = (unsigned int) i" (identifier) "ui" (=) "=" (cast_expression) "(unsigned int) i" (() "(" (type_descriptor) "unsigned int" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" ()) ")" (identifier) "i" (;) ";" (expression_statement) "p = buf + len - 2;" (assignment_expression) "p = buf + len - 2" (identifier) "p" (=) "=" (binary_expression) "buf + len - 2" (binary_expression) "buf + len" (identifier) "buf" (+) "+" (identifier) "len" (-) "-" (number_literal) "2" (;) ";" (expression_statement) "p[1] = '\0';" (assignment_expression) "p[1] = '\0'" (subscript_expression) "p[1]" (identifier) "p" ([) "[" (number_literal) "1" (]) "]" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (do_statement) "do\n *p-- = (ui % 10) + '0';\n while (ui /= 10);" (do) "do" (expression_statement) "*p-- = (ui % 10) + '0';" (assignment_expression) "*p-- = (ui % 10) + '0'" (pointer_expression) "*p--" (*) "*" (update_expression) "p--" (identifier) "p" (--) "--" (=) "=" (binary_expression) "(ui % 10) + '0'" (parenthesized_expression) "(ui % 10)" (() "(" (binary_expression) "ui % 10" (identifier) "ui" (%) "%" (number_literal) "10" ()) ")" (+) "+" (char_literal) "'0'" (') "'" (character) "0" (') "'" (;) ";" (while) "while" (parenthesized_expression) "(ui /= 10)" (() "(" (assignment_expression) "ui /= 10" (identifier) "ui" (/=) "/=" (number_literal) "10" ()) ")" (;) ";" (if_statement) "if (negative)\n *p-- = '-';" (if) "if" (parenthesized_expression) "(negative)" (() "(" (identifier) "negative" ()) ")" (expression_statement) "*p-- = '-';" (assignment_expression) "*p-- = '-'" (pointer_expression) "*p--" (*) "*" (update_expression) "p--" (identifier) "p" (--) "--" (=) "=" (char_literal) "'-'" (') "'" (character) "-" (') "'" (;) ";" (return_statement) "return (p + 1);" (return) "return" (parenthesized_expression) "(p + 1)" (() "(" (binary_expression) "p + 1" (identifier) "p" (+) "+" (number_literal) "1" ()) ")" (;) ";" (}) "}" (comment) "/* Integer to string conversion. This conses the string; the\n caller should free it. */" (declaration) "char *\nitos (i)\n int i;" (primitive_type) "char" (pointer_declarator) "*\nitos (i)\n int i" (*) "*" (function_declarator) "itos (i)\n int i" (identifier) "itos" (parameter_list) "(i)" (() "(" (parameter_declaration) "i" (type_identifier) "i" ()) ")" (identifier) "int" (identifier) "i" (;) ";" (compound_statement) "{\n char *p, lbuf[MAX_INT_LEN];\n\n p = inttostr (i, lbuf, sizeof(lbuf));\n return (savestring (p));\n}" ({) "{" (declaration) "char *p, lbuf[MAX_INT_LEN];" (primitive_type) "char" (pointer_declarator) "*p" (*) "*" (identifier) "p" (,) "," (array_declarator) "lbuf[MAX_INT_LEN]" (identifier) "lbuf" ([) "[" (identifier) "MAX_INT_LEN" (]) "]" (;) ";" (expression_statement) "p = inttostr (i, lbuf, sizeof(lbuf));" (assignment_expression) "p = inttostr (i, lbuf, sizeof(lbuf))" (identifier) "p" (=) "=" (call_expression) "inttostr (i, lbuf, sizeof(lbuf))" (identifier) "inttostr" (argument_list) "(i, lbuf, sizeof(lbuf))" (() "(" (identifier) "i" (,) "," (identifier) "lbuf" (,) "," (sizeof_expression) "sizeof(lbuf)" (sizeof) "sizeof" (parenthesized_expression) "(lbuf)" (() "(" (identifier) "lbuf" ()) ")" ()) ")" (;) ";" (return_statement) "return (savestring (p));" (return) "return" (parenthesized_expression) "(savestring (p))" (() "(" (call_expression) "savestring (p)" (identifier) "savestring" (argument_list) "(p)" (() "(" (identifier) "p" ()) ")" ()) ")" (;) ";" (}) "}"
275
0
{"language": "c", "success": true, "metadata": {"lines": 60, "avg_line_length": 29.53, "nodes": 185, "errors": 0, "source_hash": "e1d6d943c092bb6916d9ac62cd08b44948995fa78f7515b9455be57c3c4180f9", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <config.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<config.h>", "parent": 0, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 19}}, {"id": 3, "type": "preproc_if", "text": "#if defined (HAVE_UNISTD_H)\n# include <unistd.h>\n#endif", "parent": null, "children": [4, 5, 8, 9, 12], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 4, "type": "#if", "text": "#if", "parent": 3, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 3}}, {"id": 5, "type": "preproc_defined", "text": "defined (HAVE_UNISTD_H)", "parent": 3, "children": [6, 7], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 27}}, {"id": 6, "type": "defined", "text": "defined", "parent": 5, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 11}}, {"id": 7, "type": "identifier", "text": "HAVE_UNISTD_H", "parent": 5, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 26}}, {"id": 8, "type": "\n", "text": "\n", "parent": 3, "children": [], "start_point": {"row": 22, "column": 27}, "end_point": {"row": 23, "column": 0}}, {"id": 9, "type": "preproc_include", "text": "# include <unistd.h>\n", "parent": 3, "children": [10, 11], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 10, "type": "#include", "text": "# include", "parent": 9, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 10}}, {"id": 11, "type": "system_lib_string", "text": "<unistd.h>", "parent": 9, "children": [], "start_point": {"row": 23, "column": 11}, "end_point": {"row": 23, "column": 21}}, {"id": 12, "type": "#endif", "text": "#endif", "parent": 3, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 6}}, {"id": 13, "type": "preproc_include", "text": "#include \"bashansi.h\"\n", "parent": null, "children": [14, 15], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 14, "type": "#include", "text": "#include", "parent": 13, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 8}}, {"id": 15, "type": "string_literal", "text": "\"bashansi.h\"", "parent": 13, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 21}}, {"id": 16, "type": "preproc_include", "text": "#include \"shell.h\"\n", "parent": null, "children": [17, 18], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 0}}, {"id": 17, "type": "#include", "text": "#include", "parent": 16, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 8}}, {"id": 18, "type": "string_literal", "text": "\"shell.h\"", "parent": 16, "children": [], "start_point": {"row": 27, "column": 9}, "end_point": {"row": 27, "column": 18}}, {"id": 19, "type": "preproc_def", "text": "#define MAX_INT_LEN 32\n", "parent": null, "children": [20, 21, 22], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 20, "type": "#define", "text": "#define", "parent": 19, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 21, "type": "identifier", "text": "MAX_INT_LEN", "parent": 19, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 19}}, {"id": 22, "type": "preproc_arg", "text": "32", "parent": 19, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 22}}, {"id": 23, "type": "declaration", "text": "char *\ninttostr (i, buf, len)\n int i;", "parent": null, "children": [24, 25], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 38, "column": 11}}, {"id": 24, "type": "primitive_type", "text": "char", "parent": 23, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 4}}, {"id": 25, "type": "pointer_declarator", "text": "*\ninttostr (i, buf, len)\n int i", "parent": 23, "children": [26, 27], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 38, "column": 10}}, {"id": 26, "type": "*", "text": "*", "parent": 25, "children": [], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 6}}, {"id": 27, "type": "function_declarator", "text": "inttostr (i, buf, len)\n int i", "parent": 25, "children": [28, 29, 36, 37], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 10}}, {"id": 28, "type": "identifier", "text": "inttostr", "parent": 27, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 29, "type": "parameter_list", "text": "(i, buf, len)", "parent": 27, "children": [30, 32, 34], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 22}}, {"id": 30, "type": "parameter_declaration", "text": "i", "parent": 29, "children": [31], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 11}}, {"id": 31, "type": "type_identifier", "text": "i", "parent": 30, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 11}}, {"id": 32, "type": "parameter_declaration", "text": "buf", "parent": 29, "children": [33], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 16}}, {"id": 33, "type": "type_identifier", "text": "buf", "parent": 32, "children": [], "start_point": {"row": 37, "column": 13}, "end_point": {"row": 37, "column": 16}}, {"id": 34, "type": "parameter_declaration", "text": "len", "parent": 29, "children": [35], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 21}}, {"id": 35, "type": "type_identifier", "text": "len", "parent": 34, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 21}}, {"id": 36, "type": "identifier", "text": "int", "parent": 27, "children": [], "start_point": {"row": 38, "column": 5}, "end_point": {"row": 38, "column": 8}}, {"id": 37, "type": "identifier", "text": "i", "parent": 27, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 10}}, {"id": 38, "type": "declaration", "text": "char *buf;", "parent": null, "children": [39, 40], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 15}}, {"id": 39, "type": "primitive_type", "text": "char", "parent": 38, "children": [], "start_point": {"row": 39, "column": 5}, "end_point": {"row": 39, "column": 9}}, {"id": 40, "type": "pointer_declarator", "text": "*buf", "parent": 38, "children": [41, 42], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 14}}, {"id": 41, "type": "*", "text": "*", "parent": 40, "children": [], "start_point": {"row": 39, "column": 10}, "end_point": {"row": 39, "column": 11}}, {"id": 42, "type": "identifier", "text": "buf", "parent": 40, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 14}}, {"id": 43, "type": "declaration", "text": "int len;", "parent": null, "children": [44, 45], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 13}}, {"id": 44, "type": "primitive_type", "text": "int", "parent": 43, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 8}}, {"id": 45, "type": "identifier", "text": "len", "parent": 43, "children": [], "start_point": {"row": 40, "column": 9}, "end_point": {"row": 40, "column": 12}}, {"id": 46, "type": "declaration", "text": "char *p;", "parent": null, "children": [47, 48], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 10}}, {"id": 47, "type": "primitive_type", "text": "char", "parent": 46, "children": [], "start_point": {"row": 42, "column": 2}, "end_point": {"row": 42, "column": 6}}, {"id": 48, "type": "pointer_declarator", "text": "*p", "parent": 46, "children": [49, 50], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 9}}, {"id": 49, "type": "*", "text": "*", "parent": 48, "children": [], "start_point": {"row": 42, "column": 7}, "end_point": {"row": 42, "column": 8}}, {"id": 50, "type": "identifier", "text": "p", "parent": 48, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 9}}, {"id": 51, "type": "declaration", "text": "int negative = 0;", "parent": null, "children": [52, 53], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 19}}, {"id": 52, "type": "primitive_type", "text": "int", "parent": 51, "children": [], "start_point": {"row": 43, "column": 2}, "end_point": {"row": 43, "column": 5}}, {"id": 53, "type": "init_declarator", "text": "negative = 0", "parent": 51, "children": [54, 55, 56], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 18}}, {"id": 54, "type": "identifier", "text": "negative", "parent": 53, "children": [], "start_point": {"row": 43, "column": 6}, "end_point": {"row": 43, "column": 14}}, {"id": 55, "type": "=", "text": "=", "parent": 53, "children": [], "start_point": {"row": 43, "column": 15}, "end_point": {"row": 43, "column": 16}}, {"id": 56, "type": "number_literal", "text": "0", "parent": 53, "children": [], "start_point": {"row": 43, "column": 17}, "end_point": {"row": 43, "column": 18}}, {"id": 57, "type": "declaration", "text": "unsigned int ui;", "parent": null, "children": [58, 61], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 18}}, {"id": 58, "type": "sized_type_specifier", "text": "unsigned int", "parent": 57, "children": [59, 60], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 14}}, {"id": 59, "type": "unsigned", "text": "unsigned", "parent": 58, "children": [], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 10}}, {"id": 60, "type": "primitive_type", "text": "int", "parent": 58, "children": [], "start_point": {"row": 44, "column": 11}, "end_point": {"row": 44, "column": 14}}, {"id": 61, "type": "identifier", "text": "ui", "parent": 57, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 17}}, {"id": 62, "type": "if_statement", "text": "if (i < 0)\n {\n negative++;\n i = -i;\n }", "parent": null, "children": [63], "start_point": {"row": 46, "column": 2}, "end_point": {"row": 50, "column": 5}}, {"id": 63, "type": "parenthesized_expression", "text": "(i < 0)", "parent": 62, "children": [64], "start_point": {"row": 46, "column": 5}, "end_point": {"row": 46, "column": 12}}, {"id": 64, "type": "binary_expression", "text": "i < 0", "parent": 63, "children": [65, 66, 67], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 11}}, {"id": 65, "type": "identifier", "text": "i", "parent": 64, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 7}}, {"id": 66, "type": "<", "text": "<", "parent": 64, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 9}}, {"id": 67, "type": "number_literal", "text": "0", "parent": 64, "children": [], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 11}}, {"id": 68, "type": "update_expression", "text": "negative++", "parent": 62, "children": [69, 70], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 16}}, {"id": 69, "type": "identifier", "text": "negative", "parent": 68, "children": [], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 14}}, {"id": 70, "type": "++", "text": "++", "parent": 68, "children": [], "start_point": {"row": 48, "column": 14}, "end_point": {"row": 48, "column": 16}}, {"id": 71, "type": "assignment_expression", "text": "i = -i", "parent": 62, "children": [72, 73, 74], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 12}}, {"id": 72, "type": "identifier", "text": "i", "parent": 71, "children": [], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 7}}, {"id": 73, "type": "=", "text": "=", "parent": 71, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 9}}, {"id": 74, "type": "unary_expression", "text": "-i", "parent": 71, "children": [75, 76], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 12}}, {"id": 75, "type": "-", "text": "-", "parent": 74, "children": [], "start_point": {"row": 49, "column": 10}, "end_point": {"row": 49, "column": 11}}, {"id": 76, "type": "identifier", "text": "i", "parent": 74, "children": [], "start_point": {"row": 49, "column": 11}, "end_point": {"row": 49, "column": 12}}, {"id": 77, "type": "assignment_expression", "text": "ui = (unsigned int) i", "parent": null, "children": [78, 79, 80], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 23}}, {"id": 78, "type": "identifier", "text": "ui", "parent": 77, "children": [], "start_point": {"row": 52, "column": 2}, "end_point": {"row": 52, "column": 4}}, {"id": 79, "type": "=", "text": "=", "parent": 77, "children": [], "start_point": {"row": 52, "column": 5}, "end_point": {"row": 52, "column": 6}}, {"id": 80, "type": "cast_expression", "text": "(unsigned int) i", "parent": 77, "children": [81, 85], "start_point": {"row": 52, "column": 7}, "end_point": {"row": 52, "column": 23}}, {"id": 81, "type": "type_descriptor", "text": "unsigned int", "parent": 80, "children": [82], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 20}}, {"id": 82, "type": "sized_type_specifier", "text": "unsigned int", "parent": 81, "children": [83, 84], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 20}}, {"id": 83, "type": "unsigned", "text": "unsigned", "parent": 82, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 16}}, {"id": 84, "type": "primitive_type", "text": "int", "parent": 82, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 20}}, {"id": 85, "type": "identifier", "text": "i", "parent": 80, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 23}}, {"id": 86, "type": "assignment_expression", "text": "p = buf + len - 2", "parent": null, "children": [87, 88, 89], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 19}}, {"id": 87, "type": "identifier", "text": "p", "parent": 86, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 3}}, {"id": 88, "type": "=", "text": "=", "parent": 86, "children": [], "start_point": {"row": 54, "column": 4}, "end_point": {"row": 54, "column": 5}}, {"id": 89, "type": "binary_expression", "text": "buf + len - 2", "parent": 86, "children": [90, 94, 95], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 19}}, {"id": 90, "type": "binary_expression", "text": "buf + len", "parent": 89, "children": [91, 92, 93], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 15}}, {"id": 91, "type": "identifier", "text": "buf", "parent": 90, "children": [], "start_point": {"row": 54, "column": 6}, "end_point": {"row": 54, "column": 9}}, {"id": 92, "type": "+", "text": "+", "parent": 90, "children": [], "start_point": {"row": 54, "column": 10}, "end_point": {"row": 54, "column": 11}}, {"id": 93, "type": "identifier", "text": "len", "parent": 90, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 15}}, {"id": 94, "type": "-", "text": "-", "parent": 89, "children": [], "start_point": {"row": 54, "column": 16}, "end_point": {"row": 54, "column": 17}}, {"id": 95, "type": "number_literal", "text": "2", "parent": 89, "children": [], "start_point": {"row": 54, "column": 18}, "end_point": {"row": 54, "column": 19}}, {"id": 96, "type": "assignment_expression", "text": "p[1] = '\\0'", "parent": null, "children": [97, 100, 101], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 13}}, {"id": 97, "type": "subscript_expression", "text": "p[1]", "parent": 96, "children": [98, 99], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 6}}, {"id": 98, "type": "identifier", "text": "p", "parent": 97, "children": [], "start_point": {"row": 55, "column": 2}, "end_point": {"row": 55, "column": 3}}, {"id": 99, "type": "number_literal", "text": "1", "parent": 97, "children": [], "start_point": {"row": 55, "column": 4}, "end_point": {"row": 55, "column": 5}}, {"id": 100, "type": "=", "text": "=", "parent": 96, "children": [], "start_point": {"row": 55, "column": 7}, "end_point": {"row": 55, "column": 8}}, {"id": 101, "type": "char_literal", "text": "'\\0'", "parent": 96, "children": [102, 103, 104], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 13}}, {"id": 102, "type": "'", "text": "'", "parent": 101, "children": [], "start_point": {"row": 55, "column": 9}, "end_point": {"row": 55, "column": 10}}, {"id": 103, "type": "escape_sequence", "text": "\\0", "parent": 101, "children": [], "start_point": {"row": 55, "column": 10}, "end_point": {"row": 55, "column": 12}}, {"id": 104, "type": "'", "text": "'", "parent": 101, "children": [], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 13}}, {"id": 105, "type": "do_statement", "text": "do\n *p-- = (ui % 10) + '0';\n while (ui /= 10);", "parent": null, "children": [124], "start_point": {"row": 57, "column": 2}, "end_point": {"row": 59, "column": 19}}, {"id": 106, "type": "assignment_expression", "text": "*p-- = (ui % 10) + '0'", "parent": 105, "children": [107, 112, 113], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 26}}, {"id": 107, "type": "pointer_expression", "text": "*p--", "parent": 106, "children": [108, 109], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 8}}, {"id": 108, "type": "*", "text": "*", "parent": 107, "children": [], "start_point": {"row": 58, "column": 4}, "end_point": {"row": 58, "column": 5}}, {"id": 109, "type": "update_expression", "text": "p--", "parent": 107, "children": [110, 111], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 8}}, {"id": 110, "type": "identifier", "text": "p", "parent": 109, "children": [], "start_point": {"row": 58, "column": 5}, "end_point": {"row": 58, "column": 6}}, {"id": 111, "type": "--", "text": "--", "parent": 109, "children": [], "start_point": {"row": 58, "column": 6}, "end_point": {"row": 58, "column": 8}}, {"id": 112, "type": "=", "text": "=", "parent": 106, "children": [], "start_point": {"row": 58, "column": 9}, "end_point": {"row": 58, "column": 10}}, {"id": 113, "type": "binary_expression", "text": "(ui % 10) + '0'", "parent": 106, "children": [114, 119, 120], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 26}}, {"id": 114, "type": "parenthesized_expression", "text": "(ui % 10)", "parent": 113, "children": [115], "start_point": {"row": 58, "column": 11}, "end_point": {"row": 58, "column": 20}}, {"id": 115, "type": "binary_expression", "text": "ui % 10", "parent": 114, "children": [116, 117, 118], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 19}}, {"id": 116, "type": "identifier", "text": "ui", "parent": 115, "children": [], "start_point": {"row": 58, "column": 12}, "end_point": {"row": 58, "column": 14}}, {"id": 117, "type": "%", "text": "%", "parent": 115, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 16}}, {"id": 118, "type": "number_literal", "text": "10", "parent": 115, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 19}}, {"id": 119, "type": "+", "text": "+", "parent": 113, "children": [], "start_point": {"row": 58, "column": 21}, "end_point": {"row": 58, "column": 22}}, {"id": 120, "type": "char_literal", "text": "'0'", "parent": 113, "children": [121, 122, 123], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 26}}, {"id": 121, "type": "'", "text": "'", "parent": 120, "children": [], "start_point": {"row": 58, "column": 23}, "end_point": {"row": 58, "column": 24}}, {"id": 122, "type": "character", "text": "0", "parent": 120, "children": [], "start_point": {"row": 58, "column": 24}, "end_point": {"row": 58, "column": 25}}, {"id": 123, "type": "'", "text": "'", "parent": 120, "children": [], "start_point": {"row": 58, "column": 25}, "end_point": {"row": 58, "column": 26}}, {"id": 124, "type": "parenthesized_expression", "text": "(ui /= 10)", "parent": 105, "children": [125], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 18}}, {"id": 125, "type": "assignment_expression", "text": "ui /= 10", "parent": 124, "children": [126, 127, 128], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 17}}, {"id": 126, "type": "identifier", "text": "ui", "parent": 125, "children": [], "start_point": {"row": 59, "column": 9}, "end_point": {"row": 59, "column": 11}}, {"id": 127, "type": "/=", "text": "/=", "parent": 125, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 14}}, {"id": 128, "type": "number_literal", "text": "10", "parent": 125, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 17}}, {"id": 129, "type": "if_statement", "text": "if (negative)\n *p-- = '-';", "parent": null, "children": [130], "start_point": {"row": 61, "column": 2}, "end_point": {"row": 62, "column": 15}}, {"id": 130, "type": "parenthesized_expression", "text": "(negative)", "parent": 129, "children": [131], "start_point": {"row": 61, "column": 5}, "end_point": {"row": 61, "column": 15}}, {"id": 131, "type": "identifier", "text": "negative", "parent": 130, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 14}}, {"id": 132, "type": "assignment_expression", "text": "*p-- = '-'", "parent": 129, "children": [133, 138, 139], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 14}}, {"id": 133, "type": "pointer_expression", "text": "*p--", "parent": 132, "children": [134, 135], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 8}}, {"id": 134, "type": "*", "text": "*", "parent": 133, "children": [], "start_point": {"row": 62, "column": 4}, "end_point": {"row": 62, "column": 5}}, {"id": 135, "type": "update_expression", "text": "p--", "parent": 133, "children": [136, 137], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 8}}, {"id": 136, "type": "identifier", "text": "p", "parent": 135, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 6}}, {"id": 137, "type": "--", "text": "--", "parent": 135, "children": [], "start_point": {"row": 62, "column": 6}, "end_point": {"row": 62, "column": 8}}, {"id": 138, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 10}}, {"id": 139, "type": "char_literal", "text": "'-'", "parent": 132, "children": [140, 141, 142], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 14}}, {"id": 140, "type": "'", "text": "'", "parent": 139, "children": [], "start_point": {"row": 62, "column": 11}, "end_point": {"row": 62, "column": 12}}, {"id": 141, "type": "character", "text": "-", "parent": 139, "children": [], "start_point": {"row": 62, "column": 12}, "end_point": {"row": 62, "column": 13}}, {"id": 142, "type": "'", "text": "'", "parent": 139, "children": [], "start_point": {"row": 62, "column": 13}, "end_point": {"row": 62, "column": 14}}, {"id": 143, "type": "return_statement", "text": "return (p + 1);", "parent": null, "children": [144], "start_point": {"row": 64, "column": 2}, "end_point": {"row": 64, "column": 17}}, {"id": 144, "type": "parenthesized_expression", "text": "(p + 1)", "parent": 143, "children": [145], "start_point": {"row": 64, "column": 9}, "end_point": {"row": 64, "column": 16}}, {"id": 145, "type": "binary_expression", "text": "p + 1", "parent": 144, "children": [146, 147, 148], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 15}}, {"id": 146, "type": "identifier", "text": "p", "parent": 145, "children": [], "start_point": {"row": 64, "column": 10}, "end_point": {"row": 64, "column": 11}}, {"id": 147, "type": "+", "text": "+", "parent": 145, "children": [], "start_point": {"row": 64, "column": 12}, "end_point": {"row": 64, "column": 13}}, {"id": 148, "type": "number_literal", "text": "1", "parent": 145, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 15}}, {"id": 149, "type": "declaration", "text": "char *\nitos (i)\n int i;", "parent": null, "children": [150, 151], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 71, "column": 11}}, {"id": 150, "type": "primitive_type", "text": "char", "parent": 149, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 4}}, {"id": 151, "type": "pointer_declarator", "text": "*\nitos (i)\n int i", "parent": 149, "children": [152, 153], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 71, "column": 10}}, {"id": 152, "type": "*", "text": "*", "parent": 151, "children": [], "start_point": {"row": 69, "column": 5}, "end_point": {"row": 69, "column": 6}}, {"id": 153, "type": "function_declarator", "text": "itos (i)\n int i", "parent": 151, "children": [154, 155, 158, 159], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 10}}, {"id": 154, "type": "identifier", "text": "itos", "parent": 153, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 4}}, {"id": 155, "type": "parameter_list", "text": "(i)", "parent": 153, "children": [156], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 8}}, {"id": 156, "type": "parameter_declaration", "text": "i", "parent": 155, "children": [157], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 7}}, {"id": 157, "type": "type_identifier", "text": "i", "parent": 156, "children": [], "start_point": {"row": 70, "column": 6}, "end_point": {"row": 70, "column": 7}}, {"id": 158, "type": "identifier", "text": "int", "parent": 153, "children": [], "start_point": {"row": 71, "column": 5}, "end_point": {"row": 71, "column": 8}}, {"id": 159, "type": "identifier", "text": "i", "parent": 153, "children": [], "start_point": {"row": 71, "column": 9}, "end_point": {"row": 71, "column": 10}}, {"id": 160, "type": "declaration", "text": "char *p, lbuf[MAX_INT_LEN];", "parent": null, "children": [161, 162, 165], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 29}}, {"id": 161, "type": "primitive_type", "text": "char", "parent": 160, "children": [], "start_point": {"row": 73, "column": 2}, "end_point": {"row": 73, "column": 6}}, {"id": 162, "type": "pointer_declarator", "text": "*p", "parent": 160, "children": [163, 164], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 9}}, {"id": 163, "type": "*", "text": "*", "parent": 162, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 8}}, {"id": 164, "type": "identifier", "text": "p", "parent": 162, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 9}}, {"id": 165, "type": "array_declarator", "text": "lbuf[MAX_INT_LEN]", "parent": 160, "children": [166, 167], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 28}}, {"id": 166, "type": "identifier", "text": "lbuf", "parent": 165, "children": [], "start_point": {"row": 73, "column": 11}, "end_point": {"row": 73, "column": 15}}, {"id": 167, "type": "identifier", "text": "MAX_INT_LEN", "parent": 165, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 27}}, {"id": 168, "type": "assignment_expression", "text": "p = inttostr (i, lbuf, sizeof(lbuf))", "parent": null, "children": [169, 170, 171], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 38}}, {"id": 169, "type": "identifier", "text": "p", "parent": 168, "children": [], "start_point": {"row": 75, "column": 2}, "end_point": {"row": 75, "column": 3}}, {"id": 170, "type": "=", "text": "=", "parent": 168, "children": [], "start_point": {"row": 75, "column": 4}, "end_point": {"row": 75, "column": 5}}, {"id": 171, "type": "call_expression", "text": "inttostr (i, lbuf, sizeof(lbuf))", "parent": 168, "children": [172, 173], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 38}}, {"id": 172, "type": "identifier", "text": "inttostr", "parent": 171, "children": [], "start_point": {"row": 75, "column": 6}, "end_point": {"row": 75, "column": 14}}, {"id": 173, "type": "argument_list", "text": "(i, lbuf, sizeof(lbuf))", "parent": 171, "children": [174, 175, 176], "start_point": {"row": 75, "column": 15}, "end_point": {"row": 75, "column": 38}}, {"id": 174, "type": "identifier", "text": "i", "parent": 173, "children": [], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 17}}, {"id": 175, "type": "identifier", "text": "lbuf", "parent": 173, "children": [], "start_point": {"row": 75, "column": 19}, "end_point": {"row": 75, "column": 23}}, {"id": 176, "type": "sizeof_expression", "text": "sizeof(lbuf)", "parent": 173, "children": [177], "start_point": {"row": 75, "column": 25}, "end_point": {"row": 75, "column": 37}}, {"id": 177, "type": "parenthesized_expression", "text": "(lbuf)", "parent": 176, "children": [178], "start_point": {"row": 75, "column": 31}, "end_point": {"row": 75, "column": 37}}, {"id": 178, "type": "identifier", "text": "lbuf", "parent": 177, "children": [], "start_point": {"row": 75, "column": 32}, "end_point": {"row": 75, "column": 36}}, {"id": 179, "type": "return_statement", "text": "return (savestring (p));", "parent": null, "children": [180], "start_point": {"row": 76, "column": 2}, "end_point": {"row": 76, "column": 26}}, {"id": 180, "type": "parenthesized_expression", "text": "(savestring (p))", "parent": 179, "children": [181], "start_point": {"row": 76, "column": 9}, "end_point": {"row": 76, "column": 25}}, {"id": 181, "type": "call_expression", "text": "savestring (p)", "parent": 180, "children": [182, 183], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 24}}, {"id": 182, "type": "identifier", "text": "savestring", "parent": 181, "children": [], "start_point": {"row": 76, "column": 10}, "end_point": {"row": 76, "column": 20}}, {"id": 183, "type": "argument_list", "text": "(p)", "parent": 181, "children": [184], "start_point": {"row": 76, "column": 21}, "end_point": {"row": 76, "column": 24}}, {"id": 184, "type": "identifier", "text": "p", "parent": 183, "children": [], "start_point": {"row": 76, "column": 22}, "end_point": {"row": 76, "column": 23}}]}, "node_categories": {"declarations": {"functions": [27, 153], "variables": [23, 30, 32, 34, 38, 43, 46, 51, 57, 149, 156, 160], "classes": [], "imports": [0, 1, 9, 10, 13, 14, 16, 17], "modules": [], "enums": []}, "statements": {"expressions": [63, 64, 68, 74, 80, 89, 90, 97, 107, 109, 113, 114, 115, 124, 130, 133, 135, 144, 145, 171, 176, 177, 180, 181], "assignments": [71, 77, 86, 96, 106, 125, 132, 168], "loops": [], "conditionals": [3, 4, 7, 12, 21, 28, 31, 33, 35, 36, 37, 42, 45, 50, 54, 58, 61, 62, 65, 69, 72, 76, 78, 82, 85, 87, 91, 93, 98, 110, 116, 126, 129, 131, 136, 146, 154, 157, 158, 159, 164, 166, 167, 169, 172, 174, 175, 178, 182, 184], "returns": [143, 179], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 11, 15, 18, 56, 67, 95, 99, 101, 118, 120, 128, 139, 148], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 27, "universal_type": "function", "name": "i", "text_snippet": "inttostr (i, buf, len)\n int i"}, {"node_id": 153, "universal_type": "function", "name": "i", "text_snippet": "itos (i)\n int i"}], "class_declarations": [], "import_statements": [{"node_id": 0, "text": "#include <config.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 9, "text": "# include <unistd.h>\n"}, {"node_id": 10, "text": "# include"}, {"node_id": 13, "text": "#include \"bashansi.h\"\n"}, {"node_id": 14, "text": "#include"}, {"node_id": 16, "text": "#include \"shell.h\"\n"}, {"node_id": 17, "text": "#include"}]}, "original_source_code": "/* itos.c -- Convert integer to string. */\n\n/* Copyright (C) 1998, Free Software Foundation, Inc.\n\n This file is part of GNU Bash, the Bourne Again SHell.\n\n Bash is free software; you can redistribute it and/or modify it under\n the terms of the GNU General Public License as published by the Free\n Software Foundation; either version 2, or (at your option) any later\n version.\n\n Bash is distributed in the hope that it will be useful, but WITHOUT ANY\n WARRANTY; without even the implied warranty of MERCHANTABILITY or\n FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License\n for more details.\n\n You should have received a copy of the GNU General Public License along\n with Bash; see the file COPYING. If not, write to the Free Software\n Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */\n\n#include <config.h>\n\n#if defined (HAVE_UNISTD_H)\n# include <unistd.h>\n#endif\n\n#include \"bashansi.h\"\n#include \"shell.h\"\n\n/* Number of characters that can appear in a string representation\n of an integer. 32 is larger than the string rep of 2^^31 - 1. */\n#define MAX_INT_LEN 32\n\n/* Integer to string conversion. The caller passes the buffer and\n the size. This should check for buffer underflow, but currently\n does not. */\nchar *\ninttostr (i, buf, len)\n int i;\n char *buf;\n int len;\n{\n char *p;\n int negative = 0;\n unsigned int ui;\n\n if (i < 0)\n {\n negative++;\n i = -i;\n }\n\n ui = (unsigned int) i;\n\n p = buf + len - 2;\n p[1] = '\\0';\n\n do\n *p-- = (ui % 10) + '0';\n while (ui /= 10);\n\n if (negative)\n *p-- = '-';\n\n return (p + 1);\n}\n\n/* Integer to string conversion. This conses the string; the\n caller should free it. */\nchar *\nitos (i)\n int i;\n{\n char *p, lbuf[MAX_INT_LEN];\n\n p = inttostr (i, lbuf, sizeof(lbuf));\n return (savestring (p));\n}\n"}
80,382
c
/* * Copyright (c) 2011 Atheros Communications Inc. * Copyright (c) 2011-2012 Qualcomm Atheros, Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef DEBUG_H #define DEBUG_H #include "hif.h" enum ATH6K_DEBUG_MASK { ATH6KL_DBG_CREDIT = BIT(0), /* hole */ ATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */ ATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */ ATH6KL_DBG_BMI = BIT(4), /* bmi tracing */ ATH6KL_DBG_HTC = BIT(5), ATH6KL_DBG_HIF = BIT(6), ATH6KL_DBG_IRQ = BIT(7), /* interrupt processing */ /* hole */ /* hole */ ATH6KL_DBG_WMI = BIT(10), /* wmi tracing */ ATH6KL_DBG_TRC = BIT(11), /* generic func tracing */ ATH6KL_DBG_SCATTER = BIT(12), /* hif scatter tracing */ ATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */ ATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */ ATH6KL_DBG_AGGR = BIT(15), /* aggregation */ ATH6KL_DBG_SDIO = BIT(16), ATH6KL_DBG_SDIO_DUMP = BIT(17), ATH6KL_DBG_BOOT = BIT(18), /* driver init and fw boot */ ATH6KL_DBG_WMI_DUMP = BIT(19), ATH6KL_DBG_SUSPEND = BIT(20), ATH6KL_DBG_USB = BIT(21), ATH6KL_DBG_RECOVERY = BIT(22), ATH6KL_DBG_ANY = 0xffffffff /* enable all logs */ }; extern unsigned int debug_mask; extern __printf(2, 3) int ath6kl_printk(const char *level, const char *fmt, ...); #define ath6kl_info(fmt, ...) \ ath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__) #define ath6kl_err(fmt, ...) \ ath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__) #define ath6kl_warn(fmt, ...) \ ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__) #define AR_DBG_LVL_CHECK(mask) (debug_mask & mask) enum ath6kl_war { ATH6KL_WAR_INVALID_RATE, }; #ifdef CONFIG_ATH6KL_DEBUG #define ath6kl_dbg(mask, fmt, ...) \ ({ \ int rtn; \ if (debug_mask & mask) \ rtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__); \ else \ rtn = 0; \ \ rtn; \ }) static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask, const char *msg, const char *prefix, const void *buf, size_t len) { if (debug_mask & mask) { if (msg) ath6kl_dbg(mask, "%s\n", msg); print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len); } } void ath6kl_dump_registers(struct ath6kl_device *dev, struct ath6kl_irq_proc_registers *irq_proc_reg, struct ath6kl_irq_enable_reg *irq_en_reg); void dump_cred_dist_stats(struct htc_target *target); void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len); void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war); int ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf, size_t len); void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive); void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout); int ath6kl_debug_init(struct ath6kl *ar); void ath6kl_debug_cleanup(struct ath6kl *ar); #else static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask, const char *fmt, ...) { return 0; } static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask, const char *msg, const char *prefix, const void *buf, size_t len) { } static inline void ath6kl_dump_registers(struct ath6kl_device *dev, struct ath6kl_irq_proc_registers *irq_proc_reg, struct ath6kl_irq_enable_reg *irq_en_reg) { } static inline void dump_cred_dist_stats(struct htc_target *target) { } static inline void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len) { } static inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war) { } static inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf, size_t len) { return 0; } static inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive) { } static inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout) { } static inline int ath6kl_debug_init(struct ath6kl *ar) { return 0; } static inline void ath6kl_debug_cleanup(struct ath6kl *ar) { } #endif #endif
35.13
131
(translation_unit) "/*\n * Copyright (c) 2011 Atheros Communications Inc.\n * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\n#ifndef DEBUG_H\n#define DEBUG_H\n\n#include "hif.h"\n\nenum ATH6K_DEBUG_MASK {\n ATH6KL_DBG_CREDIT = BIT(0),\n /* hole */\n ATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */\n ATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */\n ATH6KL_DBG_BMI = BIT(4), /* bmi tracing */\n ATH6KL_DBG_HTC = BIT(5),\n ATH6KL_DBG_HIF = BIT(6),\n ATH6KL_DBG_IRQ = BIT(7), /* interrupt processing */\n /* hole */\n /* hole */\n ATH6KL_DBG_WMI = BIT(10), /* wmi tracing */\n ATH6KL_DBG_TRC = BIT(11), /* generic func tracing */\n ATH6KL_DBG_SCATTER = BIT(12), /* hif scatter tracing */\n ATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */\n ATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */\n ATH6KL_DBG_AGGR = BIT(15), /* aggregation */\n ATH6KL_DBG_SDIO = BIT(16),\n ATH6KL_DBG_SDIO_DUMP = BIT(17),\n ATH6KL_DBG_BOOT = BIT(18), /* driver init and fw boot */\n ATH6KL_DBG_WMI_DUMP = BIT(19),\n ATH6KL_DBG_SUSPEND = BIT(20),\n ATH6KL_DBG_USB = BIT(21),\n ATH6KL_DBG_RECOVERY = BIT(22),\n ATH6KL_DBG_ANY = 0xffffffff /* enable all logs */\n};\n\nextern unsigned int debug_mask;\nextern __printf(2, 3)\nint ath6kl_printk(const char *level, const char *fmt, ...);\n\n#define ath6kl_info(fmt, ...) \\n ath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)\n#define ath6kl_err(fmt, ...) \\n ath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)\n#define ath6kl_warn(fmt, ...) \\n ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)\n\n#define AR_DBG_LVL_CHECK(mask) (debug_mask & mask)\n\nenum ath6kl_war {\n ATH6KL_WAR_INVALID_RATE,\n};\n\n#ifdef CONFIG_ATH6KL_DEBUG\n#define ath6kl_dbg(mask, fmt, ...) \\n ({ \\n int rtn; \\n if (debug_mask & mask) \\n rtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__); \\n else \\n rtn = 0; \\n \\n rtn; \\n })\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n if (debug_mask & mask) {\n if (msg)\n ath6kl_dbg(mask, "%s\n", msg);\n\n print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n }\n}\n\nvoid ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg);\nvoid dump_cred_dist_stats(struct htc_target *target);\nvoid ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);\nvoid ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);\nint ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n size_t len);\nvoid ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive);\nvoid ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout);\nint ath6kl_debug_init(struct ath6kl *ar);\nvoid ath6kl_debug_cleanup(struct ath6kl *ar);\n\n#else\nstatic inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n const char *fmt, ...)\n{\n return 0;\n}\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}\nstatic inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}\n\nstatic inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}\n\nstatic inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n return 0;\n}\n\nstatic inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}\n\nstatic inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n u8 timeout)\n{\n}\n\nstatic inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n return 0;\n}\n\nstatic inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}\n\n#endif\n#endif\n" (comment) "/*\n * Copyright (c) 2011 Atheros Communications Inc.\n * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */" (preproc_ifdef) "#ifndef DEBUG_H\n#define DEBUG_H\n\n#include "hif.h"\n\nenum ATH6K_DEBUG_MASK {\n ATH6KL_DBG_CREDIT = BIT(0),\n /* hole */\n ATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */\n ATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */\n ATH6KL_DBG_BMI = BIT(4), /* bmi tracing */\n ATH6KL_DBG_HTC = BIT(5),\n ATH6KL_DBG_HIF = BIT(6),\n ATH6KL_DBG_IRQ = BIT(7), /* interrupt processing */\n /* hole */\n /* hole */\n ATH6KL_DBG_WMI = BIT(10), /* wmi tracing */\n ATH6KL_DBG_TRC = BIT(11), /* generic func tracing */\n ATH6KL_DBG_SCATTER = BIT(12), /* hif scatter tracing */\n ATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */\n ATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */\n ATH6KL_DBG_AGGR = BIT(15), /* aggregation */\n ATH6KL_DBG_SDIO = BIT(16),\n ATH6KL_DBG_SDIO_DUMP = BIT(17),\n ATH6KL_DBG_BOOT = BIT(18), /* driver init and fw boot */\n ATH6KL_DBG_WMI_DUMP = BIT(19),\n ATH6KL_DBG_SUSPEND = BIT(20),\n ATH6KL_DBG_USB = BIT(21),\n ATH6KL_DBG_RECOVERY = BIT(22),\n ATH6KL_DBG_ANY = 0xffffffff /* enable all logs */\n};\n\nextern unsigned int debug_mask;\nextern __printf(2, 3)\nint ath6kl_printk(const char *level, const char *fmt, ...);\n\n#define ath6kl_info(fmt, ...) \\n ath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)\n#define ath6kl_err(fmt, ...) \\n ath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)\n#define ath6kl_warn(fmt, ...) \\n ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)\n\n#define AR_DBG_LVL_CHECK(mask) (debug_mask & mask)\n\nenum ath6kl_war {\n ATH6KL_WAR_INVALID_RATE,\n};\n\n#ifdef CONFIG_ATH6KL_DEBUG\n#define ath6kl_dbg(mask, fmt, ...) \\n ({ \\n int rtn; \\n if (debug_mask & mask) \\n rtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__); \\n else \\n rtn = 0; \\n \\n rtn; \\n })\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n if (debug_mask & mask) {\n if (msg)\n ath6kl_dbg(mask, "%s\n", msg);\n\n print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n }\n}\n\nvoid ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg);\nvoid dump_cred_dist_stats(struct htc_target *target);\nvoid ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);\nvoid ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);\nint ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n size_t len);\nvoid ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive);\nvoid ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout);\nint ath6kl_debug_init(struct ath6kl *ar);\nvoid ath6kl_debug_cleanup(struct ath6kl *ar);\n\n#else\nstatic inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n const char *fmt, ...)\n{\n return 0;\n}\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}\nstatic inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}\n\nstatic inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}\n\nstatic inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n return 0;\n}\n\nstatic inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}\n\nstatic inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n u8 timeout)\n{\n}\n\nstatic inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n return 0;\n}\n\nstatic inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}\n\n#endif\n#endif" (#ifndef) "#ifndef" (identifier) "DEBUG_H" (preproc_def) "#define DEBUG_H\n" (#define) "#define" (identifier) "DEBUG_H" (preproc_include) "#include "hif.h"\n" (#include) "#include" (string_literal) ""hif.h"" (") """ (string_content) "hif.h" (") """ (enum_specifier) "enum ATH6K_DEBUG_MASK {\n ATH6KL_DBG_CREDIT = BIT(0),\n /* hole */\n ATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */\n ATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */\n ATH6KL_DBG_BMI = BIT(4), /* bmi tracing */\n ATH6KL_DBG_HTC = BIT(5),\n ATH6KL_DBG_HIF = BIT(6),\n ATH6KL_DBG_IRQ = BIT(7), /* interrupt processing */\n /* hole */\n /* hole */\n ATH6KL_DBG_WMI = BIT(10), /* wmi tracing */\n ATH6KL_DBG_TRC = BIT(11), /* generic func tracing */\n ATH6KL_DBG_SCATTER = BIT(12), /* hif scatter tracing */\n ATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */\n ATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */\n ATH6KL_DBG_AGGR = BIT(15), /* aggregation */\n ATH6KL_DBG_SDIO = BIT(16),\n ATH6KL_DBG_SDIO_DUMP = BIT(17),\n ATH6KL_DBG_BOOT = BIT(18), /* driver init and fw boot */\n ATH6KL_DBG_WMI_DUMP = BIT(19),\n ATH6KL_DBG_SUSPEND = BIT(20),\n ATH6KL_DBG_USB = BIT(21),\n ATH6KL_DBG_RECOVERY = BIT(22),\n ATH6KL_DBG_ANY = 0xffffffff /* enable all logs */\n}" (enum) "enum" (type_identifier) "ATH6K_DEBUG_MASK" (enumerator_list) "{\n ATH6KL_DBG_CREDIT = BIT(0),\n /* hole */\n ATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */\n ATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */\n ATH6KL_DBG_BMI = BIT(4), /* bmi tracing */\n ATH6KL_DBG_HTC = BIT(5),\n ATH6KL_DBG_HIF = BIT(6),\n ATH6KL_DBG_IRQ = BIT(7), /* interrupt processing */\n /* hole */\n /* hole */\n ATH6KL_DBG_WMI = BIT(10), /* wmi tracing */\n ATH6KL_DBG_TRC = BIT(11), /* generic func tracing */\n ATH6KL_DBG_SCATTER = BIT(12), /* hif scatter tracing */\n ATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */\n ATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */\n ATH6KL_DBG_AGGR = BIT(15), /* aggregation */\n ATH6KL_DBG_SDIO = BIT(16),\n ATH6KL_DBG_SDIO_DUMP = BIT(17),\n ATH6KL_DBG_BOOT = BIT(18), /* driver init and fw boot */\n ATH6KL_DBG_WMI_DUMP = BIT(19),\n ATH6KL_DBG_SUSPEND = BIT(20),\n ATH6KL_DBG_USB = BIT(21),\n ATH6KL_DBG_RECOVERY = BIT(22),\n ATH6KL_DBG_ANY = 0xffffffff /* enable all logs */\n}" ({) "{" (enumerator) "ATH6KL_DBG_CREDIT = BIT(0)" (identifier) "ATH6KL_DBG_CREDIT" (=) "=" (call_expression) "BIT(0)" (identifier) "BIT" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (,) "," (comment) "/* hole */" (enumerator) "ATH6KL_DBG_WLAN_TX = BIT(2)" (identifier) "ATH6KL_DBG_WLAN_TX" (=) "=" (call_expression) "BIT(2)" (identifier) "BIT" (argument_list) "(2)" (() "(" (number_literal) "2" ()) ")" (,) "," (comment) "/* wlan tx */" (enumerator) "ATH6KL_DBG_WLAN_RX = BIT(3)" (identifier) "ATH6KL_DBG_WLAN_RX" (=) "=" (call_expression) "BIT(3)" (identifier) "BIT" (argument_list) "(3)" (() "(" (number_literal) "3" ()) ")" (,) "," (comment) "/* wlan rx */" (enumerator) "ATH6KL_DBG_BMI = BIT(4)" (identifier) "ATH6KL_DBG_BMI" (=) "=" (call_expression) "BIT(4)" (identifier) "BIT" (argument_list) "(4)" (() "(" (number_literal) "4" ()) ")" (,) "," (comment) "/* bmi tracing */" (enumerator) "ATH6KL_DBG_HTC = BIT(5)" (identifier) "ATH6KL_DBG_HTC" (=) "=" (call_expression) "BIT(5)" (identifier) "BIT" (argument_list) "(5)" (() "(" (number_literal) "5" ()) ")" (,) "," (enumerator) "ATH6KL_DBG_HIF = BIT(6)" (identifier) "ATH6KL_DBG_HIF" (=) "=" (call_expression) "BIT(6)" (identifier) "BIT" (argument_list) "(6)" (() "(" (number_literal) "6" ()) ")" (,) "," (enumerator) "ATH6KL_DBG_IRQ = BIT(7)" (identifier) "ATH6KL_DBG_IRQ" (=) "=" (call_expression) "BIT(7)" (identifier) "BIT" (argument_list) "(7)" (() "(" (number_literal) "7" ()) ")" (,) "," (comment) "/* interrupt processing */" (comment) "/* hole */" (comment) "/* hole */" (enumerator) "ATH6KL_DBG_WMI = BIT(10)" (identifier) "ATH6KL_DBG_WMI" (=) "=" (call_expression) "BIT(10)" (identifier) "BIT" (argument_list) "(10)" (() "(" (number_literal) "10" ()) ")" (,) "," (comment) "/* wmi tracing */" (enumerator) "ATH6KL_DBG_TRC = BIT(11)" (identifier) "ATH6KL_DBG_TRC" (=) "=" (call_expression) "BIT(11)" (identifier) "BIT" (argument_list) "(11)" (() "(" (number_literal) "11" ()) ")" (,) "," (comment) "/* generic func tracing */" (enumerator) "ATH6KL_DBG_SCATTER = BIT(12)" (identifier) "ATH6KL_DBG_SCATTER" (=) "=" (call_expression) "BIT(12)" (identifier) "BIT" (argument_list) "(12)" (() "(" (number_literal) "12" ()) ")" (,) "," (comment) "/* hif scatter tracing */" (enumerator) "ATH6KL_DBG_WLAN_CFG = BIT(13)" (identifier) "ATH6KL_DBG_WLAN_CFG" (=) "=" (call_expression) "BIT(13)" (identifier) "BIT" (argument_list) "(13)" (() "(" (number_literal) "13" ()) ")" (,) "," (comment) "/* cfg80211 i/f file tracing */" (enumerator) "ATH6KL_DBG_RAW_BYTES = BIT(14)" (identifier) "ATH6KL_DBG_RAW_BYTES" (=) "=" (call_expression) "BIT(14)" (identifier) "BIT" (argument_list) "(14)" (() "(" (number_literal) "14" ()) ")" (,) "," (comment) "/* dump tx/rx frames */" (enumerator) "ATH6KL_DBG_AGGR = BIT(15)" (identifier) "ATH6KL_DBG_AGGR" (=) "=" (call_expression) "BIT(15)" (identifier) "BIT" (argument_list) "(15)" (() "(" (number_literal) "15" ()) ")" (,) "," (comment) "/* aggregation */" (enumerator) "ATH6KL_DBG_SDIO = BIT(16)" (identifier) "ATH6KL_DBG_SDIO" (=) "=" (call_expression) "BIT(16)" (identifier) "BIT" (argument_list) "(16)" (() "(" (number_literal) "16" ()) ")" (,) "," (enumerator) "ATH6KL_DBG_SDIO_DUMP = BIT(17)" (identifier) "ATH6KL_DBG_SDIO_DUMP" (=) "=" (call_expression) "BIT(17)" (identifier) "BIT" (argument_list) "(17)" (() "(" (number_literal) "17" ()) ")" (,) "," (enumerator) "ATH6KL_DBG_BOOT = BIT(18)" (identifier) "ATH6KL_DBG_BOOT" (=) "=" (call_expression) "BIT(18)" (identifier) "BIT" (argument_list) "(18)" (() "(" (number_literal) "18" ()) ")" (,) "," (comment) "/* driver init and fw boot */" (enumerator) "ATH6KL_DBG_WMI_DUMP = BIT(19)" (identifier) "ATH6KL_DBG_WMI_DUMP" (=) "=" (call_expression) "BIT(19)" (identifier) "BIT" (argument_list) "(19)" (() "(" (number_literal) "19" ()) ")" (,) "," (enumerator) "ATH6KL_DBG_SUSPEND = BIT(20)" (identifier) "ATH6KL_DBG_SUSPEND" (=) "=" (call_expression) "BIT(20)" (identifier) "BIT" (argument_list) "(20)" (() "(" (number_literal) "20" ()) ")" (,) "," (enumerator) "ATH6KL_DBG_USB = BIT(21)" (identifier) "ATH6KL_DBG_USB" (=) "=" (call_expression) "BIT(21)" (identifier) "BIT" (argument_list) "(21)" (() "(" (number_literal) "21" ()) ")" (,) "," (enumerator) "ATH6KL_DBG_RECOVERY = BIT(22)" (identifier) "ATH6KL_DBG_RECOVERY" (=) "=" (call_expression) "BIT(22)" (identifier) "BIT" (argument_list) "(22)" (() "(" (number_literal) "22" ()) ")" (,) "," (enumerator) "ATH6KL_DBG_ANY = 0xffffffff" (identifier) "ATH6KL_DBG_ANY" (=) "=" (number_literal) "0xffffffff" (comment) "/* enable all logs */" (}) "}" (;) ";" (declaration) "extern unsigned int debug_mask;" (storage_class_specifier) "extern" (extern) "extern" (sized_type_specifier) "unsigned int" (unsigned) "unsigned" (primitive_type) "int" (identifier) "debug_mask" (;) ";" (ERROR) "extern __printf(2, 3)\nint ath6kl_printk(const char *level, const char *fmt, ...);\n\n#define ath6kl_info(fmt, ...) \\n ath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)\n#define ath6kl_err(fmt, ...) \\n ath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)\n#define ath6kl_warn(fmt, ...) \\n ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)\n\n#define AR_DBG_LVL_CHECK(mask) (debug_mask & mask)\n\nenum ath6kl_war {\n ATH6KL_WAR_INVALID_RATE,\n};" (storage_class_specifier) "extern" (extern) "extern" (identifier) "__printf" (() "(" (ERROR) "2, 3)\nint ath6kl_printk(const char *level, const char *fmt, ...);\n\n#define ath6kl_info(fmt, ...) \\n ath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)\n#define ath6kl_err(fmt, ...) \\n ath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)\n#define ath6kl_warn(fmt, ...) \\n ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)\n\n#define AR_DBG_LVL_CHECK(mask) (debug_mask & mask)" (number_literal) "2" (,) "," (number_literal) "3" ()) ")" (primitive_type) "int" (type_descriptor) "ath6kl_printk(const char *level, const char *fmt, ...)" (type_identifier) "ath6kl_printk" (abstract_function_declarator) "(const char *level, const char *fmt, ...)" (parameter_list) "(const char *level, const char *fmt, ...)" (() "(" (parameter_declaration) "const char *level" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*level" (*) "*" (identifier) "level" (,) "," (parameter_declaration) "const char *fmt" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*fmt" (*) "*" (identifier) "fmt" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (;) ";" (#define) "#define" (type_descriptor) "ath6kl_info(fmt, ...)" (type_identifier) "ath6kl_info" (abstract_function_declarator) "(fmt, ...)" (parameter_list) "(fmt, ...)" (() "(" (parameter_declaration) "fmt" (type_identifier) "fmt" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (type_descriptor) "ath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)" (type_identifier) "ath6kl_printk" (abstract_function_declarator) "(KERN_INFO, fmt, ##__VA_ARGS__)" (parameter_list) "(KERN_INFO, fmt, ##__VA_ARGS__)" (() "(" (parameter_declaration) "KERN_INFO" (type_identifier) "KERN_INFO" (,) "," (parameter_declaration) "fmt" (type_identifier) "fmt" (,) "," (ERROR) "##" (ERROR) "##" (parameter_declaration) "__VA_ARGS__" (type_identifier) "__VA_ARGS__" ()) ")" (#define) "#define" (type_descriptor) "ath6kl_err(fmt, ...)" (type_identifier) "ath6kl_err" (abstract_function_declarator) "(fmt, ...)" (parameter_list) "(fmt, ...)" (() "(" (parameter_declaration) "fmt" (type_identifier) "fmt" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (type_descriptor) "ath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)" (type_identifier) "ath6kl_printk" (abstract_function_declarator) "(KERN_ERR, fmt, ##__VA_ARGS__)" (parameter_list) "(KERN_ERR, fmt, ##__VA_ARGS__)" (() "(" (parameter_declaration) "KERN_ERR" (type_identifier) "KERN_ERR" (,) "," (parameter_declaration) "fmt" (type_identifier) "fmt" (,) "," (ERROR) "##" (ERROR) "##" (parameter_declaration) "__VA_ARGS__" (type_identifier) "__VA_ARGS__" ()) ")" (#define) "#define" (type_descriptor) "ath6kl_warn(fmt, ...)" (type_identifier) "ath6kl_warn" (abstract_function_declarator) "(fmt, ...)" (parameter_list) "(fmt, ...)" (() "(" (parameter_declaration) "fmt" (type_identifier) "fmt" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (type_descriptor) "ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)" (type_identifier) "ath6kl_printk" (abstract_function_declarator) "(KERN_WARNING, fmt, ##__VA_ARGS__)" (parameter_list) "(KERN_WARNING, fmt, ##__VA_ARGS__)" (() "(" (parameter_declaration) "KERN_WARNING" (type_identifier) "KERN_WARNING" (,) "," (parameter_declaration) "fmt" (type_identifier) "fmt" (,) "," (ERROR) "##" (ERROR) "##" (parameter_declaration) "__VA_ARGS__" (type_identifier) "__VA_ARGS__" ()) ")" (#define) "#define" (type_descriptor) "AR_DBG_LVL_CHECK(mask) (debug_mask & mask)" (type_identifier) "AR_DBG_LVL_CHECK" (abstract_function_declarator) "(mask) (debug_mask & mask)" (abstract_function_declarator) "(mask)" (parameter_list) "(mask)" (() "(" (parameter_declaration) "mask" (type_identifier) "mask" ()) ")" (parameter_list) "(debug_mask & mask)" (() "(" (parameter_declaration) "debug_mask & mask" (type_identifier) "debug_mask" (ERROR) "&" (&) "&" (identifier) "mask" ()) ")" (enum_specifier) "enum ath6kl_war {\n ATH6KL_WAR_INVALID_RATE,\n}" (enum) "enum" (type_identifier) "ath6kl_war" (enumerator_list) "{\n ATH6KL_WAR_INVALID_RATE,\n}" ({) "{" (enumerator) "ATH6KL_WAR_INVALID_RATE" (identifier) "ATH6KL_WAR_INVALID_RATE" (,) "," (}) "}" (;) ";" (preproc_ifdef) "#ifdef CONFIG_ATH6KL_DEBUG\n#define ath6kl_dbg(mask, fmt, ...) \\n ({ \\n int rtn; \\n if (debug_mask & mask) \\n rtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__); \\n else \\n rtn = 0; \\n \\n rtn; \\n })\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n if (debug_mask & mask) {\n if (msg)\n ath6kl_dbg(mask, "%s\n", msg);\n\n print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n }\n}\n\nvoid ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg);\nvoid dump_cred_dist_stats(struct htc_target *target);\nvoid ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);\nvoid ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);\nint ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n size_t len);\nvoid ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive);\nvoid ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout);\nint ath6kl_debug_init(struct ath6kl *ar);\nvoid ath6kl_debug_cleanup(struct ath6kl *ar);\n\n#else\nstatic inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n const char *fmt, ...)\n{\n return 0;\n}\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}\nstatic inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}\n\nstatic inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}\n\nstatic inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n return 0;\n}\n\nstatic inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}\n\nstatic inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n u8 timeout)\n{\n}\n\nstatic inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n return 0;\n}\n\nstatic inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}\n\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_ATH6KL_DEBUG" (preproc_function_def) "#define ath6kl_dbg(mask, fmt, ...) \\n ({ \\n int rtn; \\n if (debug_mask & mask) \\n rtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__); \\n else \\n rtn = 0; \\n \\n rtn; \\n })\n" (#define) "#define" (identifier) "ath6kl_dbg" (preproc_params) "(mask, fmt, ...)" (() "(" (identifier) "mask" (,) "," (identifier) "fmt" (,) "," (...) "..." ()) ")" (preproc_arg) "({ \\n int rtn; \\n if (debug_mask & mask) \\n rtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__); \\n else \\n rtn = 0; \\n \\n rtn; \\n })" (function_definition) "static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n if (debug_mask & mask) {\n if (msg)\n ath6kl_dbg(mask, "%s\n", msg);\n\n print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n }\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)" (identifier) "ath6kl_dbg_dump" (parameter_list) "(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)" (() "(" (parameter_declaration) "enum ATH6K_DEBUG_MASK mask" (enum_specifier) "enum ATH6K_DEBUG_MASK" (enum) "enum" (type_identifier) "ATH6K_DEBUG_MASK" (identifier) "mask" (,) "," (parameter_declaration) "const char *msg" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" (,) "," (parameter_declaration) "const char *prefix" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*prefix" (*) "*" (identifier) "prefix" (,) "," (parameter_declaration) "const void *buf" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (compound_statement) "{\n if (debug_mask & mask) {\n if (msg)\n ath6kl_dbg(mask, "%s\n", msg);\n\n print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n }\n}" ({) "{" (if_statement) "if (debug_mask & mask) {\n if (msg)\n ath6kl_dbg(mask, "%s\n", msg);\n\n print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n }" (if) "if" (parenthesized_expression) "(debug_mask & mask)" (() "(" (binary_expression) "debug_mask & mask" (identifier) "debug_mask" (&) "&" (identifier) "mask" ()) ")" (compound_statement) "{\n if (msg)\n ath6kl_dbg(mask, "%s\n", msg);\n\n print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n }" ({) "{" (if_statement) "if (msg)\n ath6kl_dbg(mask, "%s\n", msg);" (if) "if" (parenthesized_expression) "(msg)" (() "(" (identifier) "msg" ()) ")" (expression_statement) "ath6kl_dbg(mask, "%s\n", msg);" (call_expression) "ath6kl_dbg(mask, "%s\n", msg)" (identifier) "ath6kl_dbg" (argument_list) "(mask, "%s\n", msg)" (() "(" (identifier) "mask" (,) "," (string_literal) ""%s\n"" (") """ (string_content) "%s" (escape_sequence) "\n" (") """ (,) "," (identifier) "msg" ()) ")" (;) ";" (expression_statement) "print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);" (call_expression) "print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len)" (identifier) "print_hex_dump_bytes" (argument_list) "(prefix, DUMP_PREFIX_OFFSET, buf, len)" (() "(" (identifier) "prefix" (,) "," (identifier) "DUMP_PREFIX_OFFSET" (,) "," (identifier) "buf" (,) "," (identifier) "len" ()) ")" (;) ";" (}) "}" (}) "}" (declaration) "void ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg);" (primitive_type) "void" (function_declarator) "ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)" (identifier) "ath6kl_dump_registers" (parameter_list) "(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)" (() "(" (parameter_declaration) "struct ath6kl_device *dev" (struct_specifier) "struct ath6kl_device" (struct) "struct" (type_identifier) "ath6kl_device" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "struct ath6kl_irq_proc_registers *irq_proc_reg" (struct_specifier) "struct ath6kl_irq_proc_registers" (struct) "struct" (type_identifier) "ath6kl_irq_proc_registers" (pointer_declarator) "*irq_proc_reg" (*) "*" (identifier) "irq_proc_reg" (,) "," (parameter_declaration) "struct ath6kl_irq_enable_reg *irq_en_reg" (struct_specifier) "struct ath6kl_irq_enable_reg" (struct) "struct" (type_identifier) "ath6kl_irq_enable_reg" (pointer_declarator) "*irq_en_reg" (*) "*" (identifier) "irq_en_reg" ()) ")" (;) ";" (declaration) "void dump_cred_dist_stats(struct htc_target *target);" (primitive_type) "void" (function_declarator) "dump_cred_dist_stats(struct htc_target *target)" (identifier) "dump_cred_dist_stats" (parameter_list) "(struct htc_target *target)" (() "(" (parameter_declaration) "struct htc_target *target" (struct_specifier) "struct htc_target" (struct) "struct" (type_identifier) "htc_target" (pointer_declarator) "*target" (*) "*" (identifier) "target" ()) ")" (;) ";" (declaration) "void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);" (primitive_type) "void" (function_declarator) "ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len)" (identifier) "ath6kl_debug_fwlog_event" (parameter_list) "(struct ath6kl *ar, const void *buf, size_t len)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "const void *buf" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (;) ";" (declaration) "void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);" (primitive_type) "void" (function_declarator) "ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)" (identifier) "ath6kl_debug_war" (parameter_list) "(struct ath6kl *ar, enum ath6kl_war war)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "enum ath6kl_war war" (enum_specifier) "enum ath6kl_war" (enum) "enum" (type_identifier) "ath6kl_war" (identifier) "war" ()) ")" (;) ";" (declaration) "int ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n size_t len);" (primitive_type) "int" (function_declarator) "ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n size_t len)" (identifier) "ath6kl_debug_roam_tbl_event" (parameter_list) "(struct ath6kl *ar, const void *buf,\n size_t len)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "const void *buf" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (;) ";" (declaration) "void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive);" (primitive_type) "void" (function_declarator) "ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)" (identifier) "ath6kl_debug_set_keepalive" (parameter_list) "(struct ath6kl *ar, u8 keepalive)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "u8 keepalive" (type_identifier) "u8" (identifier) "keepalive" ()) ")" (;) ";" (declaration) "void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout);" (primitive_type) "void" (function_declarator) "ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout)" (identifier) "ath6kl_debug_set_disconnect_timeout" (parameter_list) "(struct ath6kl *ar, u8 timeout)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "u8 timeout" (type_identifier) "u8" (identifier) "timeout" ()) ")" (;) ";" (declaration) "int ath6kl_debug_init(struct ath6kl *ar);" (primitive_type) "int" (function_declarator) "ath6kl_debug_init(struct ath6kl *ar)" (identifier) "ath6kl_debug_init" (parameter_list) "(struct ath6kl *ar)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" ()) ")" (;) ";" (declaration) "void ath6kl_debug_cleanup(struct ath6kl *ar);" (primitive_type) "void" (function_declarator) "ath6kl_debug_cleanup(struct ath6kl *ar)" (identifier) "ath6kl_debug_cleanup" (parameter_list) "(struct ath6kl *ar)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" ()) ")" (;) ";" (preproc_else) "#else\nstatic inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n const char *fmt, ...)\n{\n return 0;\n}\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}\nstatic inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}\n\nstatic inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}\n\nstatic inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n return 0;\n}\n\nstatic inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}\n\nstatic inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n u8 timeout)\n{\n}\n\nstatic inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n return 0;\n}\n\nstatic inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}" (#else) "#else" (function_definition) "static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n const char *fmt, ...)\n{\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n const char *fmt, ...)" (identifier) "ath6kl_dbg" (parameter_list) "(enum ATH6K_DEBUG_MASK dbg_mask,\n const char *fmt, ...)" (() "(" (parameter_declaration) "enum ATH6K_DEBUG_MASK dbg_mask" (enum_specifier) "enum ATH6K_DEBUG_MASK" (enum) "enum" (type_identifier) "ATH6K_DEBUG_MASK" (identifier) "dbg_mask" (,) "," (parameter_declaration) "const char *fmt" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*fmt" (*) "*" (identifier) "fmt" (,) "," (variadic_parameter) "..." (...) "..." ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)" (identifier) "ath6kl_dbg_dump" (parameter_list) "(enum ATH6K_DEBUG_MASK mask,\n const char *msg, const char *prefix,\n const void *buf, size_t len)" (() "(" (parameter_declaration) "enum ATH6K_DEBUG_MASK mask" (enum_specifier) "enum ATH6K_DEBUG_MASK" (enum) "enum" (type_identifier) "ATH6K_DEBUG_MASK" (identifier) "mask" (,) "," (parameter_declaration) "const char *msg" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*msg" (*) "*" (identifier) "msg" (,) "," (parameter_declaration) "const char *prefix" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*prefix" (*) "*" (identifier) "prefix" (,) "," (parameter_declaration) "const void *buf" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "ath6kl_dump_registers(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)" (identifier) "ath6kl_dump_registers" (parameter_list) "(struct ath6kl_device *dev,\n struct ath6kl_irq_proc_registers *irq_proc_reg,\n struct ath6kl_irq_enable_reg *irq_en_reg)" (() "(" (parameter_declaration) "struct ath6kl_device *dev" (struct_specifier) "struct ath6kl_device" (struct) "struct" (type_identifier) "ath6kl_device" (pointer_declarator) "*dev" (*) "*" (identifier) "dev" (,) "," (parameter_declaration) "struct ath6kl_irq_proc_registers *irq_proc_reg" (struct_specifier) "struct ath6kl_irq_proc_registers" (struct) "struct" (type_identifier) "ath6kl_irq_proc_registers" (pointer_declarator) "*irq_proc_reg" (*) "*" (identifier) "irq_proc_reg" (,) "," (parameter_declaration) "struct ath6kl_irq_enable_reg *irq_en_reg" (struct_specifier) "struct ath6kl_irq_enable_reg" (struct) "struct" (type_identifier) "ath6kl_irq_enable_reg" (pointer_declarator) "*irq_en_reg" (*) "*" (identifier) "irq_en_reg" ()) ")" (compound_statement) "{\n\n}" ({) "{" (}) "}" (function_definition) "static inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "dump_cred_dist_stats(struct htc_target *target)" (identifier) "dump_cred_dist_stats" (parameter_list) "(struct htc_target *target)" (() "(" (parameter_declaration) "struct htc_target *target" (struct_specifier) "struct htc_target" (struct) "struct" (type_identifier) "htc_target" (pointer_declarator) "*target" (*) "*" (identifier) "target" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "ath6kl_debug_fwlog_event(struct ath6kl *ar,\n const void *buf, size_t len)" (identifier) "ath6kl_debug_fwlog_event" (parameter_list) "(struct ath6kl *ar,\n const void *buf, size_t len)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "const void *buf" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)" (identifier) "ath6kl_debug_war" (parameter_list) "(struct ath6kl *ar, enum ath6kl_war war)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "enum ath6kl_war war" (enum_specifier) "enum ath6kl_war" (enum) "enum" (type_identifier) "ath6kl_war" (identifier) "war" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n const void *buf, size_t len)\n{\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n const void *buf, size_t len)" (identifier) "ath6kl_debug_roam_tbl_event" (parameter_list) "(struct ath6kl *ar,\n const void *buf, size_t len)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "const void *buf" (type_qualifier) "const" (const) "const" (primitive_type) "void" (pointer_declarator) "*buf" (*) "*" (identifier) "buf" (,) "," (parameter_declaration) "size_t len" (primitive_type) "size_t" (identifier) "len" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)" (identifier) "ath6kl_debug_set_keepalive" (parameter_list) "(struct ath6kl *ar, u8 keepalive)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "u8 keepalive" (type_identifier) "u8" (identifier) "keepalive" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n u8 timeout)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n u8 timeout)" (identifier) "ath6kl_debug_set_disconnect_timeout" (parameter_list) "(struct ath6kl *ar,\n u8 timeout)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" (,) "," (parameter_declaration) "u8 timeout" (type_identifier) "u8" (identifier) "timeout" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "ath6kl_debug_init(struct ath6kl *ar)" (identifier) "ath6kl_debug_init" (parameter_list) "(struct ath6kl *ar)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "ath6kl_debug_cleanup(struct ath6kl *ar)" (identifier) "ath6kl_debug_cleanup" (parameter_list) "(struct ath6kl *ar)" (() "(" (parameter_declaration) "struct ath6kl *ar" (struct_specifier) "struct ath6kl" (struct) "struct" (type_identifier) "ath6kl" (pointer_declarator) "*ar" (*) "*" (identifier) "ar" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (#endif) "#endif" (#endif) "#endif"
1,031
9
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 35.13, "nodes": 696, "errors": 0, "source_hash": "6e7a44d070a4b7c04d23c66a65c3cfdaf325cce7d8ffd910488080ebacd86fd7", "categorized_nodes": 468}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DEBUG_H\n#define DEBUG_H\n\n#include \"hif.h\"\n\nenum ATH6K_DEBUG_MASK {\n\tATH6KL_DBG_CREDIT\t= BIT(0),\n\t/* hole */\n\tATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */\n\tATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */\n\tATH6KL_DBG_BMI\t\t= BIT(4), /* bmi tracing */\n\tATH6KL_DBG_HTC\t\t= BIT(5),\n\tATH6KL_DBG_HIF\t\t= BIT(6),\n\tATH6KL_DBG_IRQ\t\t= BIT(7), /* interrupt processing */\n\t/* hole */\n\t/* hole */\n\tATH6KL_DBG_WMI = BIT(10), /* wmi tracing */\n\tATH6KL_DBG_TRC\t = BIT(11), /* generic func tracing */\n\tATH6KL_DBG_SCATTER\t= BIT(12), /* hif scatter tracing */\n\tATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */\n\tATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */\n\tATH6KL_DBG_AGGR\t\t= BIT(15), /* aggregation */\n\tATH6KL_DBG_SDIO\t\t= BIT(16),\n\tATH6KL_DBG_SDIO_DUMP\t= BIT(17),\n\tATH6KL_DBG_BOOT\t\t= BIT(18), /* driver init and fw boot */\n\tATH6KL_DBG_WMI_DUMP\t= BIT(19),\n\tATH6KL_DBG_SUSPEND\t= BIT(20),\n\tATH6KL_DBG_USB\t\t= BIT(21),\n\tATH6KL_DBG_RECOVERY\t= BIT(22),\n\tATH6KL_DBG_ANY\t = 0xffffffff /* enable all logs */\n};\n\nextern unsigned int debug_mask;\nextern __printf(2, 3)\nint ath6kl_printk(const char *level, const char *fmt, ...);\n\n#define ath6kl_info(fmt, ...)\t\t\t\t\\\n\tath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)\n#define ath6kl_err(fmt, ...)\t\t\t\t\t\\\n\tath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)\n#define ath6kl_warn(fmt, ...)\t\t\t\t\t\\\n\tath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)\n\n#define AR_DBG_LVL_CHECK(mask)\t(debug_mask & mask)\n\nenum ath6kl_war {\n\tATH6KL_WAR_INVALID_RATE,\n};\n\n#ifdef CONFIG_ATH6KL_DEBUG\n#define ath6kl_dbg(mask, fmt, ...)\t\t\t\t\t\\\n\t({\t\t\t\t\t\t\t\t\\\n\t int rtn;\t\t\t\t\t\t\t\\\n\t if (debug_mask & mask)\t\t\t\t\t\t\\\n\t\trtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__);\t\\\n\t else\t\t\t\t\t\t\t\t\\\n\t\trtn = 0;\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t\t\t\\\n\t rtn;\t\t\t\t\t\t\t\t\\\n\t })\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n\tif (debug_mask & mask) {\n\t\tif (msg)\n\t\t\tath6kl_dbg(mask, \"%s\\n\", msg);\n\n\t\tprint_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n\t}\n}\n\nvoid ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\t\t struct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\t\t struct ath6kl_irq_enable_reg *irq_en_reg);\nvoid dump_cred_dist_stats(struct htc_target *target);\nvoid ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);\nvoid ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);\nint ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n\t\t\t\tsize_t len);\nvoid ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive);\nvoid ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout);\nint ath6kl_debug_init(struct ath6kl *ar);\nvoid ath6kl_debug_cleanup(struct ath6kl *ar);\n\n#else\nstatic inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\tstruct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}\nstatic inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}\n\nstatic inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}\n\nstatic inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}\n\nstatic inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)\n{\n}\n\nstatic inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}\n\n#endif\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 157, 164, 261, 695], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 160, "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": "DEBUG_H", "parent": 0, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 15}}, {"id": 3, "type": "preproc_def", "text": "#define DEBUG_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": "DEBUG_H", "parent": 3, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 15}}, {"id": 6, "type": "preproc_include", "text": "#include \"hif.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"hif.h\"", "parent": 6, "children": [], "start_point": {"row": 20, "column": 9}, "end_point": {"row": 20, "column": 16}}, {"id": 9, "type": "enum_specifier", "text": "enum ATH6K_DEBUG_MASK {\n\tATH6KL_DBG_CREDIT\t= BIT(0),\n\t/* hole */\n\tATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */\n\tATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */\n\tATH6KL_DBG_BMI\t\t= BIT(4), /* bmi tracing */\n\tATH6KL_DBG_HTC\t\t= BIT(5),\n\tATH6KL_DBG_HIF\t\t= BIT(6),\n\tATH6KL_DBG_IRQ\t\t= BIT(7), /* interrupt processing */\n\t/* hole */\n\t/* hole */\n\tATH6KL_DBG_WMI = BIT(10), /* wmi tracing */\n\tATH6KL_DBG_TRC\t = BIT(11), /* generic func tracing */\n\tATH6KL_DBG_SCATTER\t= BIT(12), /* hif scatter tracing */\n\tATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */\n\tATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */\n\tATH6KL_DBG_AGGR\t\t= BIT(15), /* aggregation */\n\tATH6KL_DBG_SDIO\t\t= BIT(16),\n\tATH6KL_DBG_SDIO_DUMP\t= BIT(17),\n\tATH6KL_DBG_BOOT\t\t= BIT(18), /* driver init and fw boot */\n\tATH6KL_DBG_WMI_DUMP\t= BIT(19),\n\tATH6KL_DBG_SUSPEND\t= BIT(20),\n\tATH6KL_DBG_USB\t\t= BIT(21),\n\tATH6KL_DBG_RECOVERY\t= BIT(22),\n\tATH6KL_DBG_ANY\t = 0xffffffff /* enable all logs */\n}", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 47, "column": 1}}, {"id": 10, "type": "enum", "text": "enum", "parent": 9, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 4}}, {"id": 11, "type": "type_identifier", "text": "ATH6K_DEBUG_MASK", "parent": 9, "children": [], "start_point": {"row": 22, "column": 5}, "end_point": {"row": 22, "column": 21}}, {"id": 12, "type": "enumerator_list", "text": "{\n\tATH6KL_DBG_CREDIT\t= BIT(0),\n\t/* hole */\n\tATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */\n\tATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */\n\tATH6KL_DBG_BMI\t\t= BIT(4), /* bmi tracing */\n\tATH6KL_DBG_HTC\t\t= BIT(5),\n\tATH6KL_DBG_HIF\t\t= BIT(6),\n\tATH6KL_DBG_IRQ\t\t= BIT(7), /* interrupt processing */\n\t/* hole */\n\t/* hole */\n\tATH6KL_DBG_WMI = BIT(10), /* wmi tracing */\n\tATH6KL_DBG_TRC\t = BIT(11), /* generic func tracing */\n\tATH6KL_DBG_SCATTER\t= BIT(12), /* hif scatter tracing */\n\tATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */\n\tATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */\n\tATH6KL_DBG_AGGR\t\t= BIT(15), /* aggregation */\n\tATH6KL_DBG_SDIO\t\t= BIT(16),\n\tATH6KL_DBG_SDIO_DUMP\t= BIT(17),\n\tATH6KL_DBG_BOOT\t\t= BIT(18), /* driver init and fw boot */\n\tATH6KL_DBG_WMI_DUMP\t= BIT(19),\n\tATH6KL_DBG_SUSPEND\t= BIT(20),\n\tATH6KL_DBG_USB\t\t= BIT(21),\n\tATH6KL_DBG_RECOVERY\t= BIT(22),\n\tATH6KL_DBG_ANY\t = 0xffffffff /* enable all logs */\n}", "parent": 9, "children": [13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 104, 111, 118, 125, 132, 139, 146, 153], "start_point": {"row": 22, "column": 22}, "end_point": {"row": 47, "column": 1}}, {"id": 13, "type": "enumerator", "text": "ATH6KL_DBG_CREDIT\t= BIT(0)", "parent": 12, "children": [14, 15, 16], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 27}}, {"id": 14, "type": "identifier", "text": "ATH6KL_DBG_CREDIT", "parent": 13, "children": [], "start_point": {"row": 23, "column": 1}, "end_point": {"row": 23, "column": 18}}, {"id": 15, "type": "=", "text": "=", "parent": 13, "children": [], "start_point": {"row": 23, "column": 19}, "end_point": {"row": 23, "column": 20}}, {"id": 16, "type": "call_expression", "text": "BIT(0)", "parent": 13, "children": [17, 18], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 27}}, {"id": 17, "type": "identifier", "text": "BIT", "parent": 16, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 24}}, {"id": 18, "type": "argument_list", "text": "(0)", "parent": 16, "children": [19], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 27}}, {"id": 19, "type": "number_literal", "text": "0", "parent": 18, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 26}}, {"id": 20, "type": "enumerator", "text": "ATH6KL_DBG_WLAN_TX = BIT(2)", "parent": 12, "children": [21, 22, 23], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 33}}, {"id": 21, "type": "identifier", "text": "ATH6KL_DBG_WLAN_TX", "parent": 20, "children": [], "start_point": {"row": 25, "column": 1}, "end_point": {"row": 25, "column": 19}}, {"id": 22, "type": "=", "text": "=", "parent": 20, "children": [], "start_point": {"row": 25, "column": 25}, "end_point": {"row": 25, "column": 26}}, {"id": 23, "type": "call_expression", "text": "BIT(2)", "parent": 20, "children": [24, 25], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 33}}, {"id": 24, "type": "identifier", "text": "BIT", "parent": 23, "children": [], "start_point": {"row": 25, "column": 27}, "end_point": {"row": 25, "column": 30}}, {"id": 25, "type": "argument_list", "text": "(2)", "parent": 23, "children": [26], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 33}}, {"id": 26, "type": "number_literal", "text": "2", "parent": 25, "children": [], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 32}}, {"id": 27, "type": "enumerator", "text": "ATH6KL_DBG_WLAN_RX = BIT(3)", "parent": 12, "children": [28, 29, 30], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 33}}, {"id": 28, "type": "identifier", "text": "ATH6KL_DBG_WLAN_RX", "parent": 27, "children": [], "start_point": {"row": 26, "column": 1}, "end_point": {"row": 26, "column": 19}}, {"id": 29, "type": "=", "text": "=", "parent": 27, "children": [], "start_point": {"row": 26, "column": 25}, "end_point": {"row": 26, "column": 26}}, {"id": 30, "type": "call_expression", "text": "BIT(3)", "parent": 27, "children": [31, 32], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 33}}, {"id": 31, "type": "identifier", "text": "BIT", "parent": 30, "children": [], "start_point": {"row": 26, "column": 27}, "end_point": {"row": 26, "column": 30}}, {"id": 32, "type": "argument_list", "text": "(3)", "parent": 30, "children": [33], "start_point": {"row": 26, "column": 30}, "end_point": {"row": 26, "column": 33}}, {"id": 33, "type": "number_literal", "text": "3", "parent": 32, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 32}}, {"id": 34, "type": "enumerator", "text": "ATH6KL_DBG_BMI\t\t= BIT(4)", "parent": 12, "children": [35, 36, 37], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 25}}, {"id": 35, "type": "identifier", "text": "ATH6KL_DBG_BMI", "parent": 34, "children": [], "start_point": {"row": 27, "column": 1}, "end_point": {"row": 27, "column": 15}}, {"id": 36, "type": "=", "text": "=", "parent": 34, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 18}}, {"id": 37, "type": "call_expression", "text": "BIT(4)", "parent": 34, "children": [38, 39], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 25}}, {"id": 38, "type": "identifier", "text": "BIT", "parent": 37, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 22}}, {"id": 39, "type": "argument_list", "text": "(4)", "parent": 37, "children": [40], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 25}}, {"id": 40, "type": "number_literal", "text": "4", "parent": 39, "children": [], "start_point": {"row": 27, "column": 23}, "end_point": {"row": 27, "column": 24}}, {"id": 41, "type": "enumerator", "text": "ATH6KL_DBG_HTC\t\t= BIT(5)", "parent": 12, "children": [42, 43, 44], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 25}}, {"id": 42, "type": "identifier", "text": "ATH6KL_DBG_HTC", "parent": 41, "children": [], "start_point": {"row": 28, "column": 1}, "end_point": {"row": 28, "column": 15}}, {"id": 43, "type": "=", "text": "=", "parent": 41, "children": [], "start_point": {"row": 28, "column": 17}, "end_point": {"row": 28, "column": 18}}, {"id": 44, "type": "call_expression", "text": "BIT(5)", "parent": 41, "children": [45, 46], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 25}}, {"id": 45, "type": "identifier", "text": "BIT", "parent": 44, "children": [], "start_point": {"row": 28, "column": 19}, "end_point": {"row": 28, "column": 22}}, {"id": 46, "type": "argument_list", "text": "(5)", "parent": 44, "children": [47], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 25}}, {"id": 47, "type": "number_literal", "text": "5", "parent": 46, "children": [], "start_point": {"row": 28, "column": 23}, "end_point": {"row": 28, "column": 24}}, {"id": 48, "type": "enumerator", "text": "ATH6KL_DBG_HIF\t\t= BIT(6)", "parent": 12, "children": [49, 50, 51], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 25}}, {"id": 49, "type": "identifier", "text": "ATH6KL_DBG_HIF", "parent": 48, "children": [], "start_point": {"row": 29, "column": 1}, "end_point": {"row": 29, "column": 15}}, {"id": 50, "type": "=", "text": "=", "parent": 48, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 18}}, {"id": 51, "type": "call_expression", "text": "BIT(6)", "parent": 48, "children": [52, 53], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 25}}, {"id": 52, "type": "identifier", "text": "BIT", "parent": 51, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 22}}, {"id": 53, "type": "argument_list", "text": "(6)", "parent": 51, "children": [54], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 25}}, {"id": 54, "type": "number_literal", "text": "6", "parent": 53, "children": [], "start_point": {"row": 29, "column": 23}, "end_point": {"row": 29, "column": 24}}, {"id": 55, "type": "enumerator", "text": "ATH6KL_DBG_IRQ\t\t= BIT(7)", "parent": 12, "children": [56, 57, 58], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 25}}, {"id": 56, "type": "identifier", "text": "ATH6KL_DBG_IRQ", "parent": 55, "children": [], "start_point": {"row": 30, "column": 1}, "end_point": {"row": 30, "column": 15}}, {"id": 57, "type": "=", "text": "=", "parent": 55, "children": [], "start_point": {"row": 30, "column": 17}, "end_point": {"row": 30, "column": 18}}, {"id": 58, "type": "call_expression", "text": "BIT(7)", "parent": 55, "children": [59, 60], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 25}}, {"id": 59, "type": "identifier", "text": "BIT", "parent": 58, "children": [], "start_point": {"row": 30, "column": 19}, "end_point": {"row": 30, "column": 22}}, {"id": 60, "type": "argument_list", "text": "(7)", "parent": 58, "children": [61], "start_point": {"row": 30, "column": 22}, "end_point": {"row": 30, "column": 25}}, {"id": 61, "type": "number_literal", "text": "7", "parent": 60, "children": [], "start_point": {"row": 30, "column": 23}, "end_point": {"row": 30, "column": 24}}, {"id": 62, "type": "enumerator", "text": "ATH6KL_DBG_WMI = BIT(10)", "parent": 12, "children": [63, 64, 65], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 34}}, {"id": 63, "type": "identifier", "text": "ATH6KL_DBG_WMI", "parent": 62, "children": [], "start_point": {"row": 33, "column": 1}, "end_point": {"row": 33, "column": 15}}, {"id": 64, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 33, "column": 25}, "end_point": {"row": 33, "column": 26}}, {"id": 65, "type": "call_expression", "text": "BIT(10)", "parent": 62, "children": [66, 67], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 34}}, {"id": 66, "type": "identifier", "text": "BIT", "parent": 65, "children": [], "start_point": {"row": 33, "column": 27}, "end_point": {"row": 33, "column": 30}}, {"id": 67, "type": "argument_list", "text": "(10)", "parent": 65, "children": [68], "start_point": {"row": 33, "column": 30}, "end_point": {"row": 33, "column": 34}}, {"id": 68, "type": "number_literal", "text": "10", "parent": 67, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 33}}, {"id": 69, "type": "enumerator", "text": "ATH6KL_DBG_TRC\t = BIT(11)", "parent": 12, "children": [70, 71, 72], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 33}}, {"id": 70, "type": "identifier", "text": "ATH6KL_DBG_TRC", "parent": 69, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 15}}, {"id": 71, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 25}}, {"id": 72, "type": "call_expression", "text": "BIT(11)", "parent": 69, "children": [73, 74], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 33}}, {"id": 73, "type": "identifier", "text": "BIT", "parent": 72, "children": [], "start_point": {"row": 34, "column": 26}, "end_point": {"row": 34, "column": 29}}, {"id": 74, "type": "argument_list", "text": "(11)", "parent": 72, "children": [75], "start_point": {"row": 34, "column": 29}, "end_point": {"row": 34, "column": 33}}, {"id": 75, "type": "number_literal", "text": "11", "parent": 74, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 32}}, {"id": 76, "type": "enumerator", "text": "ATH6KL_DBG_SCATTER\t= BIT(12)", "parent": 12, "children": [77, 78, 79], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 29}}, {"id": 77, "type": "identifier", "text": "ATH6KL_DBG_SCATTER", "parent": 76, "children": [], "start_point": {"row": 35, "column": 1}, "end_point": {"row": 35, "column": 19}}, {"id": 78, "type": "=", "text": "=", "parent": 76, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 21}}, {"id": 79, "type": "call_expression", "text": "BIT(12)", "parent": 76, "children": [80, 81], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 29}}, {"id": 80, "type": "identifier", "text": "BIT", "parent": 79, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 25}}, {"id": 81, "type": "argument_list", "text": "(12)", "parent": 79, "children": [82], "start_point": {"row": 35, "column": 25}, "end_point": {"row": 35, "column": 29}}, {"id": 82, "type": "number_literal", "text": "12", "parent": 81, "children": [], "start_point": {"row": 35, "column": 26}, "end_point": {"row": 35, "column": 28}}, {"id": 83, "type": "enumerator", "text": "ATH6KL_DBG_WLAN_CFG = BIT(13)", "parent": 12, "children": [84, 85, 86], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 34}}, {"id": 84, "type": "identifier", "text": "ATH6KL_DBG_WLAN_CFG", "parent": 83, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 20}}, {"id": 85, "type": "=", "text": "=", "parent": 83, "children": [], "start_point": {"row": 36, "column": 25}, "end_point": {"row": 36, "column": 26}}, {"id": 86, "type": "call_expression", "text": "BIT(13)", "parent": 83, "children": [87, 88], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 34}}, {"id": 87, "type": "identifier", "text": "BIT", "parent": 86, "children": [], "start_point": {"row": 36, "column": 27}, "end_point": {"row": 36, "column": 30}}, {"id": 88, "type": "argument_list", "text": "(13)", "parent": 86, "children": [89], "start_point": {"row": 36, "column": 30}, "end_point": {"row": 36, "column": 34}}, {"id": 89, "type": "number_literal", "text": "13", "parent": 88, "children": [], "start_point": {"row": 36, "column": 31}, "end_point": {"row": 36, "column": 33}}, {"id": 90, "type": "enumerator", "text": "ATH6KL_DBG_RAW_BYTES = BIT(14)", "parent": 12, "children": [91, 92, 93], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 34}}, {"id": 91, "type": "identifier", "text": "ATH6KL_DBG_RAW_BYTES", "parent": 90, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 21}}, {"id": 92, "type": "=", "text": "=", "parent": 90, "children": [], "start_point": {"row": 37, "column": 25}, "end_point": {"row": 37, "column": 26}}, {"id": 93, "type": "call_expression", "text": "BIT(14)", "parent": 90, "children": [94, 95], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 34}}, {"id": 94, "type": "identifier", "text": "BIT", "parent": 93, "children": [], "start_point": {"row": 37, "column": 27}, "end_point": {"row": 37, "column": 30}}, {"id": 95, "type": "argument_list", "text": "(14)", "parent": 93, "children": [96], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 34}}, {"id": 96, "type": "number_literal", "text": "14", "parent": 95, "children": [], "start_point": {"row": 37, "column": 31}, "end_point": {"row": 37, "column": 33}}, {"id": 97, "type": "enumerator", "text": "ATH6KL_DBG_AGGR\t\t= BIT(15)", "parent": 12, "children": [98, 99, 100], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 27}}, {"id": 98, "type": "identifier", "text": "ATH6KL_DBG_AGGR", "parent": 97, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 16}}, {"id": 99, "type": "=", "text": "=", "parent": 97, "children": [], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 19}}, {"id": 100, "type": "call_expression", "text": "BIT(15)", "parent": 97, "children": [101, 102], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 27}}, {"id": 101, "type": "identifier", "text": "BIT", "parent": 100, "children": [], "start_point": {"row": 38, "column": 20}, "end_point": {"row": 38, "column": 23}}, {"id": 102, "type": "argument_list", "text": "(15)", "parent": 100, "children": [103], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 27}}, {"id": 103, "type": "number_literal", "text": "15", "parent": 102, "children": [], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 26}}, {"id": 104, "type": "enumerator", "text": "ATH6KL_DBG_SDIO\t\t= BIT(16)", "parent": 12, "children": [105, 106, 107], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 27}}, {"id": 105, "type": "identifier", "text": "ATH6KL_DBG_SDIO", "parent": 104, "children": [], "start_point": {"row": 39, "column": 1}, "end_point": {"row": 39, "column": 16}}, {"id": 106, "type": "=", "text": "=", "parent": 104, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 19}}, {"id": 107, "type": "call_expression", "text": "BIT(16)", "parent": 104, "children": [108, 109], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 27}}, {"id": 108, "type": "identifier", "text": "BIT", "parent": 107, "children": [], "start_point": {"row": 39, "column": 20}, "end_point": {"row": 39, "column": 23}}, {"id": 109, "type": "argument_list", "text": "(16)", "parent": 107, "children": [110], "start_point": {"row": 39, "column": 23}, "end_point": {"row": 39, "column": 27}}, {"id": 110, "type": "number_literal", "text": "16", "parent": 109, "children": [], "start_point": {"row": 39, "column": 24}, "end_point": {"row": 39, "column": 26}}, {"id": 111, "type": "enumerator", "text": "ATH6KL_DBG_SDIO_DUMP\t= BIT(17)", "parent": 12, "children": [112, 113, 114], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 31}}, {"id": 112, "type": "identifier", "text": "ATH6KL_DBG_SDIO_DUMP", "parent": 111, "children": [], "start_point": {"row": 40, "column": 1}, "end_point": {"row": 40, "column": 21}}, {"id": 113, "type": "=", "text": "=", "parent": 111, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 23}}, {"id": 114, "type": "call_expression", "text": "BIT(17)", "parent": 111, "children": [115, 116], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 31}}, {"id": 115, "type": "identifier", "text": "BIT", "parent": 114, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 27}}, {"id": 116, "type": "argument_list", "text": "(17)", "parent": 114, "children": [117], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 31}}, {"id": 117, "type": "number_literal", "text": "17", "parent": 116, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 30}}, {"id": 118, "type": "enumerator", "text": "ATH6KL_DBG_BOOT\t\t= BIT(18)", "parent": 12, "children": [119, 120, 121], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 27}}, {"id": 119, "type": "identifier", "text": "ATH6KL_DBG_BOOT", "parent": 118, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 16}}, {"id": 120, "type": "=", "text": "=", "parent": 118, "children": [], "start_point": {"row": 41, "column": 18}, "end_point": {"row": 41, "column": 19}}, {"id": 121, "type": "call_expression", "text": "BIT(18)", "parent": 118, "children": [122, 123], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 27}}, {"id": 122, "type": "identifier", "text": "BIT", "parent": 121, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 23}}, {"id": 123, "type": "argument_list", "text": "(18)", "parent": 121, "children": [124], "start_point": {"row": 41, "column": 23}, "end_point": {"row": 41, "column": 27}}, {"id": 124, "type": "number_literal", "text": "18", "parent": 123, "children": [], "start_point": {"row": 41, "column": 24}, "end_point": {"row": 41, "column": 26}}, {"id": 125, "type": "enumerator", "text": "ATH6KL_DBG_WMI_DUMP\t= BIT(19)", "parent": 12, "children": [126, 127, 128], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 30}}, {"id": 126, "type": "identifier", "text": "ATH6KL_DBG_WMI_DUMP", "parent": 125, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 20}}, {"id": 127, "type": "=", "text": "=", "parent": 125, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 22}}, {"id": 128, "type": "call_expression", "text": "BIT(19)", "parent": 125, "children": [129, 130], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 30}}, {"id": 129, "type": "identifier", "text": "BIT", "parent": 128, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 26}}, {"id": 130, "type": "argument_list", "text": "(19)", "parent": 128, "children": [131], "start_point": {"row": 42, "column": 26}, "end_point": {"row": 42, "column": 30}}, {"id": 131, "type": "number_literal", "text": "19", "parent": 130, "children": [], "start_point": {"row": 42, "column": 27}, "end_point": {"row": 42, "column": 29}}, {"id": 132, "type": "enumerator", "text": "ATH6KL_DBG_SUSPEND\t= BIT(20)", "parent": 12, "children": [133, 134, 135], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 29}}, {"id": 133, "type": "identifier", "text": "ATH6KL_DBG_SUSPEND", "parent": 132, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 19}}, {"id": 134, "type": "=", "text": "=", "parent": 132, "children": [], "start_point": {"row": 43, "column": 20}, "end_point": {"row": 43, "column": 21}}, {"id": 135, "type": "call_expression", "text": "BIT(20)", "parent": 132, "children": [136, 137], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 29}}, {"id": 136, "type": "identifier", "text": "BIT", "parent": 135, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 25}}, {"id": 137, "type": "argument_list", "text": "(20)", "parent": 135, "children": [138], "start_point": {"row": 43, "column": 25}, "end_point": {"row": 43, "column": 29}}, {"id": 138, "type": "number_literal", "text": "20", "parent": 137, "children": [], "start_point": {"row": 43, "column": 26}, "end_point": {"row": 43, "column": 28}}, {"id": 139, "type": "enumerator", "text": "ATH6KL_DBG_USB\t\t= BIT(21)", "parent": 12, "children": [140, 141, 142], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 26}}, {"id": 140, "type": "identifier", "text": "ATH6KL_DBG_USB", "parent": 139, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 15}}, {"id": 141, "type": "=", "text": "=", "parent": 139, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 142, "type": "call_expression", "text": "BIT(21)", "parent": 139, "children": [143, 144], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 26}}, {"id": 143, "type": "identifier", "text": "BIT", "parent": 142, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 22}}, {"id": 144, "type": "argument_list", "text": "(21)", "parent": 142, "children": [145], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 26}}, {"id": 145, "type": "number_literal", "text": "21", "parent": 144, "children": [], "start_point": {"row": 44, "column": 23}, "end_point": {"row": 44, "column": 25}}, {"id": 146, "type": "enumerator", "text": "ATH6KL_DBG_RECOVERY\t= BIT(22)", "parent": 12, "children": [147, 148, 149], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 30}}, {"id": 147, "type": "identifier", "text": "ATH6KL_DBG_RECOVERY", "parent": 146, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 20}}, {"id": 148, "type": "=", "text": "=", "parent": 146, "children": [], "start_point": {"row": 45, "column": 21}, "end_point": {"row": 45, "column": 22}}, {"id": 149, "type": "call_expression", "text": "BIT(22)", "parent": 146, "children": [150, 151], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 30}}, {"id": 150, "type": "identifier", "text": "BIT", "parent": 149, "children": [], "start_point": {"row": 45, "column": 23}, "end_point": {"row": 45, "column": 26}}, {"id": 151, "type": "argument_list", "text": "(22)", "parent": 149, "children": [152], "start_point": {"row": 45, "column": 26}, "end_point": {"row": 45, "column": 30}}, {"id": 152, "type": "number_literal", "text": "22", "parent": 151, "children": [], "start_point": {"row": 45, "column": 27}, "end_point": {"row": 45, "column": 29}}, {"id": 153, "type": "enumerator", "text": "ATH6KL_DBG_ANY\t = 0xffffffff", "parent": 12, "children": [154, 155, 156], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 36}}, {"id": 154, "type": "identifier", "text": "ATH6KL_DBG_ANY", "parent": 153, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 15}}, {"id": 155, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 25}}, {"id": 156, "type": "number_literal", "text": "0xffffffff", "parent": 153, "children": [], "start_point": {"row": 46, "column": 26}, "end_point": {"row": 46, "column": 36}}, {"id": 157, "type": "declaration", "text": "extern unsigned int debug_mask;", "parent": 0, "children": [158, 160, 163], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 31}}, {"id": 158, "type": "storage_class_specifier", "text": "extern", "parent": 157, "children": [159], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 159, "type": "extern", "text": "extern", "parent": 158, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 6}}, {"id": 160, "type": "sized_type_specifier", "text": "unsigned int", "parent": 157, "children": [161, 162], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 19}}, {"id": 161, "type": "unsigned", "text": "unsigned", "parent": 160, "children": [], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 15}}, {"id": 162, "type": "primitive_type", "text": "int", "parent": 160, "children": [], "start_point": {"row": 49, "column": 16}, "end_point": {"row": 49, "column": 19}}, {"id": 163, "type": "identifier", "text": "debug_mask", "parent": 157, "children": [], "start_point": {"row": 49, "column": 20}, "end_point": {"row": 49, "column": 30}}, {"id": 164, "type": "ERROR", "text": "extern __printf(2, 3)\nint ath6kl_printk(const char *level, const char *fmt, ...);\n\n#define ath6kl_info(fmt, ...)\t\t\t\t\\\n\tath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)\n#define ath6kl_err(fmt, ...)\t\t\t\t\t\\\n\tath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)\n#define ath6kl_warn(fmt, ...)\t\t\t\t\t\\\n\tath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)\n\n#define AR_DBG_LVL_CHECK(mask)\t(debug_mask & mask)\n\nenum ath6kl_war {\n\tATH6KL_WAR_INVALID_RATE,\n};", "parent": 0, "children": [165, 167, 168, 255], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 64, "column": 2}}, {"id": 165, "type": "storage_class_specifier", "text": "extern", "parent": 164, "children": [166], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 166, "type": "extern", "text": "extern", "parent": 165, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 6}}, {"id": 167, "type": "identifier", "text": "__printf", "parent": 164, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 15}}, {"id": 168, "type": "ERROR", "text": "2, 3)\nint ath6kl_printk(const char *level, const char *fmt, ...);\n\n#define ath6kl_info(fmt, ...)\t\t\t\t\\\n\tath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)\n#define ath6kl_err(fmt, ...)\t\t\t\t\t\\\n\tath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)\n#define ath6kl_warn(fmt, ...)\t\t\t\t\t\\\n\tath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)\n\n#define AR_DBG_LVL_CHECK(mask)\t(debug_mask & mask)", "parent": 164, "children": [169, 170, 171, 172, 186, 187, 193, 205, 206, 212, 224, 225, 231, 243, 244], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 60, "column": 50}}, {"id": 169, "type": "number_literal", "text": "2", "parent": 168, "children": [], "start_point": {"row": 50, "column": 16}, "end_point": {"row": 50, "column": 17}}, {"id": 170, "type": "number_literal", "text": "3", "parent": 168, "children": [], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 20}}, {"id": 171, "type": "primitive_type", "text": "int", "parent": 168, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 3}}, {"id": 172, "type": "type_descriptor", "text": "ath6kl_printk(const char *level, const char *fmt, ...)", "parent": 168, "children": [173, 174], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 58}}, {"id": 173, "type": "type_identifier", "text": "ath6kl_printk", "parent": 172, "children": [], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 17}}, {"id": 174, "type": "abstract_function_declarator", "text": "(const char *level, const char *fmt, ...)", "parent": 172, "children": [175], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 58}}, {"id": 175, "type": "parameter_list", "text": "(const char *level, const char *fmt, ...)", "parent": 174, "children": [176, 181], "start_point": {"row": 51, "column": 17}, "end_point": {"row": 51, "column": 58}}, {"id": 176, "type": "parameter_declaration", "text": "const char *level", "parent": 175, "children": [177, 178], "start_point": {"row": 51, "column": 18}, "end_point": {"row": 51, "column": 35}}, {"id": 177, "type": "primitive_type", "text": "char", "parent": 176, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 28}}, {"id": 178, "type": "pointer_declarator", "text": "*level", "parent": 176, "children": [179, 180], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 35}}, {"id": 179, "type": "*", "text": "*", "parent": 178, "children": [], "start_point": {"row": 51, "column": 29}, "end_point": {"row": 51, "column": 30}}, {"id": 180, "type": "identifier", "text": "level", "parent": 178, "children": [], "start_point": {"row": 51, "column": 30}, "end_point": {"row": 51, "column": 35}}, {"id": 181, "type": "parameter_declaration", "text": "const char *fmt", "parent": 175, "children": [182, 183], "start_point": {"row": 51, "column": 37}, "end_point": {"row": 51, "column": 52}}, {"id": 182, "type": "primitive_type", "text": "char", "parent": 181, "children": [], "start_point": {"row": 51, "column": 43}, "end_point": {"row": 51, "column": 47}}, {"id": 183, "type": "pointer_declarator", "text": "*fmt", "parent": 181, "children": [184, 185], "start_point": {"row": 51, "column": 48}, "end_point": {"row": 51, "column": 52}}, {"id": 184, "type": "*", "text": "*", "parent": 183, "children": [], "start_point": {"row": 51, "column": 48}, "end_point": {"row": 51, "column": 49}}, {"id": 185, "type": "identifier", "text": "fmt", "parent": 183, "children": [], "start_point": {"row": 51, "column": 49}, "end_point": {"row": 51, "column": 52}}, {"id": 186, "type": "#define", "text": "#define", "parent": 168, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 7}}, {"id": 187, "type": "type_descriptor", "text": "ath6kl_info(fmt, ...)", "parent": 168, "children": [188, 189], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 29}}, {"id": 188, "type": "type_identifier", "text": "ath6kl_info", "parent": 187, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 19}}, {"id": 189, "type": "abstract_function_declarator", "text": "(fmt, ...)", "parent": 187, "children": [190], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 29}}, {"id": 190, "type": "parameter_list", "text": "(fmt, ...)", "parent": 189, "children": [191], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 29}}, {"id": 191, "type": "parameter_declaration", "text": "fmt", "parent": 190, "children": [192], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 23}}, {"id": 192, "type": "type_identifier", "text": "fmt", "parent": 191, "children": [], "start_point": {"row": 53, "column": 20}, "end_point": {"row": 53, "column": 23}}, {"id": 193, "type": "type_descriptor", "text": "ath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)", "parent": 168, "children": [194, 195], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 45}}, {"id": 194, "type": "type_identifier", "text": "ath6kl_printk", "parent": 193, "children": [], "start_point": {"row": 54, "column": 1}, "end_point": {"row": 54, "column": 14}}, {"id": 195, "type": "abstract_function_declarator", "text": "(KERN_INFO, fmt, ##__VA_ARGS__)", "parent": 193, "children": [196], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 45}}, {"id": 196, "type": "parameter_list", "text": "(KERN_INFO, fmt, ##__VA_ARGS__)", "parent": 195, "children": [197, 199, 201, 203], "start_point": {"row": 54, "column": 14}, "end_point": {"row": 54, "column": 45}}, {"id": 197, "type": "parameter_declaration", "text": "KERN_INFO", "parent": 196, "children": [198], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 24}}, {"id": 198, "type": "type_identifier", "text": "KERN_INFO", "parent": 197, "children": [], "start_point": {"row": 54, "column": 15}, "end_point": {"row": 54, "column": 24}}, {"id": 199, "type": "parameter_declaration", "text": "fmt", "parent": 196, "children": [200], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 29}}, {"id": 200, "type": "type_identifier", "text": "fmt", "parent": 199, "children": [], "start_point": {"row": 54, "column": 26}, "end_point": {"row": 54, "column": 29}}, {"id": 201, "type": "ERROR", "text": "##", "parent": 196, "children": [202], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 33}}, {"id": 202, "type": "ERROR", "text": "##", "parent": 201, "children": [], "start_point": {"row": 54, "column": 31}, "end_point": {"row": 54, "column": 33}}, {"id": 203, "type": "parameter_declaration", "text": "__VA_ARGS__", "parent": 196, "children": [204], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 44}}, {"id": 204, "type": "type_identifier", "text": "__VA_ARGS__", "parent": 203, "children": [], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 44}}, {"id": 205, "type": "#define", "text": "#define", "parent": 168, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 206, "type": "type_descriptor", "text": "ath6kl_err(fmt, ...)", "parent": 168, "children": [207, 208], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 28}}, {"id": 207, "type": "type_identifier", "text": "ath6kl_err", "parent": 206, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 18}}, {"id": 208, "type": "abstract_function_declarator", "text": "(fmt, ...)", "parent": 206, "children": [209], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 28}}, {"id": 209, "type": "parameter_list", "text": "(fmt, ...)", "parent": 208, "children": [210], "start_point": {"row": 55, "column": 18}, "end_point": {"row": 55, "column": 28}}, {"id": 210, "type": "parameter_declaration", "text": "fmt", "parent": 209, "children": [211], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 22}}, {"id": 211, "type": "type_identifier", "text": "fmt", "parent": 210, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 22}}, {"id": 212, "type": "type_descriptor", "text": "ath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)", "parent": 168, "children": [213, 214], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 44}}, {"id": 213, "type": "type_identifier", "text": "ath6kl_printk", "parent": 212, "children": [], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 14}}, {"id": 214, "type": "abstract_function_declarator", "text": "(KERN_ERR, fmt, ##__VA_ARGS__)", "parent": 212, "children": [215], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 44}}, {"id": 215, "type": "parameter_list", "text": "(KERN_ERR, fmt, ##__VA_ARGS__)", "parent": 214, "children": [216, 218, 220, 222], "start_point": {"row": 56, "column": 14}, "end_point": {"row": 56, "column": 44}}, {"id": 216, "type": "parameter_declaration", "text": "KERN_ERR", "parent": 215, "children": [217], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 23}}, {"id": 217, "type": "type_identifier", "text": "KERN_ERR", "parent": 216, "children": [], "start_point": {"row": 56, "column": 15}, "end_point": {"row": 56, "column": 23}}, {"id": 218, "type": "parameter_declaration", "text": "fmt", "parent": 215, "children": [219], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 28}}, {"id": 219, "type": "type_identifier", "text": "fmt", "parent": 218, "children": [], "start_point": {"row": 56, "column": 25}, "end_point": {"row": 56, "column": 28}}, {"id": 220, "type": "ERROR", "text": "##", "parent": 215, "children": [221], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 32}}, {"id": 221, "type": "ERROR", "text": "##", "parent": 220, "children": [], "start_point": {"row": 56, "column": 30}, "end_point": {"row": 56, "column": 32}}, {"id": 222, "type": "parameter_declaration", "text": "__VA_ARGS__", "parent": 215, "children": [223], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 43}}, {"id": 223, "type": "type_identifier", "text": "__VA_ARGS__", "parent": 222, "children": [], "start_point": {"row": 56, "column": 32}, "end_point": {"row": 56, "column": 43}}, {"id": 224, "type": "#define", "text": "#define", "parent": 168, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 225, "type": "type_descriptor", "text": "ath6kl_warn(fmt, ...)", "parent": 168, "children": [226, 227], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 29}}, {"id": 226, "type": "type_identifier", "text": "ath6kl_warn", "parent": 225, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 19}}, {"id": 227, "type": "abstract_function_declarator", "text": "(fmt, ...)", "parent": 225, "children": [228], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 29}}, {"id": 228, "type": "parameter_list", "text": "(fmt, ...)", "parent": 227, "children": [229], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 29}}, {"id": 229, "type": "parameter_declaration", "text": "fmt", "parent": 228, "children": [230], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 23}}, {"id": 230, "type": "type_identifier", "text": "fmt", "parent": 229, "children": [], "start_point": {"row": 57, "column": 20}, "end_point": {"row": 57, "column": 23}}, {"id": 231, "type": "type_descriptor", "text": "ath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)", "parent": 168, "children": [232, 233], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 48}}, {"id": 232, "type": "type_identifier", "text": "ath6kl_printk", "parent": 231, "children": [], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 14}}, {"id": 233, "type": "abstract_function_declarator", "text": "(KERN_WARNING, fmt, ##__VA_ARGS__)", "parent": 231, "children": [234], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 48}}, {"id": 234, "type": "parameter_list", "text": "(KERN_WARNING, fmt, ##__VA_ARGS__)", "parent": 233, "children": [235, 237, 239, 241], "start_point": {"row": 58, "column": 14}, "end_point": {"row": 58, "column": 48}}, {"id": 235, "type": "parameter_declaration", "text": "KERN_WARNING", "parent": 234, "children": [236], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 27}}, {"id": 236, "type": "type_identifier", "text": "KERN_WARNING", "parent": 235, "children": [], "start_point": {"row": 58, "column": 15}, "end_point": {"row": 58, "column": 27}}, {"id": 237, "type": "parameter_declaration", "text": "fmt", "parent": 234, "children": [238], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 32}}, {"id": 238, "type": "type_identifier", "text": "fmt", "parent": 237, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 32}}, {"id": 239, "type": "ERROR", "text": "##", "parent": 234, "children": [240], "start_point": {"row": 58, "column": 34}, "end_point": {"row": 58, "column": 36}}, {"id": 240, "type": "ERROR", "text": "##", "parent": 239, "children": [], "start_point": {"row": 58, "column": 34}, "end_point": {"row": 58, "column": 36}}, {"id": 241, "type": "parameter_declaration", "text": "__VA_ARGS__", "parent": 234, "children": [242], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 47}}, {"id": 242, "type": "type_identifier", "text": "__VA_ARGS__", "parent": 241, "children": [], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 47}}, {"id": 243, "type": "#define", "text": "#define", "parent": 168, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 244, "type": "type_descriptor", "text": "AR_DBG_LVL_CHECK(mask)\t(debug_mask & mask)", "parent": 168, "children": [245, 246], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 50}}, {"id": 245, "type": "type_identifier", "text": "AR_DBG_LVL_CHECK", "parent": 244, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 24}}, {"id": 246, "type": "abstract_function_declarator", "text": "(mask)\t(debug_mask & mask)", "parent": 244, "children": [247, 251], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 50}}, {"id": 247, "type": "abstract_function_declarator", "text": "(mask)", "parent": 246, "children": [248], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 30}}, {"id": 248, "type": "parameter_list", "text": "(mask)", "parent": 247, "children": [249], "start_point": {"row": 60, "column": 24}, "end_point": {"row": 60, "column": 30}}, {"id": 249, "type": "parameter_declaration", "text": "mask", "parent": 248, "children": [250], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 29}}, {"id": 250, "type": "type_identifier", "text": "mask", "parent": 249, "children": [], "start_point": {"row": 60, "column": 25}, "end_point": {"row": 60, "column": 29}}, {"id": 251, "type": "parameter_list", "text": "(debug_mask & mask)", "parent": 246, "children": [252], "start_point": {"row": 60, "column": 31}, "end_point": {"row": 60, "column": 50}}, {"id": 252, "type": "parameter_declaration", "text": "debug_mask & mask", "parent": 251, "children": [253, 254], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 49}}, {"id": 253, "type": "type_identifier", "text": "debug_mask", "parent": 252, "children": [], "start_point": {"row": 60, "column": 32}, "end_point": {"row": 60, "column": 42}}, {"id": 254, "type": "identifier", "text": "mask", "parent": 252, "children": [], "start_point": {"row": 60, "column": 45}, "end_point": {"row": 60, "column": 49}}, {"id": 255, "type": "enum_specifier", "text": "enum ath6kl_war {\n\tATH6KL_WAR_INVALID_RATE,\n}", "parent": 164, "children": [256, 257, 258], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 64, "column": 1}}, {"id": 256, "type": "enum", "text": "enum", "parent": 255, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 4}}, {"id": 257, "type": "type_identifier", "text": "ath6kl_war", "parent": 255, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 15}}, {"id": 258, "type": "enumerator_list", "text": "{\n\tATH6KL_WAR_INVALID_RATE,\n}", "parent": 255, "children": [259], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 64, "column": 1}}, {"id": 259, "type": "enumerator", "text": "ATH6KL_WAR_INVALID_RATE", "parent": 258, "children": [260], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 24}}, {"id": 260, "type": "identifier", "text": "ATH6KL_WAR_INVALID_RATE", "parent": 259, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 24}}, {"id": 261, "type": "preproc_ifdef", "text": "#ifdef CONFIG_ATH6KL_DEBUG\n#define ath6kl_dbg(mask, fmt, ...)\t\t\t\t\t\\\n\t({\t\t\t\t\t\t\t\t\\\n\t int rtn;\t\t\t\t\t\t\t\\\n\t if (debug_mask & mask)\t\t\t\t\t\t\\\n\t\trtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__);\t\\\n\t else\t\t\t\t\t\t\t\t\\\n\t\trtn = 0;\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t\t\t\\\n\t rtn;\t\t\t\t\t\t\t\t\\\n\t })\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n\tif (debug_mask & mask) {\n\t\tif (msg)\n\t\t\tath6kl_dbg(mask, \"%s\\n\", msg);\n\n\t\tprint_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n\t}\n}\n\nvoid ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\t\t struct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\t\t struct ath6kl_irq_enable_reg *irq_en_reg);\nvoid dump_cred_dist_stats(struct htc_target *target);\nvoid ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);\nvoid ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);\nint ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n\t\t\t\tsize_t len);\nvoid ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive);\nvoid ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout);\nint ath6kl_debug_init(struct ath6kl *ar);\nvoid ath6kl_debug_cleanup(struct ath6kl *ar);\n\n#else\nstatic inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\tstruct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}\nstatic inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}\n\nstatic inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}\n\nstatic inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}\n\nstatic inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)\n{\n}\n\nstatic inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}\n\n#endif", "parent": 0, "children": [262, 263, 264, 271, 323, 349, 361, 381, 398, 418, 433, 448, 460, 472, 694], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 159, "column": 6}}, {"id": 262, "type": "#ifdef", "text": "#ifdef", "parent": 261, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 6}}, {"id": 263, "type": "identifier", "text": "CONFIG_ATH6KL_DEBUG", "parent": 261, "children": [], "start_point": {"row": 66, "column": 7}, "end_point": {"row": 66, "column": 26}}, {"id": 264, "type": "preproc_function_def", "text": "#define ath6kl_dbg(mask, fmt, ...)\t\t\t\t\t\\\n\t({\t\t\t\t\t\t\t\t\\\n\t int rtn;\t\t\t\t\t\t\t\\\n\t if (debug_mask & mask)\t\t\t\t\t\t\\\n\t\trtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__);\t\\\n\t else\t\t\t\t\t\t\t\t\\\n\t\trtn = 0;\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t\t\t\\\n\t rtn;\t\t\t\t\t\t\t\t\\\n\t })\n", "parent": 261, "children": [265, 266, 267, 270], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 77, "column": 0}}, {"id": 265, "type": "#define", "text": "#define", "parent": 264, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 266, "type": "identifier", "text": "ath6kl_dbg", "parent": 264, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 18}}, {"id": 267, "type": "preproc_params", "text": "(mask, fmt, ...)", "parent": 264, "children": [268, 269], "start_point": {"row": 67, "column": 18}, "end_point": {"row": 67, "column": 34}}, {"id": 268, "type": "identifier", "text": "mask", "parent": 267, "children": [], "start_point": {"row": 67, "column": 19}, "end_point": {"row": 67, "column": 23}}, {"id": 269, "type": "identifier", "text": "fmt", "parent": 267, "children": [], "start_point": {"row": 67, "column": 25}, "end_point": {"row": 67, "column": 28}}, {"id": 270, "type": "preproc_arg", "text": "({\t\t\t\t\t\t\t\t\\\n\t int rtn;\t\t\t\t\t\t\t\\\n\t if (debug_mask & mask)\t\t\t\t\t\t\\\n\t\trtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__);\t\\\n\t else\t\t\t\t\t\t\t\t\\\n\t\trtn = 0;\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t\t\t\\\n\t rtn;\t\t\t\t\t\t\t\t\\\n\t })", "parent": 264, "children": [], "start_point": {"row": 68, "column": 1}, "end_point": {"row": 76, "column": 4}}, {"id": 271, "type": "function_definition", "text": "static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n\tif (debug_mask & mask) {\n\t\tif (msg)\n\t\t\tath6kl_dbg(mask, \"%s\\n\", msg);\n\n\t\tprint_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n\t}\n}", "parent": 261, "children": [272, 274, 275], "start_point": {"row": 78, "column": 0}, "end_point": {"row": 88, "column": 1}}, {"id": 272, "type": "storage_class_specifier", "text": "inline", "parent": 271, "children": [273], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 13}}, {"id": 273, "type": "inline", "text": "inline", "parent": 272, "children": [], "start_point": {"row": 78, "column": 7}, "end_point": {"row": 78, "column": 13}}, {"id": 274, "type": "primitive_type", "text": "void", "parent": 271, "children": [], "start_point": {"row": 78, "column": 14}, "end_point": {"row": 78, "column": 18}}, {"id": 275, "type": "function_declarator", "text": "ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)", "parent": 271, "children": [276, 277], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 80, "column": 35}}, {"id": 276, "type": "identifier", "text": "ath6kl_dbg_dump", "parent": 275, "children": [], "start_point": {"row": 78, "column": 19}, "end_point": {"row": 78, "column": 34}}, {"id": 277, "type": "parameter_list", "text": "(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)", "parent": 275, "children": [278, 283, 288, 293, 298], "start_point": {"row": 78, "column": 34}, "end_point": {"row": 80, "column": 35}}, {"id": 278, "type": "parameter_declaration", "text": "enum ATH6K_DEBUG_MASK mask", "parent": 277, "children": [279, 282], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 61}}, {"id": 279, "type": "enum_specifier", "text": "enum ATH6K_DEBUG_MASK", "parent": 278, "children": [280, 281], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 56}}, {"id": 280, "type": "enum", "text": "enum", "parent": 279, "children": [], "start_point": {"row": 78, "column": 35}, "end_point": {"row": 78, "column": 39}}, {"id": 281, "type": "type_identifier", "text": "ATH6K_DEBUG_MASK", "parent": 279, "children": [], "start_point": {"row": 78, "column": 40}, "end_point": {"row": 78, "column": 56}}, {"id": 282, "type": "identifier", "text": "mask", "parent": 278, "children": [], "start_point": {"row": 78, "column": 57}, "end_point": {"row": 78, "column": 61}}, {"id": 283, "type": "parameter_declaration", "text": "const char *msg", "parent": 277, "children": [284, 285], "start_point": {"row": 79, "column": 7}, "end_point": {"row": 79, "column": 22}}, {"id": 284, "type": "primitive_type", "text": "char", "parent": 283, "children": [], "start_point": {"row": 79, "column": 13}, "end_point": {"row": 79, "column": 17}}, {"id": 285, "type": "pointer_declarator", "text": "*msg", "parent": 283, "children": [286, 287], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 22}}, {"id": 286, "type": "*", "text": "*", "parent": 285, "children": [], "start_point": {"row": 79, "column": 18}, "end_point": {"row": 79, "column": 19}}, {"id": 287, "type": "identifier", "text": "msg", "parent": 285, "children": [], "start_point": {"row": 79, "column": 19}, "end_point": {"row": 79, "column": 22}}, {"id": 288, "type": "parameter_declaration", "text": "const char *prefix", "parent": 277, "children": [289, 290], "start_point": {"row": 79, "column": 24}, "end_point": {"row": 79, "column": 42}}, {"id": 289, "type": "primitive_type", "text": "char", "parent": 288, "children": [], "start_point": {"row": 79, "column": 30}, "end_point": {"row": 79, "column": 34}}, {"id": 290, "type": "pointer_declarator", "text": "*prefix", "parent": 288, "children": [291, 292], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 42}}, {"id": 291, "type": "*", "text": "*", "parent": 290, "children": [], "start_point": {"row": 79, "column": 35}, "end_point": {"row": 79, "column": 36}}, {"id": 292, "type": "identifier", "text": "prefix", "parent": 290, "children": [], "start_point": {"row": 79, "column": 36}, "end_point": {"row": 79, "column": 42}}, {"id": 293, "type": "parameter_declaration", "text": "const void *buf", "parent": 277, "children": [294, 295], "start_point": {"row": 80, "column": 7}, "end_point": {"row": 80, "column": 22}}, {"id": 294, "type": "primitive_type", "text": "void", "parent": 293, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 17}}, {"id": 295, "type": "pointer_declarator", "text": "*buf", "parent": 293, "children": [296, 297], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 22}}, {"id": 296, "type": "*", "text": "*", "parent": 295, "children": [], "start_point": {"row": 80, "column": 18}, "end_point": {"row": 80, "column": 19}}, {"id": 297, "type": "identifier", "text": "buf", "parent": 295, "children": [], "start_point": {"row": 80, "column": 19}, "end_point": {"row": 80, "column": 22}}, {"id": 298, "type": "parameter_declaration", "text": "size_t len", "parent": 277, "children": [299, 300], "start_point": {"row": 80, "column": 24}, "end_point": {"row": 80, "column": 34}}, {"id": 299, "type": "primitive_type", "text": "size_t", "parent": 298, "children": [], "start_point": {"row": 80, "column": 24}, "end_point": {"row": 80, "column": 30}}, {"id": 300, "type": "identifier", "text": "len", "parent": 298, "children": [], "start_point": {"row": 80, "column": 31}, "end_point": {"row": 80, "column": 34}}, {"id": 301, "type": "if_statement", "text": "if (debug_mask & mask) {\n\t\tif (msg)\n\t\t\tath6kl_dbg(mask, \"%s\\n\", msg);\n\n\t\tprint_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n\t}", "parent": 271, "children": [302], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 87, "column": 2}}, {"id": 302, "type": "parenthesized_expression", "text": "(debug_mask & mask)", "parent": 301, "children": [303], "start_point": {"row": 82, "column": 4}, "end_point": {"row": 82, "column": 23}}, {"id": 303, "type": "binary_expression", "text": "debug_mask & mask", "parent": 302, "children": [304, 305], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 22}}, {"id": 304, "type": "identifier", "text": "debug_mask", "parent": 303, "children": [], "start_point": {"row": 82, "column": 5}, "end_point": {"row": 82, "column": 15}}, {"id": 305, "type": "identifier", "text": "mask", "parent": 303, "children": [], "start_point": {"row": 82, "column": 18}, "end_point": {"row": 82, "column": 22}}, {"id": 306, "type": "if_statement", "text": "if (msg)\n\t\t\tath6kl_dbg(mask, \"%s\\n\", msg);", "parent": 301, "children": [307], "start_point": {"row": 83, "column": 2}, "end_point": {"row": 84, "column": 33}}, {"id": 307, "type": "parenthesized_expression", "text": "(msg)", "parent": 306, "children": [308], "start_point": {"row": 83, "column": 5}, "end_point": {"row": 83, "column": 10}}, {"id": 308, "type": "identifier", "text": "msg", "parent": 307, "children": [], "start_point": {"row": 83, "column": 6}, "end_point": {"row": 83, "column": 9}}, {"id": 309, "type": "call_expression", "text": "ath6kl_dbg(mask, \"%s\\n\", msg)", "parent": 306, "children": [310, 311], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 32}}, {"id": 310, "type": "identifier", "text": "ath6kl_dbg", "parent": 309, "children": [], "start_point": {"row": 84, "column": 3}, "end_point": {"row": 84, "column": 13}}, {"id": 311, "type": "argument_list", "text": "(mask, \"%s\\n\", msg)", "parent": 309, "children": [312, 313, 315], "start_point": {"row": 84, "column": 13}, "end_point": {"row": 84, "column": 32}}, {"id": 312, "type": "identifier", "text": "mask", "parent": 311, "children": [], "start_point": {"row": 84, "column": 14}, "end_point": {"row": 84, "column": 18}}, {"id": 313, "type": "string_literal", "text": "\"%s\\n\"", "parent": 311, "children": [314], "start_point": {"row": 84, "column": 20}, "end_point": {"row": 84, "column": 26}}, {"id": 314, "type": "escape_sequence", "text": "\\n", "parent": 313, "children": [], "start_point": {"row": 84, "column": 23}, "end_point": {"row": 84, "column": 25}}, {"id": 315, "type": "identifier", "text": "msg", "parent": 311, "children": [], "start_point": {"row": 84, "column": 28}, "end_point": {"row": 84, "column": 31}}, {"id": 316, "type": "call_expression", "text": "print_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len)", "parent": 301, "children": [317, 318], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 60}}, {"id": 317, "type": "identifier", "text": "print_hex_dump_bytes", "parent": 316, "children": [], "start_point": {"row": 86, "column": 2}, "end_point": {"row": 86, "column": 22}}, {"id": 318, "type": "argument_list", "text": "(prefix, DUMP_PREFIX_OFFSET, buf, len)", "parent": 316, "children": [319, 320, 321, 322], "start_point": {"row": 86, "column": 22}, "end_point": {"row": 86, "column": 60}}, {"id": 319, "type": "identifier", "text": "prefix", "parent": 318, "children": [], "start_point": {"row": 86, "column": 23}, "end_point": {"row": 86, "column": 29}}, {"id": 320, "type": "identifier", "text": "DUMP_PREFIX_OFFSET", "parent": 318, "children": [], "start_point": {"row": 86, "column": 31}, "end_point": {"row": 86, "column": 49}}, {"id": 321, "type": "identifier", "text": "buf", "parent": 318, "children": [], "start_point": {"row": 86, "column": 51}, "end_point": {"row": 86, "column": 54}}, {"id": 322, "type": "identifier", "text": "len", "parent": 318, "children": [], "start_point": {"row": 86, "column": 56}, "end_point": {"row": 86, "column": 59}}, {"id": 323, "type": "declaration", "text": "void ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\t\t struct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\t\t struct ath6kl_irq_enable_reg *irq_en_reg);", "parent": 261, "children": [324, 325], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 92, "column": 48}}, {"id": 324, "type": "primitive_type", "text": "void", "parent": 323, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 4}}, {"id": 325, "type": "function_declarator", "text": "ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\t\t struct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\t\t struct ath6kl_irq_enable_reg *irq_en_reg)", "parent": 323, "children": [326, 327], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 92, "column": 47}}, {"id": 326, "type": "identifier", "text": "ath6kl_dump_registers", "parent": 325, "children": [], "start_point": {"row": 90, "column": 5}, "end_point": {"row": 90, "column": 26}}, {"id": 327, "type": "parameter_list", "text": "(struct ath6kl_device *dev,\n\t\t\t struct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\t\t struct ath6kl_irq_enable_reg *irq_en_reg)", "parent": 325, "children": [328, 335, 342], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 92, "column": 47}}, {"id": 328, "type": "parameter_declaration", "text": "struct ath6kl_device *dev", "parent": 327, "children": [329, 332], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 52}}, {"id": 329, "type": "struct_specifier", "text": "struct ath6kl_device", "parent": 328, "children": [330, 331], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 47}}, {"id": 330, "type": "struct", "text": "struct", "parent": 329, "children": [], "start_point": {"row": 90, "column": 27}, "end_point": {"row": 90, "column": 33}}, {"id": 331, "type": "type_identifier", "text": "ath6kl_device", "parent": 329, "children": [], "start_point": {"row": 90, "column": 34}, "end_point": {"row": 90, "column": 47}}, {"id": 332, "type": "pointer_declarator", "text": "*dev", "parent": 328, "children": [333, 334], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 52}}, {"id": 333, "type": "*", "text": "*", "parent": 332, "children": [], "start_point": {"row": 90, "column": 48}, "end_point": {"row": 90, "column": 49}}, {"id": 334, "type": "identifier", "text": "dev", "parent": 332, "children": [], "start_point": {"row": 90, "column": 49}, "end_point": {"row": 90, "column": 52}}, {"id": 335, "type": "parameter_declaration", "text": "struct ath6kl_irq_proc_registers *irq_proc_reg", "parent": 327, "children": [336, 339], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 52}}, {"id": 336, "type": "struct_specifier", "text": "struct ath6kl_irq_proc_registers", "parent": 335, "children": [337, 338], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 38}}, {"id": 337, "type": "struct", "text": "struct", "parent": 336, "children": [], "start_point": {"row": 91, "column": 6}, "end_point": {"row": 91, "column": 12}}, {"id": 338, "type": "type_identifier", "text": "ath6kl_irq_proc_registers", "parent": 336, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 38}}, {"id": 339, "type": "pointer_declarator", "text": "*irq_proc_reg", "parent": 335, "children": [340, 341], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 52}}, {"id": 340, "type": "*", "text": "*", "parent": 339, "children": [], "start_point": {"row": 91, "column": 39}, "end_point": {"row": 91, "column": 40}}, {"id": 341, "type": "identifier", "text": "irq_proc_reg", "parent": 339, "children": [], "start_point": {"row": 91, "column": 40}, "end_point": {"row": 91, "column": 52}}, {"id": 342, "type": "parameter_declaration", "text": "struct ath6kl_irq_enable_reg *irq_en_reg", "parent": 327, "children": [343, 346], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 46}}, {"id": 343, "type": "struct_specifier", "text": "struct ath6kl_irq_enable_reg", "parent": 342, "children": [344, 345], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 34}}, {"id": 344, "type": "struct", "text": "struct", "parent": 343, "children": [], "start_point": {"row": 92, "column": 6}, "end_point": {"row": 92, "column": 12}}, {"id": 345, "type": "type_identifier", "text": "ath6kl_irq_enable_reg", "parent": 343, "children": [], "start_point": {"row": 92, "column": 13}, "end_point": {"row": 92, "column": 34}}, {"id": 346, "type": "pointer_declarator", "text": "*irq_en_reg", "parent": 342, "children": [347, 348], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 46}}, {"id": 347, "type": "*", "text": "*", "parent": 346, "children": [], "start_point": {"row": 92, "column": 35}, "end_point": {"row": 92, "column": 36}}, {"id": 348, "type": "identifier", "text": "irq_en_reg", "parent": 346, "children": [], "start_point": {"row": 92, "column": 36}, "end_point": {"row": 92, "column": 46}}, {"id": 349, "type": "declaration", "text": "void dump_cred_dist_stats(struct htc_target *target);", "parent": 261, "children": [350, 351], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 53}}, {"id": 350, "type": "primitive_type", "text": "void", "parent": 349, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 4}}, {"id": 351, "type": "function_declarator", "text": "dump_cred_dist_stats(struct htc_target *target)", "parent": 349, "children": [352, 353], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 52}}, {"id": 352, "type": "identifier", "text": "dump_cred_dist_stats", "parent": 351, "children": [], "start_point": {"row": 93, "column": 5}, "end_point": {"row": 93, "column": 25}}, {"id": 353, "type": "parameter_list", "text": "(struct htc_target *target)", "parent": 351, "children": [354], "start_point": {"row": 93, "column": 25}, "end_point": {"row": 93, "column": 52}}, {"id": 354, "type": "parameter_declaration", "text": "struct htc_target *target", "parent": 353, "children": [355, 358], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 51}}, {"id": 355, "type": "struct_specifier", "text": "struct htc_target", "parent": 354, "children": [356, 357], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 43}}, {"id": 356, "type": "struct", "text": "struct", "parent": 355, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 32}}, {"id": 357, "type": "type_identifier", "text": "htc_target", "parent": 355, "children": [], "start_point": {"row": 93, "column": 33}, "end_point": {"row": 93, "column": 43}}, {"id": 358, "type": "pointer_declarator", "text": "*target", "parent": 354, "children": [359, 360], "start_point": {"row": 93, "column": 44}, "end_point": {"row": 93, "column": 51}}, {"id": 359, "type": "*", "text": "*", "parent": 358, "children": [], "start_point": {"row": 93, "column": 44}, "end_point": {"row": 93, "column": 45}}, {"id": 360, "type": "identifier", "text": "target", "parent": 358, "children": [], "start_point": {"row": 93, "column": 45}, "end_point": {"row": 93, "column": 51}}, {"id": 361, "type": "declaration", "text": "void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);", "parent": 261, "children": [362, 363], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 78}}, {"id": 362, "type": "primitive_type", "text": "void", "parent": 361, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 4}}, {"id": 363, "type": "function_declarator", "text": "ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len)", "parent": 361, "children": [364, 365], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 77}}, {"id": 364, "type": "identifier", "text": "ath6kl_debug_fwlog_event", "parent": 363, "children": [], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 29}}, {"id": 365, "type": "parameter_list", "text": "(struct ath6kl *ar, const void *buf, size_t len)", "parent": 363, "children": [366, 373, 378], "start_point": {"row": 94, "column": 29}, "end_point": {"row": 94, "column": 77}}, {"id": 366, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 365, "children": [367, 370], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 47}}, {"id": 367, "type": "struct_specifier", "text": "struct ath6kl", "parent": 366, "children": [368, 369], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 43}}, {"id": 368, "type": "struct", "text": "struct", "parent": 367, "children": [], "start_point": {"row": 94, "column": 30}, "end_point": {"row": 94, "column": 36}}, {"id": 369, "type": "type_identifier", "text": "ath6kl", "parent": 367, "children": [], "start_point": {"row": 94, "column": 37}, "end_point": {"row": 94, "column": 43}}, {"id": 370, "type": "pointer_declarator", "text": "*ar", "parent": 366, "children": [371, 372], "start_point": {"row": 94, "column": 44}, "end_point": {"row": 94, "column": 47}}, {"id": 371, "type": "*", "text": "*", "parent": 370, "children": [], "start_point": {"row": 94, "column": 44}, "end_point": {"row": 94, "column": 45}}, {"id": 372, "type": "identifier", "text": "ar", "parent": 370, "children": [], "start_point": {"row": 94, "column": 45}, "end_point": {"row": 94, "column": 47}}, {"id": 373, "type": "parameter_declaration", "text": "const void *buf", "parent": 365, "children": [374, 375], "start_point": {"row": 94, "column": 49}, "end_point": {"row": 94, "column": 64}}, {"id": 374, "type": "primitive_type", "text": "void", "parent": 373, "children": [], "start_point": {"row": 94, "column": 55}, "end_point": {"row": 94, "column": 59}}, {"id": 375, "type": "pointer_declarator", "text": "*buf", "parent": 373, "children": [376, 377], "start_point": {"row": 94, "column": 60}, "end_point": {"row": 94, "column": 64}}, {"id": 376, "type": "*", "text": "*", "parent": 375, "children": [], "start_point": {"row": 94, "column": 60}, "end_point": {"row": 94, "column": 61}}, {"id": 377, "type": "identifier", "text": "buf", "parent": 375, "children": [], "start_point": {"row": 94, "column": 61}, "end_point": {"row": 94, "column": 64}}, {"id": 378, "type": "parameter_declaration", "text": "size_t len", "parent": 365, "children": [379, 380], "start_point": {"row": 94, "column": 66}, "end_point": {"row": 94, "column": 76}}, {"id": 379, "type": "primitive_type", "text": "size_t", "parent": 378, "children": [], "start_point": {"row": 94, "column": 66}, "end_point": {"row": 94, "column": 72}}, {"id": 380, "type": "identifier", "text": "len", "parent": 378, "children": [], "start_point": {"row": 94, "column": 73}, "end_point": {"row": 94, "column": 76}}, {"id": 381, "type": "declaration", "text": "void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);", "parent": 261, "children": [382, 383], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 62}}, {"id": 382, "type": "primitive_type", "text": "void", "parent": 381, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 4}}, {"id": 383, "type": "function_declarator", "text": "ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)", "parent": 381, "children": [384, 385], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 61}}, {"id": 384, "type": "identifier", "text": "ath6kl_debug_war", "parent": 383, "children": [], "start_point": {"row": 95, "column": 5}, "end_point": {"row": 95, "column": 21}}, {"id": 385, "type": "parameter_list", "text": "(struct ath6kl *ar, enum ath6kl_war war)", "parent": 383, "children": [386, 393], "start_point": {"row": 95, "column": 21}, "end_point": {"row": 95, "column": 61}}, {"id": 386, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 385, "children": [387, 390], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 39}}, {"id": 387, "type": "struct_specifier", "text": "struct ath6kl", "parent": 386, "children": [388, 389], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 35}}, {"id": 388, "type": "struct", "text": "struct", "parent": 387, "children": [], "start_point": {"row": 95, "column": 22}, "end_point": {"row": 95, "column": 28}}, {"id": 389, "type": "type_identifier", "text": "ath6kl", "parent": 387, "children": [], "start_point": {"row": 95, "column": 29}, "end_point": {"row": 95, "column": 35}}, {"id": 390, "type": "pointer_declarator", "text": "*ar", "parent": 386, "children": [391, 392], "start_point": {"row": 95, "column": 36}, "end_point": {"row": 95, "column": 39}}, {"id": 391, "type": "*", "text": "*", "parent": 390, "children": [], "start_point": {"row": 95, "column": 36}, "end_point": {"row": 95, "column": 37}}, {"id": 392, "type": "identifier", "text": "ar", "parent": 390, "children": [], "start_point": {"row": 95, "column": 37}, "end_point": {"row": 95, "column": 39}}, {"id": 393, "type": "parameter_declaration", "text": "enum ath6kl_war war", "parent": 385, "children": [394, 397], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 60}}, {"id": 394, "type": "enum_specifier", "text": "enum ath6kl_war", "parent": 393, "children": [395, 396], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 56}}, {"id": 395, "type": "enum", "text": "enum", "parent": 394, "children": [], "start_point": {"row": 95, "column": 41}, "end_point": {"row": 95, "column": 45}}, {"id": 396, "type": "type_identifier", "text": "ath6kl_war", "parent": 394, "children": [], "start_point": {"row": 95, "column": 46}, "end_point": {"row": 95, "column": 56}}, {"id": 397, "type": "identifier", "text": "war", "parent": 393, "children": [], "start_point": {"row": 95, "column": 57}, "end_point": {"row": 95, "column": 60}}, {"id": 398, "type": "declaration", "text": "int ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n\t\t\t\tsize_t len);", "parent": 261, "children": [399, 400], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 16}}, {"id": 399, "type": "primitive_type", "text": "int", "parent": 398, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 3}}, {"id": 400, "type": "function_declarator", "text": "ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n\t\t\t\tsize_t len)", "parent": 398, "children": [401, 402], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 97, "column": 15}}, {"id": 401, "type": "identifier", "text": "ath6kl_debug_roam_tbl_event", "parent": 400, "children": [], "start_point": {"row": 96, "column": 4}, "end_point": {"row": 96, "column": 31}}, {"id": 402, "type": "parameter_list", "text": "(struct ath6kl *ar, const void *buf,\n\t\t\t\tsize_t len)", "parent": 400, "children": [403, 410, 415], "start_point": {"row": 96, "column": 31}, "end_point": {"row": 97, "column": 15}}, {"id": 403, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 402, "children": [404, 407], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 49}}, {"id": 404, "type": "struct_specifier", "text": "struct ath6kl", "parent": 403, "children": [405, 406], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 45}}, {"id": 405, "type": "struct", "text": "struct", "parent": 404, "children": [], "start_point": {"row": 96, "column": 32}, "end_point": {"row": 96, "column": 38}}, {"id": 406, "type": "type_identifier", "text": "ath6kl", "parent": 404, "children": [], "start_point": {"row": 96, "column": 39}, "end_point": {"row": 96, "column": 45}}, {"id": 407, "type": "pointer_declarator", "text": "*ar", "parent": 403, "children": [408, 409], "start_point": {"row": 96, "column": 46}, "end_point": {"row": 96, "column": 49}}, {"id": 408, "type": "*", "text": "*", "parent": 407, "children": [], "start_point": {"row": 96, "column": 46}, "end_point": {"row": 96, "column": 47}}, {"id": 409, "type": "identifier", "text": "ar", "parent": 407, "children": [], "start_point": {"row": 96, "column": 47}, "end_point": {"row": 96, "column": 49}}, {"id": 410, "type": "parameter_declaration", "text": "const void *buf", "parent": 402, "children": [411, 412], "start_point": {"row": 96, "column": 51}, "end_point": {"row": 96, "column": 66}}, {"id": 411, "type": "primitive_type", "text": "void", "parent": 410, "children": [], "start_point": {"row": 96, "column": 57}, "end_point": {"row": 96, "column": 61}}, {"id": 412, "type": "pointer_declarator", "text": "*buf", "parent": 410, "children": [413, 414], "start_point": {"row": 96, "column": 62}, "end_point": {"row": 96, "column": 66}}, {"id": 413, "type": "*", "text": "*", "parent": 412, "children": [], "start_point": {"row": 96, "column": 62}, "end_point": {"row": 96, "column": 63}}, {"id": 414, "type": "identifier", "text": "buf", "parent": 412, "children": [], "start_point": {"row": 96, "column": 63}, "end_point": {"row": 96, "column": 66}}, {"id": 415, "type": "parameter_declaration", "text": "size_t len", "parent": 402, "children": [416, 417], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 14}}, {"id": 416, "type": "primitive_type", "text": "size_t", "parent": 415, "children": [], "start_point": {"row": 97, "column": 4}, "end_point": {"row": 97, "column": 10}}, {"id": 417, "type": "identifier", "text": "len", "parent": 415, "children": [], "start_point": {"row": 97, "column": 11}, "end_point": {"row": 97, "column": 14}}, {"id": 418, "type": "declaration", "text": "void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive);", "parent": 261, "children": [419, 420], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 65}}, {"id": 419, "type": "primitive_type", "text": "void", "parent": 418, "children": [], "start_point": {"row": 98, "column": 0}, "end_point": {"row": 98, "column": 4}}, {"id": 420, "type": "function_declarator", "text": "ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)", "parent": 418, "children": [421, 422], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 64}}, {"id": 421, "type": "identifier", "text": "ath6kl_debug_set_keepalive", "parent": 420, "children": [], "start_point": {"row": 98, "column": 5}, "end_point": {"row": 98, "column": 31}}, {"id": 422, "type": "parameter_list", "text": "(struct ath6kl *ar, u8 keepalive)", "parent": 420, "children": [423, 430], "start_point": {"row": 98, "column": 31}, "end_point": {"row": 98, "column": 64}}, {"id": 423, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 422, "children": [424, 427], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 49}}, {"id": 424, "type": "struct_specifier", "text": "struct ath6kl", "parent": 423, "children": [425, 426], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 45}}, {"id": 425, "type": "struct", "text": "struct", "parent": 424, "children": [], "start_point": {"row": 98, "column": 32}, "end_point": {"row": 98, "column": 38}}, {"id": 426, "type": "type_identifier", "text": "ath6kl", "parent": 424, "children": [], "start_point": {"row": 98, "column": 39}, "end_point": {"row": 98, "column": 45}}, {"id": 427, "type": "pointer_declarator", "text": "*ar", "parent": 423, "children": [428, 429], "start_point": {"row": 98, "column": 46}, "end_point": {"row": 98, "column": 49}}, {"id": 428, "type": "*", "text": "*", "parent": 427, "children": [], "start_point": {"row": 98, "column": 46}, "end_point": {"row": 98, "column": 47}}, {"id": 429, "type": "identifier", "text": "ar", "parent": 427, "children": [], "start_point": {"row": 98, "column": 47}, "end_point": {"row": 98, "column": 49}}, {"id": 430, "type": "parameter_declaration", "text": "u8 keepalive", "parent": 422, "children": [431, 432], "start_point": {"row": 98, "column": 51}, "end_point": {"row": 98, "column": 63}}, {"id": 431, "type": "type_identifier", "text": "u8", "parent": 430, "children": [], "start_point": {"row": 98, "column": 51}, "end_point": {"row": 98, "column": 53}}, {"id": 432, "type": "identifier", "text": "keepalive", "parent": 430, "children": [], "start_point": {"row": 98, "column": 54}, "end_point": {"row": 98, "column": 63}}, {"id": 433, "type": "declaration", "text": "void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout);", "parent": 261, "children": [434, 435], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 72}}, {"id": 434, "type": "primitive_type", "text": "void", "parent": 433, "children": [], "start_point": {"row": 99, "column": 0}, "end_point": {"row": 99, "column": 4}}, {"id": 435, "type": "function_declarator", "text": "ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout)", "parent": 433, "children": [436, 437], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 71}}, {"id": 436, "type": "identifier", "text": "ath6kl_debug_set_disconnect_timeout", "parent": 435, "children": [], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 40}}, {"id": 437, "type": "parameter_list", "text": "(struct ath6kl *ar, u8 timeout)", "parent": 435, "children": [438, 445], "start_point": {"row": 99, "column": 40}, "end_point": {"row": 99, "column": 71}}, {"id": 438, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 437, "children": [439, 442], "start_point": {"row": 99, "column": 41}, "end_point": {"row": 99, "column": 58}}, {"id": 439, "type": "struct_specifier", "text": "struct ath6kl", "parent": 438, "children": [440, 441], "start_point": {"row": 99, "column": 41}, "end_point": {"row": 99, "column": 54}}, {"id": 440, "type": "struct", "text": "struct", "parent": 439, "children": [], "start_point": {"row": 99, "column": 41}, "end_point": {"row": 99, "column": 47}}, {"id": 441, "type": "type_identifier", "text": "ath6kl", "parent": 439, "children": [], "start_point": {"row": 99, "column": 48}, "end_point": {"row": 99, "column": 54}}, {"id": 442, "type": "pointer_declarator", "text": "*ar", "parent": 438, "children": [443, 444], "start_point": {"row": 99, "column": 55}, "end_point": {"row": 99, "column": 58}}, {"id": 443, "type": "*", "text": "*", "parent": 442, "children": [], "start_point": {"row": 99, "column": 55}, "end_point": {"row": 99, "column": 56}}, {"id": 444, "type": "identifier", "text": "ar", "parent": 442, "children": [], "start_point": {"row": 99, "column": 56}, "end_point": {"row": 99, "column": 58}}, {"id": 445, "type": "parameter_declaration", "text": "u8 timeout", "parent": 437, "children": [446, 447], "start_point": {"row": 99, "column": 60}, "end_point": {"row": 99, "column": 70}}, {"id": 446, "type": "type_identifier", "text": "u8", "parent": 445, "children": [], "start_point": {"row": 99, "column": 60}, "end_point": {"row": 99, "column": 62}}, {"id": 447, "type": "identifier", "text": "timeout", "parent": 445, "children": [], "start_point": {"row": 99, "column": 63}, "end_point": {"row": 99, "column": 70}}, {"id": 448, "type": "declaration", "text": "int ath6kl_debug_init(struct ath6kl *ar);", "parent": 261, "children": [449, 450], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 41}}, {"id": 449, "type": "primitive_type", "text": "int", "parent": 448, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 3}}, {"id": 450, "type": "function_declarator", "text": "ath6kl_debug_init(struct ath6kl *ar)", "parent": 448, "children": [451, 452], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 40}}, {"id": 451, "type": "identifier", "text": "ath6kl_debug_init", "parent": 450, "children": [], "start_point": {"row": 100, "column": 4}, "end_point": {"row": 100, "column": 21}}, {"id": 452, "type": "parameter_list", "text": "(struct ath6kl *ar)", "parent": 450, "children": [453], "start_point": {"row": 100, "column": 21}, "end_point": {"row": 100, "column": 40}}, {"id": 453, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 452, "children": [454, 457], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 39}}, {"id": 454, "type": "struct_specifier", "text": "struct ath6kl", "parent": 453, "children": [455, 456], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 35}}, {"id": 455, "type": "struct", "text": "struct", "parent": 454, "children": [], "start_point": {"row": 100, "column": 22}, "end_point": {"row": 100, "column": 28}}, {"id": 456, "type": "type_identifier", "text": "ath6kl", "parent": 454, "children": [], "start_point": {"row": 100, "column": 29}, "end_point": {"row": 100, "column": 35}}, {"id": 457, "type": "pointer_declarator", "text": "*ar", "parent": 453, "children": [458, 459], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 39}}, {"id": 458, "type": "*", "text": "*", "parent": 457, "children": [], "start_point": {"row": 100, "column": 36}, "end_point": {"row": 100, "column": 37}}, {"id": 459, "type": "identifier", "text": "ar", "parent": 457, "children": [], "start_point": {"row": 100, "column": 37}, "end_point": {"row": 100, "column": 39}}, {"id": 460, "type": "declaration", "text": "void ath6kl_debug_cleanup(struct ath6kl *ar);", "parent": 261, "children": [461, 462], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 45}}, {"id": 461, "type": "primitive_type", "text": "void", "parent": 460, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 4}}, {"id": 462, "type": "function_declarator", "text": "ath6kl_debug_cleanup(struct ath6kl *ar)", "parent": 460, "children": [463, 464], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 44}}, {"id": 463, "type": "identifier", "text": "ath6kl_debug_cleanup", "parent": 462, "children": [], "start_point": {"row": 101, "column": 5}, "end_point": {"row": 101, "column": 25}}, {"id": 464, "type": "parameter_list", "text": "(struct ath6kl *ar)", "parent": 462, "children": [465], "start_point": {"row": 101, "column": 25}, "end_point": {"row": 101, "column": 44}}, {"id": 465, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 464, "children": [466, 469], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 43}}, {"id": 466, "type": "struct_specifier", "text": "struct ath6kl", "parent": 465, "children": [467, 468], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 39}}, {"id": 467, "type": "struct", "text": "struct", "parent": 466, "children": [], "start_point": {"row": 101, "column": 26}, "end_point": {"row": 101, "column": 32}}, {"id": 468, "type": "type_identifier", "text": "ath6kl", "parent": 466, "children": [], "start_point": {"row": 101, "column": 33}, "end_point": {"row": 101, "column": 39}}, {"id": 469, "type": "pointer_declarator", "text": "*ar", "parent": 465, "children": [470, 471], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 43}}, {"id": 470, "type": "*", "text": "*", "parent": 469, "children": [], "start_point": {"row": 101, "column": 40}, "end_point": {"row": 101, "column": 41}}, {"id": 471, "type": "identifier", "text": "ar", "parent": 469, "children": [], "start_point": {"row": 101, "column": 41}, "end_point": {"row": 101, "column": 43}}, {"id": 472, "type": "preproc_else", "text": "#else\nstatic inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\tstruct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}\nstatic inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}\n\nstatic inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}\n\nstatic inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}\n\nstatic inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)\n{\n}\n\nstatic inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}", "parent": 261, "children": [473, 474, 493, 523, 551, 565, 587, 606, 630, 647, 664, 680], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 157, "column": 1}}, {"id": 473, "type": "#else", "text": "#else", "parent": 472, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 5}}, {"id": 474, "type": "function_definition", "text": "static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)\n{\n\treturn 0;\n}", "parent": 472, "children": [475, 477, 478], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 108, "column": 1}}, {"id": 475, "type": "storage_class_specifier", "text": "inline", "parent": 474, "children": [476], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 13}}, {"id": 476, "type": "inline", "text": "inline", "parent": 475, "children": [], "start_point": {"row": 104, "column": 7}, "end_point": {"row": 104, "column": 13}}, {"id": 477, "type": "primitive_type", "text": "int", "parent": 474, "children": [], "start_point": {"row": 104, "column": 14}, "end_point": {"row": 104, "column": 17}}, {"id": 478, "type": "function_declarator", "text": "ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)", "parent": 474, "children": [479, 480], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 105, "column": 29}}, {"id": 479, "type": "identifier", "text": "ath6kl_dbg", "parent": 478, "children": [], "start_point": {"row": 104, "column": 18}, "end_point": {"row": 104, "column": 28}}, {"id": 480, "type": "parameter_list", "text": "(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)", "parent": 478, "children": [481, 486], "start_point": {"row": 104, "column": 28}, "end_point": {"row": 105, "column": 29}}, {"id": 481, "type": "parameter_declaration", "text": "enum ATH6K_DEBUG_MASK dbg_mask", "parent": 480, "children": [482, 485], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 59}}, {"id": 482, "type": "enum_specifier", "text": "enum ATH6K_DEBUG_MASK", "parent": 481, "children": [483, 484], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 50}}, {"id": 483, "type": "enum", "text": "enum", "parent": 482, "children": [], "start_point": {"row": 104, "column": 29}, "end_point": {"row": 104, "column": 33}}, {"id": 484, "type": "type_identifier", "text": "ATH6K_DEBUG_MASK", "parent": 482, "children": [], "start_point": {"row": 104, "column": 34}, "end_point": {"row": 104, "column": 50}}, {"id": 485, "type": "identifier", "text": "dbg_mask", "parent": 481, "children": [], "start_point": {"row": 104, "column": 51}, "end_point": {"row": 104, "column": 59}}, {"id": 486, "type": "parameter_declaration", "text": "const char *fmt", "parent": 480, "children": [487, 488], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 23}}, {"id": 487, "type": "primitive_type", "text": "char", "parent": 486, "children": [], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 18}}, {"id": 488, "type": "pointer_declarator", "text": "*fmt", "parent": 486, "children": [489, 490], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 23}}, {"id": 489, "type": "*", "text": "*", "parent": 488, "children": [], "start_point": {"row": 105, "column": 19}, "end_point": {"row": 105, "column": 20}}, {"id": 490, "type": "identifier", "text": "fmt", "parent": 488, "children": [], "start_point": {"row": 105, "column": 20}, "end_point": {"row": 105, "column": 23}}, {"id": 491, "type": "return_statement", "text": "return 0;", "parent": 474, "children": [492], "start_point": {"row": 107, "column": 1}, "end_point": {"row": 107, "column": 10}}, {"id": 492, "type": "number_literal", "text": "0", "parent": 491, "children": [], "start_point": {"row": 107, "column": 8}, "end_point": {"row": 107, "column": 9}}, {"id": 493, "type": "function_definition", "text": "static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n}", "parent": 472, "children": [494, 496, 497], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 114, "column": 1}}, {"id": 494, "type": "storage_class_specifier", "text": "inline", "parent": 493, "children": [495], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 13}}, {"id": 495, "type": "inline", "text": "inline", "parent": 494, "children": [], "start_point": {"row": 110, "column": 7}, "end_point": {"row": 110, "column": 13}}, {"id": 496, "type": "primitive_type", "text": "void", "parent": 493, "children": [], "start_point": {"row": 110, "column": 14}, "end_point": {"row": 110, "column": 18}}, {"id": 497, "type": "function_declarator", "text": "ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)", "parent": 493, "children": [498, 499], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 112, "column": 35}}, {"id": 498, "type": "identifier", "text": "ath6kl_dbg_dump", "parent": 497, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 34}}, {"id": 499, "type": "parameter_list", "text": "(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)", "parent": 497, "children": [500, 505, 510, 515, 520], "start_point": {"row": 110, "column": 34}, "end_point": {"row": 112, "column": 35}}, {"id": 500, "type": "parameter_declaration", "text": "enum ATH6K_DEBUG_MASK mask", "parent": 499, "children": [501, 504], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 61}}, {"id": 501, "type": "enum_specifier", "text": "enum ATH6K_DEBUG_MASK", "parent": 500, "children": [502, 503], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 56}}, {"id": 502, "type": "enum", "text": "enum", "parent": 501, "children": [], "start_point": {"row": 110, "column": 35}, "end_point": {"row": 110, "column": 39}}, {"id": 503, "type": "type_identifier", "text": "ATH6K_DEBUG_MASK", "parent": 501, "children": [], "start_point": {"row": 110, "column": 40}, "end_point": {"row": 110, "column": 56}}, {"id": 504, "type": "identifier", "text": "mask", "parent": 500, "children": [], "start_point": {"row": 110, "column": 57}, "end_point": {"row": 110, "column": 61}}, {"id": 505, "type": "parameter_declaration", "text": "const char *msg", "parent": 499, "children": [506, 507], "start_point": {"row": 111, "column": 7}, "end_point": {"row": 111, "column": 22}}, {"id": 506, "type": "primitive_type", "text": "char", "parent": 505, "children": [], "start_point": {"row": 111, "column": 13}, "end_point": {"row": 111, "column": 17}}, {"id": 507, "type": "pointer_declarator", "text": "*msg", "parent": 505, "children": [508, 509], "start_point": {"row": 111, "column": 18}, "end_point": {"row": 111, "column": 22}}, {"id": 508, "type": "*", "text": "*", "parent": 507, "children": [], "start_point": {"row": 111, "column": 18}, "end_point": {"row": 111, "column": 19}}, {"id": 509, "type": "identifier", "text": "msg", "parent": 507, "children": [], "start_point": {"row": 111, "column": 19}, "end_point": {"row": 111, "column": 22}}, {"id": 510, "type": "parameter_declaration", "text": "const char *prefix", "parent": 499, "children": [511, 512], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 42}}, {"id": 511, "type": "primitive_type", "text": "char", "parent": 510, "children": [], "start_point": {"row": 111, "column": 30}, "end_point": {"row": 111, "column": 34}}, {"id": 512, "type": "pointer_declarator", "text": "*prefix", "parent": 510, "children": [513, 514], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 42}}, {"id": 513, "type": "*", "text": "*", "parent": 512, "children": [], "start_point": {"row": 111, "column": 35}, "end_point": {"row": 111, "column": 36}}, {"id": 514, "type": "identifier", "text": "prefix", "parent": 512, "children": [], "start_point": {"row": 111, "column": 36}, "end_point": {"row": 111, "column": 42}}, {"id": 515, "type": "parameter_declaration", "text": "const void *buf", "parent": 499, "children": [516, 517], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 22}}, {"id": 516, "type": "primitive_type", "text": "void", "parent": 515, "children": [], "start_point": {"row": 112, "column": 13}, "end_point": {"row": 112, "column": 17}}, {"id": 517, "type": "pointer_declarator", "text": "*buf", "parent": 515, "children": [518, 519], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 22}}, {"id": 518, "type": "*", "text": "*", "parent": 517, "children": [], "start_point": {"row": 112, "column": 18}, "end_point": {"row": 112, "column": 19}}, {"id": 519, "type": "identifier", "text": "buf", "parent": 517, "children": [], "start_point": {"row": 112, "column": 19}, "end_point": {"row": 112, "column": 22}}, {"id": 520, "type": "parameter_declaration", "text": "size_t len", "parent": 499, "children": [521, 522], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 34}}, {"id": 521, "type": "primitive_type", "text": "size_t", "parent": 520, "children": [], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 30}}, {"id": 522, "type": "identifier", "text": "len", "parent": 520, "children": [], "start_point": {"row": 112, "column": 31}, "end_point": {"row": 112, "column": 34}}, {"id": 523, "type": "function_definition", "text": "static inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\tstruct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}", "parent": 472, "children": [524, 526, 527], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 121, "column": 1}}, {"id": 524, "type": "storage_class_specifier", "text": "inline", "parent": 523, "children": [525], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 13}}, {"id": 525, "type": "inline", "text": "inline", "parent": 524, "children": [], "start_point": {"row": 116, "column": 7}, "end_point": {"row": 116, "column": 13}}, {"id": 526, "type": "primitive_type", "text": "void", "parent": 523, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 18}}, {"id": 527, "type": "function_declarator", "text": "ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\tstruct ath6kl_irq_enable_reg *irq_en_reg)", "parent": 523, "children": [528, 529], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 118, "column": 43}}, {"id": 528, "type": "identifier", "text": "ath6kl_dump_registers", "parent": 527, "children": [], "start_point": {"row": 116, "column": 19}, "end_point": {"row": 116, "column": 40}}, {"id": 529, "type": "parameter_list", "text": "(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\tstruct ath6kl_irq_enable_reg *irq_en_reg)", "parent": 527, "children": [530, 537, 544], "start_point": {"row": 116, "column": 40}, "end_point": {"row": 118, "column": 43}}, {"id": 530, "type": "parameter_declaration", "text": "struct ath6kl_device *dev", "parent": 529, "children": [531, 534], "start_point": {"row": 116, "column": 41}, "end_point": {"row": 116, "column": 66}}, {"id": 531, "type": "struct_specifier", "text": "struct ath6kl_device", "parent": 530, "children": [532, 533], "start_point": {"row": 116, "column": 41}, "end_point": {"row": 116, "column": 61}}, {"id": 532, "type": "struct", "text": "struct", "parent": 531, "children": [], "start_point": {"row": 116, "column": 41}, "end_point": {"row": 116, "column": 47}}, {"id": 533, "type": "type_identifier", "text": "ath6kl_device", "parent": 531, "children": [], "start_point": {"row": 116, "column": 48}, "end_point": {"row": 116, "column": 61}}, {"id": 534, "type": "pointer_declarator", "text": "*dev", "parent": 530, "children": [535, 536], "start_point": {"row": 116, "column": 62}, "end_point": {"row": 116, "column": 66}}, {"id": 535, "type": "*", "text": "*", "parent": 534, "children": [], "start_point": {"row": 116, "column": 62}, "end_point": {"row": 116, "column": 63}}, {"id": 536, "type": "identifier", "text": "dev", "parent": 534, "children": [], "start_point": {"row": 116, "column": 63}, "end_point": {"row": 116, "column": 66}}, {"id": 537, "type": "parameter_declaration", "text": "struct ath6kl_irq_proc_registers *irq_proc_reg", "parent": 529, "children": [538, 541], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 48}}, {"id": 538, "type": "struct_specifier", "text": "struct ath6kl_irq_proc_registers", "parent": 537, "children": [539, 540], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 34}}, {"id": 539, "type": "struct", "text": "struct", "parent": 538, "children": [], "start_point": {"row": 117, "column": 2}, "end_point": {"row": 117, "column": 8}}, {"id": 540, "type": "type_identifier", "text": "ath6kl_irq_proc_registers", "parent": 538, "children": [], "start_point": {"row": 117, "column": 9}, "end_point": {"row": 117, "column": 34}}, {"id": 541, "type": "pointer_declarator", "text": "*irq_proc_reg", "parent": 537, "children": [542, 543], "start_point": {"row": 117, "column": 35}, "end_point": {"row": 117, "column": 48}}, {"id": 542, "type": "*", "text": "*", "parent": 541, "children": [], "start_point": {"row": 117, "column": 35}, "end_point": {"row": 117, "column": 36}}, {"id": 543, "type": "identifier", "text": "irq_proc_reg", "parent": 541, "children": [], "start_point": {"row": 117, "column": 36}, "end_point": {"row": 117, "column": 48}}, {"id": 544, "type": "parameter_declaration", "text": "struct ath6kl_irq_enable_reg *irq_en_reg", "parent": 529, "children": [545, 548], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 42}}, {"id": 545, "type": "struct_specifier", "text": "struct ath6kl_irq_enable_reg", "parent": 544, "children": [546, 547], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 30}}, {"id": 546, "type": "struct", "text": "struct", "parent": 545, "children": [], "start_point": {"row": 118, "column": 2}, "end_point": {"row": 118, "column": 8}}, {"id": 547, "type": "type_identifier", "text": "ath6kl_irq_enable_reg", "parent": 545, "children": [], "start_point": {"row": 118, "column": 9}, "end_point": {"row": 118, "column": 30}}, {"id": 548, "type": "pointer_declarator", "text": "*irq_en_reg", "parent": 544, "children": [549, 550], "start_point": {"row": 118, "column": 31}, "end_point": {"row": 118, "column": 42}}, {"id": 549, "type": "*", "text": "*", "parent": 548, "children": [], "start_point": {"row": 118, "column": 31}, "end_point": {"row": 118, "column": 32}}, {"id": 550, "type": "identifier", "text": "irq_en_reg", "parent": 548, "children": [], "start_point": {"row": 118, "column": 32}, "end_point": {"row": 118, "column": 42}}, {"id": 551, "type": "function_definition", "text": "static inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}", "parent": 472, "children": [552, 554, 555], "start_point": {"row": 122, "column": 0}, "end_point": {"row": 124, "column": 1}}, {"id": 552, "type": "storage_class_specifier", "text": "inline", "parent": 551, "children": [553], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 13}}, {"id": 553, "type": "inline", "text": "inline", "parent": 552, "children": [], "start_point": {"row": 122, "column": 7}, "end_point": {"row": 122, "column": 13}}, {"id": 554, "type": "primitive_type", "text": "void", "parent": 551, "children": [], "start_point": {"row": 122, "column": 14}, "end_point": {"row": 122, "column": 18}}, {"id": 555, "type": "function_declarator", "text": "dump_cred_dist_stats(struct htc_target *target)", "parent": 551, "children": [556, 557], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 66}}, {"id": 556, "type": "identifier", "text": "dump_cred_dist_stats", "parent": 555, "children": [], "start_point": {"row": 122, "column": 19}, "end_point": {"row": 122, "column": 39}}, {"id": 557, "type": "parameter_list", "text": "(struct htc_target *target)", "parent": 555, "children": [558], "start_point": {"row": 122, "column": 39}, "end_point": {"row": 122, "column": 66}}, {"id": 558, "type": "parameter_declaration", "text": "struct htc_target *target", "parent": 557, "children": [559, 562], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 65}}, {"id": 559, "type": "struct_specifier", "text": "struct htc_target", "parent": 558, "children": [560, 561], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 57}}, {"id": 560, "type": "struct", "text": "struct", "parent": 559, "children": [], "start_point": {"row": 122, "column": 40}, "end_point": {"row": 122, "column": 46}}, {"id": 561, "type": "type_identifier", "text": "htc_target", "parent": 559, "children": [], "start_point": {"row": 122, "column": 47}, "end_point": {"row": 122, "column": 57}}, {"id": 562, "type": "pointer_declarator", "text": "*target", "parent": 558, "children": [563, 564], "start_point": {"row": 122, "column": 58}, "end_point": {"row": 122, "column": 65}}, {"id": 563, "type": "*", "text": "*", "parent": 562, "children": [], "start_point": {"row": 122, "column": 58}, "end_point": {"row": 122, "column": 59}}, {"id": 564, "type": "identifier", "text": "target", "parent": 562, "children": [], "start_point": {"row": 122, "column": 59}, "end_point": {"row": 122, "column": 65}}, {"id": 565, "type": "function_definition", "text": "static inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n}", "parent": 472, "children": [566, 568, 569], "start_point": {"row": 126, "column": 0}, "end_point": {"row": 129, "column": 1}}, {"id": 566, "type": "storage_class_specifier", "text": "inline", "parent": 565, "children": [567], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 13}}, {"id": 567, "type": "inline", "text": "inline", "parent": 566, "children": [], "start_point": {"row": 126, "column": 7}, "end_point": {"row": 126, "column": 13}}, {"id": 568, "type": "primitive_type", "text": "void", "parent": 565, "children": [], "start_point": {"row": 126, "column": 14}, "end_point": {"row": 126, "column": 18}}, {"id": 569, "type": "function_declarator", "text": "ath6kl_debug_fwlog_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)", "parent": 565, "children": [570, 571], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 127, "column": 37}}, {"id": 570, "type": "identifier", "text": "ath6kl_debug_fwlog_event", "parent": 569, "children": [], "start_point": {"row": 126, "column": 19}, "end_point": {"row": 126, "column": 43}}, {"id": 571, "type": "parameter_list", "text": "(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)", "parent": 569, "children": [572, 579, 584], "start_point": {"row": 126, "column": 43}, "end_point": {"row": 127, "column": 37}}, {"id": 572, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 571, "children": [573, 576], "start_point": {"row": 126, "column": 44}, "end_point": {"row": 126, "column": 61}}, {"id": 573, "type": "struct_specifier", "text": "struct ath6kl", "parent": 572, "children": [574, 575], "start_point": {"row": 126, "column": 44}, "end_point": {"row": 126, "column": 57}}, {"id": 574, "type": "struct", "text": "struct", "parent": 573, "children": [], "start_point": {"row": 126, "column": 44}, "end_point": {"row": 126, "column": 50}}, {"id": 575, "type": "type_identifier", "text": "ath6kl", "parent": 573, "children": [], "start_point": {"row": 126, "column": 51}, "end_point": {"row": 126, "column": 57}}, {"id": 576, "type": "pointer_declarator", "text": "*ar", "parent": 572, "children": [577, 578], "start_point": {"row": 126, "column": 58}, "end_point": {"row": 126, "column": 61}}, {"id": 577, "type": "*", "text": "*", "parent": 576, "children": [], "start_point": {"row": 126, "column": 58}, "end_point": {"row": 126, "column": 59}}, {"id": 578, "type": "identifier", "text": "ar", "parent": 576, "children": [], "start_point": {"row": 126, "column": 59}, "end_point": {"row": 126, "column": 61}}, {"id": 579, "type": "parameter_declaration", "text": "const void *buf", "parent": 571, "children": [580, 581], "start_point": {"row": 127, "column": 9}, "end_point": {"row": 127, "column": 24}}, {"id": 580, "type": "primitive_type", "text": "void", "parent": 579, "children": [], "start_point": {"row": 127, "column": 15}, "end_point": {"row": 127, "column": 19}}, {"id": 581, "type": "pointer_declarator", "text": "*buf", "parent": 579, "children": [582, 583], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 24}}, {"id": 582, "type": "*", "text": "*", "parent": 581, "children": [], "start_point": {"row": 127, "column": 20}, "end_point": {"row": 127, "column": 21}}, {"id": 583, "type": "identifier", "text": "buf", "parent": 581, "children": [], "start_point": {"row": 127, "column": 21}, "end_point": {"row": 127, "column": 24}}, {"id": 584, "type": "parameter_declaration", "text": "size_t len", "parent": 571, "children": [585, 586], "start_point": {"row": 127, "column": 26}, "end_point": {"row": 127, "column": 36}}, {"id": 585, "type": "primitive_type", "text": "size_t", "parent": 584, "children": [], "start_point": {"row": 127, "column": 26}, "end_point": {"row": 127, "column": 32}}, {"id": 586, "type": "identifier", "text": "len", "parent": 584, "children": [], "start_point": {"row": 127, "column": 33}, "end_point": {"row": 127, "column": 36}}, {"id": 587, "type": "function_definition", "text": "static inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}", "parent": 472, "children": [588, 590, 591], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 133, "column": 1}}, {"id": 588, "type": "storage_class_specifier", "text": "inline", "parent": 587, "children": [589], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 13}}, {"id": 589, "type": "inline", "text": "inline", "parent": 588, "children": [], "start_point": {"row": 131, "column": 7}, "end_point": {"row": 131, "column": 13}}, {"id": 590, "type": "primitive_type", "text": "void", "parent": 587, "children": [], "start_point": {"row": 131, "column": 14}, "end_point": {"row": 131, "column": 18}}, {"id": 591, "type": "function_declarator", "text": "ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)", "parent": 587, "children": [592, 593], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 75}}, {"id": 592, "type": "identifier", "text": "ath6kl_debug_war", "parent": 591, "children": [], "start_point": {"row": 131, "column": 19}, "end_point": {"row": 131, "column": 35}}, {"id": 593, "type": "parameter_list", "text": "(struct ath6kl *ar, enum ath6kl_war war)", "parent": 591, "children": [594, 601], "start_point": {"row": 131, "column": 35}, "end_point": {"row": 131, "column": 75}}, {"id": 594, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 593, "children": [595, 598], "start_point": {"row": 131, "column": 36}, "end_point": {"row": 131, "column": 53}}, {"id": 595, "type": "struct_specifier", "text": "struct ath6kl", "parent": 594, "children": [596, 597], "start_point": {"row": 131, "column": 36}, "end_point": {"row": 131, "column": 49}}, {"id": 596, "type": "struct", "text": "struct", "parent": 595, "children": [], "start_point": {"row": 131, "column": 36}, "end_point": {"row": 131, "column": 42}}, {"id": 597, "type": "type_identifier", "text": "ath6kl", "parent": 595, "children": [], "start_point": {"row": 131, "column": 43}, "end_point": {"row": 131, "column": 49}}, {"id": 598, "type": "pointer_declarator", "text": "*ar", "parent": 594, "children": [599, 600], "start_point": {"row": 131, "column": 50}, "end_point": {"row": 131, "column": 53}}, {"id": 599, "type": "*", "text": "*", "parent": 598, "children": [], "start_point": {"row": 131, "column": 50}, "end_point": {"row": 131, "column": 51}}, {"id": 600, "type": "identifier", "text": "ar", "parent": 598, "children": [], "start_point": {"row": 131, "column": 51}, "end_point": {"row": 131, "column": 53}}, {"id": 601, "type": "parameter_declaration", "text": "enum ath6kl_war war", "parent": 593, "children": [602, 605], "start_point": {"row": 131, "column": 55}, "end_point": {"row": 131, "column": 74}}, {"id": 602, "type": "enum_specifier", "text": "enum ath6kl_war", "parent": 601, "children": [603, 604], "start_point": {"row": 131, "column": 55}, "end_point": {"row": 131, "column": 70}}, {"id": 603, "type": "enum", "text": "enum", "parent": 602, "children": [], "start_point": {"row": 131, "column": 55}, "end_point": {"row": 131, "column": 59}}, {"id": 604, "type": "type_identifier", "text": "ath6kl_war", "parent": 602, "children": [], "start_point": {"row": 131, "column": 60}, "end_point": {"row": 131, "column": 70}}, {"id": 605, "type": "identifier", "text": "war", "parent": 601, "children": [], "start_point": {"row": 131, "column": 71}, "end_point": {"row": 131, "column": 74}}, {"id": 606, "type": "function_definition", "text": "static inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n\treturn 0;\n}", "parent": 472, "children": [607, 609, 610], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 139, "column": 1}}, {"id": 607, "type": "storage_class_specifier", "text": "inline", "parent": 606, "children": [608], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 13}}, {"id": 608, "type": "inline", "text": "inline", "parent": 607, "children": [], "start_point": {"row": 135, "column": 7}, "end_point": {"row": 135, "column": 13}}, {"id": 609, "type": "primitive_type", "text": "int", "parent": 606, "children": [], "start_point": {"row": 135, "column": 14}, "end_point": {"row": 135, "column": 17}}, {"id": 610, "type": "function_declarator", "text": "ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)", "parent": 606, "children": [611, 612], "start_point": {"row": 135, "column": 18}, "end_point": {"row": 136, "column": 39}}, {"id": 611, "type": "identifier", "text": "ath6kl_debug_roam_tbl_event", "parent": 610, "children": [], "start_point": {"row": 135, "column": 18}, "end_point": {"row": 135, "column": 45}}, {"id": 612, "type": "parameter_list", "text": "(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)", "parent": 610, "children": [613, 620, 625], "start_point": {"row": 135, "column": 45}, "end_point": {"row": 136, "column": 39}}, {"id": 613, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 612, "children": [614, 617], "start_point": {"row": 135, "column": 46}, "end_point": {"row": 135, "column": 63}}, {"id": 614, "type": "struct_specifier", "text": "struct ath6kl", "parent": 613, "children": [615, 616], "start_point": {"row": 135, "column": 46}, "end_point": {"row": 135, "column": 59}}, {"id": 615, "type": "struct", "text": "struct", "parent": 614, "children": [], "start_point": {"row": 135, "column": 46}, "end_point": {"row": 135, "column": 52}}, {"id": 616, "type": "type_identifier", "text": "ath6kl", "parent": 614, "children": [], "start_point": {"row": 135, "column": 53}, "end_point": {"row": 135, "column": 59}}, {"id": 617, "type": "pointer_declarator", "text": "*ar", "parent": 613, "children": [618, 619], "start_point": {"row": 135, "column": 60}, "end_point": {"row": 135, "column": 63}}, {"id": 618, "type": "*", "text": "*", "parent": 617, "children": [], "start_point": {"row": 135, "column": 60}, "end_point": {"row": 135, "column": 61}}, {"id": 619, "type": "identifier", "text": "ar", "parent": 617, "children": [], "start_point": {"row": 135, "column": 61}, "end_point": {"row": 135, "column": 63}}, {"id": 620, "type": "parameter_declaration", "text": "const void *buf", "parent": 612, "children": [621, 622], "start_point": {"row": 136, "column": 11}, "end_point": {"row": 136, "column": 26}}, {"id": 621, "type": "primitive_type", "text": "void", "parent": 620, "children": [], "start_point": {"row": 136, "column": 17}, "end_point": {"row": 136, "column": 21}}, {"id": 622, "type": "pointer_declarator", "text": "*buf", "parent": 620, "children": [623, 624], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 26}}, {"id": 623, "type": "*", "text": "*", "parent": 622, "children": [], "start_point": {"row": 136, "column": 22}, "end_point": {"row": 136, "column": 23}}, {"id": 624, "type": "identifier", "text": "buf", "parent": 622, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 26}}, {"id": 625, "type": "parameter_declaration", "text": "size_t len", "parent": 612, "children": [626, 627], "start_point": {"row": 136, "column": 28}, "end_point": {"row": 136, "column": 38}}, {"id": 626, "type": "primitive_type", "text": "size_t", "parent": 625, "children": [], "start_point": {"row": 136, "column": 28}, "end_point": {"row": 136, "column": 34}}, {"id": 627, "type": "identifier", "text": "len", "parent": 625, "children": [], "start_point": {"row": 136, "column": 35}, "end_point": {"row": 136, "column": 38}}, {"id": 628, "type": "return_statement", "text": "return 0;", "parent": 606, "children": [629], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 10}}, {"id": 629, "type": "number_literal", "text": "0", "parent": 628, "children": [], "start_point": {"row": 138, "column": 8}, "end_point": {"row": 138, "column": 9}}, {"id": 630, "type": "function_definition", "text": "static inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}", "parent": 472, "children": [631, 633, 634], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 143, "column": 1}}, {"id": 631, "type": "storage_class_specifier", "text": "inline", "parent": 630, "children": [632], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 13}}, {"id": 632, "type": "inline", "text": "inline", "parent": 631, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 13}}, {"id": 633, "type": "primitive_type", "text": "void", "parent": 630, "children": [], "start_point": {"row": 141, "column": 14}, "end_point": {"row": 141, "column": 18}}, {"id": 634, "type": "function_declarator", "text": "ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)", "parent": 630, "children": [635, 636], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 78}}, {"id": 635, "type": "identifier", "text": "ath6kl_debug_set_keepalive", "parent": 634, "children": [], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 45}}, {"id": 636, "type": "parameter_list", "text": "(struct ath6kl *ar, u8 keepalive)", "parent": 634, "children": [637, 644], "start_point": {"row": 141, "column": 45}, "end_point": {"row": 141, "column": 78}}, {"id": 637, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 636, "children": [638, 641], "start_point": {"row": 141, "column": 46}, "end_point": {"row": 141, "column": 63}}, {"id": 638, "type": "struct_specifier", "text": "struct ath6kl", "parent": 637, "children": [639, 640], "start_point": {"row": 141, "column": 46}, "end_point": {"row": 141, "column": 59}}, {"id": 639, "type": "struct", "text": "struct", "parent": 638, "children": [], "start_point": {"row": 141, "column": 46}, "end_point": {"row": 141, "column": 52}}, {"id": 640, "type": "type_identifier", "text": "ath6kl", "parent": 638, "children": [], "start_point": {"row": 141, "column": 53}, "end_point": {"row": 141, "column": 59}}, {"id": 641, "type": "pointer_declarator", "text": "*ar", "parent": 637, "children": [642, 643], "start_point": {"row": 141, "column": 60}, "end_point": {"row": 141, "column": 63}}, {"id": 642, "type": "*", "text": "*", "parent": 641, "children": [], "start_point": {"row": 141, "column": 60}, "end_point": {"row": 141, "column": 61}}, {"id": 643, "type": "identifier", "text": "ar", "parent": 641, "children": [], "start_point": {"row": 141, "column": 61}, "end_point": {"row": 141, "column": 63}}, {"id": 644, "type": "parameter_declaration", "text": "u8 keepalive", "parent": 636, "children": [645, 646], "start_point": {"row": 141, "column": 65}, "end_point": {"row": 141, "column": 77}}, {"id": 645, "type": "type_identifier", "text": "u8", "parent": 644, "children": [], "start_point": {"row": 141, "column": 65}, "end_point": {"row": 141, "column": 67}}, {"id": 646, "type": "identifier", "text": "keepalive", "parent": 644, "children": [], "start_point": {"row": 141, "column": 68}, "end_point": {"row": 141, "column": 77}}, {"id": 647, "type": "function_definition", "text": "static inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)\n{\n}", "parent": 472, "children": [648, 650, 651], "start_point": {"row": 145, "column": 0}, "end_point": {"row": 148, "column": 1}}, {"id": 648, "type": "storage_class_specifier", "text": "inline", "parent": 647, "children": [649], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 13}}, {"id": 649, "type": "inline", "text": "inline", "parent": 648, "children": [], "start_point": {"row": 145, "column": 7}, "end_point": {"row": 145, "column": 13}}, {"id": 650, "type": "primitive_type", "text": "void", "parent": 647, "children": [], "start_point": {"row": 145, "column": 14}, "end_point": {"row": 145, "column": 18}}, {"id": 651, "type": "function_declarator", "text": "ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)", "parent": 647, "children": [652, 653], "start_point": {"row": 145, "column": 19}, "end_point": {"row": 146, "column": 24}}, {"id": 652, "type": "identifier", "text": "ath6kl_debug_set_disconnect_timeout", "parent": 651, "children": [], "start_point": {"row": 145, "column": 19}, "end_point": {"row": 145, "column": 54}}, {"id": 653, "type": "parameter_list", "text": "(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)", "parent": 651, "children": [654, 661], "start_point": {"row": 145, "column": 54}, "end_point": {"row": 146, "column": 24}}, {"id": 654, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 653, "children": [655, 658], "start_point": {"row": 145, "column": 55}, "end_point": {"row": 145, "column": 72}}, {"id": 655, "type": "struct_specifier", "text": "struct ath6kl", "parent": 654, "children": [656, 657], "start_point": {"row": 145, "column": 55}, "end_point": {"row": 145, "column": 68}}, {"id": 656, "type": "struct", "text": "struct", "parent": 655, "children": [], "start_point": {"row": 145, "column": 55}, "end_point": {"row": 145, "column": 61}}, {"id": 657, "type": "type_identifier", "text": "ath6kl", "parent": 655, "children": [], "start_point": {"row": 145, "column": 62}, "end_point": {"row": 145, "column": 68}}, {"id": 658, "type": "pointer_declarator", "text": "*ar", "parent": 654, "children": [659, 660], "start_point": {"row": 145, "column": 69}, "end_point": {"row": 145, "column": 72}}, {"id": 659, "type": "*", "text": "*", "parent": 658, "children": [], "start_point": {"row": 145, "column": 69}, "end_point": {"row": 145, "column": 70}}, {"id": 660, "type": "identifier", "text": "ar", "parent": 658, "children": [], "start_point": {"row": 145, "column": 70}, "end_point": {"row": 145, "column": 72}}, {"id": 661, "type": "parameter_declaration", "text": "u8 timeout", "parent": 653, "children": [662, 663], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 23}}, {"id": 662, "type": "type_identifier", "text": "u8", "parent": 661, "children": [], "start_point": {"row": 146, "column": 13}, "end_point": {"row": 146, "column": 15}}, {"id": 663, "type": "identifier", "text": "timeout", "parent": 661, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 23}}, {"id": 664, "type": "function_definition", "text": "static inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n\treturn 0;\n}", "parent": 472, "children": [665, 667, 668], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 153, "column": 1}}, {"id": 665, "type": "storage_class_specifier", "text": "inline", "parent": 664, "children": [666], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 13}}, {"id": 666, "type": "inline", "text": "inline", "parent": 665, "children": [], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 13}}, {"id": 667, "type": "primitive_type", "text": "int", "parent": 664, "children": [], "start_point": {"row": 150, "column": 14}, "end_point": {"row": 150, "column": 17}}, {"id": 668, "type": "function_declarator", "text": "ath6kl_debug_init(struct ath6kl *ar)", "parent": 664, "children": [669, 670], "start_point": {"row": 150, "column": 18}, "end_point": {"row": 150, "column": 54}}, {"id": 669, "type": "identifier", "text": "ath6kl_debug_init", "parent": 668, "children": [], "start_point": {"row": 150, "column": 18}, "end_point": {"row": 150, "column": 35}}, {"id": 670, "type": "parameter_list", "text": "(struct ath6kl *ar)", "parent": 668, "children": [671], "start_point": {"row": 150, "column": 35}, "end_point": {"row": 150, "column": 54}}, {"id": 671, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 670, "children": [672, 675], "start_point": {"row": 150, "column": 36}, "end_point": {"row": 150, "column": 53}}, {"id": 672, "type": "struct_specifier", "text": "struct ath6kl", "parent": 671, "children": [673, 674], "start_point": {"row": 150, "column": 36}, "end_point": {"row": 150, "column": 49}}, {"id": 673, "type": "struct", "text": "struct", "parent": 672, "children": [], "start_point": {"row": 150, "column": 36}, "end_point": {"row": 150, "column": 42}}, {"id": 674, "type": "type_identifier", "text": "ath6kl", "parent": 672, "children": [], "start_point": {"row": 150, "column": 43}, "end_point": {"row": 150, "column": 49}}, {"id": 675, "type": "pointer_declarator", "text": "*ar", "parent": 671, "children": [676, 677], "start_point": {"row": 150, "column": 50}, "end_point": {"row": 150, "column": 53}}, {"id": 676, "type": "*", "text": "*", "parent": 675, "children": [], "start_point": {"row": 150, "column": 50}, "end_point": {"row": 150, "column": 51}}, {"id": 677, "type": "identifier", "text": "ar", "parent": 675, "children": [], "start_point": {"row": 150, "column": 51}, "end_point": {"row": 150, "column": 53}}, {"id": 678, "type": "return_statement", "text": "return 0;", "parent": 664, "children": [679], "start_point": {"row": 152, "column": 1}, "end_point": {"row": 152, "column": 10}}, {"id": 679, "type": "number_literal", "text": "0", "parent": 678, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 9}}, {"id": 680, "type": "function_definition", "text": "static inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}", "parent": 472, "children": [681, 683, 684], "start_point": {"row": 155, "column": 0}, "end_point": {"row": 157, "column": 1}}, {"id": 681, "type": "storage_class_specifier", "text": "inline", "parent": 680, "children": [682], "start_point": {"row": 155, "column": 7}, "end_point": {"row": 155, "column": 13}}, {"id": 682, "type": "inline", "text": "inline", "parent": 681, "children": [], "start_point": {"row": 155, "column": 7}, "end_point": {"row": 155, "column": 13}}, {"id": 683, "type": "primitive_type", "text": "void", "parent": 680, "children": [], "start_point": {"row": 155, "column": 14}, "end_point": {"row": 155, "column": 18}}, {"id": 684, "type": "function_declarator", "text": "ath6kl_debug_cleanup(struct ath6kl *ar)", "parent": 680, "children": [685, 686], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 58}}, {"id": 685, "type": "identifier", "text": "ath6kl_debug_cleanup", "parent": 684, "children": [], "start_point": {"row": 155, "column": 19}, "end_point": {"row": 155, "column": 39}}, {"id": 686, "type": "parameter_list", "text": "(struct ath6kl *ar)", "parent": 684, "children": [687], "start_point": {"row": 155, "column": 39}, "end_point": {"row": 155, "column": 58}}, {"id": 687, "type": "parameter_declaration", "text": "struct ath6kl *ar", "parent": 686, "children": [688, 691], "start_point": {"row": 155, "column": 40}, "end_point": {"row": 155, "column": 57}}, {"id": 688, "type": "struct_specifier", "text": "struct ath6kl", "parent": 687, "children": [689, 690], "start_point": {"row": 155, "column": 40}, "end_point": {"row": 155, "column": 53}}, {"id": 689, "type": "struct", "text": "struct", "parent": 688, "children": [], "start_point": {"row": 155, "column": 40}, "end_point": {"row": 155, "column": 46}}, {"id": 690, "type": "type_identifier", "text": "ath6kl", "parent": 688, "children": [], "start_point": {"row": 155, "column": 47}, "end_point": {"row": 155, "column": 53}}, {"id": 691, "type": "pointer_declarator", "text": "*ar", "parent": 687, "children": [692, 693], "start_point": {"row": 155, "column": 54}, "end_point": {"row": 155, "column": 57}}, {"id": 692, "type": "*", "text": "*", "parent": 691, "children": [], "start_point": {"row": 155, "column": 54}, "end_point": {"row": 155, "column": 55}}, {"id": 693, "type": "identifier", "text": "ar", "parent": 691, "children": [], "start_point": {"row": 155, "column": 55}, "end_point": {"row": 155, "column": 57}}, {"id": 694, "type": "#endif", "text": "#endif", "parent": 261, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 6}}, {"id": 695, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 160, "column": 0}, "end_point": {"row": 160, "column": 6}}]}, "node_categories": {"declarations": {"functions": [174, 189, 195, 208, 214, 227, 233, 246, 247, 264, 271, 275, 325, 351, 363, 383, 400, 420, 435, 450, 462, 474, 478, 493, 497, 523, 527, 551, 555, 565, 569, 587, 591, 606, 610, 630, 634, 647, 651, 664, 668, 680, 684], "variables": [157, 176, 181, 191, 197, 199, 203, 210, 216, 218, 222, 229, 235, 237, 241, 249, 252, 278, 283, 288, 293, 298, 323, 328, 335, 342, 349, 354, 361, 366, 373, 378, 381, 386, 393, 398, 403, 410, 415, 418, 423, 430, 433, 438, 445, 448, 453, 460, 465, 481, 486, 500, 505, 510, 515, 520, 530, 537, 544, 558, 572, 579, 584, 594, 601, 613, 620, 625, 637, 644, 654, 661, 671, 687], "classes": [158, 165, 272, 329, 330, 336, 337, 343, 344, 355, 356, 367, 368, 387, 388, 404, 405, 424, 425, 439, 440, 454, 455, 466, 467, 475, 494, 524, 531, 532, 538, 539, 545, 546, 552, 559, 560, 566, 573, 574, 588, 595, 596, 607, 614, 615, 631, 638, 639, 648, 655, 656, 665, 672, 673, 681, 688, 689], "imports": [6, 7], "modules": [], "enums": [9, 10, 12, 13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 104, 111, 118, 125, 132, 139, 146, 153, 255, 256, 258, 259, 279, 280, 394, 395, 482, 483, 501, 502, 602, 603]}, "statements": {"expressions": [16, 23, 30, 37, 44, 51, 58, 65, 72, 79, 86, 93, 100, 107, 114, 121, 128, 135, 142, 149, 302, 303, 307, 309, 316], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 14, 17, 21, 24, 28, 31, 35, 38, 42, 45, 49, 52, 56, 59, 63, 66, 70, 73, 77, 80, 84, 87, 91, 94, 98, 101, 105, 108, 112, 115, 119, 122, 126, 129, 133, 136, 140, 143, 147, 150, 154, 160, 163, 167, 173, 180, 185, 188, 192, 194, 198, 200, 204, 207, 211, 213, 217, 219, 223, 226, 230, 232, 236, 238, 242, 245, 250, 253, 254, 257, 260, 261, 262, 263, 266, 268, 269, 276, 281, 282, 287, 292, 297, 300, 301, 304, 305, 306, 308, 310, 312, 315, 317, 319, 320, 321, 322, 326, 331, 334, 338, 341, 345, 348, 352, 357, 360, 364, 369, 372, 377, 380, 384, 389, 392, 396, 397, 401, 406, 409, 414, 417, 421, 426, 429, 431, 432, 436, 441, 444, 446, 447, 451, 456, 459, 463, 468, 471, 479, 484, 485, 490, 498, 503, 504, 509, 514, 519, 522, 528, 533, 536, 540, 543, 547, 550, 556, 561, 564, 570, 575, 578, 583, 586, 592, 597, 600, 604, 605, 611, 616, 619, 624, 627, 635, 640, 643, 645, 646, 652, 657, 660, 662, 663, 669, 674, 677, 685, 690, 693, 694, 695], "returns": [491, 628, 678], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 19, 26, 33, 40, 47, 54, 61, 68, 75, 82, 89, 96, 103, 110, 117, 124, 131, 138, 145, 152, 156, 169, 170, 313, 492, 629, 679], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 174, "universal_type": "function", "name": "unknown", "text_snippet": "(const char *level, const char *fmt, ...)"}, {"node_id": 189, "universal_type": "function", "name": "unknown", "text_snippet": "(fmt, ...)"}, {"node_id": 195, "universal_type": "function", "name": "unknown", "text_snippet": "(KERN_INFO, fmt, ##__VA_ARGS__)"}, {"node_id": 208, "universal_type": "function", "name": "unknown", "text_snippet": "(fmt, ...)"}, {"node_id": 214, "universal_type": "function", "name": "unknown", "text_snippet": "(KERN_ERR, fmt, ##__VA_ARGS__)"}, {"node_id": 227, "universal_type": "function", "name": "unknown", "text_snippet": "(fmt, ...)"}, {"node_id": 233, "universal_type": "function", "name": "unknown", "text_snippet": "(KERN_WARNING, fmt, ##__VA_ARGS__)"}, {"node_id": 246, "universal_type": "function", "name": "unknown", "text_snippet": "(mask)\t(debug_mask & mask)"}, {"node_id": 247, "universal_type": "function", "name": "unknown", "text_snippet": "(mask)"}, {"node_id": 264, "universal_type": "function", "name": "rtn;", "text_snippet": "#define ath6kl_dbg(mask, fmt, ...)\t\t\t\t\t\\\n\t({\t\t\t\t\t\t\t\t\\\n\t int rtn;\t\t\t\t\t\t\t\\\n\t if (debug_mask & mask)\t\t\t"}, {"node_id": 271, "universal_type": "function", "name": "ath6kl_dbg_dump", "text_snippet": "static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *p"}, {"node_id": 275, "universal_type": "function", "name": "*buf,", "text_snippet": "ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const"}, {"node_id": 325, "universal_type": "function", "name": "ath6kl_irq_proc_registers", "text_snippet": "ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\t\t struct ath6kl_irq_proc_registers *irq_proc_re"}, {"node_id": 351, "universal_type": "function", "name": "unknown", "text_snippet": "dump_cred_dist_stats(struct htc_target *target)"}, {"node_id": 363, "universal_type": "function", "name": "*buf,", "text_snippet": "ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len)"}, {"node_id": 383, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)"}, {"node_id": 400, "universal_type": "function", "name": "*buf,", "text_snippet": "ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n\t\t\t\tsize_t len)"}, {"node_id": 420, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)"}, {"node_id": 435, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout)"}, {"node_id": 450, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_init(struct ath6kl *ar)"}, {"node_id": 462, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_cleanup(struct ath6kl *ar)"}, {"node_id": 474, "universal_type": "function", "name": "ath6kl_dbg", "text_snippet": "static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)\n{\n\treturn"}, {"node_id": 478, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)"}, {"node_id": 493, "universal_type": "function", "name": "ath6kl_dbg_dump", "text_snippet": "static inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *p"}, {"node_id": 497, "universal_type": "function", "name": "*buf,", "text_snippet": "ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const"}, {"node_id": 523, "universal_type": "function", "name": "ath6kl_dump_registers", "text_snippet": "static inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registe"}, {"node_id": 527, "universal_type": "function", "name": "ath6kl_irq_proc_registers", "text_snippet": "ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registers *irq_proc_reg,\n\t"}, {"node_id": 551, "universal_type": "function", "name": "dump_cred_dist_stats", "text_snippet": "static inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}"}, {"node_id": 555, "universal_type": "function", "name": "unknown", "text_snippet": "dump_cred_dist_stats(struct htc_target *target)"}, {"node_id": 565, "universal_type": "function", "name": "ath6kl_debug_fwlog_event", "text_snippet": "static inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)"}, {"node_id": 569, "universal_type": "function", "name": "*buf,", "text_snippet": "ath6kl_debug_fwlog_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)"}, {"node_id": 587, "universal_type": "function", "name": "ath6kl_debug_war", "text_snippet": "static inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}"}, {"node_id": 591, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)"}, {"node_id": 606, "universal_type": "function", "name": "ath6kl_debug_roam_tbl_event", "text_snippet": "static inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t "}, {"node_id": 610, "universal_type": "function", "name": "*buf,", "text_snippet": "ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)"}, {"node_id": 630, "universal_type": "function", "name": "ath6kl_debug_set_keepalive", "text_snippet": "static inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}"}, {"node_id": 634, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)"}, {"node_id": 647, "universal_type": "function", "name": "ath6kl_debug_set_disconnect_timeout", "text_snippet": "static inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)\n{"}, {"node_id": 651, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)"}, {"node_id": 664, "universal_type": "function", "name": "ath6kl_debug_init", "text_snippet": "static inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n\treturn 0;\n}"}, {"node_id": 668, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_init(struct ath6kl *ar)"}, {"node_id": 680, "universal_type": "function", "name": "ath6kl_debug_cleanup", "text_snippet": "static inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}"}, {"node_id": 684, "universal_type": "function", "name": "unknown", "text_snippet": "ath6kl_debug_cleanup(struct ath6kl *ar)"}], "class_declarations": [{"node_id": 158, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 165, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 272, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 329, "universal_type": "class", "name": "ath6kl_device", "text_snippet": "struct ath6kl_device"}, {"node_id": 330, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 336, "universal_type": "class", "name": "ath6kl_irq_proc_registers", "text_snippet": "struct ath6kl_irq_proc_registers"}, {"node_id": 337, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 343, "universal_type": "class", "name": "ath6kl_irq_enable_reg", "text_snippet": "struct ath6kl_irq_enable_reg"}, {"node_id": 344, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 355, "universal_type": "class", "name": "htc_target", "text_snippet": "struct htc_target"}, {"node_id": 356, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 367, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 368, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 387, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 388, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 404, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 405, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 424, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 425, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 439, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 440, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 454, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 455, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 466, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 467, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 475, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 494, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 524, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 531, "universal_type": "class", "name": "ath6kl_device", "text_snippet": "struct ath6kl_device"}, {"node_id": 532, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 538, "universal_type": "class", "name": "ath6kl_irq_proc_registers", "text_snippet": "struct ath6kl_irq_proc_registers"}, {"node_id": 539, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 545, "universal_type": "class", "name": "ath6kl_irq_enable_reg", "text_snippet": "struct ath6kl_irq_enable_reg"}, {"node_id": 546, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 552, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 559, "universal_type": "class", "name": "htc_target", "text_snippet": "struct htc_target"}, {"node_id": 560, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 566, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 573, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 574, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 588, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 595, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 596, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 607, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 614, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 615, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 631, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 638, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 639, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 648, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 655, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 656, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 665, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 672, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 673, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 681, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 688, "universal_type": "class", "name": "ath6kl", "text_snippet": "struct ath6kl"}, {"node_id": 689, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include \"hif.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "/*\n * Copyright (c) 2011 Atheros Communications Inc.\n * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n */\n\n#ifndef DEBUG_H\n#define DEBUG_H\n\n#include \"hif.h\"\n\nenum ATH6K_DEBUG_MASK {\n\tATH6KL_DBG_CREDIT\t= BIT(0),\n\t/* hole */\n\tATH6KL_DBG_WLAN_TX = BIT(2), /* wlan tx */\n\tATH6KL_DBG_WLAN_RX = BIT(3), /* wlan rx */\n\tATH6KL_DBG_BMI\t\t= BIT(4), /* bmi tracing */\n\tATH6KL_DBG_HTC\t\t= BIT(5),\n\tATH6KL_DBG_HIF\t\t= BIT(6),\n\tATH6KL_DBG_IRQ\t\t= BIT(7), /* interrupt processing */\n\t/* hole */\n\t/* hole */\n\tATH6KL_DBG_WMI = BIT(10), /* wmi tracing */\n\tATH6KL_DBG_TRC\t = BIT(11), /* generic func tracing */\n\tATH6KL_DBG_SCATTER\t= BIT(12), /* hif scatter tracing */\n\tATH6KL_DBG_WLAN_CFG = BIT(13), /* cfg80211 i/f file tracing */\n\tATH6KL_DBG_RAW_BYTES = BIT(14), /* dump tx/rx frames */\n\tATH6KL_DBG_AGGR\t\t= BIT(15), /* aggregation */\n\tATH6KL_DBG_SDIO\t\t= BIT(16),\n\tATH6KL_DBG_SDIO_DUMP\t= BIT(17),\n\tATH6KL_DBG_BOOT\t\t= BIT(18), /* driver init and fw boot */\n\tATH6KL_DBG_WMI_DUMP\t= BIT(19),\n\tATH6KL_DBG_SUSPEND\t= BIT(20),\n\tATH6KL_DBG_USB\t\t= BIT(21),\n\tATH6KL_DBG_RECOVERY\t= BIT(22),\n\tATH6KL_DBG_ANY\t = 0xffffffff /* enable all logs */\n};\n\nextern unsigned int debug_mask;\nextern __printf(2, 3)\nint ath6kl_printk(const char *level, const char *fmt, ...);\n\n#define ath6kl_info(fmt, ...)\t\t\t\t\\\n\tath6kl_printk(KERN_INFO, fmt, ##__VA_ARGS__)\n#define ath6kl_err(fmt, ...)\t\t\t\t\t\\\n\tath6kl_printk(KERN_ERR, fmt, ##__VA_ARGS__)\n#define ath6kl_warn(fmt, ...)\t\t\t\t\t\\\n\tath6kl_printk(KERN_WARNING, fmt, ##__VA_ARGS__)\n\n#define AR_DBG_LVL_CHECK(mask)\t(debug_mask & mask)\n\nenum ath6kl_war {\n\tATH6KL_WAR_INVALID_RATE,\n};\n\n#ifdef CONFIG_ATH6KL_DEBUG\n#define ath6kl_dbg(mask, fmt, ...)\t\t\t\t\t\\\n\t({\t\t\t\t\t\t\t\t\\\n\t int rtn;\t\t\t\t\t\t\t\\\n\t if (debug_mask & mask)\t\t\t\t\t\t\\\n\t\trtn = ath6kl_printk(KERN_DEBUG, fmt, ##__VA_ARGS__);\t\\\n\t else\t\t\t\t\t\t\t\t\\\n\t\trtn = 0;\t\t\t\t\t\t\\\n\t\t\t\t\t\t\t\t\t\\\n\t rtn;\t\t\t\t\t\t\t\t\\\n\t })\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n\tif (debug_mask & mask) {\n\t\tif (msg)\n\t\t\tath6kl_dbg(mask, \"%s\\n\", msg);\n\n\t\tprint_hex_dump_bytes(prefix, DUMP_PREFIX_OFFSET, buf, len);\n\t}\n}\n\nvoid ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\t\t struct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\t\t struct ath6kl_irq_enable_reg *irq_en_reg);\nvoid dump_cred_dist_stats(struct htc_target *target);\nvoid ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);\nvoid ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war);\nint ath6kl_debug_roam_tbl_event(struct ath6kl *ar, const void *buf,\n\t\t\t\tsize_t len);\nvoid ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive);\nvoid ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar, u8 timeout);\nint ath6kl_debug_init(struct ath6kl *ar);\nvoid ath6kl_debug_cleanup(struct ath6kl *ar);\n\n#else\nstatic inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,\n\t\t\t const char *fmt, ...)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_dbg_dump(enum ATH6K_DEBUG_MASK mask,\n\t\t\t\t const char *msg, const char *prefix,\n\t\t\t\t const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_dump_registers(struct ath6kl_device *dev,\n\t\tstruct ath6kl_irq_proc_registers *irq_proc_reg,\n\t\tstruct ath6kl_irq_enable_reg *irq_en_reg)\n{\n\n}\nstatic inline void dump_cred_dist_stats(struct htc_target *target)\n{\n}\n\nstatic inline void ath6kl_debug_fwlog_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n}\n\nstatic inline void ath6kl_debug_war(struct ath6kl *ar, enum ath6kl_war war)\n{\n}\n\nstatic inline int ath6kl_debug_roam_tbl_event(struct ath6kl *ar,\n\t\t\t\t\t const void *buf, size_t len)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_debug_set_keepalive(struct ath6kl *ar, u8 keepalive)\n{\n}\n\nstatic inline void ath6kl_debug_set_disconnect_timeout(struct ath6kl *ar,\n\t\t\t\t\t\t u8 timeout)\n{\n}\n\nstatic inline int ath6kl_debug_init(struct ath6kl *ar)\n{\n\treturn 0;\n}\n\nstatic inline void ath6kl_debug_cleanup(struct ath6kl *ar)\n{\n}\n\n#endif\n#endif\n"}
80,383
c
// // judgeNetworkingVC.h // ObjectiveC // // Created by hello on 2019/3/25. // Copyright © 2019 William. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface JudgeNetworkingVC : UIViewController @end NS_ASSUME_NONNULL_END
20.42
12
(translation_unit) "//\n// judgeNetworkingVC.h\n// ObjectiveC\n//\n// Created by hello on 2019/3/25.\n// Copyright © 2019 William. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface JudgeNetworkingVC : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (comment) "//" (comment) "// judgeNetworkingVC.h" (comment) "// ObjectiveC" (comment) "//" (comment) "// Created by hello on 2019/3/25." (comment) "// Copyright © 2019 William. All rights reserved.\n" (comment) "/\n" (preproc_call) "import <UIKit/UIKit.h>\n\n" (preproc_directive) "import " (preproc_arg) "UIKit/UIKit.h>\n" (declaration) "S_ASSUME_NONNULL_BEGIN\n\n@interface " (type_identifier) "S_ASSUME_NONNULL_BEGIN\n" (ERROR) "i" (ERROR) "i" (identifier) "nterface " (;) "" (labeled_statement) "udgeNetworkingVC : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (statement_identifier) "udgeNetworkingVC " (:) " " (declaration) "IViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (type_identifier) "IViewController\n" (ERROR) "end\n" (ERROR) "e" (identifier) "nd\n" (identifier) "S_ASSUME_NONNULL_END\n" (;) ""
27
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.42, "nodes": 14, "errors": 0, "source_hash": "5f90057835c582c87872856b68d84fee00e483c40bd373e58b4e144b66884533", "categorized_nodes": 9}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UIKit/UIKit.h>\n\n", "parent": null, "children": [1], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 9, "column": 0}}, {"id": 1, "type": "preproc_arg", "text": "UIKit/UIKit.h>\n", "parent": 0, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 23}}, {"id": 2, "type": "declaration", "text": "S_ASSUME_NONNULL_BEGIN\n\n@interface ", "parent": null, "children": [3, 4, 6], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 12, "column": 10}}, {"id": 3, "type": "type_identifier", "text": "S_ASSUME_NONNULL_BEGIN\n", "parent": 2, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 23}}, {"id": 4, "type": "ERROR", "text": "i", "parent": 2, "children": [5], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 5, "type": "ERROR", "text": "i", "parent": 4, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 1}}, {"id": 6, "type": "identifier", "text": "nterface ", "parent": 2, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 10}}, {"id": 7, "type": "labeled_statement", "text": "udgeNetworkingVC : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": null, "children": [8, 9], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 16, "column": 21}}, {"id": 8, "type": "statement_identifier", "text": "udgeNetworkingVC ", "parent": 7, "children": [], "start_point": {"row": 12, "column": 11}, "end_point": {"row": 12, "column": 28}}, {"id": 9, "type": "declaration", "text": "IViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n", "parent": 7, "children": [10, 13], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 16, "column": 21}}, {"id": 10, "type": "type_identifier", "text": "IViewController\n", "parent": 9, "children": [], "start_point": {"row": 12, "column": 31}, "end_point": {"row": 12, "column": 47}}, {"id": 11, "type": "ERROR", "text": "e", "parent": 9, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 1}}, {"id": 12, "type": "identifier", "text": "nd\n", "parent": 9, "children": [], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 14, "column": 4}}, {"id": 13, "type": "identifier", "text": "S_ASSUME_NONNULL_END\n", "parent": 9, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 21}}]}, "node_categories": {"declarations": {"functions": [], "variables": [2, 9], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [3, 6, 8, 10, 12, 13], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// judgeNetworkingVC.h\n// ObjectiveC\n//\n// Created by hello on 2019/3/25.\n// Copyright \u00a9 2019 William. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface JudgeNetworkingVC : UIViewController\n\n@end\n\nNS_ASSUME_NONNULL_END\n"}
80,384
c
#pragma once #include <gmock/gmock.h> #include <slas/dbus/detail/bus_interface.h> #include <slas/dbus/object.h> namespace mock { namespace dbus { class Bus : public ::dbus::detail::BusInterface { MOCK_METHOD0(Connect, void()); MOCK_METHOD0(Disconnect, void()); MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name)); MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object)); MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object)); MOCK_METHOD0(UnregisterAllObjects, void()); MOCK_METHOD0(Loop, void()); MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle)); }; } }
31.2
20
(translation_unit) "#pragma once\n\n#include <gmock/gmock.h>\n\n#include <slas/dbus/detail/bus_interface.h>\n#include <slas/dbus/object.h>\n\nnamespace mock\n{\n\nnamespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n};\n\n}\n\n}\n" (preproc_call) "#pragma once\n" (preproc_directive) "#pragma" (preproc_arg) "once" (preproc_include) "#include <gmock/gmock.h>\n" (#include) "#include" (system_lib_string) "<gmock/gmock.h>" (preproc_include) "#include <slas/dbus/detail/bus_interface.h>\n" (#include) "#include" (system_lib_string) "<slas/dbus/detail/bus_interface.h>" (preproc_include) "#include <slas/dbus/object.h>\n" (#include) "#include" (system_lib_string) "<slas/dbus/object.h>" (function_definition) "namespace mock\n{\n\nnamespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n};\n\n}\n\n}" (type_identifier) "namespace" (identifier) "mock" (compound_statement) "{\n\nnamespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n};\n\n}\n\n}" ({) "{" (function_definition) "namespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n};\n\n}" (type_identifier) "namespace" (identifier) "dbus" (compound_statement) "{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n};\n\n}" ({) "{" (function_definition) "class Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n}" (type_identifier) "class" (ERROR) "Bus : public ::dbus::detail::" (identifier) "Bus" (:) ":" (identifier) "public" (:) ":" (:) ":" (identifier) "dbus" (:) ":" (:) ":" (identifier) "detail" (:) ":" (:) ":" (identifier) "BusInterface" (compound_statement) "{\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n}" ({) "{" (expression_statement) "MOCK_METHOD0(Connect, void());" (call_expression) "MOCK_METHOD0(Connect, void())" (identifier) "MOCK_METHOD0" (argument_list) "(Connect, void())" (() "(" (identifier) "Connect" (,) "," (call_expression) "void()" (identifier) "void" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD0(Disconnect, void());" (call_expression) "MOCK_METHOD0(Disconnect, void())" (identifier) "MOCK_METHOD0" (argument_list) "(Disconnect, void())" (() "(" (identifier) "Disconnect" (,) "," (call_expression) "void()" (identifier) "void" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));" (call_expression) "MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name))" (identifier) "MOCK_METHOD1" (argument_list) "(RequestConnectionName, void(const std::string &method_name))" (() "(" (identifier) "RequestConnectionName" (,) "," (call_expression) "void(const std::string &method_name)" (identifier) "void" (argument_list) "(const std::string &method_name)" (() "(" (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string &method_name" (identifier) "string" (&) "&" (identifier) "method_name" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));" (call_expression) "MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object))" (identifier) "MOCK_METHOD1" (argument_list) "(RegisterObject, void(::dbus::ObjectPtr object))" (() "(" (identifier) "RegisterObject" (,) "," (call_expression) "void(::dbus::ObjectPtr object)" (identifier) "void" (argument_list) "(::dbus::ObjectPtr object)" (() "(" (ERROR) "::dbus::ObjectPtr" (:) ":" (:) ":" (identifier) "dbus" (:) ":" (:) ":" (identifier) "ObjectPtr" (identifier) "object" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));" (call_expression) "MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object))" (identifier) "MOCK_METHOD1" (argument_list) "(UnregisterObject, void(::dbus::ObjectPtr object))" (() "(" (identifier) "UnregisterObject" (,) "," (call_expression) "void(::dbus::ObjectPtr object)" (identifier) "void" (argument_list) "(::dbus::ObjectPtr object)" (() "(" (ERROR) "::dbus::ObjectPtr" (:) ":" (:) ":" (identifier) "dbus" (:) ":" (:) ":" (identifier) "ObjectPtr" (identifier) "object" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD0(UnregisterAllObjects, void());" (call_expression) "MOCK_METHOD0(UnregisterAllObjects, void())" (identifier) "MOCK_METHOD0" (argument_list) "(UnregisterAllObjects, void())" (() "(" (identifier) "UnregisterAllObjects" (,) "," (call_expression) "void()" (identifier) "void" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD0(Loop, void());" (call_expression) "MOCK_METHOD0(Loop, void())" (identifier) "MOCK_METHOD0" (argument_list) "(Loop, void())" (() "(" (identifier) "Loop" (,) "," (call_expression) "void()" (identifier) "void" (argument_list) "()" (() "(" ()) ")" ()) ")" (;) ";" (expression_statement) "MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));" (call_expression) "MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle))" (identifier) "MOCK_METHOD2" (argument_list) "(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle))" (() "(" (identifier) "SendMessage" (,) "," (call_expression) "void(DBusMessage *message, DBusPendingCall **reply_handle)" (identifier) "void" (argument_list) "(DBusMessage *message, DBusPendingCall **reply_handle)" (() "(" (binary_expression) "DBusMessage *message" (identifier) "DBusMessage" (*) "*" (identifier) "message" (,) "," (binary_expression) "DBusPendingCall **reply_handle" (identifier) "DBusPendingCall" (*) "*" (pointer_expression) "*reply_handle" (*) "*" (identifier) "reply_handle" ()) ")" ()) ")" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (}) "}"
193
4
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 31.2, "nodes": 103, "errors": 0, "source_hash": "23aaebb7289d35e4b8a486ce247a7ca40d5241a05659892e84c924f647ee04fd", "categorized_nodes": 78}, "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 <gmock/gmock.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": "<gmock/gmock.h>", "parent": 3, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <slas/dbus/detail/bus_interface.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": "<slas/dbus/detail/bus_interface.h>", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 43}}, {"id": 9, "type": "preproc_include", "text": "#include <slas/dbus/object.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": "<slas/dbus/object.h>", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 29}}, {"id": 12, "type": "function_definition", "text": "namespace mock\n{\n\nnamespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n};\n\n}\n\n}", "parent": null, "children": [13, 14], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 30, "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": "mock", "parent": 12, "children": [], "start_point": {"row": 7, "column": 10}, "end_point": {"row": 7, "column": 14}}, {"id": 15, "type": "function_definition", "text": "namespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n};\n\n}", "parent": 12, "children": [16, 17], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 28, "column": 1}}, {"id": 16, "type": "type_identifier", "text": "namespace", "parent": 15, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 9}}, {"id": 17, "type": "identifier", "text": "dbus", "parent": 15, "children": [], "start_point": {"row": 10, "column": 10}, "end_point": {"row": 10, "column": 14}}, {"id": 18, "type": "function_definition", "text": "class Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n}", "parent": 15, "children": [19, 23], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 19, "type": "ERROR", "text": "Bus : public ::dbus::detail::", "parent": 18, "children": [20, 21, 22], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 35}}, {"id": 20, "type": "identifier", "text": "Bus", "parent": 19, "children": [], "start_point": {"row": 13, "column": 6}, "end_point": {"row": 13, "column": 9}}, {"id": 21, "type": "identifier", "text": "dbus", "parent": 19, "children": [], "start_point": {"row": 13, "column": 21}, "end_point": {"row": 13, "column": 25}}, {"id": 22, "type": "identifier", "text": "detail", "parent": 19, "children": [], "start_point": {"row": 13, "column": 27}, "end_point": {"row": 13, "column": 33}}, {"id": 23, "type": "identifier", "text": "BusInterface", "parent": 18, "children": [], "start_point": {"row": 13, "column": 35}, "end_point": {"row": 13, "column": 47}}, {"id": 24, "type": "call_expression", "text": "MOCK_METHOD0(Connect, void())", "parent": 18, "children": [25, 26], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 31}}, {"id": 25, "type": "identifier", "text": "MOCK_METHOD0", "parent": 24, "children": [], "start_point": {"row": 14, "column": 2}, "end_point": {"row": 14, "column": 14}}, {"id": 26, "type": "argument_list", "text": "(Connect, void())", "parent": 24, "children": [27, 28], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 31}}, {"id": 27, "type": "identifier", "text": "Connect", "parent": 26, "children": [], "start_point": {"row": 14, "column": 15}, "end_point": {"row": 14, "column": 22}}, {"id": 28, "type": "call_expression", "text": "void()", "parent": 26, "children": [29, 30], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 30}}, {"id": 29, "type": "identifier", "text": "void", "parent": 28, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 28}}, {"id": 30, "type": "argument_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 14, "column": 28}, "end_point": {"row": 14, "column": 30}}, {"id": 31, "type": "call_expression", "text": "MOCK_METHOD0(Disconnect, void())", "parent": 18, "children": [32, 33], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 34}}, {"id": 32, "type": "identifier", "text": "MOCK_METHOD0", "parent": 31, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 14}}, {"id": 33, "type": "argument_list", "text": "(Disconnect, void())", "parent": 31, "children": [34, 35], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 34}}, {"id": 34, "type": "identifier", "text": "Disconnect", "parent": 33, "children": [], "start_point": {"row": 15, "column": 15}, "end_point": {"row": 15, "column": 25}}, {"id": 35, "type": "call_expression", "text": "void()", "parent": 33, "children": [36, 37], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 33}}, {"id": 36, "type": "identifier", "text": "void", "parent": 35, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 31}}, {"id": 37, "type": "argument_list", "text": "()", "parent": 35, "children": [], "start_point": {"row": 15, "column": 31}, "end_point": {"row": 15, "column": 33}}, {"id": 38, "type": "call_expression", "text": "MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name))", "parent": 18, "children": [39, 40], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 75}}, {"id": 39, "type": "identifier", "text": "MOCK_METHOD1", "parent": 38, "children": [], "start_point": {"row": 17, "column": 2}, "end_point": {"row": 17, "column": 14}}, {"id": 40, "type": "argument_list", "text": "(RequestConnectionName, void(const std::string &method_name))", "parent": 38, "children": [41, 42], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 75}}, {"id": 41, "type": "identifier", "text": "RequestConnectionName", "parent": 40, "children": [], "start_point": {"row": 17, "column": 15}, "end_point": {"row": 17, "column": 36}}, {"id": 42, "type": "call_expression", "text": "void(const std::string &method_name)", "parent": 40, "children": [43, 44], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 74}}, {"id": 43, "type": "identifier", "text": "void", "parent": 42, "children": [], "start_point": {"row": 17, "column": 38}, "end_point": {"row": 17, "column": 42}}, {"id": 44, "type": "argument_list", "text": "(const std::string &method_name)", "parent": 42, "children": [45, 47], "start_point": {"row": 17, "column": 42}, "end_point": {"row": 17, "column": 74}}, {"id": 45, "type": "ERROR", "text": "const std::", "parent": 44, "children": [46], "start_point": {"row": 17, "column": 43}, "end_point": {"row": 17, "column": 54}}, {"id": 46, "type": "identifier", "text": "std", "parent": 45, "children": [], "start_point": {"row": 17, "column": 49}, "end_point": {"row": 17, "column": 52}}, {"id": 47, "type": "binary_expression", "text": "string &method_name", "parent": 44, "children": [48, 49], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 73}}, {"id": 48, "type": "identifier", "text": "string", "parent": 47, "children": [], "start_point": {"row": 17, "column": 54}, "end_point": {"row": 17, "column": 60}}, {"id": 49, "type": "identifier", "text": "method_name", "parent": 47, "children": [], "start_point": {"row": 17, "column": 62}, "end_point": {"row": 17, "column": 73}}, {"id": 50, "type": "call_expression", "text": "MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object))", "parent": 18, "children": [51, 52], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 62}}, {"id": 51, "type": "identifier", "text": "MOCK_METHOD1", "parent": 50, "children": [], "start_point": {"row": 19, "column": 2}, "end_point": {"row": 19, "column": 14}}, {"id": 52, "type": "argument_list", "text": "(RegisterObject, void(::dbus::ObjectPtr object))", "parent": 50, "children": [53, 54], "start_point": {"row": 19, "column": 14}, "end_point": {"row": 19, "column": 62}}, {"id": 53, "type": "identifier", "text": "RegisterObject", "parent": 52, "children": [], "start_point": {"row": 19, "column": 15}, "end_point": {"row": 19, "column": 29}}, {"id": 54, "type": "call_expression", "text": "void(::dbus::ObjectPtr object)", "parent": 52, "children": [55, 56], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 61}}, {"id": 55, "type": "identifier", "text": "void", "parent": 54, "children": [], "start_point": {"row": 19, "column": 31}, "end_point": {"row": 19, "column": 35}}, {"id": 56, "type": "argument_list", "text": "(::dbus::ObjectPtr object)", "parent": 54, "children": [57, 60], "start_point": {"row": 19, "column": 35}, "end_point": {"row": 19, "column": 61}}, {"id": 57, "type": "ERROR", "text": "::dbus::ObjectPtr", "parent": 56, "children": [58, 59], "start_point": {"row": 19, "column": 36}, "end_point": {"row": 19, "column": 53}}, {"id": 58, "type": "identifier", "text": "dbus", "parent": 57, "children": [], "start_point": {"row": 19, "column": 38}, "end_point": {"row": 19, "column": 42}}, {"id": 59, "type": "identifier", "text": "ObjectPtr", "parent": 57, "children": [], "start_point": {"row": 19, "column": 44}, "end_point": {"row": 19, "column": 53}}, {"id": 60, "type": "identifier", "text": "object", "parent": 56, "children": [], "start_point": {"row": 19, "column": 54}, "end_point": {"row": 19, "column": 60}}, {"id": 61, "type": "call_expression", "text": "MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object))", "parent": 18, "children": [62, 63], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 64}}, {"id": 62, "type": "identifier", "text": "MOCK_METHOD1", "parent": 61, "children": [], "start_point": {"row": 20, "column": 2}, "end_point": {"row": 20, "column": 14}}, {"id": 63, "type": "argument_list", "text": "(UnregisterObject, void(::dbus::ObjectPtr object))", "parent": 61, "children": [64, 65], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 64}}, {"id": 64, "type": "identifier", "text": "UnregisterObject", "parent": 63, "children": [], "start_point": {"row": 20, "column": 15}, "end_point": {"row": 20, "column": 31}}, {"id": 65, "type": "call_expression", "text": "void(::dbus::ObjectPtr object)", "parent": 63, "children": [66, 67], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 63}}, {"id": 66, "type": "identifier", "text": "void", "parent": 65, "children": [], "start_point": {"row": 20, "column": 33}, "end_point": {"row": 20, "column": 37}}, {"id": 67, "type": "argument_list", "text": "(::dbus::ObjectPtr object)", "parent": 65, "children": [68, 71], "start_point": {"row": 20, "column": 37}, "end_point": {"row": 20, "column": 63}}, {"id": 68, "type": "ERROR", "text": "::dbus::ObjectPtr", "parent": 67, "children": [69, 70], "start_point": {"row": 20, "column": 38}, "end_point": {"row": 20, "column": 55}}, {"id": 69, "type": "identifier", "text": "dbus", "parent": 68, "children": [], "start_point": {"row": 20, "column": 40}, "end_point": {"row": 20, "column": 44}}, {"id": 70, "type": "identifier", "text": "ObjectPtr", "parent": 68, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 55}}, {"id": 71, "type": "identifier", "text": "object", "parent": 67, "children": [], "start_point": {"row": 20, "column": 56}, "end_point": {"row": 20, "column": 62}}, {"id": 72, "type": "call_expression", "text": "MOCK_METHOD0(UnregisterAllObjects, void())", "parent": 18, "children": [73, 74], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 44}}, {"id": 73, "type": "identifier", "text": "MOCK_METHOD0", "parent": 72, "children": [], "start_point": {"row": 21, "column": 2}, "end_point": {"row": 21, "column": 14}}, {"id": 74, "type": "argument_list", "text": "(UnregisterAllObjects, void())", "parent": 72, "children": [75, 76], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 44}}, {"id": 75, "type": "identifier", "text": "UnregisterAllObjects", "parent": 74, "children": [], "start_point": {"row": 21, "column": 15}, "end_point": {"row": 21, "column": 35}}, {"id": 76, "type": "call_expression", "text": "void()", "parent": 74, "children": [77, 78], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 43}}, {"id": 77, "type": "identifier", "text": "void", "parent": 76, "children": [], "start_point": {"row": 21, "column": 37}, "end_point": {"row": 21, "column": 41}}, {"id": 78, "type": "argument_list", "text": "()", "parent": 76, "children": [], "start_point": {"row": 21, "column": 41}, "end_point": {"row": 21, "column": 43}}, {"id": 79, "type": "call_expression", "text": "MOCK_METHOD0(Loop, void())", "parent": 18, "children": [80, 81], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 28}}, {"id": 80, "type": "identifier", "text": "MOCK_METHOD0", "parent": 79, "children": [], "start_point": {"row": 23, "column": 2}, "end_point": {"row": 23, "column": 14}}, {"id": 81, "type": "argument_list", "text": "(Loop, void())", "parent": 79, "children": [82, 83], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 28}}, {"id": 82, "type": "identifier", "text": "Loop", "parent": 81, "children": [], "start_point": {"row": 23, "column": 15}, "end_point": {"row": 23, "column": 19}}, {"id": 83, "type": "call_expression", "text": "void()", "parent": 81, "children": [84, 85], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 27}}, {"id": 84, "type": "identifier", "text": "void", "parent": 83, "children": [], "start_point": {"row": 23, "column": 21}, "end_point": {"row": 23, "column": 25}}, {"id": 85, "type": "argument_list", "text": "()", "parent": 83, "children": [], "start_point": {"row": 23, "column": 25}, "end_point": {"row": 23, "column": 27}}, {"id": 86, "type": "call_expression", "text": "MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle))", "parent": 18, "children": [87, 88], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 87}}, {"id": 87, "type": "identifier", "text": "MOCK_METHOD2", "parent": 86, "children": [], "start_point": {"row": 25, "column": 2}, "end_point": {"row": 25, "column": 14}}, {"id": 88, "type": "argument_list", "text": "(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle))", "parent": 86, "children": [89, 90], "start_point": {"row": 25, "column": 14}, "end_point": {"row": 25, "column": 87}}, {"id": 89, "type": "identifier", "text": "SendMessage", "parent": 88, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 26}}, {"id": 90, "type": "call_expression", "text": "void(DBusMessage *message, DBusPendingCall **reply_handle)", "parent": 88, "children": [91, 92], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 86}}, {"id": 91, "type": "identifier", "text": "void", "parent": 90, "children": [], "start_point": {"row": 25, "column": 28}, "end_point": {"row": 25, "column": 32}}, {"id": 92, "type": "argument_list", "text": "(DBusMessage *message, DBusPendingCall **reply_handle)", "parent": 90, "children": [93, 97], "start_point": {"row": 25, "column": 32}, "end_point": {"row": 25, "column": 86}}, {"id": 93, "type": "binary_expression", "text": "DBusMessage *message", "parent": 92, "children": [94, 95, 96], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 53}}, {"id": 94, "type": "identifier", "text": "DBusMessage", "parent": 93, "children": [], "start_point": {"row": 25, "column": 33}, "end_point": {"row": 25, "column": 44}}, {"id": 95, "type": "*", "text": "*", "parent": 93, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 46}}, {"id": 96, "type": "identifier", "text": "message", "parent": 93, "children": [], "start_point": {"row": 25, "column": 46}, "end_point": {"row": 25, "column": 53}}, {"id": 97, "type": "binary_expression", "text": "DBusPendingCall **reply_handle", "parent": 92, "children": [98, 99, 100], "start_point": {"row": 25, "column": 55}, "end_point": {"row": 25, "column": 85}}, {"id": 98, "type": "identifier", "text": "DBusPendingCall", "parent": 97, "children": [], "start_point": {"row": 25, "column": 55}, "end_point": {"row": 25, "column": 70}}, {"id": 99, "type": "*", "text": "*", "parent": 97, "children": [], "start_point": {"row": 25, "column": 71}, "end_point": {"row": 25, "column": 72}}, {"id": 100, "type": "pointer_expression", "text": "*reply_handle", "parent": 97, "children": [101, 102], "start_point": {"row": 25, "column": 72}, "end_point": {"row": 25, "column": 85}}, {"id": 101, "type": "*", "text": "*", "parent": 100, "children": [], "start_point": {"row": 25, "column": 72}, "end_point": {"row": 25, "column": 73}}, {"id": 102, "type": "identifier", "text": "reply_handle", "parent": 100, "children": [], "start_point": {"row": 25, "column": 73}, "end_point": {"row": 25, "column": 85}}]}, "node_categories": {"declarations": {"functions": [12, 15, 18], "variables": [], "classes": [], "imports": [3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [24, 28, 31, 35, 38, 42, 47, 50, 54, 61, 65, 72, 76, 79, 83, 86, 90, 93, 97, 100], "assignments": [], "loops": [], "conditionals": [13, 14, 16, 17, 20, 21, 22, 23, 25, 27, 29, 32, 34, 36, 39, 41, 43, 46, 48, 49, 51, 53, 55, 58, 59, 60, 62, 64, 66, 69, 70, 71, 73, 75, 77, 80, 82, 84, 87, 89, 91, 94, 96, 98, 102], "returns": [], "exceptions": []}, "expressions": {"calls": [0], "literals": [5, 8, 11], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 12, "universal_type": "function", "name": "Bus", "text_snippet": "namespace mock\n{\n\nnamespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0"}, {"node_id": 15, "universal_type": "function", "name": "Bus", "text_snippet": "namespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());"}, {"node_id": 18, "universal_type": "function", "name": "Bus", "text_snippet": "class Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Di"}], "class_declarations": [], "import_statements": [{"node_id": 3, "text": "#include <gmock/gmock.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include <slas/dbus/detail/bus_interface.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <slas/dbus/object.h>\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#pragma once\n\n#include <gmock/gmock.h>\n\n#include <slas/dbus/detail/bus_interface.h>\n#include <slas/dbus/object.h>\n\nnamespace mock\n{\n\nnamespace dbus\n{\n\nclass Bus : public ::dbus::detail::BusInterface {\n MOCK_METHOD0(Connect, void());\n MOCK_METHOD0(Disconnect, void());\n\n MOCK_METHOD1(RequestConnectionName, void(const std::string &method_name));\n\n MOCK_METHOD1(RegisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD1(UnregisterObject, void(::dbus::ObjectPtr object));\n MOCK_METHOD0(UnregisterAllObjects, void());\n\n MOCK_METHOD0(Loop, void());\n\n MOCK_METHOD2(SendMessage, void(DBusMessage *message, DBusPendingCall **reply_handle));\n};\n\n}\n\n}\n"}
80,385
c
/* Generated by RuntimeBrowser. */ @protocol _TtPs15_ShadowProtocol_ @end
17.75
4
(translation_unit) "/* Generated by RuntimeBrowser.\n */\n\n@protocol _TtPs15_ShadowProtocol_\n\n@end\n" (comment) "/* Generated by RuntimeBrowser.\n */" (ERROR) "@protocol _TtPs15_ShadowProtocol_\n\n@end" (ERROR) "@" (type_identifier) "protocol" (identifier) "_TtPs15_ShadowProtocol_" (ERROR) "@" (identifier) "end"
8
3
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 17.75, "nodes": 5, "errors": 0, "source_hash": "b6edb70d9d3e6a78d5826a9bf6e09ac652dab640a3a8e91d7b6f2b514d5c4713", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@protocol _TtPs15_ShadowProtocol_\n\n@end", "parent": null, "children": [1, 2, 3, 4], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 5, "column": 4}}, {"id": 1, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 1}}, {"id": 2, "type": "type_identifier", "text": "protocol", "parent": 0, "children": [], "start_point": {"row": 3, "column": 1}, "end_point": {"row": 3, "column": 9}}, {"id": 3, "type": "identifier", "text": "_TtPs15_ShadowProtocol_", "parent": 0, "children": [], "start_point": {"row": 3, "column": 10}, "end_point": {"row": 3, "column": 33}}, {"id": 4, "type": "ERROR", "text": "@", "parent": 0, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 1}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [2, 3], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "/* Generated by RuntimeBrowser.\n */\n\n@protocol _TtPs15_ShadowProtocol_\n\n@end\n"}
80,386
c
#ifndef _DGDIALOGANIMATOR_H #define _DGDIALOGANIMATOR_H #import <Foundation/Foundation.h> //! Project version number for DGDialogAnimator FOUNDATION_EXPORT double DGDialogAnimatorVersionNumber; //! Project version string for DGDialogAnimator FOUNDATION_EXPORT const unsigned char DGDialogAnimatorVersionString[]; #endif /* _DGDIALOGANIMATOR_H */
42.25
8
(translation_unit) "#ifndef _DGDIALOGANIMATOR_H\n#define _DGDIALOGANIMATOR_H\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for DGDialogAnimator\nFOUNDATION_EXPORT double DGDialogAnimatorVersionNumber;\n\n//! Project version string for DGDialogAnimator\nFOUNDATION_EXPORT const unsigned char DGDialogAnimatorVersionString[];\n\n#endif /* _DGDIALOGANIMATOR_H */\n" (preproc_ifdef) "#ifndef _DGDIALOGANIMATOR_H\n#define _DGDIALOGANIMATOR_H\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for DGDialogAnimator\nFOUNDATION_EXPORT double DGDialogAnimatorVersionNumber;\n\n//! Project version string for DGDialogAnimator\nFOUNDATION_EXPORT const unsigned char DGDialogAnimatorVersionString[];\n\n#endif" (#ifndef) "#ifndef" (identifier) "_DGDIALOGANIMATOR_H" (preproc_def) "#define _DGDIALOGANIMATOR_H\n" (#define) "#define" (identifier) "_DGDIALOGANIMATOR_H" (preproc_call) "#import <Foundation/Foundation.h>\n" (preproc_directive) "#import" (preproc_arg) "<Foundation/Foundation.h>" (comment) "//! Project version number for DGDialogAnimator" (declaration) "FOUNDATION_EXPORT double DGDialogAnimatorVersionNumber;" (type_identifier) "FOUNDATION_EXPORT" (ERROR) "double" (identifier) "double" (identifier) "DGDialogAnimatorVersionNumber" (;) ";" (comment) "//! Project version string for DGDialogAnimator" (declaration) "FOUNDATION_EXPORT const unsigned" (type_identifier) "FOUNDATION_EXPORT" (type_qualifier) "const" (const) "const" (identifier) "unsigned" (;) "" (declaration) "char DGDialogAnimatorVersionString[];" (primitive_type) "char" (array_declarator) "DGDialogAnimatorVersionString[]" (identifier) "DGDialogAnimatorVersionString" ([) "[" (]) "]" (;) ";" (#endif) "#endif" (comment) "/* _DGDIALOGANIMATOR_H */"
33
1
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 42.25, "nodes": 22, "errors": 0, "source_hash": "3176cfcbcaa89f1ed32260d783c9d8d72d17a03b41f85304aa4b52ab1bf1f2fd", "categorized_nodes": 15}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _DGDIALOGANIMATOR_H\n#define _DGDIALOGANIMATOR_H\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for DGDialogAnimator\nFOUNDATION_EXPORT double DGDialogAnimatorVersionNumber;\n\n//! Project version string for DGDialogAnimator\nFOUNDATION_EXPORT const unsigned char DGDialogAnimatorVersionString[];\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 14, 17, 21], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 11, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 0, "column": 7}}, {"id": 2, "type": "identifier", "text": "_DGDIALOGANIMATOR_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 27}}, {"id": 3, "type": "preproc_def", "text": "#define _DGDIALOGANIMATOR_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": "_DGDIALOGANIMATOR_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 27}}, {"id": 6, "type": "preproc_call", "text": "#import <Foundation/Foundation.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "#import", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "<Foundation/Foundation.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 8}, "end_point": {"row": 3, "column": 33}}, {"id": 9, "type": "declaration", "text": "FOUNDATION_EXPORT double DGDialogAnimatorVersionNumber;", "parent": 0, "children": [10, 11, 13], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 55}}, {"id": 10, "type": "type_identifier", "text": "FOUNDATION_EXPORT", "parent": 9, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 17}}, {"id": 11, "type": "ERROR", "text": "double", "parent": 9, "children": [12], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 24}}, {"id": 12, "type": "identifier", "text": "double", "parent": 11, "children": [], "start_point": {"row": 6, "column": 18}, "end_point": {"row": 6, "column": 24}}, {"id": 13, "type": "identifier", "text": "DGDialogAnimatorVersionNumber", "parent": 9, "children": [], "start_point": {"row": 6, "column": 25}, "end_point": {"row": 6, "column": 54}}, {"id": 14, "type": "declaration", "text": "FOUNDATION_EXPORT const unsigned", "parent": 0, "children": [15, 16], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 32}}, {"id": 15, "type": "type_identifier", "text": "FOUNDATION_EXPORT", "parent": 14, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 17}}, {"id": 16, "type": "identifier", "text": "unsigned", "parent": 14, "children": [], "start_point": {"row": 9, "column": 24}, "end_point": {"row": 9, "column": 32}}, {"id": 17, "type": "declaration", "text": "char DGDialogAnimatorVersionString[];", "parent": 0, "children": [18, 19], "start_point": {"row": 9, "column": 33}, "end_point": {"row": 9, "column": 70}}, {"id": 18, "type": "primitive_type", "text": "char", "parent": 17, "children": [], "start_point": {"row": 9, "column": 33}, "end_point": {"row": 9, "column": 37}}, {"id": 19, "type": "array_declarator", "text": "DGDialogAnimatorVersionString[]", "parent": 17, "children": [20], "start_point": {"row": 9, "column": 38}, "end_point": {"row": 9, "column": 69}}, {"id": 20, "type": "identifier", "text": "DGDialogAnimatorVersionString", "parent": 19, "children": [], "start_point": {"row": 9, "column": 38}, "end_point": {"row": 9, "column": 67}}, {"id": 21, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 6}}]}, "node_categories": {"declarations": {"functions": [], "variables": [9, 14, 17], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 12, 13, 15, 16, 20, 21], "returns": [], "exceptions": []}, "expressions": {"calls": [6], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "#ifndef _DGDIALOGANIMATOR_H\n#define _DGDIALOGANIMATOR_H\n\n#import <Foundation/Foundation.h>\n\n//! Project version number for DGDialogAnimator\nFOUNDATION_EXPORT double DGDialogAnimatorVersionNumber;\n\n//! Project version string for DGDialogAnimator\nFOUNDATION_EXPORT const unsigned char DGDialogAnimatorVersionString[];\n\n#endif /* _DGDIALOGANIMATOR_H */\n"}
80,387
c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/socket.h> #include <sys/un.h> #define SV_SOCK_PATH "/tmp/ud_case" #define BUF_SIZE 10 /** * UNIX domain数据报socket服务端 */ int main(int argc, char **argv) { struct sockaddr_un svaddr, claddr; int sfd, j; socklen_t len; ssize_t numBytes; char buf[BUF_SIZE]; // 创建一个连接 if (-1 == (sfd = socket(AF_UNIX, SOCK_DGRAM, 0))) perror("socket error"); // 如果路径存在,先删除,防止绑定失败 if (-1 == remove(SV_SOCK_PATH) && ENOENT != errno) perror("remove error"); memset(&svaddr, 0x00, sizeof(struct sockaddr_un)); svaddr.sun_family = AF_UNIX; strncpy(svaddr.sun_path, SV_SOCK_PATH, sizeof(svaddr.sun_path) - 1); // 绑定到一个独一无二的地址 if (-1 == bind(sfd, (struct sockaddr *)&svaddr, sizeof(struct sockaddr_un))) perror("bind error"); // 循环发送,接收数据 for(;;) { len = sizeof(struct sockaddr_un); // 从客户端接收数据 if (-1 == (numBytes = (recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len)))) perror("recvfrom error"); else printf("server: %ld bytes from %s\n", (int)numBytes, svaddr.sun_path); // 所有字符转为大写 for (int i=0; i<numBytes; i++) buf[i] = toupper((unsigned char )buf[i]); // 发送数据到客户端 if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes) perror("sendto error"); } }
27.72
53
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <string.h>\n#include <errno.h>\n#include <fcntl.h>\n#include <sys/socket.h>\n#include <sys/un.h>\n\n\n#define SV_SOCK_PATH "/tmp/ud_case"\n#define BUF_SIZE 10\n\n\n/**\n * UNIX domain数据报socket服务端\n */\nint \nmain(int argc, char **argv)\n{\n struct sockaddr_un svaddr, claddr;\n int sfd, j;\n socklen_t len;\n ssize_t numBytes;\n char buf[BUF_SIZE];\n\n // 创建一个连接\n if (-1 == (sfd = socket(AF_UNIX, SOCK_DGRAM, 0)))\n perror("socket error");\n // 如果路径存在,先删除,防止绑定失败\n if (-1 == remove(SV_SOCK_PATH) && ENOENT != errno)\n perror("remove error");\n\n memset(&svaddr, 0x00, sizeof(struct sockaddr_un));\n svaddr.sun_family = AF_UNIX;\n strncpy(svaddr.sun_path, SV_SOCK_PATH, sizeof(svaddr.sun_path) - 1);\n\n // 绑定到一个独一无二的地址\n if (-1 == bind(sfd, (struct sockaddr *)&svaddr, sizeof(struct sockaddr_un)))\n perror("bind error");\n\n // 循环发送,接收数据\n for(;;)\n {\n len = sizeof(struct sockaddr_un);\n\n // 从客户端接收数据\n if (-1 == (numBytes = (recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len))))\n perror("recvfrom error");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes, svaddr.sun_path);\n // 所有字符转为大写 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]);\n\n // 发送数据到客户端\n if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror("sendto error");\n \n }\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <stdlib.h>\n" (#include) "#include" (system_lib_string) "<stdlib.h>" (preproc_include) "#include <unistd.h>\n" (#include) "#include" (system_lib_string) "<unistd.h>" (preproc_include) "#include <string.h>\n" (#include) "#include" (system_lib_string) "<string.h>" (preproc_include) "#include <errno.h>\n" (#include) "#include" (system_lib_string) "<errno.h>" (preproc_include) "#include <fcntl.h>\n" (#include) "#include" (system_lib_string) "<fcntl.h>" (preproc_include) "#include <sys/socket.h>\n" (#include) "#include" (system_lib_string) "<sys/socket.h>" (preproc_include) "#include <sys/un.h>\n" (#include) "#include" (system_lib_string) "<sys/un.h>" (preproc_def) "#define SV_SOCK_PATH "/tmp/ud_case"\n" (#define) "#define" (identifier) "SV_SOCK_PATH" (preproc_arg) ""/tmp/ud_case"" (preproc_def) "#define BUF_SIZE 10\n" (#define) "#define" (identifier) "BUF_SIZE" (preproc_arg) "10" (comment) "/**\n * UNIX domain数据报socket服务端\n */\nint \nmain(i" (function_definition) "t argc, char **argv)\n{\n struct sockaddr_un svaddr, claddr;\n int sfd, j;\n socklen_t len;\n ssize_t numBytes;\n char buf[BUF_SIZE];\n\n // 创建一个连接\n if (-1 == (sfd = socket(AF_UNIX, SOCK_DGRAM, 0)))\n perror("socket error");\n // 如果路径存在,先删除,防止绑定失败\n if (-1 == remove(SV_SOCK_PATH) && ENOENT != errno)\n perror("remove error");\n\n memset(&svaddr, 0x00, sizeof(struct sockaddr_un));\n svaddr.sun_family = AF_UNIX;\n strncpy(svaddr.sun_path, SV_SOCK_PATH, sizeof(svaddr.sun_path) - 1);\n\n // 绑定到一个独一无二的地址\n if (-1 == bind(sfd, (struct sockaddr *)&svaddr, sizeof(struct sockaddr_un)))\n perror("bind error");\n\n // 循环发送,接收数据\n for(;;)\n {\n len = sizeof(struct sockaddr_un);\n\n // 从客户端接收数据\n if (-1 == (numBytes = (recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len))))\n perror("recvfrom error");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes, svaddr.sun_path);\n // 所有字符转为大写 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]);\n\n // 发送数据到客户端\n if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror("sendto error");\n \n }\n}\n" (primitive_type) "t a" (function_declarator) "c, char **argv)\n{\n struc" (identifier) "c, c" (parameter_list) "har **argv)\n{\n struc" (() "h" (parameter_declaration) "ar **arg" (primitive_type) "ar " (identifier) "*arg" (,) "v" (parameter_declaration) "\n{\n stru" (primitive_type) "\n{\n " (pointer_declarator) " stru" (*) " " (pointer_declarator) " stru" (*) " " (identifier) "stru" ()) "c" (compound_statement) " sockaddr_un svaddr, claddr;\n int sfd, j;\n socklen_t len;\n ssize_t numBytes;\n char buf[BUF_SIZE];\n\n // 创建一个连接\n if (-1 == (sfd = socket(AF_UNIX, SOCK_DGRAM, 0)))\n perror("socket error");\n // 如果路径存在,先删除,防止绑定失败\n if (-1 == remove(SV_SOCK_PATH) && ENOENT != errno)\n perror("remove error");\n\n memset(&svaddr, 0x00, sizeof(struct sockaddr_un));\n svaddr.sun_family = AF_UNIX;\n strncpy(svaddr.sun_path, SV_SOCK_PATH, sizeof(svaddr.sun_path) - 1);\n\n // 绑定到一个独一无二的地址\n if (-1 == bind(sfd, (struct sockaddr *)&svaddr, sizeof(struct sockaddr_un)))\n perror("bind error");\n\n // 循环发送,接收数据\n for(;;)\n {\n len = sizeof(struct sockaddr_un);\n\n // 从客户端接收数据\n if (-1 == (numBytes = (recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len))))\n perror("recvfrom error");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes, svaddr.sun_path);\n // 所有字符转为大写 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]);\n\n // 发送数据到客户端\n if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror("sendto error");\n \n }\n}\n" ({) " " (declaration) "ddr_un svaddr, claddr;\n int sfd" (struct_specifier) "ddr_un svaddr, cla" (struct) "ddr_un" (type_identifier) "svaddr, cla" (identifier) "dr;\n " (,) " " (identifier) "int sf" (;) "d" (declaration) " socklen" (primitive_type) " " (identifier) "soc" (,) "k" (identifier) "e" (;) "n" (declaration) "n;\n ssize_t" (type_identifier) "n;\n ss" (identifier) "ze_" (;) "t" (declaration) "ytes;\n char bu" (primitive_type) "ytes;\n " (identifier) " char b" (;) "u" (declaration) "_SIZE];\n\n // 创建一" (primitive_type) "_SIZ" (array_declarator) "];\n\n // 创建" (identifier) "];\n" ([) "\n" (identifier) " // 创" (]) "建" (;) "一" (comment) " if (-1 == (sfd = so" (if_statement) "AF_UNIX, SOCK_DGRAM, 0)))\n perror("socket error");\n // 如果路径存在,先删除,防止绑定失" (if) "AF" (parenthesized_expression) "UNIX, SOCK_DGRAM, 0)))\n perror("socket " (() "U" (binary_expression) "NIX, SOCK_DGRAM, 0)))\n perror("socket" (number_literal) "NI" (==) ", " (parenthesized_expression) "OCK_DGRAM, 0)))\n perror("socket" (() "O" (assignment_expression) "CK_DGRAM, 0)))\n perror("socke" (identifier) "CK_" (=) "G" (call_expression) "AM, 0)))\n perror("socke" (identifier) "AM, 0)" (argument_list) "))\n perror("socke" (() ")" (identifier) ")\n " (,) " " (identifier) " perror("s" (,) "o" (number_literal) "k" ()) "e" ()) "t" ()) " " (expression_statement) " // 如果路径存在,先删除,防止绑定失" (call_expression) " // 如果路径存在,先删除,防止绑定" (identifier) " //" (argument_list) " 如果路径存在,先删除,防止绑定" (() " " (string_literal) "如果路径存在,先删除,防止绑" (") "如" (string_content) "果路径存在,先删除,防止" (") "绑" ()) "定" (;) "失" (comment) " if (-1 == remove(SV_SOCK_PATH) && ENOENT != errno)\n " (if_statement) " perror("remove error");\n\n memset(&svaddr, 0x00, sizeof(struct sockaddr_un));\n " (if) " p" (parenthesized_expression) "rror("remove error");\n\n memset(&svaddr, 0x00" (() "r" (binary_expression) "ror("remove error");\n\n memset(&svaddr, 0x0" (binary_expression) "ror("remove error");\n\n " (number_literal) "ro" (==) "("" (call_expression) "emove error");\n\n " (identifier) "emove " (argument_list) "error");\n\n " (() "e" (identifier) "rror");\n\n " ()) " " (&&) "em" (binary_expression) "et(&svaddr, 0x0" (identifier) "et(&sv" (!=) "dd" (identifier) ", 0x0" ()) "0" (expression_statement) "struct sockaddr_un));\n " (call_expression) "struct sockaddr_un));\n" (identifier) "struct" (argument_list) " sockaddr_un));\n" (() " " (string_literal) "sockaddr_un));" (") "s" (string_content) "ockaddr_un))" (") ";" ()) "\n" (;) " " (expression_statement) "ddr.sun_family = AF_UNIX;\n strncpy(svaddr.sun_p" (call_expression) "ddr.sun_family = AF_UNIX;\n strncpy(svaddr.sun_" (identifier) "ddr.su" (argument_list) "n_family = AF_UNIX;\n strncpy(svaddr.sun_" (() "n" (pointer_expression) "_family" (&) "_" (identifier) "family" (,) " " (number_literal) " AF_" (,) "U" (sizeof_expression) "IX;\n strncpy(svaddr.sun" (sizeof) "IX;\n " (() " " (type_descriptor) " strncpy(svaddr.su" (struct_specifier) " strncpy(svaddr.su" (struct) " strnc" (type_identifier) "y(svaddr.su" ()) "n" ()) "_" (;) "p" (expression_statement) "SV_SOCK_PATH, sizeof(svaddr." (assignment_expression) "SV_SOCK_PATH, sizeof(svaddr" (field_expression) "SV_SOCK_PATH, siz" (identifier) "SV_SOC" (.) "K" (field_identifier) "_PATH, siz" (=) "o" (identifier) "(svaddr" (;) "." (expression_statement) "ath) - 1);\n\n // 绑定到一个独一无二的地址\n if (-1 == bind(sfd, (struct sock" (call_expression) "ath) - 1);\n\n // 绑定到一个独一无二的地址\n if (-1 == bind(sfd, (struct soc" (identifier) "ath) - " (argument_list) "1);\n\n // 绑定到一个独一无二的地址\n if (-1 == bind(sfd, (struct soc" (() "1" (field_expression) ");\n\n // 绑定到一" (identifier) ");\n\n " (.) " " (field_identifier) " // 绑定到一" (,) "个" (identifier) "一无二的地址\n i" (,) "f" (binary_expression) "(-1 == bind(sfd, (struct so" (sizeof_expression) "(-1 == bind(sfd, (struc" (sizeof) "(-1 ==" (parenthesized_expression) " bind(sfd, (struc" (() " " (field_expression) "bind(sfd, (stru" (identifier) "bind(s" (.) "f" (field_identifier) "d, (stru" ()) "c" (-) " " (number_literal) "o" ()) "c" (;) "k" (comment) ")&svaddr, sizeof(struct sockaddr_un)))\n" (if_statement) " perror("bind error");\n\n // 循环发送,接收数据\n for(;;)\n {\n len = sizeof(struct sockaddr_un);\n\n " (if) " " (parenthesized_expression) "perror("bind error");\n\n // 循环发送,接收数据\n for(;;)\n {\n len = s" (() "p" (binary_expression) "error("bind error");\n\n // 循环发送,接收数据\n for(;;)\n {\n len = " (number_literal) "er" (==) "or" (call_expression) ""bind error");\n\n // 循环发送,接收数据\n for(;;)\n {\n len = " (identifier) ""bin" (argument_list) "d error");\n\n // 循环发送,接收数据\n for(;;)\n {\n len = " (() "d" (identifier) " er" (,) "r" (cast_expression) "r");\n\n // 循环发送,接收数据\n " (() "r" (type_descriptor) "");\n\n // 循环发送," (struct_specifier) "");\n\n // 循环发" (struct) "");\n\n " (type_identifier) " // 循环发" (abstract_pointer_declarator) "," (*) "," ()) "接" (pointer_expression) "收数据\n " (&) "收" (identifier) "数据\n " (,) " " (sizeof_expression) "or(;;)\n {\n len =" (sizeof) "or(;;)" (() "\n" (type_descriptor) " {\n len " (struct_specifier) " {\n len " (struct) " {\n" (type_identifier) " len " ()) "=" ()) " " ()) "s" (expression_statement) "uct sockaddr_un);\n\n " (call_expression) "uct sockaddr_un);\n\n " (identifier) "uct so" (argument_list) "ckaddr_un);\n\n " (() "c" (string_literal) "kaddr_un);\n\n" (") "k" (string_content) "addr_un);\n" (") "\n" ()) " " (;) " " (comment) "// 从客户端接收数据\n if (-1 == " (for_statement) "ytes = (recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len))))\n perror("recvfrom error");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes, svaddr.sun_path);\n // 所有字符转为大写 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]);\n\n // 发送数据到客户端\n if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror("sendto error");\n \n }\n}\n" (for) "yte" (() "s" (;) " " (;) "=" ()) " " (compound_statement) "from(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len))))\n perror("recvfrom error");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes, svaddr.sun_path);\n // 所有字符转为大写 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]);\n\n // 发送数据到客户端\n if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror("sendto error");\n \n }\n}\n" ({) "f" (expression_statement) "buf, BUF_SIZE, 0, (struct sockadd" (assignment_expression) "buf, BUF_SIZE, 0, (struct sockad" (identifier) "buf" (=) " " (sizeof_expression) "UF_SIZE, 0, (struct sockad" (sizeof) "UF_SIZ" (() "E" (type_descriptor) ", 0, (struct socka" (struct_specifier) ", 0, (struct socka" (struct) ", 0, (" (type_identifier) "truct socka" ()) "d" (;) "d" (comment) "r, &len))))\n per" (if_statement) "from error");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes, svaddr.sun_path);\n // 所有字符转为大写 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i])" (if) "fr" (parenthesized_expression) "m error");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes," (() "m" (binary_expression) " error");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes" (number_literal) " e" (==) "ro" (parenthesized_expression) "");\n else\n printf("server: %ld bytes from %s\n", (int)numBytes" (() """ (assignment_expression) ");\n else\n printf("server: %ld bytes from %s\n", (int)numByte" (identifier) ");\n " (=) " " (parenthesized_expression) "else\n printf("server: %ld bytes from %s\n", (int)numByte" (() "e" (call_expression) "lse\n printf("server: %ld bytes from %s\n", (int)numByt" (identifier) "lse\n " (argument_list) " printf("server: %ld bytes from %s\n", (int)numByt" (() " " (identifier) " " (,) " " (identifier) " p" (,) "r" (identifier) "ntf("ser" (,) "v" (number_literal) "r" (,) ":" (cast_expression) "%ld bytes from %s\n", (int" (() "%" (type_descriptor) "ld bytes from %s\" (struct_specifier) "ld bytes from %" (struct) "ld byt" (type_identifier) "s from %" (abstract_pointer_declarator) "\" (*) "\" ()) "n" (pointer_expression) "", (int" (&) """ (identifier) ", (int" (,) ")" (pointer_expression) "umBy" (&) "u" (identifier) "mBy" ()) "t" ()) "e" ()) "s" ()) "," (expression_statement) "ath);\n // 所有字符转为大写" (call_expression) "ath);\n // 所有字符转为大" (identifier) "ath);\n" (argument_list) " // 所有字符转为大" (() " " (string_literal) " // 所有字符转为" (") " " (string_content) " // 所有字符转" (") "为" ()) "大" (;) "写" (else_clause) " for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i])" (else) " " (expression_statement) " i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i])" (call_expression) " i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]" (identifier) " i<num" (argument_list) "Bytes; i++)\n buf[i] = toupper((unsigned char )buf[i]" (() "B" (string_literal) "ytes; i++)\n buf[i]" (") "y" (string_content) "tes; i++)\n buf" (escape_sequence) "[i" (") "]" (,) " " (cast_expression) " toupper((uns" (() " " (type_descriptor) "tou" (primitive_type) "tou" ()) "p" (identifier) "per((uns" (,) "i" (field_expression) "ned char )buf[i" (identifier) "ned ch" (.) "a" (field_identifier) "r )buf[i" ()) "]" (;) ")" (comment) " // 发送数据到客户端\n if (sendt" (for_statement) "f, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror("se" (for) "f, " (() "u" (declaration) "mBytes, " (primitive_type) "mBy" (init_declarator) "es," (identifier) "e" (=) "s" (number_literal) "," (;) " " (binary_expression) ", (struct " (identifier) "," (<) " " (identifier) "(struct " (;) "s" (update_expression) "cka" (identifier) "c" (++) "ka" ()) "d" (expression_statement) " len) != numBytes)\n perror("se" (assignment_expression) " len) != numBytes)\n perror("s" (subscript_expression) " len) " (identifier) " le" ([) "n" (identifier) ")" (]) " " (=) "=" (call_expression) "numBytes)\n perror("s" (identifier) "numByte" (argument_list) "s)\n perror("s" (() "s" (cast_expression) ")\n perror("" (() ")" (type_descriptor) "\n " (sized_type_specifier) "\n " (unsigned) "\n " (primitive_type) " " ()) "e" (subscript_expression) "rror("" (identifier) "rro" ([) "r" (identifier) "(" (]) """ ()) "s" (;) "e" (comment) "");\n \n }\n}\n" (if_statement) "" (if) "" (parenthesized_expression) "" (() "" (binary_expression) "" (call_expression) "" (identifier) "" (argument_list) "" (() "" (identifier) "" (,) "" (identifier) "" (,) "" (identifier) "" (,) "" (number_literal) "" (,) "" (cast_expression) "" (() "" (type_descriptor) "" (struct_specifier) "" (struct) "" (type_identifier) "" (abstract_pointer_declarator) "" (*) "" ()) "" (pointer_expression) "" (&) "" (identifier) "" (,) "" (identifier) "" ()) "" (!=) "" (identifier) "" ()) "" (expression_statement) "" (call_expression) "" (identifier) "" (argument_list) "" (() "" (string_literal) "" (") "" (string_content) "" (") "" ()) "" (;) "" (}) "" (}) ""
457
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.72, "nodes": 276, "errors": 0, "source_hash": "6786eb5ce6f0b60da79b2bf1137d38c561d69e792457bb80ee7cca25ab704c52", "categorized_nodes": 200}, "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 <unistd.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<unistd.h>", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include <string.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<string.h>", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 19}}, {"id": 12, "type": "preproc_include", "text": "#include <errno.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": "<errno.h>", "parent": 12, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 18}}, {"id": 15, "type": "preproc_include", "text": "#include <fcntl.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": "<fcntl.h>", "parent": 15, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 18}}, {"id": 18, "type": "preproc_include", "text": "#include <sys/socket.h>\n", "parent": null, "children": [19, 20], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 7, "column": 0}}, {"id": 19, "type": "#include", "text": "#include", "parent": 18, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 8}}, {"id": 20, "type": "system_lib_string", "text": "<sys/socket.h>", "parent": 18, "children": [], "start_point": {"row": 6, "column": 9}, "end_point": {"row": 6, "column": 23}}, {"id": 21, "type": "preproc_include", "text": "#include <sys/un.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/un.h>", "parent": 21, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 19}}, {"id": 24, "type": "preproc_def", "text": "#define SV_SOCK_PATH \"/tmp/ud_case\"\n", "parent": null, "children": [25, 26, 27], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 25, "type": "#define", "text": "#define", "parent": 24, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 7}}, {"id": 26, "type": "identifier", "text": "SV_SOCK_PATH", "parent": 24, "children": [], "start_point": {"row": 10, "column": 8}, "end_point": {"row": 10, "column": 20}}, {"id": 27, "type": "preproc_arg", "text": "\"/tmp/ud_case\"", "parent": 24, "children": [], "start_point": {"row": 10, "column": 21}, "end_point": {"row": 10, "column": 35}}, {"id": 28, "type": "preproc_def", "text": "#define BUF_SIZE 10\n", "parent": null, "children": [29, 30, 31], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 29, "type": "#define", "text": "#define", "parent": 28, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 7}}, {"id": 30, "type": "identifier", "text": "BUF_SIZE", "parent": 28, "children": [], "start_point": {"row": 11, "column": 8}, "end_point": {"row": 11, "column": 16}}, {"id": 31, "type": "preproc_arg", "text": "10", "parent": 28, "children": [], "start_point": {"row": 11, "column": 17}, "end_point": {"row": 11, "column": 19}}, {"id": 32, "type": "function_definition", "text": "t argc, char **argv)\n{\n struct sockaddr_un svaddr, claddr;\n int sfd, j;\n socklen_t len;\n ssize_t numBytes;\n char buf[BUF_SIZE];\n\n // \u521b\u5efa\u4e00\u4e2a\u8fde\u63a5\n if (-1 == (sfd = socket(AF_UNIX, SOCK_DGRAM, 0)))\n perror(\"socket error\");\n // \u5982\u679c\u8def\u5f84\u5b58\u5728\uff0c\u5148\u5220\u9664\uff0c\u9632\u6b62\u7ed1\u5b9a\u5931\u8d25\n if (-1 == remove(SV_SOCK_PATH) && ENOENT != errno)\n perror(\"remove error\");\n\n memset(&svaddr, 0x00, sizeof(struct sockaddr_un));\n svaddr.sun_family = AF_UNIX;\n strncpy(svaddr.sun_path, SV_SOCK_PATH, sizeof(svaddr.sun_path) - 1);\n\n // \u7ed1\u5b9a\u5230\u4e00\u4e2a\u72ec\u4e00\u65e0\u4e8c\u7684\u5730\u5740\n if (-1 == bind(sfd, (struct sockaddr *)&svaddr, sizeof(struct sockaddr_un)))\n perror(\"bind error\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\n for(;;)\n {\n len = sizeof(struct sockaddr_un);\n\n // \u4ece\u5ba2\u6237\u7aef\u63a5\u6536\u6570\u636e\n if (-1 == (numBytes = (recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len))))\n perror(\"recvfrom error\");\n else\n printf(\"server: %ld bytes from %s\\n\", (int)numBytes, svaddr.sun_path);\n // \u6240\u6709\u5b57\u7b26\u8f6c\u4e3a\u5927\u5199 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]);\n\n // \u53d1\u9001\u6570\u636e\u5230\u5ba2\u6237\u7aef\n if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror(\"sendto error\");\n \n }\n}\n", "parent": null, "children": [33, 34], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 33, "type": "primitive_type", "text": "t a", "parent": 32, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 3}}, {"id": 34, "type": "function_declarator", "text": "c, char **argv)\n{\n struc", "parent": 32, "children": [35, 36], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 27}}, {"id": 35, "type": "identifier", "text": "c, c", "parent": 34, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 4}}, {"id": 36, "type": "parameter_list", "text": "har **argv)\n{\n struc", "parent": 34, "children": [37, 40], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 27}}, {"id": 37, "type": "parameter_declaration", "text": "ar **arg", "parent": 36, "children": [38, 39], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 13}}, {"id": 38, "type": "primitive_type", "text": "ar ", "parent": 37, "children": [], "start_point": {"row": 18, "column": 5}, "end_point": {"row": 18, "column": 8}}, {"id": 39, "type": "identifier", "text": "*arg", "parent": 37, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 13}}, {"id": 40, "type": "parameter_declaration", "text": "\n{\n stru", "parent": 36, "children": [41], "start_point": {"row": 18, "column": 15}, "end_point": {"row": 18, "column": 26}}, {"id": 41, "type": "pointer_declarator", "text": " stru", "parent": 40, "children": [42, 43], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 26}}, {"id": 42, "type": "*", "text": " ", "parent": 41, "children": [], "start_point": {"row": 18, "column": 20}, "end_point": {"row": 18, "column": 21}}, {"id": 43, "type": "pointer_declarator", "text": " stru", "parent": 41, "children": [44, 45], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 26}}, {"id": 44, "type": "*", "text": " ", "parent": 43, "children": [], "start_point": {"row": 18, "column": 21}, "end_point": {"row": 18, "column": 22}}, {"id": 45, "type": "identifier", "text": "stru", "parent": 43, "children": [], "start_point": {"row": 18, "column": 22}, "end_point": {"row": 18, "column": 26}}, {"id": 46, "type": "declaration", "text": "ddr_un svaddr, claddr;\n int sfd", "parent": 32, "children": [47, 50, 51], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 38}}, {"id": 47, "type": "struct_specifier", "text": "ddr_un svaddr, cla", "parent": 46, "children": [48, 49], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 22}}, {"id": 48, "type": "struct", "text": "ddr_un", "parent": 47, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 10}}, {"id": 49, "type": "type_identifier", "text": "svaddr, cla", "parent": 47, "children": [], "start_point": {"row": 20, "column": 11}, "end_point": {"row": 20, "column": 22}}, {"id": 50, "type": "identifier", "text": "dr;\n ", "parent": 46, "children": [], "start_point": {"row": 20, "column": 23}, "end_point": {"row": 20, "column": 29}}, {"id": 51, "type": "identifier", "text": "int sf", "parent": 46, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 37}}, {"id": 52, "type": "declaration", "text": " socklen", "parent": 32, "children": [53, 54, 55], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 15}}, {"id": 53, "type": "primitive_type", "text": " ", "parent": 52, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 7}}, {"id": 54, "type": "identifier", "text": "soc", "parent": 52, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 11}}, {"id": 55, "type": "identifier", "text": "e", "parent": 52, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 14}}, {"id": 56, "type": "declaration", "text": "n;\n ssize_t", "parent": 32, "children": [57, 58], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 18}}, {"id": 57, "type": "type_identifier", "text": "n;\n ss", "parent": 56, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 13}}, {"id": 58, "type": "identifier", "text": "ze_", "parent": 56, "children": [], "start_point": {"row": 22, "column": 14}, "end_point": {"row": 22, "column": 17}}, {"id": 59, "type": "declaration", "text": "ytes;\n char bu", "parent": 32, "children": [60, 61], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 21}}, {"id": 60, "type": "primitive_type", "text": "ytes;\n ", "parent": 59, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 11}}, {"id": 61, "type": "identifier", "text": " char b", "parent": 59, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 20}}, {"id": 62, "type": "declaration", "text": "_SIZE];\n\n // \u521b\u5efa\u4e00", "parent": 32, "children": [63, 64], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 23}}, {"id": 63, "type": "primitive_type", "text": "_SIZ", "parent": 62, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 8}}, {"id": 64, "type": "array_declarator", "text": "];\n\n // \u521b\u5efa", "parent": 62, "children": [65, 66], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 22}}, {"id": 65, "type": "identifier", "text": "];\n", "parent": 64, "children": [], "start_point": {"row": 24, "column": 9}, "end_point": {"row": 24, "column": 12}}, {"id": 66, "type": "identifier", "text": " // \u521b", "parent": 64, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 21}}, {"id": 67, "type": "if_statement", "text": "AF_UNIX, SOCK_DGRAM, 0)))\n perror(\"socket error\");\n // \u5982\u679c\u8def\u5f84\u5b58\u5728\uff0c\u5148\u5220\u9664\uff0c\u9632\u6b62\u7ed1\u5b9a\u5931", "parent": 32, "children": [68], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 28, "column": 31}}, {"id": 68, "type": "parenthesized_expression", "text": "UNIX, SOCK_DGRAM, 0)))\n perror(\"socket ", "parent": 67, "children": [69], "start_point": {"row": 27, "column": 7}, "end_point": {"row": 27, "column": 53}}, {"id": 69, "type": "binary_expression", "text": "NIX, SOCK_DGRAM, 0)))\n perror(\"socket", "parent": 68, "children": [70, 71], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 52}}, {"id": 70, "type": "number_literal", "text": "NI", "parent": 69, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 10}}, {"id": 71, "type": "parenthesized_expression", "text": "OCK_DGRAM, 0)))\n perror(\"socket", "parent": 69, "children": [72], "start_point": {"row": 27, "column": 14}, "end_point": {"row": 27, "column": 52}}, {"id": 72, "type": "assignment_expression", "text": "CK_DGRAM, 0)))\n perror(\"socke", "parent": 71, "children": [73, 74, 75], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 51}}, {"id": 73, "type": "identifier", "text": "CK_", "parent": 72, "children": [], "start_point": {"row": 27, "column": 15}, "end_point": {"row": 27, "column": 18}}, {"id": 74, "type": "=", "text": "G", "parent": 72, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 20}}, {"id": 75, "type": "call_expression", "text": "AM, 0)))\n perror(\"socke", "parent": 72, "children": [76, 77], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 51}}, {"id": 76, "type": "identifier", "text": "AM, 0)", "parent": 75, "children": [], "start_point": {"row": 27, "column": 21}, "end_point": {"row": 27, "column": 27}}, {"id": 77, "type": "argument_list", "text": "))\n perror(\"socke", "parent": 75, "children": [78, 79], "start_point": {"row": 27, "column": 27}, "end_point": {"row": 27, "column": 51}}, {"id": 78, "type": "identifier", "text": " perror(\"s", "parent": 77, "children": [], "start_point": {"row": 27, "column": 37}, "end_point": {"row": 27, "column": 47}}, {"id": 79, "type": "number_literal", "text": "k", "parent": 77, "children": [], "start_point": {"row": 27, "column": 49}, "end_point": {"row": 27, "column": 50}}, {"id": 80, "type": "call_expression", "text": " // \u5982\u679c\u8def\u5f84\u5b58\u5728\uff0c\u5148\u5220\u9664\uff0c\u9632\u6b62\u7ed1\u5b9a", "parent": 67, "children": [81, 82], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 30}}, {"id": 81, "type": "identifier", "text": " //", "parent": 80, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 14}}, {"id": 82, "type": "argument_list", "text": " \u5982\u679c\u8def\u5f84\u5b58\u5728\uff0c\u5148\u5220\u9664\uff0c\u9632\u6b62\u7ed1\u5b9a", "parent": 80, "children": [83], "start_point": {"row": 28, "column": 14}, "end_point": {"row": 28, "column": 30}}, {"id": 83, "type": "string_literal", "text": "\u5982\u679c\u8def\u5f84\u5b58\u5728\uff0c\u5148\u5220\u9664\uff0c\u9632\u6b62\u7ed1", "parent": 82, "children": [], "start_point": {"row": 28, "column": 15}, "end_point": {"row": 28, "column": 29}}, {"id": 84, "type": "if_statement", "text": " perror(\"remove error\");\n\n memset(&svaddr, 0x00, sizeof(struct sockaddr_un));\n ", "parent": 32, "children": [85], "start_point": {"row": 30, "column": 4}, "end_point": {"row": 31, "column": 31}}, {"id": 85, "type": "parenthesized_expression", "text": "rror(\"remove error\");\n\n memset(&svaddr, 0x00", "parent": 84, "children": [86], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 54}}, {"id": 86, "type": "binary_expression", "text": "ror(\"remove error\");\n\n memset(&svaddr, 0x0", "parent": 85, "children": [87, 94, 95], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 53}}, {"id": 87, "type": "binary_expression", "text": "ror(\"remove error\");\n\n ", "parent": 86, "children": [88, 89, 90], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 34}}, {"id": 88, "type": "number_literal", "text": "ro", "parent": 87, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 10}}, {"id": 89, "type": "==", "text": "(\"", "parent": 87, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 13}}, {"id": 90, "type": "call_expression", "text": "emove error\");\n\n ", "parent": 87, "children": [91, 92], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 34}}, {"id": 91, "type": "identifier", "text": "emove ", "parent": 90, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 20}}, {"id": 92, "type": "argument_list", "text": "error\");\n\n ", "parent": 90, "children": [93], "start_point": {"row": 30, "column": 20}, "end_point": {"row": 30, "column": 34}}, {"id": 93, "type": "identifier", "text": "rror\");\n\n ", "parent": 92, "children": [], "start_point": {"row": 30, "column": 21}, "end_point": {"row": 30, "column": 33}}, {"id": 94, "type": "&&", "text": "em", "parent": 86, "children": [], "start_point": {"row": 30, "column": 35}, "end_point": {"row": 30, "column": 37}}, {"id": 95, "type": "binary_expression", "text": "et(&svaddr, 0x0", "parent": 86, "children": [96, 97, 98], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 53}}, {"id": 96, "type": "identifier", "text": "et(&sv", "parent": 95, "children": [], "start_point": {"row": 30, "column": 38}, "end_point": {"row": 30, "column": 44}}, {"id": 97, "type": "!=", "text": "dd", "parent": 95, "children": [], "start_point": {"row": 30, "column": 45}, "end_point": {"row": 30, "column": 47}}, {"id": 98, "type": "identifier", "text": ", 0x0", "parent": 95, "children": [], "start_point": {"row": 30, "column": 48}, "end_point": {"row": 30, "column": 53}}, {"id": 99, "type": "call_expression", "text": "struct sockaddr_un));\n", "parent": 84, "children": [100, 101], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 30}}, {"id": 100, "type": "identifier", "text": "struct", "parent": 99, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 14}}, {"id": 101, "type": "argument_list", "text": " sockaddr_un));\n", "parent": 99, "children": [102], "start_point": {"row": 31, "column": 14}, "end_point": {"row": 31, "column": 30}}, {"id": 102, "type": "string_literal", "text": "sockaddr_un));", "parent": 101, "children": [], "start_point": {"row": 31, "column": 15}, "end_point": {"row": 31, "column": 29}}, {"id": 103, "type": "call_expression", "text": "ddr.sun_family = AF_UNIX;\n strncpy(svaddr.sun_", "parent": 32, "children": [104, 105], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 53}}, {"id": 104, "type": "identifier", "text": "ddr.su", "parent": 103, "children": [], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 10}}, {"id": 105, "type": "argument_list", "text": "n_family = AF_UNIX;\n strncpy(svaddr.sun_", "parent": 103, "children": [106, 109, 110], "start_point": {"row": 33, "column": 10}, "end_point": {"row": 33, "column": 53}}, {"id": 106, "type": "pointer_expression", "text": "_family", "parent": 105, "children": [107, 108], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 18}}, {"id": 107, "type": "&", "text": "_", "parent": 106, "children": [], "start_point": {"row": 33, "column": 11}, "end_point": {"row": 33, "column": 12}}, {"id": 108, "type": "identifier", "text": "family", "parent": 106, "children": [], "start_point": {"row": 33, "column": 12}, "end_point": {"row": 33, "column": 18}}, {"id": 109, "type": "number_literal", "text": " AF_", "parent": 105, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 24}}, {"id": 110, "type": "sizeof_expression", "text": "IX;\n strncpy(svaddr.sun", "parent": 105, "children": [111, 112], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 52}}, {"id": 111, "type": "sizeof", "text": "IX;\n ", "parent": 110, "children": [], "start_point": {"row": 33, "column": 26}, "end_point": {"row": 33, "column": 32}}, {"id": 112, "type": "type_descriptor", "text": " strncpy(svaddr.su", "parent": 110, "children": [113], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 51}}, {"id": 113, "type": "struct_specifier", "text": " strncpy(svaddr.su", "parent": 112, "children": [114, 115], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 51}}, {"id": 114, "type": "struct", "text": " strnc", "parent": 113, "children": [], "start_point": {"row": 33, "column": 33}, "end_point": {"row": 33, "column": 39}}, {"id": 115, "type": "type_identifier", "text": "y(svaddr.su", "parent": 113, "children": [], "start_point": {"row": 33, "column": 40}, "end_point": {"row": 33, "column": 51}}, {"id": 116, "type": "assignment_expression", "text": "SV_SOCK_PATH, sizeof(svaddr", "parent": 32, "children": [117, 120, 121], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 31}}, {"id": 117, "type": "field_expression", "text": "SV_SOCK_PATH, siz", "parent": 116, "children": [118, 119], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 21}}, {"id": 118, "type": "identifier", "text": "SV_SOC", "parent": 117, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 10}}, {"id": 119, "type": "field_identifier", "text": "_PATH, siz", "parent": 117, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 21}}, {"id": 120, "type": "=", "text": "o", "parent": 116, "children": [], "start_point": {"row": 34, "column": 22}, "end_point": {"row": 34, "column": 23}}, {"id": 121, "type": "identifier", "text": "(svaddr", "parent": 116, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 31}}, {"id": 122, "type": "call_expression", "text": "ath) - 1);\n\n // \u7ed1\u5b9a\u5230\u4e00\u4e2a\u72ec\u4e00\u65e0\u4e8c\u7684\u5730\u5740\n if (-1 == bind(sfd, (struct soc", "parent": 32, "children": [123, 124], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 71}}, {"id": 123, "type": "identifier", "text": "ath) - ", "parent": 122, "children": [], "start_point": {"row": 35, "column": 4}, "end_point": {"row": 35, "column": 11}}, {"id": 124, "type": "argument_list", "text": "1);\n\n // \u7ed1\u5b9a\u5230\u4e00\u4e2a\u72ec\u4e00\u65e0\u4e8c\u7684\u5730\u5740\n if (-1 == bind(sfd, (struct soc", "parent": 122, "children": [125, 128, 129], "start_point": {"row": 35, "column": 11}, "end_point": {"row": 35, "column": 71}}, {"id": 125, "type": "field_expression", "text": ");\n\n // \u7ed1\u5b9a\u5230\u4e00", "parent": 124, "children": [126, 127], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 27}}, {"id": 126, "type": "identifier", "text": ");\n\n ", "parent": 125, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 18}}, {"id": 127, "type": "field_identifier", "text": " // \u7ed1\u5b9a\u5230\u4e00", "parent": 125, "children": [], "start_point": {"row": 35, "column": 19}, "end_point": {"row": 35, "column": 27}}, {"id": 128, "type": "identifier", "text": "\u4e00\u65e0\u4e8c\u7684\u5730\u5740\n i", "parent": 124, "children": [], "start_point": {"row": 35, "column": 29}, "end_point": {"row": 35, "column": 41}}, {"id": 129, "type": "binary_expression", "text": "(-1 == bind(sfd, (struct so", "parent": 124, "children": [130, 136, 137], "start_point": {"row": 35, "column": 43}, "end_point": {"row": 35, "column": 70}}, {"id": 130, "type": "sizeof_expression", "text": "(-1 == bind(sfd, (struc", "parent": 129, "children": [131, 132], "start_point": {"row": 35, "column": 43}, "end_point": {"row": 35, "column": 66}}, {"id": 131, "type": "sizeof", "text": "(-1 ==", "parent": 130, "children": [], "start_point": {"row": 35, "column": 43}, "end_point": {"row": 35, "column": 49}}, {"id": 132, "type": "parenthesized_expression", "text": " bind(sfd, (struc", "parent": 130, "children": [133], "start_point": {"row": 35, "column": 49}, "end_point": {"row": 35, "column": 66}}, {"id": 133, "type": "field_expression", "text": "bind(sfd, (stru", "parent": 132, "children": [134, 135], "start_point": {"row": 35, "column": 50}, "end_point": {"row": 35, "column": 65}}, {"id": 134, "type": "identifier", "text": "bind(s", "parent": 133, "children": [], "start_point": {"row": 35, "column": 50}, "end_point": {"row": 35, "column": 56}}, {"id": 135, "type": "field_identifier", "text": "d, (stru", "parent": 133, "children": [], "start_point": {"row": 35, "column": 57}, "end_point": {"row": 35, "column": 65}}, {"id": 136, "type": "-", "text": " ", "parent": 129, "children": [], "start_point": {"row": 35, "column": 67}, "end_point": {"row": 35, "column": 68}}, {"id": 137, "type": "number_literal", "text": "o", "parent": 129, "children": [], "start_point": {"row": 35, "column": 69}, "end_point": {"row": 35, "column": 70}}, {"id": 138, "type": "if_statement", "text": " perror(\"bind error\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\n for(;;)\n {\n len = sizeof(struct sockaddr_un);\n\n ", "parent": 32, "children": [139], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 39, "column": 29}}, {"id": 139, "type": "parenthesized_expression", "text": "perror(\"bind error\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\n for(;;)\n {\n len = s", "parent": 138, "children": [140], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 80}}, {"id": 140, "type": "binary_expression", "text": "error(\"bind error\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\n for(;;)\n {\n len = ", "parent": 139, "children": [141, 142, 143], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 79}}, {"id": 141, "type": "number_literal", "text": "er", "parent": 140, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 10}}, {"id": 142, "type": "==", "text": "or", "parent": 140, "children": [], "start_point": {"row": 38, "column": 11}, "end_point": {"row": 38, "column": 13}}, {"id": 143, "type": "call_expression", "text": "\"bind error\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\n for(;;)\n {\n len = ", "parent": 140, "children": [144, 145], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 79}}, {"id": 144, "type": "identifier", "text": "\"bin", "parent": 143, "children": [], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 18}}, {"id": 145, "type": "argument_list", "text": "d error\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\n for(;;)\n {\n len = ", "parent": 143, "children": [146, 147, 157], "start_point": {"row": 38, "column": 18}, "end_point": {"row": 38, "column": 79}}, {"id": 146, "type": "identifier", "text": " er", "parent": 145, "children": [], "start_point": {"row": 38, "column": 19}, "end_point": {"row": 38, "column": 22}}, {"id": 147, "type": "cast_expression", "text": "r\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\n ", "parent": 145, "children": [148, 154], "start_point": {"row": 38, "column": 24}, "end_point": {"row": 38, "column": 50}}, {"id": 148, "type": "type_descriptor", "text": "\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c", "parent": 147, "children": [149, 152], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 42}}, {"id": 149, "type": "struct_specifier", "text": "\");\n\n // \u5faa\u73af\u53d1", "parent": 148, "children": [150, 151], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 40}}, {"id": 150, "type": "struct", "text": "\");\n\n ", "parent": 149, "children": [], "start_point": {"row": 38, "column": 25}, "end_point": {"row": 38, "column": 31}}, {"id": 151, "type": "type_identifier", "text": " // \u5faa\u73af\u53d1", "parent": 149, "children": [], "start_point": {"row": 38, "column": 32}, "end_point": {"row": 38, "column": 40}}, {"id": 152, "type": "abstract_pointer_declarator", "text": "\uff0c", "parent": 148, "children": [153], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 42}}, {"id": 153, "type": "*", "text": "\uff0c", "parent": 152, "children": [], "start_point": {"row": 38, "column": 41}, "end_point": {"row": 38, "column": 42}}, {"id": 154, "type": "pointer_expression", "text": "\u6536\u6570\u636e\n ", "parent": 147, "children": [155, 156], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 50}}, {"id": 155, "type": "&", "text": "\u6536", "parent": 154, "children": [], "start_point": {"row": 38, "column": 43}, "end_point": {"row": 38, "column": 44}}, {"id": 156, "type": "identifier", "text": "\u6570\u636e\n ", "parent": 154, "children": [], "start_point": {"row": 38, "column": 44}, "end_point": {"row": 38, "column": 50}}, {"id": 157, "type": "sizeof_expression", "text": "or(;;)\n {\n len =", "parent": 145, "children": [158, 159], "start_point": {"row": 38, "column": 52}, "end_point": {"row": 38, "column": 78}}, {"id": 158, "type": "sizeof", "text": "or(;;)", "parent": 157, "children": [], "start_point": {"row": 38, "column": 52}, "end_point": {"row": 38, "column": 58}}, {"id": 159, "type": "type_descriptor", "text": " {\n len ", "parent": 157, "children": [160], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 77}}, {"id": 160, "type": "struct_specifier", "text": " {\n len ", "parent": 159, "children": [161], "start_point": {"row": 38, "column": 59}, "end_point": {"row": 38, "column": 77}}, {"id": 161, "type": "type_identifier", "text": " len ", "parent": 160, "children": [], "start_point": {"row": 38, "column": 66}, "end_point": {"row": 38, "column": 77}}, {"id": 162, "type": "call_expression", "text": "uct sockaddr_un);\n\n ", "parent": 138, "children": [163, 164], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 28}}, {"id": 163, "type": "identifier", "text": "uct so", "parent": 162, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 14}}, {"id": 164, "type": "argument_list", "text": "ckaddr_un);\n\n ", "parent": 162, "children": [165], "start_point": {"row": 39, "column": 14}, "end_point": {"row": 39, "column": 28}}, {"id": 165, "type": "string_literal", "text": "kaddr_un);\n\n", "parent": 164, "children": [], "start_point": {"row": 39, "column": 15}, "end_point": {"row": 39, "column": 27}}, {"id": 166, "type": "for_statement", "text": "ytes = (recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len))))\n perror(\"recvfrom error\");\n else\n printf(\"server: %ld bytes from %s\\n\", (int)numBytes, svaddr.sun_path);\n // \u6240\u6709\u5b57\u7b26\u8f6c\u4e3a\u5927\u5199 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]);\n\n // \u53d1\u9001\u6570\u636e\u5230\u5ba2\u6237\u7aef\n if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror(\"sendto error\");\n \n }\n}\n", "parent": 32, "children": [], "start_point": {"row": 42, "column": 4}, "end_point": {"row": 59, "column": 5}}, {"id": 167, "type": "assignment_expression", "text": "buf, BUF_SIZE, 0, (struct sockad", "parent": 166, "children": [168, 169, 170], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 40}}, {"id": 168, "type": "identifier", "text": "buf", "parent": 167, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 11}}, {"id": 169, "type": "=", "text": " ", "parent": 167, "children": [], "start_point": {"row": 44, "column": 12}, "end_point": {"row": 44, "column": 13}}, {"id": 170, "type": "sizeof_expression", "text": "UF_SIZE, 0, (struct sockad", "parent": 167, "children": [171, 172], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 40}}, {"id": 171, "type": "sizeof", "text": "UF_SIZ", "parent": 170, "children": [], "start_point": {"row": 44, "column": 14}, "end_point": {"row": 44, "column": 20}}, {"id": 172, "type": "type_descriptor", "text": ", 0, (struct socka", "parent": 170, "children": [173], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 39}}, {"id": 173, "type": "struct_specifier", "text": ", 0, (struct socka", "parent": 172, "children": [174, 175], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 39}}, {"id": 174, "type": "struct", "text": ", 0, (", "parent": 173, "children": [], "start_point": {"row": 44, "column": 21}, "end_point": {"row": 44, "column": 27}}, {"id": 175, "type": "type_identifier", "text": "truct socka", "parent": 173, "children": [], "start_point": {"row": 44, "column": 28}, "end_point": {"row": 44, "column": 39}}, {"id": 176, "type": "if_statement", "text": "from error\");\n else\n printf(\"server: %ld bytes from %s\\n\", (int)numBytes, svaddr.sun_path);\n // \u6240\u6709\u5b57\u7b26\u8f6c\u4e3a\u5927\u5199 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i])", "parent": 166, "children": [177, 210], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 50, "column": 82}}, {"id": 177, "type": "parenthesized_expression", "text": "m error\");\n else\n printf(\"server: %ld bytes from %s\\n\", (int)numBytes,", "parent": 176, "children": [178], "start_point": {"row": 47, "column": 11}, "end_point": {"row": 47, "column": 99}}, {"id": 178, "type": "binary_expression", "text": " error\");\n else\n printf(\"server: %ld bytes from %s\\n\", (int)numBytes", "parent": 177, "children": [179, 180, 181], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 98}}, {"id": 179, "type": "number_literal", "text": " e", "parent": 178, "children": [], "start_point": {"row": 47, "column": 12}, "end_point": {"row": 47, "column": 14}}, {"id": 180, "type": "==", "text": "ro", "parent": 178, "children": [], "start_point": {"row": 47, "column": 15}, "end_point": {"row": 47, "column": 17}}, {"id": 181, "type": "parenthesized_expression", "text": "\");\n else\n printf(\"server: %ld bytes from %s\\n\", (int)numBytes", "parent": 178, "children": [182], "start_point": {"row": 47, "column": 18}, "end_point": {"row": 47, "column": 98}}, {"id": 182, "type": "assignment_expression", "text": ");\n else\n printf(\"server: %ld bytes from %s\\n\", (int)numByte", "parent": 181, "children": [183, 184, 185], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 97}}, {"id": 183, "type": "identifier", "text": ");\n ", "parent": 182, "children": [], "start_point": {"row": 47, "column": 19}, "end_point": {"row": 47, "column": 27}}, {"id": 184, "type": "=", "text": " ", "parent": 182, "children": [], "start_point": {"row": 47, "column": 28}, "end_point": {"row": 47, "column": 29}}, {"id": 185, "type": "parenthesized_expression", "text": "else\n printf(\"server: %ld bytes from %s\\n\", (int)numByte", "parent": 182, "children": [186], "start_point": {"row": 47, "column": 30}, "end_point": {"row": 47, "column": 97}}, {"id": 186, "type": "call_expression", "text": "lse\n printf(\"server: %ld bytes from %s\\n\", (int)numByt", "parent": 185, "children": [187, 188], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 96}}, {"id": 187, "type": "identifier", "text": "lse\n ", "parent": 186, "children": [], "start_point": {"row": 47, "column": 31}, "end_point": {"row": 47, "column": 39}}, {"id": 188, "type": "argument_list", "text": " printf(\"server: %ld bytes from %s\\n\", (int)numByt", "parent": 186, "children": [189, 190, 191, 192, 193, 203], "start_point": {"row": 47, "column": 39}, "end_point": {"row": 47, "column": 96}}, {"id": 189, "type": "identifier", "text": " ", "parent": 188, "children": [], "start_point": {"row": 47, "column": 40}, "end_point": {"row": 47, "column": 43}}, {"id": 190, "type": "identifier", "text": " p", "parent": 188, "children": [], "start_point": {"row": 47, "column": 45}, "end_point": {"row": 47, "column": 48}}, {"id": 191, "type": "identifier", "text": "ntf(\"ser", "parent": 188, "children": [], "start_point": {"row": 47, "column": 50}, "end_point": {"row": 47, "column": 58}}, {"id": 192, "type": "number_literal", "text": "r", "parent": 188, "children": [], "start_point": {"row": 47, "column": 60}, "end_point": {"row": 47, "column": 61}}, {"id": 193, "type": "cast_expression", "text": "%ld bytes from %s\\n\", (int", "parent": 188, "children": [194, 200], "start_point": {"row": 47, "column": 63}, "end_point": {"row": 47, "column": 89}}, {"id": 194, "type": "type_descriptor", "text": "ld bytes from %s\\", "parent": 193, "children": [195, 198], "start_point": {"row": 47, "column": 64}, "end_point": {"row": 47, "column": 81}}, {"id": 195, "type": "struct_specifier", "text": "ld bytes from %", "parent": 194, "children": [196, 197], "start_point": {"row": 47, "column": 64}, "end_point": {"row": 47, "column": 79}}, {"id": 196, "type": "struct", "text": "ld byt", "parent": 195, "children": [], "start_point": {"row": 47, "column": 64}, "end_point": {"row": 47, "column": 70}}, {"id": 197, "type": "type_identifier", "text": "s from %", "parent": 195, "children": [], "start_point": {"row": 47, "column": 71}, "end_point": {"row": 47, "column": 79}}, {"id": 198, "type": "abstract_pointer_declarator", "text": "\\", "parent": 194, "children": [199], "start_point": {"row": 47, "column": 80}, "end_point": {"row": 47, "column": 81}}, {"id": 199, "type": "*", "text": "\\", "parent": 198, "children": [], "start_point": {"row": 47, "column": 80}, "end_point": {"row": 47, "column": 81}}, {"id": 200, "type": "pointer_expression", "text": "\", (int", "parent": 193, "children": [201, 202], "start_point": {"row": 47, "column": 82}, "end_point": {"row": 47, "column": 89}}, {"id": 201, "type": "&", "text": "\"", "parent": 200, "children": [], "start_point": {"row": 47, "column": 82}, "end_point": {"row": 47, "column": 83}}, {"id": 202, "type": "identifier", "text": ", (int", "parent": 200, "children": [], "start_point": {"row": 47, "column": 83}, "end_point": {"row": 47, "column": 89}}, {"id": 203, "type": "pointer_expression", "text": "umBy", "parent": 188, "children": [204, 205], "start_point": {"row": 47, "column": 91}, "end_point": {"row": 47, "column": 95}}, {"id": 204, "type": "&", "text": "u", "parent": 203, "children": [], "start_point": {"row": 47, "column": 91}, "end_point": {"row": 47, "column": 92}}, {"id": 205, "type": "identifier", "text": "mBy", "parent": 203, "children": [], "start_point": {"row": 47, "column": 92}, "end_point": {"row": 47, "column": 95}}, {"id": 206, "type": "call_expression", "text": "ath);\n // \u6240\u6709\u5b57\u7b26\u8f6c\u4e3a\u5927", "parent": 176, "children": [207, 208], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 36}}, {"id": 207, "type": "identifier", "text": "ath);\n", "parent": 206, "children": [], "start_point": {"row": 48, "column": 12}, "end_point": {"row": 48, "column": 18}}, {"id": 208, "type": "argument_list", "text": " // \u6240\u6709\u5b57\u7b26\u8f6c\u4e3a\u5927", "parent": 206, "children": [209], "start_point": {"row": 48, "column": 18}, "end_point": {"row": 48, "column": 36}}, {"id": 209, "type": "string_literal", "text": " // \u6240\u6709\u5b57\u7b26\u8f6c\u4e3a", "parent": 208, "children": [], "start_point": {"row": 48, "column": 19}, "end_point": {"row": 48, "column": 35}}, {"id": 210, "type": "else_clause", "text": " for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i])", "parent": 176, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 50, "column": 82}}, {"id": 211, "type": "call_expression", "text": " i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]", "parent": 210, "children": [212, 213], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 81}}, {"id": 212, "type": "identifier", "text": " i<num", "parent": 211, "children": [], "start_point": {"row": 50, "column": 12}, "end_point": {"row": 50, "column": 18}}, {"id": 213, "type": "argument_list", "text": "Bytes; i++)\n buf[i] = toupper((unsigned char )buf[i]", "parent": 211, "children": [214, 216, 220], "start_point": {"row": 50, "column": 18}, "end_point": {"row": 50, "column": 81}}, {"id": 214, "type": "string_literal", "text": "ytes; i++)\n buf[i]", "parent": 213, "children": [215], "start_point": {"row": 50, "column": 19}, "end_point": {"row": 50, "column": 48}}, {"id": 215, "type": "escape_sequence", "text": "[i", "parent": 214, "children": [], "start_point": {"row": 50, "column": 45}, "end_point": {"row": 50, "column": 47}}, {"id": 216, "type": "cast_expression", "text": " toupper((uns", "parent": 213, "children": [217, 219], "start_point": {"row": 50, "column": 50}, "end_point": {"row": 50, "column": 63}}, {"id": 217, "type": "type_descriptor", "text": "tou", "parent": 216, "children": [218], "start_point": {"row": 50, "column": 51}, "end_point": {"row": 50, "column": 54}}, {"id": 218, "type": "primitive_type", "text": "tou", "parent": 217, "children": [], "start_point": {"row": 50, "column": 51}, "end_point": {"row": 50, "column": 54}}, {"id": 219, "type": "identifier", "text": "per((uns", "parent": 216, "children": [], "start_point": {"row": 50, "column": 55}, "end_point": {"row": 50, "column": 63}}, {"id": 220, "type": "field_expression", "text": "ned char )buf[i", "parent": 213, "children": [221, 222], "start_point": {"row": 50, "column": 65}, "end_point": {"row": 50, "column": 80}}, {"id": 221, "type": "identifier", "text": "ned ch", "parent": 220, "children": [], "start_point": {"row": 50, "column": 65}, "end_point": {"row": 50, "column": 71}}, {"id": 222, "type": "field_identifier", "text": "r )buf[i", "parent": 220, "children": [], "start_point": {"row": 50, "column": 72}, "end_point": {"row": 50, "column": 80}}, {"id": 223, "type": "for_statement", "text": "f, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror(\"se", "parent": 166, "children": [224, 229, 232], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 53, "column": 53}}, {"id": 224, "type": "declaration", "text": "mBytes, ", "parent": 223, "children": [225, 226], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 21}}, {"id": 225, "type": "primitive_type", "text": "mBy", "parent": 224, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 16}}, {"id": 226, "type": "init_declarator", "text": "es,", "parent": 224, "children": [227, 228], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 20}}, {"id": 227, "type": "identifier", "text": "e", "parent": 226, "children": [], "start_point": {"row": 52, "column": 17}, "end_point": {"row": 52, "column": 18}}, {"id": 228, "type": "=", "text": "s", "parent": 226, "children": [], "start_point": {"row": 52, "column": 18}, "end_point": {"row": 52, "column": 19}}, {"id": 229, "type": "binary_expression", "text": ", (struct ", "parent": 223, "children": [230, 231], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 32}}, {"id": 230, "type": "<", "text": " ", "parent": 229, "children": [], "start_point": {"row": 52, "column": 23}, "end_point": {"row": 52, "column": 24}}, {"id": 231, "type": "identifier", "text": "(struct ", "parent": 229, "children": [], "start_point": {"row": 52, "column": 24}, "end_point": {"row": 52, "column": 32}}, {"id": 232, "type": "update_expression", "text": "cka", "parent": 223, "children": [233, 234], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 37}}, {"id": 233, "type": "identifier", "text": "c", "parent": 232, "children": [], "start_point": {"row": 52, "column": 34}, "end_point": {"row": 52, "column": 35}}, {"id": 234, "type": "++", "text": "ka", "parent": 232, "children": [], "start_point": {"row": 52, "column": 35}, "end_point": {"row": 52, "column": 37}}, {"id": 235, "type": "assignment_expression", "text": " len) != numBytes)\n perror(\"s", "parent": 223, "children": [236, 238, 239], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 52}}, {"id": 236, "type": "subscript_expression", "text": " len) ", "parent": 235, "children": [237], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 18}}, {"id": 237, "type": "identifier", "text": " le", "parent": 236, "children": [], "start_point": {"row": 53, "column": 12}, "end_point": {"row": 53, "column": 15}}, {"id": 238, "type": "=", "text": "=", "parent": 235, "children": [], "start_point": {"row": 53, "column": 19}, "end_point": {"row": 53, "column": 20}}, {"id": 239, "type": "call_expression", "text": "numBytes)\n perror(\"s", "parent": 235, "children": [240, 241], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 52}}, {"id": 240, "type": "identifier", "text": "numByte", "parent": 239, "children": [], "start_point": {"row": 53, "column": 21}, "end_point": {"row": 53, "column": 28}}, {"id": 241, "type": "argument_list", "text": "s)\n perror(\"s", "parent": 239, "children": [242], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 52}}, {"id": 242, "type": "cast_expression", "text": ")\n perror(\"", "parent": 241, "children": [243, 247], "start_point": {"row": 53, "column": 29}, "end_point": {"row": 53, "column": 51}}, {"id": 243, "type": "type_descriptor", "text": "\n ", "parent": 242, "children": [244], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 43}}, {"id": 244, "type": "sized_type_specifier", "text": "\n ", "parent": 243, "children": [245, 246], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 43}}, {"id": 245, "type": "unsigned", "text": "\n ", "parent": 244, "children": [], "start_point": {"row": 53, "column": 30}, "end_point": {"row": 53, "column": 38}}, {"id": 246, "type": "primitive_type", "text": " ", "parent": 244, "children": [], "start_point": {"row": 53, "column": 39}, "end_point": {"row": 53, "column": 43}}, {"id": 247, "type": "subscript_expression", "text": "rror(\"", "parent": 242, "children": [248], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 51}}, {"id": 248, "type": "identifier", "text": "rro", "parent": 247, "children": [], "start_point": {"row": 53, "column": 45}, "end_point": {"row": 53, "column": 48}}, {"id": 249, "type": "if_statement", "text": "", "parent": 166, "children": [250], "start_point": {"row": 56, "column": 8}, "end_point": {"row": 57, "column": 35}}, {"id": 250, "type": "parenthesized_expression", "text": "", "parent": 249, "children": [251], "start_point": {"row": 56, "column": 11}, "end_point": {"row": 56, "column": 87}}, {"id": 251, "type": "binary_expression", "text": "", "parent": 250, "children": [252, 270, 271], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 86}}, {"id": 252, "type": "call_expression", "text": "", "parent": 251, "children": [253, 254], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 74}}, {"id": 253, "type": "identifier", "text": "", "parent": 252, "children": [], "start_point": {"row": 56, "column": 12}, "end_point": {"row": 56, "column": 18}}, {"id": 254, "type": "argument_list", "text": "", "parent": 252, "children": [255, 256, 257, 258, 259, 269], "start_point": {"row": 56, "column": 18}, "end_point": {"row": 56, "column": 74}}, {"id": 255, "type": "identifier", "text": "", "parent": 254, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 22}}, {"id": 256, "type": "identifier", "text": "", "parent": 254, "children": [], "start_point": {"row": 56, "column": 24}, "end_point": {"row": 56, "column": 27}}, {"id": 257, "type": "identifier", "text": "", "parent": 254, "children": [], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 37}}, {"id": 258, "type": "number_literal", "text": "", "parent": 254, "children": [], "start_point": {"row": 56, "column": 39}, "end_point": {"row": 56, "column": 40}}, {"id": 259, "type": "cast_expression", "text": "", "parent": 254, "children": [260, 266], "start_point": {"row": 56, "column": 42}, "end_point": {"row": 56, "column": 68}}, {"id": 260, "type": "type_descriptor", "text": "", "parent": 259, "children": [261, 264], "start_point": {"row": 56, "column": 43}, "end_point": {"row": 56, "column": 60}}, {"id": 261, "type": "struct_specifier", "text": "", "parent": 260, "children": [262, 263], "start_point": {"row": 56, "column": 43}, "end_point": {"row": 56, "column": 58}}, {"id": 262, "type": "struct", "text": "", "parent": 261, "children": [], "start_point": {"row": 56, "column": 43}, "end_point": {"row": 56, "column": 49}}, {"id": 263, "type": "type_identifier", "text": "", "parent": 261, "children": [], "start_point": {"row": 56, "column": 50}, "end_point": {"row": 56, "column": 58}}, {"id": 264, "type": "abstract_pointer_declarator", "text": "", "parent": 260, "children": [265], "start_point": {"row": 56, "column": 59}, "end_point": {"row": 56, "column": 60}}, {"id": 265, "type": "*", "text": "", "parent": 264, "children": [], "start_point": {"row": 56, "column": 59}, "end_point": {"row": 56, "column": 60}}, {"id": 266, "type": "pointer_expression", "text": "", "parent": 259, "children": [267, 268], "start_point": {"row": 56, "column": 61}, "end_point": {"row": 56, "column": 68}}, {"id": 267, "type": "&", "text": "", "parent": 266, "children": [], "start_point": {"row": 56, "column": 61}, "end_point": {"row": 56, "column": 62}}, {"id": 268, "type": "identifier", "text": "", "parent": 266, "children": [], "start_point": {"row": 56, "column": 62}, "end_point": {"row": 56, "column": 68}}, {"id": 269, "type": "identifier", "text": "", "parent": 254, "children": [], "start_point": {"row": 56, "column": 70}, "end_point": {"row": 56, "column": 73}}, {"id": 270, "type": "!=", "text": "", "parent": 251, "children": [], "start_point": {"row": 56, "column": 75}, "end_point": {"row": 56, "column": 77}}, {"id": 271, "type": "identifier", "text": "", "parent": 251, "children": [], "start_point": {"row": 56, "column": 78}, "end_point": {"row": 56, "column": 86}}, {"id": 272, "type": "call_expression", "text": "", "parent": 249, "children": [273, 274], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 34}}, {"id": 273, "type": "identifier", "text": "", "parent": 272, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 18}}, {"id": 274, "type": "argument_list", "text": "", "parent": 272, "children": [275], "start_point": {"row": 57, "column": 18}, "end_point": {"row": 57, "column": 34}}, {"id": 275, "type": "string_literal", "text": "", "parent": 274, "children": [], "start_point": {"row": 57, "column": 19}, "end_point": {"row": 57, "column": 33}}]}, "node_categories": {"declarations": {"functions": [32, 34], "variables": [37, 40, 46, 52, 56, 59, 62, 224], "classes": [47, 48, 113, 114, 149, 150, 160, 173, 174, 195, 196, 261, 262], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 16, 18, 19, 21, 22], "modules": [], "enums": []}, "statements": {"expressions": [68, 69, 71, 75, 80, 85, 86, 87, 90, 95, 99, 103, 106, 110, 117, 122, 125, 129, 130, 132, 133, 139, 140, 143, 147, 154, 157, 162, 170, 177, 178, 181, 185, 186, 193, 200, 203, 206, 211, 216, 220, 229, 232, 236, 239, 242, 247, 250, 251, 252, 259, 266, 272], "assignments": [72, 116, 167, 182, 235], "loops": [166, 223], "conditionals": [26, 30, 35, 39, 45, 49, 50, 51, 54, 55, 57, 58, 61, 65, 66, 67, 73, 76, 78, 81, 84, 91, 93, 96, 98, 100, 104, 108, 115, 118, 119, 121, 123, 126, 127, 128, 134, 135, 138, 144, 146, 151, 156, 161, 163, 168, 175, 176, 183, 187, 189, 190, 191, 197, 202, 205, 207, 212, 219, 221, 222, 227, 231, 233, 237, 240, 244, 248, 249, 253, 255, 256, 257, 263, 268, 269, 271, 273], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 14, 17, 20, 23, 70, 79, 83, 88, 102, 109, 137, 141, 165, 179, 192, 209, 214, 258, 275], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 32, "universal_type": "function", "name": "sockaddr_un", "text_snippet": "t argc, char **argv)\n{\n struct sockaddr_un svaddr, claddr;\n int sfd, j;\n socklen_t len;\n "}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "c, char **argv)\n{\n struc"}], "class_declarations": [{"node_id": 47, "universal_type": "class", "name": "unknown", "text_snippet": "ddr_un svaddr, cla"}, {"node_id": 48, "universal_type": "class", "name": "unknown", "text_snippet": "ddr_un"}, {"node_id": 113, "universal_type": "class", "name": "unknown", "text_snippet": " strncpy(svaddr.su"}, {"node_id": 114, "universal_type": "class", "name": "unknown", "text_snippet": " strnc"}, {"node_id": 149, "universal_type": "class", "name": "unknown", "text_snippet": "\");\n\n // \u5faa\u73af\u53d1"}, {"node_id": 150, "universal_type": "class", "name": "unknown", "text_snippet": "\");\n\n "}, {"node_id": 160, "universal_type": "class", "name": "unknown", "text_snippet": " {\n len "}, {"node_id": 173, "universal_type": "class", "name": "unknown", "text_snippet": ", 0, (struct socka"}, {"node_id": 174, "universal_type": "class", "name": "unknown", "text_snippet": ", 0, ("}, {"node_id": 195, "universal_type": "class", "name": "unknown", "text_snippet": "ld bytes from %"}, {"node_id": 196, "universal_type": "class", "name": "unknown", "text_snippet": "ld byt"}], "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 <unistd.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 <errno.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <fcntl.h>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include <sys/socket.h>\n"}, {"node_id": 19, "text": "#include"}, {"node_id": 21, "text": "#include <sys/un.h>\n"}, {"node_id": 22, "text": "#include"}]}, "original_source_code": "#include <stdio.h>\n#include <stdlib.h>\n#include <unistd.h>\n#include <string.h>\n#include <errno.h>\n#include <fcntl.h>\n#include <sys/socket.h>\n#include <sys/un.h>\n\n\n#define SV_SOCK_PATH \"/tmp/ud_case\"\n#define BUF_SIZE 10\n\n\n/**\n * UNIX domain\u6570\u636e\u62a5socket\u670d\u52a1\u7aef\n */\nint \nmain(int argc, char **argv)\n{\n struct sockaddr_un svaddr, claddr;\n int sfd, j;\n socklen_t len;\n ssize_t numBytes;\n char buf[BUF_SIZE];\n\n // \u521b\u5efa\u4e00\u4e2a\u8fde\u63a5\n if (-1 == (sfd = socket(AF_UNIX, SOCK_DGRAM, 0)))\n perror(\"socket error\");\n // \u5982\u679c\u8def\u5f84\u5b58\u5728\uff0c\u5148\u5220\u9664\uff0c\u9632\u6b62\u7ed1\u5b9a\u5931\u8d25\n if (-1 == remove(SV_SOCK_PATH) && ENOENT != errno)\n perror(\"remove error\");\n\n memset(&svaddr, 0x00, sizeof(struct sockaddr_un));\n svaddr.sun_family = AF_UNIX;\n strncpy(svaddr.sun_path, SV_SOCK_PATH, sizeof(svaddr.sun_path) - 1);\n\n // \u7ed1\u5b9a\u5230\u4e00\u4e2a\u72ec\u4e00\u65e0\u4e8c\u7684\u5730\u5740\n if (-1 == bind(sfd, (struct sockaddr *)&svaddr, sizeof(struct sockaddr_un)))\n perror(\"bind error\");\n\n // \u5faa\u73af\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\n for(;;)\n {\n len = sizeof(struct sockaddr_un);\n\n // \u4ece\u5ba2\u6237\u7aef\u63a5\u6536\u6570\u636e\n if (-1 == (numBytes = (recvfrom(sfd, buf, BUF_SIZE, 0, (struct sockaddr *)&claddr, &len))))\n perror(\"recvfrom error\");\n else\n printf(\"server: %ld bytes from %s\\n\", (int)numBytes, svaddr.sun_path);\n // \u6240\u6709\u5b57\u7b26\u8f6c\u4e3a\u5927\u5199 \n for (int i=0; i<numBytes; i++)\n buf[i] = toupper((unsigned char )buf[i]);\n\n // \u53d1\u9001\u6570\u636e\u5230\u5ba2\u6237\u7aef\n if (sendto(sfd, buf, numBytes, 0, (struct sockaddr *)&claddr, len) != numBytes)\n perror(\"sendto error\");\n \n }\n}\n"}
80,388
c
/* SPDX-License-Identifier: BSD-3-Clause */ #include "files.h" #include "log.h" #include "tpm2.h" #include "tpm2_tool.h" #define MAX_SESSIONS 3 typedef struct clear_ctx clear_ctx; struct clear_ctx { /* * Inputs */ struct { const char *ctx_path; const char *auth_str; tpm2_loaded_object object; } auth_hierarchy; /* * Outputs */ /* * Parameter hashes */ const char *cp_hash_path; TPM2B_DIGEST cp_hash; bool is_command_dispatch; TPMI_ALG_HASH parameter_hash_algorithm; }; static clear_ctx ctx = { .auth_hierarchy.ctx_path = "l", .parameter_hash_algorithm = TPM2_ALG_ERROR, }; static tool_rc clear(ESYS_CONTEXT *ectx) { return tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash, ctx.parameter_hash_algorithm); } static tool_rc process_output(ESYS_CONTEXT *ectx) { UNUSED(ectx); /* * 1. Outputs that do not require TPM2_CC_<command> dispatch */ bool is_file_op_success = true; if (ctx.cp_hash_path) { is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path); if (!is_file_op_success) { return tool_rc_general_error; } } tool_rc rc = tool_rc_success; if (!ctx.is_command_dispatch) { return rc; } /* * 2. Outputs generated after TPM2_CC_<command> dispatch */ return rc; } static tool_rc process_inputs(ESYS_CONTEXT *ectx) { /* * 1. Object and auth initializations */ /* * 1.a Add the new-auth values to be set for the object. */ /* * 1.b Add object names and their auth sessions */ /* Object #1 */ tool_rc rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path, ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false, TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P); if (rc != tool_rc_success) { LOG_ERR("Invalid lockout authorization"); return rc; } /* * 2. Restore auxiliary sessions */ /* * 3. Command specific initializations */ /* * 4. Configuration for calculating the pHash */ /* * 4.a Determine pHash length and alg */ tpm2_session *all_sessions[MAX_SESSIONS] = { ctx.auth_hierarchy.object.session, 0, 0 }; const char **cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0; ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx, cphash_path, &ctx.cp_hash, 0, 0, all_sessions); return rc; } static tool_rc check_options(ESYS_CONTEXT *ectx) { UNUSED(ectx); /* * 4.b Determine if TPM2_CC_<command> is to be dispatched */ ctx.is_command_dispatch = ctx.cp_hash_path ? false : true; if (!ctx.is_command_dispatch) { LOG_WARN("Generating cpHash. Exiting without executing clear."); } return tool_rc_success; } static bool on_arg(int argc, char **argv) { if (argc > 1) { LOG_ERR("Specify a single auth value"); return false; } /* * empty auth */ if (!argc) { return true; } ctx.auth_hierarchy.auth_str = argv[0]; return true; } static bool on_option(char key, char *value) { switch (key) { case 'c': ctx.auth_hierarchy.ctx_path = value; break; case 0: ctx.cp_hash_path = value; break; } return true; } static bool tpm2_tool_onstart(tpm2_options **opts) { const struct option topts[] = { { "auth-hierarchy", required_argument, 0, 'c' }, { "cphash", required_argument, 0, 0 }, }; *opts = tpm2_options_new("c:", ARRAY_LEN(topts), topts, on_option, on_arg, 0); return *opts != 0; } static tool_rc tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags) { UNUSED(flags); /* * 1. Process options */ tool_rc rc = check_options(ectx); if (rc != tool_rc_success) { return rc; } /* * 2. Process inputs */ rc = process_inputs(ectx); if (rc != tool_rc_success) { return rc; } /* * 3. TPM2_CC_<command> call */ rc = clear(ectx); if (rc != tool_rc_success) { return rc; } /* * 4. Process outputs */ return process_output(ectx); } static tool_rc tpm2_tool_onstop(ESYS_CONTEXT *ectx) { UNUSED(ectx); /* * 1. Free objects */ /* * 2. Close authorization sessions */ tool_rc rc = tpm2_session_close(&ctx.auth_hierarchy.object.session); /* * 3. Close auxiliary sessions */ return rc; } // Register this tool with tpm2_tool.c TPM2_TOOL_REGISTER("clear", tpm2_tool_onstart, tpm2_tool_onrun, tpm2_tool_onstop, 0)
24.3
188
(translation_unit) "/* SPDX-License-Identifier: BSD-3-Clause */\n\n#include "files.h"\n#include "log.h"\n#include "tpm2.h"\n#include "tpm2_tool.h"\n\n#define MAX_SESSIONS 3\ntypedef struct clear_ctx clear_ctx;\nstruct clear_ctx {\n /*\n * Inputs\n */\n struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n } auth_hierarchy;\n\n /*\n * Outputs\n */\n\n /*\n * Parameter hashes\n */\n const char *cp_hash_path;\n TPM2B_DIGEST cp_hash;\n bool is_command_dispatch;\n TPMI_ALG_HASH parameter_hash_algorithm;\n};\n\nstatic clear_ctx ctx = {\n .auth_hierarchy.ctx_path = "l",\n .parameter_hash_algorithm = TPM2_ALG_ERROR,\n};\n\nstatic tool_rc clear(ESYS_CONTEXT *ectx) {\n\n return tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm);\n}\n\n\nstatic tool_rc process_output(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n /*\n * 1. Outputs that do not require TPM2_CC_<command> dispatch\n */\n bool is_file_op_success = true;\n if (ctx.cp_hash_path) {\n is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);\n\n if (!is_file_op_success) {\n return tool_rc_general_error;\n }\n }\n\n tool_rc rc = tool_rc_success;\n if (!ctx.is_command_dispatch) {\n return rc;\n }\n\n /*\n * 2. Outputs generated after TPM2_CC_<command> dispatch\n */\n\n return rc;\n}\n\n\nstatic tool_rc process_inputs(ESYS_CONTEXT *ectx) {\n\n /*\n * 1. Object and auth initializations\n */\n\n /*\n * 1.a Add the new-auth values to be set for the object.\n */\n\n /*\n * 1.b Add object names and their auth sessions\n */\n\n /* Object #1 */\n tool_rc rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P);\n if (rc != tool_rc_success) {\n LOG_ERR("Invalid lockout authorization");\n return rc;\n }\n\n /*\n * 2. Restore auxiliary sessions\n */\n\n /*\n * 3. Command specific initializations\n */\n\n /*\n * 4. Configuration for calculating the pHash\n */\n\n /*\n * 4.a Determine pHash length and alg\n */\n tpm2_session *all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n };\n\n const char **cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0;\n\n ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions);\n\n return rc;\n}\n\nstatic tool_rc check_options(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 4.b Determine if TPM2_CC_<command> is to be dispatched\n */\n ctx.is_command_dispatch = ctx.cp_hash_path ? false : true;\n\n if (!ctx.is_command_dispatch) {\n LOG_WARN("Generating cpHash. Exiting without executing clear.");\n }\n\n return tool_rc_success;\n}\n\nstatic bool on_arg(int argc, char **argv) {\n\n if (argc > 1) {\n LOG_ERR("Specify a single auth value");\n return false;\n }\n\n /*\n * empty auth\n */\n if (!argc) {\n return true;\n }\n\n ctx.auth_hierarchy.auth_str = argv[0];\n\n return true;\n}\n\nstatic bool on_option(char key, char *value) {\n\n switch (key) {\n case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;\n case 0:\n ctx.cp_hash_path = value;\n break;\n }\n\n return true;\n}\n\nstatic bool tpm2_tool_onstart(tpm2_options **opts) {\n\n const struct option topts[] = {\n { "auth-hierarchy", required_argument, 0, 'c' },\n { "cphash", required_argument, 0, 0 },\n };\n\n *opts = tpm2_options_new("c:", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0);\n\n return *opts != 0;\n}\n\nstatic tool_rc tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags) {\n\n UNUSED(flags);\n\n /*\n * 1. Process options\n */\n tool_rc rc = check_options(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 2. Process inputs\n */\n rc = process_inputs(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 3. TPM2_CC_<command> call\n */\n rc = clear(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 4. Process outputs\n */\n return process_output(ectx);\n}\n\nstatic tool_rc tpm2_tool_onstop(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 1. Free objects\n */\n\n /*\n * 2. Close authorization sessions\n */\n tool_rc rc = tpm2_session_close(&ctx.auth_hierarchy.object.session);\n\n /*\n * 3. Close auxiliary sessions\n */\n\n return rc;\n}\n\n// Register this tool with tpm2_tool.c\nTPM2_TOOL_REGISTER("clear", tpm2_tool_onstart, tpm2_tool_onrun,\n tpm2_tool_onstop, 0)\n" (comment) "/* SPDX-License-Identifier: BSD-3-Clause */" (preproc_include) "#include "files.h"\n" (#include) "#include" (string_literal) ""files.h"" (") """ (string_content) "files.h" (") """ (preproc_include) "#include "log.h"\n" (#include) "#include" (string_literal) ""log.h"" (") """ (string_content) "log.h" (") """ (preproc_include) "#include "tpm2.h"\n" (#include) "#include" (string_literal) ""tpm2.h"" (") """ (string_content) "tpm2.h" (") """ (preproc_include) "#include "tpm2_tool.h"\n" (#include) "#include" (string_literal) ""tpm2_tool.h"" (") """ (string_content) "tpm2_tool.h" (") """ (preproc_def) "#define MAX_SESSIONS 3\n" (#define) "#define" (identifier) "MAX_SESSIONS" (preproc_arg) "3" (type_definition) "typedef struct clear_ctx clear_ctx;" (typedef) "typedef" (struct_specifier) "struct clear_ctx" (struct) "struct" (type_identifier) "clear_ctx" (type_identifier) "clear_ctx" (;) ";" (struct_specifier) "struct clear_ctx {\n /*\n * Inputs\n */\n struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n } auth_hierarchy;\n\n /*\n * Outputs\n */\n\n /*\n * Parameter hashes\n */\n const char *cp_hash_path;\n TPM2B_DIGEST cp_hash;\n bool is_command_dispatch;\n TPMI_ALG_HASH parameter_hash_algorithm;\n}" (struct) "struct" (type_identifier) "clear_ctx" (field_declaration_list) "{\n /*\n * Inputs\n */\n struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n } auth_hierarchy;\n\n /*\n * Outputs\n */\n\n /*\n * Parameter hashes\n */\n const char *cp_hash_path;\n TPM2B_DIGEST cp_hash;\n bool is_command_dispatch;\n TPMI_ALG_HASH parameter_hash_algorithm;\n}" ({) "{" (comment) "/*\n * Inputs\n */" (field_declaration) "struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n } auth_hierarchy;" (struct_specifier) "struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n }" (struct) "struct" (field_declaration_list) "{\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n }" ({) "{" (field_declaration) "const char *ctx_path;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*ctx_path" (*) "*" (field_identifier) "ctx_path" (;) ";" (field_declaration) "const char *auth_str;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*auth_str" (*) "*" (field_identifier) "auth_str" (;) ";" (field_declaration) "tpm2_loaded_object object;" (type_identifier) "tpm2_loaded_object" (field_identifier) "object" (;) ";" (}) "}" (field_identifier) "auth_hierarchy" (;) ";" (comment) "/*\n * Outputs\n */" (comment) "/*\n * Parameter hashes\n */" (field_declaration) "const char *cp_hash_path;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "*cp_hash_path" (*) "*" (field_identifier) "cp_hash_path" (;) ";" (field_declaration) "TPM2B_DIGEST cp_hash;" (type_identifier) "TPM2B_DIGEST" (field_identifier) "cp_hash" (;) ";" (field_declaration) "bool is_command_dispatch;" (primitive_type) "bool" (field_identifier) "is_command_dispatch" (;) ";" (field_declaration) "TPMI_ALG_HASH parameter_hash_algorithm;" (type_identifier) "TPMI_ALG_HASH" (field_identifier) "parameter_hash_algorithm" (;) ";" (}) "}" (;) ";" (declaration) "static clear_ctx ctx = {\n .auth_hierarchy.ctx_path = "l",\n .parameter_hash_algorithm = TPM2_ALG_ERROR,\n};" (storage_class_specifier) "static" (static) "static" (type_identifier) "clear_ctx" (init_declarator) "ctx = {\n .auth_hierarchy.ctx_path = "l",\n .parameter_hash_algorithm = TPM2_ALG_ERROR,\n}" (identifier) "ctx" (=) "=" (initializer_list) "{\n .auth_hierarchy.ctx_path = "l",\n .parameter_hash_algorithm = TPM2_ALG_ERROR,\n}" ({) "{" (initializer_pair) ".auth_hierarchy.ctx_path = "l"" (field_designator) ".auth_hierarchy" (.) "." (field_identifier) "auth_hierarchy" (field_designator) ".ctx_path" (.) "." (field_identifier) "ctx_path" (=) "=" (string_literal) ""l"" (") """ (string_content) "l" (") """ (,) "," (initializer_pair) ".parameter_hash_algorithm = TPM2_ALG_ERROR" (field_designator) ".parameter_hash_algorithm" (.) "." (field_identifier) "parameter_hash_algorithm" (=) "=" (identifier) "TPM2_ALG_ERROR" (,) "," (}) "}" (;) ";" (function_definition) "static tool_rc clear(ESYS_CONTEXT *ectx) {\n\n return tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "tool_rc" (function_declarator) "clear(ESYS_CONTEXT *ectx)" (identifier) "clear" (parameter_list) "(ESYS_CONTEXT *ectx)" (() "(" (parameter_declaration) "ESYS_CONTEXT *ectx" (type_identifier) "ESYS_CONTEXT" (pointer_declarator) "*ectx" (*) "*" (identifier) "ectx" ()) ")" (compound_statement) "{\n\n return tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm);\n}" ({) "{" (return_statement) "return tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm);" (return) "return" (call_expression) "tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm)" (identifier) "tpm2_clear" (argument_list) "(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm)" (() "(" (identifier) "ectx" (,) "," (pointer_expression) "&ctx.auth_hierarchy.object" (&) "&" (field_expression) "ctx.auth_hierarchy.object" (field_expression) "ctx.auth_hierarchy" (identifier) "ctx" (.) "." (field_identifier) "auth_hierarchy" (.) "." (field_identifier) "object" (,) "," (pointer_expression) "&ctx.cp_hash" (&) "&" (field_expression) "ctx.cp_hash" (identifier) "ctx" (.) "." (field_identifier) "cp_hash" (,) "," (field_expression) "ctx.parameter_hash_algorithm" (identifier) "ctx" (.) "." (field_identifier) "parameter_hash_algorithm" ()) ")" (;) ";" (}) "}" (function_definition) "static tool_rc process_output(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n /*\n * 1. Outputs that do not require TPM2_CC_<command> dispatch\n */\n bool is_file_op_success = true;\n if (ctx.cp_hash_path) {\n is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);\n\n if (!is_file_op_success) {\n return tool_rc_general_error;\n }\n }\n\n tool_rc rc = tool_rc_success;\n if (!ctx.is_command_dispatch) {\n return rc;\n }\n\n /*\n * 2. Outputs generated after TPM2_CC_<command> dispatch\n */\n\n return rc;\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "tool_rc" (function_declarator) "process_output(ESYS_CONTEXT *ectx)" (identifier) "process_output" (parameter_list) "(ESYS_CONTEXT *ectx)" (() "(" (parameter_declaration) "ESYS_CONTEXT *ectx" (type_identifier) "ESYS_CONTEXT" (pointer_declarator) "*ectx" (*) "*" (identifier) "ectx" ()) ")" (compound_statement) "{\n\n UNUSED(ectx);\n /*\n * 1. Outputs that do not require TPM2_CC_<command> dispatch\n */\n bool is_file_op_success = true;\n if (ctx.cp_hash_path) {\n is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);\n\n if (!is_file_op_success) {\n return tool_rc_general_error;\n }\n }\n\n tool_rc rc = tool_rc_success;\n if (!ctx.is_command_dispatch) {\n return rc;\n }\n\n /*\n * 2. Outputs generated after TPM2_CC_<command> dispatch\n */\n\n return rc;\n}" ({) "{" (expression_statement) "UNUSED(ectx);" (call_expression) "UNUSED(ectx)" (identifier) "UNUSED" (argument_list) "(ectx)" (() "(" (identifier) "ectx" ()) ")" (;) ";" (comment) "/*\n * 1. Outputs that do not require TPM2_CC_<command> dispatch\n */" (declaration) "bool is_file_op_success = true;" (primitive_type) "bool" (init_declarator) "is_file_op_success = true" (identifier) "is_file_op_success" (=) "=" (true) "true" (;) ";" (if_statement) "if (ctx.cp_hash_path) {\n is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);\n\n if (!is_file_op_success) {\n return tool_rc_general_error;\n }\n }" (if) "if" (parenthesized_expression) "(ctx.cp_hash_path)" (() "(" (field_expression) "ctx.cp_hash_path" (identifier) "ctx" (.) "." (field_identifier) "cp_hash_path" ()) ")" (compound_statement) "{\n is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);\n\n if (!is_file_op_success) {\n return tool_rc_general_error;\n }\n }" ({) "{" (expression_statement) "is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);" (assignment_expression) "is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path)" (identifier) "is_file_op_success" (=) "=" (call_expression) "files_save_digest(&ctx.cp_hash, ctx.cp_hash_path)" (identifier) "files_save_digest" (argument_list) "(&ctx.cp_hash, ctx.cp_hash_path)" (() "(" (pointer_expression) "&ctx.cp_hash" (&) "&" (field_expression) "ctx.cp_hash" (identifier) "ctx" (.) "." (field_identifier) "cp_hash" (,) "," (field_expression) "ctx.cp_hash_path" (identifier) "ctx" (.) "." (field_identifier) "cp_hash_path" ()) ")" (;) ";" (if_statement) "if (!is_file_op_success) {\n return tool_rc_general_error;\n }" (if) "if" (parenthesized_expression) "(!is_file_op_success)" (() "(" (unary_expression) "!is_file_op_success" (!) "!" (identifier) "is_file_op_success" ()) ")" (compound_statement) "{\n return tool_rc_general_error;\n }" ({) "{" (return_statement) "return tool_rc_general_error;" (return) "return" (identifier) "tool_rc_general_error" (;) ";" (}) "}" (}) "}" (declaration) "tool_rc rc = tool_rc_success;" (type_identifier) "tool_rc" (init_declarator) "rc = tool_rc_success" (identifier) "rc" (=) "=" (identifier) "tool_rc_success" (;) ";" (if_statement) "if (!ctx.is_command_dispatch) {\n return rc;\n }" (if) "if" (parenthesized_expression) "(!ctx.is_command_dispatch)" (() "(" (unary_expression) "!ctx.is_command_dispatch" (!) "!" (field_expression) "ctx.is_command_dispatch" (identifier) "ctx" (.) "." (field_identifier) "is_command_dispatch" ()) ")" (compound_statement) "{\n return rc;\n }" ({) "{" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (comment) "/*\n * 2. Outputs generated after TPM2_CC_<command> dispatch\n */" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (function_definition) "static tool_rc process_inputs(ESYS_CONTEXT *ectx) {\n\n /*\n * 1. Object and auth initializations\n */\n\n /*\n * 1.a Add the new-auth values to be set for the object.\n */\n\n /*\n * 1.b Add object names and their auth sessions\n */\n\n /* Object #1 */\n tool_rc rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P);\n if (rc != tool_rc_success) {\n LOG_ERR("Invalid lockout authorization");\n return rc;\n }\n\n /*\n * 2. Restore auxiliary sessions\n */\n\n /*\n * 3. Command specific initializations\n */\n\n /*\n * 4. Configuration for calculating the pHash\n */\n\n /*\n * 4.a Determine pHash length and alg\n */\n tpm2_session *all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n };\n\n const char **cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0;\n\n ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions);\n\n return rc;\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "tool_rc" (function_declarator) "process_inputs(ESYS_CONTEXT *ectx)" (identifier) "process_inputs" (parameter_list) "(ESYS_CONTEXT *ectx)" (() "(" (parameter_declaration) "ESYS_CONTEXT *ectx" (type_identifier) "ESYS_CONTEXT" (pointer_declarator) "*ectx" (*) "*" (identifier) "ectx" ()) ")" (compound_statement) "{\n\n /*\n * 1. Object and auth initializations\n */\n\n /*\n * 1.a Add the new-auth values to be set for the object.\n */\n\n /*\n * 1.b Add object names and their auth sessions\n */\n\n /* Object #1 */\n tool_rc rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P);\n if (rc != tool_rc_success) {\n LOG_ERR("Invalid lockout authorization");\n return rc;\n }\n\n /*\n * 2. Restore auxiliary sessions\n */\n\n /*\n * 3. Command specific initializations\n */\n\n /*\n * 4. Configuration for calculating the pHash\n */\n\n /*\n * 4.a Determine pHash length and alg\n */\n tpm2_session *all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n };\n\n const char **cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0;\n\n ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions);\n\n return rc;\n}" ({) "{" (comment) "/*\n * 1. Object and auth initializations\n */" (comment) "/*\n * 1.a Add the new-auth values to be set for the object.\n */" (comment) "/*\n * 1.b Add object names and their auth sessions\n */" (comment) "/* Object #1 */" (declaration) "tool_rc rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P);" (type_identifier) "tool_rc" (init_declarator) "rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P)" (identifier) "rc" (=) "=" (call_expression) "tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P)" (identifier) "tpm2_util_object_load_auth" (argument_list) "(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P)" (() "(" (identifier) "ectx" (,) "," (field_expression) "ctx.auth_hierarchy.ctx_path" (field_expression) "ctx.auth_hierarchy" (identifier) "ctx" (.) "." (field_identifier) "auth_hierarchy" (.) "." (field_identifier) "ctx_path" (,) "," (field_expression) "ctx.auth_hierarchy.auth_str" (field_expression) "ctx.auth_hierarchy" (identifier) "ctx" (.) "." (field_identifier) "auth_hierarchy" (.) "." (field_identifier) "auth_str" (,) "," (pointer_expression) "&ctx.auth_hierarchy.object" (&) "&" (field_expression) "ctx.auth_hierarchy.object" (field_expression) "ctx.auth_hierarchy" (identifier) "ctx" (.) "." (field_identifier) "auth_hierarchy" (.) "." (field_identifier) "object" (,) "," (false) "false" (,) "," (binary_expression) "TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P" (identifier) "TPM2_HANDLE_FLAGS_L" (|) "|" (identifier) "TPM2_HANDLE_FLAGS_P" ()) ")" (;) ";" (if_statement) "if (rc != tool_rc_success) {\n LOG_ERR("Invalid lockout authorization");\n return rc;\n }" (if) "if" (parenthesized_expression) "(rc != tool_rc_success)" (() "(" (binary_expression) "rc != tool_rc_success" (identifier) "rc" (!=) "!=" (identifier) "tool_rc_success" ()) ")" (compound_statement) "{\n LOG_ERR("Invalid lockout authorization");\n return rc;\n }" ({) "{" (expression_statement) "LOG_ERR("Invalid lockout authorization");" (call_expression) "LOG_ERR("Invalid lockout authorization")" (identifier) "LOG_ERR" (argument_list) "("Invalid lockout authorization")" (() "(" (string_literal) ""Invalid lockout authorization"" (") """ (string_content) "Invalid lockout authorization" (") """ ()) ")" (;) ";" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (comment) "/*\n * 2. Restore auxiliary sessions\n */" (comment) "/*\n * 3. Command specific initializations\n */" (comment) "/*\n * 4. Configuration for calculating the pHash\n */" (comment) "/*\n * 4.a Determine pHash length and alg\n */" (declaration) "tpm2_session *all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n };" (type_identifier) "tpm2_session" (init_declarator) "*all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n }" (pointer_declarator) "*all_sessions[MAX_SESSIONS]" (*) "*" (array_declarator) "all_sessions[MAX_SESSIONS]" (identifier) "all_sessions" ([) "[" (identifier) "MAX_SESSIONS" (]) "]" (=) "=" (initializer_list) "{\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n }" ({) "{" (field_expression) "ctx.auth_hierarchy.object.session" (field_expression) "ctx.auth_hierarchy.object" (field_expression) "ctx.auth_hierarchy" (identifier) "ctx" (.) "." (field_identifier) "auth_hierarchy" (.) "." (field_identifier) "object" (.) "." (field_identifier) "session" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (;) ";" (declaration) "const char **cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0;" (type_qualifier) "const" (const) "const" (primitive_type) "char" (init_declarator) "**cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0" (pointer_declarator) "**cphash_path" (*) "*" (pointer_declarator) "*cphash_path" (*) "*" (identifier) "cphash_path" (=) "=" (conditional_expression) "ctx.cp_hash_path ? &ctx.cp_hash_path : 0" (field_expression) "ctx.cp_hash_path" (identifier) "ctx" (.) "." (field_identifier) "cp_hash_path" (?) "?" (pointer_expression) "&ctx.cp_hash_path" (&) "&" (field_expression) "ctx.cp_hash_path" (identifier) "ctx" (.) "." (field_identifier) "cp_hash_path" (:) ":" (number_literal) "0" (;) ";" (expression_statement) "ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions);" (assignment_expression) "ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions)" (field_expression) "ctx.parameter_hash_algorithm" (identifier) "ctx" (.) "." (field_identifier) "parameter_hash_algorithm" (=) "=" (call_expression) "tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions)" (identifier) "tpm2_util_calculate_phash_algorithm" (argument_list) "(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions)" (() "(" (identifier) "ectx" (,) "," (identifier) "cphash_path" (,) "," (pointer_expression) "&ctx.cp_hash" (&) "&" (field_expression) "ctx.cp_hash" (identifier) "ctx" (.) "." (field_identifier) "cp_hash" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (,) "," (identifier) "all_sessions" ()) ")" (;) ";" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (function_definition) "static tool_rc check_options(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 4.b Determine if TPM2_CC_<command> is to be dispatched\n */\n ctx.is_command_dispatch = ctx.cp_hash_path ? false : true;\n\n if (!ctx.is_command_dispatch) {\n LOG_WARN("Generating cpHash. Exiting without executing clear.");\n }\n\n return tool_rc_success;\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "tool_rc" (function_declarator) "check_options(ESYS_CONTEXT *ectx)" (identifier) "check_options" (parameter_list) "(ESYS_CONTEXT *ectx)" (() "(" (parameter_declaration) "ESYS_CONTEXT *ectx" (type_identifier) "ESYS_CONTEXT" (pointer_declarator) "*ectx" (*) "*" (identifier) "ectx" ()) ")" (compound_statement) "{\n\n UNUSED(ectx);\n\n /*\n * 4.b Determine if TPM2_CC_<command> is to be dispatched\n */\n ctx.is_command_dispatch = ctx.cp_hash_path ? false : true;\n\n if (!ctx.is_command_dispatch) {\n LOG_WARN("Generating cpHash. Exiting without executing clear.");\n }\n\n return tool_rc_success;\n}" ({) "{" (expression_statement) "UNUSED(ectx);" (call_expression) "UNUSED(ectx)" (identifier) "UNUSED" (argument_list) "(ectx)" (() "(" (identifier) "ectx" ()) ")" (;) ";" (comment) "/*\n * 4.b Determine if TPM2_CC_<command> is to be dispatched\n */" (expression_statement) "ctx.is_command_dispatch = ctx.cp_hash_path ? false : true;" (assignment_expression) "ctx.is_command_dispatch = ctx.cp_hash_path ? false : true" (field_expression) "ctx.is_command_dispatch" (identifier) "ctx" (.) "." (field_identifier) "is_command_dispatch" (=) "=" (conditional_expression) "ctx.cp_hash_path ? false : true" (field_expression) "ctx.cp_hash_path" (identifier) "ctx" (.) "." (field_identifier) "cp_hash_path" (?) "?" (false) "false" (:) ":" (true) "true" (;) ";" (if_statement) "if (!ctx.is_command_dispatch) {\n LOG_WARN("Generating cpHash. Exiting without executing clear.");\n }" (if) "if" (parenthesized_expression) "(!ctx.is_command_dispatch)" (() "(" (unary_expression) "!ctx.is_command_dispatch" (!) "!" (field_expression) "ctx.is_command_dispatch" (identifier) "ctx" (.) "." (field_identifier) "is_command_dispatch" ()) ")" (compound_statement) "{\n LOG_WARN("Generating cpHash. Exiting without executing clear.");\n }" ({) "{" (expression_statement) "LOG_WARN("Generating cpHash. Exiting without executing clear.");" (call_expression) "LOG_WARN("Generating cpHash. Exiting without executing clear.")" (identifier) "LOG_WARN" (argument_list) "("Generating cpHash. Exiting without executing clear.")" (() "(" (string_literal) ""Generating cpHash. Exiting without executing clear."" (") """ (string_content) "Generating cpHash. Exiting without executing clear." (") """ ()) ")" (;) ";" (}) "}" (return_statement) "return tool_rc_success;" (return) "return" (identifier) "tool_rc_success" (;) ";" (}) "}" (function_definition) "static bool on_arg(int argc, char **argv) {\n\n if (argc > 1) {\n LOG_ERR("Specify a single auth value");\n return false;\n }\n\n /*\n * empty auth\n */\n if (!argc) {\n return true;\n }\n\n ctx.auth_hierarchy.auth_str = argv[0];\n\n return true;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "on_arg(int argc, char **argv)" (identifier) "on_arg" (parameter_list) "(int argc, char **argv)" (() "(" (parameter_declaration) "int argc" (primitive_type) "int" (identifier) "argc" (,) "," (parameter_declaration) "char **argv" (primitive_type) "char" (pointer_declarator) "**argv" (*) "*" (pointer_declarator) "*argv" (*) "*" (identifier) "argv" ()) ")" (compound_statement) "{\n\n if (argc > 1) {\n LOG_ERR("Specify a single auth value");\n return false;\n }\n\n /*\n * empty auth\n */\n if (!argc) {\n return true;\n }\n\n ctx.auth_hierarchy.auth_str = argv[0];\n\n return true;\n}" ({) "{" (if_statement) "if (argc > 1) {\n LOG_ERR("Specify a single auth value");\n return false;\n }" (if) "if" (parenthesized_expression) "(argc > 1)" (() "(" (binary_expression) "argc > 1" (identifier) "argc" (>) ">" (number_literal) "1" ()) ")" (compound_statement) "{\n LOG_ERR("Specify a single auth value");\n return false;\n }" ({) "{" (expression_statement) "LOG_ERR("Specify a single auth value");" (call_expression) "LOG_ERR("Specify a single auth value")" (identifier) "LOG_ERR" (argument_list) "("Specify a single auth value")" (() "(" (string_literal) ""Specify a single auth value"" (") """ (string_content) "Specify a single auth value" (") """ ()) ")" (;) ";" (return_statement) "return false;" (return) "return" (false) "false" (;) ";" (}) "}" (comment) "/*\n * empty auth\n */" (if_statement) "if (!argc) {\n return true;\n }" (if) "if" (parenthesized_expression) "(!argc)" (() "(" (unary_expression) "!argc" (!) "!" (identifier) "argc" ()) ")" (compound_statement) "{\n return true;\n }" ({) "{" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (expression_statement) "ctx.auth_hierarchy.auth_str = argv[0];" (assignment_expression) "ctx.auth_hierarchy.auth_str = argv[0]" (field_expression) "ctx.auth_hierarchy.auth_str" (field_expression) "ctx.auth_hierarchy" (identifier) "ctx" (.) "." (field_identifier) "auth_hierarchy" (.) "." (field_identifier) "auth_str" (=) "=" (subscript_expression) "argv[0]" (identifier) "argv" ([) "[" (number_literal) "0" (]) "]" (;) ";" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "static bool on_option(char key, char *value) {\n\n switch (key) {\n case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;\n case 0:\n ctx.cp_hash_path = value;\n break;\n }\n\n return true;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "on_option(char key, char *value)" (identifier) "on_option" (parameter_list) "(char key, char *value)" (() "(" (parameter_declaration) "char key" (primitive_type) "char" (identifier) "key" (,) "," (parameter_declaration) "char *value" (primitive_type) "char" (pointer_declarator) "*value" (*) "*" (identifier) "value" ()) ")" (compound_statement) "{\n\n switch (key) {\n case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;\n case 0:\n ctx.cp_hash_path = value;\n break;\n }\n\n return true;\n}" ({) "{" (switch_statement) "switch (key) {\n case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;\n case 0:\n ctx.cp_hash_path = value;\n break;\n }" (switch) "switch" (parenthesized_expression) "(key)" (() "(" (identifier) "key" ()) ")" (compound_statement) "{\n case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;\n case 0:\n ctx.cp_hash_path = value;\n break;\n }" ({) "{" (case_statement) "case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;" (case) "case" (char_literal) "'c'" (') "'" (character) "c" (') "'" (:) ":" (expression_statement) "ctx.auth_hierarchy.ctx_path = value;" (assignment_expression) "ctx.auth_hierarchy.ctx_path = value" (field_expression) "ctx.auth_hierarchy.ctx_path" (field_expression) "ctx.auth_hierarchy" (identifier) "ctx" (.) "." (field_identifier) "auth_hierarchy" (.) "." (field_identifier) "ctx_path" (=) "=" (identifier) "value" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case 0:\n ctx.cp_hash_path = value;\n break;" (case) "case" (number_literal) "0" (:) ":" (expression_statement) "ctx.cp_hash_path = value;" (assignment_expression) "ctx.cp_hash_path = value" (field_expression) "ctx.cp_hash_path" (identifier) "ctx" (.) "." (field_identifier) "cp_hash_path" (=) "=" (identifier) "value" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (return_statement) "return true;" (return) "return" (true) "true" (;) ";" (}) "}" (function_definition) "static bool tpm2_tool_onstart(tpm2_options **opts) {\n\n const struct option topts[] = {\n { "auth-hierarchy", required_argument, 0, 'c' },\n { "cphash", required_argument, 0, 0 },\n };\n\n *opts = tpm2_options_new("c:", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0);\n\n return *opts != 0;\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "bool" (function_declarator) "tpm2_tool_onstart(tpm2_options **opts)" (identifier) "tpm2_tool_onstart" (parameter_list) "(tpm2_options **opts)" (() "(" (parameter_declaration) "tpm2_options **opts" (type_identifier) "tpm2_options" (pointer_declarator) "**opts" (*) "*" (pointer_declarator) "*opts" (*) "*" (identifier) "opts" ()) ")" (compound_statement) "{\n\n const struct option topts[] = {\n { "auth-hierarchy", required_argument, 0, 'c' },\n { "cphash", required_argument, 0, 0 },\n };\n\n *opts = tpm2_options_new("c:", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0);\n\n return *opts != 0;\n}" ({) "{" (declaration) "const struct option topts[] = {\n { "auth-hierarchy", required_argument, 0, 'c' },\n { "cphash", required_argument, 0, 0 },\n };" (type_qualifier) "const" (const) "const" (struct_specifier) "struct option" (struct) "struct" (type_identifier) "option" (init_declarator) "topts[] = {\n { "auth-hierarchy", required_argument, 0, 'c' },\n { "cphash", required_argument, 0, 0 },\n }" (array_declarator) "topts[]" (identifier) "topts" ([) "[" (]) "]" (=) "=" (initializer_list) "{\n { "auth-hierarchy", required_argument, 0, 'c' },\n { "cphash", required_argument, 0, 0 },\n }" ({) "{" (initializer_list) "{ "auth-hierarchy", required_argument, 0, 'c' }" ({) "{" (string_literal) ""auth-hierarchy"" (") """ (string_content) "auth-hierarchy" (") """ (,) "," (identifier) "required_argument" (,) "," (number_literal) "0" (,) "," (char_literal) "'c'" (') "'" (character) "c" (') "'" (}) "}" (,) "," (initializer_list) "{ "cphash", required_argument, 0, 0 }" ({) "{" (string_literal) ""cphash"" (") """ (string_content) "cphash" (") """ (,) "," (identifier) "required_argument" (,) "," (number_literal) "0" (,) "," (number_literal) "0" (}) "}" (,) "," (}) "}" (;) ";" (expression_statement) "*opts = tpm2_options_new("c:", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0);" (assignment_expression) "*opts = tpm2_options_new("c:", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0)" (pointer_expression) "*opts" (*) "*" (identifier) "opts" (=) "=" (call_expression) "tpm2_options_new("c:", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0)" (identifier) "tpm2_options_new" (argument_list) "("c:", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0)" (() "(" (string_literal) ""c:"" (") """ (string_content) "c:" (") """ (,) "," (call_expression) "ARRAY_LEN(topts)" (identifier) "ARRAY_LEN" (argument_list) "(topts)" (() "(" (identifier) "topts" ()) ")" (,) "," (identifier) "topts" (,) "," (identifier) "on_option" (,) "," (identifier) "on_arg" (,) "," (number_literal) "0" ()) ")" (;) ";" (return_statement) "return *opts != 0;" (return) "return" (binary_expression) "*opts != 0" (pointer_expression) "*opts" (*) "*" (identifier) "opts" (!=) "!=" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static tool_rc tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags) {\n\n UNUSED(flags);\n\n /*\n * 1. Process options\n */\n tool_rc rc = check_options(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 2. Process inputs\n */\n rc = process_inputs(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 3. TPM2_CC_<command> call\n */\n rc = clear(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 4. Process outputs\n */\n return process_output(ectx);\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "tool_rc" (function_declarator) "tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags)" (identifier) "tpm2_tool_onrun" (parameter_list) "(ESYS_CONTEXT *ectx, tpm2_option_flags flags)" (() "(" (parameter_declaration) "ESYS_CONTEXT *ectx" (type_identifier) "ESYS_CONTEXT" (pointer_declarator) "*ectx" (*) "*" (identifier) "ectx" (,) "," (parameter_declaration) "tpm2_option_flags flags" (type_identifier) "tpm2_option_flags" (identifier) "flags" ()) ")" (compound_statement) "{\n\n UNUSED(flags);\n\n /*\n * 1. Process options\n */\n tool_rc rc = check_options(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 2. Process inputs\n */\n rc = process_inputs(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 3. TPM2_CC_<command> call\n */\n rc = clear(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 4. Process outputs\n */\n return process_output(ectx);\n}" ({) "{" (expression_statement) "UNUSED(flags);" (call_expression) "UNUSED(flags)" (identifier) "UNUSED" (argument_list) "(flags)" (() "(" (identifier) "flags" ()) ")" (;) ";" (comment) "/*\n * 1. Process options\n */" (declaration) "tool_rc rc = check_options(ectx);" (type_identifier) "tool_rc" (init_declarator) "rc = check_options(ectx)" (identifier) "rc" (=) "=" (call_expression) "check_options(ectx)" (identifier) "check_options" (argument_list) "(ectx)" (() "(" (identifier) "ectx" ()) ")" (;) ";" (if_statement) "if (rc != tool_rc_success) {\n return rc;\n }" (if) "if" (parenthesized_expression) "(rc != tool_rc_success)" (() "(" (binary_expression) "rc != tool_rc_success" (identifier) "rc" (!=) "!=" (identifier) "tool_rc_success" ()) ")" (compound_statement) "{\n return rc;\n }" ({) "{" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (comment) "/*\n * 2. Process inputs\n */" (expression_statement) "rc = process_inputs(ectx);" (assignment_expression) "rc = process_inputs(ectx)" (identifier) "rc" (=) "=" (call_expression) "process_inputs(ectx)" (identifier) "process_inputs" (argument_list) "(ectx)" (() "(" (identifier) "ectx" ()) ")" (;) ";" (if_statement) "if (rc != tool_rc_success) {\n return rc;\n }" (if) "if" (parenthesized_expression) "(rc != tool_rc_success)" (() "(" (binary_expression) "rc != tool_rc_success" (identifier) "rc" (!=) "!=" (identifier) "tool_rc_success" ()) ")" (compound_statement) "{\n return rc;\n }" ({) "{" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (comment) "/*\n * 3. TPM2_CC_<command> call\n */" (expression_statement) "rc = clear(ectx);" (assignment_expression) "rc = clear(ectx)" (identifier) "rc" (=) "=" (call_expression) "clear(ectx)" (identifier) "clear" (argument_list) "(ectx)" (() "(" (identifier) "ectx" ()) ")" (;) ";" (if_statement) "if (rc != tool_rc_success) {\n return rc;\n }" (if) "if" (parenthesized_expression) "(rc != tool_rc_success)" (() "(" (binary_expression) "rc != tool_rc_success" (identifier) "rc" (!=) "!=" (identifier) "tool_rc_success" ()) ")" (compound_statement) "{\n return rc;\n }" ({) "{" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (comment) "/*\n * 4. Process outputs\n */" (return_statement) "return process_output(ectx);" (return) "return" (call_expression) "process_output(ectx)" (identifier) "process_output" (argument_list) "(ectx)" (() "(" (identifier) "ectx" ()) ")" (;) ";" (}) "}" (function_definition) "static tool_rc tpm2_tool_onstop(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 1. Free objects\n */\n\n /*\n * 2. Close authorization sessions\n */\n tool_rc rc = tpm2_session_close(&ctx.auth_hierarchy.object.session);\n\n /*\n * 3. Close auxiliary sessions\n */\n\n return rc;\n}" (storage_class_specifier) "static" (static) "static" (type_identifier) "tool_rc" (function_declarator) "tpm2_tool_onstop(ESYS_CONTEXT *ectx)" (identifier) "tpm2_tool_onstop" (parameter_list) "(ESYS_CONTEXT *ectx)" (() "(" (parameter_declaration) "ESYS_CONTEXT *ectx" (type_identifier) "ESYS_CONTEXT" (pointer_declarator) "*ectx" (*) "*" (identifier) "ectx" ()) ")" (compound_statement) "{\n\n UNUSED(ectx);\n\n /*\n * 1. Free objects\n */\n\n /*\n * 2. Close authorization sessions\n */\n tool_rc rc = tpm2_session_close(&ctx.auth_hierarchy.object.session);\n\n /*\n * 3. Close auxiliary sessions\n */\n\n return rc;\n}" ({) "{" (expression_statement) "UNUSED(ectx);" (call_expression) "UNUSED(ectx)" (identifier) "UNUSED" (argument_list) "(ectx)" (() "(" (identifier) "ectx" ()) ")" (;) ";" (comment) "/*\n * 1. Free objects\n */" (comment) "/*\n * 2. Close authorization sessions\n */" (declaration) "tool_rc rc = tpm2_session_close(&ctx.auth_hierarchy.object.session);" (type_identifier) "tool_rc" (init_declarator) "rc = tpm2_session_close(&ctx.auth_hierarchy.object.session)" (identifier) "rc" (=) "=" (call_expression) "tpm2_session_close(&ctx.auth_hierarchy.object.session)" (identifier) "tpm2_session_close" (argument_list) "(&ctx.auth_hierarchy.object.session)" (() "(" (pointer_expression) "&ctx.auth_hierarchy.object.session" (&) "&" (field_expression) "ctx.auth_hierarchy.object.session" (field_expression) "ctx.auth_hierarchy.object" (field_expression) "ctx.auth_hierarchy" (identifier) "ctx" (.) "." (field_identifier) "auth_hierarchy" (.) "." (field_identifier) "object" (.) "." (field_identifier) "session" ()) ")" (;) ";" (comment) "/*\n * 3. Close auxiliary sessions\n */" (return_statement) "return rc;" (return) "return" (identifier) "rc" (;) ";" (}) "}" (comment) "// Register this tool with tpm2_tool.c" (expression_statement) "TPM2_TOOL_REGISTER("clear", tpm2_tool_onstart, tpm2_tool_onrun,\n tpm2_tool_onstop, 0)" (call_expression) "TPM2_TOOL_REGISTER("clear", tpm2_tool_onstart, tpm2_tool_onrun,\n tpm2_tool_onstop, 0)" (identifier) "TPM2_TOOL_REGISTER" (argument_list) "("clear", tpm2_tool_onstart, tpm2_tool_onrun,\n tpm2_tool_onstop, 0)" (() "(" (string_literal) ""clear"" (") """ (string_content) "clear" (") """ (,) "," (identifier) "tpm2_tool_onstart" (,) "," (identifier) "tpm2_tool_onrun" (,) "," (identifier) "tpm2_tool_onstop" (,) "," (number_literal) "0" ()) ")" (;) ""
1,005
0
{"language": "c", "success": true, "metadata": {"lines": 188, "avg_line_length": 24.3, "nodes": 570, "errors": 0, "source_hash": "70c815d4a0c1137b61405a08e4d89a8b11b8e43782d1e7c215972f93d329ed88", "categorized_nodes": 421}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include \"files.h\"\n", "parent": null, "children": [1, 2], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 3, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 2, "column": 0}, "end_point": {"row": 2, "column": 8}}, {"id": 2, "type": "string_literal", "text": "\"files.h\"", "parent": 0, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include \"log.h\"\n", "parent": null, "children": [4, 5], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 5, "type": "string_literal", "text": "\"log.h\"", "parent": 3, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 16}}, {"id": 6, "type": "preproc_include", "text": "#include \"tpm2.h\"\n", "parent": null, "children": [7, 8], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 5, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 4, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"tpm2.h\"", "parent": 6, "children": [], "start_point": {"row": 4, "column": 9}, "end_point": {"row": 4, "column": 17}}, {"id": 9, "type": "preproc_include", "text": "#include \"tpm2_tool.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": "\"tpm2_tool.h\"", "parent": 9, "children": [], "start_point": {"row": 5, "column": 9}, "end_point": {"row": 5, "column": 22}}, {"id": 12, "type": "preproc_def", "text": "#define MAX_SESSIONS 3\n", "parent": null, "children": [13, 14, 15], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 13, "type": "#define", "text": "#define", "parent": 12, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 7}}, {"id": 14, "type": "identifier", "text": "MAX_SESSIONS", "parent": 12, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 20}}, {"id": 15, "type": "preproc_arg", "text": "3", "parent": 12, "children": [], "start_point": {"row": 7, "column": 21}, "end_point": {"row": 7, "column": 22}}, {"id": 16, "type": "type_definition", "text": "typedef struct clear_ctx clear_ctx;", "parent": null, "children": [17, 18, 21], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 35}}, {"id": 17, "type": "typedef", "text": "typedef", "parent": 16, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 7}}, {"id": 18, "type": "struct_specifier", "text": "struct clear_ctx", "parent": 16, "children": [19, 20], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 24}}, {"id": 19, "type": "struct", "text": "struct", "parent": 18, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 14}}, {"id": 20, "type": "type_identifier", "text": "clear_ctx", "parent": 18, "children": [], "start_point": {"row": 8, "column": 15}, "end_point": {"row": 8, "column": 24}}, {"id": 21, "type": "type_identifier", "text": "clear_ctx", "parent": 16, "children": [], "start_point": {"row": 8, "column": 25}, "end_point": {"row": 8, "column": 34}}, {"id": 22, "type": "struct_specifier", "text": "struct clear_ctx {\n /*\n * Inputs\n */\n struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n } auth_hierarchy;\n\n /*\n * Outputs\n */\n\n /*\n * Parameter hashes\n */\n const char *cp_hash_path;\n TPM2B_DIGEST cp_hash;\n bool is_command_dispatch;\n TPMI_ALG_HASH parameter_hash_algorithm;\n}", "parent": null, "children": [23, 24], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 30, "column": 1}}, {"id": 23, "type": "struct", "text": "struct", "parent": 22, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 24, "type": "type_identifier", "text": "clear_ctx", "parent": 22, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 16}}, {"id": 25, "type": "field_declaration", "text": "struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n } auth_hierarchy;", "parent": 22, "children": [26, 41], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 17, "column": 21}}, {"id": 26, "type": "struct_specifier", "text": "struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n }", "parent": 25, "children": [27], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 17, "column": 5}}, {"id": 27, "type": "struct", "text": "struct", "parent": 26, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 13, "column": 10}}, {"id": 28, "type": "field_declaration", "text": "const char *ctx_path;", "parent": 26, "children": [29, 30], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 29}}, {"id": 29, "type": "primitive_type", "text": "char", "parent": 28, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 18}}, {"id": 30, "type": "pointer_declarator", "text": "*ctx_path", "parent": 28, "children": [31, 32], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 28}}, {"id": 31, "type": "*", "text": "*", "parent": 30, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 20}}, {"id": 32, "type": "field_identifier", "text": "ctx_path", "parent": 30, "children": [], "start_point": {"row": 14, "column": 20}, "end_point": {"row": 14, "column": 28}}, {"id": 33, "type": "field_declaration", "text": "const char *auth_str;", "parent": 26, "children": [34, 35], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 29}}, {"id": 34, "type": "primitive_type", "text": "char", "parent": 33, "children": [], "start_point": {"row": 15, "column": 14}, "end_point": {"row": 15, "column": 18}}, {"id": 35, "type": "pointer_declarator", "text": "*auth_str", "parent": 33, "children": [36, 37], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 28}}, {"id": 36, "type": "*", "text": "*", "parent": 35, "children": [], "start_point": {"row": 15, "column": 19}, "end_point": {"row": 15, "column": 20}}, {"id": 37, "type": "field_identifier", "text": "auth_str", "parent": 35, "children": [], "start_point": {"row": 15, "column": 20}, "end_point": {"row": 15, "column": 28}}, {"id": 38, "type": "field_declaration", "text": "tpm2_loaded_object object;", "parent": 26, "children": [39, 40], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 34}}, {"id": 39, "type": "type_identifier", "text": "tpm2_loaded_object", "parent": 38, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 26}}, {"id": 40, "type": "field_identifier", "text": "object", "parent": 38, "children": [], "start_point": {"row": 16, "column": 27}, "end_point": {"row": 16, "column": 33}}, {"id": 41, "type": "field_identifier", "text": "auth_hierarchy", "parent": 25, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 20}}, {"id": 42, "type": "field_declaration", "text": "const char *cp_hash_path;", "parent": 22, "children": [43, 44], "start_point": {"row": 26, "column": 4}, "end_point": {"row": 26, "column": 29}}, {"id": 43, "type": "primitive_type", "text": "char", "parent": 42, "children": [], "start_point": {"row": 26, "column": 10}, "end_point": {"row": 26, "column": 14}}, {"id": 44, "type": "pointer_declarator", "text": "*cp_hash_path", "parent": 42, "children": [45, 46], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 28}}, {"id": 45, "type": "*", "text": "*", "parent": 44, "children": [], "start_point": {"row": 26, "column": 15}, "end_point": {"row": 26, "column": 16}}, {"id": 46, "type": "field_identifier", "text": "cp_hash_path", "parent": 44, "children": [], "start_point": {"row": 26, "column": 16}, "end_point": {"row": 26, "column": 28}}, {"id": 47, "type": "field_declaration", "text": "TPM2B_DIGEST cp_hash;", "parent": 22, "children": [48, 49], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 25}}, {"id": 48, "type": "type_identifier", "text": "TPM2B_DIGEST", "parent": 47, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 16}}, {"id": 49, "type": "field_identifier", "text": "cp_hash", "parent": 47, "children": [], "start_point": {"row": 27, "column": 17}, "end_point": {"row": 27, "column": 24}}, {"id": 50, "type": "field_declaration", "text": "bool is_command_dispatch;", "parent": 22, "children": [51, 52], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 29}}, {"id": 51, "type": "primitive_type", "text": "bool", "parent": 50, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 8}}, {"id": 52, "type": "field_identifier", "text": "is_command_dispatch", "parent": 50, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 28}}, {"id": 53, "type": "field_declaration", "text": "TPMI_ALG_HASH parameter_hash_algorithm;", "parent": 22, "children": [54, 55], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 43}}, {"id": 54, "type": "type_identifier", "text": "TPMI_ALG_HASH", "parent": 53, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 17}}, {"id": 55, "type": "field_identifier", "text": "parameter_hash_algorithm", "parent": 53, "children": [], "start_point": {"row": 29, "column": 18}, "end_point": {"row": 29, "column": 42}}, {"id": 56, "type": "declaration", "text": "static clear_ctx ctx = {\n .auth_hierarchy.ctx_path = \"l\",\n .parameter_hash_algorithm = TPM2_ALG_ERROR,\n};", "parent": null, "children": [57, 58], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 35, "column": 2}}, {"id": 57, "type": "type_identifier", "text": "clear_ctx", "parent": 56, "children": [], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 16}}, {"id": 58, "type": "init_declarator", "text": "ctx = {\n .auth_hierarchy.ctx_path = \"l\",\n .parameter_hash_algorithm = TPM2_ALG_ERROR,\n}", "parent": 56, "children": [59, 60, 61], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 35, "column": 1}}, {"id": 59, "type": "identifier", "text": "ctx", "parent": 58, "children": [], "start_point": {"row": 32, "column": 17}, "end_point": {"row": 32, "column": 20}}, {"id": 60, "type": "=", "text": "=", "parent": 58, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 22}}, {"id": 61, "type": "initializer_list", "text": "{\n .auth_hierarchy.ctx_path = \"l\",\n .parameter_hash_algorithm = TPM2_ALG_ERROR,\n}", "parent": 58, "children": [62, 69], "start_point": {"row": 32, "column": 23}, "end_point": {"row": 35, "column": 1}}, {"id": 62, "type": "initializer_pair", "text": ".auth_hierarchy.ctx_path = \"l\"", "parent": 61, "children": [63, 65, 67, 68], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 34}}, {"id": 63, "type": "field_designator", "text": ".auth_hierarchy", "parent": 62, "children": [64], "start_point": {"row": 33, "column": 4}, "end_point": {"row": 33, "column": 19}}, {"id": 64, "type": "field_identifier", "text": "auth_hierarchy", "parent": 63, "children": [], "start_point": {"row": 33, "column": 5}, "end_point": {"row": 33, "column": 19}}, {"id": 65, "type": "field_designator", "text": ".ctx_path", "parent": 62, "children": [66], "start_point": {"row": 33, "column": 19}, "end_point": {"row": 33, "column": 28}}, {"id": 66, "type": "field_identifier", "text": "ctx_path", "parent": 65, "children": [], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 28}}, {"id": 67, "type": "=", "text": "=", "parent": 62, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 30}}, {"id": 68, "type": "string_literal", "text": "\"l\"", "parent": 62, "children": [], "start_point": {"row": 33, "column": 31}, "end_point": {"row": 33, "column": 34}}, {"id": 69, "type": "initializer_pair", "text": ".parameter_hash_algorithm = TPM2_ALG_ERROR", "parent": 61, "children": [70, 72, 73], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 46}}, {"id": 70, "type": "field_designator", "text": ".parameter_hash_algorithm", "parent": 69, "children": [71], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 29}}, {"id": 71, "type": "field_identifier", "text": "parameter_hash_algorithm", "parent": 70, "children": [], "start_point": {"row": 34, "column": 5}, "end_point": {"row": 34, "column": 29}}, {"id": 72, "type": "=", "text": "=", "parent": 69, "children": [], "start_point": {"row": 34, "column": 30}, "end_point": {"row": 34, "column": 31}}, {"id": 73, "type": "identifier", "text": "TPM2_ALG_ERROR", "parent": 69, "children": [], "start_point": {"row": 34, "column": 32}, "end_point": {"row": 34, "column": 46}}, {"id": 74, "type": "function_definition", "text": "static tool_rc clear(ESYS_CONTEXT *ectx) {\n\n return tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm);\n}", "parent": null, "children": [75, 76], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 75, "type": "type_identifier", "text": "tool_rc", "parent": 74, "children": [], "start_point": {"row": 37, "column": 7}, "end_point": {"row": 37, "column": 14}}, {"id": 76, "type": "function_declarator", "text": "clear(ESYS_CONTEXT *ectx)", "parent": 74, "children": [77, 78], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 40}}, {"id": 77, "type": "identifier", "text": "clear", "parent": 76, "children": [], "start_point": {"row": 37, "column": 15}, "end_point": {"row": 37, "column": 20}}, {"id": 78, "type": "parameter_list", "text": "(ESYS_CONTEXT *ectx)", "parent": 76, "children": [79], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 40}}, {"id": 79, "type": "parameter_declaration", "text": "ESYS_CONTEXT *ectx", "parent": 78, "children": [80, 81], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 39}}, {"id": 80, "type": "type_identifier", "text": "ESYS_CONTEXT", "parent": 79, "children": [], "start_point": {"row": 37, "column": 21}, "end_point": {"row": 37, "column": 33}}, {"id": 81, "type": "pointer_declarator", "text": "*ectx", "parent": 79, "children": [82, 83], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 39}}, {"id": 82, "type": "*", "text": "*", "parent": 81, "children": [], "start_point": {"row": 37, "column": 34}, "end_point": {"row": 37, "column": 35}}, {"id": 83, "type": "identifier", "text": "ectx", "parent": 81, "children": [], "start_point": {"row": 37, "column": 35}, "end_point": {"row": 37, "column": 39}}, {"id": 84, "type": "return_statement", "text": "return tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm);", "parent": 74, "children": [85], "start_point": {"row": 39, "column": 4}, "end_point": {"row": 40, "column": 38}}, {"id": 85, "type": "call_expression", "text": "tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm)", "parent": 84, "children": [86, 87], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 40, "column": 37}}, {"id": 86, "type": "identifier", "text": "tpm2_clear", "parent": 85, "children": [], "start_point": {"row": 39, "column": 11}, "end_point": {"row": 39, "column": 21}}, {"id": 87, "type": "argument_list", "text": "(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm)", "parent": 85, "children": [88, 89, 95, 99], "start_point": {"row": 39, "column": 21}, "end_point": {"row": 40, "column": 37}}, {"id": 88, "type": "identifier", "text": "ectx", "parent": 87, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 26}}, {"id": 89, "type": "pointer_expression", "text": "&ctx.auth_hierarchy.object", "parent": 87, "children": [90], "start_point": {"row": 39, "column": 28}, "end_point": {"row": 39, "column": 54}}, {"id": 90, "type": "field_expression", "text": "ctx.auth_hierarchy.object", "parent": 89, "children": [91, 94], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 54}}, {"id": 91, "type": "field_expression", "text": "ctx.auth_hierarchy", "parent": 90, "children": [92, 93], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 47}}, {"id": 92, "type": "identifier", "text": "ctx", "parent": 91, "children": [], "start_point": {"row": 39, "column": 29}, "end_point": {"row": 39, "column": 32}}, {"id": 93, "type": "field_identifier", "text": "auth_hierarchy", "parent": 91, "children": [], "start_point": {"row": 39, "column": 33}, "end_point": {"row": 39, "column": 47}}, {"id": 94, "type": "field_identifier", "text": "object", "parent": 90, "children": [], "start_point": {"row": 39, "column": 48}, "end_point": {"row": 39, "column": 54}}, {"id": 95, "type": "pointer_expression", "text": "&ctx.cp_hash", "parent": 87, "children": [96], "start_point": {"row": 39, "column": 56}, "end_point": {"row": 39, "column": 68}}, {"id": 96, "type": "field_expression", "text": "ctx.cp_hash", "parent": 95, "children": [97, 98], "start_point": {"row": 39, "column": 57}, "end_point": {"row": 39, "column": 68}}, {"id": 97, "type": "identifier", "text": "ctx", "parent": 96, "children": [], "start_point": {"row": 39, "column": 57}, "end_point": {"row": 39, "column": 60}}, {"id": 98, "type": "field_identifier", "text": "cp_hash", "parent": 96, "children": [], "start_point": {"row": 39, "column": 61}, "end_point": {"row": 39, "column": 68}}, {"id": 99, "type": "field_expression", "text": "ctx.parameter_hash_algorithm", "parent": 87, "children": [100, 101], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 36}}, {"id": 100, "type": "identifier", "text": "ctx", "parent": 99, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 11}}, {"id": 101, "type": "field_identifier", "text": "parameter_hash_algorithm", "parent": 99, "children": [], "start_point": {"row": 40, "column": 12}, "end_point": {"row": 40, "column": 36}}, {"id": 102, "type": "function_definition", "text": "static tool_rc process_output(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n /*\n * 1. Outputs that do not require TPM2_CC_<command> dispatch\n */\n bool is_file_op_success = true;\n if (ctx.cp_hash_path) {\n is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);\n\n if (!is_file_op_success) {\n return tool_rc_general_error;\n }\n }\n\n tool_rc rc = tool_rc_success;\n if (!ctx.is_command_dispatch) {\n return rc;\n }\n\n /*\n * 2. Outputs generated after TPM2_CC_<command> dispatch\n */\n\n return rc;\n}", "parent": null, "children": [103, 104], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 69, "column": 1}}, {"id": 103, "type": "type_identifier", "text": "tool_rc", "parent": 102, "children": [], "start_point": {"row": 44, "column": 7}, "end_point": {"row": 44, "column": 14}}, {"id": 104, "type": "function_declarator", "text": "process_output(ESYS_CONTEXT *ectx)", "parent": 102, "children": [105, 106], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 49}}, {"id": 105, "type": "identifier", "text": "process_output", "parent": 104, "children": [], "start_point": {"row": 44, "column": 15}, "end_point": {"row": 44, "column": 29}}, {"id": 106, "type": "parameter_list", "text": "(ESYS_CONTEXT *ectx)", "parent": 104, "children": [107], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 49}}, {"id": 107, "type": "parameter_declaration", "text": "ESYS_CONTEXT *ectx", "parent": 106, "children": [108, 109], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 48}}, {"id": 108, "type": "type_identifier", "text": "ESYS_CONTEXT", "parent": 107, "children": [], "start_point": {"row": 44, "column": 30}, "end_point": {"row": 44, "column": 42}}, {"id": 109, "type": "pointer_declarator", "text": "*ectx", "parent": 107, "children": [110, 111], "start_point": {"row": 44, "column": 43}, "end_point": {"row": 44, "column": 48}}, {"id": 110, "type": "*", "text": "*", "parent": 109, "children": [], "start_point": {"row": 44, "column": 43}, "end_point": {"row": 44, "column": 44}}, {"id": 111, "type": "identifier", "text": "ectx", "parent": 109, "children": [], "start_point": {"row": 44, "column": 44}, "end_point": {"row": 44, "column": 48}}, {"id": 112, "type": "call_expression", "text": "UNUSED(ectx)", "parent": 102, "children": [113, 114], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 16}}, {"id": 113, "type": "identifier", "text": "UNUSED", "parent": 112, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 10}}, {"id": 114, "type": "argument_list", "text": "(ectx)", "parent": 112, "children": [115], "start_point": {"row": 46, "column": 10}, "end_point": {"row": 46, "column": 16}}, {"id": 115, "type": "identifier", "text": "ectx", "parent": 114, "children": [], "start_point": {"row": 46, "column": 11}, "end_point": {"row": 46, "column": 15}}, {"id": 116, "type": "declaration", "text": "bool is_file_op_success = true;", "parent": 102, "children": [117, 118], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 35}}, {"id": 117, "type": "primitive_type", "text": "bool", "parent": 116, "children": [], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 8}}, {"id": 118, "type": "init_declarator", "text": "is_file_op_success = true", "parent": 116, "children": [119, 120, 121], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 34}}, {"id": 119, "type": "identifier", "text": "is_file_op_success", "parent": 118, "children": [], "start_point": {"row": 50, "column": 9}, "end_point": {"row": 50, "column": 27}}, {"id": 120, "type": "=", "text": "=", "parent": 118, "children": [], "start_point": {"row": 50, "column": 28}, "end_point": {"row": 50, "column": 29}}, {"id": 121, "type": "true", "text": "true", "parent": 118, "children": [], "start_point": {"row": 50, "column": 30}, "end_point": {"row": 50, "column": 34}}, {"id": 122, "type": "if_statement", "text": "if (ctx.cp_hash_path) {\n is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);\n\n if (!is_file_op_success) {\n return tool_rc_general_error;\n }\n }", "parent": 102, "children": [123], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 57, "column": 5}}, {"id": 123, "type": "parenthesized_expression", "text": "(ctx.cp_hash_path)", "parent": 122, "children": [124], "start_point": {"row": 51, "column": 7}, "end_point": {"row": 51, "column": 25}}, {"id": 124, "type": "field_expression", "text": "ctx.cp_hash_path", "parent": 123, "children": [125, 126], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 24}}, {"id": 125, "type": "identifier", "text": "ctx", "parent": 124, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 11}}, {"id": 126, "type": "field_identifier", "text": "cp_hash_path", "parent": 124, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 24}}, {"id": 127, "type": "assignment_expression", "text": "is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path)", "parent": 122, "children": [128, 129, 130], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 78}}, {"id": 128, "type": "identifier", "text": "is_file_op_success", "parent": 127, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 26}}, {"id": 129, "type": "=", "text": "=", "parent": 127, "children": [], "start_point": {"row": 52, "column": 27}, "end_point": {"row": 52, "column": 28}}, {"id": 130, "type": "call_expression", "text": "files_save_digest(&ctx.cp_hash, ctx.cp_hash_path)", "parent": 127, "children": [131, 132], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 78}}, {"id": 131, "type": "identifier", "text": "files_save_digest", "parent": 130, "children": [], "start_point": {"row": 52, "column": 29}, "end_point": {"row": 52, "column": 46}}, {"id": 132, "type": "argument_list", "text": "(&ctx.cp_hash, ctx.cp_hash_path)", "parent": 130, "children": [133, 137], "start_point": {"row": 52, "column": 46}, "end_point": {"row": 52, "column": 78}}, {"id": 133, "type": "pointer_expression", "text": "&ctx.cp_hash", "parent": 132, "children": [134], "start_point": {"row": 52, "column": 47}, "end_point": {"row": 52, "column": 59}}, {"id": 134, "type": "field_expression", "text": "ctx.cp_hash", "parent": 133, "children": [135, 136], "start_point": {"row": 52, "column": 48}, "end_point": {"row": 52, "column": 59}}, {"id": 135, "type": "identifier", "text": "ctx", "parent": 134, "children": [], "start_point": {"row": 52, "column": 48}, "end_point": {"row": 52, "column": 51}}, {"id": 136, "type": "field_identifier", "text": "cp_hash", "parent": 134, "children": [], "start_point": {"row": 52, "column": 52}, "end_point": {"row": 52, "column": 59}}, {"id": 137, "type": "field_expression", "text": "ctx.cp_hash_path", "parent": 132, "children": [138, 139], "start_point": {"row": 52, "column": 61}, "end_point": {"row": 52, "column": 77}}, {"id": 138, "type": "identifier", "text": "ctx", "parent": 137, "children": [], "start_point": {"row": 52, "column": 61}, "end_point": {"row": 52, "column": 64}}, {"id": 139, "type": "field_identifier", "text": "cp_hash_path", "parent": 137, "children": [], "start_point": {"row": 52, "column": 65}, "end_point": {"row": 52, "column": 77}}, {"id": 140, "type": "if_statement", "text": "if (!is_file_op_success) {\n return tool_rc_general_error;\n }", "parent": 122, "children": [141], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 56, "column": 9}}, {"id": 141, "type": "parenthesized_expression", "text": "(!is_file_op_success)", "parent": 140, "children": [142], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 32}}, {"id": 142, "type": "unary_expression", "text": "!is_file_op_success", "parent": 141, "children": [143, 144], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 31}}, {"id": 143, "type": "!", "text": "!", "parent": 142, "children": [], "start_point": {"row": 54, "column": 12}, "end_point": {"row": 54, "column": 13}}, {"id": 144, "type": "identifier", "text": "is_file_op_success", "parent": 142, "children": [], "start_point": {"row": 54, "column": 13}, "end_point": {"row": 54, "column": 31}}, {"id": 145, "type": "return_statement", "text": "return tool_rc_general_error;", "parent": 140, "children": [146], "start_point": {"row": 55, "column": 12}, "end_point": {"row": 55, "column": 41}}, {"id": 146, "type": "identifier", "text": "tool_rc_general_error", "parent": 145, "children": [], "start_point": {"row": 55, "column": 19}, "end_point": {"row": 55, "column": 40}}, {"id": 147, "type": "declaration", "text": "tool_rc rc = tool_rc_success;", "parent": 102, "children": [148, 149], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 33}}, {"id": 148, "type": "type_identifier", "text": "tool_rc", "parent": 147, "children": [], "start_point": {"row": 59, "column": 4}, "end_point": {"row": 59, "column": 11}}, {"id": 149, "type": "init_declarator", "text": "rc = tool_rc_success", "parent": 147, "children": [150, 151, 152], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 32}}, {"id": 150, "type": "identifier", "text": "rc", "parent": 149, "children": [], "start_point": {"row": 59, "column": 12}, "end_point": {"row": 59, "column": 14}}, {"id": 151, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 59, "column": 15}, "end_point": {"row": 59, "column": 16}}, {"id": 152, "type": "identifier", "text": "tool_rc_success", "parent": 149, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 32}}, {"id": 153, "type": "if_statement", "text": "if (!ctx.is_command_dispatch) {\n return rc;\n }", "parent": 102, "children": [154], "start_point": {"row": 60, "column": 4}, "end_point": {"row": 62, "column": 5}}, {"id": 154, "type": "parenthesized_expression", "text": "(!ctx.is_command_dispatch)", "parent": 153, "children": [155], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 33}}, {"id": 155, "type": "unary_expression", "text": "!ctx.is_command_dispatch", "parent": 154, "children": [156, 157], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 32}}, {"id": 156, "type": "!", "text": "!", "parent": 155, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 9}}, {"id": 157, "type": "field_expression", "text": "ctx.is_command_dispatch", "parent": 155, "children": [158, 159], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 32}}, {"id": 158, "type": "identifier", "text": "ctx", "parent": 157, "children": [], "start_point": {"row": 60, "column": 9}, "end_point": {"row": 60, "column": 12}}, {"id": 159, "type": "field_identifier", "text": "is_command_dispatch", "parent": 157, "children": [], "start_point": {"row": 60, "column": 13}, "end_point": {"row": 60, "column": 32}}, {"id": 160, "type": "return_statement", "text": "return rc;", "parent": 153, "children": [161], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 18}}, {"id": 161, "type": "identifier", "text": "rc", "parent": 160, "children": [], "start_point": {"row": 61, "column": 15}, "end_point": {"row": 61, "column": 17}}, {"id": 162, "type": "return_statement", "text": "return rc;", "parent": 102, "children": [163], "start_point": {"row": 68, "column": 4}, "end_point": {"row": 68, "column": 14}}, {"id": 163, "type": "identifier", "text": "rc", "parent": 162, "children": [], "start_point": {"row": 68, "column": 11}, "end_point": {"row": 68, "column": 13}}, {"id": 164, "type": "function_definition", "text": "static tool_rc process_inputs(ESYS_CONTEXT *ectx) {\n\n /*\n * 1. Object and auth initializations\n */\n\n /*\n * 1.a Add the new-auth values to be set for the object.\n */\n\n /*\n * 1.b Add object names and their auth sessions\n */\n\n /* Object #1 */\n tool_rc rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P);\n if (rc != tool_rc_success) {\n LOG_ERR(\"Invalid lockout authorization\");\n return rc;\n }\n\n /*\n * 2. Restore auxiliary sessions\n */\n\n /*\n * 3. Command specific initializations\n */\n\n /*\n * 4. Configuration for calculating the pHash\n */\n\n /*\n * 4.a Determine pHash length and alg\n */\n tpm2_session *all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n };\n\n const char **cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0;\n\n ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions);\n\n return rc;\n}", "parent": null, "children": [165, 166], "start_point": {"row": 72, "column": 0}, "end_point": {"row": 122, "column": 1}}, {"id": 165, "type": "type_identifier", "text": "tool_rc", "parent": 164, "children": [], "start_point": {"row": 72, "column": 7}, "end_point": {"row": 72, "column": 14}}, {"id": 166, "type": "function_declarator", "text": "process_inputs(ESYS_CONTEXT *ectx)", "parent": 164, "children": [167, 168], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 49}}, {"id": 167, "type": "identifier", "text": "process_inputs", "parent": 166, "children": [], "start_point": {"row": 72, "column": 15}, "end_point": {"row": 72, "column": 29}}, {"id": 168, "type": "parameter_list", "text": "(ESYS_CONTEXT *ectx)", "parent": 166, "children": [169], "start_point": {"row": 72, "column": 29}, "end_point": {"row": 72, "column": 49}}, {"id": 169, "type": "parameter_declaration", "text": "ESYS_CONTEXT *ectx", "parent": 168, "children": [170, 171], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 48}}, {"id": 170, "type": "type_identifier", "text": "ESYS_CONTEXT", "parent": 169, "children": [], "start_point": {"row": 72, "column": 30}, "end_point": {"row": 72, "column": 42}}, {"id": 171, "type": "pointer_declarator", "text": "*ectx", "parent": 169, "children": [172, 173], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 48}}, {"id": 172, "type": "*", "text": "*", "parent": 171, "children": [], "start_point": {"row": 72, "column": 43}, "end_point": {"row": 72, "column": 44}}, {"id": 173, "type": "identifier", "text": "ectx", "parent": 171, "children": [], "start_point": {"row": 72, "column": 44}, "end_point": {"row": 72, "column": 48}}, {"id": 174, "type": "declaration", "text": "tool_rc rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P);", "parent": 164, "children": [175, 176], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 89, "column": 55}}, {"id": 175, "type": "type_identifier", "text": "tool_rc", "parent": 174, "children": [], "start_point": {"row": 87, "column": 4}, "end_point": {"row": 87, "column": 11}}, {"id": 176, "type": "init_declarator", "text": "rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P)", "parent": 174, "children": [177, 178, 179], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 89, "column": 54}}, {"id": 177, "type": "identifier", "text": "rc", "parent": 176, "children": [], "start_point": {"row": 87, "column": 12}, "end_point": {"row": 87, "column": 14}}, {"id": 178, "type": "=", "text": "=", "parent": 176, "children": [], "start_point": {"row": 87, "column": 15}, "end_point": {"row": 87, "column": 16}}, {"id": 179, "type": "call_expression", "text": "tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P)", "parent": 176, "children": [180, 181], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 89, "column": 54}}, {"id": 180, "type": "identifier", "text": "tpm2_util_object_load_auth", "parent": 179, "children": [], "start_point": {"row": 87, "column": 17}, "end_point": {"row": 87, "column": 43}}, {"id": 181, "type": "argument_list", "text": "(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P)", "parent": 179, "children": [182, 183, 188, 193, 199, 200], "start_point": {"row": 87, "column": 43}, "end_point": {"row": 89, "column": 54}}, {"id": 182, "type": "identifier", "text": "ectx", "parent": 181, "children": [], "start_point": {"row": 87, "column": 44}, "end_point": {"row": 87, "column": 48}}, {"id": 183, "type": "field_expression", "text": "ctx.auth_hierarchy.ctx_path", "parent": 181, "children": [184, 187], "start_point": {"row": 87, "column": 50}, "end_point": {"row": 87, "column": 77}}, {"id": 184, "type": "field_expression", "text": "ctx.auth_hierarchy", "parent": 183, "children": [185, 186], "start_point": {"row": 87, "column": 50}, "end_point": {"row": 87, "column": 68}}, {"id": 185, "type": "identifier", "text": "ctx", "parent": 184, "children": [], "start_point": {"row": 87, "column": 50}, "end_point": {"row": 87, "column": 53}}, {"id": 186, "type": "field_identifier", "text": "auth_hierarchy", "parent": 184, "children": [], "start_point": {"row": 87, "column": 54}, "end_point": {"row": 87, "column": 68}}, {"id": 187, "type": "field_identifier", "text": "ctx_path", "parent": 183, "children": [], "start_point": {"row": 87, "column": 69}, "end_point": {"row": 87, "column": 77}}, {"id": 188, "type": "field_expression", "text": "ctx.auth_hierarchy.auth_str", "parent": 181, "children": [189, 192], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 39}}, {"id": 189, "type": "field_expression", "text": "ctx.auth_hierarchy", "parent": 188, "children": [190, 191], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 30}}, {"id": 190, "type": "identifier", "text": "ctx", "parent": 189, "children": [], "start_point": {"row": 88, "column": 12}, "end_point": {"row": 88, "column": 15}}, {"id": 191, "type": "field_identifier", "text": "auth_hierarchy", "parent": 189, "children": [], "start_point": {"row": 88, "column": 16}, "end_point": {"row": 88, "column": 30}}, {"id": 192, "type": "field_identifier", "text": "auth_str", "parent": 188, "children": [], "start_point": {"row": 88, "column": 31}, "end_point": {"row": 88, "column": 39}}, {"id": 193, "type": "pointer_expression", "text": "&ctx.auth_hierarchy.object", "parent": 181, "children": [194], "start_point": {"row": 88, "column": 41}, "end_point": {"row": 88, "column": 67}}, {"id": 194, "type": "field_expression", "text": "ctx.auth_hierarchy.object", "parent": 193, "children": [195, 198], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 67}}, {"id": 195, "type": "field_expression", "text": "ctx.auth_hierarchy", "parent": 194, "children": [196, 197], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 60}}, {"id": 196, "type": "identifier", "text": "ctx", "parent": 195, "children": [], "start_point": {"row": 88, "column": 42}, "end_point": {"row": 88, "column": 45}}, {"id": 197, "type": "field_identifier", "text": "auth_hierarchy", "parent": 195, "children": [], "start_point": {"row": 88, "column": 46}, "end_point": {"row": 88, "column": 60}}, {"id": 198, "type": "field_identifier", "text": "object", "parent": 194, "children": [], "start_point": {"row": 88, "column": 61}, "end_point": {"row": 88, "column": 67}}, {"id": 199, "type": "false", "text": "false", "parent": 181, "children": [], "start_point": {"row": 88, "column": 69}, "end_point": {"row": 88, "column": 74}}, {"id": 200, "type": "binary_expression", "text": "TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P", "parent": 181, "children": [201, 202], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 53}}, {"id": 201, "type": "identifier", "text": "TPM2_HANDLE_FLAGS_L", "parent": 200, "children": [], "start_point": {"row": 89, "column": 12}, "end_point": {"row": 89, "column": 31}}, {"id": 202, "type": "identifier", "text": "TPM2_HANDLE_FLAGS_P", "parent": 200, "children": [], "start_point": {"row": 89, "column": 34}, "end_point": {"row": 89, "column": 53}}, {"id": 203, "type": "if_statement", "text": "if (rc != tool_rc_success) {\n LOG_ERR(\"Invalid lockout authorization\");\n return rc;\n }", "parent": 164, "children": [204], "start_point": {"row": 90, "column": 4}, "end_point": {"row": 93, "column": 5}}, {"id": 204, "type": "parenthesized_expression", "text": "(rc != tool_rc_success)", "parent": 203, "children": [205], "start_point": {"row": 90, "column": 7}, "end_point": {"row": 90, "column": 30}}, {"id": 205, "type": "binary_expression", "text": "rc != tool_rc_success", "parent": 204, "children": [206, 207, 208], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 29}}, {"id": 206, "type": "identifier", "text": "rc", "parent": 205, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 10}}, {"id": 207, "type": "!=", "text": "!=", "parent": 205, "children": [], "start_point": {"row": 90, "column": 11}, "end_point": {"row": 90, "column": 13}}, {"id": 208, "type": "identifier", "text": "tool_rc_success", "parent": 205, "children": [], "start_point": {"row": 90, "column": 14}, "end_point": {"row": 90, "column": 29}}, {"id": 209, "type": "call_expression", "text": "LOG_ERR(\"Invalid lockout authorization\")", "parent": 203, "children": [210, 211], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 48}}, {"id": 210, "type": "identifier", "text": "LOG_ERR", "parent": 209, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 15}}, {"id": 211, "type": "argument_list", "text": "(\"Invalid lockout authorization\")", "parent": 209, "children": [212], "start_point": {"row": 91, "column": 15}, "end_point": {"row": 91, "column": 48}}, {"id": 212, "type": "string_literal", "text": "\"Invalid lockout authorization\"", "parent": 211, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 47}}, {"id": 213, "type": "return_statement", "text": "return rc;", "parent": 203, "children": [214], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 18}}, {"id": 214, "type": "identifier", "text": "rc", "parent": 213, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 17}}, {"id": 215, "type": "declaration", "text": "tpm2_session *all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n };", "parent": 164, "children": [216, 217], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 114, "column": 6}}, {"id": 216, "type": "type_identifier", "text": "tpm2_session", "parent": 215, "children": [], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 16}}, {"id": 217, "type": "init_declarator", "text": "*all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n }", "parent": 215, "children": [218, 223, 224], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 114, "column": 5}}, {"id": 218, "type": "pointer_declarator", "text": "*all_sessions[MAX_SESSIONS]", "parent": 217, "children": [219, 220], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 44}}, {"id": 219, "type": "*", "text": "*", "parent": 218, "children": [], "start_point": {"row": 110, "column": 17}, "end_point": {"row": 110, "column": 18}}, {"id": 220, "type": "array_declarator", "text": "all_sessions[MAX_SESSIONS]", "parent": 218, "children": [221, 222], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 44}}, {"id": 221, "type": "identifier", "text": "all_sessions", "parent": 220, "children": [], "start_point": {"row": 110, "column": 18}, "end_point": {"row": 110, "column": 30}}, {"id": 222, "type": "identifier", "text": "MAX_SESSIONS", "parent": 220, "children": [], "start_point": {"row": 110, "column": 31}, "end_point": {"row": 110, "column": 43}}, {"id": 223, "type": "=", "text": "=", "parent": 217, "children": [], "start_point": {"row": 110, "column": 45}, "end_point": {"row": 110, "column": 46}}, {"id": 224, "type": "initializer_list", "text": "{\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n }", "parent": 217, "children": [225, 232, 233], "start_point": {"row": 110, "column": 47}, "end_point": {"row": 114, "column": 5}}, {"id": 225, "type": "field_expression", "text": "ctx.auth_hierarchy.object.session", "parent": 224, "children": [226, 231], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 41}}, {"id": 226, "type": "field_expression", "text": "ctx.auth_hierarchy.object", "parent": 225, "children": [227, 230], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 33}}, {"id": 227, "type": "field_expression", "text": "ctx.auth_hierarchy", "parent": 226, "children": [228, 229], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 26}}, {"id": 228, "type": "identifier", "text": "ctx", "parent": 227, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 11}}, {"id": 229, "type": "field_identifier", "text": "auth_hierarchy", "parent": 227, "children": [], "start_point": {"row": 111, "column": 12}, "end_point": {"row": 111, "column": 26}}, {"id": 230, "type": "field_identifier", "text": "object", "parent": 226, "children": [], "start_point": {"row": 111, "column": 27}, "end_point": {"row": 111, "column": 33}}, {"id": 231, "type": "field_identifier", "text": "session", "parent": 225, "children": [], "start_point": {"row": 111, "column": 34}, "end_point": {"row": 111, "column": 41}}, {"id": 232, "type": "number_literal", "text": "0", "parent": 224, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 9}}, {"id": 233, "type": "number_literal", "text": "0", "parent": 224, "children": [], "start_point": {"row": 113, "column": 8}, "end_point": {"row": 113, "column": 9}}, {"id": 234, "type": "declaration", "text": "const char **cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0;", "parent": 164, "children": [235, 236], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 72}}, {"id": 235, "type": "primitive_type", "text": "char", "parent": 234, "children": [], "start_point": {"row": 116, "column": 10}, "end_point": {"row": 116, "column": 14}}, {"id": 236, "type": "init_declarator", "text": "**cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0", "parent": 234, "children": [237, 242, 243], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 71}}, {"id": 237, "type": "pointer_declarator", "text": "**cphash_path", "parent": 236, "children": [238, 239], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 28}}, {"id": 238, "type": "*", "text": "*", "parent": 237, "children": [], "start_point": {"row": 116, "column": 15}, "end_point": {"row": 116, "column": 16}}, {"id": 239, "type": "pointer_declarator", "text": "*cphash_path", "parent": 237, "children": [240, 241], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 28}}, {"id": 240, "type": "*", "text": "*", "parent": 239, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 17}}, {"id": 241, "type": "identifier", "text": "cphash_path", "parent": 239, "children": [], "start_point": {"row": 116, "column": 17}, "end_point": {"row": 116, "column": 28}}, {"id": 242, "type": "=", "text": "=", "parent": 236, "children": [], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 30}}, {"id": 243, "type": "conditional_expression", "text": "ctx.cp_hash_path ? &ctx.cp_hash_path : 0", "parent": 236, "children": [244, 247, 248, 252], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 71}}, {"id": 244, "type": "field_expression", "text": "ctx.cp_hash_path", "parent": 243, "children": [245, 246], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 47}}, {"id": 245, "type": "identifier", "text": "ctx", "parent": 244, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 34}}, {"id": 246, "type": "field_identifier", "text": "cp_hash_path", "parent": 244, "children": [], "start_point": {"row": 116, "column": 35}, "end_point": {"row": 116, "column": 47}}, {"id": 247, "type": "?", "text": "?", "parent": 243, "children": [], "start_point": {"row": 116, "column": 48}, "end_point": {"row": 116, "column": 49}}, {"id": 248, "type": "pointer_expression", "text": "&ctx.cp_hash_path", "parent": 243, "children": [249], "start_point": {"row": 116, "column": 50}, "end_point": {"row": 116, "column": 67}}, {"id": 249, "type": "field_expression", "text": "ctx.cp_hash_path", "parent": 248, "children": [250, 251], "start_point": {"row": 116, "column": 51}, "end_point": {"row": 116, "column": 67}}, {"id": 250, "type": "identifier", "text": "ctx", "parent": 249, "children": [], "start_point": {"row": 116, "column": 51}, "end_point": {"row": 116, "column": 54}}, {"id": 251, "type": "field_identifier", "text": "cp_hash_path", "parent": 249, "children": [], "start_point": {"row": 116, "column": 55}, "end_point": {"row": 116, "column": 67}}, {"id": 252, "type": "number_literal", "text": "0", "parent": 243, "children": [], "start_point": {"row": 116, "column": 70}, "end_point": {"row": 116, "column": 71}}, {"id": 253, "type": "assignment_expression", "text": "ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions)", "parent": 164, "children": [254, 257, 258], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 119, "column": 54}}, {"id": 254, "type": "field_expression", "text": "ctx.parameter_hash_algorithm", "parent": 253, "children": [255, 256], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 32}}, {"id": 255, "type": "identifier", "text": "ctx", "parent": 254, "children": [], "start_point": {"row": 118, "column": 4}, "end_point": {"row": 118, "column": 7}}, {"id": 256, "type": "field_identifier", "text": "parameter_hash_algorithm", "parent": 254, "children": [], "start_point": {"row": 118, "column": 8}, "end_point": {"row": 118, "column": 32}}, {"id": 257, "type": "=", "text": "=", "parent": 253, "children": [], "start_point": {"row": 118, "column": 33}, "end_point": {"row": 118, "column": 34}}, {"id": 258, "type": "call_expression", "text": "tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions)", "parent": 253, "children": [259, 260], "start_point": {"row": 118, "column": 35}, "end_point": {"row": 119, "column": 54}}, {"id": 259, "type": "identifier", "text": "tpm2_util_calculate_phash_algorithm", "parent": 258, "children": [], "start_point": {"row": 118, "column": 35}, "end_point": {"row": 118, "column": 70}}, {"id": 260, "type": "argument_list", "text": "(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions)", "parent": 258, "children": [261, 262, 263, 267, 268, 269], "start_point": {"row": 118, "column": 70}, "end_point": {"row": 119, "column": 54}}, {"id": 261, "type": "identifier", "text": "ectx", "parent": 260, "children": [], "start_point": {"row": 118, "column": 71}, "end_point": {"row": 118, "column": 75}}, {"id": 262, "type": "identifier", "text": "cphash_path", "parent": 260, "children": [], "start_point": {"row": 119, "column": 8}, "end_point": {"row": 119, "column": 19}}, {"id": 263, "type": "pointer_expression", "text": "&ctx.cp_hash", "parent": 260, "children": [264], "start_point": {"row": 119, "column": 21}, "end_point": {"row": 119, "column": 33}}, {"id": 264, "type": "field_expression", "text": "ctx.cp_hash", "parent": 263, "children": [265, 266], "start_point": {"row": 119, "column": 22}, "end_point": {"row": 119, "column": 33}}, {"id": 265, "type": "identifier", "text": "ctx", "parent": 264, "children": [], "start_point": {"row": 119, "column": 22}, "end_point": {"row": 119, "column": 25}}, {"id": 266, "type": "field_identifier", "text": "cp_hash", "parent": 264, "children": [], "start_point": {"row": 119, "column": 26}, "end_point": {"row": 119, "column": 33}}, {"id": 267, "type": "number_literal", "text": "0", "parent": 260, "children": [], "start_point": {"row": 119, "column": 35}, "end_point": {"row": 119, "column": 36}}, {"id": 268, "type": "number_literal", "text": "0", "parent": 260, "children": [], "start_point": {"row": 119, "column": 38}, "end_point": {"row": 119, "column": 39}}, {"id": 269, "type": "identifier", "text": "all_sessions", "parent": 260, "children": [], "start_point": {"row": 119, "column": 41}, "end_point": {"row": 119, "column": 53}}, {"id": 270, "type": "return_statement", "text": "return rc;", "parent": 164, "children": [271], "start_point": {"row": 121, "column": 4}, "end_point": {"row": 121, "column": 14}}, {"id": 271, "type": "identifier", "text": "rc", "parent": 270, "children": [], "start_point": {"row": 121, "column": 11}, "end_point": {"row": 121, "column": 13}}, {"id": 272, "type": "function_definition", "text": "static tool_rc check_options(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 4.b Determine if TPM2_CC_<command> is to be dispatched\n */\n ctx.is_command_dispatch = ctx.cp_hash_path ? false : true;\n\n if (!ctx.is_command_dispatch) {\n LOG_WARN(\"Generating cpHash. Exiting without executing clear.\");\n }\n\n return tool_rc_success;\n}", "parent": null, "children": [273, 274], "start_point": {"row": 124, "column": 0}, "end_point": {"row": 138, "column": 1}}, {"id": 273, "type": "type_identifier", "text": "tool_rc", "parent": 272, "children": [], "start_point": {"row": 124, "column": 7}, "end_point": {"row": 124, "column": 14}}, {"id": 274, "type": "function_declarator", "text": "check_options(ESYS_CONTEXT *ectx)", "parent": 272, "children": [275, 276], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 48}}, {"id": 275, "type": "identifier", "text": "check_options", "parent": 274, "children": [], "start_point": {"row": 124, "column": 15}, "end_point": {"row": 124, "column": 28}}, {"id": 276, "type": "parameter_list", "text": "(ESYS_CONTEXT *ectx)", "parent": 274, "children": [277], "start_point": {"row": 124, "column": 28}, "end_point": {"row": 124, "column": 48}}, {"id": 277, "type": "parameter_declaration", "text": "ESYS_CONTEXT *ectx", "parent": 276, "children": [278, 279], "start_point": {"row": 124, "column": 29}, "end_point": {"row": 124, "column": 47}}, {"id": 278, "type": "type_identifier", "text": "ESYS_CONTEXT", "parent": 277, "children": [], "start_point": {"row": 124, "column": 29}, "end_point": {"row": 124, "column": 41}}, {"id": 279, "type": "pointer_declarator", "text": "*ectx", "parent": 277, "children": [280, 281], "start_point": {"row": 124, "column": 42}, "end_point": {"row": 124, "column": 47}}, {"id": 280, "type": "*", "text": "*", "parent": 279, "children": [], "start_point": {"row": 124, "column": 42}, "end_point": {"row": 124, "column": 43}}, {"id": 281, "type": "identifier", "text": "ectx", "parent": 279, "children": [], "start_point": {"row": 124, "column": 43}, "end_point": {"row": 124, "column": 47}}, {"id": 282, "type": "call_expression", "text": "UNUSED(ectx)", "parent": 272, "children": [283, 284], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 16}}, {"id": 283, "type": "identifier", "text": "UNUSED", "parent": 282, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 10}}, {"id": 284, "type": "argument_list", "text": "(ectx)", "parent": 282, "children": [285], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 16}}, {"id": 285, "type": "identifier", "text": "ectx", "parent": 284, "children": [], "start_point": {"row": 126, "column": 11}, "end_point": {"row": 126, "column": 15}}, {"id": 286, "type": "assignment_expression", "text": "ctx.is_command_dispatch = ctx.cp_hash_path ? false : true", "parent": 272, "children": [287, 290, 291], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 61}}, {"id": 287, "type": "field_expression", "text": "ctx.is_command_dispatch", "parent": 286, "children": [288, 289], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 27}}, {"id": 288, "type": "identifier", "text": "ctx", "parent": 287, "children": [], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 7}}, {"id": 289, "type": "field_identifier", "text": "is_command_dispatch", "parent": 287, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 27}}, {"id": 290, "type": "=", "text": "=", "parent": 286, "children": [], "start_point": {"row": 131, "column": 28}, "end_point": {"row": 131, "column": 29}}, {"id": 291, "type": "conditional_expression", "text": "ctx.cp_hash_path ? false : true", "parent": 286, "children": [292, 295, 296, 297], "start_point": {"row": 131, "column": 30}, "end_point": {"row": 131, "column": 61}}, {"id": 292, "type": "field_expression", "text": "ctx.cp_hash_path", "parent": 291, "children": [293, 294], "start_point": {"row": 131, "column": 30}, "end_point": {"row": 131, "column": 46}}, {"id": 293, "type": "identifier", "text": "ctx", "parent": 292, "children": [], "start_point": {"row": 131, "column": 30}, "end_point": {"row": 131, "column": 33}}, {"id": 294, "type": "field_identifier", "text": "cp_hash_path", "parent": 292, "children": [], "start_point": {"row": 131, "column": 34}, "end_point": {"row": 131, "column": 46}}, {"id": 295, "type": "?", "text": "?", "parent": 291, "children": [], "start_point": {"row": 131, "column": 47}, "end_point": {"row": 131, "column": 48}}, {"id": 296, "type": "false", "text": "false", "parent": 291, "children": [], "start_point": {"row": 131, "column": 49}, "end_point": {"row": 131, "column": 54}}, {"id": 297, "type": "true", "text": "true", "parent": 291, "children": [], "start_point": {"row": 131, "column": 57}, "end_point": {"row": 131, "column": 61}}, {"id": 298, "type": "if_statement", "text": "if (!ctx.is_command_dispatch) {\n LOG_WARN(\"Generating cpHash. Exiting without executing clear.\");\n }", "parent": 272, "children": [299], "start_point": {"row": 133, "column": 4}, "end_point": {"row": 135, "column": 5}}, {"id": 299, "type": "parenthesized_expression", "text": "(!ctx.is_command_dispatch)", "parent": 298, "children": [300], "start_point": {"row": 133, "column": 7}, "end_point": {"row": 133, "column": 33}}, {"id": 300, "type": "unary_expression", "text": "!ctx.is_command_dispatch", "parent": 299, "children": [301, 302], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 32}}, {"id": 301, "type": "!", "text": "!", "parent": 300, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 9}}, {"id": 302, "type": "field_expression", "text": "ctx.is_command_dispatch", "parent": 300, "children": [303, 304], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 32}}, {"id": 303, "type": "identifier", "text": "ctx", "parent": 302, "children": [], "start_point": {"row": 133, "column": 9}, "end_point": {"row": 133, "column": 12}}, {"id": 304, "type": "field_identifier", "text": "is_command_dispatch", "parent": 302, "children": [], "start_point": {"row": 133, "column": 13}, "end_point": {"row": 133, "column": 32}}, {"id": 305, "type": "call_expression", "text": "LOG_WARN(\"Generating cpHash. Exiting without executing clear.\")", "parent": 298, "children": [306, 307], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 71}}, {"id": 306, "type": "identifier", "text": "LOG_WARN", "parent": 305, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 16}}, {"id": 307, "type": "argument_list", "text": "(\"Generating cpHash. Exiting without executing clear.\")", "parent": 305, "children": [308], "start_point": {"row": 134, "column": 16}, "end_point": {"row": 134, "column": 71}}, {"id": 308, "type": "string_literal", "text": "\"Generating cpHash. Exiting without executing clear.\"", "parent": 307, "children": [], "start_point": {"row": 134, "column": 17}, "end_point": {"row": 134, "column": 70}}, {"id": 309, "type": "return_statement", "text": "return tool_rc_success;", "parent": 272, "children": [310], "start_point": {"row": 137, "column": 4}, "end_point": {"row": 137, "column": 27}}, {"id": 310, "type": "identifier", "text": "tool_rc_success", "parent": 309, "children": [], "start_point": {"row": 137, "column": 11}, "end_point": {"row": 137, "column": 26}}, {"id": 311, "type": "function_definition", "text": "static bool on_arg(int argc, char **argv) {\n\n if (argc > 1) {\n LOG_ERR(\"Specify a single auth value\");\n return false;\n }\n\n /*\n * empty auth\n */\n if (!argc) {\n return true;\n }\n\n ctx.auth_hierarchy.auth_str = argv[0];\n\n return true;\n}", "parent": null, "children": [312, 313], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 157, "column": 1}}, {"id": 312, "type": "primitive_type", "text": "bool", "parent": 311, "children": [], "start_point": {"row": 140, "column": 7}, "end_point": {"row": 140, "column": 11}}, {"id": 313, "type": "function_declarator", "text": "on_arg(int argc, char **argv)", "parent": 311, "children": [314, 315], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 41}}, {"id": 314, "type": "identifier", "text": "on_arg", "parent": 313, "children": [], "start_point": {"row": 140, "column": 12}, "end_point": {"row": 140, "column": 18}}, {"id": 315, "type": "parameter_list", "text": "(int argc, char **argv)", "parent": 313, "children": [316, 319], "start_point": {"row": 140, "column": 18}, "end_point": {"row": 140, "column": 41}}, {"id": 316, "type": "parameter_declaration", "text": "int argc", "parent": 315, "children": [317, 318], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 27}}, {"id": 317, "type": "primitive_type", "text": "int", "parent": 316, "children": [], "start_point": {"row": 140, "column": 19}, "end_point": {"row": 140, "column": 22}}, {"id": 318, "type": "identifier", "text": "argc", "parent": 316, "children": [], "start_point": {"row": 140, "column": 23}, "end_point": {"row": 140, "column": 27}}, {"id": 319, "type": "parameter_declaration", "text": "char **argv", "parent": 315, "children": [320, 321], "start_point": {"row": 140, "column": 29}, "end_point": {"row": 140, "column": 40}}, {"id": 320, "type": "primitive_type", "text": "char", "parent": 319, "children": [], "start_point": {"row": 140, "column": 29}, "end_point": {"row": 140, "column": 33}}, {"id": 321, "type": "pointer_declarator", "text": "**argv", "parent": 319, "children": [322, 323], "start_point": {"row": 140, "column": 34}, "end_point": {"row": 140, "column": 40}}, {"id": 322, "type": "*", "text": "*", "parent": 321, "children": [], "start_point": {"row": 140, "column": 34}, "end_point": {"row": 140, "column": 35}}, {"id": 323, "type": "pointer_declarator", "text": "*argv", "parent": 321, "children": [324, 325], "start_point": {"row": 140, "column": 35}, "end_point": {"row": 140, "column": 40}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 140, "column": 35}, "end_point": {"row": 140, "column": 36}}, {"id": 325, "type": "identifier", "text": "argv", "parent": 323, "children": [], "start_point": {"row": 140, "column": 36}, "end_point": {"row": 140, "column": 40}}, {"id": 326, "type": "if_statement", "text": "if (argc > 1) {\n LOG_ERR(\"Specify a single auth value\");\n return false;\n }", "parent": 311, "children": [327], "start_point": {"row": 142, "column": 4}, "end_point": {"row": 145, "column": 5}}, {"id": 327, "type": "parenthesized_expression", "text": "(argc > 1)", "parent": 326, "children": [328], "start_point": {"row": 142, "column": 7}, "end_point": {"row": 142, "column": 17}}, {"id": 328, "type": "binary_expression", "text": "argc > 1", "parent": 327, "children": [329, 330, 331], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 16}}, {"id": 329, "type": "identifier", "text": "argc", "parent": 328, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 12}}, {"id": 330, "type": ">", "text": ">", "parent": 328, "children": [], "start_point": {"row": 142, "column": 13}, "end_point": {"row": 142, "column": 14}}, {"id": 331, "type": "number_literal", "text": "1", "parent": 328, "children": [], "start_point": {"row": 142, "column": 15}, "end_point": {"row": 142, "column": 16}}, {"id": 332, "type": "call_expression", "text": "LOG_ERR(\"Specify a single auth value\")", "parent": 326, "children": [333, 334], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 46}}, {"id": 333, "type": "identifier", "text": "LOG_ERR", "parent": 332, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 15}}, {"id": 334, "type": "argument_list", "text": "(\"Specify a single auth value\")", "parent": 332, "children": [335], "start_point": {"row": 143, "column": 15}, "end_point": {"row": 143, "column": 46}}, {"id": 335, "type": "string_literal", "text": "\"Specify a single auth value\"", "parent": 334, "children": [], "start_point": {"row": 143, "column": 16}, "end_point": {"row": 143, "column": 45}}, {"id": 336, "type": "return_statement", "text": "return false;", "parent": 326, "children": [337], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 21}}, {"id": 337, "type": "false", "text": "false", "parent": 336, "children": [], "start_point": {"row": 144, "column": 15}, "end_point": {"row": 144, "column": 20}}, {"id": 338, "type": "if_statement", "text": "if (!argc) {\n return true;\n }", "parent": 311, "children": [339], "start_point": {"row": 150, "column": 4}, "end_point": {"row": 152, "column": 5}}, {"id": 339, "type": "parenthesized_expression", "text": "(!argc)", "parent": 338, "children": [340], "start_point": {"row": 150, "column": 7}, "end_point": {"row": 150, "column": 14}}, {"id": 340, "type": "unary_expression", "text": "!argc", "parent": 339, "children": [341, 342], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 13}}, {"id": 341, "type": "!", "text": "!", "parent": 340, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 9}}, {"id": 342, "type": "identifier", "text": "argc", "parent": 340, "children": [], "start_point": {"row": 150, "column": 9}, "end_point": {"row": 150, "column": 13}}, {"id": 343, "type": "return_statement", "text": "return true;", "parent": 338, "children": [344], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 20}}, {"id": 344, "type": "true", "text": "true", "parent": 343, "children": [], "start_point": {"row": 151, "column": 15}, "end_point": {"row": 151, "column": 19}}, {"id": 345, "type": "assignment_expression", "text": "ctx.auth_hierarchy.auth_str = argv[0]", "parent": 311, "children": [346, 351, 352], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 41}}, {"id": 346, "type": "field_expression", "text": "ctx.auth_hierarchy.auth_str", "parent": 345, "children": [347, 350], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 31}}, {"id": 347, "type": "field_expression", "text": "ctx.auth_hierarchy", "parent": 346, "children": [348, 349], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 22}}, {"id": 348, "type": "identifier", "text": "ctx", "parent": 347, "children": [], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 154, "column": 7}}, {"id": 349, "type": "field_identifier", "text": "auth_hierarchy", "parent": 347, "children": [], "start_point": {"row": 154, "column": 8}, "end_point": {"row": 154, "column": 22}}, {"id": 350, "type": "field_identifier", "text": "auth_str", "parent": 346, "children": [], "start_point": {"row": 154, "column": 23}, "end_point": {"row": 154, "column": 31}}, {"id": 351, "type": "=", "text": "=", "parent": 345, "children": [], "start_point": {"row": 154, "column": 32}, "end_point": {"row": 154, "column": 33}}, {"id": 352, "type": "subscript_expression", "text": "argv[0]", "parent": 345, "children": [353, 354], "start_point": {"row": 154, "column": 34}, "end_point": {"row": 154, "column": 41}}, {"id": 353, "type": "identifier", "text": "argv", "parent": 352, "children": [], "start_point": {"row": 154, "column": 34}, "end_point": {"row": 154, "column": 38}}, {"id": 354, "type": "number_literal", "text": "0", "parent": 352, "children": [], "start_point": {"row": 154, "column": 39}, "end_point": {"row": 154, "column": 40}}, {"id": 355, "type": "return_statement", "text": "return true;", "parent": 311, "children": [356], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 156, "column": 16}}, {"id": 356, "type": "true", "text": "true", "parent": 355, "children": [], "start_point": {"row": 156, "column": 11}, "end_point": {"row": 156, "column": 15}}, {"id": 357, "type": "function_definition", "text": "static bool on_option(char key, char *value) {\n\n switch (key) {\n case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;\n case 0:\n ctx.cp_hash_path = value;\n break;\n }\n\n return true;\n}", "parent": null, "children": [358, 359], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 171, "column": 1}}, {"id": 358, "type": "primitive_type", "text": "bool", "parent": 357, "children": [], "start_point": {"row": 159, "column": 7}, "end_point": {"row": 159, "column": 11}}, {"id": 359, "type": "function_declarator", "text": "on_option(char key, char *value)", "parent": 357, "children": [360, 361], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 44}}, {"id": 360, "type": "identifier", "text": "on_option", "parent": 359, "children": [], "start_point": {"row": 159, "column": 12}, "end_point": {"row": 159, "column": 21}}, {"id": 361, "type": "parameter_list", "text": "(char key, char *value)", "parent": 359, "children": [362, 365], "start_point": {"row": 159, "column": 21}, "end_point": {"row": 159, "column": 44}}, {"id": 362, "type": "parameter_declaration", "text": "char key", "parent": 361, "children": [363, 364], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 30}}, {"id": 363, "type": "primitive_type", "text": "char", "parent": 362, "children": [], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 26}}, {"id": 364, "type": "identifier", "text": "key", "parent": 362, "children": [], "start_point": {"row": 159, "column": 27}, "end_point": {"row": 159, "column": 30}}, {"id": 365, "type": "parameter_declaration", "text": "char *value", "parent": 361, "children": [366, 367], "start_point": {"row": 159, "column": 32}, "end_point": {"row": 159, "column": 43}}, {"id": 366, "type": "primitive_type", "text": "char", "parent": 365, "children": [], "start_point": {"row": 159, "column": 32}, "end_point": {"row": 159, "column": 36}}, {"id": 367, "type": "pointer_declarator", "text": "*value", "parent": 365, "children": [368, 369], "start_point": {"row": 159, "column": 37}, "end_point": {"row": 159, "column": 43}}, {"id": 368, "type": "*", "text": "*", "parent": 367, "children": [], "start_point": {"row": 159, "column": 37}, "end_point": {"row": 159, "column": 38}}, {"id": 369, "type": "identifier", "text": "value", "parent": 367, "children": [], "start_point": {"row": 159, "column": 38}, "end_point": {"row": 159, "column": 43}}, {"id": 370, "type": "switch_statement", "text": "switch (key) {\n case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;\n case 0:\n ctx.cp_hash_path = value;\n break;\n }", "parent": 357, "children": [371, 372], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 168, "column": 5}}, {"id": 371, "type": "switch", "text": "switch", "parent": 370, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 10}}, {"id": 372, "type": "parenthesized_expression", "text": "(key)", "parent": 370, "children": [373], "start_point": {"row": 161, "column": 11}, "end_point": {"row": 161, "column": 16}}, {"id": 373, "type": "identifier", "text": "key", "parent": 372, "children": [], "start_point": {"row": 161, "column": 12}, "end_point": {"row": 161, "column": 15}}, {"id": 374, "type": "case_statement", "text": "case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;", "parent": 370, "children": [375, 376, 388], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 164, "column": 14}}, {"id": 375, "type": "case", "text": "case", "parent": 374, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 8}}, {"id": 376, "type": "char_literal", "text": "'c'", "parent": 374, "children": [377, 378, 379], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 12}}, {"id": 377, "type": "'", "text": "'", "parent": 376, "children": [], "start_point": {"row": 162, "column": 9}, "end_point": {"row": 162, "column": 10}}, {"id": 378, "type": "character", "text": "c", "parent": 376, "children": [], "start_point": {"row": 162, "column": 10}, "end_point": {"row": 162, "column": 11}}, {"id": 379, "type": "'", "text": "'", "parent": 376, "children": [], "start_point": {"row": 162, "column": 11}, "end_point": {"row": 162, "column": 12}}, {"id": 380, "type": "assignment_expression", "text": "ctx.auth_hierarchy.ctx_path = value", "parent": 374, "children": [381, 386, 387], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 43}}, {"id": 381, "type": "field_expression", "text": "ctx.auth_hierarchy.ctx_path", "parent": 380, "children": [382, 385], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 35}}, {"id": 382, "type": "field_expression", "text": "ctx.auth_hierarchy", "parent": 381, "children": [383, 384], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 26}}, {"id": 383, "type": "identifier", "text": "ctx", "parent": 382, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 11}}, {"id": 384, "type": "field_identifier", "text": "auth_hierarchy", "parent": 382, "children": [], "start_point": {"row": 163, "column": 12}, "end_point": {"row": 163, "column": 26}}, {"id": 385, "type": "field_identifier", "text": "ctx_path", "parent": 381, "children": [], "start_point": {"row": 163, "column": 27}, "end_point": {"row": 163, "column": 35}}, {"id": 386, "type": "=", "text": "=", "parent": 380, "children": [], "start_point": {"row": 163, "column": 36}, "end_point": {"row": 163, "column": 37}}, {"id": 387, "type": "identifier", "text": "value", "parent": 380, "children": [], "start_point": {"row": 163, "column": 38}, "end_point": {"row": 163, "column": 43}}, {"id": 388, "type": "break_statement", "text": "break;", "parent": 374, "children": [389], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 14}}, {"id": 389, "type": "break", "text": "break", "parent": 388, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 13}}, {"id": 390, "type": "case_statement", "text": "case 0:\n ctx.cp_hash_path = value;\n break;", "parent": 370, "children": [391, 392, 399], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 167, "column": 14}}, {"id": 391, "type": "case", "text": "case", "parent": 390, "children": [], "start_point": {"row": 165, "column": 4}, "end_point": {"row": 165, "column": 8}}, {"id": 392, "type": "number_literal", "text": "0", "parent": 390, "children": [], "start_point": {"row": 165, "column": 9}, "end_point": {"row": 165, "column": 10}}, {"id": 393, "type": "assignment_expression", "text": "ctx.cp_hash_path = value", "parent": 390, "children": [394, 397, 398], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 32}}, {"id": 394, "type": "field_expression", "text": "ctx.cp_hash_path", "parent": 393, "children": [395, 396], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 24}}, {"id": 395, "type": "identifier", "text": "ctx", "parent": 394, "children": [], "start_point": {"row": 166, "column": 8}, "end_point": {"row": 166, "column": 11}}, {"id": 396, "type": "field_identifier", "text": "cp_hash_path", "parent": 394, "children": [], "start_point": {"row": 166, "column": 12}, "end_point": {"row": 166, "column": 24}}, {"id": 397, "type": "=", "text": "=", "parent": 393, "children": [], "start_point": {"row": 166, "column": 25}, "end_point": {"row": 166, "column": 26}}, {"id": 398, "type": "identifier", "text": "value", "parent": 393, "children": [], "start_point": {"row": 166, "column": 27}, "end_point": {"row": 166, "column": 32}}, {"id": 399, "type": "break_statement", "text": "break;", "parent": 390, "children": [400], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 14}}, {"id": 400, "type": "break", "text": "break", "parent": 399, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 13}}, {"id": 401, "type": "return_statement", "text": "return true;", "parent": 357, "children": [402], "start_point": {"row": 170, "column": 4}, "end_point": {"row": 170, "column": 16}}, {"id": 402, "type": "true", "text": "true", "parent": 401, "children": [], "start_point": {"row": 170, "column": 11}, "end_point": {"row": 170, "column": 15}}, {"id": 403, "type": "function_definition", "text": "static bool tpm2_tool_onstart(tpm2_options **opts) {\n\n const struct option topts[] = {\n { \"auth-hierarchy\", required_argument, 0, 'c' },\n { \"cphash\", required_argument, 0, 0 },\n };\n\n *opts = tpm2_options_new(\"c:\", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0);\n\n return *opts != 0;\n}", "parent": null, "children": [404, 405], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 184, "column": 1}}, {"id": 404, "type": "primitive_type", "text": "bool", "parent": 403, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 11}}, {"id": 405, "type": "function_declarator", "text": "tpm2_tool_onstart(tpm2_options **opts)", "parent": 403, "children": [406, 407], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 50}}, {"id": 406, "type": "identifier", "text": "tpm2_tool_onstart", "parent": 405, "children": [], "start_point": {"row": 173, "column": 12}, "end_point": {"row": 173, "column": 29}}, {"id": 407, "type": "parameter_list", "text": "(tpm2_options **opts)", "parent": 405, "children": [408], "start_point": {"row": 173, "column": 29}, "end_point": {"row": 173, "column": 50}}, {"id": 408, "type": "parameter_declaration", "text": "tpm2_options **opts", "parent": 407, "children": [409, 410], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 49}}, {"id": 409, "type": "type_identifier", "text": "tpm2_options", "parent": 408, "children": [], "start_point": {"row": 173, "column": 30}, "end_point": {"row": 173, "column": 42}}, {"id": 410, "type": "pointer_declarator", "text": "**opts", "parent": 408, "children": [411, 412], "start_point": {"row": 173, "column": 43}, "end_point": {"row": 173, "column": 49}}, {"id": 411, "type": "*", "text": "*", "parent": 410, "children": [], "start_point": {"row": 173, "column": 43}, "end_point": {"row": 173, "column": 44}}, {"id": 412, "type": "pointer_declarator", "text": "*opts", "parent": 410, "children": [413, 414], "start_point": {"row": 173, "column": 44}, "end_point": {"row": 173, "column": 49}}, {"id": 413, "type": "*", "text": "*", "parent": 412, "children": [], "start_point": {"row": 173, "column": 44}, "end_point": {"row": 173, "column": 45}}, {"id": 414, "type": "identifier", "text": "opts", "parent": 412, "children": [], "start_point": {"row": 173, "column": 45}, "end_point": {"row": 173, "column": 49}}, {"id": 415, "type": "declaration", "text": "const struct option topts[] = {\n { \"auth-hierarchy\", required_argument, 0, 'c' },\n { \"cphash\", required_argument, 0, 0 },\n };", "parent": 403, "children": [416, 419], "start_point": {"row": 175, "column": 4}, "end_point": {"row": 178, "column": 6}}, {"id": 416, "type": "struct_specifier", "text": "struct option", "parent": 415, "children": [417, 418], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 23}}, {"id": 417, "type": "struct", "text": "struct", "parent": 416, "children": [], "start_point": {"row": 175, "column": 10}, "end_point": {"row": 175, "column": 16}}, {"id": 418, "type": "type_identifier", "text": "option", "parent": 416, "children": [], "start_point": {"row": 175, "column": 17}, "end_point": {"row": 175, "column": 23}}, {"id": 419, "type": "init_declarator", "text": "topts[] = {\n { \"auth-hierarchy\", required_argument, 0, 'c' },\n { \"cphash\", required_argument, 0, 0 },\n }", "parent": 415, "children": [420, 422, 423], "start_point": {"row": 175, "column": 24}, "end_point": {"row": 178, "column": 5}}, {"id": 420, "type": "array_declarator", "text": "topts[]", "parent": 419, "children": [421], "start_point": {"row": 175, "column": 24}, "end_point": {"row": 175, "column": 31}}, {"id": 421, "type": "identifier", "text": "topts", "parent": 420, "children": [], "start_point": {"row": 175, "column": 24}, "end_point": {"row": 175, "column": 29}}, {"id": 422, "type": "=", "text": "=", "parent": 419, "children": [], "start_point": {"row": 175, "column": 32}, "end_point": {"row": 175, "column": 33}}, {"id": 423, "type": "initializer_list", "text": "{\n { \"auth-hierarchy\", required_argument, 0, 'c' },\n { \"cphash\", required_argument, 0, 0 },\n }", "parent": 419, "children": [424, 432], "start_point": {"row": 175, "column": 34}, "end_point": {"row": 178, "column": 5}}, {"id": 424, "type": "initializer_list", "text": "{ \"auth-hierarchy\", required_argument, 0, 'c' }", "parent": 423, "children": [425, 426, 427, 428], "start_point": {"row": 176, "column": 8}, "end_point": {"row": 176, "column": 55}}, {"id": 425, "type": "string_literal", "text": "\"auth-hierarchy\"", "parent": 424, "children": [], "start_point": {"row": 176, "column": 10}, "end_point": {"row": 176, "column": 26}}, {"id": 426, "type": "identifier", "text": "required_argument", "parent": 424, "children": [], "start_point": {"row": 176, "column": 28}, "end_point": {"row": 176, "column": 45}}, {"id": 427, "type": "number_literal", "text": "0", "parent": 424, "children": [], "start_point": {"row": 176, "column": 47}, "end_point": {"row": 176, "column": 48}}, {"id": 428, "type": "char_literal", "text": "'c'", "parent": 424, "children": [429, 430, 431], "start_point": {"row": 176, "column": 50}, "end_point": {"row": 176, "column": 53}}, {"id": 429, "type": "'", "text": "'", "parent": 428, "children": [], "start_point": {"row": 176, "column": 50}, "end_point": {"row": 176, "column": 51}}, {"id": 430, "type": "character", "text": "c", "parent": 428, "children": [], "start_point": {"row": 176, "column": 51}, "end_point": {"row": 176, "column": 52}}, {"id": 431, "type": "'", "text": "'", "parent": 428, "children": [], "start_point": {"row": 176, "column": 52}, "end_point": {"row": 176, "column": 53}}, {"id": 432, "type": "initializer_list", "text": "{ \"cphash\", required_argument, 0, 0 }", "parent": 423, "children": [433, 434, 435, 436], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 55}}, {"id": 433, "type": "string_literal", "text": "\"cphash\"", "parent": 432, "children": [], "start_point": {"row": 177, "column": 10}, "end_point": {"row": 177, "column": 18}}, {"id": 434, "type": "identifier", "text": "required_argument", "parent": 432, "children": [], "start_point": {"row": 177, "column": 28}, "end_point": {"row": 177, "column": 45}}, {"id": 435, "type": "number_literal", "text": "0", "parent": 432, "children": [], "start_point": {"row": 177, "column": 47}, "end_point": {"row": 177, "column": 48}}, {"id": 436, "type": "number_literal", "text": "0", "parent": 432, "children": [], "start_point": {"row": 177, "column": 51}, "end_point": {"row": 177, "column": 52}}, {"id": 437, "type": "assignment_expression", "text": "*opts = tpm2_options_new(\"c:\", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0)", "parent": 403, "children": [438, 441, 442], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 181, "column": 14}}, {"id": 438, "type": "pointer_expression", "text": "*opts", "parent": 437, "children": [439, 440], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 9}}, {"id": 439, "type": "*", "text": "*", "parent": 438, "children": [], "start_point": {"row": 180, "column": 4}, "end_point": {"row": 180, "column": 5}}, {"id": 440, "type": "identifier", "text": "opts", "parent": 438, "children": [], "start_point": {"row": 180, "column": 5}, "end_point": {"row": 180, "column": 9}}, {"id": 441, "type": "=", "text": "=", "parent": 437, "children": [], "start_point": {"row": 180, "column": 10}, "end_point": {"row": 180, "column": 11}}, {"id": 442, "type": "call_expression", "text": "tpm2_options_new(\"c:\", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0)", "parent": 437, "children": [443, 444], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 181, "column": 14}}, {"id": 443, "type": "identifier", "text": "tpm2_options_new", "parent": 442, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 28}}, {"id": 444, "type": "argument_list", "text": "(\"c:\", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0)", "parent": 442, "children": [445, 446, 450, 451, 452, 453], "start_point": {"row": 180, "column": 28}, "end_point": {"row": 181, "column": 14}}, {"id": 445, "type": "string_literal", "text": "\"c:\"", "parent": 444, "children": [], "start_point": {"row": 180, "column": 29}, "end_point": {"row": 180, "column": 33}}, {"id": 446, "type": "call_expression", "text": "ARRAY_LEN(topts)", "parent": 444, "children": [447, 448], "start_point": {"row": 180, "column": 35}, "end_point": {"row": 180, "column": 51}}, {"id": 447, "type": "identifier", "text": "ARRAY_LEN", "parent": 446, "children": [], "start_point": {"row": 180, "column": 35}, "end_point": {"row": 180, "column": 44}}, {"id": 448, "type": "argument_list", "text": "(topts)", "parent": 446, "children": [449], "start_point": {"row": 180, "column": 44}, "end_point": {"row": 180, "column": 51}}, {"id": 449, "type": "identifier", "text": "topts", "parent": 448, "children": [], "start_point": {"row": 180, "column": 45}, "end_point": {"row": 180, "column": 50}}, {"id": 450, "type": "identifier", "text": "topts", "parent": 444, "children": [], "start_point": {"row": 180, "column": 53}, "end_point": {"row": 180, "column": 58}}, {"id": 451, "type": "identifier", "text": "on_option", "parent": 444, "children": [], "start_point": {"row": 180, "column": 60}, "end_point": {"row": 180, "column": 69}}, {"id": 452, "type": "identifier", "text": "on_arg", "parent": 444, "children": [], "start_point": {"row": 180, "column": 71}, "end_point": {"row": 180, "column": 77}}, {"id": 453, "type": "number_literal", "text": "0", "parent": 444, "children": [], "start_point": {"row": 181, "column": 12}, "end_point": {"row": 181, "column": 13}}, {"id": 454, "type": "return_statement", "text": "return *opts != 0;", "parent": 403, "children": [455], "start_point": {"row": 183, "column": 4}, "end_point": {"row": 183, "column": 22}}, {"id": 455, "type": "binary_expression", "text": "*opts != 0", "parent": 454, "children": [456, 459, 460], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 21}}, {"id": 456, "type": "pointer_expression", "text": "*opts", "parent": 455, "children": [457, 458], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 16}}, {"id": 457, "type": "*", "text": "*", "parent": 456, "children": [], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 12}}, {"id": 458, "type": "identifier", "text": "opts", "parent": 456, "children": [], "start_point": {"row": 183, "column": 12}, "end_point": {"row": 183, "column": 16}}, {"id": 459, "type": "!=", "text": "!=", "parent": 455, "children": [], "start_point": {"row": 183, "column": 17}, "end_point": {"row": 183, "column": 19}}, {"id": 460, "type": "number_literal", "text": "0", "parent": 455, "children": [], "start_point": {"row": 183, "column": 20}, "end_point": {"row": 183, "column": 21}}, {"id": 461, "type": "function_definition", "text": "static tool_rc tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags) {\n\n UNUSED(flags);\n\n /*\n * 1. Process options\n */\n tool_rc rc = check_options(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 2. Process inputs\n */\n rc = process_inputs(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 3. TPM2_CC_<command> call\n */\n rc = clear(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 4. Process outputs\n */\n return process_output(ectx);\n}", "parent": null, "children": [462, 463], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 218, "column": 1}}, {"id": 462, "type": "type_identifier", "text": "tool_rc", "parent": 461, "children": [], "start_point": {"row": 186, "column": 7}, "end_point": {"row": 186, "column": 14}}, {"id": 463, "type": "function_declarator", "text": "tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags)", "parent": 461, "children": [464, 465], "start_point": {"row": 186, "column": 15}, "end_point": {"row": 186, "column": 75}}, {"id": 464, "type": "identifier", "text": "tpm2_tool_onrun", "parent": 463, "children": [], "start_point": {"row": 186, "column": 15}, "end_point": {"row": 186, "column": 30}}, {"id": 465, "type": "parameter_list", "text": "(ESYS_CONTEXT *ectx, tpm2_option_flags flags)", "parent": 463, "children": [466, 471], "start_point": {"row": 186, "column": 30}, "end_point": {"row": 186, "column": 75}}, {"id": 466, "type": "parameter_declaration", "text": "ESYS_CONTEXT *ectx", "parent": 465, "children": [467, 468], "start_point": {"row": 186, "column": 31}, "end_point": {"row": 186, "column": 49}}, {"id": 467, "type": "type_identifier", "text": "ESYS_CONTEXT", "parent": 466, "children": [], "start_point": {"row": 186, "column": 31}, "end_point": {"row": 186, "column": 43}}, {"id": 468, "type": "pointer_declarator", "text": "*ectx", "parent": 466, "children": [469, 470], "start_point": {"row": 186, "column": 44}, "end_point": {"row": 186, "column": 49}}, {"id": 469, "type": "*", "text": "*", "parent": 468, "children": [], "start_point": {"row": 186, "column": 44}, "end_point": {"row": 186, "column": 45}}, {"id": 470, "type": "identifier", "text": "ectx", "parent": 468, "children": [], "start_point": {"row": 186, "column": 45}, "end_point": {"row": 186, "column": 49}}, {"id": 471, "type": "parameter_declaration", "text": "tpm2_option_flags flags", "parent": 465, "children": [472, 473], "start_point": {"row": 186, "column": 51}, "end_point": {"row": 186, "column": 74}}, {"id": 472, "type": "type_identifier", "text": "tpm2_option_flags", "parent": 471, "children": [], "start_point": {"row": 186, "column": 51}, "end_point": {"row": 186, "column": 68}}, {"id": 473, "type": "identifier", "text": "flags", "parent": 471, "children": [], "start_point": {"row": 186, "column": 69}, "end_point": {"row": 186, "column": 74}}, {"id": 474, "type": "call_expression", "text": "UNUSED(flags)", "parent": 461, "children": [475, 476], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 17}}, {"id": 475, "type": "identifier", "text": "UNUSED", "parent": 474, "children": [], "start_point": {"row": 188, "column": 4}, "end_point": {"row": 188, "column": 10}}, {"id": 476, "type": "argument_list", "text": "(flags)", "parent": 474, "children": [477], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 17}}, {"id": 477, "type": "identifier", "text": "flags", "parent": 476, "children": [], "start_point": {"row": 188, "column": 11}, "end_point": {"row": 188, "column": 16}}, {"id": 478, "type": "declaration", "text": "tool_rc rc = check_options(ectx);", "parent": 461, "children": [479, 480], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 37}}, {"id": 479, "type": "type_identifier", "text": "tool_rc", "parent": 478, "children": [], "start_point": {"row": 193, "column": 4}, "end_point": {"row": 193, "column": 11}}, {"id": 480, "type": "init_declarator", "text": "rc = check_options(ectx)", "parent": 478, "children": [481, 482, 483], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 36}}, {"id": 481, "type": "identifier", "text": "rc", "parent": 480, "children": [], "start_point": {"row": 193, "column": 12}, "end_point": {"row": 193, "column": 14}}, {"id": 482, "type": "=", "text": "=", "parent": 480, "children": [], "start_point": {"row": 193, "column": 15}, "end_point": {"row": 193, "column": 16}}, {"id": 483, "type": "call_expression", "text": "check_options(ectx)", "parent": 480, "children": [484, 485], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 36}}, {"id": 484, "type": "identifier", "text": "check_options", "parent": 483, "children": [], "start_point": {"row": 193, "column": 17}, "end_point": {"row": 193, "column": 30}}, {"id": 485, "type": "argument_list", "text": "(ectx)", "parent": 483, "children": [486], "start_point": {"row": 193, "column": 30}, "end_point": {"row": 193, "column": 36}}, {"id": 486, "type": "identifier", "text": "ectx", "parent": 485, "children": [], "start_point": {"row": 193, "column": 31}, "end_point": {"row": 193, "column": 35}}, {"id": 487, "type": "if_statement", "text": "if (rc != tool_rc_success) {\n return rc;\n }", "parent": 461, "children": [488], "start_point": {"row": 194, "column": 4}, "end_point": {"row": 196, "column": 5}}, {"id": 488, "type": "parenthesized_expression", "text": "(rc != tool_rc_success)", "parent": 487, "children": [489], "start_point": {"row": 194, "column": 7}, "end_point": {"row": 194, "column": 30}}, {"id": 489, "type": "binary_expression", "text": "rc != tool_rc_success", "parent": 488, "children": [490, 491, 492], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 29}}, {"id": 490, "type": "identifier", "text": "rc", "parent": 489, "children": [], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 10}}, {"id": 491, "type": "!=", "text": "!=", "parent": 489, "children": [], "start_point": {"row": 194, "column": 11}, "end_point": {"row": 194, "column": 13}}, {"id": 492, "type": "identifier", "text": "tool_rc_success", "parent": 489, "children": [], "start_point": {"row": 194, "column": 14}, "end_point": {"row": 194, "column": 29}}, {"id": 493, "type": "return_statement", "text": "return rc;", "parent": 487, "children": [494], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 18}}, {"id": 494, "type": "identifier", "text": "rc", "parent": 493, "children": [], "start_point": {"row": 195, "column": 15}, "end_point": {"row": 195, "column": 17}}, {"id": 495, "type": "assignment_expression", "text": "rc = process_inputs(ectx)", "parent": 461, "children": [496, 497, 498], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 29}}, {"id": 496, "type": "identifier", "text": "rc", "parent": 495, "children": [], "start_point": {"row": 201, "column": 4}, "end_point": {"row": 201, "column": 6}}, {"id": 497, "type": "=", "text": "=", "parent": 495, "children": [], "start_point": {"row": 201, "column": 7}, "end_point": {"row": 201, "column": 8}}, {"id": 498, "type": "call_expression", "text": "process_inputs(ectx)", "parent": 495, "children": [499, 500], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 29}}, {"id": 499, "type": "identifier", "text": "process_inputs", "parent": 498, "children": [], "start_point": {"row": 201, "column": 9}, "end_point": {"row": 201, "column": 23}}, {"id": 500, "type": "argument_list", "text": "(ectx)", "parent": 498, "children": [501], "start_point": {"row": 201, "column": 23}, "end_point": {"row": 201, "column": 29}}, {"id": 501, "type": "identifier", "text": "ectx", "parent": 500, "children": [], "start_point": {"row": 201, "column": 24}, "end_point": {"row": 201, "column": 28}}, {"id": 502, "type": "if_statement", "text": "if (rc != tool_rc_success) {\n return rc;\n }", "parent": 461, "children": [503], "start_point": {"row": 202, "column": 4}, "end_point": {"row": 204, "column": 5}}, {"id": 503, "type": "parenthesized_expression", "text": "(rc != tool_rc_success)", "parent": 502, "children": [504], "start_point": {"row": 202, "column": 7}, "end_point": {"row": 202, "column": 30}}, {"id": 504, "type": "binary_expression", "text": "rc != tool_rc_success", "parent": 503, "children": [505, 506, 507], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 29}}, {"id": 505, "type": "identifier", "text": "rc", "parent": 504, "children": [], "start_point": {"row": 202, "column": 8}, "end_point": {"row": 202, "column": 10}}, {"id": 506, "type": "!=", "text": "!=", "parent": 504, "children": [], "start_point": {"row": 202, "column": 11}, "end_point": {"row": 202, "column": 13}}, {"id": 507, "type": "identifier", "text": "tool_rc_success", "parent": 504, "children": [], "start_point": {"row": 202, "column": 14}, "end_point": {"row": 202, "column": 29}}, {"id": 508, "type": "return_statement", "text": "return rc;", "parent": 502, "children": [509], "start_point": {"row": 203, "column": 8}, "end_point": {"row": 203, "column": 18}}, {"id": 509, "type": "identifier", "text": "rc", "parent": 508, "children": [], "start_point": {"row": 203, "column": 15}, "end_point": {"row": 203, "column": 17}}, {"id": 510, "type": "assignment_expression", "text": "rc = clear(ectx)", "parent": 461, "children": [511, 512, 513], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 20}}, {"id": 511, "type": "identifier", "text": "rc", "parent": 510, "children": [], "start_point": {"row": 209, "column": 4}, "end_point": {"row": 209, "column": 6}}, {"id": 512, "type": "=", "text": "=", "parent": 510, "children": [], "start_point": {"row": 209, "column": 7}, "end_point": {"row": 209, "column": 8}}, {"id": 513, "type": "call_expression", "text": "clear(ectx)", "parent": 510, "children": [514, 515], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 20}}, {"id": 514, "type": "identifier", "text": "clear", "parent": 513, "children": [], "start_point": {"row": 209, "column": 9}, "end_point": {"row": 209, "column": 14}}, {"id": 515, "type": "argument_list", "text": "(ectx)", "parent": 513, "children": [516], "start_point": {"row": 209, "column": 14}, "end_point": {"row": 209, "column": 20}}, {"id": 516, "type": "identifier", "text": "ectx", "parent": 515, "children": [], "start_point": {"row": 209, "column": 15}, "end_point": {"row": 209, "column": 19}}, {"id": 517, "type": "if_statement", "text": "if (rc != tool_rc_success) {\n return rc;\n }", "parent": 461, "children": [518], "start_point": {"row": 210, "column": 4}, "end_point": {"row": 212, "column": 5}}, {"id": 518, "type": "parenthesized_expression", "text": "(rc != tool_rc_success)", "parent": 517, "children": [519], "start_point": {"row": 210, "column": 7}, "end_point": {"row": 210, "column": 30}}, {"id": 519, "type": "binary_expression", "text": "rc != tool_rc_success", "parent": 518, "children": [520, 521, 522], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 29}}, {"id": 520, "type": "identifier", "text": "rc", "parent": 519, "children": [], "start_point": {"row": 210, "column": 8}, "end_point": {"row": 210, "column": 10}}, {"id": 521, "type": "!=", "text": "!=", "parent": 519, "children": [], "start_point": {"row": 210, "column": 11}, "end_point": {"row": 210, "column": 13}}, {"id": 522, "type": "identifier", "text": "tool_rc_success", "parent": 519, "children": [], "start_point": {"row": 210, "column": 14}, "end_point": {"row": 210, "column": 29}}, {"id": 523, "type": "return_statement", "text": "return rc;", "parent": 517, "children": [524], "start_point": {"row": 211, "column": 8}, "end_point": {"row": 211, "column": 18}}, {"id": 524, "type": "identifier", "text": "rc", "parent": 523, "children": [], "start_point": {"row": 211, "column": 15}, "end_point": {"row": 211, "column": 17}}, {"id": 525, "type": "return_statement", "text": "return process_output(ectx);", "parent": 461, "children": [526], "start_point": {"row": 217, "column": 4}, "end_point": {"row": 217, "column": 32}}, {"id": 526, "type": "call_expression", "text": "process_output(ectx)", "parent": 525, "children": [527, 528], "start_point": {"row": 217, "column": 11}, "end_point": {"row": 217, "column": 31}}, {"id": 527, "type": "identifier", "text": "process_output", "parent": 526, "children": [], "start_point": {"row": 217, "column": 11}, "end_point": {"row": 217, "column": 25}}, {"id": 528, "type": "argument_list", "text": "(ectx)", "parent": 526, "children": [529], "start_point": {"row": 217, "column": 25}, "end_point": {"row": 217, "column": 31}}, {"id": 529, "type": "identifier", "text": "ectx", "parent": 528, "children": [], "start_point": {"row": 217, "column": 26}, "end_point": {"row": 217, "column": 30}}, {"id": 530, "type": "function_definition", "text": "static tool_rc tpm2_tool_onstop(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 1. Free objects\n */\n\n /*\n * 2. Close authorization sessions\n */\n tool_rc rc = tpm2_session_close(&ctx.auth_hierarchy.object.session);\n\n /*\n * 3. Close auxiliary sessions\n */\n\n return rc;\n}", "parent": null, "children": [531, 532], "start_point": {"row": 220, "column": 0}, "end_point": {"row": 238, "column": 1}}, {"id": 531, "type": "type_identifier", "text": "tool_rc", "parent": 530, "children": [], "start_point": {"row": 220, "column": 7}, "end_point": {"row": 220, "column": 14}}, {"id": 532, "type": "function_declarator", "text": "tpm2_tool_onstop(ESYS_CONTEXT *ectx)", "parent": 530, "children": [533, 534], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 51}}, {"id": 533, "type": "identifier", "text": "tpm2_tool_onstop", "parent": 532, "children": [], "start_point": {"row": 220, "column": 15}, "end_point": {"row": 220, "column": 31}}, {"id": 534, "type": "parameter_list", "text": "(ESYS_CONTEXT *ectx)", "parent": 532, "children": [535], "start_point": {"row": 220, "column": 31}, "end_point": {"row": 220, "column": 51}}, {"id": 535, "type": "parameter_declaration", "text": "ESYS_CONTEXT *ectx", "parent": 534, "children": [536, 537], "start_point": {"row": 220, "column": 32}, "end_point": {"row": 220, "column": 50}}, {"id": 536, "type": "type_identifier", "text": "ESYS_CONTEXT", "parent": 535, "children": [], "start_point": {"row": 220, "column": 32}, "end_point": {"row": 220, "column": 44}}, {"id": 537, "type": "pointer_declarator", "text": "*ectx", "parent": 535, "children": [538, 539], "start_point": {"row": 220, "column": 45}, "end_point": {"row": 220, "column": 50}}, {"id": 538, "type": "*", "text": "*", "parent": 537, "children": [], "start_point": {"row": 220, "column": 45}, "end_point": {"row": 220, "column": 46}}, {"id": 539, "type": "identifier", "text": "ectx", "parent": 537, "children": [], "start_point": {"row": 220, "column": 46}, "end_point": {"row": 220, "column": 50}}, {"id": 540, "type": "call_expression", "text": "UNUSED(ectx)", "parent": 530, "children": [541, 542], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 16}}, {"id": 541, "type": "identifier", "text": "UNUSED", "parent": 540, "children": [], "start_point": {"row": 222, "column": 4}, "end_point": {"row": 222, "column": 10}}, {"id": 542, "type": "argument_list", "text": "(ectx)", "parent": 540, "children": [543], "start_point": {"row": 222, "column": 10}, "end_point": {"row": 222, "column": 16}}, {"id": 543, "type": "identifier", "text": "ectx", "parent": 542, "children": [], "start_point": {"row": 222, "column": 11}, "end_point": {"row": 222, "column": 15}}, {"id": 544, "type": "declaration", "text": "tool_rc rc = tpm2_session_close(&ctx.auth_hierarchy.object.session);", "parent": 530, "children": [545, 546], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 72}}, {"id": 545, "type": "type_identifier", "text": "tool_rc", "parent": 544, "children": [], "start_point": {"row": 231, "column": 4}, "end_point": {"row": 231, "column": 11}}, {"id": 546, "type": "init_declarator", "text": "rc = tpm2_session_close(&ctx.auth_hierarchy.object.session)", "parent": 544, "children": [547, 548, 549], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 71}}, {"id": 547, "type": "identifier", "text": "rc", "parent": 546, "children": [], "start_point": {"row": 231, "column": 12}, "end_point": {"row": 231, "column": 14}}, {"id": 548, "type": "=", "text": "=", "parent": 546, "children": [], "start_point": {"row": 231, "column": 15}, "end_point": {"row": 231, "column": 16}}, {"id": 549, "type": "call_expression", "text": "tpm2_session_close(&ctx.auth_hierarchy.object.session)", "parent": 546, "children": [550, 551], "start_point": {"row": 231, "column": 17}, "end_point": {"row": 231, "column": 71}}, {"id": 550, "type": "identifier", "text": "tpm2_session_close", "parent": 549, "children": [], "start_point": {"row": 231, "column": 17}, "end_point": {"row": 231, "column": 35}}, {"id": 551, "type": "argument_list", "text": "(&ctx.auth_hierarchy.object.session)", "parent": 549, "children": [552], "start_point": {"row": 231, "column": 35}, "end_point": {"row": 231, "column": 71}}, {"id": 552, "type": "pointer_expression", "text": "&ctx.auth_hierarchy.object.session", "parent": 551, "children": [553], "start_point": {"row": 231, "column": 36}, "end_point": {"row": 231, "column": 70}}, {"id": 553, "type": "field_expression", "text": "ctx.auth_hierarchy.object.session", "parent": 552, "children": [554, 559], "start_point": {"row": 231, "column": 37}, "end_point": {"row": 231, "column": 70}}, {"id": 554, "type": "field_expression", "text": "ctx.auth_hierarchy.object", "parent": 553, "children": [555, 558], "start_point": {"row": 231, "column": 37}, "end_point": {"row": 231, "column": 62}}, {"id": 555, "type": "field_expression", "text": "ctx.auth_hierarchy", "parent": 554, "children": [556, 557], "start_point": {"row": 231, "column": 37}, "end_point": {"row": 231, "column": 55}}, {"id": 556, "type": "identifier", "text": "ctx", "parent": 555, "children": [], "start_point": {"row": 231, "column": 37}, "end_point": {"row": 231, "column": 40}}, {"id": 557, "type": "field_identifier", "text": "auth_hierarchy", "parent": 555, "children": [], "start_point": {"row": 231, "column": 41}, "end_point": {"row": 231, "column": 55}}, {"id": 558, "type": "field_identifier", "text": "object", "parent": 554, "children": [], "start_point": {"row": 231, "column": 56}, "end_point": {"row": 231, "column": 62}}, {"id": 559, "type": "field_identifier", "text": "session", "parent": 553, "children": [], "start_point": {"row": 231, "column": 63}, "end_point": {"row": 231, "column": 70}}, {"id": 560, "type": "return_statement", "text": "return rc;", "parent": 530, "children": [561], "start_point": {"row": 237, "column": 4}, "end_point": {"row": 237, "column": 14}}, {"id": 561, "type": "identifier", "text": "rc", "parent": 560, "children": [], "start_point": {"row": 237, "column": 11}, "end_point": {"row": 237, "column": 13}}, {"id": 562, "type": "call_expression", "text": "TPM2_TOOL_REGISTER(\"clear\", tpm2_tool_onstart, tpm2_tool_onrun,\n tpm2_tool_onstop, 0)", "parent": null, "children": [563, 564], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 242, "column": 24}}, {"id": 563, "type": "identifier", "text": "TPM2_TOOL_REGISTER", "parent": 562, "children": [], "start_point": {"row": 241, "column": 0}, "end_point": {"row": 241, "column": 18}}, {"id": 564, "type": "argument_list", "text": "(\"clear\", tpm2_tool_onstart, tpm2_tool_onrun,\n tpm2_tool_onstop, 0)", "parent": 562, "children": [565, 566, 567, 568, 569], "start_point": {"row": 241, "column": 18}, "end_point": {"row": 242, "column": 24}}, {"id": 565, "type": "string_literal", "text": "\"clear\"", "parent": 564, "children": [], "start_point": {"row": 241, "column": 19}, "end_point": {"row": 241, "column": 26}}, {"id": 566, "type": "identifier", "text": "tpm2_tool_onstart", "parent": 564, "children": [], "start_point": {"row": 241, "column": 28}, "end_point": {"row": 241, "column": 45}}, {"id": 567, "type": "identifier", "text": "tpm2_tool_onrun", "parent": 564, "children": [], "start_point": {"row": 241, "column": 47}, "end_point": {"row": 241, "column": 62}}, {"id": 568, "type": "identifier", "text": "tpm2_tool_onstop", "parent": 564, "children": [], "start_point": {"row": 242, "column": 4}, "end_point": {"row": 242, "column": 20}}, {"id": 569, "type": "number_literal", "text": "0", "parent": 564, "children": [], "start_point": {"row": 242, "column": 22}, "end_point": {"row": 242, "column": 23}}]}, "node_categories": {"declarations": {"functions": [74, 76, 102, 104, 164, 166, 272, 274, 311, 313, 357, 359, 403, 405, 461, 463, 530, 532], "variables": [16, 25, 28, 33, 38, 42, 47, 50, 53, 56, 79, 107, 116, 147, 169, 174, 215, 234, 277, 316, 319, 362, 365, 408, 415, 466, 471, 478, 535, 544], "classes": [18, 19, 22, 23, 26, 27, 416, 417], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [85, 89, 90, 91, 95, 96, 99, 112, 123, 124, 130, 133, 134, 137, 141, 142, 154, 155, 157, 179, 183, 184, 188, 189, 193, 194, 195, 200, 204, 205, 209, 225, 226, 227, 244, 248, 249, 254, 258, 263, 264, 282, 287, 292, 299, 300, 302, 305, 327, 328, 332, 339, 340, 346, 347, 352, 372, 381, 382, 394, 438, 442, 446, 455, 456, 474, 483, 488, 489, 498, 503, 504, 513, 518, 519, 526, 540, 549, 552, 553, 554, 555, 562], "assignments": [127, 253, 286, 345, 380, 393, 437, 495, 510], "loops": [], "conditionals": [14, 20, 21, 24, 32, 37, 39, 40, 41, 46, 48, 49, 52, 54, 55, 57, 59, 64, 66, 71, 73, 75, 77, 80, 83, 86, 88, 92, 93, 94, 97, 98, 100, 101, 103, 105, 108, 111, 113, 115, 119, 122, 125, 126, 128, 131, 135, 136, 138, 139, 140, 144, 146, 148, 150, 152, 153, 158, 159, 161, 163, 165, 167, 170, 173, 175, 177, 180, 182, 185, 186, 187, 190, 191, 192, 196, 197, 198, 201, 202, 203, 206, 208, 210, 214, 216, 221, 222, 228, 229, 230, 231, 241, 243, 245, 246, 250, 251, 255, 256, 259, 261, 262, 265, 266, 269, 271, 273, 275, 278, 281, 283, 285, 288, 289, 291, 293, 294, 298, 303, 304, 306, 310, 314, 318, 325, 326, 329, 333, 338, 342, 348, 349, 350, 353, 360, 364, 369, 370, 371, 373, 374, 375, 383, 384, 385, 387, 390, 391, 395, 396, 398, 406, 409, 414, 418, 421, 426, 434, 440, 443, 447, 449, 450, 451, 452, 458, 462, 464, 467, 470, 472, 473, 475, 477, 479, 481, 484, 486, 487, 490, 492, 494, 496, 499, 501, 502, 505, 507, 509, 511, 514, 516, 517, 520, 522, 524, 527, 529, 531, 533, 536, 539, 541, 543, 545, 547, 550, 556, 557, 558, 559, 561, 563, 566, 567, 568], "returns": [84, 145, 160, 162, 213, 270, 309, 336, 343, 355, 401, 454, 493, 508, 523, 525, 560], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 68, 212, 232, 233, 252, 267, 268, 308, 331, 335, 354, 376, 392, 425, 427, 428, 433, 435, 436, 445, 453, 460, 565, 569], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [63, 65, 70]}}, "cross_language_map": {"function_declarations": [{"node_id": 74, "universal_type": "function", "name": "unknown", "text_snippet": "static tool_rc clear(ESYS_CONTEXT *ectx) {\n\n return tpm2_clear(ectx, &ctx.auth_hierarchy.object, "}, {"node_id": 76, "universal_type": "function", "name": "unknown", "text_snippet": "clear(ESYS_CONTEXT *ectx)"}, {"node_id": 102, "universal_type": "function", "name": "is_file_op_success", "text_snippet": "static tool_rc process_output(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n /*\n * 1. Outputs that"}, {"node_id": 104, "universal_type": "function", "name": "unknown", "text_snippet": "process_output(ESYS_CONTEXT *ectx)"}, {"node_id": 164, "universal_type": "function", "name": "unknown", "text_snippet": "static tool_rc process_inputs(ESYS_CONTEXT *ectx) {\n\n /*\n * 1. Object and auth initialization"}, {"node_id": 166, "universal_type": "function", "name": "unknown", "text_snippet": "process_inputs(ESYS_CONTEXT *ectx)"}, {"node_id": 272, "universal_type": "function", "name": "unknown", "text_snippet": "static tool_rc check_options(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 4.b Determine i"}, {"node_id": 274, "universal_type": "function", "name": "unknown", "text_snippet": "check_options(ESYS_CONTEXT *ectx)"}, {"node_id": 311, "universal_type": "function", "name": "on_arg", "text_snippet": "static bool on_arg(int argc, char **argv) {\n\n if (argc > 1) {\n LOG_ERR(\"Specify a single a"}, {"node_id": 313, "universal_type": "function", "name": "unknown", "text_snippet": "on_arg(int argc, char **argv)"}, {"node_id": 357, "universal_type": "function", "name": "on_option", "text_snippet": "static bool on_option(char key, char *value) {\n\n switch (key) {\n case 'c':\n ctx.auth_hi"}, {"node_id": 359, "universal_type": "function", "name": "unknown", "text_snippet": "on_option(char key, char *value)"}, {"node_id": 403, "universal_type": "function", "name": "tpm2_tool_onstart", "text_snippet": "static bool tpm2_tool_onstart(tpm2_options **opts) {\n\n const struct option topts[] = {\n { "}, {"node_id": 405, "universal_type": "function", "name": "unknown", "text_snippet": "tpm2_tool_onstart(tpm2_options **opts)"}, {"node_id": 461, "universal_type": "function", "name": "unknown", "text_snippet": "static tool_rc tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags) {\n\n UNUSED(flags);\n\n "}, {"node_id": 463, "universal_type": "function", "name": "unknown", "text_snippet": "tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags)"}, {"node_id": 530, "universal_type": "function", "name": "unknown", "text_snippet": "static tool_rc tpm2_tool_onstop(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 1. Free obje"}, {"node_id": 532, "universal_type": "function", "name": "unknown", "text_snippet": "tpm2_tool_onstop(ESYS_CONTEXT *ectx)"}], "class_declarations": [{"node_id": 18, "universal_type": "class", "name": "clear_ctx", "text_snippet": "struct clear_ctx"}, {"node_id": 19, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 22, "universal_type": "class", "name": "clear_ctx", "text_snippet": "struct clear_ctx {\n /*\n * Inputs\n */\n struct {\n const char *ctx_path;\n c"}, {"node_id": 23, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 26, "universal_type": "class", "name": "{", "text_snippet": "struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object obje"}, {"node_id": 27, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 416, "universal_type": "class", "name": "option", "text_snippet": "struct option"}, {"node_id": 417, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include \"files.h\"\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include \"log.h\"\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"tpm2.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"tpm2_tool.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/* SPDX-License-Identifier: BSD-3-Clause */\n\n#include \"files.h\"\n#include \"log.h\"\n#include \"tpm2.h\"\n#include \"tpm2_tool.h\"\n\n#define MAX_SESSIONS 3\ntypedef struct clear_ctx clear_ctx;\nstruct clear_ctx {\n /*\n * Inputs\n */\n struct {\n const char *ctx_path;\n const char *auth_str;\n tpm2_loaded_object object;\n } auth_hierarchy;\n\n /*\n * Outputs\n */\n\n /*\n * Parameter hashes\n */\n const char *cp_hash_path;\n TPM2B_DIGEST cp_hash;\n bool is_command_dispatch;\n TPMI_ALG_HASH parameter_hash_algorithm;\n};\n\nstatic clear_ctx ctx = {\n .auth_hierarchy.ctx_path = \"l\",\n .parameter_hash_algorithm = TPM2_ALG_ERROR,\n};\n\nstatic tool_rc clear(ESYS_CONTEXT *ectx) {\n\n return tpm2_clear(ectx, &ctx.auth_hierarchy.object, &ctx.cp_hash,\n ctx.parameter_hash_algorithm);\n}\n\n\nstatic tool_rc process_output(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n /*\n * 1. Outputs that do not require TPM2_CC_<command> dispatch\n */\n bool is_file_op_success = true;\n if (ctx.cp_hash_path) {\n is_file_op_success = files_save_digest(&ctx.cp_hash, ctx.cp_hash_path);\n\n if (!is_file_op_success) {\n return tool_rc_general_error;\n }\n }\n\n tool_rc rc = tool_rc_success;\n if (!ctx.is_command_dispatch) {\n return rc;\n }\n\n /*\n * 2. Outputs generated after TPM2_CC_<command> dispatch\n */\n\n return rc;\n}\n\n\nstatic tool_rc process_inputs(ESYS_CONTEXT *ectx) {\n\n /*\n * 1. Object and auth initializations\n */\n\n /*\n * 1.a Add the new-auth values to be set for the object.\n */\n\n /*\n * 1.b Add object names and their auth sessions\n */\n\n /* Object #1 */\n tool_rc rc = tpm2_util_object_load_auth(ectx, ctx.auth_hierarchy.ctx_path,\n ctx.auth_hierarchy.auth_str, &ctx.auth_hierarchy.object, false,\n TPM2_HANDLE_FLAGS_L | TPM2_HANDLE_FLAGS_P);\n if (rc != tool_rc_success) {\n LOG_ERR(\"Invalid lockout authorization\");\n return rc;\n }\n\n /*\n * 2. Restore auxiliary sessions\n */\n\n /*\n * 3. Command specific initializations\n */\n\n /*\n * 4. Configuration for calculating the pHash\n */\n\n /*\n * 4.a Determine pHash length and alg\n */\n tpm2_session *all_sessions[MAX_SESSIONS] = {\n ctx.auth_hierarchy.object.session,\n 0,\n 0\n };\n\n const char **cphash_path = ctx.cp_hash_path ? &ctx.cp_hash_path : 0;\n\n ctx.parameter_hash_algorithm = tpm2_util_calculate_phash_algorithm(ectx,\n cphash_path, &ctx.cp_hash, 0, 0, all_sessions);\n\n return rc;\n}\n\nstatic tool_rc check_options(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 4.b Determine if TPM2_CC_<command> is to be dispatched\n */\n ctx.is_command_dispatch = ctx.cp_hash_path ? false : true;\n\n if (!ctx.is_command_dispatch) {\n LOG_WARN(\"Generating cpHash. Exiting without executing clear.\");\n }\n\n return tool_rc_success;\n}\n\nstatic bool on_arg(int argc, char **argv) {\n\n if (argc > 1) {\n LOG_ERR(\"Specify a single auth value\");\n return false;\n }\n\n /*\n * empty auth\n */\n if (!argc) {\n return true;\n }\n\n ctx.auth_hierarchy.auth_str = argv[0];\n\n return true;\n}\n\nstatic bool on_option(char key, char *value) {\n\n switch (key) {\n case 'c':\n ctx.auth_hierarchy.ctx_path = value;\n break;\n case 0:\n ctx.cp_hash_path = value;\n break;\n }\n\n return true;\n}\n\nstatic bool tpm2_tool_onstart(tpm2_options **opts) {\n\n const struct option topts[] = {\n { \"auth-hierarchy\", required_argument, 0, 'c' },\n { \"cphash\", required_argument, 0, 0 },\n };\n\n *opts = tpm2_options_new(\"c:\", ARRAY_LEN(topts), topts, on_option, on_arg,\n 0);\n\n return *opts != 0;\n}\n\nstatic tool_rc tpm2_tool_onrun(ESYS_CONTEXT *ectx, tpm2_option_flags flags) {\n\n UNUSED(flags);\n\n /*\n * 1. Process options\n */\n tool_rc rc = check_options(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 2. Process inputs\n */\n rc = process_inputs(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 3. TPM2_CC_<command> call\n */\n rc = clear(ectx);\n if (rc != tool_rc_success) {\n return rc;\n }\n\n /*\n * 4. Process outputs\n */\n return process_output(ectx);\n}\n\nstatic tool_rc tpm2_tool_onstop(ESYS_CONTEXT *ectx) {\n\n UNUSED(ectx);\n\n /*\n * 1. Free objects\n */\n\n /*\n * 2. Close authorization sessions\n */\n tool_rc rc = tpm2_session_close(&ctx.auth_hierarchy.object.session);\n\n /*\n * 3. Close auxiliary sessions\n */\n\n return rc;\n}\n\n// Register this tool with tpm2_tool.c\nTPM2_TOOL_REGISTER(\"clear\", tpm2_tool_onstart, tpm2_tool_onrun,\n tpm2_tool_onstop, 0)\n"}
80,389
c
/* opendatacon * * Copyright (c) 2014: * * DCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi * yxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA== * * 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. */ /* * DNP3Log2spdlog.h * * Created on: 2018-06-19 * Author: <NAME> <<EMAIL>> */ #ifndef DNP3Log2spdlog_H #define DNP3Log2spdlog_H #include <opendnp3/logging/ILogHandler.h> #include <chrono> #include <opendatacon/TCPSocketManager.h> #include <opendatacon/spdlog.h> class DNP3Log2spdlog: public opendnp3::ILogHandler { public: DNP3Log2spdlog(); void log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override; }; #endif // DNP3Log2spdlog_H
31.03
38
(translation_unit) "/* opendatacon\n *\n * Copyright (c) 2014:\n *\n * DCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi\n * yxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA==\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 * DNP3Log2spdlog.h\n *\n * Created on: 2018-06-19\n * Author: <NAME> <<EMAIL>>\n */\n#ifndef DNP3Log2spdlog_H\n#define DNP3Log2spdlog_H\n\n#include <opendnp3/logging/ILogHandler.h>\n#include <chrono>\n#include <opendatacon/TCPSocketManager.h>\n#include <opendatacon/spdlog.h>\n\nclass DNP3Log2spdlog: public opendnp3::ILogHandler\n{\npublic:\n DNP3Log2spdlog();\n void log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override;\n};\n\n#endif // DNP3Log2spdlog_H\n" (comment) "/* opendatacon\n *\n * Copyright (c) 2014:\n *\n * DCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi\n * yxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA==\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */" (comment) "/*\n * DNP3Log2spdlog.h\n *\n * Created on: 2018-06-19\n * Author: <NAME> <<EMAIL>>\n */" (preproc_ifdef) "#ifndef DNP3Log2spdlog_H\n#define DNP3Log2spdlog_H\n\n#include <opendnp3/logging/ILogHandler.h>\n#include <chrono>\n#include <opendatacon/TCPSocketManager.h>\n#include <opendatacon/spdlog.h>\n\nclass DNP3Log2spdlog: public opendnp3::ILogHandler\n{\npublic:\n DNP3Log2spdlog();\n void log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override;\n};\n\n#endif" (#ifndef) "#ifndef" (identifier) "DNP3Log2spdlog_H" (preproc_def) "#define DNP3Log2spdlog_H\n" (#define) "#define" (identifier) "DNP3Log2spdlog_H" (preproc_include) "#include <opendnp3/logging/ILogHandler.h>\n" (#include) "#include" (system_lib_string) "<opendnp3/logging/ILogHandler.h>" (preproc_include) "#include <chrono>\n" (#include) "#include" (system_lib_string) "<chrono>" (preproc_include) "#include <opendatacon/TCPSocketManager.h>\n" (#include) "#include" (system_lib_string) "<opendatacon/TCPSocketManager.h>" (preproc_include) "#include <opendatacon/spdlog.h>\n" (#include) "#include" (system_lib_string) "<opendatacon/spdlog.h>" (function_definition) "class DNP3Log2spdlog: public opendnp3::ILogHandler\n{\npublic:\n DNP3Log2spdlog();\n void log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override;\n}" (type_identifier) "class" (identifier) "DNP3Log2spdlog" (ERROR) ": public opendnp3::ILogHandler" (:) ":" (identifier) "public" (identifier) "opendnp3" (:) ":" (:) ":" (identifier) "ILogHandler" (compound_statement) "{\npublic:\n DNP3Log2spdlog();\n void log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override;\n}" ({) "{" (labeled_statement) "public:\n DNP3Log2spdlog();" (statement_identifier) "public" (:) ":" (expression_statement) "DNP3Log2spdlog();" (call_expression) "DNP3Log2spdlog()" (identifier) "DNP3Log2spdlog" (argument_list) "()" (() "(" ()) ")" (;) ";" (ERROR) "void log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override" (primitive_type) "void" (function_declarator) "log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override" (identifier) "log" (parameter_list) "(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message)" (() "(" (parameter_declaration) "opendnp3::ModuleId module" (type_identifier) "opendnp3" (ERROR) "::ModuleId" (:) ":" (:) ":" (identifier) "ModuleId" (identifier) "module" (,) "," (parameter_declaration) "const char* id" (type_qualifier) "const" (const) "const" (primitive_type) "char" (pointer_declarator) "* id" (*) "*" (identifier) "id" (,) "," (parameter_declaration) "opendnp3::LogLevel level" (type_identifier) "opendnp3" (ERROR) "::LogLevel" (:) ":" (:) ":" (identifier) "LogLevel" (identifier) "level" (,) "," (parameter_declaration) "char const* location" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "* location" (*) "*" (identifier) "location" (,) "," (parameter_declaration) "char const* message" (primitive_type) "char" (type_qualifier) "const" (const) "const" (pointer_declarator) "* message" (*) "*" (identifier) "message" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif" (comment) "// DNP3Log2spdlog_H"
97
4
{"language": "c", "success": true, "metadata": {"lines": 38, "avg_line_length": 31.03, "nodes": 59, "errors": 0, "source_hash": "c8a3dca6565e471bca732ebda971eaf82189b0cf4a41cda12bae5b4877b3ce90", "categorized_nodes": 40}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef DNP3Log2spdlog_H\n#define DNP3Log2spdlog_H\n\n#include <opendnp3/logging/ILogHandler.h>\n#include <chrono>\n#include <opendatacon/TCPSocketManager.h>\n#include <opendatacon/spdlog.h>\n\nclass DNP3Log2spdlog: public opendnp3::ILogHandler\n{\npublic:\n\tDNP3Log2spdlog();\n\tvoid log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override;\n};\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 15, 18, 58], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 40, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 2, "type": "identifier", "text": "DNP3Log2spdlog_H", "parent": 0, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 24}}, {"id": 3, "type": "preproc_def", "text": "#define DNP3Log2spdlog_H\n", "parent": 0, "children": [4, 5], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 5, "type": "identifier", "text": "DNP3Log2spdlog_H", "parent": 3, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 24}}, {"id": 6, "type": "preproc_include", "text": "#include <opendnp3/logging/ILogHandler.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<opendnp3/logging/ILogHandler.h>", "parent": 6, "children": [], "start_point": {"row": 28, "column": 9}, "end_point": {"row": 28, "column": 41}}, {"id": 9, "type": "preproc_include", "text": "#include <chrono>\n", "parent": 0, "children": [10, 11], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 30, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<chrono>", "parent": 9, "children": [], "start_point": {"row": 29, "column": 9}, "end_point": {"row": 29, "column": 17}}, {"id": 12, "type": "preproc_include", "text": "#include <opendatacon/TCPSocketManager.h>\n", "parent": 0, "children": [13, 14], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 13, "type": "#include", "text": "#include", "parent": 12, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 14, "type": "system_lib_string", "text": "<opendatacon/TCPSocketManager.h>", "parent": 12, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 41}}, {"id": 15, "type": "preproc_include", "text": "#include <opendatacon/spdlog.h>\n", "parent": 0, "children": [16, 17], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 16, "type": "#include", "text": "#include", "parent": 15, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 17, "type": "system_lib_string", "text": "<opendatacon/spdlog.h>", "parent": 15, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 31}}, {"id": 18, "type": "function_definition", "text": "class DNP3Log2spdlog: public opendnp3::ILogHandler\n{\npublic:\n\tDNP3Log2spdlog();\n\tvoid log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override;\n}", "parent": 0, "children": [19, 20], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 38, "column": 1}}, {"id": 19, "type": "identifier", "text": "DNP3Log2spdlog", "parent": 18, "children": [], "start_point": {"row": 33, "column": 6}, "end_point": {"row": 33, "column": 20}}, {"id": 20, "type": "ERROR", "text": ": public opendnp3::ILogHandler", "parent": 18, "children": [21, 22], "start_point": {"row": 33, "column": 20}, "end_point": {"row": 33, "column": 50}}, {"id": 21, "type": "identifier", "text": "opendnp3", "parent": 20, "children": [], "start_point": {"row": 33, "column": 29}, "end_point": {"row": 33, "column": 37}}, {"id": 22, "type": "identifier", "text": "ILogHandler", "parent": 20, "children": [], "start_point": {"row": 33, "column": 39}, "end_point": {"row": 33, "column": 50}}, {"id": 23, "type": "labeled_statement", "text": "public:\n\tDNP3Log2spdlog();", "parent": 18, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 18}}, {"id": 24, "type": "call_expression", "text": "DNP3Log2spdlog()", "parent": 23, "children": [25, 26], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 17}}, {"id": 25, "type": "identifier", "text": "DNP3Log2spdlog", "parent": 24, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 15}}, {"id": 26, "type": "argument_list", "text": "()", "parent": 24, "children": [], "start_point": {"row": 36, "column": 15}, "end_point": {"row": 36, "column": 17}}, {"id": 27, "type": "ERROR", "text": "void log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override", "parent": 18, "children": [28, 29], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 130}}, {"id": 28, "type": "primitive_type", "text": "void", "parent": 27, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 5}}, {"id": 29, "type": "function_declarator", "text": "log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override", "parent": 27, "children": [30, 31, 57], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 130}}, {"id": 30, "type": "identifier", "text": "log", "parent": 29, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 9}}, {"id": 31, "type": "parameter_list", "text": "(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message)", "parent": 29, "children": [32, 37, 42, 47, 52], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 121}}, {"id": 32, "type": "parameter_declaration", "text": "opendnp3::ModuleId module", "parent": 31, "children": [33, 34, 36], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 35}}, {"id": 33, "type": "type_identifier", "text": "opendnp3", "parent": 32, "children": [], "start_point": {"row": 37, "column": 10}, "end_point": {"row": 37, "column": 18}}, {"id": 34, "type": "ERROR", "text": "::ModuleId", "parent": 32, "children": [35], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 28}}, {"id": 35, "type": "identifier", "text": "ModuleId", "parent": 34, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 28}}, {"id": 36, "type": "identifier", "text": "module", "parent": 32, "children": [], "start_point": {"row": 37, "column": 29}, "end_point": {"row": 37, "column": 35}}, {"id": 37, "type": "parameter_declaration", "text": "const char* id", "parent": 31, "children": [38, 39], "start_point": {"row": 37, "column": 37}, "end_point": {"row": 37, "column": 51}}, {"id": 38, "type": "primitive_type", "text": "char", "parent": 37, "children": [], "start_point": {"row": 37, "column": 43}, "end_point": {"row": 37, "column": 47}}, {"id": 39, "type": "pointer_declarator", "text": "* id", "parent": 37, "children": [40, 41], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 51}}, {"id": 40, "type": "*", "text": "*", "parent": 39, "children": [], "start_point": {"row": 37, "column": 47}, "end_point": {"row": 37, "column": 48}}, {"id": 41, "type": "identifier", "text": "id", "parent": 39, "children": [], "start_point": {"row": 37, "column": 49}, "end_point": {"row": 37, "column": 51}}, {"id": 42, "type": "parameter_declaration", "text": "opendnp3::LogLevel level", "parent": 31, "children": [43, 44, 46], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 77}}, {"id": 43, "type": "type_identifier", "text": "opendnp3", "parent": 42, "children": [], "start_point": {"row": 37, "column": 53}, "end_point": {"row": 37, "column": 61}}, {"id": 44, "type": "ERROR", "text": "::LogLevel", "parent": 42, "children": [45], "start_point": {"row": 37, "column": 61}, "end_point": {"row": 37, "column": 71}}, {"id": 45, "type": "identifier", "text": "LogLevel", "parent": 44, "children": [], "start_point": {"row": 37, "column": 63}, "end_point": {"row": 37, "column": 71}}, {"id": 46, "type": "identifier", "text": "level", "parent": 42, "children": [], "start_point": {"row": 37, "column": 72}, "end_point": {"row": 37, "column": 77}}, {"id": 47, "type": "parameter_declaration", "text": "char const* location", "parent": 31, "children": [48, 49], "start_point": {"row": 37, "column": 79}, "end_point": {"row": 37, "column": 99}}, {"id": 48, "type": "primitive_type", "text": "char", "parent": 47, "children": [], "start_point": {"row": 37, "column": 79}, "end_point": {"row": 37, "column": 83}}, {"id": 49, "type": "pointer_declarator", "text": "* location", "parent": 47, "children": [50, 51], "start_point": {"row": 37, "column": 89}, "end_point": {"row": 37, "column": 99}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 37, "column": 89}, "end_point": {"row": 37, "column": 90}}, {"id": 51, "type": "identifier", "text": "location", "parent": 49, "children": [], "start_point": {"row": 37, "column": 91}, "end_point": {"row": 37, "column": 99}}, {"id": 52, "type": "parameter_declaration", "text": "char const* message", "parent": 31, "children": [53, 54], "start_point": {"row": 37, "column": 101}, "end_point": {"row": 37, "column": 120}}, {"id": 53, "type": "primitive_type", "text": "char", "parent": 52, "children": [], "start_point": {"row": 37, "column": 101}, "end_point": {"row": 37, "column": 105}}, {"id": 54, "type": "pointer_declarator", "text": "* message", "parent": 52, "children": [55, 56], "start_point": {"row": 37, "column": 111}, "end_point": {"row": 37, "column": 120}}, {"id": 55, "type": "*", "text": "*", "parent": 54, "children": [], "start_point": {"row": 37, "column": 111}, "end_point": {"row": 37, "column": 112}}, {"id": 56, "type": "identifier", "text": "message", "parent": 54, "children": [], "start_point": {"row": 37, "column": 113}, "end_point": {"row": 37, "column": 120}}, {"id": 57, "type": "identifier", "text": "override", "parent": 29, "children": [], "start_point": {"row": 37, "column": 122}, "end_point": {"row": 37, "column": 130}}, {"id": 58, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 6}}]}, "node_categories": {"declarations": {"functions": [18, 29], "variables": [32, 37, 42, 47, 52], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16], "modules": [], "enums": []}, "statements": {"expressions": [24], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 19, 21, 22, 25, 30, 33, 35, 36, 41, 43, 45, 46, 51, 56, 57, 58], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 18, "universal_type": "function", "name": "DNP3Log2spdlog:", "text_snippet": "class DNP3Log2spdlog: public opendnp3::ILogHandler\n{\npublic:\n\tDNP3Log2spdlog();\n\tvoid log(opendnp3::"}, {"node_id": 29, "universal_type": "function", "name": "unknown", "text_snippet": "log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char "}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <opendnp3/logging/ILogHandler.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <chrono>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <opendatacon/TCPSocketManager.h>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <opendatacon/spdlog.h>\n"}, {"node_id": 16, "text": "#include"}]}, "original_source_code": "/*\topendatacon\n *\n *\tCopyright (c) 2014:\n *\n *\t\tDCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi\n *\t\tyxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA==\n *\n *\tLicensed under the Apache License, Version 2.0 (the \"License\");\n *\tyou may not use this file except in compliance with the License.\n *\tYou may obtain a copy of the License at\n *\n *\t\thttp://www.apache.org/licenses/LICENSE-2.0\n *\n *\tUnless required by applicable law or agreed to in writing, software\n *\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n *\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\tSee the License for the specific language governing permissions and\n *\tlimitations under the License.\n */\n/*\n * DNP3Log2spdlog.h\n *\n * Created on: 2018-06-19\n * Author: <NAME> <<EMAIL>>\n */\n#ifndef DNP3Log2spdlog_H\n#define DNP3Log2spdlog_H\n\n#include <opendnp3/logging/ILogHandler.h>\n#include <chrono>\n#include <opendatacon/TCPSocketManager.h>\n#include <opendatacon/spdlog.h>\n\nclass DNP3Log2spdlog: public opendnp3::ILogHandler\n{\npublic:\n\tDNP3Log2spdlog();\n\tvoid log(opendnp3::ModuleId module, const char* id, opendnp3::LogLevel level, char const* location, char const* message) override;\n};\n\n#endif // DNP3Log2spdlog_H\n"}
80,390
c
#include <stdlib.h> #include <stdio.h> #include "dfs.h" #include "elementary/list.h" static int time; static void dfs_print_graph(struct Graph *g){ char buff[0xff]; char color; int i; struct ListObj *it = NULL; printf("time: %d\n", time); for(i = 0; i < g->nodes_size; i++){ switch(((struct DFSNode*)g->nodes[i].data)->color){ case DFS_BLACK: color = 'B'; break; case DFS_WHITE: color = 'W'; break; case DFS_GRAY: color = 'G'; break; } printf("%c [%d] %.2d,%.2d ", color, g->nodes[i].key, ((struct DFSNode*)g->nodes[i].data)->d_time, ((struct DFSNode*)g->nodes[i].data)->f_time); it = g->adjacencies[i].head; while(it != NULL){ printf("->[%d]", it->key); it = it->next; } printf("\n"); } gets(buff); } static void dfs_visit(struct Graph *g, struct GraphNode *u){ struct ListObj *it = NULL; struct GraphNode *v = NULL; time++; ((struct DFSNode*)u->data)->d_time = time; ((struct DFSNode*)u->data)->color = DFS_GRAY; it = g->adjacencies[u->key].head; dfs_print_graph(g); while(it != NULL){ v = ((struct GraphEdge*)it->data)->node; if(((struct DFSNode*)v->data)->color == DFS_WHITE){ ((struct DFSNode*)v->data)->parent = u; dfs_visit(g, v); } it = it->next; } ((struct DFSNode*)u->data)->color = DFS_BLACK; time++; ((struct DFSNode*)u->data)->f_time = time; dfs_print_graph(g); } void dfs(struct Graph *g){ struct DFSNode dfs_nodes[g->nodes_size]; int i; for(i = 0; i < g->nodes_size; i++){ dfs_nodes[i].color = DFS_WHITE; dfs_nodes[i].parent = NULL; dfs_nodes[i].d_time = 0; dfs_nodes[i].f_time = 0; g->nodes[i].data = &(dfs_nodes[i]); } time = 0; for(i = 0; i < g->nodes_size; i++){ if(dfs_nodes[i].color == DFS_WHITE){ dfs_visit(g, &(g->nodes[i])); } } }
22.68
75
(translation_unit) "#include <stdlib.h>\n#include <stdio.h>\n#include "dfs.h"\n#include "elementary/list.h"\n\nstatic int time;\n\nstatic \nvoid dfs_print_graph(struct Graph *g){\n char buff[0xff];\n char color;\n int i;\n struct ListObj *it = NULL;\n printf("time: %d\n", time);\n for(i = 0; i < g->nodes_size; i++){\n switch(((struct DFSNode*)g->nodes[i].data)->color){\n case DFS_BLACK:\n color = 'B';\n break;\n case DFS_WHITE:\n color = 'W';\n break;\n case DFS_GRAY:\n color = 'G';\n break;\n }\n printf("%c [%d] %.2d,%.2d ", color, g->nodes[i].key,\n ((struct DFSNode*)g->nodes[i].data)->d_time,\n ((struct DFSNode*)g->nodes[i].data)->f_time);\n it = g->adjacencies[i].head;\n while(it != NULL){\n printf("->[%d]", it->key);\n it = it->next;\n }\n printf("\n");\n }\n gets(buff);\n}\n\nstatic\nvoid dfs_visit(struct Graph *g, struct GraphNode *u){\n struct ListObj *it = NULL;\n struct GraphNode *v = NULL;\n time++;\n ((struct DFSNode*)u->data)->d_time = time;\n ((struct DFSNode*)u->data)->color = DFS_GRAY;\n it = g->adjacencies[u->key].head;\n dfs_print_graph(g);\n while(it != NULL){\n v = ((struct GraphEdge*)it->data)->node;\n if(((struct DFSNode*)v->data)->color == DFS_WHITE){\n ((struct DFSNode*)v->data)->parent = u;\n dfs_visit(g, v);\n }\n it = it->next;\n }\n ((struct DFSNode*)u->data)->color = DFS_BLACK;\n time++;\n ((struct DFSNode*)u->data)->f_time = time;\n dfs_print_graph(g);\n}\n\nvoid dfs(struct Graph *g){\n struct DFSNode dfs_nodes[g->nodes_size];\n int i;\n for(i = 0; i < g->nodes_size; i++){\n dfs_nodes[i].color = DFS_WHITE;\n dfs_nodes[i].parent = NULL;\n dfs_nodes[i].d_time = 0;\n dfs_nodes[i].f_time = 0;\n g->nodes[i].data = &(dfs_nodes[i]);\n }\n time = 0;\n for(i = 0; i < g->nodes_size; i++){\n if(dfs_nodes[i].color == DFS_WHITE){\n dfs_visit(g, &(g->nodes[i]));\n }\n }\n}\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 "dfs.h"\n" (#include) "#include" (string_literal) ""dfs.h"" (") """ (string_content) "dfs.h" (") """ (preproc_include) "#include "elementary/list.h"\n" (#include) "#include" (string_literal) ""elementary/list.h"" (") """ (string_content) "elementary/list.h" (") """ (declaration) "static int time;" (storage_class_specifier) "static" (static) "static" (primitive_type) "int" (identifier) "time" (;) ";" (function_definition) "static \nvoid dfs_print_graph(struct Graph *g){\n char buff[0xff];\n char color;\n int i;\n struct ListObj *it = NULL;\n printf("time: %d\n", time);\n for(i = 0; i < g->nodes_size; i++){\n switch(((struct DFSNode*)g->nodes[i].data)->color){\n case DFS_BLACK:\n color = 'B';\n break;\n case DFS_WHITE:\n color = 'W';\n break;\n case DFS_GRAY:\n color = 'G';\n break;\n }\n printf("%c [%d] %.2d,%.2d ", color, g->nodes[i].key,\n ((struct DFSNode*)g->nodes[i].data)->d_time,\n ((struct DFSNode*)g->nodes[i].data)->f_time);\n it = g->adjacencies[i].head;\n while(it != NULL){\n printf("->[%d]", it->key);\n it = it->next;\n }\n printf("\n");\n }\n gets(buff);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "dfs_print_graph(struct Graph *g)" (identifier) "dfs_print_graph" (parameter_list) "(struct Graph *g)" (() "(" (parameter_declaration) "struct Graph *g" (struct_specifier) "struct Graph" (struct) "struct" (type_identifier) "Graph" (pointer_declarator) "*g" (*) "*" (identifier) "g" ()) ")" (compound_statement) "{\n char buff[0xff];\n char color;\n int i;\n struct ListObj *it = NULL;\n printf("time: %d\n", time);\n for(i = 0; i < g->nodes_size; i++){\n switch(((struct DFSNode*)g->nodes[i].data)->color){\n case DFS_BLACK:\n color = 'B';\n break;\n case DFS_WHITE:\n color = 'W';\n break;\n case DFS_GRAY:\n color = 'G';\n break;\n }\n printf("%c [%d] %.2d,%.2d ", color, g->nodes[i].key,\n ((struct DFSNode*)g->nodes[i].data)->d_time,\n ((struct DFSNode*)g->nodes[i].data)->f_time);\n it = g->adjacencies[i].head;\n while(it != NULL){\n printf("->[%d]", it->key);\n it = it->next;\n }\n printf("\n");\n }\n gets(buff);\n}" ({) "{" (declaration) "char buff[0xff];" (primitive_type) "char" (array_declarator) "buff[0xff]" (identifier) "buff" ([) "[" (number_literal) "0xff" (]) "]" (;) ";" (declaration) "char color;" (primitive_type) "char" (identifier) "color" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (declaration) "struct ListObj *it = NULL;" (struct_specifier) "struct ListObj" (struct) "struct" (type_identifier) "ListObj" (init_declarator) "*it = NULL" (pointer_declarator) "*it" (*) "*" (identifier) "it" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "printf("time: %d\n", time);" (call_expression) "printf("time: %d\n", time)" (identifier) "printf" (argument_list) "("time: %d\n", time)" (() "(" (string_literal) ""time: %d\n"" (") """ (string_content) "time: %d" (escape_sequence) "\n" (") """ (,) "," (identifier) "time" ()) ")" (;) ";" (for_statement) "for(i = 0; i < g->nodes_size; i++){\n switch(((struct DFSNode*)g->nodes[i].data)->color){\n case DFS_BLACK:\n color = 'B';\n break;\n case DFS_WHITE:\n color = 'W';\n break;\n case DFS_GRAY:\n color = 'G';\n break;\n }\n printf("%c [%d] %.2d,%.2d ", color, g->nodes[i].key,\n ((struct DFSNode*)g->nodes[i].data)->d_time,\n ((struct DFSNode*)g->nodes[i].data)->f_time);\n it = g->adjacencies[i].head;\n while(it != NULL){\n printf("->[%d]", it->key);\n it = it->next;\n }\n printf("\n");\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < g->nodes_size" (identifier) "i" (<) "<" (field_expression) "g->nodes_size" (identifier) "g" (->) "->" (field_identifier) "nodes_size" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n switch(((struct DFSNode*)g->nodes[i].data)->color){\n case DFS_BLACK:\n color = 'B';\n break;\n case DFS_WHITE:\n color = 'W';\n break;\n case DFS_GRAY:\n color = 'G';\n break;\n }\n printf("%c [%d] %.2d,%.2d ", color, g->nodes[i].key,\n ((struct DFSNode*)g->nodes[i].data)->d_time,\n ((struct DFSNode*)g->nodes[i].data)->f_time);\n it = g->adjacencies[i].head;\n while(it != NULL){\n printf("->[%d]", it->key);\n it = it->next;\n }\n printf("\n");\n }" ({) "{" (switch_statement) "switch(((struct DFSNode*)g->nodes[i].data)->color){\n case DFS_BLACK:\n color = 'B';\n break;\n case DFS_WHITE:\n color = 'W';\n break;\n case DFS_GRAY:\n color = 'G';\n break;\n }" (switch) "switch" (parenthesized_expression) "(((struct DFSNode*)g->nodes[i].data)->color)" (() "(" (field_expression) "((struct DFSNode*)g->nodes[i].data)->color" (parenthesized_expression) "((struct DFSNode*)g->nodes[i].data)" (() "(" (cast_expression) "(struct DFSNode*)g->nodes[i].data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "g->nodes[i].data" (subscript_expression) "g->nodes[i]" (field_expression) "g->nodes" (identifier) "g" (->) "->" (field_identifier) "nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "color" ()) ")" (compound_statement) "{\n case DFS_BLACK:\n color = 'B';\n break;\n case DFS_WHITE:\n color = 'W';\n break;\n case DFS_GRAY:\n color = 'G';\n break;\n }" ({) "{" (case_statement) "case DFS_BLACK:\n color = 'B';\n break;" (case) "case" (identifier) "DFS_BLACK" (:) ":" (expression_statement) "color = 'B';" (assignment_expression) "color = 'B'" (identifier) "color" (=) "=" (char_literal) "'B'" (') "'" (character) "B" (') "'" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case DFS_WHITE:\n color = 'W';\n break;" (case) "case" (identifier) "DFS_WHITE" (:) ":" (expression_statement) "color = 'W';" (assignment_expression) "color = 'W'" (identifier) "color" (=) "=" (char_literal) "'W'" (') "'" (character) "W" (') "'" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (case_statement) "case DFS_GRAY:\n color = 'G';\n break;" (case) "case" (identifier) "DFS_GRAY" (:) ":" (expression_statement) "color = 'G';" (assignment_expression) "color = 'G'" (identifier) "color" (=) "=" (char_literal) "'G'" (') "'" (character) "G" (') "'" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "printf("%c [%d] %.2d,%.2d ", color, g->nodes[i].key,\n ((struct DFSNode*)g->nodes[i].data)->d_time,\n ((struct DFSNode*)g->nodes[i].data)->f_time);" (call_expression) "printf("%c [%d] %.2d,%.2d ", color, g->nodes[i].key,\n ((struct DFSNode*)g->nodes[i].data)->d_time,\n ((struct DFSNode*)g->nodes[i].data)->f_time)" (identifier) "printf" (argument_list) "("%c [%d] %.2d,%.2d ", color, g->nodes[i].key,\n ((struct DFSNode*)g->nodes[i].data)->d_time,\n ((struct DFSNode*)g->nodes[i].data)->f_time)" (() "(" (string_literal) ""%c [%d] %.2d,%.2d "" (") """ (string_content) "%c [%d] %.2d,%.2d " (") """ (,) "," (identifier) "color" (,) "," (field_expression) "g->nodes[i].key" (subscript_expression) "g->nodes[i]" (field_expression) "g->nodes" (identifier) "g" (->) "->" (field_identifier) "nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "key" (,) "," (field_expression) "((struct DFSNode*)g->nodes[i].data)->d_time" (parenthesized_expression) "((struct DFSNode*)g->nodes[i].data)" (() "(" (cast_expression) "(struct DFSNode*)g->nodes[i].data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "g->nodes[i].data" (subscript_expression) "g->nodes[i]" (field_expression) "g->nodes" (identifier) "g" (->) "->" (field_identifier) "nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "d_time" (,) "," (field_expression) "((struct DFSNode*)g->nodes[i].data)->f_time" (parenthesized_expression) "((struct DFSNode*)g->nodes[i].data)" (() "(" (cast_expression) "(struct DFSNode*)g->nodes[i].data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "g->nodes[i].data" (subscript_expression) "g->nodes[i]" (field_expression) "g->nodes" (identifier) "g" (->) "->" (field_identifier) "nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "f_time" ()) ")" (;) ";" (expression_statement) "it = g->adjacencies[i].head;" (assignment_expression) "it = g->adjacencies[i].head" (identifier) "it" (=) "=" (field_expression) "g->adjacencies[i].head" (subscript_expression) "g->adjacencies[i]" (field_expression) "g->adjacencies" (identifier) "g" (->) "->" (field_identifier) "adjacencies" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "head" (;) ";" (while_statement) "while(it != NULL){\n printf("->[%d]", it->key);\n it = it->next;\n }" (while) "while" (parenthesized_expression) "(it != NULL)" (() "(" (binary_expression) "it != NULL" (identifier) "it" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n printf("->[%d]", it->key);\n it = it->next;\n }" ({) "{" (expression_statement) "printf("->[%d]", it->key);" (call_expression) "printf("->[%d]", it->key)" (identifier) "printf" (argument_list) "("->[%d]", it->key)" (() "(" (string_literal) ""->[%d]"" (") """ (string_content) "->[%d]" (") """ (,) "," (field_expression) "it->key" (identifier) "it" (->) "->" (field_identifier) "key" ()) ")" (;) ";" (expression_statement) "it = it->next;" (assignment_expression) "it = it->next" (identifier) "it" (=) "=" (field_expression) "it->next" (identifier) "it" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (expression_statement) "printf("\n");" (call_expression) "printf("\n")" (identifier) "printf" (argument_list) "("\n")" (() "(" (string_literal) ""\n"" (") """ (escape_sequence) "\n" (") """ ()) ")" (;) ";" (}) "}" (expression_statement) "gets(buff);" (call_expression) "gets(buff)" (identifier) "gets" (argument_list) "(buff)" (() "(" (identifier) "buff" ()) ")" (;) ";" (}) "}" (function_definition) "static\nvoid dfs_visit(struct Graph *g, struct GraphNode *u){\n struct ListObj *it = NULL;\n struct GraphNode *v = NULL;\n time++;\n ((struct DFSNode*)u->data)->d_time = time;\n ((struct DFSNode*)u->data)->color = DFS_GRAY;\n it = g->adjacencies[u->key].head;\n dfs_print_graph(g);\n while(it != NULL){\n v = ((struct GraphEdge*)it->data)->node;\n if(((struct DFSNode*)v->data)->color == DFS_WHITE){\n ((struct DFSNode*)v->data)->parent = u;\n dfs_visit(g, v);\n }\n it = it->next;\n }\n ((struct DFSNode*)u->data)->color = DFS_BLACK;\n time++;\n ((struct DFSNode*)u->data)->f_time = time;\n dfs_print_graph(g);\n}" (storage_class_specifier) "static" (static) "static" (primitive_type) "void" (function_declarator) "dfs_visit(struct Graph *g, struct GraphNode *u)" (identifier) "dfs_visit" (parameter_list) "(struct Graph *g, struct GraphNode *u)" (() "(" (parameter_declaration) "struct Graph *g" (struct_specifier) "struct Graph" (struct) "struct" (type_identifier) "Graph" (pointer_declarator) "*g" (*) "*" (identifier) "g" (,) "," (parameter_declaration) "struct GraphNode *u" (struct_specifier) "struct GraphNode" (struct) "struct" (type_identifier) "GraphNode" (pointer_declarator) "*u" (*) "*" (identifier) "u" ()) ")" (compound_statement) "{\n struct ListObj *it = NULL;\n struct GraphNode *v = NULL;\n time++;\n ((struct DFSNode*)u->data)->d_time = time;\n ((struct DFSNode*)u->data)->color = DFS_GRAY;\n it = g->adjacencies[u->key].head;\n dfs_print_graph(g);\n while(it != NULL){\n v = ((struct GraphEdge*)it->data)->node;\n if(((struct DFSNode*)v->data)->color == DFS_WHITE){\n ((struct DFSNode*)v->data)->parent = u;\n dfs_visit(g, v);\n }\n it = it->next;\n }\n ((struct DFSNode*)u->data)->color = DFS_BLACK;\n time++;\n ((struct DFSNode*)u->data)->f_time = time;\n dfs_print_graph(g);\n}" ({) "{" (declaration) "struct ListObj *it = NULL;" (struct_specifier) "struct ListObj" (struct) "struct" (type_identifier) "ListObj" (init_declarator) "*it = NULL" (pointer_declarator) "*it" (*) "*" (identifier) "it" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (declaration) "struct GraphNode *v = NULL;" (struct_specifier) "struct GraphNode" (struct) "struct" (type_identifier) "GraphNode" (init_declarator) "*v = NULL" (pointer_declarator) "*v" (*) "*" (identifier) "v" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "time++;" (update_expression) "time++" (identifier) "time" (++) "++" (;) ";" (expression_statement) "((struct DFSNode*)u->data)->d_time = time;" (assignment_expression) "((struct DFSNode*)u->data)->d_time = time" (field_expression) "((struct DFSNode*)u->data)->d_time" (parenthesized_expression) "((struct DFSNode*)u->data)" (() "(" (cast_expression) "(struct DFSNode*)u->data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "u->data" (identifier) "u" (->) "->" (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "d_time" (=) "=" (identifier) "time" (;) ";" (expression_statement) "((struct DFSNode*)u->data)->color = DFS_GRAY;" (assignment_expression) "((struct DFSNode*)u->data)->color = DFS_GRAY" (field_expression) "((struct DFSNode*)u->data)->color" (parenthesized_expression) "((struct DFSNode*)u->data)" (() "(" (cast_expression) "(struct DFSNode*)u->data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "u->data" (identifier) "u" (->) "->" (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "color" (=) "=" (identifier) "DFS_GRAY" (;) ";" (expression_statement) "it = g->adjacencies[u->key].head;" (assignment_expression) "it = g->adjacencies[u->key].head" (identifier) "it" (=) "=" (field_expression) "g->adjacencies[u->key].head" (subscript_expression) "g->adjacencies[u->key]" (field_expression) "g->adjacencies" (identifier) "g" (->) "->" (field_identifier) "adjacencies" ([) "[" (field_expression) "u->key" (identifier) "u" (->) "->" (field_identifier) "key" (]) "]" (.) "." (field_identifier) "head" (;) ";" (expression_statement) "dfs_print_graph(g);" (call_expression) "dfs_print_graph(g)" (identifier) "dfs_print_graph" (argument_list) "(g)" (() "(" (identifier) "g" ()) ")" (;) ";" (while_statement) "while(it != NULL){\n v = ((struct GraphEdge*)it->data)->node;\n if(((struct DFSNode*)v->data)->color == DFS_WHITE){\n ((struct DFSNode*)v->data)->parent = u;\n dfs_visit(g, v);\n }\n it = it->next;\n }" (while) "while" (parenthesized_expression) "(it != NULL)" (() "(" (binary_expression) "it != NULL" (identifier) "it" (!=) "!=" (null) "NULL" (NULL) "NULL" ()) ")" (compound_statement) "{\n v = ((struct GraphEdge*)it->data)->node;\n if(((struct DFSNode*)v->data)->color == DFS_WHITE){\n ((struct DFSNode*)v->data)->parent = u;\n dfs_visit(g, v);\n }\n it = it->next;\n }" ({) "{" (expression_statement) "v = ((struct GraphEdge*)it->data)->node;" (assignment_expression) "v = ((struct GraphEdge*)it->data)->node" (identifier) "v" (=) "=" (field_expression) "((struct GraphEdge*)it->data)->node" (parenthesized_expression) "((struct GraphEdge*)it->data)" (() "(" (cast_expression) "(struct GraphEdge*)it->data" (() "(" (type_descriptor) "struct GraphEdge*" (struct_specifier) "struct GraphEdge" (struct) "struct" (type_identifier) "GraphEdge" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "it->data" (identifier) "it" (->) "->" (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "node" (;) ";" (if_statement) "if(((struct DFSNode*)v->data)->color == DFS_WHITE){\n ((struct DFSNode*)v->data)->parent = u;\n dfs_visit(g, v);\n }" (if) "if" (parenthesized_expression) "(((struct DFSNode*)v->data)->color == DFS_WHITE)" (() "(" (binary_expression) "((struct DFSNode*)v->data)->color == DFS_WHITE" (field_expression) "((struct DFSNode*)v->data)->color" (parenthesized_expression) "((struct DFSNode*)v->data)" (() "(" (cast_expression) "(struct DFSNode*)v->data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "v->data" (identifier) "v" (->) "->" (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "color" (==) "==" (identifier) "DFS_WHITE" ()) ")" (compound_statement) "{\n ((struct DFSNode*)v->data)->parent = u;\n dfs_visit(g, v);\n }" ({) "{" (expression_statement) "((struct DFSNode*)v->data)->parent = u;" (assignment_expression) "((struct DFSNode*)v->data)->parent = u" (field_expression) "((struct DFSNode*)v->data)->parent" (parenthesized_expression) "((struct DFSNode*)v->data)" (() "(" (cast_expression) "(struct DFSNode*)v->data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "v->data" (identifier) "v" (->) "->" (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "parent" (=) "=" (identifier) "u" (;) ";" (expression_statement) "dfs_visit(g, v);" (call_expression) "dfs_visit(g, v)" (identifier) "dfs_visit" (argument_list) "(g, v)" (() "(" (identifier) "g" (,) "," (identifier) "v" ()) ")" (;) ";" (}) "}" (expression_statement) "it = it->next;" (assignment_expression) "it = it->next" (identifier) "it" (=) "=" (field_expression) "it->next" (identifier) "it" (->) "->" (field_identifier) "next" (;) ";" (}) "}" (expression_statement) "((struct DFSNode*)u->data)->color = DFS_BLACK;" (assignment_expression) "((struct DFSNode*)u->data)->color = DFS_BLACK" (field_expression) "((struct DFSNode*)u->data)->color" (parenthesized_expression) "((struct DFSNode*)u->data)" (() "(" (cast_expression) "(struct DFSNode*)u->data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "u->data" (identifier) "u" (->) "->" (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "color" (=) "=" (identifier) "DFS_BLACK" (;) ";" (expression_statement) "time++;" (update_expression) "time++" (identifier) "time" (++) "++" (;) ";" (expression_statement) "((struct DFSNode*)u->data)->f_time = time;" (assignment_expression) "((struct DFSNode*)u->data)->f_time = time" (field_expression) "((struct DFSNode*)u->data)->f_time" (parenthesized_expression) "((struct DFSNode*)u->data)" (() "(" (cast_expression) "(struct DFSNode*)u->data" (() "(" (type_descriptor) "struct DFSNode*" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (field_expression) "u->data" (identifier) "u" (->) "->" (field_identifier) "data" ()) ")" (->) "->" (field_identifier) "f_time" (=) "=" (identifier) "time" (;) ";" (expression_statement) "dfs_print_graph(g);" (call_expression) "dfs_print_graph(g)" (identifier) "dfs_print_graph" (argument_list) "(g)" (() "(" (identifier) "g" ()) ")" (;) ";" (}) "}" (function_definition) "void dfs(struct Graph *g){\n struct DFSNode dfs_nodes[g->nodes_size];\n int i;\n for(i = 0; i < g->nodes_size; i++){\n dfs_nodes[i].color = DFS_WHITE;\n dfs_nodes[i].parent = NULL;\n dfs_nodes[i].d_time = 0;\n dfs_nodes[i].f_time = 0;\n g->nodes[i].data = &(dfs_nodes[i]);\n }\n time = 0;\n for(i = 0; i < g->nodes_size; i++){\n if(dfs_nodes[i].color == DFS_WHITE){\n dfs_visit(g, &(g->nodes[i]));\n }\n }\n}" (primitive_type) "void" (function_declarator) "dfs(struct Graph *g)" (identifier) "dfs" (parameter_list) "(struct Graph *g)" (() "(" (parameter_declaration) "struct Graph *g" (struct_specifier) "struct Graph" (struct) "struct" (type_identifier) "Graph" (pointer_declarator) "*g" (*) "*" (identifier) "g" ()) ")" (compound_statement) "{\n struct DFSNode dfs_nodes[g->nodes_size];\n int i;\n for(i = 0; i < g->nodes_size; i++){\n dfs_nodes[i].color = DFS_WHITE;\n dfs_nodes[i].parent = NULL;\n dfs_nodes[i].d_time = 0;\n dfs_nodes[i].f_time = 0;\n g->nodes[i].data = &(dfs_nodes[i]);\n }\n time = 0;\n for(i = 0; i < g->nodes_size; i++){\n if(dfs_nodes[i].color == DFS_WHITE){\n dfs_visit(g, &(g->nodes[i]));\n }\n }\n}" ({) "{" (declaration) "struct DFSNode dfs_nodes[g->nodes_size];" (struct_specifier) "struct DFSNode" (struct) "struct" (type_identifier) "DFSNode" (array_declarator) "dfs_nodes[g->nodes_size]" (identifier) "dfs_nodes" ([) "[" (field_expression) "g->nodes_size" (identifier) "g" (->) "->" (field_identifier) "nodes_size" (]) "]" (;) ";" (declaration) "int i;" (primitive_type) "int" (identifier) "i" (;) ";" (for_statement) "for(i = 0; i < g->nodes_size; i++){\n dfs_nodes[i].color = DFS_WHITE;\n dfs_nodes[i].parent = NULL;\n dfs_nodes[i].d_time = 0;\n dfs_nodes[i].f_time = 0;\n g->nodes[i].data = &(dfs_nodes[i]);\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < g->nodes_size" (identifier) "i" (<) "<" (field_expression) "g->nodes_size" (identifier) "g" (->) "->" (field_identifier) "nodes_size" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n dfs_nodes[i].color = DFS_WHITE;\n dfs_nodes[i].parent = NULL;\n dfs_nodes[i].d_time = 0;\n dfs_nodes[i].f_time = 0;\n g->nodes[i].data = &(dfs_nodes[i]);\n }" ({) "{" (expression_statement) "dfs_nodes[i].color = DFS_WHITE;" (assignment_expression) "dfs_nodes[i].color = DFS_WHITE" (field_expression) "dfs_nodes[i].color" (subscript_expression) "dfs_nodes[i]" (identifier) "dfs_nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "color" (=) "=" (identifier) "DFS_WHITE" (;) ";" (expression_statement) "dfs_nodes[i].parent = NULL;" (assignment_expression) "dfs_nodes[i].parent = NULL" (field_expression) "dfs_nodes[i].parent" (subscript_expression) "dfs_nodes[i]" (identifier) "dfs_nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "parent" (=) "=" (null) "NULL" (NULL) "NULL" (;) ";" (expression_statement) "dfs_nodes[i].d_time = 0;" (assignment_expression) "dfs_nodes[i].d_time = 0" (field_expression) "dfs_nodes[i].d_time" (subscript_expression) "dfs_nodes[i]" (identifier) "dfs_nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "d_time" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "dfs_nodes[i].f_time = 0;" (assignment_expression) "dfs_nodes[i].f_time = 0" (field_expression) "dfs_nodes[i].f_time" (subscript_expression) "dfs_nodes[i]" (identifier) "dfs_nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "f_time" (=) "=" (number_literal) "0" (;) ";" (expression_statement) "g->nodes[i].data = &(dfs_nodes[i]);" (assignment_expression) "g->nodes[i].data = &(dfs_nodes[i])" (field_expression) "g->nodes[i].data" (subscript_expression) "g->nodes[i]" (field_expression) "g->nodes" (identifier) "g" (->) "->" (field_identifier) "nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "data" (=) "=" (pointer_expression) "&(dfs_nodes[i])" (&) "&" (parenthesized_expression) "(dfs_nodes[i])" (() "(" (subscript_expression) "dfs_nodes[i]" (identifier) "dfs_nodes" ([) "[" (identifier) "i" (]) "]" ()) ")" (;) ";" (}) "}" (expression_statement) "time = 0;" (assignment_expression) "time = 0" (identifier) "time" (=) "=" (number_literal) "0" (;) ";" (for_statement) "for(i = 0; i < g->nodes_size; i++){\n if(dfs_nodes[i].color == DFS_WHITE){\n dfs_visit(g, &(g->nodes[i]));\n }\n }" (for) "for" (() "(" (assignment_expression) "i = 0" (identifier) "i" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "i < g->nodes_size" (identifier) "i" (<) "<" (field_expression) "g->nodes_size" (identifier) "g" (->) "->" (field_identifier) "nodes_size" (;) ";" (update_expression) "i++" (identifier) "i" (++) "++" ()) ")" (compound_statement) "{\n if(dfs_nodes[i].color == DFS_WHITE){\n dfs_visit(g, &(g->nodes[i]));\n }\n }" ({) "{" (if_statement) "if(dfs_nodes[i].color == DFS_WHITE){\n dfs_visit(g, &(g->nodes[i]));\n }" (if) "if" (parenthesized_expression) "(dfs_nodes[i].color == DFS_WHITE)" (() "(" (binary_expression) "dfs_nodes[i].color == DFS_WHITE" (field_expression) "dfs_nodes[i].color" (subscript_expression) "dfs_nodes[i]" (identifier) "dfs_nodes" ([) "[" (identifier) "i" (]) "]" (.) "." (field_identifier) "color" (==) "==" (identifier) "DFS_WHITE" ()) ")" (compound_statement) "{\n dfs_visit(g, &(g->nodes[i]));\n }" ({) "{" (expression_statement) "dfs_visit(g, &(g->nodes[i]));" (call_expression) "dfs_visit(g, &(g->nodes[i]))" (identifier) "dfs_visit" (argument_list) "(g, &(g->nodes[i]))" (() "(" (identifier) "g" (,) "," (pointer_expression) "&(g->nodes[i])" (&) "&" (parenthesized_expression) "(g->nodes[i])" (() "(" (subscript_expression) "g->nodes[i]" (field_expression) "g->nodes" (identifier) "g" (->) "->" (field_identifier) "nodes" ([) "[" (identifier) "i" (]) "]" ()) ")" ()) ")" (;) ";" (}) "}" (}) "}" (}) "}"
850
0
{"language": "c", "success": true, "metadata": {"lines": 75, "avg_line_length": 22.68, "nodes": 533, "errors": 0, "source_hash": "fe39ddb30c7b02ea9c43fb21a65e16db605172f8e236b25d91acfb14d2bbc9a2", "categorized_nodes": 398}, "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 \"dfs.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": "\"dfs.h\"", "parent": 6, "children": [], "start_point": {"row": 2, "column": 9}, "end_point": {"row": 2, "column": 16}}, {"id": 9, "type": "preproc_include", "text": "#include \"elementary/list.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": "\"elementary/list.h\"", "parent": 9, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 28}}, {"id": 12, "type": "declaration", "text": "static int time;", "parent": null, "children": [13, 14], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 16}}, {"id": 13, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 10}}, {"id": 14, "type": "identifier", "text": "time", "parent": 12, "children": [], "start_point": {"row": 5, "column": 11}, "end_point": {"row": 5, "column": 15}}, {"id": 15, "type": "function_definition", "text": "static \nvoid dfs_print_graph(struct Graph *g){\n\tchar buff[0xff];\n\tchar color;\n\tint i;\n\tstruct ListObj *it = NULL;\n\tprintf(\"time: %d\\n\", time);\n\tfor(i = 0; i < g->nodes_size; i++){\n\t\tswitch(((struct DFSNode*)g->nodes[i].data)->color){\n\t\t\tcase DFS_BLACK:\n\t\t\t\tcolor = 'B';\n\t\t\t\tbreak;\n\t\t\tcase DFS_WHITE:\n\t\t\t\tcolor = 'W';\n\t\t\t\tbreak;\n\t\t\tcase DFS_GRAY:\n\t\t\t\tcolor = 'G';\n\t\t\t\tbreak;\n\t\t}\n\t\tprintf(\"%c [%d] %.2d,%.2d \", color, g->nodes[i].key,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->d_time,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->f_time);\n\t\tit = g->adjacencies[i].head;\n\t\twhile(it != NULL){\n\t\t\tprintf(\"->[%d]\", it->key);\n\t\t\tit = it->next;\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\tgets(buff);\n}", "parent": null, "children": [16, 17], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 37, "column": 1}}, {"id": 16, "type": "primitive_type", "text": "void", "parent": 15, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 4}}, {"id": 17, "type": "function_declarator", "text": "dfs_print_graph(struct Graph *g)", "parent": 15, "children": [18, 19], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 37}}, {"id": 18, "type": "identifier", "text": "dfs_print_graph", "parent": 17, "children": [], "start_point": {"row": 8, "column": 5}, "end_point": {"row": 8, "column": 20}}, {"id": 19, "type": "parameter_list", "text": "(struct Graph *g)", "parent": 17, "children": [20], "start_point": {"row": 8, "column": 20}, "end_point": {"row": 8, "column": 37}}, {"id": 20, "type": "parameter_declaration", "text": "struct Graph *g", "parent": 19, "children": [21, 24], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 36}}, {"id": 21, "type": "struct_specifier", "text": "struct Graph", "parent": 20, "children": [22, 23], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 33}}, {"id": 22, "type": "struct", "text": "struct", "parent": 21, "children": [], "start_point": {"row": 8, "column": 21}, "end_point": {"row": 8, "column": 27}}, {"id": 23, "type": "type_identifier", "text": "Graph", "parent": 21, "children": [], "start_point": {"row": 8, "column": 28}, "end_point": {"row": 8, "column": 33}}, {"id": 24, "type": "pointer_declarator", "text": "*g", "parent": 20, "children": [25, 26], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 36}}, {"id": 25, "type": "*", "text": "*", "parent": 24, "children": [], "start_point": {"row": 8, "column": 34}, "end_point": {"row": 8, "column": 35}}, {"id": 26, "type": "identifier", "text": "g", "parent": 24, "children": [], "start_point": {"row": 8, "column": 35}, "end_point": {"row": 8, "column": 36}}, {"id": 27, "type": "declaration", "text": "char buff[0xff];", "parent": 15, "children": [28, 29], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 17}}, {"id": 28, "type": "primitive_type", "text": "char", "parent": 27, "children": [], "start_point": {"row": 9, "column": 1}, "end_point": {"row": 9, "column": 5}}, {"id": 29, "type": "array_declarator", "text": "buff[0xff]", "parent": 27, "children": [30, 31], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 16}}, {"id": 30, "type": "identifier", "text": "buff", "parent": 29, "children": [], "start_point": {"row": 9, "column": 6}, "end_point": {"row": 9, "column": 10}}, {"id": 31, "type": "number_literal", "text": "0xff", "parent": 29, "children": [], "start_point": {"row": 9, "column": 11}, "end_point": {"row": 9, "column": 15}}, {"id": 32, "type": "declaration", "text": "char color;", "parent": 15, "children": [33, 34], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 12}}, {"id": 33, "type": "primitive_type", "text": "char", "parent": 32, "children": [], "start_point": {"row": 10, "column": 1}, "end_point": {"row": 10, "column": 5}}, {"id": 34, "type": "identifier", "text": "color", "parent": 32, "children": [], "start_point": {"row": 10, "column": 6}, "end_point": {"row": 10, "column": 11}}, {"id": 35, "type": "declaration", "text": "int i;", "parent": 15, "children": [36, 37], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 7}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 11, "column": 1}, "end_point": {"row": 11, "column": 4}}, {"id": 37, "type": "identifier", "text": "i", "parent": 35, "children": [], "start_point": {"row": 11, "column": 5}, "end_point": {"row": 11, "column": 6}}, {"id": 38, "type": "declaration", "text": "struct ListObj *it = NULL;", "parent": 15, "children": [39, 42], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 27}}, {"id": 39, "type": "struct_specifier", "text": "struct ListObj", "parent": 38, "children": [40, 41], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 15}}, {"id": 40, "type": "struct", "text": "struct", "parent": 39, "children": [], "start_point": {"row": 12, "column": 1}, "end_point": {"row": 12, "column": 7}}, {"id": 41, "type": "type_identifier", "text": "ListObj", "parent": 39, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 15}}, {"id": 42, "type": "init_declarator", "text": "*it = NULL", "parent": 38, "children": [43, 46, 47], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 26}}, {"id": 43, "type": "pointer_declarator", "text": "*it", "parent": 42, "children": [44, 45], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 19}}, {"id": 44, "type": "*", "text": "*", "parent": 43, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 45, "type": "identifier", "text": "it", "parent": 43, "children": [], "start_point": {"row": 12, "column": 17}, "end_point": {"row": 12, "column": 19}}, {"id": 46, "type": "=", "text": "=", "parent": 42, "children": [], "start_point": {"row": 12, "column": 20}, "end_point": {"row": 12, "column": 21}}, {"id": 47, "type": "null", "text": "NULL", "parent": 42, "children": [48], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 26}}, {"id": 48, "type": "NULL", "text": "NULL", "parent": 47, "children": [], "start_point": {"row": 12, "column": 22}, "end_point": {"row": 12, "column": 26}}, {"id": 49, "type": "call_expression", "text": "printf(\"time: %d\\n\", time)", "parent": 15, "children": [50, 51], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 27}}, {"id": 50, "type": "identifier", "text": "printf", "parent": 49, "children": [], "start_point": {"row": 13, "column": 1}, "end_point": {"row": 13, "column": 7}}, {"id": 51, "type": "argument_list", "text": "(\"time: %d\\n\", time)", "parent": 49, "children": [52, 54], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 27}}, {"id": 52, "type": "string_literal", "text": "\"time: %d\\n\"", "parent": 51, "children": [53], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 20}}, {"id": 53, "type": "escape_sequence", "text": "\\n", "parent": 52, "children": [], "start_point": {"row": 13, "column": 17}, "end_point": {"row": 13, "column": 19}}, {"id": 54, "type": "identifier", "text": "time", "parent": 51, "children": [], "start_point": {"row": 13, "column": 22}, "end_point": {"row": 13, "column": 26}}, {"id": 55, "type": "for_statement", "text": "for(i = 0; i < g->nodes_size; i++){\n\t\tswitch(((struct DFSNode*)g->nodes[i].data)->color){\n\t\t\tcase DFS_BLACK:\n\t\t\t\tcolor = 'B';\n\t\t\t\tbreak;\n\t\t\tcase DFS_WHITE:\n\t\t\t\tcolor = 'W';\n\t\t\t\tbreak;\n\t\t\tcase DFS_GRAY:\n\t\t\t\tcolor = 'G';\n\t\t\t\tbreak;\n\t\t}\n\t\tprintf(\"%c [%d] %.2d,%.2d \", color, g->nodes[i].key,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->d_time,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->f_time);\n\t\tit = g->adjacencies[i].head;\n\t\twhile(it != NULL){\n\t\t\tprintf(\"->[%d]\", it->key);\n\t\t\tit = it->next;\n\t\t}\n\t\tprintf(\"\\n\");\n\t}", "parent": 15, "children": [56, 60, 66], "start_point": {"row": 14, "column": 1}, "end_point": {"row": 35, "column": 2}}, {"id": 56, "type": "assignment_expression", "text": "i = 0", "parent": 55, "children": [57, 58, 59], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 10}}, {"id": 57, "type": "identifier", "text": "i", "parent": 56, "children": [], "start_point": {"row": 14, "column": 5}, "end_point": {"row": 14, "column": 6}}, {"id": 58, "type": "=", "text": "=", "parent": 56, "children": [], "start_point": {"row": 14, "column": 7}, "end_point": {"row": 14, "column": 8}}, {"id": 59, "type": "number_literal", "text": "0", "parent": 56, "children": [], "start_point": {"row": 14, "column": 9}, "end_point": {"row": 14, "column": 10}}, {"id": 60, "type": "binary_expression", "text": "i < g->nodes_size", "parent": 55, "children": [61, 62, 63], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 29}}, {"id": 61, "type": "identifier", "text": "i", "parent": 60, "children": [], "start_point": {"row": 14, "column": 12}, "end_point": {"row": 14, "column": 13}}, {"id": 62, "type": "<", "text": "<", "parent": 60, "children": [], "start_point": {"row": 14, "column": 14}, "end_point": {"row": 14, "column": 15}}, {"id": 63, "type": "field_expression", "text": "g->nodes_size", "parent": 60, "children": [64, 65], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 29}}, {"id": 64, "type": "identifier", "text": "g", "parent": 63, "children": [], "start_point": {"row": 14, "column": 16}, "end_point": {"row": 14, "column": 17}}, {"id": 65, "type": "field_identifier", "text": "nodes_size", "parent": 63, "children": [], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 29}}, {"id": 66, "type": "update_expression", "text": "i++", "parent": 55, "children": [67, 68], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 34}}, {"id": 67, "type": "identifier", "text": "i", "parent": 66, "children": [], "start_point": {"row": 14, "column": 31}, "end_point": {"row": 14, "column": 32}}, {"id": 68, "type": "++", "text": "++", "parent": 66, "children": [], "start_point": {"row": 14, "column": 32}, "end_point": {"row": 14, "column": 34}}, {"id": 69, "type": "switch_statement", "text": "switch(((struct DFSNode*)g->nodes[i].data)->color){\n\t\t\tcase DFS_BLACK:\n\t\t\t\tcolor = 'B';\n\t\t\t\tbreak;\n\t\t\tcase DFS_WHITE:\n\t\t\t\tcolor = 'W';\n\t\t\t\tbreak;\n\t\t\tcase DFS_GRAY:\n\t\t\t\tcolor = 'G';\n\t\t\t\tbreak;\n\t\t}", "parent": 55, "children": [70, 71], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 25, "column": 3}}, {"id": 70, "type": "switch", "text": "switch", "parent": 69, "children": [], "start_point": {"row": 15, "column": 2}, "end_point": {"row": 15, "column": 8}}, {"id": 71, "type": "parenthesized_expression", "text": "(((struct DFSNode*)g->nodes[i].data)->color)", "parent": 69, "children": [72], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 52}}, {"id": 72, "type": "field_expression", "text": "((struct DFSNode*)g->nodes[i].data)->color", "parent": 71, "children": [73, 88], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 51}}, {"id": 73, "type": "parenthesized_expression", "text": "((struct DFSNode*)g->nodes[i].data)", "parent": 72, "children": [74], "start_point": {"row": 15, "column": 9}, "end_point": {"row": 15, "column": 44}}, {"id": 74, "type": "cast_expression", "text": "(struct DFSNode*)g->nodes[i].data", "parent": 73, "children": [75, 81], "start_point": {"row": 15, "column": 10}, "end_point": {"row": 15, "column": 43}}, {"id": 75, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 74, "children": [76, 79], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 26}}, {"id": 76, "type": "struct_specifier", "text": "struct DFSNode", "parent": 75, "children": [77, 78], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 25}}, {"id": 77, "type": "struct", "text": "struct", "parent": 76, "children": [], "start_point": {"row": 15, "column": 11}, "end_point": {"row": 15, "column": 17}}, {"id": 78, "type": "type_identifier", "text": "DFSNode", "parent": 76, "children": [], "start_point": {"row": 15, "column": 18}, "end_point": {"row": 15, "column": 25}}, {"id": 79, "type": "abstract_pointer_declarator", "text": "*", "parent": 75, "children": [80], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 80, "type": "*", "text": "*", "parent": 79, "children": [], "start_point": {"row": 15, "column": 25}, "end_point": {"row": 15, "column": 26}}, {"id": 81, "type": "field_expression", "text": "g->nodes[i].data", "parent": 74, "children": [82, 87], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 43}}, {"id": 82, "type": "subscript_expression", "text": "g->nodes[i]", "parent": 81, "children": [83, 86], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 38}}, {"id": 83, "type": "field_expression", "text": "g->nodes", "parent": 82, "children": [84, 85], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 35}}, {"id": 84, "type": "identifier", "text": "g", "parent": 83, "children": [], "start_point": {"row": 15, "column": 27}, "end_point": {"row": 15, "column": 28}}, {"id": 85, "type": "field_identifier", "text": "nodes", "parent": 83, "children": [], "start_point": {"row": 15, "column": 30}, "end_point": {"row": 15, "column": 35}}, {"id": 86, "type": "identifier", "text": "i", "parent": 82, "children": [], "start_point": {"row": 15, "column": 36}, "end_point": {"row": 15, "column": 37}}, {"id": 87, "type": "field_identifier", "text": "data", "parent": 81, "children": [], "start_point": {"row": 15, "column": 39}, "end_point": {"row": 15, "column": 43}}, {"id": 88, "type": "field_identifier", "text": "color", "parent": 72, "children": [], "start_point": {"row": 15, "column": 46}, "end_point": {"row": 15, "column": 51}}, {"id": 89, "type": "case_statement", "text": "case DFS_BLACK:\n\t\t\t\tcolor = 'B';\n\t\t\t\tbreak;", "parent": 69, "children": [90, 91, 99], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 18, "column": 10}}, {"id": 90, "type": "case", "text": "case", "parent": 89, "children": [], "start_point": {"row": 16, "column": 3}, "end_point": {"row": 16, "column": 7}}, {"id": 91, "type": "identifier", "text": "DFS_BLACK", "parent": 89, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 17}}, {"id": 92, "type": "assignment_expression", "text": "color = 'B'", "parent": 89, "children": [93, 94, 95], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 15}}, {"id": 93, "type": "identifier", "text": "color", "parent": 92, "children": [], "start_point": {"row": 17, "column": 4}, "end_point": {"row": 17, "column": 9}}, {"id": 94, "type": "=", "text": "=", "parent": 92, "children": [], "start_point": {"row": 17, "column": 10}, "end_point": {"row": 17, "column": 11}}, {"id": 95, "type": "char_literal", "text": "'B'", "parent": 92, "children": [96, 97, 98], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 15}}, {"id": 96, "type": "'", "text": "'", "parent": 95, "children": [], "start_point": {"row": 17, "column": 12}, "end_point": {"row": 17, "column": 13}}, {"id": 97, "type": "character", "text": "B", "parent": 95, "children": [], "start_point": {"row": 17, "column": 13}, "end_point": {"row": 17, "column": 14}}, {"id": 98, "type": "'", "text": "'", "parent": 95, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 15}}, {"id": 99, "type": "break_statement", "text": "break;", "parent": 89, "children": [100], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 10}}, {"id": 100, "type": "break", "text": "break", "parent": 99, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 9}}, {"id": 101, "type": "case_statement", "text": "case DFS_WHITE:\n\t\t\t\tcolor = 'W';\n\t\t\t\tbreak;", "parent": 69, "children": [102, 103, 111], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 21, "column": 10}}, {"id": 102, "type": "case", "text": "case", "parent": 101, "children": [], "start_point": {"row": 19, "column": 3}, "end_point": {"row": 19, "column": 7}}, {"id": 103, "type": "identifier", "text": "DFS_WHITE", "parent": 101, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 17}}, {"id": 104, "type": "assignment_expression", "text": "color = 'W'", "parent": 101, "children": [105, 106, 107], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 15}}, {"id": 105, "type": "identifier", "text": "color", "parent": 104, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 9}}, {"id": 106, "type": "=", "text": "=", "parent": 104, "children": [], "start_point": {"row": 20, "column": 10}, "end_point": {"row": 20, "column": 11}}, {"id": 107, "type": "char_literal", "text": "'W'", "parent": 104, "children": [108, 109, 110], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 15}}, {"id": 108, "type": "'", "text": "'", "parent": 107, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 13}}, {"id": 109, "type": "character", "text": "W", "parent": 107, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 14}}, {"id": 110, "type": "'", "text": "'", "parent": 107, "children": [], "start_point": {"row": 20, "column": 14}, "end_point": {"row": 20, "column": 15}}, {"id": 111, "type": "break_statement", "text": "break;", "parent": 101, "children": [112], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 10}}, {"id": 112, "type": "break", "text": "break", "parent": 111, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 9}}, {"id": 113, "type": "case_statement", "text": "case DFS_GRAY:\n\t\t\t\tcolor = 'G';\n\t\t\t\tbreak;", "parent": 69, "children": [114, 115, 123], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 24, "column": 10}}, {"id": 114, "type": "case", "text": "case", "parent": 113, "children": [], "start_point": {"row": 22, "column": 3}, "end_point": {"row": 22, "column": 7}}, {"id": 115, "type": "identifier", "text": "DFS_GRAY", "parent": 113, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 16}}, {"id": 116, "type": "assignment_expression", "text": "color = 'G'", "parent": 113, "children": [117, 118, 119], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 15}}, {"id": 117, "type": "identifier", "text": "color", "parent": 116, "children": [], "start_point": {"row": 23, "column": 4}, "end_point": {"row": 23, "column": 9}}, {"id": 118, "type": "=", "text": "=", "parent": 116, "children": [], "start_point": {"row": 23, "column": 10}, "end_point": {"row": 23, "column": 11}}, {"id": 119, "type": "char_literal", "text": "'G'", "parent": 116, "children": [120, 121, 122], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 15}}, {"id": 120, "type": "'", "text": "'", "parent": 119, "children": [], "start_point": {"row": 23, "column": 12}, "end_point": {"row": 23, "column": 13}}, {"id": 121, "type": "character", "text": "G", "parent": 119, "children": [], "start_point": {"row": 23, "column": 13}, "end_point": {"row": 23, "column": 14}}, {"id": 122, "type": "'", "text": "'", "parent": 119, "children": [], "start_point": {"row": 23, "column": 14}, "end_point": {"row": 23, "column": 15}}, {"id": 123, "type": "break_statement", "text": "break;", "parent": 113, "children": [124], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 10}}, {"id": 124, "type": "break", "text": "break", "parent": 123, "children": [], "start_point": {"row": 24, "column": 4}, "end_point": {"row": 24, "column": 9}}, {"id": 125, "type": "call_expression", "text": "printf(\"%c [%d] %.2d,%.2d \", color, g->nodes[i].key,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->d_time,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->f_time)", "parent": 55, "children": [126, 127], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 28, "column": 48}}, {"id": 126, "type": "identifier", "text": "printf", "parent": 125, "children": [], "start_point": {"row": 26, "column": 2}, "end_point": {"row": 26, "column": 8}}, {"id": 127, "type": "argument_list", "text": "(\"%c [%d] %.2d,%.2d \", color, g->nodes[i].key,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->d_time,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->f_time)", "parent": 125, "children": [128, 129, 130, 137, 154], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 28, "column": 48}}, {"id": 128, "type": "string_literal", "text": "\"%c [%d] %.2d,%.2d \"", "parent": 127, "children": [], "start_point": {"row": 26, "column": 9}, "end_point": {"row": 26, "column": 29}}, {"id": 129, "type": "identifier", "text": "color", "parent": 127, "children": [], "start_point": {"row": 26, "column": 31}, "end_point": {"row": 26, "column": 36}}, {"id": 130, "type": "field_expression", "text": "g->nodes[i].key", "parent": 127, "children": [131, 136], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 53}}, {"id": 131, "type": "subscript_expression", "text": "g->nodes[i]", "parent": 130, "children": [132, 135], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 49}}, {"id": 132, "type": "field_expression", "text": "g->nodes", "parent": 131, "children": [133, 134], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 46}}, {"id": 133, "type": "identifier", "text": "g", "parent": 132, "children": [], "start_point": {"row": 26, "column": 38}, "end_point": {"row": 26, "column": 39}}, {"id": 134, "type": "field_identifier", "text": "nodes", "parent": 132, "children": [], "start_point": {"row": 26, "column": 41}, "end_point": {"row": 26, "column": 46}}, {"id": 135, "type": "identifier", "text": "i", "parent": 131, "children": [], "start_point": {"row": 26, "column": 47}, "end_point": {"row": 26, "column": 48}}, {"id": 136, "type": "field_identifier", "text": "key", "parent": 130, "children": [], "start_point": {"row": 26, "column": 50}, "end_point": {"row": 26, "column": 53}}, {"id": 137, "type": "field_expression", "text": "((struct DFSNode*)g->nodes[i].data)->d_time", "parent": 127, "children": [138, 153], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 47}}, {"id": 138, "type": "parenthesized_expression", "text": "((struct DFSNode*)g->nodes[i].data)", "parent": 137, "children": [139], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 39}}, {"id": 139, "type": "cast_expression", "text": "(struct DFSNode*)g->nodes[i].data", "parent": 138, "children": [140, 146], "start_point": {"row": 27, "column": 5}, "end_point": {"row": 27, "column": 38}}, {"id": 140, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 139, "children": [141, 144], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 21}}, {"id": 141, "type": "struct_specifier", "text": "struct DFSNode", "parent": 140, "children": [142, 143], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 20}}, {"id": 142, "type": "struct", "text": "struct", "parent": 141, "children": [], "start_point": {"row": 27, "column": 6}, "end_point": {"row": 27, "column": 12}}, {"id": 143, "type": "type_identifier", "text": "DFSNode", "parent": 141, "children": [], "start_point": {"row": 27, "column": 13}, "end_point": {"row": 27, "column": 20}}, {"id": 144, "type": "abstract_pointer_declarator", "text": "*", "parent": 140, "children": [145], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 145, "type": "*", "text": "*", "parent": 144, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 21}}, {"id": 146, "type": "field_expression", "text": "g->nodes[i].data", "parent": 139, "children": [147, 152], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 38}}, {"id": 147, "type": "subscript_expression", "text": "g->nodes[i]", "parent": 146, "children": [148, 151], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 33}}, {"id": 148, "type": "field_expression", "text": "g->nodes", "parent": 147, "children": [149, 150], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 30}}, {"id": 149, "type": "identifier", "text": "g", "parent": 148, "children": [], "start_point": {"row": 27, "column": 22}, "end_point": {"row": 27, "column": 23}}, {"id": 150, "type": "field_identifier", "text": "nodes", "parent": 148, "children": [], "start_point": {"row": 27, "column": 25}, "end_point": {"row": 27, "column": 30}}, {"id": 151, "type": "identifier", "text": "i", "parent": 147, "children": [], "start_point": {"row": 27, "column": 31}, "end_point": {"row": 27, "column": 32}}, {"id": 152, "type": "field_identifier", "text": "data", "parent": 146, "children": [], "start_point": {"row": 27, "column": 34}, "end_point": {"row": 27, "column": 38}}, {"id": 153, "type": "field_identifier", "text": "d_time", "parent": 137, "children": [], "start_point": {"row": 27, "column": 41}, "end_point": {"row": 27, "column": 47}}, {"id": 154, "type": "field_expression", "text": "((struct DFSNode*)g->nodes[i].data)->f_time", "parent": 127, "children": [155, 170], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 47}}, {"id": 155, "type": "parenthesized_expression", "text": "((struct DFSNode*)g->nodes[i].data)", "parent": 154, "children": [156], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 39}}, {"id": 156, "type": "cast_expression", "text": "(struct DFSNode*)g->nodes[i].data", "parent": 155, "children": [157, 163], "start_point": {"row": 28, "column": 5}, "end_point": {"row": 28, "column": 38}}, {"id": 157, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 156, "children": [158, 161], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 21}}, {"id": 158, "type": "struct_specifier", "text": "struct DFSNode", "parent": 157, "children": [159, 160], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 20}}, {"id": 159, "type": "struct", "text": "struct", "parent": 158, "children": [], "start_point": {"row": 28, "column": 6}, "end_point": {"row": 28, "column": 12}}, {"id": 160, "type": "type_identifier", "text": "DFSNode", "parent": 158, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 20}}, {"id": 161, "type": "abstract_pointer_declarator", "text": "*", "parent": 157, "children": [162], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 162, "type": "*", "text": "*", "parent": 161, "children": [], "start_point": {"row": 28, "column": 20}, "end_point": {"row": 28, "column": 21}}, {"id": 163, "type": "field_expression", "text": "g->nodes[i].data", "parent": 156, "children": [164, 169], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 38}}, {"id": 164, "type": "subscript_expression", "text": "g->nodes[i]", "parent": 163, "children": [165, 168], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 33}}, {"id": 165, "type": "field_expression", "text": "g->nodes", "parent": 164, "children": [166, 167], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 30}}, {"id": 166, "type": "identifier", "text": "g", "parent": 165, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 23}}, {"id": 167, "type": "field_identifier", "text": "nodes", "parent": 165, "children": [], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 30}}, {"id": 168, "type": "identifier", "text": "i", "parent": 164, "children": [], "start_point": {"row": 28, "column": 31}, "end_point": {"row": 28, "column": 32}}, {"id": 169, "type": "field_identifier", "text": "data", "parent": 163, "children": [], "start_point": {"row": 28, "column": 34}, "end_point": {"row": 28, "column": 38}}, {"id": 170, "type": "field_identifier", "text": "f_time", "parent": 154, "children": [], "start_point": {"row": 28, "column": 41}, "end_point": {"row": 28, "column": 47}}, {"id": 171, "type": "assignment_expression", "text": "it = g->adjacencies[i].head", "parent": 55, "children": [172, 173, 174], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 29}}, {"id": 172, "type": "identifier", "text": "it", "parent": 171, "children": [], "start_point": {"row": 29, "column": 2}, "end_point": {"row": 29, "column": 4}}, {"id": 173, "type": "=", "text": "=", "parent": 171, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 6}}, {"id": 174, "type": "field_expression", "text": "g->adjacencies[i].head", "parent": 171, "children": [175, 180], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 29}}, {"id": 175, "type": "subscript_expression", "text": "g->adjacencies[i]", "parent": 174, "children": [176, 179], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 24}}, {"id": 176, "type": "field_expression", "text": "g->adjacencies", "parent": 175, "children": [177, 178], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 21}}, {"id": 177, "type": "identifier", "text": "g", "parent": 176, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 8}}, {"id": 178, "type": "field_identifier", "text": "adjacencies", "parent": 176, "children": [], "start_point": {"row": 29, "column": 10}, "end_point": {"row": 29, "column": 21}}, {"id": 179, "type": "identifier", "text": "i", "parent": 175, "children": [], "start_point": {"row": 29, "column": 22}, "end_point": {"row": 29, "column": 23}}, {"id": 180, "type": "field_identifier", "text": "head", "parent": 174, "children": [], "start_point": {"row": 29, "column": 25}, "end_point": {"row": 29, "column": 29}}, {"id": 181, "type": "while_statement", "text": "while(it != NULL){\n\t\t\tprintf(\"->[%d]\", it->key);\n\t\t\tit = it->next;\n\t\t}", "parent": 55, "children": [182], "start_point": {"row": 30, "column": 2}, "end_point": {"row": 33, "column": 3}}, {"id": 182, "type": "parenthesized_expression", "text": "(it != NULL)", "parent": 181, "children": [183], "start_point": {"row": 30, "column": 7}, "end_point": {"row": 30, "column": 19}}, {"id": 183, "type": "binary_expression", "text": "it != NULL", "parent": 182, "children": [184, 185, 186], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 18}}, {"id": 184, "type": "identifier", "text": "it", "parent": 183, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 10}}, {"id": 185, "type": "!=", "text": "!=", "parent": 183, "children": [], "start_point": {"row": 30, "column": 11}, "end_point": {"row": 30, "column": 13}}, {"id": 186, "type": "null", "text": "NULL", "parent": 183, "children": [187], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 18}}, {"id": 187, "type": "NULL", "text": "NULL", "parent": 186, "children": [], "start_point": {"row": 30, "column": 14}, "end_point": {"row": 30, "column": 18}}, {"id": 188, "type": "call_expression", "text": "printf(\"->[%d]\", it->key)", "parent": 181, "children": [189, 190], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 28}}, {"id": 189, "type": "identifier", "text": "printf", "parent": 188, "children": [], "start_point": {"row": 31, "column": 3}, "end_point": {"row": 31, "column": 9}}, {"id": 190, "type": "argument_list", "text": "(\"->[%d]\", it->key)", "parent": 188, "children": [191, 192], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 28}}, {"id": 191, "type": "string_literal", "text": "\"->[%d]\"", "parent": 190, "children": [], "start_point": {"row": 31, "column": 10}, "end_point": {"row": 31, "column": 18}}, {"id": 192, "type": "field_expression", "text": "it->key", "parent": 190, "children": [193, 194], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 27}}, {"id": 193, "type": "identifier", "text": "it", "parent": 192, "children": [], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 22}}, {"id": 194, "type": "field_identifier", "text": "key", "parent": 192, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 27}}, {"id": 195, "type": "assignment_expression", "text": "it = it->next", "parent": 181, "children": [196, 197, 198], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 16}}, {"id": 196, "type": "identifier", "text": "it", "parent": 195, "children": [], "start_point": {"row": 32, "column": 3}, "end_point": {"row": 32, "column": 5}}, {"id": 197, "type": "=", "text": "=", "parent": 195, "children": [], "start_point": {"row": 32, "column": 6}, "end_point": {"row": 32, "column": 7}}, {"id": 198, "type": "field_expression", "text": "it->next", "parent": 195, "children": [199, 200], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 16}}, {"id": 199, "type": "identifier", "text": "it", "parent": 198, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 10}}, {"id": 200, "type": "field_identifier", "text": "next", "parent": 198, "children": [], "start_point": {"row": 32, "column": 12}, "end_point": {"row": 32, "column": 16}}, {"id": 201, "type": "call_expression", "text": "printf(\"\\n\")", "parent": 55, "children": [202, 203], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 14}}, {"id": 202, "type": "identifier", "text": "printf", "parent": 201, "children": [], "start_point": {"row": 34, "column": 2}, "end_point": {"row": 34, "column": 8}}, {"id": 203, "type": "argument_list", "text": "(\"\\n\")", "parent": 201, "children": [204], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 14}}, {"id": 204, "type": "string_literal", "text": "\"\\n\"", "parent": 203, "children": [205], "start_point": {"row": 34, "column": 9}, "end_point": {"row": 34, "column": 13}}, {"id": 205, "type": "escape_sequence", "text": "\\n", "parent": 204, "children": [], "start_point": {"row": 34, "column": 10}, "end_point": {"row": 34, "column": 12}}, {"id": 206, "type": "call_expression", "text": "gets(buff)", "parent": 15, "children": [207, 208], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 11}}, {"id": 207, "type": "identifier", "text": "gets", "parent": 206, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 208, "type": "argument_list", "text": "(buff)", "parent": 206, "children": [209], "start_point": {"row": 36, "column": 5}, "end_point": {"row": 36, "column": 11}}, {"id": 209, "type": "identifier", "text": "buff", "parent": 208, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 10}}, {"id": 210, "type": "function_definition", "text": "static\nvoid dfs_visit(struct Graph *g, struct GraphNode *u){\n\tstruct ListObj *it = NULL;\n\tstruct GraphNode *v = NULL;\n\ttime++;\n\t((struct DFSNode*)u->data)->d_time = time;\n\t((struct DFSNode*)u->data)->color = DFS_GRAY;\n\tit = g->adjacencies[u->key].head;\n\tdfs_print_graph(g);\n\twhile(it != NULL){\n\t\tv = ((struct GraphEdge*)it->data)->node;\n\t\tif(((struct DFSNode*)v->data)->color == DFS_WHITE){\n\t\t\t((struct DFSNode*)v->data)->parent = u;\n\t\t\tdfs_visit(g, v);\n\t\t}\n\t\tit = it->next;\n\t}\n\t((struct DFSNode*)u->data)->color = DFS_BLACK;\n\ttime++;\n\t((struct DFSNode*)u->data)->f_time = time;\n\tdfs_print_graph(g);\n}", "parent": null, "children": [211, 212], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 60, "column": 1}}, {"id": 211, "type": "primitive_type", "text": "void", "parent": 210, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 4}}, {"id": 212, "type": "function_declarator", "text": "dfs_visit(struct Graph *g, struct GraphNode *u)", "parent": 210, "children": [213, 214], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 52}}, {"id": 213, "type": "identifier", "text": "dfs_visit", "parent": 212, "children": [], "start_point": {"row": 40, "column": 5}, "end_point": {"row": 40, "column": 14}}, {"id": 214, "type": "parameter_list", "text": "(struct Graph *g, struct GraphNode *u)", "parent": 212, "children": [215, 222], "start_point": {"row": 40, "column": 14}, "end_point": {"row": 40, "column": 52}}, {"id": 215, "type": "parameter_declaration", "text": "struct Graph *g", "parent": 214, "children": [216, 219], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 30}}, {"id": 216, "type": "struct_specifier", "text": "struct Graph", "parent": 215, "children": [217, 218], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 27}}, {"id": 217, "type": "struct", "text": "struct", "parent": 216, "children": [], "start_point": {"row": 40, "column": 15}, "end_point": {"row": 40, "column": 21}}, {"id": 218, "type": "type_identifier", "text": "Graph", "parent": 216, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 27}}, {"id": 219, "type": "pointer_declarator", "text": "*g", "parent": 215, "children": [220, 221], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 30}}, {"id": 220, "type": "*", "text": "*", "parent": 219, "children": [], "start_point": {"row": 40, "column": 28}, "end_point": {"row": 40, "column": 29}}, {"id": 221, "type": "identifier", "text": "g", "parent": 219, "children": [], "start_point": {"row": 40, "column": 29}, "end_point": {"row": 40, "column": 30}}, {"id": 222, "type": "parameter_declaration", "text": "struct GraphNode *u", "parent": 214, "children": [223, 226], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 51}}, {"id": 223, "type": "struct_specifier", "text": "struct GraphNode", "parent": 222, "children": [224, 225], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 48}}, {"id": 224, "type": "struct", "text": "struct", "parent": 223, "children": [], "start_point": {"row": 40, "column": 32}, "end_point": {"row": 40, "column": 38}}, {"id": 225, "type": "type_identifier", "text": "GraphNode", "parent": 223, "children": [], "start_point": {"row": 40, "column": 39}, "end_point": {"row": 40, "column": 48}}, {"id": 226, "type": "pointer_declarator", "text": "*u", "parent": 222, "children": [227, 228], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 51}}, {"id": 227, "type": "*", "text": "*", "parent": 226, "children": [], "start_point": {"row": 40, "column": 49}, "end_point": {"row": 40, "column": 50}}, {"id": 228, "type": "identifier", "text": "u", "parent": 226, "children": [], "start_point": {"row": 40, "column": 50}, "end_point": {"row": 40, "column": 51}}, {"id": 229, "type": "declaration", "text": "struct ListObj *it = NULL;", "parent": 210, "children": [230, 233], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 27}}, {"id": 230, "type": "struct_specifier", "text": "struct ListObj", "parent": 229, "children": [231, 232], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 15}}, {"id": 231, "type": "struct", "text": "struct", "parent": 230, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 7}}, {"id": 232, "type": "type_identifier", "text": "ListObj", "parent": 230, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 15}}, {"id": 233, "type": "init_declarator", "text": "*it = NULL", "parent": 229, "children": [234, 237, 238], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 26}}, {"id": 234, "type": "pointer_declarator", "text": "*it", "parent": 233, "children": [235, 236], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 19}}, {"id": 235, "type": "*", "text": "*", "parent": 234, "children": [], "start_point": {"row": 41, "column": 16}, "end_point": {"row": 41, "column": 17}}, {"id": 236, "type": "identifier", "text": "it", "parent": 234, "children": [], "start_point": {"row": 41, "column": 17}, "end_point": {"row": 41, "column": 19}}, {"id": 237, "type": "=", "text": "=", "parent": 233, "children": [], "start_point": {"row": 41, "column": 20}, "end_point": {"row": 41, "column": 21}}, {"id": 238, "type": "null", "text": "NULL", "parent": 233, "children": [239], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 26}}, {"id": 239, "type": "NULL", "text": "NULL", "parent": 238, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 26}}, {"id": 240, "type": "declaration", "text": "struct GraphNode *v = NULL;", "parent": 210, "children": [241, 244], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 28}}, {"id": 241, "type": "struct_specifier", "text": "struct GraphNode", "parent": 240, "children": [242, 243], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 17}}, {"id": 242, "type": "struct", "text": "struct", "parent": 241, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 7}}, {"id": 243, "type": "type_identifier", "text": "GraphNode", "parent": 241, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 17}}, {"id": 244, "type": "init_declarator", "text": "*v = NULL", "parent": 240, "children": [245, 248, 249], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 27}}, {"id": 245, "type": "pointer_declarator", "text": "*v", "parent": 244, "children": [246, 247], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 20}}, {"id": 246, "type": "*", "text": "*", "parent": 245, "children": [], "start_point": {"row": 42, "column": 18}, "end_point": {"row": 42, "column": 19}}, {"id": 247, "type": "identifier", "text": "v", "parent": 245, "children": [], "start_point": {"row": 42, "column": 19}, "end_point": {"row": 42, "column": 20}}, {"id": 248, "type": "=", "text": "=", "parent": 244, "children": [], "start_point": {"row": 42, "column": 21}, "end_point": {"row": 42, "column": 22}}, {"id": 249, "type": "null", "text": "NULL", "parent": 244, "children": [250], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 27}}, {"id": 250, "type": "NULL", "text": "NULL", "parent": 249, "children": [], "start_point": {"row": 42, "column": 23}, "end_point": {"row": 42, "column": 27}}, {"id": 251, "type": "update_expression", "text": "time++", "parent": 210, "children": [252, 253], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 7}}, {"id": 252, "type": "identifier", "text": "time", "parent": 251, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 5}}, {"id": 253, "type": "++", "text": "++", "parent": 251, "children": [], "start_point": {"row": 43, "column": 5}, "end_point": {"row": 43, "column": 7}}, {"id": 254, "type": "assignment_expression", "text": "((struct DFSNode*)u->data)->d_time = time", "parent": 210, "children": [255, 268, 269], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 42}}, {"id": 255, "type": "field_expression", "text": "((struct DFSNode*)u->data)->d_time", "parent": 254, "children": [256, 267], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 35}}, {"id": 256, "type": "parenthesized_expression", "text": "((struct DFSNode*)u->data)", "parent": 255, "children": [257], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 27}}, {"id": 257, "type": "cast_expression", "text": "(struct DFSNode*)u->data", "parent": 256, "children": [258, 264], "start_point": {"row": 44, "column": 2}, "end_point": {"row": 44, "column": 26}}, {"id": 258, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 257, "children": [259, 262], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 18}}, {"id": 259, "type": "struct_specifier", "text": "struct DFSNode", "parent": 258, "children": [260, 261], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 17}}, {"id": 260, "type": "struct", "text": "struct", "parent": 259, "children": [], "start_point": {"row": 44, "column": 3}, "end_point": {"row": 44, "column": 9}}, {"id": 261, "type": "type_identifier", "text": "DFSNode", "parent": 259, "children": [], "start_point": {"row": 44, "column": 10}, "end_point": {"row": 44, "column": 17}}, {"id": 262, "type": "abstract_pointer_declarator", "text": "*", "parent": 258, "children": [263], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 44, "column": 17}, "end_point": {"row": 44, "column": 18}}, {"id": 264, "type": "field_expression", "text": "u->data", "parent": 257, "children": [265, 266], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 26}}, {"id": 265, "type": "identifier", "text": "u", "parent": 264, "children": [], "start_point": {"row": 44, "column": 19}, "end_point": {"row": 44, "column": 20}}, {"id": 266, "type": "field_identifier", "text": "data", "parent": 264, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 26}}, {"id": 267, "type": "field_identifier", "text": "d_time", "parent": 255, "children": [], "start_point": {"row": 44, "column": 29}, "end_point": {"row": 44, "column": 35}}, {"id": 268, "type": "=", "text": "=", "parent": 254, "children": [], "start_point": {"row": 44, "column": 36}, "end_point": {"row": 44, "column": 37}}, {"id": 269, "type": "identifier", "text": "time", "parent": 254, "children": [], "start_point": {"row": 44, "column": 38}, "end_point": {"row": 44, "column": 42}}, {"id": 270, "type": "assignment_expression", "text": "((struct DFSNode*)u->data)->color = DFS_GRAY", "parent": 210, "children": [271, 284, 285], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 45}}, {"id": 271, "type": "field_expression", "text": "((struct DFSNode*)u->data)->color", "parent": 270, "children": [272, 283], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 34}}, {"id": 272, "type": "parenthesized_expression", "text": "((struct DFSNode*)u->data)", "parent": 271, "children": [273], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 27}}, {"id": 273, "type": "cast_expression", "text": "(struct DFSNode*)u->data", "parent": 272, "children": [274, 280], "start_point": {"row": 45, "column": 2}, "end_point": {"row": 45, "column": 26}}, {"id": 274, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 273, "children": [275, 278], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 18}}, {"id": 275, "type": "struct_specifier", "text": "struct DFSNode", "parent": 274, "children": [276, 277], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 17}}, {"id": 276, "type": "struct", "text": "struct", "parent": 275, "children": [], "start_point": {"row": 45, "column": 3}, "end_point": {"row": 45, "column": 9}}, {"id": 277, "type": "type_identifier", "text": "DFSNode", "parent": 275, "children": [], "start_point": {"row": 45, "column": 10}, "end_point": {"row": 45, "column": 17}}, {"id": 278, "type": "abstract_pointer_declarator", "text": "*", "parent": 274, "children": [279], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 18}}, {"id": 279, "type": "*", "text": "*", "parent": 278, "children": [], "start_point": {"row": 45, "column": 17}, "end_point": {"row": 45, "column": 18}}, {"id": 280, "type": "field_expression", "text": "u->data", "parent": 273, "children": [281, 282], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 26}}, {"id": 281, "type": "identifier", "text": "u", "parent": 280, "children": [], "start_point": {"row": 45, "column": 19}, "end_point": {"row": 45, "column": 20}}, {"id": 282, "type": "field_identifier", "text": "data", "parent": 280, "children": [], "start_point": {"row": 45, "column": 22}, "end_point": {"row": 45, "column": 26}}, {"id": 283, "type": "field_identifier", "text": "color", "parent": 271, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 34}}, {"id": 284, "type": "=", "text": "=", "parent": 270, "children": [], "start_point": {"row": 45, "column": 35}, "end_point": {"row": 45, "column": 36}}, {"id": 285, "type": "identifier", "text": "DFS_GRAY", "parent": 270, "children": [], "start_point": {"row": 45, "column": 37}, "end_point": {"row": 45, "column": 45}}, {"id": 286, "type": "assignment_expression", "text": "it = g->adjacencies[u->key].head", "parent": 210, "children": [287, 288, 289], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 33}}, {"id": 287, "type": "identifier", "text": "it", "parent": 286, "children": [], "start_point": {"row": 46, "column": 1}, "end_point": {"row": 46, "column": 3}}, {"id": 288, "type": "=", "text": "=", "parent": 286, "children": [], "start_point": {"row": 46, "column": 4}, "end_point": {"row": 46, "column": 5}}, {"id": 289, "type": "field_expression", "text": "g->adjacencies[u->key].head", "parent": 286, "children": [290, 297], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 33}}, {"id": 290, "type": "subscript_expression", "text": "g->adjacencies[u->key]", "parent": 289, "children": [291, 294], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 28}}, {"id": 291, "type": "field_expression", "text": "g->adjacencies", "parent": 290, "children": [292, 293], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 20}}, {"id": 292, "type": "identifier", "text": "g", "parent": 291, "children": [], "start_point": {"row": 46, "column": 6}, "end_point": {"row": 46, "column": 7}}, {"id": 293, "type": "field_identifier", "text": "adjacencies", "parent": 291, "children": [], "start_point": {"row": 46, "column": 9}, "end_point": {"row": 46, "column": 20}}, {"id": 294, "type": "field_expression", "text": "u->key", "parent": 290, "children": [295, 296], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 27}}, {"id": 295, "type": "identifier", "text": "u", "parent": 294, "children": [], "start_point": {"row": 46, "column": 21}, "end_point": {"row": 46, "column": 22}}, {"id": 296, "type": "field_identifier", "text": "key", "parent": 294, "children": [], "start_point": {"row": 46, "column": 24}, "end_point": {"row": 46, "column": 27}}, {"id": 297, "type": "field_identifier", "text": "head", "parent": 289, "children": [], "start_point": {"row": 46, "column": 29}, "end_point": {"row": 46, "column": 33}}, {"id": 298, "type": "call_expression", "text": "dfs_print_graph(g)", "parent": 210, "children": [299, 300], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 19}}, {"id": 299, "type": "identifier", "text": "dfs_print_graph", "parent": 298, "children": [], "start_point": {"row": 47, "column": 1}, "end_point": {"row": 47, "column": 16}}, {"id": 300, "type": "argument_list", "text": "(g)", "parent": 298, "children": [301], "start_point": {"row": 47, "column": 16}, "end_point": {"row": 47, "column": 19}}, {"id": 301, "type": "identifier", "text": "g", "parent": 300, "children": [], "start_point": {"row": 47, "column": 17}, "end_point": {"row": 47, "column": 18}}, {"id": 302, "type": "while_statement", "text": "while(it != NULL){\n\t\tv = ((struct GraphEdge*)it->data)->node;\n\t\tif(((struct DFSNode*)v->data)->color == DFS_WHITE){\n\t\t\t((struct DFSNode*)v->data)->parent = u;\n\t\t\tdfs_visit(g, v);\n\t\t}\n\t\tit = it->next;\n\t}", "parent": 210, "children": [303], "start_point": {"row": 48, "column": 1}, "end_point": {"row": 55, "column": 2}}, {"id": 303, "type": "parenthesized_expression", "text": "(it != NULL)", "parent": 302, "children": [304], "start_point": {"row": 48, "column": 6}, "end_point": {"row": 48, "column": 18}}, {"id": 304, "type": "binary_expression", "text": "it != NULL", "parent": 303, "children": [305, 306, 307], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 17}}, {"id": 305, "type": "identifier", "text": "it", "parent": 304, "children": [], "start_point": {"row": 48, "column": 7}, "end_point": {"row": 48, "column": 9}}, {"id": 306, "type": "!=", "text": "!=", "parent": 304, "children": [], "start_point": {"row": 48, "column": 10}, "end_point": {"row": 48, "column": 12}}, {"id": 307, "type": "null", "text": "NULL", "parent": 304, "children": [308], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 17}}, {"id": 308, "type": "NULL", "text": "NULL", "parent": 307, "children": [], "start_point": {"row": 48, "column": 13}, "end_point": {"row": 48, "column": 17}}, {"id": 309, "type": "assignment_expression", "text": "v = ((struct GraphEdge*)it->data)->node", "parent": 302, "children": [310, 311, 312], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 41}}, {"id": 310, "type": "identifier", "text": "v", "parent": 309, "children": [], "start_point": {"row": 49, "column": 2}, "end_point": {"row": 49, "column": 3}}, {"id": 311, "type": "=", "text": "=", "parent": 309, "children": [], "start_point": {"row": 49, "column": 4}, "end_point": {"row": 49, "column": 5}}, {"id": 312, "type": "field_expression", "text": "((struct GraphEdge*)it->data)->node", "parent": 309, "children": [313, 324], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 41}}, {"id": 313, "type": "parenthesized_expression", "text": "((struct GraphEdge*)it->data)", "parent": 312, "children": [314], "start_point": {"row": 49, "column": 6}, "end_point": {"row": 49, "column": 35}}, {"id": 314, "type": "cast_expression", "text": "(struct GraphEdge*)it->data", "parent": 313, "children": [315, 321], "start_point": {"row": 49, "column": 7}, "end_point": {"row": 49, "column": 34}}, {"id": 315, "type": "type_descriptor", "text": "struct GraphEdge*", "parent": 314, "children": [316, 319], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 25}}, {"id": 316, "type": "struct_specifier", "text": "struct GraphEdge", "parent": 315, "children": [317, 318], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 24}}, {"id": 317, "type": "struct", "text": "struct", "parent": 316, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 14}}, {"id": 318, "type": "type_identifier", "text": "GraphEdge", "parent": 316, "children": [], "start_point": {"row": 49, "column": 15}, "end_point": {"row": 49, "column": 24}}, {"id": 319, "type": "abstract_pointer_declarator", "text": "*", "parent": 315, "children": [320], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 25}}, {"id": 320, "type": "*", "text": "*", "parent": 319, "children": [], "start_point": {"row": 49, "column": 24}, "end_point": {"row": 49, "column": 25}}, {"id": 321, "type": "field_expression", "text": "it->data", "parent": 314, "children": [322, 323], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 34}}, {"id": 322, "type": "identifier", "text": "it", "parent": 321, "children": [], "start_point": {"row": 49, "column": 26}, "end_point": {"row": 49, "column": 28}}, {"id": 323, "type": "field_identifier", "text": "data", "parent": 321, "children": [], "start_point": {"row": 49, "column": 30}, "end_point": {"row": 49, "column": 34}}, {"id": 324, "type": "field_identifier", "text": "node", "parent": 312, "children": [], "start_point": {"row": 49, "column": 37}, "end_point": {"row": 49, "column": 41}}, {"id": 325, "type": "if_statement", "text": "if(((struct DFSNode*)v->data)->color == DFS_WHITE){\n\t\t\t((struct DFSNode*)v->data)->parent = u;\n\t\t\tdfs_visit(g, v);\n\t\t}", "parent": 302, "children": [326], "start_point": {"row": 50, "column": 2}, "end_point": {"row": 53, "column": 3}}, {"id": 326, "type": "parenthesized_expression", "text": "(((struct DFSNode*)v->data)->color == DFS_WHITE)", "parent": 325, "children": [327], "start_point": {"row": 50, "column": 4}, "end_point": {"row": 50, "column": 52}}, {"id": 327, "type": "binary_expression", "text": "((struct DFSNode*)v->data)->color == DFS_WHITE", "parent": 326, "children": [328, 341, 342], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 51}}, {"id": 328, "type": "field_expression", "text": "((struct DFSNode*)v->data)->color", "parent": 327, "children": [329, 340], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 38}}, {"id": 329, "type": "parenthesized_expression", "text": "((struct DFSNode*)v->data)", "parent": 328, "children": [330], "start_point": {"row": 50, "column": 5}, "end_point": {"row": 50, "column": 31}}, {"id": 330, "type": "cast_expression", "text": "(struct DFSNode*)v->data", "parent": 329, "children": [331, 337], "start_point": {"row": 50, "column": 6}, "end_point": {"row": 50, "column": 30}}, {"id": 331, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 330, "children": [332, 335], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 22}}, {"id": 332, "type": "struct_specifier", "text": "struct DFSNode", "parent": 331, "children": [333, 334], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 21}}, {"id": 333, "type": "struct", "text": "struct", "parent": 332, "children": [], "start_point": {"row": 50, "column": 7}, "end_point": {"row": 50, "column": 13}}, {"id": 334, "type": "type_identifier", "text": "DFSNode", "parent": 332, "children": [], "start_point": {"row": 50, "column": 14}, "end_point": {"row": 50, "column": 21}}, {"id": 335, "type": "abstract_pointer_declarator", "text": "*", "parent": 331, "children": [336], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 22}}, {"id": 336, "type": "*", "text": "*", "parent": 335, "children": [], "start_point": {"row": 50, "column": 21}, "end_point": {"row": 50, "column": 22}}, {"id": 337, "type": "field_expression", "text": "v->data", "parent": 330, "children": [338, 339], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 30}}, {"id": 338, "type": "identifier", "text": "v", "parent": 337, "children": [], "start_point": {"row": 50, "column": 23}, "end_point": {"row": 50, "column": 24}}, {"id": 339, "type": "field_identifier", "text": "data", "parent": 337, "children": [], "start_point": {"row": 50, "column": 26}, "end_point": {"row": 50, "column": 30}}, {"id": 340, "type": "field_identifier", "text": "color", "parent": 328, "children": [], "start_point": {"row": 50, "column": 33}, "end_point": {"row": 50, "column": 38}}, {"id": 341, "type": "==", "text": "==", "parent": 327, "children": [], "start_point": {"row": 50, "column": 39}, "end_point": {"row": 50, "column": 41}}, {"id": 342, "type": "identifier", "text": "DFS_WHITE", "parent": 327, "children": [], "start_point": {"row": 50, "column": 42}, "end_point": {"row": 50, "column": 51}}, {"id": 343, "type": "assignment_expression", "text": "((struct DFSNode*)v->data)->parent = u", "parent": 325, "children": [344, 357, 358], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 41}}, {"id": 344, "type": "field_expression", "text": "((struct DFSNode*)v->data)->parent", "parent": 343, "children": [345, 356], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 37}}, {"id": 345, "type": "parenthesized_expression", "text": "((struct DFSNode*)v->data)", "parent": 344, "children": [346], "start_point": {"row": 51, "column": 3}, "end_point": {"row": 51, "column": 29}}, {"id": 346, "type": "cast_expression", "text": "(struct DFSNode*)v->data", "parent": 345, "children": [347, 353], "start_point": {"row": 51, "column": 4}, "end_point": {"row": 51, "column": 28}}, {"id": 347, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 346, "children": [348, 351], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 20}}, {"id": 348, "type": "struct_specifier", "text": "struct DFSNode", "parent": 347, "children": [349, 350], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 19}}, {"id": 349, "type": "struct", "text": "struct", "parent": 348, "children": [], "start_point": {"row": 51, "column": 5}, "end_point": {"row": 51, "column": 11}}, {"id": 350, "type": "type_identifier", "text": "DFSNode", "parent": 348, "children": [], "start_point": {"row": 51, "column": 12}, "end_point": {"row": 51, "column": 19}}, {"id": 351, "type": "abstract_pointer_declarator", "text": "*", "parent": 347, "children": [352], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 352, "type": "*", "text": "*", "parent": 351, "children": [], "start_point": {"row": 51, "column": 19}, "end_point": {"row": 51, "column": 20}}, {"id": 353, "type": "field_expression", "text": "v->data", "parent": 346, "children": [354, 355], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 28}}, {"id": 354, "type": "identifier", "text": "v", "parent": 353, "children": [], "start_point": {"row": 51, "column": 21}, "end_point": {"row": 51, "column": 22}}, {"id": 355, "type": "field_identifier", "text": "data", "parent": 353, "children": [], "start_point": {"row": 51, "column": 24}, "end_point": {"row": 51, "column": 28}}, {"id": 356, "type": "field_identifier", "text": "parent", "parent": 344, "children": [], "start_point": {"row": 51, "column": 31}, "end_point": {"row": 51, "column": 37}}, {"id": 357, "type": "=", "text": "=", "parent": 343, "children": [], "start_point": {"row": 51, "column": 38}, "end_point": {"row": 51, "column": 39}}, {"id": 358, "type": "identifier", "text": "u", "parent": 343, "children": [], "start_point": {"row": 51, "column": 40}, "end_point": {"row": 51, "column": 41}}, {"id": 359, "type": "call_expression", "text": "dfs_visit(g, v)", "parent": 325, "children": [360, 361], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 18}}, {"id": 360, "type": "identifier", "text": "dfs_visit", "parent": 359, "children": [], "start_point": {"row": 52, "column": 3}, "end_point": {"row": 52, "column": 12}}, {"id": 361, "type": "argument_list", "text": "(g, v)", "parent": 359, "children": [362, 363], "start_point": {"row": 52, "column": 12}, "end_point": {"row": 52, "column": 18}}, {"id": 362, "type": "identifier", "text": "g", "parent": 361, "children": [], "start_point": {"row": 52, "column": 13}, "end_point": {"row": 52, "column": 14}}, {"id": 363, "type": "identifier", "text": "v", "parent": 361, "children": [], "start_point": {"row": 52, "column": 16}, "end_point": {"row": 52, "column": 17}}, {"id": 364, "type": "assignment_expression", "text": "it = it->next", "parent": 302, "children": [365, 366, 367], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 15}}, {"id": 365, "type": "identifier", "text": "it", "parent": 364, "children": [], "start_point": {"row": 54, "column": 2}, "end_point": {"row": 54, "column": 4}}, {"id": 366, "type": "=", "text": "=", "parent": 364, "children": [], "start_point": {"row": 54, "column": 5}, "end_point": {"row": 54, "column": 6}}, {"id": 367, "type": "field_expression", "text": "it->next", "parent": 364, "children": [368, 369], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 15}}, {"id": 368, "type": "identifier", "text": "it", "parent": 367, "children": [], "start_point": {"row": 54, "column": 7}, "end_point": {"row": 54, "column": 9}}, {"id": 369, "type": "field_identifier", "text": "next", "parent": 367, "children": [], "start_point": {"row": 54, "column": 11}, "end_point": {"row": 54, "column": 15}}, {"id": 370, "type": "assignment_expression", "text": "((struct DFSNode*)u->data)->color = DFS_BLACK", "parent": 210, "children": [371, 384, 385], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 46}}, {"id": 371, "type": "field_expression", "text": "((struct DFSNode*)u->data)->color", "parent": 370, "children": [372, 383], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 34}}, {"id": 372, "type": "parenthesized_expression", "text": "((struct DFSNode*)u->data)", "parent": 371, "children": [373], "start_point": {"row": 56, "column": 1}, "end_point": {"row": 56, "column": 27}}, {"id": 373, "type": "cast_expression", "text": "(struct DFSNode*)u->data", "parent": 372, "children": [374, 380], "start_point": {"row": 56, "column": 2}, "end_point": {"row": 56, "column": 26}}, {"id": 374, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 373, "children": [375, 378], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 18}}, {"id": 375, "type": "struct_specifier", "text": "struct DFSNode", "parent": 374, "children": [376, 377], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 17}}, {"id": 376, "type": "struct", "text": "struct", "parent": 375, "children": [], "start_point": {"row": 56, "column": 3}, "end_point": {"row": 56, "column": 9}}, {"id": 377, "type": "type_identifier", "text": "DFSNode", "parent": 375, "children": [], "start_point": {"row": 56, "column": 10}, "end_point": {"row": 56, "column": 17}}, {"id": 378, "type": "abstract_pointer_declarator", "text": "*", "parent": 374, "children": [379], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 18}}, {"id": 379, "type": "*", "text": "*", "parent": 378, "children": [], "start_point": {"row": 56, "column": 17}, "end_point": {"row": 56, "column": 18}}, {"id": 380, "type": "field_expression", "text": "u->data", "parent": 373, "children": [381, 382], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 26}}, {"id": 381, "type": "identifier", "text": "u", "parent": 380, "children": [], "start_point": {"row": 56, "column": 19}, "end_point": {"row": 56, "column": 20}}, {"id": 382, "type": "field_identifier", "text": "data", "parent": 380, "children": [], "start_point": {"row": 56, "column": 22}, "end_point": {"row": 56, "column": 26}}, {"id": 383, "type": "field_identifier", "text": "color", "parent": 371, "children": [], "start_point": {"row": 56, "column": 29}, "end_point": {"row": 56, "column": 34}}, {"id": 384, "type": "=", "text": "=", "parent": 370, "children": [], "start_point": {"row": 56, "column": 35}, "end_point": {"row": 56, "column": 36}}, {"id": 385, "type": "identifier", "text": "DFS_BLACK", "parent": 370, "children": [], "start_point": {"row": 56, "column": 37}, "end_point": {"row": 56, "column": 46}}, {"id": 386, "type": "update_expression", "text": "time++", "parent": 210, "children": [387, 388], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 7}}, {"id": 387, "type": "identifier", "text": "time", "parent": 386, "children": [], "start_point": {"row": 57, "column": 1}, "end_point": {"row": 57, "column": 5}}, {"id": 388, "type": "++", "text": "++", "parent": 386, "children": [], "start_point": {"row": 57, "column": 5}, "end_point": {"row": 57, "column": 7}}, {"id": 389, "type": "assignment_expression", "text": "((struct DFSNode*)u->data)->f_time = time", "parent": 210, "children": [390, 403, 404], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 42}}, {"id": 390, "type": "field_expression", "text": "((struct DFSNode*)u->data)->f_time", "parent": 389, "children": [391, 402], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 35}}, {"id": 391, "type": "parenthesized_expression", "text": "((struct DFSNode*)u->data)", "parent": 390, "children": [392], "start_point": {"row": 58, "column": 1}, "end_point": {"row": 58, "column": 27}}, {"id": 392, "type": "cast_expression", "text": "(struct DFSNode*)u->data", "parent": 391, "children": [393, 399], "start_point": {"row": 58, "column": 2}, "end_point": {"row": 58, "column": 26}}, {"id": 393, "type": "type_descriptor", "text": "struct DFSNode*", "parent": 392, "children": [394, 397], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 18}}, {"id": 394, "type": "struct_specifier", "text": "struct DFSNode", "parent": 393, "children": [395, 396], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 17}}, {"id": 395, "type": "struct", "text": "struct", "parent": 394, "children": [], "start_point": {"row": 58, "column": 3}, "end_point": {"row": 58, "column": 9}}, {"id": 396, "type": "type_identifier", "text": "DFSNode", "parent": 394, "children": [], "start_point": {"row": 58, "column": 10}, "end_point": {"row": 58, "column": 17}}, {"id": 397, "type": "abstract_pointer_declarator", "text": "*", "parent": 393, "children": [398], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 18}}, {"id": 398, "type": "*", "text": "*", "parent": 397, "children": [], "start_point": {"row": 58, "column": 17}, "end_point": {"row": 58, "column": 18}}, {"id": 399, "type": "field_expression", "text": "u->data", "parent": 392, "children": [400, 401], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 26}}, {"id": 400, "type": "identifier", "text": "u", "parent": 399, "children": [], "start_point": {"row": 58, "column": 19}, "end_point": {"row": 58, "column": 20}}, {"id": 401, "type": "field_identifier", "text": "data", "parent": 399, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 26}}, {"id": 402, "type": "field_identifier", "text": "f_time", "parent": 390, "children": [], "start_point": {"row": 58, "column": 29}, "end_point": {"row": 58, "column": 35}}, {"id": 403, "type": "=", "text": "=", "parent": 389, "children": [], "start_point": {"row": 58, "column": 36}, "end_point": {"row": 58, "column": 37}}, {"id": 404, "type": "identifier", "text": "time", "parent": 389, "children": [], "start_point": {"row": 58, "column": 38}, "end_point": {"row": 58, "column": 42}}, {"id": 405, "type": "call_expression", "text": "dfs_print_graph(g)", "parent": 210, "children": [406, 407], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 19}}, {"id": 406, "type": "identifier", "text": "dfs_print_graph", "parent": 405, "children": [], "start_point": {"row": 59, "column": 1}, "end_point": {"row": 59, "column": 16}}, {"id": 407, "type": "argument_list", "text": "(g)", "parent": 405, "children": [408], "start_point": {"row": 59, "column": 16}, "end_point": {"row": 59, "column": 19}}, {"id": 408, "type": "identifier", "text": "g", "parent": 407, "children": [], "start_point": {"row": 59, "column": 17}, "end_point": {"row": 59, "column": 18}}, {"id": 409, "type": "function_definition", "text": "void dfs(struct Graph *g){\n\tstruct DFSNode dfs_nodes[g->nodes_size];\n\tint i;\n\tfor(i = 0; i < g->nodes_size; i++){\n\t\tdfs_nodes[i].color = DFS_WHITE;\n\t\tdfs_nodes[i].parent = NULL;\n\t\tdfs_nodes[i].d_time = 0;\n\t\tdfs_nodes[i].f_time = 0;\n\t\tg->nodes[i].data = &(dfs_nodes[i]);\n\t}\n\ttime = 0;\n\tfor(i = 0; i < g->nodes_size; i++){\n\t\tif(dfs_nodes[i].color == DFS_WHITE){\n\t\t\tdfs_visit(g, &(g->nodes[i]));\n\t\t}\n\t}\n}", "parent": null, "children": [410, 411], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 78, "column": 1}}, {"id": 410, "type": "primitive_type", "text": "void", "parent": 409, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 4}}, {"id": 411, "type": "function_declarator", "text": "dfs(struct Graph *g)", "parent": 409, "children": [412, 413], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 25}}, {"id": 412, "type": "identifier", "text": "dfs", "parent": 411, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 8}}, {"id": 413, "type": "parameter_list", "text": "(struct Graph *g)", "parent": 411, "children": [414], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 25}}, {"id": 414, "type": "parameter_declaration", "text": "struct Graph *g", "parent": 413, "children": [415, 418], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 24}}, {"id": 415, "type": "struct_specifier", "text": "struct Graph", "parent": 414, "children": [416, 417], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 21}}, {"id": 416, "type": "struct", "text": "struct", "parent": 415, "children": [], "start_point": {"row": 62, "column": 9}, "end_point": {"row": 62, "column": 15}}, {"id": 417, "type": "type_identifier", "text": "Graph", "parent": 415, "children": [], "start_point": {"row": 62, "column": 16}, "end_point": {"row": 62, "column": 21}}, {"id": 418, "type": "pointer_declarator", "text": "*g", "parent": 414, "children": [419, 420], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 24}}, {"id": 419, "type": "*", "text": "*", "parent": 418, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 23}}, {"id": 420, "type": "identifier", "text": "g", "parent": 418, "children": [], "start_point": {"row": 62, "column": 23}, "end_point": {"row": 62, "column": 24}}, {"id": 421, "type": "declaration", "text": "struct DFSNode dfs_nodes[g->nodes_size];", "parent": 409, "children": [422, 425], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 41}}, {"id": 422, "type": "struct_specifier", "text": "struct DFSNode", "parent": 421, "children": [423, 424], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 15}}, {"id": 423, "type": "struct", "text": "struct", "parent": 422, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 7}}, {"id": 424, "type": "type_identifier", "text": "DFSNode", "parent": 422, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 15}}, {"id": 425, "type": "array_declarator", "text": "dfs_nodes[g->nodes_size]", "parent": 421, "children": [426, 427], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 40}}, {"id": 426, "type": "identifier", "text": "dfs_nodes", "parent": 425, "children": [], "start_point": {"row": 63, "column": 16}, "end_point": {"row": 63, "column": 25}}, {"id": 427, "type": "field_expression", "text": "g->nodes_size", "parent": 425, "children": [428, 429], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 39}}, {"id": 428, "type": "identifier", "text": "g", "parent": 427, "children": [], "start_point": {"row": 63, "column": 26}, "end_point": {"row": 63, "column": 27}}, {"id": 429, "type": "field_identifier", "text": "nodes_size", "parent": 427, "children": [], "start_point": {"row": 63, "column": 29}, "end_point": {"row": 63, "column": 39}}, {"id": 430, "type": "declaration", "text": "int i;", "parent": 409, "children": [431, 432], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 7}}, {"id": 431, "type": "primitive_type", "text": "int", "parent": 430, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 4}}, {"id": 432, "type": "identifier", "text": "i", "parent": 430, "children": [], "start_point": {"row": 64, "column": 5}, "end_point": {"row": 64, "column": 6}}, {"id": 433, "type": "for_statement", "text": "for(i = 0; i < g->nodes_size; i++){\n\t\tdfs_nodes[i].color = DFS_WHITE;\n\t\tdfs_nodes[i].parent = NULL;\n\t\tdfs_nodes[i].d_time = 0;\n\t\tdfs_nodes[i].f_time = 0;\n\t\tg->nodes[i].data = &(dfs_nodes[i]);\n\t}", "parent": 409, "children": [434, 438, 444], "start_point": {"row": 65, "column": 1}, "end_point": {"row": 71, "column": 2}}, {"id": 434, "type": "assignment_expression", "text": "i = 0", "parent": 433, "children": [435, 436, 437], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 10}}, {"id": 435, "type": "identifier", "text": "i", "parent": 434, "children": [], "start_point": {"row": 65, "column": 5}, "end_point": {"row": 65, "column": 6}}, {"id": 436, "type": "=", "text": "=", "parent": 434, "children": [], "start_point": {"row": 65, "column": 7}, "end_point": {"row": 65, "column": 8}}, {"id": 437, "type": "number_literal", "text": "0", "parent": 434, "children": [], "start_point": {"row": 65, "column": 9}, "end_point": {"row": 65, "column": 10}}, {"id": 438, "type": "binary_expression", "text": "i < g->nodes_size", "parent": 433, "children": [439, 440, 441], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 29}}, {"id": 439, "type": "identifier", "text": "i", "parent": 438, "children": [], "start_point": {"row": 65, "column": 12}, "end_point": {"row": 65, "column": 13}}, {"id": 440, "type": "<", "text": "<", "parent": 438, "children": [], "start_point": {"row": 65, "column": 14}, "end_point": {"row": 65, "column": 15}}, {"id": 441, "type": "field_expression", "text": "g->nodes_size", "parent": 438, "children": [442, 443], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 29}}, {"id": 442, "type": "identifier", "text": "g", "parent": 441, "children": [], "start_point": {"row": 65, "column": 16}, "end_point": {"row": 65, "column": 17}}, {"id": 443, "type": "field_identifier", "text": "nodes_size", "parent": 441, "children": [], "start_point": {"row": 65, "column": 19}, "end_point": {"row": 65, "column": 29}}, {"id": 444, "type": "update_expression", "text": "i++", "parent": 433, "children": [445, 446], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 34}}, {"id": 445, "type": "identifier", "text": "i", "parent": 444, "children": [], "start_point": {"row": 65, "column": 31}, "end_point": {"row": 65, "column": 32}}, {"id": 446, "type": "++", "text": "++", "parent": 444, "children": [], "start_point": {"row": 65, "column": 32}, "end_point": {"row": 65, "column": 34}}, {"id": 447, "type": "assignment_expression", "text": "dfs_nodes[i].color = DFS_WHITE", "parent": 433, "children": [448, 453, 454], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 32}}, {"id": 448, "type": "field_expression", "text": "dfs_nodes[i].color", "parent": 447, "children": [449, 452], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 20}}, {"id": 449, "type": "subscript_expression", "text": "dfs_nodes[i]", "parent": 448, "children": [450, 451], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 14}}, {"id": 450, "type": "identifier", "text": "dfs_nodes", "parent": 449, "children": [], "start_point": {"row": 66, "column": 2}, "end_point": {"row": 66, "column": 11}}, {"id": 451, "type": "identifier", "text": "i", "parent": 449, "children": [], "start_point": {"row": 66, "column": 12}, "end_point": {"row": 66, "column": 13}}, {"id": 452, "type": "field_identifier", "text": "color", "parent": 448, "children": [], "start_point": {"row": 66, "column": 15}, "end_point": {"row": 66, "column": 20}}, {"id": 453, "type": "=", "text": "=", "parent": 447, "children": [], "start_point": {"row": 66, "column": 21}, "end_point": {"row": 66, "column": 22}}, {"id": 454, "type": "identifier", "text": "DFS_WHITE", "parent": 447, "children": [], "start_point": {"row": 66, "column": 23}, "end_point": {"row": 66, "column": 32}}, {"id": 455, "type": "assignment_expression", "text": "dfs_nodes[i].parent = NULL", "parent": 433, "children": [456, 461, 462], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 28}}, {"id": 456, "type": "field_expression", "text": "dfs_nodes[i].parent", "parent": 455, "children": [457, 460], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 21}}, {"id": 457, "type": "subscript_expression", "text": "dfs_nodes[i]", "parent": 456, "children": [458, 459], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 14}}, {"id": 458, "type": "identifier", "text": "dfs_nodes", "parent": 457, "children": [], "start_point": {"row": 67, "column": 2}, "end_point": {"row": 67, "column": 11}}, {"id": 459, "type": "identifier", "text": "i", "parent": 457, "children": [], "start_point": {"row": 67, "column": 12}, "end_point": {"row": 67, "column": 13}}, {"id": 460, "type": "field_identifier", "text": "parent", "parent": 456, "children": [], "start_point": {"row": 67, "column": 15}, "end_point": {"row": 67, "column": 21}}, {"id": 461, "type": "=", "text": "=", "parent": 455, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 23}}, {"id": 462, "type": "null", "text": "NULL", "parent": 455, "children": [463], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 28}}, {"id": 463, "type": "NULL", "text": "NULL", "parent": 462, "children": [], "start_point": {"row": 67, "column": 24}, "end_point": {"row": 67, "column": 28}}, {"id": 464, "type": "assignment_expression", "text": "dfs_nodes[i].d_time = 0", "parent": 433, "children": [465, 470, 471], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 25}}, {"id": 465, "type": "field_expression", "text": "dfs_nodes[i].d_time", "parent": 464, "children": [466, 469], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 21}}, {"id": 466, "type": "subscript_expression", "text": "dfs_nodes[i]", "parent": 465, "children": [467, 468], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 14}}, {"id": 467, "type": "identifier", "text": "dfs_nodes", "parent": 466, "children": [], "start_point": {"row": 68, "column": 2}, "end_point": {"row": 68, "column": 11}}, {"id": 468, "type": "identifier", "text": "i", "parent": 466, "children": [], "start_point": {"row": 68, "column": 12}, "end_point": {"row": 68, "column": 13}}, {"id": 469, "type": "field_identifier", "text": "d_time", "parent": 465, "children": [], "start_point": {"row": 68, "column": 15}, "end_point": {"row": 68, "column": 21}}, {"id": 470, "type": "=", "text": "=", "parent": 464, "children": [], "start_point": {"row": 68, "column": 22}, "end_point": {"row": 68, "column": 23}}, {"id": 471, "type": "number_literal", "text": "0", "parent": 464, "children": [], "start_point": {"row": 68, "column": 24}, "end_point": {"row": 68, "column": 25}}, {"id": 472, "type": "assignment_expression", "text": "dfs_nodes[i].f_time = 0", "parent": 433, "children": [473, 478, 479], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 25}}, {"id": 473, "type": "field_expression", "text": "dfs_nodes[i].f_time", "parent": 472, "children": [474, 477], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 21}}, {"id": 474, "type": "subscript_expression", "text": "dfs_nodes[i]", "parent": 473, "children": [475, 476], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 14}}, {"id": 475, "type": "identifier", "text": "dfs_nodes", "parent": 474, "children": [], "start_point": {"row": 69, "column": 2}, "end_point": {"row": 69, "column": 11}}, {"id": 476, "type": "identifier", "text": "i", "parent": 474, "children": [], "start_point": {"row": 69, "column": 12}, "end_point": {"row": 69, "column": 13}}, {"id": 477, "type": "field_identifier", "text": "f_time", "parent": 473, "children": [], "start_point": {"row": 69, "column": 15}, "end_point": {"row": 69, "column": 21}}, {"id": 478, "type": "=", "text": "=", "parent": 472, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 23}}, {"id": 479, "type": "number_literal", "text": "0", "parent": 472, "children": [], "start_point": {"row": 69, "column": 24}, "end_point": {"row": 69, "column": 25}}, {"id": 480, "type": "assignment_expression", "text": "g->nodes[i].data = &(dfs_nodes[i])", "parent": 433, "children": [481, 488, 489], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 36}}, {"id": 481, "type": "field_expression", "text": "g->nodes[i].data", "parent": 480, "children": [482, 487], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 18}}, {"id": 482, "type": "subscript_expression", "text": "g->nodes[i]", "parent": 481, "children": [483, 486], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 13}}, {"id": 483, "type": "field_expression", "text": "g->nodes", "parent": 482, "children": [484, 485], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 10}}, {"id": 484, "type": "identifier", "text": "g", "parent": 483, "children": [], "start_point": {"row": 70, "column": 2}, "end_point": {"row": 70, "column": 3}}, {"id": 485, "type": "field_identifier", "text": "nodes", "parent": 483, "children": [], "start_point": {"row": 70, "column": 5}, "end_point": {"row": 70, "column": 10}}, {"id": 486, "type": "identifier", "text": "i", "parent": 482, "children": [], "start_point": {"row": 70, "column": 11}, "end_point": {"row": 70, "column": 12}}, {"id": 487, "type": "field_identifier", "text": "data", "parent": 481, "children": [], "start_point": {"row": 70, "column": 14}, "end_point": {"row": 70, "column": 18}}, {"id": 488, "type": "=", "text": "=", "parent": 480, "children": [], "start_point": {"row": 70, "column": 19}, "end_point": {"row": 70, "column": 20}}, {"id": 489, "type": "pointer_expression", "text": "&(dfs_nodes[i])", "parent": 480, "children": [490], "start_point": {"row": 70, "column": 21}, "end_point": {"row": 70, "column": 36}}, {"id": 490, "type": "parenthesized_expression", "text": "(dfs_nodes[i])", "parent": 489, "children": [491], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 36}}, {"id": 491, "type": "subscript_expression", "text": "dfs_nodes[i]", "parent": 490, "children": [492, 493], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 35}}, {"id": 492, "type": "identifier", "text": "dfs_nodes", "parent": 491, "children": [], "start_point": {"row": 70, "column": 23}, "end_point": {"row": 70, "column": 32}}, {"id": 493, "type": "identifier", "text": "i", "parent": 491, "children": [], "start_point": {"row": 70, "column": 33}, "end_point": {"row": 70, "column": 34}}, {"id": 494, "type": "assignment_expression", "text": "time = 0", "parent": 409, "children": [495, 496, 497], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 9}}, {"id": 495, "type": "identifier", "text": "time", "parent": 494, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 5}}, {"id": 496, "type": "=", "text": "=", "parent": 494, "children": [], "start_point": {"row": 72, "column": 6}, "end_point": {"row": 72, "column": 7}}, {"id": 497, "type": "number_literal", "text": "0", "parent": 494, "children": [], "start_point": {"row": 72, "column": 8}, "end_point": {"row": 72, "column": 9}}, {"id": 498, "type": "for_statement", "text": "for(i = 0; i < g->nodes_size; i++){\n\t\tif(dfs_nodes[i].color == DFS_WHITE){\n\t\t\tdfs_visit(g, &(g->nodes[i]));\n\t\t}\n\t}", "parent": 409, "children": [499, 503, 509], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 77, "column": 2}}, {"id": 499, "type": "assignment_expression", "text": "i = 0", "parent": 498, "children": [500, 501, 502], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 10}}, {"id": 500, "type": "identifier", "text": "i", "parent": 499, "children": [], "start_point": {"row": 73, "column": 5}, "end_point": {"row": 73, "column": 6}}, {"id": 501, "type": "=", "text": "=", "parent": 499, "children": [], "start_point": {"row": 73, "column": 7}, "end_point": {"row": 73, "column": 8}}, {"id": 502, "type": "number_literal", "text": "0", "parent": 499, "children": [], "start_point": {"row": 73, "column": 9}, "end_point": {"row": 73, "column": 10}}, {"id": 503, "type": "binary_expression", "text": "i < g->nodes_size", "parent": 498, "children": [504, 505, 506], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 29}}, {"id": 504, "type": "identifier", "text": "i", "parent": 503, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 13}}, {"id": 505, "type": "<", "text": "<", "parent": 503, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 15}}, {"id": 506, "type": "field_expression", "text": "g->nodes_size", "parent": 503, "children": [507, 508], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 29}}, {"id": 507, "type": "identifier", "text": "g", "parent": 506, "children": [], "start_point": {"row": 73, "column": 16}, "end_point": {"row": 73, "column": 17}}, {"id": 508, "type": "field_identifier", "text": "nodes_size", "parent": 506, "children": [], "start_point": {"row": 73, "column": 19}, "end_point": {"row": 73, "column": 29}}, {"id": 509, "type": "update_expression", "text": "i++", "parent": 498, "children": [510, 511], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 34}}, {"id": 510, "type": "identifier", "text": "i", "parent": 509, "children": [], "start_point": {"row": 73, "column": 31}, "end_point": {"row": 73, "column": 32}}, {"id": 511, "type": "++", "text": "++", "parent": 509, "children": [], "start_point": {"row": 73, "column": 32}, "end_point": {"row": 73, "column": 34}}, {"id": 512, "type": "if_statement", "text": "if(dfs_nodes[i].color == DFS_WHITE){\n\t\t\tdfs_visit(g, &(g->nodes[i]));\n\t\t}", "parent": 498, "children": [513], "start_point": {"row": 74, "column": 2}, "end_point": {"row": 76, "column": 3}}, {"id": 513, "type": "parenthesized_expression", "text": "(dfs_nodes[i].color == DFS_WHITE)", "parent": 512, "children": [514], "start_point": {"row": 74, "column": 4}, "end_point": {"row": 74, "column": 37}}, {"id": 514, "type": "binary_expression", "text": "dfs_nodes[i].color == DFS_WHITE", "parent": 513, "children": [515, 520, 521], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 36}}, {"id": 515, "type": "field_expression", "text": "dfs_nodes[i].color", "parent": 514, "children": [516, 519], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 23}}, {"id": 516, "type": "subscript_expression", "text": "dfs_nodes[i]", "parent": 515, "children": [517, 518], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 17}}, {"id": 517, "type": "identifier", "text": "dfs_nodes", "parent": 516, "children": [], "start_point": {"row": 74, "column": 5}, "end_point": {"row": 74, "column": 14}}, {"id": 518, "type": "identifier", "text": "i", "parent": 516, "children": [], "start_point": {"row": 74, "column": 15}, "end_point": {"row": 74, "column": 16}}, {"id": 519, "type": "field_identifier", "text": "color", "parent": 515, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 23}}, {"id": 520, "type": "==", "text": "==", "parent": 514, "children": [], "start_point": {"row": 74, "column": 24}, "end_point": {"row": 74, "column": 26}}, {"id": 521, "type": "identifier", "text": "DFS_WHITE", "parent": 514, "children": [], "start_point": {"row": 74, "column": 27}, "end_point": {"row": 74, "column": 36}}, {"id": 522, "type": "call_expression", "text": "dfs_visit(g, &(g->nodes[i]))", "parent": 512, "children": [523, 524], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 31}}, {"id": 523, "type": "identifier", "text": "dfs_visit", "parent": 522, "children": [], "start_point": {"row": 75, "column": 3}, "end_point": {"row": 75, "column": 12}}, {"id": 524, "type": "argument_list", "text": "(g, &(g->nodes[i]))", "parent": 522, "children": [525, 526], "start_point": {"row": 75, "column": 12}, "end_point": {"row": 75, "column": 31}}, {"id": 525, "type": "identifier", "text": "g", "parent": 524, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 14}}, {"id": 526, "type": "pointer_expression", "text": "&(g->nodes[i])", "parent": 524, "children": [527], "start_point": {"row": 75, "column": 16}, "end_point": {"row": 75, "column": 30}}, {"id": 527, "type": "parenthesized_expression", "text": "(g->nodes[i])", "parent": 526, "children": [528], "start_point": {"row": 75, "column": 17}, "end_point": {"row": 75, "column": 30}}, {"id": 528, "type": "subscript_expression", "text": "g->nodes[i]", "parent": 527, "children": [529, 532], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 29}}, {"id": 529, "type": "field_expression", "text": "g->nodes", "parent": 528, "children": [530, 531], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 26}}, {"id": 530, "type": "identifier", "text": "g", "parent": 529, "children": [], "start_point": {"row": 75, "column": 18}, "end_point": {"row": 75, "column": 19}}, {"id": 531, "type": "field_identifier", "text": "nodes", "parent": 529, "children": [], "start_point": {"row": 75, "column": 21}, "end_point": {"row": 75, "column": 26}}, {"id": 532, "type": "identifier", "text": "i", "parent": 528, "children": [], "start_point": {"row": 75, "column": 27}, "end_point": {"row": 75, "column": 28}}]}, "node_categories": {"declarations": {"functions": [15, 17, 210, 212, 409, 411], "variables": [12, 20, 27, 32, 35, 38, 215, 222, 229, 240, 414, 421, 430], "classes": [21, 22, 39, 40, 76, 77, 141, 142, 158, 159, 216, 217, 223, 224, 230, 231, 241, 242, 259, 260, 275, 276, 316, 317, 332, 333, 348, 349, 375, 376, 394, 395, 415, 416, 422, 423], "imports": [0, 1, 3, 4, 6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [49, 60, 63, 66, 71, 72, 73, 74, 81, 82, 83, 125, 130, 131, 132, 137, 138, 139, 146, 147, 148, 154, 155, 156, 163, 164, 165, 174, 175, 176, 182, 183, 188, 192, 198, 201, 206, 251, 255, 256, 257, 264, 271, 272, 273, 280, 289, 290, 291, 294, 298, 303, 304, 312, 313, 314, 321, 326, 327, 328, 329, 330, 337, 344, 345, 346, 353, 359, 367, 371, 372, 373, 380, 386, 390, 391, 392, 399, 405, 427, 438, 441, 444, 448, 449, 456, 457, 465, 466, 473, 474, 481, 482, 483, 489, 490, 491, 503, 506, 509, 513, 514, 515, 516, 522, 526, 527, 528, 529], "assignments": [56, 92, 104, 116, 171, 195, 254, 270, 286, 309, 343, 364, 370, 389, 434, 447, 455, 464, 472, 480, 494, 499], "loops": [55, 181, 302, 433, 498], "conditionals": [14, 18, 23, 26, 30, 34, 37, 41, 45, 50, 54, 57, 61, 64, 65, 67, 69, 70, 78, 84, 85, 86, 87, 88, 89, 90, 91, 93, 101, 102, 103, 105, 113, 114, 115, 117, 126, 129, 133, 134, 135, 136, 143, 149, 150, 151, 152, 153, 160, 166, 167, 168, 169, 170, 172, 177, 178, 179, 180, 184, 189, 193, 194, 196, 199, 200, 202, 207, 209, 213, 218, 221, 225, 228, 232, 236, 243, 247, 252, 261, 265, 266, 267, 269, 277, 281, 282, 283, 285, 287, 292, 293, 295, 296, 297, 299, 301, 305, 310, 318, 322, 323, 324, 325, 334, 338, 339, 340, 342, 350, 354, 355, 356, 358, 360, 362, 363, 365, 368, 369, 377, 381, 382, 383, 385, 387, 396, 400, 401, 402, 404, 406, 408, 412, 417, 420, 424, 426, 428, 429, 432, 435, 439, 442, 443, 445, 450, 451, 452, 454, 458, 459, 460, 467, 468, 469, 475, 476, 477, 484, 485, 486, 487, 492, 493, 495, 500, 504, 507, 508, 510, 512, 517, 518, 519, 521, 523, 525, 530, 531, 532], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 31, 52, 59, 95, 107, 119, 128, 191, 204, 437, 471, 479, 497, 502], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 15, "universal_type": "function", "name": "dfs_print_graph", "text_snippet": "static \nvoid dfs_print_graph(struct Graph *g){\n\tchar buff[0xff];\n\tchar color;\n\tint i;\n\tstruct ListOb"}, {"node_id": 17, "universal_type": "function", "name": "unknown", "text_snippet": "dfs_print_graph(struct Graph *g)"}, {"node_id": 210, "universal_type": "function", "name": "dfs_visit", "text_snippet": "static\nvoid dfs_visit(struct Graph *g, struct GraphNode *u){\n\tstruct ListObj *it = NULL;\n\tstruct Gra"}, {"node_id": 212, "universal_type": "function", "name": "GraphNode", "text_snippet": "dfs_visit(struct Graph *g, struct GraphNode *u)"}, {"node_id": 409, "universal_type": "function", "name": "dfs", "text_snippet": "void dfs(struct Graph *g){\n\tstruct DFSNode dfs_nodes[g->nodes_size];\n\tint i;\n\tfor(i = 0; i < g->node"}, {"node_id": 411, "universal_type": "function", "name": "unknown", "text_snippet": "dfs(struct Graph *g)"}], "class_declarations": [{"node_id": 21, "universal_type": "class", "name": "Graph", "text_snippet": "struct Graph"}, {"node_id": 22, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 39, "universal_type": "class", "name": "ListObj", "text_snippet": "struct ListObj"}, {"node_id": 40, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 76, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 77, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 141, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 142, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 158, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 159, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 216, "universal_type": "class", "name": "Graph", "text_snippet": "struct Graph"}, {"node_id": 217, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 223, "universal_type": "class", "name": "GraphNode", "text_snippet": "struct GraphNode"}, {"node_id": 224, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 230, "universal_type": "class", "name": "ListObj", "text_snippet": "struct ListObj"}, {"node_id": 231, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 241, "universal_type": "class", "name": "GraphNode", "text_snippet": "struct GraphNode"}, {"node_id": 242, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 259, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 260, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 275, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 276, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 316, "universal_type": "class", "name": "GraphEdge", "text_snippet": "struct GraphEdge"}, {"node_id": 317, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 332, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 333, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 348, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 349, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 375, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 376, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 394, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 395, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 415, "universal_type": "class", "name": "Graph", "text_snippet": "struct Graph"}, {"node_id": 416, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 422, "universal_type": "class", "name": "DFSNode", "text_snippet": "struct DFSNode"}, {"node_id": 423, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include <stdlib.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include <stdio.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include \"dfs.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"elementary/list.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "#include <stdlib.h>\n#include <stdio.h>\n#include \"dfs.h\"\n#include \"elementary/list.h\"\n\nstatic int time;\n\nstatic \nvoid dfs_print_graph(struct Graph *g){\n\tchar buff[0xff];\n\tchar color;\n\tint i;\n\tstruct ListObj *it = NULL;\n\tprintf(\"time: %d\\n\", time);\n\tfor(i = 0; i < g->nodes_size; i++){\n\t\tswitch(((struct DFSNode*)g->nodes[i].data)->color){\n\t\t\tcase DFS_BLACK:\n\t\t\t\tcolor = 'B';\n\t\t\t\tbreak;\n\t\t\tcase DFS_WHITE:\n\t\t\t\tcolor = 'W';\n\t\t\t\tbreak;\n\t\t\tcase DFS_GRAY:\n\t\t\t\tcolor = 'G';\n\t\t\t\tbreak;\n\t\t}\n\t\tprintf(\"%c [%d] %.2d,%.2d \", color, g->nodes[i].key,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->d_time,\n\t\t\t\t((struct DFSNode*)g->nodes[i].data)->f_time);\n\t\tit = g->adjacencies[i].head;\n\t\twhile(it != NULL){\n\t\t\tprintf(\"->[%d]\", it->key);\n\t\t\tit = it->next;\n\t\t}\n\t\tprintf(\"\\n\");\n\t}\n\tgets(buff);\n}\n\nstatic\nvoid dfs_visit(struct Graph *g, struct GraphNode *u){\n\tstruct ListObj *it = NULL;\n\tstruct GraphNode *v = NULL;\n\ttime++;\n\t((struct DFSNode*)u->data)->d_time = time;\n\t((struct DFSNode*)u->data)->color = DFS_GRAY;\n\tit = g->adjacencies[u->key].head;\n\tdfs_print_graph(g);\n\twhile(it != NULL){\n\t\tv = ((struct GraphEdge*)it->data)->node;\n\t\tif(((struct DFSNode*)v->data)->color == DFS_WHITE){\n\t\t\t((struct DFSNode*)v->data)->parent = u;\n\t\t\tdfs_visit(g, v);\n\t\t}\n\t\tit = it->next;\n\t}\n\t((struct DFSNode*)u->data)->color = DFS_BLACK;\n\ttime++;\n\t((struct DFSNode*)u->data)->f_time = time;\n\tdfs_print_graph(g);\n}\n\nvoid dfs(struct Graph *g){\n\tstruct DFSNode dfs_nodes[g->nodes_size];\n\tint i;\n\tfor(i = 0; i < g->nodes_size; i++){\n\t\tdfs_nodes[i].color = DFS_WHITE;\n\t\tdfs_nodes[i].parent = NULL;\n\t\tdfs_nodes[i].d_time = 0;\n\t\tdfs_nodes[i].f_time = 0;\n\t\tg->nodes[i].data = &(dfs_nodes[i]);\n\t}\n\ttime = 0;\n\tfor(i = 0; i < g->nodes_size; i++){\n\t\tif(dfs_nodes[i].color == DFS_WHITE){\n\t\t\tdfs_visit(g, &(g->nodes[i]));\n\t\t}\n\t}\n}\n\n"}
80,391
c
// // Created by <NAME> on 27/4/21. // #ifndef FILESAVER_LEVELDBFILECATEGORYSTORE_H #define FILESAVER_LEVELDBFILECATEGORYSTORE_H #include <fruit/fruit.h> #include <leveldb/db.h> #include <string> #include <vector> #include "../storage/LevelDbFactory.h" namespace filesaver::services { class FileCategoryStore { public: virtual ~FileCategoryStore () = default; virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0; virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0; }; class LevelDbFileCategoryStore : public FileCategoryStore { public: INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory)); ~LevelDbFileCategoryStore () override; void insertPath (const std::string& categoryTag, const std::string& filepath) override; std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override; leveldb::DB* getDatabase (const std::string& categoryTag); private: LevelDbFactory* m_levelDbFactory; std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore; }; } // namespace filesaver::services #endif // FILESAVER_LEVELDBFILECATEGORYSTORE_H
35.64
33
(translation_unit) "//\n// Created by <NAME> on 27/4/21.\n//\n\n#ifndef FILESAVER_LEVELDBFILECATEGORYSTORE_H\n#define FILESAVER_LEVELDBFILECATEGORYSTORE_H\n\n#include <fruit/fruit.h>\n#include <leveldb/db.h>\n#include <string>\n#include <vector>\n\n#include "../storage/LevelDbFactory.h"\n\nnamespace filesaver::services\n{\n\nclass FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n};\n\nclass LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n};\n\n} // namespace filesaver::services\n\n#endif // FILESAVER_LEVELDBFILECATEGORYSTORE_H\n" (comment) "//" (comment) "// Created by <NAME> on 27/4/21." (comment) "//" (preproc_ifdef) "#ifndef FILESAVER_LEVELDBFILECATEGORYSTORE_H\n#define FILESAVER_LEVELDBFILECATEGORYSTORE_H\n\n#include <fruit/fruit.h>\n#include <leveldb/db.h>\n#include <string>\n#include <vector>\n\n#include "../storage/LevelDbFactory.h"\n\nnamespace filesaver::services\n{\n\nclass FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n};\n\nclass LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n};\n\n} // namespace filesaver::services\n\n#endif" (#ifndef) "#ifndef" (identifier) "FILESAVER_LEVELDBFILECATEGORYSTORE_H" (preproc_def) "#define FILESAVER_LEVELDBFILECATEGORYSTORE_H\n" (#define) "#define" (identifier) "FILESAVER_LEVELDBFILECATEGORYSTORE_H" (preproc_include) "#include <fruit/fruit.h>\n" (#include) "#include" (system_lib_string) "<fruit/fruit.h>" (preproc_include) "#include <leveldb/db.h>\n" (#include) "#include" (system_lib_string) "<leveldb/db.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 "../storage/LevelDbFactory.h"\n" (#include) "#include" (string_literal) ""../storage/LevelDbFactory.h"" (") """ (string_content) "../storage/LevelDbFactory.h" (") """ (function_definition) "namespace filesaver::services\n{\n\nclass FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n};\n\nclass LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n};\n\n}" (type_identifier) "namespace" (identifier) "filesaver" (ERROR) "::services" (:) ":" (:) ":" (identifier) "services" (compound_statement) "{\n\nclass FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n};\n\nclass LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n};\n\n}" ({) "{" (function_definition) "class FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n}" (type_identifier) "class" (identifier) "FileCategoryStore" (compound_statement) "{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n}" ({) "{" (labeled_statement) "public:\n virtual ~FileCategoryStore () = default;" (statement_identifier) "public" (:) ":" (declaration) "virtual ~FileCategoryStore () = default;" (type_identifier) "virtual" (ERROR) "~" (~) "~" (init_declarator) "FileCategoryStore () = default" (function_declarator) "FileCategoryStore ()" (identifier) "FileCategoryStore" (parameter_list) "()" (() "(" ()) ")" (=) "=" (identifier) "default" (;) ";" (declaration) "virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;" (type_identifier) "virtual" (ERROR) "void" (identifier) "void" (init_declarator) "insertPath (const std::string& categoryTag, const std::string& filepath) = 0" (function_declarator) "insertPath (const std::string& categoryTag, const std::string& filepath)" (identifier) "insertPath" (parameter_list) "(const std::string& categoryTag, const std::string& filepath)" (() "(" (parameter_declaration) "const std::string& categoryTag" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "categoryTag" (,) "," (parameter_declaration) "const std::string& filepath" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "filepath" ()) ")" (=) "=" (number_literal) "0" (;) ";" (declaration) "virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;" (type_identifier) "virtual" (ERROR) "std::vector<std::string>" (identifier) "std" (:) ":" (:) ":" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (identifier) "string" (>) ">" (init_declarator) "getPaths (const std::string& categoryTag, long limit, long offset) = 0" (function_declarator) "getPaths (const std::string& categoryTag, long limit, long offset)" (identifier) "getPaths" (parameter_list) "(const std::string& categoryTag, long limit, long offset)" (() "(" (parameter_declaration) "const std::string& categoryTag" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "categoryTag" (,) "," (parameter_declaration) "long limit" (sized_type_specifier) "long" (long) "long" (identifier) "limit" (,) "," (parameter_declaration) "long offset" (sized_type_specifier) "long" (long) "long" (identifier) "offset" ()) ")" (=) "=" (number_literal) "0" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (function_definition) "class LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n}" (type_identifier) "class" (identifier) "LevelDbFileCategoryStore" (ERROR) ": public FileCategoryStore" (:) ":" (identifier) "public" (identifier) "FileCategoryStore" (compound_statement) "{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n}" ({) "{" (labeled_statement) "public:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));" (statement_identifier) "public" (:) ":" (expression_statement) "INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));" (call_expression) "INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory))" (identifier) "INJECT" (argument_list) "(LevelDbFileCategoryStore (LevelDbFactory* factory))" (() "(" (call_expression) "LevelDbFileCategoryStore (LevelDbFactory* factory)" (identifier) "LevelDbFileCategoryStore" (argument_list) "(LevelDbFactory* factory)" (() "(" (binary_expression) "LevelDbFactory* factory" (identifier) "LevelDbFactory" (*) "*" (identifier) "factory" ()) ")" ()) ")" (;) ";" (expression_statement) "~LevelDbFileCategoryStore () override;" (unary_expression) "~LevelDbFileCategoryStore ()" (~) "~" (call_expression) "LevelDbFileCategoryStore ()" (identifier) "LevelDbFileCategoryStore" (argument_list) "()" (() "(" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (ERROR) "void insertPath (const std::string& categoryTag, const std::string& filepath) override" (primitive_type) "void" (function_declarator) "insertPath (const std::string& categoryTag, const std::string& filepath) override" (identifier) "insertPath" (parameter_list) "(const std::string& categoryTag, const std::string& filepath)" (() "(" (parameter_declaration) "const std::string& categoryTag" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "categoryTag" (,) "," (parameter_declaration) "const std::string& filepath" (type_qualifier) "const" (const) "const" (type_identifier) "std" (ERROR) "::string&" (:) ":" (:) ":" (identifier) "string" (&) "&" (identifier) "filepath" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (labeled_statement) "std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;" (statement_identifier) "std" (ERROR) "::vector<std:" (:) ":" (:) ":" (binary_expression) "vector<std" (identifier) "vector" (<) "<" (identifier) "std" (:) ":" (:) ":" (expression_statement) "string> getPaths (const std::string& categoryTag, long limit, long offset) override;" (binary_expression) "string> getPaths (const std::string& categoryTag, long limit, long offset)" (identifier) "string" (>) ">" (call_expression) "getPaths (const std::string& categoryTag, long limit, long offset)" (identifier) "getPaths" (argument_list) "(const std::string& categoryTag, long limit, long offset)" (() "(" (ERROR) "const std::" (identifier) "const" (identifier) "std" (:) ":" (:) ":" (binary_expression) "string& categoryTag" (identifier) "string" (&) "&" (identifier) "categoryTag" (,) "," (ERROR) "long" (identifier) "long" (identifier) "limit" (,) "," (ERROR) "long" (identifier) "long" (identifier) "offset" ()) ")" (ERROR) "override" (identifier) "override" (;) ";" (labeled_statement) "leveldb::DB* getDatabase (const std::string& categoryTag);" (statement_identifier) "leveldb" (ERROR) "::DB* getDatabase (const std:" (:) ":" (:) ":" (type_identifier) "DB" (*) "*" (identifier) "getDatabase" (() "(" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "string& categoryTag);" (binary_expression) "string& categoryTag" (identifier) "string" (&) "&" (identifier) "categoryTag" (ERROR) ")" ()) ")" (;) ";" (labeled_statement) "private:\n LevelDbFactory* m_levelDbFactory;" (statement_identifier) "private" (:) ":" (declaration) "LevelDbFactory* m_levelDbFactory;" (type_identifier) "LevelDbFactory" (pointer_declarator) "* m_levelDbFactory" (*) "*" (identifier) "m_levelDbFactory" (;) ";" (expression_statement) "std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;" (binary_expression) "std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore" (identifier) "std" (ERROR) "::unordered_map<std::string, leveldb::DB*" (:) ":" (:) ":" (binary_expression) "unordered_map<std" (identifier) "unordered_map" (<) "<" (identifier) "std" (:) ":" (:) ":" (comma_expression) "string, leveldb" (identifier) "string" (,) "," (identifier) "leveldb" (:) ":" (:) ":" (identifier) "DB" (*) "*" (>) ">" (identifier) "m_categoryDBStore" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace filesaver::services" (#endif) "#endif" (comment) "// FILESAVER_LEVELDBFILECATEGORYSTORE_H"
308
20
{"language": "c", "success": true, "metadata": {"lines": 33, "avg_line_length": 35.64, "nodes": 182, "errors": 0, "source_hash": "c725349f158dea067d69f2821643657017db1fb49c9ce2b6dab56a87b40d8c2d", "categorized_nodes": 126}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef FILESAVER_LEVELDBFILECATEGORYSTORE_H\n#define FILESAVER_LEVELDBFILECATEGORYSTORE_H\n\n#include <fruit/fruit.h>\n#include <leveldb/db.h>\n#include <string>\n#include <vector>\n\n#include \"../storage/LevelDbFactory.h\"\n\nnamespace filesaver::services\n{\n\nclass FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n};\n\nclass LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n};\n\n} // namespace filesaver::services\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": 43, "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": "FILESAVER_LEVELDBFILECATEGORYSTORE_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 44}}, {"id": 3, "type": "preproc_def", "text": "#define FILESAVER_LEVELDBFILECATEGORYSTORE_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": "FILESAVER_LEVELDBFILECATEGORYSTORE_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 44}}, {"id": 6, "type": "preproc_include", "text": "#include <fruit/fruit.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": "<fruit/fruit.h>", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 24}}, {"id": 9, "type": "preproc_include", "text": "#include <leveldb/db.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": "<leveldb/db.h>", "parent": 9, "children": [], "start_point": {"row": 8, "column": 9}, "end_point": {"row": 8, "column": 23}}, {"id": 12, "type": "preproc_include", "text": "#include <string>\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": "<string>", "parent": 12, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 17}}, {"id": 15, "type": "preproc_include", "text": "#include <vector>\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 \"../storage/LevelDbFactory.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": "\"../storage/LevelDbFactory.h\"", "parent": 18, "children": [], "start_point": {"row": 12, "column": 9}, "end_point": {"row": 12, "column": 38}}, {"id": 21, "type": "function_definition", "text": "namespace filesaver::services\n{\n\nclass FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n};\n\nclass LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n};\n\n}", "parent": 0, "children": [22, 23, 24], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 41, "column": 1}}, {"id": 22, "type": "type_identifier", "text": "namespace", "parent": 21, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 9}}, {"id": 23, "type": "identifier", "text": "filesaver", "parent": 21, "children": [], "start_point": {"row": 14, "column": 10}, "end_point": {"row": 14, "column": 19}}, {"id": 24, "type": "ERROR", "text": "::services", "parent": 21, "children": [25], "start_point": {"row": 14, "column": 19}, "end_point": {"row": 14, "column": 29}}, {"id": 25, "type": "identifier", "text": "services", "parent": 24, "children": [], "start_point": {"row": 14, "column": 21}, "end_point": {"row": 14, "column": 29}}, {"id": 26, "type": "function_definition", "text": "class FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n}", "parent": 21, "children": [27], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 27, "type": "identifier", "text": "FileCategoryStore", "parent": 26, "children": [], "start_point": {"row": 17, "column": 6}, "end_point": {"row": 17, "column": 23}}, {"id": 28, "type": "labeled_statement", "text": "public:\n virtual ~FileCategoryStore () = default;", "parent": 26, "children": [29], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 44}}, {"id": 29, "type": "declaration", "text": "virtual ~FileCategoryStore () = default;", "parent": 28, "children": [30, 31, 33], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 44}}, {"id": 30, "type": "type_identifier", "text": "virtual", "parent": 29, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 11}}, {"id": 31, "type": "ERROR", "text": "~", "parent": 29, "children": [32], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 13}}, {"id": 32, "type": "~", "text": "~", "parent": 31, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 13}}, {"id": 33, "type": "init_declarator", "text": "FileCategoryStore () = default", "parent": 29, "children": [34, 37, 38], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 43}}, {"id": 34, "type": "function_declarator", "text": "FileCategoryStore ()", "parent": 33, "children": [35, 36], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 33}}, {"id": 35, "type": "identifier", "text": "FileCategoryStore", "parent": 34, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 30}}, {"id": 36, "type": "parameter_list", "text": "()", "parent": 34, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 33}}, {"id": 37, "type": "=", "text": "=", "parent": 33, "children": [], "start_point": {"row": 20, "column": 34}, "end_point": {"row": 20, "column": 35}}, {"id": 38, "type": "identifier", "text": "default", "parent": 33, "children": [], "start_point": {"row": 20, "column": 36}, "end_point": {"row": 20, "column": 43}}, {"id": 39, "type": "declaration", "text": "virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;", "parent": 26, "children": [40, 41, 43], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 94}}, {"id": 40, "type": "type_identifier", "text": "virtual", "parent": 39, "children": [], "start_point": {"row": 21, "column": 4}, "end_point": {"row": 21, "column": 11}}, {"id": 41, "type": "ERROR", "text": "void", "parent": 39, "children": [42], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 16}}, {"id": 42, "type": "identifier", "text": "void", "parent": 41, "children": [], "start_point": {"row": 21, "column": 12}, "end_point": {"row": 21, "column": 16}}, {"id": 43, "type": "init_declarator", "text": "insertPath (const std::string& categoryTag, const std::string& filepath) = 0", "parent": 39, "children": [44, 57, 58], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 93}}, {"id": 44, "type": "function_declarator", "text": "insertPath (const std::string& categoryTag, const std::string& filepath)", "parent": 43, "children": [45, 46], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 89}}, {"id": 45, "type": "identifier", "text": "insertPath", "parent": 44, "children": [], "start_point": {"row": 21, "column": 17}, "end_point": {"row": 21, "column": 27}}, {"id": 46, "type": "parameter_list", "text": "(const std::string& categoryTag, const std::string& filepath)", "parent": 44, "children": [47, 52], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 89}}, {"id": 47, "type": "parameter_declaration", "text": "const std::string& categoryTag", "parent": 46, "children": [48, 49, 51], "start_point": {"row": 21, "column": 29}, "end_point": {"row": 21, "column": 59}}, {"id": 48, "type": "type_identifier", "text": "std", "parent": 47, "children": [], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 38}}, {"id": 49, "type": "ERROR", "text": "::string&", "parent": 47, "children": [50], "start_point": {"row": 21, "column": 38}, "end_point": {"row": 21, "column": 47}}, {"id": 50, "type": "identifier", "text": "string", "parent": 49, "children": [], "start_point": {"row": 21, "column": 40}, "end_point": {"row": 21, "column": 46}}, {"id": 51, "type": "identifier", "text": "categoryTag", "parent": 47, "children": [], "start_point": {"row": 21, "column": 48}, "end_point": {"row": 21, "column": 59}}, {"id": 52, "type": "parameter_declaration", "text": "const std::string& filepath", "parent": 46, "children": [53, 54, 56], "start_point": {"row": 21, "column": 61}, "end_point": {"row": 21, "column": 88}}, {"id": 53, "type": "type_identifier", "text": "std", "parent": 52, "children": [], "start_point": {"row": 21, "column": 67}, "end_point": {"row": 21, "column": 70}}, {"id": 54, "type": "ERROR", "text": "::string&", "parent": 52, "children": [55], "start_point": {"row": 21, "column": 70}, "end_point": {"row": 21, "column": 79}}, {"id": 55, "type": "identifier", "text": "string", "parent": 54, "children": [], "start_point": {"row": 21, "column": 72}, "end_point": {"row": 21, "column": 78}}, {"id": 56, "type": "identifier", "text": "filepath", "parent": 52, "children": [], "start_point": {"row": 21, "column": 80}, "end_point": {"row": 21, "column": 88}}, {"id": 57, "type": "=", "text": "=", "parent": 43, "children": [], "start_point": {"row": 21, "column": 90}, "end_point": {"row": 21, "column": 91}}, {"id": 58, "type": "number_literal", "text": "0", "parent": 43, "children": [], "start_point": {"row": 21, "column": 92}, "end_point": {"row": 21, "column": 93}}, {"id": 59, "type": "declaration", "text": "virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;", "parent": 26, "children": [60, 61, 68], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 108}}, {"id": 60, "type": "type_identifier", "text": "virtual", "parent": 59, "children": [], "start_point": {"row": 22, "column": 4}, "end_point": {"row": 22, "column": 11}}, {"id": 61, "type": "ERROR", "text": "std::vector<std::string>", "parent": 59, "children": [62, 63, 64, 65, 66, 67], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 36}}, {"id": 62, "type": "identifier", "text": "std", "parent": 61, "children": [], "start_point": {"row": 22, "column": 12}, "end_point": {"row": 22, "column": 15}}, {"id": 63, "type": "identifier", "text": "vector", "parent": 61, "children": [], "start_point": {"row": 22, "column": 17}, "end_point": {"row": 22, "column": 23}}, {"id": 64, "type": "<", "text": "<", "parent": 61, "children": [], "start_point": {"row": 22, "column": 23}, "end_point": {"row": 22, "column": 24}}, {"id": 65, "type": "identifier", "text": "std", "parent": 61, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 27}}, {"id": 66, "type": "identifier", "text": "string", "parent": 61, "children": [], "start_point": {"row": 22, "column": 29}, "end_point": {"row": 22, "column": 35}}, {"id": 67, "type": ">", "text": ">", "parent": 61, "children": [], "start_point": {"row": 22, "column": 35}, "end_point": {"row": 22, "column": 36}}, {"id": 68, "type": "init_declarator", "text": "getPaths (const std::string& categoryTag, long limit, long offset) = 0", "parent": 59, "children": [69, 85, 86], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 107}}, {"id": 69, "type": "function_declarator", "text": "getPaths (const std::string& categoryTag, long limit, long offset)", "parent": 68, "children": [70, 71], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 103}}, {"id": 70, "type": "identifier", "text": "getPaths", "parent": 69, "children": [], "start_point": {"row": 22, "column": 37}, "end_point": {"row": 22, "column": 45}}, {"id": 71, "type": "parameter_list", "text": "(const std::string& categoryTag, long limit, long offset)", "parent": 69, "children": [72, 77, 81], "start_point": {"row": 22, "column": 46}, "end_point": {"row": 22, "column": 103}}, {"id": 72, "type": "parameter_declaration", "text": "const std::string& categoryTag", "parent": 71, "children": [73, 74, 76], "start_point": {"row": 22, "column": 47}, "end_point": {"row": 22, "column": 77}}, {"id": 73, "type": "type_identifier", "text": "std", "parent": 72, "children": [], "start_point": {"row": 22, "column": 53}, "end_point": {"row": 22, "column": 56}}, {"id": 74, "type": "ERROR", "text": "::string&", "parent": 72, "children": [75], "start_point": {"row": 22, "column": 56}, "end_point": {"row": 22, "column": 65}}, {"id": 75, "type": "identifier", "text": "string", "parent": 74, "children": [], "start_point": {"row": 22, "column": 58}, "end_point": {"row": 22, "column": 64}}, {"id": 76, "type": "identifier", "text": "categoryTag", "parent": 72, "children": [], "start_point": {"row": 22, "column": 66}, "end_point": {"row": 22, "column": 77}}, {"id": 77, "type": "parameter_declaration", "text": "long limit", "parent": 71, "children": [78, 80], "start_point": {"row": 22, "column": 79}, "end_point": {"row": 22, "column": 89}}, {"id": 78, "type": "sized_type_specifier", "text": "long", "parent": 77, "children": [79], "start_point": {"row": 22, "column": 79}, "end_point": {"row": 22, "column": 83}}, {"id": 79, "type": "long", "text": "long", "parent": 78, "children": [], "start_point": {"row": 22, "column": 79}, "end_point": {"row": 22, "column": 83}}, {"id": 80, "type": "identifier", "text": "limit", "parent": 77, "children": [], "start_point": {"row": 22, "column": 84}, "end_point": {"row": 22, "column": 89}}, {"id": 81, "type": "parameter_declaration", "text": "long offset", "parent": 71, "children": [82, 84], "start_point": {"row": 22, "column": 91}, "end_point": {"row": 22, "column": 102}}, {"id": 82, "type": "sized_type_specifier", "text": "long", "parent": 81, "children": [83], "start_point": {"row": 22, "column": 91}, "end_point": {"row": 22, "column": 95}}, {"id": 83, "type": "long", "text": "long", "parent": 82, "children": [], "start_point": {"row": 22, "column": 91}, "end_point": {"row": 22, "column": 95}}, {"id": 84, "type": "identifier", "text": "offset", "parent": 81, "children": [], "start_point": {"row": 22, "column": 96}, "end_point": {"row": 22, "column": 102}}, {"id": 85, "type": "=", "text": "=", "parent": 68, "children": [], "start_point": {"row": 22, "column": 104}, "end_point": {"row": 22, "column": 105}}, {"id": 86, "type": "number_literal", "text": "0", "parent": 68, "children": [], "start_point": {"row": 22, "column": 106}, "end_point": {"row": 22, "column": 107}}, {"id": 87, "type": "function_definition", "text": "class LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n}", "parent": 21, "children": [88, 89], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 39, "column": 1}}, {"id": 88, "type": "identifier", "text": "LevelDbFileCategoryStore", "parent": 87, "children": [], "start_point": {"row": 25, "column": 6}, "end_point": {"row": 25, "column": 30}}, {"id": 89, "type": "ERROR", "text": ": public FileCategoryStore", "parent": 87, "children": [90], "start_point": {"row": 25, "column": 31}, "end_point": {"row": 25, "column": 57}}, {"id": 90, "type": "identifier", "text": "FileCategoryStore", "parent": 89, "children": [], "start_point": {"row": 25, "column": 40}, "end_point": {"row": 25, "column": 57}}, {"id": 91, "type": "labeled_statement", "text": "public:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));", "parent": 87, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 28, "column": 64}}, {"id": 92, "type": "call_expression", "text": "INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory))", "parent": 91, "children": [93, 94], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 63}}, {"id": 93, "type": "identifier", "text": "INJECT", "parent": 92, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 94, "type": "argument_list", "text": "(LevelDbFileCategoryStore (LevelDbFactory* factory))", "parent": 92, "children": [95], "start_point": {"row": 28, "column": 11}, "end_point": {"row": 28, "column": 63}}, {"id": 95, "type": "call_expression", "text": "LevelDbFileCategoryStore (LevelDbFactory* factory)", "parent": 94, "children": [96, 97], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 62}}, {"id": 96, "type": "identifier", "text": "LevelDbFileCategoryStore", "parent": 95, "children": [], "start_point": {"row": 28, "column": 12}, "end_point": {"row": 28, "column": 36}}, {"id": 97, "type": "argument_list", "text": "(LevelDbFactory* factory)", "parent": 95, "children": [98], "start_point": {"row": 28, "column": 37}, "end_point": {"row": 28, "column": 62}}, {"id": 98, "type": "binary_expression", "text": "LevelDbFactory* factory", "parent": 97, "children": [99, 100, 101], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 61}}, {"id": 99, "type": "identifier", "text": "LevelDbFactory", "parent": 98, "children": [], "start_point": {"row": 28, "column": 38}, "end_point": {"row": 28, "column": 52}}, {"id": 100, "type": "*", "text": "*", "parent": 98, "children": [], "start_point": {"row": 28, "column": 52}, "end_point": {"row": 28, "column": 53}}, {"id": 101, "type": "identifier", "text": "factory", "parent": 98, "children": [], "start_point": {"row": 28, "column": 54}, "end_point": {"row": 28, "column": 61}}, {"id": 102, "type": "unary_expression", "text": "~LevelDbFileCategoryStore ()", "parent": 87, "children": [103, 104], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 32}}, {"id": 103, "type": "~", "text": "~", "parent": 102, "children": [], "start_point": {"row": 29, "column": 4}, "end_point": {"row": 29, "column": 5}}, {"id": 104, "type": "call_expression", "text": "LevelDbFileCategoryStore ()", "parent": 102, "children": [105, 106], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 32}}, {"id": 105, "type": "identifier", "text": "LevelDbFileCategoryStore", "parent": 104, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 29}}, {"id": 106, "type": "argument_list", "text": "()", "parent": 104, "children": [], "start_point": {"row": 29, "column": 30}, "end_point": {"row": 29, "column": 32}}, {"id": 107, "type": "ERROR", "text": "override", "parent": 87, "children": [108], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 41}}, {"id": 108, "type": "identifier", "text": "override", "parent": 107, "children": [], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 41}}, {"id": 109, "type": "ERROR", "text": "void insertPath (const std::string& categoryTag, const std::string& filepath) override", "parent": 87, "children": [110, 111], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 90}}, {"id": 110, "type": "primitive_type", "text": "void", "parent": 109, "children": [], "start_point": {"row": 31, "column": 4}, "end_point": {"row": 31, "column": 8}}, {"id": 111, "type": "function_declarator", "text": "insertPath (const std::string& categoryTag, const std::string& filepath) override", "parent": 109, "children": [112, 113, 124], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 90}}, {"id": 112, "type": "identifier", "text": "insertPath", "parent": 111, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 19}}, {"id": 113, "type": "parameter_list", "text": "(const std::string& categoryTag, const std::string& filepath)", "parent": 111, "children": [114, 119], "start_point": {"row": 31, "column": 20}, "end_point": {"row": 31, "column": 81}}, {"id": 114, "type": "parameter_declaration", "text": "const std::string& categoryTag", "parent": 113, "children": [115, 116, 118], "start_point": {"row": 31, "column": 21}, "end_point": {"row": 31, "column": 51}}, {"id": 115, "type": "type_identifier", "text": "std", "parent": 114, "children": [], "start_point": {"row": 31, "column": 27}, "end_point": {"row": 31, "column": 30}}, {"id": 116, "type": "ERROR", "text": "::string&", "parent": 114, "children": [117], "start_point": {"row": 31, "column": 30}, "end_point": {"row": 31, "column": 39}}, {"id": 117, "type": "identifier", "text": "string", "parent": 116, "children": [], "start_point": {"row": 31, "column": 32}, "end_point": {"row": 31, "column": 38}}, {"id": 118, "type": "identifier", "text": "categoryTag", "parent": 114, "children": [], "start_point": {"row": 31, "column": 40}, "end_point": {"row": 31, "column": 51}}, {"id": 119, "type": "parameter_declaration", "text": "const std::string& filepath", "parent": 113, "children": [120, 121, 123], "start_point": {"row": 31, "column": 53}, "end_point": {"row": 31, "column": 80}}, {"id": 120, "type": "type_identifier", "text": "std", "parent": 119, "children": [], "start_point": {"row": 31, "column": 59}, "end_point": {"row": 31, "column": 62}}, {"id": 121, "type": "ERROR", "text": "::string&", "parent": 119, "children": [122], "start_point": {"row": 31, "column": 62}, "end_point": {"row": 31, "column": 71}}, {"id": 122, "type": "identifier", "text": "string", "parent": 121, "children": [], "start_point": {"row": 31, "column": 64}, "end_point": {"row": 31, "column": 70}}, {"id": 123, "type": "identifier", "text": "filepath", "parent": 119, "children": [], "start_point": {"row": 31, "column": 72}, "end_point": {"row": 31, "column": 80}}, {"id": 124, "type": "identifier", "text": "override", "parent": 111, "children": [], "start_point": {"row": 31, "column": 82}, "end_point": {"row": 31, "column": 90}}, {"id": 125, "type": "labeled_statement", "text": "std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;", "parent": 87, "children": [126, 127], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 105}}, {"id": 126, "type": "statement_identifier", "text": "std", "parent": 125, "children": [], "start_point": {"row": 32, "column": 4}, "end_point": {"row": 32, "column": 7}}, {"id": 127, "type": "ERROR", "text": "::vector<std:", "parent": 125, "children": [128], "start_point": {"row": 32, "column": 7}, "end_point": {"row": 32, "column": 20}}, {"id": 128, "type": "binary_expression", "text": "vector<std", "parent": 127, "children": [129, 130, 131], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 19}}, {"id": 129, "type": "identifier", "text": "vector", "parent": 128, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 15}}, {"id": 130, "type": "<", "text": "<", "parent": 128, "children": [], "start_point": {"row": 32, "column": 15}, "end_point": {"row": 32, "column": 16}}, {"id": 131, "type": "identifier", "text": "std", "parent": 128, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 19}}, {"id": 132, "type": "binary_expression", "text": "string> getPaths (const std::string& categoryTag, long limit, long offset)", "parent": 125, "children": [133, 134, 135], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 95}}, {"id": 133, "type": "identifier", "text": "string", "parent": 132, "children": [], "start_point": {"row": 32, "column": 21}, "end_point": {"row": 32, "column": 27}}, {"id": 134, "type": ">", "text": ">", "parent": 132, "children": [], "start_point": {"row": 32, "column": 27}, "end_point": {"row": 32, "column": 28}}, {"id": 135, "type": "call_expression", "text": "getPaths (const std::string& categoryTag, long limit, long offset)", "parent": 132, "children": [136, 137], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 95}}, {"id": 136, "type": "identifier", "text": "getPaths", "parent": 135, "children": [], "start_point": {"row": 32, "column": 29}, "end_point": {"row": 32, "column": 37}}, {"id": 137, "type": "argument_list", "text": "(const std::string& categoryTag, long limit, long offset)", "parent": 135, "children": [138, 140, 143, 145, 146, 148], "start_point": {"row": 32, "column": 38}, "end_point": {"row": 32, "column": 95}}, {"id": 138, "type": "ERROR", "text": "const std::", "parent": 137, "children": [139], "start_point": {"row": 32, "column": 39}, "end_point": {"row": 32, "column": 50}}, {"id": 139, "type": "identifier", "text": "std", "parent": 138, "children": [], "start_point": {"row": 32, "column": 45}, "end_point": {"row": 32, "column": 48}}, {"id": 140, "type": "binary_expression", "text": "string& categoryTag", "parent": 137, "children": [141, 142], "start_point": {"row": 32, "column": 50}, "end_point": {"row": 32, "column": 69}}, {"id": 141, "type": "identifier", "text": "string", "parent": 140, "children": [], "start_point": {"row": 32, "column": 50}, "end_point": {"row": 32, "column": 56}}, {"id": 142, "type": "identifier", "text": "categoryTag", "parent": 140, "children": [], "start_point": {"row": 32, "column": 58}, "end_point": {"row": 32, "column": 69}}, {"id": 143, "type": "ERROR", "text": "long", "parent": 137, "children": [144], "start_point": {"row": 32, "column": 71}, "end_point": {"row": 32, "column": 75}}, {"id": 144, "type": "identifier", "text": "long", "parent": 143, "children": [], "start_point": {"row": 32, "column": 71}, "end_point": {"row": 32, "column": 75}}, {"id": 145, "type": "identifier", "text": "limit", "parent": 137, "children": [], "start_point": {"row": 32, "column": 76}, "end_point": {"row": 32, "column": 81}}, {"id": 146, "type": "ERROR", "text": "long", "parent": 137, "children": [147], "start_point": {"row": 32, "column": 83}, "end_point": {"row": 32, "column": 87}}, {"id": 147, "type": "identifier", "text": "long", "parent": 146, "children": [], "start_point": {"row": 32, "column": 83}, "end_point": {"row": 32, "column": 87}}, {"id": 148, "type": "identifier", "text": "offset", "parent": 137, "children": [], "start_point": {"row": 32, "column": 88}, "end_point": {"row": 32, "column": 94}}, {"id": 149, "type": "ERROR", "text": "override", "parent": 125, "children": [150], "start_point": {"row": 32, "column": 96}, "end_point": {"row": 32, "column": 104}}, {"id": 150, "type": "identifier", "text": "override", "parent": 149, "children": [], "start_point": {"row": 32, "column": 96}, "end_point": {"row": 32, "column": 104}}, {"id": 151, "type": "labeled_statement", "text": "leveldb::DB* getDatabase (const std::string& categoryTag);", "parent": 87, "children": [152, 153], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 62}}, {"id": 152, "type": "statement_identifier", "text": "leveldb", "parent": 151, "children": [], "start_point": {"row": 34, "column": 4}, "end_point": {"row": 34, "column": 11}}, {"id": 153, "type": "ERROR", "text": "::DB* getDatabase (const std:", "parent": 151, "children": [154, 155, 156, 157], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 40}}, {"id": 154, "type": "type_identifier", "text": "DB", "parent": 153, "children": [], "start_point": {"row": 34, "column": 13}, "end_point": {"row": 34, "column": 15}}, {"id": 155, "type": "*", "text": "*", "parent": 153, "children": [], "start_point": {"row": 34, "column": 15}, "end_point": {"row": 34, "column": 16}}, {"id": 156, "type": "identifier", "text": "getDatabase", "parent": 153, "children": [], "start_point": {"row": 34, "column": 17}, "end_point": {"row": 34, "column": 28}}, {"id": 157, "type": "type_identifier", "text": "std", "parent": 153, "children": [], "start_point": {"row": 34, "column": 36}, "end_point": {"row": 34, "column": 39}}, {"id": 158, "type": "binary_expression", "text": "string& categoryTag", "parent": 151, "children": [159, 160], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 60}}, {"id": 159, "type": "identifier", "text": "string", "parent": 158, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 47}}, {"id": 160, "type": "identifier", "text": "categoryTag", "parent": 158, "children": [], "start_point": {"row": 34, "column": 49}, "end_point": {"row": 34, "column": 60}}, {"id": 161, "type": "labeled_statement", "text": "private:\n LevelDbFactory* m_levelDbFactory;", "parent": 87, "children": [162], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 37}}, {"id": 162, "type": "declaration", "text": "LevelDbFactory* m_levelDbFactory;", "parent": 161, "children": [163, 164], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 37}}, {"id": 163, "type": "type_identifier", "text": "LevelDbFactory", "parent": 162, "children": [], "start_point": {"row": 37, "column": 4}, "end_point": {"row": 37, "column": 18}}, {"id": 164, "type": "pointer_declarator", "text": "* m_levelDbFactory", "parent": 162, "children": [165, 166], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 36}}, {"id": 165, "type": "*", "text": "*", "parent": 164, "children": [], "start_point": {"row": 37, "column": 18}, "end_point": {"row": 37, "column": 19}}, {"id": 166, "type": "identifier", "text": "m_levelDbFactory", "parent": 164, "children": [], "start_point": {"row": 37, "column": 20}, "end_point": {"row": 37, "column": 36}}, {"id": 167, "type": "binary_expression", "text": "std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore", "parent": 87, "children": [168, 169, 179, 180], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 67}}, {"id": 168, "type": "identifier", "text": "std", "parent": 167, "children": [], "start_point": {"row": 38, "column": 4}, "end_point": {"row": 38, "column": 7}}, {"id": 169, "type": "ERROR", "text": "::unordered_map<std::string, leveldb::DB*", "parent": 167, "children": [170, 174, 177, 178], "start_point": {"row": 38, "column": 7}, "end_point": {"row": 38, "column": 48}}, {"id": 170, "type": "binary_expression", "text": "unordered_map<std", "parent": 169, "children": [171, 172, 173], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 26}}, {"id": 171, "type": "identifier", "text": "unordered_map", "parent": 170, "children": [], "start_point": {"row": 38, "column": 9}, "end_point": {"row": 38, "column": 22}}, {"id": 172, "type": "<", "text": "<", "parent": 170, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 23}}, {"id": 173, "type": "identifier", "text": "std", "parent": 170, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 26}}, {"id": 174, "type": "comma_expression", "text": "string, leveldb", "parent": 169, "children": [175, 176], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 43}}, {"id": 175, "type": "identifier", "text": "string", "parent": 174, "children": [], "start_point": {"row": 38, "column": 28}, "end_point": {"row": 38, "column": 34}}, {"id": 176, "type": "identifier", "text": "leveldb", "parent": 174, "children": [], "start_point": {"row": 38, "column": 36}, "end_point": {"row": 38, "column": 43}}, {"id": 177, "type": "identifier", "text": "DB", "parent": 169, "children": [], "start_point": {"row": 38, "column": 45}, "end_point": {"row": 38, "column": 47}}, {"id": 178, "type": "*", "text": "*", "parent": 169, "children": [], "start_point": {"row": 38, "column": 47}, "end_point": {"row": 38, "column": 48}}, {"id": 179, "type": ">", "text": ">", "parent": 167, "children": [], "start_point": {"row": 38, "column": 48}, "end_point": {"row": 38, "column": 49}}, {"id": 180, "type": "identifier", "text": "m_categoryDBStore", "parent": 167, "children": [], "start_point": {"row": 38, "column": 50}, "end_point": {"row": 38, "column": 67}}, {"id": 181, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 6}}]}, "node_categories": {"declarations": {"functions": [21, 26, 34, 44, 69, 87, 111], "variables": [29, 39, 47, 52, 59, 72, 77, 81, 114, 119, 162], "classes": [], "imports": [6, 7, 9, 10, 12, 13, 15, 16, 18, 19], "modules": [], "enums": []}, "statements": {"expressions": [92, 95, 98, 102, 104, 128, 132, 135, 140, 158, 167, 170, 174], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 22, 23, 25, 27, 30, 35, 38, 40, 42, 45, 48, 50, 51, 53, 55, 56, 60, 62, 63, 65, 66, 70, 73, 75, 76, 78, 80, 82, 84, 88, 90, 93, 96, 99, 101, 105, 108, 112, 115, 117, 118, 120, 122, 123, 124, 126, 129, 131, 133, 136, 139, 141, 142, 144, 145, 147, 148, 150, 152, 154, 156, 157, 159, 160, 163, 166, 168, 171, 173, 175, 176, 177, 180, 181], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 14, 17, 20, 58, 86], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 21, "universal_type": "function", "name": "FileCategoryStore", "text_snippet": "namespace filesaver::services\n{\n\nclass FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore ()"}, {"node_id": 26, "universal_type": "function", "name": "FileCategoryStore", "text_snippet": "class FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void inse"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "FileCategoryStore ()"}, {"node_id": 44, "universal_type": "function", "name": "unknown", "text_snippet": "insertPath (const std::string& categoryTag, const std::string& filepath)"}, {"node_id": 69, "universal_type": "function", "name": "unknown", "text_snippet": "getPaths (const std::string& categoryTag, long limit, long offset)"}, {"node_id": 87, "universal_type": "function", "name": "LevelDbFileCategoryStore", "text_snippet": "class LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryS"}, {"node_id": 111, "universal_type": "function", "name": "unknown", "text_snippet": "insertPath (const std::string& categoryTag, const std::string& filepath) override"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include <fruit/fruit.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include <leveldb/db.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 12, "text": "#include <string>\n"}, {"node_id": 13, "text": "#include"}, {"node_id": 15, "text": "#include <vector>\n"}, {"node_id": 16, "text": "#include"}, {"node_id": 18, "text": "#include \"../storage/LevelDbFactory.h\"\n"}, {"node_id": 19, "text": "#include"}]}, "original_source_code": "//\n// Created by <NAME> on 27/4/21.\n//\n\n#ifndef FILESAVER_LEVELDBFILECATEGORYSTORE_H\n#define FILESAVER_LEVELDBFILECATEGORYSTORE_H\n\n#include <fruit/fruit.h>\n#include <leveldb/db.h>\n#include <string>\n#include <vector>\n\n#include \"../storage/LevelDbFactory.h\"\n\nnamespace filesaver::services\n{\n\nclass FileCategoryStore\n{\npublic:\n virtual ~FileCategoryStore () = default;\n virtual void insertPath (const std::string& categoryTag, const std::string& filepath) = 0;\n virtual std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) = 0;\n};\n\nclass LevelDbFileCategoryStore : public FileCategoryStore\n{\npublic:\n INJECT (LevelDbFileCategoryStore (LevelDbFactory* factory));\n ~LevelDbFileCategoryStore () override;\n\n void insertPath (const std::string& categoryTag, const std::string& filepath) override;\n std::vector<std::string> getPaths (const std::string& categoryTag, long limit, long offset) override;\n\n leveldb::DB* getDatabase (const std::string& categoryTag);\n\nprivate:\n LevelDbFactory* m_levelDbFactory;\n std::unordered_map<std::string, leveldb::DB*> m_categoryDBStore;\n};\n\n} // namespace filesaver::services\n\n#endif // FILESAVER_LEVELDBFILECATEGORYSTORE_H\n"}
80,392
c
// // begin license header // // This file is part of Pixy CMUcam5 or "Pixy" for short // // All Pixy source code is provided under the terms of the // GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). // Those wishing to use Pixy source code, software and/or // technologies under different licensing terms should contact us at // <EMAIL>. Such licensing terms are available for // all portions of the Pixy codebase presented here. // // end license header // #ifndef _PROGPT_H #define _PROGPT_H #include "exec.h" #define PAN_AXIS 0 #define TILT_AXIS 1 #define X_CENTER (CAM_RES2_WIDTH/2) #define Y_CENTER (CAM_RES2_HEIGHT/2) extern Program g_progPt; int ptSetup(); int ptLoop(); void ptLoadParams(); class ServoLoop { public: ServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain); void update(int32_t error); void reset(); void setGains(int32_t pgain, int32_t dgain); private: int32_t m_pos; int32_t m_prevError; uint8_t m_axis; int32_t m_pgain; int32_t m_dgain; }; #endif
21
49
(translation_unit) "// \n// begin license header \n// \n// This file is part of Pixy CMUcam5 or "Pixy" for short \n// \n// All Pixy source code is provided under the terms of the \n// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). \n// Those wishing to use Pixy source code, software and/or \n// technologies under different licensing terms should contact us at \n// <EMAIL>. Such licensing terms are available for \n// all portions of the Pixy codebase presented here. \n// \n// end license header \n// \n \n#ifndef _PROGPT_H \n#define _PROGPT_H \n \n#include "exec.h" \n \n#define PAN_AXIS 0 \n#define TILT_AXIS 1 \n#define X_CENTER (CAM_RES2_WIDTH/2) \n#define Y_CENTER (CAM_RES2_HEIGHT/2) \n \nextern Program g_progPt; \n \nint ptSetup(); \nint ptLoop(); \nvoid ptLoadParams(); \n \nclass ServoLoop \n{ \npublic: \n ServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain); \n \n void update(int32_t error); \n void reset(); \n void setGains(int32_t pgain, int32_t dgain); \n \nprivate: \n int32_t m_pos; \n int32_t m_prevError; \n uint8_t m_axis; \n int32_t m_pgain; \n int32_t m_dgain; \n}; \n \n#endif \n" (comment) "// " (comment) "// begin license header " (comment) "// " (comment) "// This file is part of Pixy CMUcam5 or "Pixy" for short " (comment) "// " (comment) "// All Pixy source code is provided under the terms of the " (comment) "// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). " (comment) "// Those wishing to use Pixy source code, software and/or " (comment) "// technologies under different licensing terms should contact us at " (comment) "// <EMAIL>. Such licensing terms are available for " (comment) "// all portions of the Pixy codebase presented here. " (comment) "// " (comment) "// end license header " (comment) "// " (preproc_ifdef) "#ifndef _PROGPT_H \n#define _PROGPT_H \n \n#include "exec.h" \n \n#define PAN_AXIS 0 \n#define TILT_AXIS 1 \n#define X_CENTER (CAM_RES2_WIDTH/2) \n#define Y_CENTER (CAM_RES2_HEIGHT/2) \n \nextern Program g_progPt; \n \nint ptSetup(); \nint ptLoop(); \nvoid ptLoadParams(); \n \nclass ServoLoop \n{ \npublic: \n ServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain); \n \n void update(int32_t error); \n void reset(); \n void setGains(int32_t pgain, int32_t dgain); \n \nprivate: \n int32_t m_pos; \n int32_t m_prevError; \n uint8_t m_axis; \n int32_t m_pgain; \n int32_t m_dgain; \n}; \n \n#endif" (#ifndef) "#ifndef" (identifier) "_PROGPT_H" (preproc_def) "#define _PROGPT_H \n" (#define) "#define" (identifier) "_PROGPT_H" (preproc_include) "#include "exec.h" \n" (#include) "#include" (string_literal) ""exec.h"" (") """ (string_content) "exec.h" (") """ (preproc_def) "#define PAN_AXIS 0 \n" (#define) "#define" (identifier) "PAN_AXIS" (preproc_arg) "0 " (preproc_def) "#define TILT_AXIS 1 \n" (#define) "#define" (identifier) "TILT_AXIS" (preproc_arg) "1 " (preproc_def) "#define X_CENTER (CAM_RES2_WIDTH/2) \n" (#define) "#define" (identifier) "X_CENTER" (preproc_arg) "(CAM_RES2_WIDTH/2) " (preproc_def) "#define Y_CENTER (CAM_RES2_HEIGHT/2) \n" (#define) "#define" (identifier) "Y_CENTER" (preproc_arg) "(CAM_RES2_HEIGHT/2) " (declaration) "extern Program g_progPt;" (storage_class_specifier) "extern" (extern) "extern" (type_identifier) "Program" (identifier) "g_progPt" (;) ";" (declaration) "int ptSetup();" (primitive_type) "int" (function_declarator) "ptSetup()" (identifier) "ptSetup" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "int ptLoop();" (primitive_type) "int" (function_declarator) "ptLoop()" (identifier) "ptLoop" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void ptLoadParams();" (primitive_type) "void" (function_declarator) "ptLoadParams()" (identifier) "ptLoadParams" (parameter_list) "()" (() "(" ()) ")" (;) ";" (function_definition) "class ServoLoop \n{ \npublic: \n ServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain); \n \n void update(int32_t error); \n void reset(); \n void setGains(int32_t pgain, int32_t dgain); \n \nprivate: \n int32_t m_pos; \n int32_t m_prevError; \n uint8_t m_axis; \n int32_t m_pgain; \n int32_t m_dgain; \n}" (type_identifier) "class" (identifier) "ServoLoop" (compound_statement) "{ \npublic: \n ServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain); \n \n void update(int32_t error); \n void reset(); \n void setGains(int32_t pgain, int32_t dgain); \n \nprivate: \n int32_t m_pos; \n int32_t m_prevError; \n uint8_t m_axis; \n int32_t m_pgain; \n int32_t m_dgain; \n}" ({) "{" (labeled_statement) "public: \n ServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain);" (statement_identifier) "public" (:) ":" (declaration) "ServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain);" (macro_type_specifier) "ServoLoop(uint8_t" (identifier) "ServoLoop" (() "(" (type_descriptor) "uint8_t" (primitive_type) "uint8_t" ()) "" (identifier) "axis" (,) "," (identifier) "uint32_t" (ERROR) "pgain" (identifier) "pgain" (,) "," (identifier) "uint32_t" (ERROR) "dgain)" (identifier) "dgain" ()) ")" (;) ";" (declaration) "void update(int32_t error);" (primitive_type) "void" (function_declarator) "update(int32_t error)" (identifier) "update" (parameter_list) "(int32_t error)" (() "(" (parameter_declaration) "int32_t error" (primitive_type) "int32_t" (identifier) "error" ()) ")" (;) ";" (declaration) "void reset();" (primitive_type) "void" (function_declarator) "reset()" (identifier) "reset" (parameter_list) "()" (() "(" ()) ")" (;) ";" (declaration) "void setGains(int32_t pgain, int32_t dgain);" (primitive_type) "void" (function_declarator) "setGains(int32_t pgain, int32_t dgain)" (identifier) "setGains" (parameter_list) "(int32_t pgain, int32_t dgain)" (() "(" (parameter_declaration) "int32_t pgain" (primitive_type) "int32_t" (identifier) "pgain" (,) "," (parameter_declaration) "int32_t dgain" (primitive_type) "int32_t" (identifier) "dgain" ()) ")" (;) ";" (labeled_statement) "private: \n int32_t m_pos;" (statement_identifier) "private" (:) ":" (declaration) "int32_t m_pos;" (primitive_type) "int32_t" (identifier) "m_pos" (;) ";" (declaration) "int32_t m_prevError;" (primitive_type) "int32_t" (identifier) "m_prevError" (;) ";" (declaration) "uint8_t m_axis;" (primitive_type) "uint8_t" (identifier) "m_axis" (;) ";" (declaration) "int32_t m_pgain;" (primitive_type) "int32_t" (identifier) "m_pgain" (;) ";" (declaration) "int32_t m_dgain;" (primitive_type) "int32_t" (identifier) "m_dgain" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (#endif) "#endif"
160
2
{"language": "c", "success": true, "metadata": {"lines": 49, "avg_line_length": 21.0, "nodes": 101, "errors": 0, "source_hash": "e791310b8bf5b28687be084b25916f7d5cfaca89c2ea751c821908284b49695d", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _PROGPT_H\r\n#define _PROGPT_H\r\n\r\n#include \"exec.h\"\r\n\r\n#define PAN_AXIS 0\r\n#define TILT_AXIS 1\r\n#define X_CENTER (CAM_RES2_WIDTH/2)\r\n#define Y_CENTER (CAM_RES2_HEIGHT/2)\r\n\r\nextern Program g_progPt;\r\n\r\nint ptSetup();\r\nint ptLoop();\r\nvoid ptLoadParams();\r\n\r\nclass ServoLoop\r\n{\r\npublic:\r\n\tServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain);\r\n\r\n\tvoid update(int32_t error);\r\n\tvoid reset();\r\n\tvoid setGains(int32_t pgain, int32_t dgain);\r\n\r\nprivate:\r\n\tint32_t m_pos;\r\n\tint32_t m_prevError;\r\n\tuint8_t m_axis;\r\n\tint32_t m_pgain;\r\n\tint32_t m_dgain;\r\n};\r\n\r\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 13, 17, 21, 25, 30, 35, 40, 45, 100], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 48, "column": 6}}, {"id": 1, "type": "#ifndef", "text": "#ifndef", "parent": 0, "children": [], "start_point": {"row": 15, "column": 0}, "end_point": {"row": 15, "column": 7}}, {"id": 2, "type": "identifier", "text": "_PROGPT_H", "parent": 0, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 17}}, {"id": 3, "type": "preproc_def", "text": "#define _PROGPT_H\r\n", "parent": 0, "children": [4, 5], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 4, "type": "#define", "text": "#define", "parent": 3, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 5, "type": "identifier", "text": "_PROGPT_H", "parent": 3, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 17}}, {"id": 6, "type": "preproc_include", "text": "#include \"exec.h\"\r\n", "parent": 0, "children": [7, 8], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"exec.h\"", "parent": 6, "children": [], "start_point": {"row": 18, "column": 9}, "end_point": {"row": 18, "column": 17}}, {"id": 9, "type": "preproc_def", "text": "#define PAN_AXIS 0\r\n", "parent": 0, "children": [10, 11, 12], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 10, "type": "#define", "text": "#define", "parent": 9, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 11, "type": "identifier", "text": "PAN_AXIS", "parent": 9, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 16}}, {"id": 12, "type": "preproc_arg", "text": "0\r", "parent": 9, "children": [], "start_point": {"row": 20, "column": 20}, "end_point": {"row": 20, "column": 22}}, {"id": 13, "type": "preproc_def", "text": "#define TILT_AXIS 1\r\n", "parent": 0, "children": [14, 15, 16], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 15, "type": "identifier", "text": "TILT_AXIS", "parent": 13, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 17}}, {"id": 16, "type": "preproc_arg", "text": "1\r", "parent": 13, "children": [], "start_point": {"row": 21, "column": 20}, "end_point": {"row": 21, "column": 22}}, {"id": 17, "type": "preproc_def", "text": "#define X_CENTER (CAM_RES2_WIDTH/2)\r\n", "parent": 0, "children": [18, 19, 20], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 19, "type": "identifier", "text": "X_CENTER", "parent": 17, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 16}}, {"id": 20, "type": "preproc_arg", "text": "(CAM_RES2_WIDTH/2)\r", "parent": 17, "children": [], "start_point": {"row": 22, "column": 20}, "end_point": {"row": 22, "column": 39}}, {"id": 21, "type": "preproc_def", "text": "#define Y_CENTER (CAM_RES2_HEIGHT/2)\r\n", "parent": 0, "children": [22, 23, 24], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 23, "type": "identifier", "text": "Y_CENTER", "parent": 21, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 16}}, {"id": 24, "type": "preproc_arg", "text": "(CAM_RES2_HEIGHT/2)\r", "parent": 21, "children": [], "start_point": {"row": 23, "column": 20}, "end_point": {"row": 23, "column": 40}}, {"id": 25, "type": "declaration", "text": "extern Program g_progPt;", "parent": 0, "children": [26, 28, 29], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 24}}, {"id": 26, "type": "storage_class_specifier", "text": "extern", "parent": 25, "children": [27], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 27, "type": "extern", "text": "extern", "parent": 26, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 6}}, {"id": 28, "type": "type_identifier", "text": "Program", "parent": 25, "children": [], "start_point": {"row": 25, "column": 7}, "end_point": {"row": 25, "column": 14}}, {"id": 29, "type": "identifier", "text": "g_progPt", "parent": 25, "children": [], "start_point": {"row": 25, "column": 15}, "end_point": {"row": 25, "column": 23}}, {"id": 30, "type": "declaration", "text": "int ptSetup();", "parent": 0, "children": [31, 32], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 14}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 30, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 3}}, {"id": 32, "type": "function_declarator", "text": "ptSetup()", "parent": 30, "children": [33, 34], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 13}}, {"id": 33, "type": "identifier", "text": "ptSetup", "parent": 32, "children": [], "start_point": {"row": 27, "column": 4}, "end_point": {"row": 27, "column": 11}}, {"id": 34, "type": "parameter_list", "text": "()", "parent": 32, "children": [], "start_point": {"row": 27, "column": 11}, "end_point": {"row": 27, "column": 13}}, {"id": 35, "type": "declaration", "text": "int ptLoop();", "parent": 0, "children": [36, 37], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 13}}, {"id": 36, "type": "primitive_type", "text": "int", "parent": 35, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 3}}, {"id": 37, "type": "function_declarator", "text": "ptLoop()", "parent": 35, "children": [38, 39], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 12}}, {"id": 38, "type": "identifier", "text": "ptLoop", "parent": 37, "children": [], "start_point": {"row": 28, "column": 4}, "end_point": {"row": 28, "column": 10}}, {"id": 39, "type": "parameter_list", "text": "()", "parent": 37, "children": [], "start_point": {"row": 28, "column": 10}, "end_point": {"row": 28, "column": 12}}, {"id": 40, "type": "declaration", "text": "void ptLoadParams();", "parent": 0, "children": [41, 42], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 20}}, {"id": 41, "type": "primitive_type", "text": "void", "parent": 40, "children": [], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 4}}, {"id": 42, "type": "function_declarator", "text": "ptLoadParams()", "parent": 40, "children": [43, 44], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 19}}, {"id": 43, "type": "identifier", "text": "ptLoadParams", "parent": 42, "children": [], "start_point": {"row": 29, "column": 5}, "end_point": {"row": 29, "column": 17}}, {"id": 44, "type": "parameter_list", "text": "()", "parent": 42, "children": [], "start_point": {"row": 29, "column": 17}, "end_point": {"row": 29, "column": 19}}, {"id": 45, "type": "function_definition", "text": "class ServoLoop\r\n{\r\npublic:\r\n\tServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain);\r\n\r\n\tvoid update(int32_t error);\r\n\tvoid reset();\r\n\tvoid setGains(int32_t pgain, int32_t dgain);\r\n\r\nprivate:\r\n\tint32_t m_pos;\r\n\tint32_t m_prevError;\r\n\tuint8_t m_axis;\r\n\tint32_t m_pgain;\r\n\tint32_t m_dgain;\r\n}", "parent": 0, "children": [46], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 46, "column": 1}}, {"id": 46, "type": "identifier", "text": "ServoLoop", "parent": 45, "children": [], "start_point": {"row": 31, "column": 6}, "end_point": {"row": 31, "column": 15}}, {"id": 47, "type": "labeled_statement", "text": "public:\r\n\tServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain);", "parent": 45, "children": [48], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 57}}, {"id": 48, "type": "declaration", "text": "ServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain);", "parent": 47, "children": [49, 53, 54, 55, 57, 58], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 57}}, {"id": 49, "type": "macro_type_specifier", "text": "ServoLoop(uint8_t", "parent": 48, "children": [50, 51], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 18}}, {"id": 50, "type": "identifier", "text": "ServoLoop", "parent": 49, "children": [], "start_point": {"row": 34, "column": 1}, "end_point": {"row": 34, "column": 10}}, {"id": 51, "type": "type_descriptor", "text": "uint8_t", "parent": 49, "children": [52], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 18}}, {"id": 52, "type": "primitive_type", "text": "uint8_t", "parent": 51, "children": [], "start_point": {"row": 34, "column": 11}, "end_point": {"row": 34, "column": 18}}, {"id": 53, "type": "identifier", "text": "axis", "parent": 48, "children": [], "start_point": {"row": 34, "column": 19}, "end_point": {"row": 34, "column": 23}}, {"id": 54, "type": "identifier", "text": "uint32_t", "parent": 48, "children": [], "start_point": {"row": 34, "column": 25}, "end_point": {"row": 34, "column": 33}}, {"id": 55, "type": "ERROR", "text": "pgain", "parent": 48, "children": [56], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 39}}, {"id": 56, "type": "identifier", "text": "pgain", "parent": 55, "children": [], "start_point": {"row": 34, "column": 34}, "end_point": {"row": 34, "column": 39}}, {"id": 57, "type": "identifier", "text": "uint32_t", "parent": 48, "children": [], "start_point": {"row": 34, "column": 41}, "end_point": {"row": 34, "column": 49}}, {"id": 58, "type": "ERROR", "text": "dgain)", "parent": 48, "children": [59], "start_point": {"row": 34, "column": 50}, "end_point": {"row": 34, "column": 56}}, {"id": 59, "type": "identifier", "text": "dgain", "parent": 58, "children": [], "start_point": {"row": 34, "column": 50}, "end_point": {"row": 34, "column": 55}}, {"id": 60, "type": "declaration", "text": "void update(int32_t error);", "parent": 45, "children": [61, 62], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 28}}, {"id": 61, "type": "primitive_type", "text": "void", "parent": 60, "children": [], "start_point": {"row": 36, "column": 1}, "end_point": {"row": 36, "column": 5}}, {"id": 62, "type": "function_declarator", "text": "update(int32_t error)", "parent": 60, "children": [63, 64], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 27}}, {"id": 63, "type": "identifier", "text": "update", "parent": 62, "children": [], "start_point": {"row": 36, "column": 6}, "end_point": {"row": 36, "column": 12}}, {"id": 64, "type": "parameter_list", "text": "(int32_t error)", "parent": 62, "children": [65], "start_point": {"row": 36, "column": 12}, "end_point": {"row": 36, "column": 27}}, {"id": 65, "type": "parameter_declaration", "text": "int32_t error", "parent": 64, "children": [66, 67], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 26}}, {"id": 66, "type": "primitive_type", "text": "int32_t", "parent": 65, "children": [], "start_point": {"row": 36, "column": 13}, "end_point": {"row": 36, "column": 20}}, {"id": 67, "type": "identifier", "text": "error", "parent": 65, "children": [], "start_point": {"row": 36, "column": 21}, "end_point": {"row": 36, "column": 26}}, {"id": 68, "type": "declaration", "text": "void reset();", "parent": 45, "children": [69, 70], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 14}}, {"id": 69, "type": "primitive_type", "text": "void", "parent": 68, "children": [], "start_point": {"row": 37, "column": 1}, "end_point": {"row": 37, "column": 5}}, {"id": 70, "type": "function_declarator", "text": "reset()", "parent": 68, "children": [71, 72], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 13}}, {"id": 71, "type": "identifier", "text": "reset", "parent": 70, "children": [], "start_point": {"row": 37, "column": 6}, "end_point": {"row": 37, "column": 11}}, {"id": 72, "type": "parameter_list", "text": "()", "parent": 70, "children": [], "start_point": {"row": 37, "column": 11}, "end_point": {"row": 37, "column": 13}}, {"id": 73, "type": "declaration", "text": "void setGains(int32_t pgain, int32_t dgain);", "parent": 45, "children": [74, 75], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 45}}, {"id": 74, "type": "primitive_type", "text": "void", "parent": 73, "children": [], "start_point": {"row": 38, "column": 1}, "end_point": {"row": 38, "column": 5}}, {"id": 75, "type": "function_declarator", "text": "setGains(int32_t pgain, int32_t dgain)", "parent": 73, "children": [76, 77], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 44}}, {"id": 76, "type": "identifier", "text": "setGains", "parent": 75, "children": [], "start_point": {"row": 38, "column": 6}, "end_point": {"row": 38, "column": 14}}, {"id": 77, "type": "parameter_list", "text": "(int32_t pgain, int32_t dgain)", "parent": 75, "children": [78, 81], "start_point": {"row": 38, "column": 14}, "end_point": {"row": 38, "column": 44}}, {"id": 78, "type": "parameter_declaration", "text": "int32_t pgain", "parent": 77, "children": [79, 80], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 28}}, {"id": 79, "type": "primitive_type", "text": "int32_t", "parent": 78, "children": [], "start_point": {"row": 38, "column": 15}, "end_point": {"row": 38, "column": 22}}, {"id": 80, "type": "identifier", "text": "pgain", "parent": 78, "children": [], "start_point": {"row": 38, "column": 23}, "end_point": {"row": 38, "column": 28}}, {"id": 81, "type": "parameter_declaration", "text": "int32_t dgain", "parent": 77, "children": [82, 83], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 43}}, {"id": 82, "type": "primitive_type", "text": "int32_t", "parent": 81, "children": [], "start_point": {"row": 38, "column": 30}, "end_point": {"row": 38, "column": 37}}, {"id": 83, "type": "identifier", "text": "dgain", "parent": 81, "children": [], "start_point": {"row": 38, "column": 38}, "end_point": {"row": 38, "column": 43}}, {"id": 84, "type": "labeled_statement", "text": "private:\r\n\tint32_t m_pos;", "parent": 45, "children": [85], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 15}}, {"id": 85, "type": "declaration", "text": "int32_t m_pos;", "parent": 84, "children": [86, 87], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 15}}, {"id": 86, "type": "primitive_type", "text": "int32_t", "parent": 85, "children": [], "start_point": {"row": 41, "column": 1}, "end_point": {"row": 41, "column": 8}}, {"id": 87, "type": "identifier", "text": "m_pos", "parent": 85, "children": [], "start_point": {"row": 41, "column": 9}, "end_point": {"row": 41, "column": 14}}, {"id": 88, "type": "declaration", "text": "int32_t m_prevError;", "parent": 45, "children": [89, 90], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 21}}, {"id": 89, "type": "primitive_type", "text": "int32_t", "parent": 88, "children": [], "start_point": {"row": 42, "column": 1}, "end_point": {"row": 42, "column": 8}}, {"id": 90, "type": "identifier", "text": "m_prevError", "parent": 88, "children": [], "start_point": {"row": 42, "column": 9}, "end_point": {"row": 42, "column": 20}}, {"id": 91, "type": "declaration", "text": "uint8_t m_axis;", "parent": 45, "children": [92, 93], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 16}}, {"id": 92, "type": "primitive_type", "text": "uint8_t", "parent": 91, "children": [], "start_point": {"row": 43, "column": 1}, "end_point": {"row": 43, "column": 8}}, {"id": 93, "type": "identifier", "text": "m_axis", "parent": 91, "children": [], "start_point": {"row": 43, "column": 9}, "end_point": {"row": 43, "column": 15}}, {"id": 94, "type": "declaration", "text": "int32_t m_pgain;", "parent": 45, "children": [95, 96], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 17}}, {"id": 95, "type": "primitive_type", "text": "int32_t", "parent": 94, "children": [], "start_point": {"row": 44, "column": 1}, "end_point": {"row": 44, "column": 8}}, {"id": 96, "type": "identifier", "text": "m_pgain", "parent": 94, "children": [], "start_point": {"row": 44, "column": 9}, "end_point": {"row": 44, "column": 16}}, {"id": 97, "type": "declaration", "text": "int32_t m_dgain;", "parent": 45, "children": [98, 99], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 17}}, {"id": 98, "type": "primitive_type", "text": "int32_t", "parent": 97, "children": [], "start_point": {"row": 45, "column": 1}, "end_point": {"row": 45, "column": 8}}, {"id": 99, "type": "identifier", "text": "m_dgain", "parent": 97, "children": [], "start_point": {"row": 45, "column": 9}, "end_point": {"row": 45, "column": 16}}, {"id": 100, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 6}}]}, "node_categories": {"declarations": {"functions": [32, 37, 42, 45, 62, 70, 75], "variables": [25, 30, 35, 40, 48, 60, 65, 68, 73, 78, 81, 85, 88, 91, 94, 97], "classes": [26], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 11, 15, 19, 23, 28, 29, 33, 38, 43, 46, 49, 50, 53, 54, 56, 57, 59, 63, 67, 71, 76, 80, 83, 87, 90, 93, 96, 99, 100], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 32, "universal_type": "function", "name": "unknown", "text_snippet": "ptSetup()"}, {"node_id": 37, "universal_type": "function", "name": "unknown", "text_snippet": "ptLoop()"}, {"node_id": 42, "universal_type": "function", "name": "unknown", "text_snippet": "ptLoadParams()"}, {"node_id": 45, "universal_type": "function", "name": "ServoLoop", "text_snippet": "class ServoLoop\r\n{\r\npublic:\r\n\tServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain);\r\n\r\n\tvoid upda"}, {"node_id": 62, "universal_type": "function", "name": "unknown", "text_snippet": "update(int32_t error)"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "reset()"}, {"node_id": 75, "universal_type": "function", "name": "unknown", "text_snippet": "setGains(int32_t pgain, int32_t dgain)"}], "class_declarations": [{"node_id": 26, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include \"exec.h\"\r\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "//\r\n// begin license header\r\n//\r\n// This file is part of Pixy CMUcam5 or \"Pixy\" for short\r\n//\r\n// All Pixy source code is provided under the terms of the\r\n// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html).\r\n// Those wishing to use Pixy source code, software and/or\r\n// technologies under different licensing terms should contact us at\r\n// <EMAIL>. Such licensing terms are available for\r\n// all portions of the Pixy codebase presented here.\r\n//\r\n// end license header\r\n//\r\n\r\n#ifndef _PROGPT_H\r\n#define _PROGPT_H\r\n\r\n#include \"exec.h\"\r\n\r\n#define PAN_AXIS 0\r\n#define TILT_AXIS 1\r\n#define X_CENTER (CAM_RES2_WIDTH/2)\r\n#define Y_CENTER (CAM_RES2_HEIGHT/2)\r\n\r\nextern Program g_progPt;\r\n\r\nint ptSetup();\r\nint ptLoop();\r\nvoid ptLoadParams();\r\n\r\nclass ServoLoop\r\n{\r\npublic:\r\n\tServoLoop(uint8_t axis, uint32_t pgain, uint32_t dgain);\r\n\r\n\tvoid update(int32_t error);\r\n\tvoid reset();\r\n\tvoid setGains(int32_t pgain, int32_t dgain);\r\n\r\nprivate:\r\n\tint32_t m_pos;\r\n\tint32_t m_prevError;\r\n\tuint8_t m_axis;\r\n\tint32_t m_pgain;\r\n\tint32_t m_dgain;\r\n};\r\n\r\n#endif\r\n"}
80,393
c
// // Header.h // AnyBox // // Created by Kara on 2019/3/27. // #import <UIKit/UIKit.h> /* NetUtils SocketManageUtils caller 参数排序问题没有处理 ImagePicker block blockkit 丰富一下 http://www.cocoachina.com/ios/20170725/20001.html 有时间完善黑魔法 字典赋值 nil 已经解决 数组越界 TODO 数组越界 */ #import "ABConfig.h" #import "ABModel.h" #import "ABBaseViewModel.h"
17.37
19
(translation_unit) "//\n// Header.h\n// AnyBox\n//\n// Created by Kara on 2019/3/27.\n//\n#import <UIKit/UIKit.h>\n\n/*\n NetUtils SocketManageUtils caller 参数排序问题没有处理\n ImagePicker block\n blockkit 丰富一下\n \n http://www.cocoachina.com/ios/20170725/20001.html\n 有时间完善黑魔法 字典赋值 nil 已经解决 数组越界\n TODO 数组越界\n */\n\n#import "ABConfig.h"\n\n#import "ABModel.h"\n\n#import "ABBaseViewModel.h"\n" (comment) "//" (comment) "// Header.h" (comment) "// AnyBox" (comment) "//" (comment) "// Created by Kara on 2019/3/27." (comment) "//" (preproc_call) "#import <UIKit/UIKit.h>\n" (preproc_directive) "#import" (preproc_arg) "<UIKit/UIKit.h>" (comment) "/*\n NetUtils SocketManageUtils caller 参数排序问题没有处理\n ImagePicker block\n blockkit 丰富一下\n \n http://www.cocoachina.com/ios/20170725/20001.html\n 有时间完善黑魔法 字典赋值 nil 已经解决 数组越界\n TODO 数组越界\n */\n\n#import "ABConfig.h"\n\n#import "ABModel.h"\n\n#import "ABBaseViewModel.h"\n" (preproc_call) "" (preproc_directive) "" (preproc_arg) "" (preproc_call) "" (preproc_directive) "" (preproc_arg) "" (preproc_call) "" (preproc_directive) "" (preproc_arg) ""
20
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 17.37, "nodes": 12, "errors": 0, "source_hash": "2f0f60b503ba6706b476ff3a94257511ac2e42ca42c358b5e3b3e0d9c3b7b980", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIKit/UIKit.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/UIKit.h>", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 23}}, {"id": 3, "type": "preproc_call", "text": "", "parent": null, "children": [4, 5], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 4, "type": "preproc_directive", "text": "", "parent": 3, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 5, "type": "preproc_arg", "text": "", "parent": 3, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 20}}, {"id": 6, "type": "preproc_call", "text": "", "parent": null, "children": [7, 8], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 7, "type": "preproc_directive", "text": "", "parent": 6, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 8, "type": "preproc_arg", "text": "", "parent": 6, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 19}}, {"id": 9, "type": "preproc_call", "text": "", "parent": null, "children": [10, 11], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 10, "type": "preproc_directive", "text": "", "parent": 9, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 11, "type": "preproc_arg", "text": "", "parent": 9, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 27}}]}, "node_categories": {"declarations": {"functions": [], "variables": [], "classes": [], "imports": [], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [], "returns": [], "exceptions": []}, "expressions": {"calls": [0, 3, 6, 9], "literals": [], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [], "class_declarations": [], "import_statements": []}, "original_source_code": "//\n// Header.h\n// AnyBox\n//\n// Created by Kara on 2019/3/27.\n//\n#import <UIKit/UIKit.h>\n\n/*\n NetUtils SocketManageUtils caller \u53c2\u6570\u6392\u5e8f\u95ee\u9898\u6ca1\u6709\u5904\u7406\n ImagePicker block\n blockkit \u4e30\u5bcc\u4e00\u4e0b\n \n http://www.cocoachina.com/ios/20170725/20001.html\n \u6709\u65f6\u95f4\u5b8c\u5584\u9ed1\u9b54\u6cd5 \u5b57\u5178\u8d4b\u503c nil \u5df2\u7ecf\u89e3\u51b3 \u6570\u7ec4\u8d8a\u754c\n TODO \u6570\u7ec4\u8d8a\u754c\n */\n\n#import \"ABConfig.h\"\n\n#import \"ABModel.h\"\n\n#import \"ABBaseViewModel.h\"\n"}
80,394
c
/*---------------------------------------------------------------------------------------------------------*/ /* */ /* Copyright (c) Nuvoton Technology Corp. All rights reserved. */ /* */ /*---------------------------------------------------------------------------------------------------------*/ #ifndef _NUC100_UDC_H_ #define _NUC100_UDC_H_ #include "NUC1xx.h" #include "Driver\DrvUSB.h" //====================================================== #define IEF_wakeupEn 0x00000100 // R/W 1/0 Enable/Disable USB wakeup function #define IEF_INNAKen 0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt #define EVF_INT_BUS 0x00000001 // R/WC #define EVF_INT_USB 0x00000002 // R/WC #define EVF_INT_FLDET 0x00000004 // R/WC #define EVF_INT_WAKEUP 0x00000008 // R/WC #define EVF_INT_EPTF0 0x00010000 // R/WC #define EVF_INT_EPTF1 0x00020000 // R/WC #define EVF_INT_EPTF2 0x00040000 // R/WC #define EVF_INT_EPTF3 0x00080000 // R/WC #define EVF_INT_EPTF4 0x00100000 // R/WC #define EVF_INT_EPTF5 0x00200000 // R/WC #define EVF_INT_SETUP 0x80000000 // R/WC #define STS_EPT 0x0000000F // R&C USB Event Endpoint Number //#define STS_STS 0x00000070 // R&C USB Event (IN ACK/NAK, OUT 0/1 ACK, Setup ACK) #define USB_SETUP_ACK 0x30 #define USB_IN_ACK 0x00 #define USB_OUT_0_ACK 0x20 #define USB_OUT_1_ACK 0x60 #define USB_IN_NAK 0x10 #define USB_ISO 0x70 #define STS_Overrun 0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes #define STS0 0x00000700 #define STS1 0x00003800 #define STS2 0x0001C000 #define STS3 0x000E0000 #define STS4 0x00700000 #define STS5 0x03800000 #define ATTR_enUSB 0x00000080 // R/W 1/0 Enable/Disable USB #define ATTR_SPEED 0x00000040 // R/W 1/0 Full/Low Speed #define ATTR_RWakeUp 0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up #define ATTR_enPHY 0x00000010 // R/W 1/0 Enable/Disable PHY #define ATTR_Timeout 0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time #define ATTR_Resume 0x00000004 // R&C USB Resume #define ATTR_Suspend 0x00000002 // R USB Suspend #define ATTR_usbRST 0x00000001 // R&C USB Bus Reset #define RCVmode 0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP #define EPT_stall_ctl 0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage #define EPT_DSQ 0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK #define EPT_state 0x00000060 #define EPT_DISABLE 0 #define EPT_OUT 0x00000020 #define EPT_IN 0x00000040 #define EPT_ISOCH 0x00000010 // R/W Isochronous, No Handshake #define EPT_ISO 0x00000010 #define EPT_EPT 0x0000000F #define EPT_stall 0x00000002 // R/W Force Device to Response Stall #define EPT_CFGP 0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD #define CBW_SIGNATURE 0x43425355 #define CSW_SIGNATURE 0x53425355 //====================================================== #define DATA0(a) (a&0x7F) #define DATA1(a) (a|0x80) //====================================================== // USB Request //====================================================== // Request Type #define REQ_STANDARD 0x00 #define REQ_CLASS 0x20 #define REQ_VENDOR 0x40 // Request #define GET_STATUS 0x00 #define CLEAR_FEATURE 0x01 //#define 0x02 #define SET_FEATURE 0x03 //#define 0x04 #define SET_ADDRESS 0x05 #define GET_DESCRIPTOR 0x06 #define SET_DESCRIPTOR 0x07 #define GET_CONFIGURATION 0x08 #define SET_CONFIGURATION 0x09 #define GET_INTERFACE 0x0A #define SET_INTERFACE 0x0B #define SYNC_FRAME 0x0C // USB Descriptor Type #define DESC_DEVICE 0x01 #define DESC_CONFIG 0x02 #define DESC_STRING 0x03 #define DESC_INTERFACE 0x04 #define DESC_ENDPOINT 0x05 #define DESC_QUALIFIER 0x06 #define DESC_OTHERSPEED 0x07 // USB Descriptor Length #define LEN_DEVICE 18 #define LEN_CONFIG 9 #define LEN_INTERFACE 9 #define LEN_ENDPOINT 7 // USB Endpoint Type #define EP_ISO 0x01 #define EP_BULK 0x02 #define EP_INT 0x03 // USB Feature Selector #define FEATURE_DEVICE_REMOTE_WAKEUP 0x01 #define FEATURE_ENDPOINT_HALT 0x00 //====================================================== // USB Control //====================================================== // USB STATE #define USB_STATE_DETACHED 0x00 #define USB_STATE_ATTACHED 0x01 #define USB_STATE_DEFAULT 0x11 #define USB_STATE_ADDRESS 0x31 #define USB_STATE_CONFIGURED 0x71 #define USB_STATE_FLAG_DEFAULT 0x10 #define USB_STATE_FLAG_ADDRESS 0x20 #define USB_STATE_FLAG_CONFIGURED 0x40 #define USB_STATE_FLAG_SUSPENDED 0x80 // FLAG #define FLAG_OUT_ACK 0x01 #define FLAG_SET_ADDRESS 0x02 #define FLAG_SET_CONFIG 0x04 #define FLAG_SET_INTERFACE 0x08 #define FLAG_GET_MAX_LUN 0x10 // Max Packet Size #define MAX_PACKET_SIZE0 64 #define MAX_PACKET_SIZE 64 // SRAM #define BUF_SETUP 0xF8 #define BUF_CTRL 0x00 #define BUF_BULK0 (BUF_CTRL+MAX_PACKET_SIZE0) #define BUF_BULK1 (BUF_BULK0+MAX_PACKET_SIZE) // CFG #define CFG0_SETTING (CFG_CSTALL | CFG_EPT_IN | 0) /* EP address 0, control IN */ #define CFG1_SETTING (CFG_CSTALL | CFG_EPT_OUT | 0) /* EP address 0, control OUT */ #define CFG2_SETTING (CFG_EPT_IN | 2) /* EP address 2 */ #define CFG3_SETTING (CFG_EPT_OUT | 3) /* EP address 3 */ // BUF #define BUF0_SETTING BUF_CTRL #define BUF1_SETTING BUF_CTRL #define BUF2_SETTING BUF_BULK1 #define BUF3_SETTING BUF_BULK0 #define g_au8UsbSetup ((uint8_t *)(USBD_BASE+0x100+BUF_SETUP)) #define g_au8UsbCtrl ((uint8_t *)(USBD_BASE+0x100+BUF_CTRL)) #define g_au8UsbBulk1 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK1)) #define g_au8UsbBulk0 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK0)) //====================================================== #define BULK_ONLY_MASS_STORAGE_RESET 0xFF #define GET_MAX_LUN 0xFE //====================================================== #define BULK_CBW 0x00 #define BULK_IN 0x01 #define BULK_OUT 0x02 #define BULK_CSW 0x04 #define BULK_NORMAL 0xFF //====================================================== #define UFI_TEST_UNIT_READY 0x00 #define UFI_REQUEST_SENSE 0x03 #define UFI_INQUIRY 0x12 #define UFI_MODE_SELECT_6 0x15 #define UFI_MODE_SENSE_6 0x1A #define UFI_START_STOP 0x1B #define UFI_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E #define UFI_READ_FORMAT_CAPACITY 0x23 #define UFI_READ_CAPACITY 0x25 #define UFI_READ_10 0x28 #define UFI_WRITE_10 0x2A #define UFI_VERIFY_10 0x2F #define UFI_MODE_SELECT_10 0x55 #define UFI_MODE_SENSE_10 0x5A //====================================================== /* for mass storage */ struct CBW { uint32_t dCBWSignature; uint32_t dCBWTag; uint32_t dCBWDataTransferLength; uint8_t bmCBWFlags; uint8_t bCBWLUN; uint8_t bCBWCBLength; uint8_t u8OPCode; uint8_t u8LUN; uint8_t au8Data[14]; }; struct CSW { uint32_t dCSWSignature; uint32_t dCSWTag; uint32_t dCSWDataResidue; uint8_t bCSWStatus; }; typedef struct Disk_Par_Inf { uint32_t partition_size, data_location, bpb_location, fat_location, rootdir_location, free_size; uint16_t rootdirentryno, totalcluster, NumCyl; uint8_t NumHead, NumSector, capacity, fatcopyno, fatsectorno, fat16flg; } Disk_Par_Info; /* extern flags */ extern uint8_t g_u8BulkState; extern int32_t udcOnLine; extern int32_t g_bIsFirstRead; extern uint32_t usbDataReady; extern uint8_t g_u8UsbState; /* extern functions */ void ReqSenCommand(void); void RdFmtCapCommand(void); void RdCurCapCommand(void); uint8_t udcFlashInit(void); void udcInit(void); void udcMassBulk(void); #endif
36.98
223
(translation_unit) "/*---------------------------------------------------------------------------------------------------------*/\n/* */\n/* Copyright (c) Nuvoton Technology Corp. All rights reserved. */\n/* */\n/*---------------------------------------------------------------------------------------------------------*/\n\n#ifndef _NUC100_UDC_H_\n#define _NUC100_UDC_H_\n\n#include "NUC1xx.h"\n#include "Driver\DrvUSB.h"\n//======================================================\n\n#define IEF_wakeupEn 0x00000100 // R/W 1/0 Enable/Disable USB wakeup function\n#define IEF_INNAKen 0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt\n\n#define EVF_INT_BUS 0x00000001 // R/WC\n#define EVF_INT_USB 0x00000002 // R/WC\n#define EVF_INT_FLDET 0x00000004 // R/WC\n#define EVF_INT_WAKEUP 0x00000008 // R/WC\n#define EVF_INT_EPTF0 0x00010000 // R/WC\n#define EVF_INT_EPTF1 0x00020000 // R/WC\n#define EVF_INT_EPTF2 0x00040000 // R/WC\n#define EVF_INT_EPTF3 0x00080000 // R/WC\n#define EVF_INT_EPTF4 0x00100000 // R/WC\n#define EVF_INT_EPTF5 0x00200000 // R/WC\n#define EVF_INT_SETUP 0x80000000 // R/WC\n\n#define STS_EPT 0x0000000F // R&C USB Event Endpoint Number\n//#define STS_STS 0x00000070 // R&C USB Event (IN ACK/NAK, OUT 0/1 ACK, Setup ACK)\n\n#define USB_SETUP_ACK 0x30\n#define USB_IN_ACK 0x00\n#define USB_OUT_0_ACK 0x20\n#define USB_OUT_1_ACK 0x60\n#define USB_IN_NAK 0x10\n#define USB_ISO 0x70\n\n#define STS_Overrun 0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes\n#define STS0 0x00000700\n#define STS1 0x00003800\n#define STS2 0x0001C000\n#define STS3 0x000E0000\n#define STS4 0x00700000\n#define STS5 0x03800000\n\n#define ATTR_enUSB 0x00000080 // R/W 1/0 Enable/Disable USB\n#define ATTR_SPEED 0x00000040 // R/W 1/0 Full/Low Speed\n#define ATTR_RWakeUp 0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up\n#define ATTR_enPHY 0x00000010 // R/W 1/0 Enable/Disable PHY\n#define ATTR_Timeout 0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time\n#define ATTR_Resume 0x00000004 // R&C USB Resume\n#define ATTR_Suspend 0x00000002 // R USB Suspend\n#define ATTR_usbRST 0x00000001 // R&C USB Bus Reset\n\n#define RCVmode 0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP\n\n#define EPT_stall_ctl 0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage\n#define EPT_DSQ 0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK\n#define EPT_state 0x00000060\n#define EPT_DISABLE 0\n#define EPT_OUT 0x00000020\n#define EPT_IN 0x00000040\n#define EPT_ISOCH 0x00000010 // R/W Isochronous, No Handshake\n#define EPT_ISO 0x00000010\n#define EPT_EPT 0x0000000F\n#define EPT_stall 0x00000002 // R/W Force Device to Response Stall\n#define EPT_CFGP 0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD\n\n#define CBW_SIGNATURE 0x43425355\n#define CSW_SIGNATURE 0x53425355\n\n//======================================================\n#define DATA0(a) (a&0x7F)\n#define DATA1(a) (a|0x80)\n\n//======================================================\n// USB Request\n//======================================================\n// Request Type\n#define REQ_STANDARD 0x00\n#define REQ_CLASS 0x20\n#define REQ_VENDOR 0x40\n\n// Request\n#define GET_STATUS 0x00\n#define CLEAR_FEATURE 0x01\n//#define 0x02\n#define SET_FEATURE 0x03\n//#define 0x04\n#define SET_ADDRESS 0x05\n#define GET_DESCRIPTOR 0x06\n#define SET_DESCRIPTOR 0x07\n#define GET_CONFIGURATION 0x08\n#define SET_CONFIGURATION 0x09\n#define GET_INTERFACE 0x0A\n#define SET_INTERFACE 0x0B\n#define SYNC_FRAME 0x0C\n\n// USB Descriptor Type\n#define DESC_DEVICE 0x01\n#define DESC_CONFIG 0x02\n#define DESC_STRING 0x03\n#define DESC_INTERFACE 0x04\n#define DESC_ENDPOINT 0x05\n#define DESC_QUALIFIER 0x06\n#define DESC_OTHERSPEED 0x07\n\n// USB Descriptor Length\n#define LEN_DEVICE 18\n#define LEN_CONFIG 9\n#define LEN_INTERFACE 9\n#define LEN_ENDPOINT 7\n\n// USB Endpoint Type\n#define EP_ISO 0x01\n#define EP_BULK 0x02\n#define EP_INT 0x03\n\n// USB Feature Selector\n#define FEATURE_DEVICE_REMOTE_WAKEUP 0x01\n#define FEATURE_ENDPOINT_HALT 0x00\n\n//======================================================\n// USB Control\n//======================================================\n// USB STATE\n#define USB_STATE_DETACHED 0x00\n#define USB_STATE_ATTACHED 0x01\n#define USB_STATE_DEFAULT 0x11\n#define USB_STATE_ADDRESS 0x31\n#define USB_STATE_CONFIGURED 0x71\n\n#define USB_STATE_FLAG_DEFAULT 0x10\n#define USB_STATE_FLAG_ADDRESS 0x20\n#define USB_STATE_FLAG_CONFIGURED 0x40\n#define USB_STATE_FLAG_SUSPENDED 0x80\n\n// FLAG\n#define FLAG_OUT_ACK 0x01\n#define FLAG_SET_ADDRESS 0x02\n#define FLAG_SET_CONFIG 0x04\n#define FLAG_SET_INTERFACE 0x08\n#define FLAG_GET_MAX_LUN 0x10\n\n// Max Packet Size\n#define MAX_PACKET_SIZE0 64\n#define MAX_PACKET_SIZE 64\n\n// SRAM\n#define BUF_SETUP 0xF8\n#define BUF_CTRL 0x00\n#define BUF_BULK0 (BUF_CTRL+MAX_PACKET_SIZE0)\n#define BUF_BULK1 (BUF_BULK0+MAX_PACKET_SIZE)\n\n// CFG\n#define CFG0_SETTING (CFG_CSTALL | CFG_EPT_IN | 0) /* EP address 0, control IN */\n#define CFG1_SETTING (CFG_CSTALL | CFG_EPT_OUT | 0) /* EP address 0, control OUT */\n#define CFG2_SETTING (CFG_EPT_IN | 2) /* EP address 2 */\n#define CFG3_SETTING (CFG_EPT_OUT | 3) /* EP address 3 */\n\n// BUF\n#define BUF0_SETTING BUF_CTRL\n#define BUF1_SETTING BUF_CTRL\n#define BUF2_SETTING BUF_BULK1\n#define BUF3_SETTING BUF_BULK0\n \n#define g_au8UsbSetup ((uint8_t *)(USBD_BASE+0x100+BUF_SETUP))\n#define g_au8UsbCtrl ((uint8_t *)(USBD_BASE+0x100+BUF_CTRL))\n#define g_au8UsbBulk1 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK1))\n#define g_au8UsbBulk0 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK0))\n\n//======================================================\n#define BULK_ONLY_MASS_STORAGE_RESET 0xFF\n#define GET_MAX_LUN 0xFE\n\n//======================================================\n#define BULK_CBW 0x00\n#define BULK_IN 0x01\n#define BULK_OUT 0x02\n#define BULK_CSW 0x04\n#define BULK_NORMAL 0xFF\n\n//======================================================\n#define UFI_TEST_UNIT_READY 0x00\n#define UFI_REQUEST_SENSE 0x03\n#define UFI_INQUIRY 0x12\n#define UFI_MODE_SELECT_6 0x15\n#define UFI_MODE_SENSE_6 0x1A\n#define UFI_START_STOP 0x1B\n#define UFI_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E\n#define UFI_READ_FORMAT_CAPACITY 0x23\n#define UFI_READ_CAPACITY 0x25\n#define UFI_READ_10 0x28\n#define UFI_WRITE_10 0x2A\n#define UFI_VERIFY_10 0x2F\n#define UFI_MODE_SELECT_10 0x55\n#define UFI_MODE_SENSE_10 0x5A\n\n//======================================================\n/* for mass storage */\nstruct CBW\n{\n uint32_t dCBWSignature;\n uint32_t dCBWTag;\n uint32_t dCBWDataTransferLength;\n uint8_t bmCBWFlags;\n uint8_t bCBWLUN;\n uint8_t bCBWCBLength;\n uint8_t u8OPCode;\n uint8_t u8LUN;\n uint8_t au8Data[14];\n};\n\nstruct CSW\n{\n uint32_t dCSWSignature;\n uint32_t dCSWTag;\n uint32_t dCSWDataResidue;\n uint8_t bCSWStatus;\n};\n\ntypedef struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n} Disk_Par_Info;\n\n/* extern flags */\nextern uint8_t g_u8BulkState;\nextern int32_t udcOnLine;\nextern int32_t g_bIsFirstRead;\nextern uint32_t usbDataReady;\nextern uint8_t g_u8UsbState;\n\n/* extern functions */\nvoid ReqSenCommand(void);\nvoid RdFmtCapCommand(void);\nvoid RdCurCapCommand(void);\nuint8_t udcFlashInit(void);\n\nvoid udcInit(void); \nvoid udcMassBulk(void);\n\n#endif\n" (comment) "/*---------------------------------------------------------------------------------------------------------*/" (comment) "/* */" (comment) "/* Copyright (c) Nuvoton Technology Corp. All rights reserved. */" (comment) "/* */" (comment) "/*---------------------------------------------------------------------------------------------------------*/" (preproc_ifdef) "#ifndef _NUC100_UDC_H_\n#define _NUC100_UDC_H_\n\n#include "NUC1xx.h"\n#include "Driver\DrvUSB.h"\n//======================================================\n\n#define IEF_wakeupEn 0x00000100 // R/W 1/0 Enable/Disable USB wakeup function\n#define IEF_INNAKen 0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt\n\n#define EVF_INT_BUS 0x00000001 // R/WC\n#define EVF_INT_USB 0x00000002 // R/WC\n#define EVF_INT_FLDET 0x00000004 // R/WC\n#define EVF_INT_WAKEUP 0x00000008 // R/WC\n#define EVF_INT_EPTF0 0x00010000 // R/WC\n#define EVF_INT_EPTF1 0x00020000 // R/WC\n#define EVF_INT_EPTF2 0x00040000 // R/WC\n#define EVF_INT_EPTF3 0x00080000 // R/WC\n#define EVF_INT_EPTF4 0x00100000 // R/WC\n#define EVF_INT_EPTF5 0x00200000 // R/WC\n#define EVF_INT_SETUP 0x80000000 // R/WC\n\n#define STS_EPT 0x0000000F // R&C USB Event Endpoint Number\n//#define STS_STS 0x00000070 // R&C USB Event (IN ACK/NAK, OUT 0/1 ACK, Setup ACK)\n\n#define USB_SETUP_ACK 0x30\n#define USB_IN_ACK 0x00\n#define USB_OUT_0_ACK 0x20\n#define USB_OUT_1_ACK 0x60\n#define USB_IN_NAK 0x10\n#define USB_ISO 0x70\n\n#define STS_Overrun 0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes\n#define STS0 0x00000700\n#define STS1 0x00003800\n#define STS2 0x0001C000\n#define STS3 0x000E0000\n#define STS4 0x00700000\n#define STS5 0x03800000\n\n#define ATTR_enUSB 0x00000080 // R/W 1/0 Enable/Disable USB\n#define ATTR_SPEED 0x00000040 // R/W 1/0 Full/Low Speed\n#define ATTR_RWakeUp 0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up\n#define ATTR_enPHY 0x00000010 // R/W 1/0 Enable/Disable PHY\n#define ATTR_Timeout 0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time\n#define ATTR_Resume 0x00000004 // R&C USB Resume\n#define ATTR_Suspend 0x00000002 // R USB Suspend\n#define ATTR_usbRST 0x00000001 // R&C USB Bus Reset\n\n#define RCVmode 0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP\n\n#define EPT_stall_ctl 0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage\n#define EPT_DSQ 0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK\n#define EPT_state 0x00000060\n#define EPT_DISABLE 0\n#define EPT_OUT 0x00000020\n#define EPT_IN 0x00000040\n#define EPT_ISOCH 0x00000010 // R/W Isochronous, No Handshake\n#define EPT_ISO 0x00000010\n#define EPT_EPT 0x0000000F\n#define EPT_stall 0x00000002 // R/W Force Device to Response Stall\n#define EPT_CFGP 0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD\n\n#define CBW_SIGNATURE 0x43425355\n#define CSW_SIGNATURE 0x53425355\n\n//======================================================\n#define DATA0(a) (a&0x7F)\n#define DATA1(a) (a|0x80)\n\n//======================================================\n// USB Request\n//======================================================\n// Request Type\n#define REQ_STANDARD 0x00\n#define REQ_CLASS 0x20\n#define REQ_VENDOR 0x40\n\n// Request\n#define GET_STATUS 0x00\n#define CLEAR_FEATURE 0x01\n//#define 0x02\n#define SET_FEATURE 0x03\n//#define 0x04\n#define SET_ADDRESS 0x05\n#define GET_DESCRIPTOR 0x06\n#define SET_DESCRIPTOR 0x07\n#define GET_CONFIGURATION 0x08\n#define SET_CONFIGURATION 0x09\n#define GET_INTERFACE 0x0A\n#define SET_INTERFACE 0x0B\n#define SYNC_FRAME 0x0C\n\n// USB Descriptor Type\n#define DESC_DEVICE 0x01\n#define DESC_CONFIG 0x02\n#define DESC_STRING 0x03\n#define DESC_INTERFACE 0x04\n#define DESC_ENDPOINT 0x05\n#define DESC_QUALIFIER 0x06\n#define DESC_OTHERSPEED 0x07\n\n// USB Descriptor Length\n#define LEN_DEVICE 18\n#define LEN_CONFIG 9\n#define LEN_INTERFACE 9\n#define LEN_ENDPOINT 7\n\n// USB Endpoint Type\n#define EP_ISO 0x01\n#define EP_BULK 0x02\n#define EP_INT 0x03\n\n// USB Feature Selector\n#define FEATURE_DEVICE_REMOTE_WAKEUP 0x01\n#define FEATURE_ENDPOINT_HALT 0x00\n\n//======================================================\n// USB Control\n//======================================================\n// USB STATE\n#define USB_STATE_DETACHED 0x00\n#define USB_STATE_ATTACHED 0x01\n#define USB_STATE_DEFAULT 0x11\n#define USB_STATE_ADDRESS 0x31\n#define USB_STATE_CONFIGURED 0x71\n\n#define USB_STATE_FLAG_DEFAULT 0x10\n#define USB_STATE_FLAG_ADDRESS 0x20\n#define USB_STATE_FLAG_CONFIGURED 0x40\n#define USB_STATE_FLAG_SUSPENDED 0x80\n\n// FLAG\n#define FLAG_OUT_ACK 0x01\n#define FLAG_SET_ADDRESS 0x02\n#define FLAG_SET_CONFIG 0x04\n#define FLAG_SET_INTERFACE 0x08\n#define FLAG_GET_MAX_LUN 0x10\n\n// Max Packet Size\n#define MAX_PACKET_SIZE0 64\n#define MAX_PACKET_SIZE 64\n\n// SRAM\n#define BUF_SETUP 0xF8\n#define BUF_CTRL 0x00\n#define BUF_BULK0 (BUF_CTRL+MAX_PACKET_SIZE0)\n#define BUF_BULK1 (BUF_BULK0+MAX_PACKET_SIZE)\n\n// CFG\n#define CFG0_SETTING (CFG_CSTALL | CFG_EPT_IN | 0) /* EP address 0, control IN */\n#define CFG1_SETTING (CFG_CSTALL | CFG_EPT_OUT | 0) /* EP address 0, control OUT */\n#define CFG2_SETTING (CFG_EPT_IN | 2) /* EP address 2 */\n#define CFG3_SETTING (CFG_EPT_OUT | 3) /* EP address 3 */\n\n// BUF\n#define BUF0_SETTING BUF_CTRL\n#define BUF1_SETTING BUF_CTRL\n#define BUF2_SETTING BUF_BULK1\n#define BUF3_SETTING BUF_BULK0\n \n#define g_au8UsbSetup ((uint8_t *)(USBD_BASE+0x100+BUF_SETUP))\n#define g_au8UsbCtrl ((uint8_t *)(USBD_BASE+0x100+BUF_CTRL))\n#define g_au8UsbBulk1 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK1))\n#define g_au8UsbBulk0 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK0))\n\n//======================================================\n#define BULK_ONLY_MASS_STORAGE_RESET 0xFF\n#define GET_MAX_LUN 0xFE\n\n//======================================================\n#define BULK_CBW 0x00\n#define BULK_IN 0x01\n#define BULK_OUT 0x02\n#define BULK_CSW 0x04\n#define BULK_NORMAL 0xFF\n\n//======================================================\n#define UFI_TEST_UNIT_READY 0x00\n#define UFI_REQUEST_SENSE 0x03\n#define UFI_INQUIRY 0x12\n#define UFI_MODE_SELECT_6 0x15\n#define UFI_MODE_SENSE_6 0x1A\n#define UFI_START_STOP 0x1B\n#define UFI_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E\n#define UFI_READ_FORMAT_CAPACITY 0x23\n#define UFI_READ_CAPACITY 0x25\n#define UFI_READ_10 0x28\n#define UFI_WRITE_10 0x2A\n#define UFI_VERIFY_10 0x2F\n#define UFI_MODE_SELECT_10 0x55\n#define UFI_MODE_SENSE_10 0x5A\n\n//======================================================\n/* for mass storage */\nstruct CBW\n{\n uint32_t dCBWSignature;\n uint32_t dCBWTag;\n uint32_t dCBWDataTransferLength;\n uint8_t bmCBWFlags;\n uint8_t bCBWLUN;\n uint8_t bCBWCBLength;\n uint8_t u8OPCode;\n uint8_t u8LUN;\n uint8_t au8Data[14];\n};\n\nstruct CSW\n{\n uint32_t dCSWSignature;\n uint32_t dCSWTag;\n uint32_t dCSWDataResidue;\n uint8_t bCSWStatus;\n};\n\ntypedef struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n} Disk_Par_Info;\n\n/* extern flags */\nextern uint8_t g_u8BulkState;\nextern int32_t udcOnLine;\nextern int32_t g_bIsFirstRead;\nextern uint32_t usbDataReady;\nextern uint8_t g_u8UsbState;\n\n/* extern functions */\nvoid ReqSenCommand(void);\nvoid RdFmtCapCommand(void);\nvoid RdCurCapCommand(void);\nuint8_t udcFlashInit(void);\n\nvoid udcInit(void); \nvoid udcMassBulk(void);\n\n#endif" (#ifndef) "#ifndef" (identifier) "_NUC100_UDC_H_" (preproc_def) "#define _NUC100_UDC_H_\n" (#define) "#define" (identifier) "_NUC100_UDC_H_" (preproc_include) "#include "NUC1xx.h"\n" (#include) "#include" (string_literal) ""NUC1xx.h"" (") """ (string_content) "NUC1xx.h" (") """ (preproc_include) "#include "Driver\DrvUSB.h"\n" (#include) "#include" (string_literal) ""Driver\DrvUSB.h"" (") """ (string_content) "Driver" (escape_sequence) "\D" (string_content) "rvUSB.h" (") """ (comment) "//======================================================" (preproc_def) "#define IEF_wakeupEn 0x00000100 // R/W 1/0 Enable/Disable USB wakeup function\n" (#define) "#define" (identifier) "IEF_wakeupEn" (preproc_arg) "0x00000100 // R/W 1/0 Enable/Disable USB wakeup function" (preproc_def) "#define IEF_INNAKen 0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt\n" (#define) "#define" (identifier) "IEF_INNAKen" (preproc_arg) "0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt" (preproc_def) "#define EVF_INT_BUS 0x00000001 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_BUS" (preproc_arg) "0x00000001 // R/WC" (preproc_def) "#define EVF_INT_USB 0x00000002 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_USB" (preproc_arg) "0x00000002 // R/WC" (preproc_def) "#define EVF_INT_FLDET 0x00000004 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_FLDET" (preproc_arg) "0x00000004 // R/WC" (preproc_def) "#define EVF_INT_WAKEUP 0x00000008 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_WAKEUP" (preproc_arg) "0x00000008 // R/WC" (preproc_def) "#define EVF_INT_EPTF0 0x00010000 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_EPTF0" (preproc_arg) "0x00010000 // R/WC" (preproc_def) "#define EVF_INT_EPTF1 0x00020000 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_EPTF1" (preproc_arg) "0x00020000 // R/WC" (preproc_def) "#define EVF_INT_EPTF2 0x00040000 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_EPTF2" (preproc_arg) "0x00040000 // R/WC" (preproc_def) "#define EVF_INT_EPTF3 0x00080000 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_EPTF3" (preproc_arg) "0x00080000 // R/WC" (preproc_def) "#define EVF_INT_EPTF4 0x00100000 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_EPTF4" (preproc_arg) "0x00100000 // R/WC" (preproc_def) "#define EVF_INT_EPTF5 0x00200000 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_EPTF5" (preproc_arg) "0x00200000 // R/WC" (preproc_def) "#define EVF_INT_SETUP 0x80000000 // R/WC\n" (#define) "#define" (identifier) "EVF_INT_SETUP" (preproc_arg) "0x80000000 // R/WC" (preproc_def) "#define STS_EPT 0x0000000F // R&C USB Event Endpoint Number\n" (#define) "#define" (identifier) "STS_EPT" (preproc_arg) "0x0000000F // R&C USB Event Endpoint Number" (comment) "//#define STS_STS 0x00000070 // R&C USB Event (IN ACK/NAK, OUT 0/1 ACK, Setup ACK)" (preproc_def) "#define USB_SETUP_ACK 0x30\n" (#define) "#define" (identifier) "USB_SETUP_ACK" (preproc_arg) "0x30" (preproc_def) "#define USB_IN_ACK 0x00\n" (#define) "#define" (identifier) "USB_IN_ACK" (preproc_arg) "0x00" (preproc_def) "#define USB_OUT_0_ACK 0x20\n" (#define) "#define" (identifier) "USB_OUT_0_ACK" (preproc_arg) "0x20" (preproc_def) "#define USB_OUT_1_ACK 0x60\n" (#define) "#define" (identifier) "USB_OUT_1_ACK" (preproc_arg) "0x60" (preproc_def) "#define USB_IN_NAK 0x10\n" (#define) "#define" (identifier) "USB_IN_NAK" (preproc_arg) "0x10" (preproc_def) "#define USB_ISO 0x70\n" (#define) "#define" (identifier) "USB_ISO" (preproc_arg) "0x70" (preproc_def) "#define STS_Overrun 0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes\n" (#define) "#define" (identifier) "STS_Overrun" (preproc_arg) "0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes" (preproc_def) "#define STS0 0x00000700\n" (#define) "#define" (identifier) "STS0" (preproc_arg) "0x00000700" (preproc_def) "#define STS1 0x00003800\n" (#define) "#define" (identifier) "STS1" (preproc_arg) "0x00003800" (preproc_def) "#define STS2 0x0001C000\n" (#define) "#define" (identifier) "STS2" (preproc_arg) "0x0001C000" (preproc_def) "#define STS3 0x000E0000\n" (#define) "#define" (identifier) "STS3" (preproc_arg) "0x000E0000" (preproc_def) "#define STS4 0x00700000\n" (#define) "#define" (identifier) "STS4" (preproc_arg) "0x00700000" (preproc_def) "#define STS5 0x03800000\n" (#define) "#define" (identifier) "STS5" (preproc_arg) "0x03800000" (preproc_def) "#define ATTR_enUSB 0x00000080 // R/W 1/0 Enable/Disable USB\n" (#define) "#define" (identifier) "ATTR_enUSB" (preproc_arg) "0x00000080 // R/W 1/0 Enable/Disable USB" (preproc_def) "#define ATTR_SPEED 0x00000040 // R/W 1/0 Full/Low Speed\n" (#define) "#define" (identifier) "ATTR_SPEED" (preproc_arg) "0x00000040 // R/W 1/0 Full/Low Speed" (preproc_def) "#define ATTR_RWakeUp 0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up\n" (#define) "#define" (identifier) "ATTR_RWakeUp" (preproc_arg) "0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up" (preproc_def) "#define ATTR_enPHY 0x00000010 // R/W 1/0 Enable/Disable PHY\n" (#define) "#define" (identifier) "ATTR_enPHY" (preproc_arg) "0x00000010 // R/W 1/0 Enable/Disable PHY" (preproc_def) "#define ATTR_Timeout 0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time\n" (#define) "#define" (identifier) "ATTR_Timeout" (preproc_arg) "0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time" (preproc_def) "#define ATTR_Resume 0x00000004 // R&C USB Resume\n" (#define) "#define" (identifier) "ATTR_Resume" (preproc_arg) "0x00000004 // R&C USB Resume" (preproc_def) "#define ATTR_Suspend 0x00000002 // R USB Suspend\n" (#define) "#define" (identifier) "ATTR_Suspend" (preproc_arg) "0x00000002 // R USB Suspend" (preproc_def) "#define ATTR_usbRST 0x00000001 // R&C USB Bus Reset\n" (#define) "#define" (identifier) "ATTR_usbRST" (preproc_arg) "0x00000001 // R&C USB Bus Reset" (preproc_def) "#define RCVmode 0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP\n" (#define) "#define" (identifier) "RCVmode" (preproc_arg) "0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP" (preproc_def) "#define EPT_stall_ctl 0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage\n" (#define) "#define" (identifier) "EPT_stall_ctl" (preproc_arg) "0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage" (preproc_def) "#define EPT_DSQ 0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK\n" (#define) "#define" (identifier) "EPT_DSQ" (preproc_arg) "0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK" (preproc_def) "#define EPT_state 0x00000060\n" (#define) "#define" (identifier) "EPT_state" (preproc_arg) "0x00000060" (preproc_def) "#define EPT_DISABLE 0\n" (#define) "#define" (identifier) "EPT_DISABLE" (preproc_arg) "0" (preproc_def) "#define EPT_OUT 0x00000020\n" (#define) "#define" (identifier) "EPT_OUT" (preproc_arg) "0x00000020" (preproc_def) "#define EPT_IN 0x00000040\n" (#define) "#define" (identifier) "EPT_IN" (preproc_arg) "0x00000040" (preproc_def) "#define EPT_ISOCH 0x00000010 // R/W Isochronous, No Handshake\n" (#define) "#define" (identifier) "EPT_ISOCH" (preproc_arg) "0x00000010 // R/W Isochronous, No Handshake" (preproc_def) "#define EPT_ISO 0x00000010\n" (#define) "#define" (identifier) "EPT_ISO" (preproc_arg) "0x00000010" (preproc_def) "#define EPT_EPT 0x0000000F\n" (#define) "#define" (identifier) "EPT_EPT" (preproc_arg) "0x0000000F" (preproc_def) "#define EPT_stall 0x00000002 // R/W Force Device to Response Stall\n" (#define) "#define" (identifier) "EPT_stall" (preproc_arg) "0x00000002 // R/W Force Device to Response Stall" (preproc_def) "#define EPT_CFGP 0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD\n" (#define) "#define" (identifier) "EPT_CFGP" (preproc_arg) "0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD" (preproc_def) "#define CBW_SIGNATURE 0x43425355\n" (#define) "#define" (identifier) "CBW_SIGNATURE" (preproc_arg) "0x43425355" (preproc_def) "#define CSW_SIGNATURE 0x53425355\n" (#define) "#define" (identifier) "CSW_SIGNATURE" (preproc_arg) "0x53425355" (comment) "//======================================================" (preproc_function_def) "#define DATA0(a) (a&0x7F)\n" (#define) "#define" (identifier) "DATA0" (preproc_params) "(a)" (() "(" (identifier) "a" ()) ")" (preproc_arg) "(a&0x7F)" (preproc_function_def) "#define DATA1(a) (a|0x80)\n" (#define) "#define" (identifier) "DATA1" (preproc_params) "(a)" (() "(" (identifier) "a" ()) ")" (preproc_arg) "(a|0x80)" (comment) "//======================================================" (comment) "// USB Request" (comment) "//======================================================" (comment) "// Request Type" (preproc_def) "#define REQ_STANDARD 0x00\n" (#define) "#define" (identifier) "REQ_STANDARD" (preproc_arg) "0x00" (preproc_def) "#define REQ_CLASS 0x20\n" (#define) "#define" (identifier) "REQ_CLASS" (preproc_arg) "0x20" (preproc_def) "#define REQ_VENDOR 0x40\n" (#define) "#define" (identifier) "REQ_VENDOR" (preproc_arg) "0x40" (comment) "// Request" (preproc_def) "#define GET_STATUS 0x00\n" (#define) "#define" (identifier) "GET_STATUS" (preproc_arg) "0x00" (preproc_def) "#define CLEAR_FEATURE 0x01\n" (#define) "#define" (identifier) "CLEAR_FEATURE" (preproc_arg) "0x01" (comment) "//#define 0x02" (preproc_def) "#define SET_FEATURE 0x03\n" (#define) "#define" (identifier) "SET_FEATURE" (preproc_arg) "0x03" (comment) "//#define 0x04" (preproc_def) "#define SET_ADDRESS 0x05\n" (#define) "#define" (identifier) "SET_ADDRESS" (preproc_arg) "0x05" (preproc_def) "#define GET_DESCRIPTOR 0x06\n" (#define) "#define" (identifier) "GET_DESCRIPTOR" (preproc_arg) "0x06" (preproc_def) "#define SET_DESCRIPTOR 0x07\n" (#define) "#define" (identifier) "SET_DESCRIPTOR" (preproc_arg) "0x07" (preproc_def) "#define GET_CONFIGURATION 0x08\n" (#define) "#define" (identifier) "GET_CONFIGURATION" (preproc_arg) "0x08" (preproc_def) "#define SET_CONFIGURATION 0x09\n" (#define) "#define" (identifier) "SET_CONFIGURATION" (preproc_arg) "0x09" (preproc_def) "#define GET_INTERFACE 0x0A\n" (#define) "#define" (identifier) "GET_INTERFACE" (preproc_arg) "0x0A" (preproc_def) "#define SET_INTERFACE 0x0B\n" (#define) "#define" (identifier) "SET_INTERFACE" (preproc_arg) "0x0B" (preproc_def) "#define SYNC_FRAME 0x0C\n" (#define) "#define" (identifier) "SYNC_FRAME" (preproc_arg) "0x0C" (comment) "// USB Descriptor Type" (preproc_def) "#define DESC_DEVICE 0x01\n" (#define) "#define" (identifier) "DESC_DEVICE" (preproc_arg) "0x01" (preproc_def) "#define DESC_CONFIG 0x02\n" (#define) "#define" (identifier) "DESC_CONFIG" (preproc_arg) "0x02" (preproc_def) "#define DESC_STRING 0x03\n" (#define) "#define" (identifier) "DESC_STRING" (preproc_arg) "0x03" (preproc_def) "#define DESC_INTERFACE 0x04\n" (#define) "#define" (identifier) "DESC_INTERFACE" (preproc_arg) "0x04" (preproc_def) "#define DESC_ENDPOINT 0x05\n" (#define) "#define" (identifier) "DESC_ENDPOINT" (preproc_arg) "0x05" (preproc_def) "#define DESC_QUALIFIER 0x06\n" (#define) "#define" (identifier) "DESC_QUALIFIER" (preproc_arg) "0x06" (preproc_def) "#define DESC_OTHERSPEED 0x07\n" (#define) "#define" (identifier) "DESC_OTHERSPEED" (preproc_arg) "0x07" (comment) "// USB Descriptor Length" (preproc_def) "#define LEN_DEVICE 18\n" (#define) "#define" (identifier) "LEN_DEVICE" (preproc_arg) "18" (preproc_def) "#define LEN_CONFIG 9\n" (#define) "#define" (identifier) "LEN_CONFIG" (preproc_arg) "9" (preproc_def) "#define LEN_INTERFACE 9\n" (#define) "#define" (identifier) "LEN_INTERFACE" (preproc_arg) "9" (preproc_def) "#define LEN_ENDPOINT 7\n" (#define) "#define" (identifier) "LEN_ENDPOINT" (preproc_arg) "7" (comment) "// USB Endpoint Type" (preproc_def) "#define EP_ISO 0x01\n" (#define) "#define" (identifier) "EP_ISO" (preproc_arg) "0x01" (preproc_def) "#define EP_BULK 0x02\n" (#define) "#define" (identifier) "EP_BULK" (preproc_arg) "0x02" (preproc_def) "#define EP_INT 0x03\n" (#define) "#define" (identifier) "EP_INT" (preproc_arg) "0x03" (comment) "// USB Feature Selector" (preproc_def) "#define FEATURE_DEVICE_REMOTE_WAKEUP 0x01\n" (#define) "#define" (identifier) "FEATURE_DEVICE_REMOTE_WAKEUP" (preproc_arg) "0x01" (preproc_def) "#define FEATURE_ENDPOINT_HALT 0x00\n" (#define) "#define" (identifier) "FEATURE_ENDPOINT_HALT" (preproc_arg) "0x00" (comment) "//======================================================" (comment) "// USB Control" (comment) "//======================================================" (comment) "// USB STATE" (preproc_def) "#define USB_STATE_DETACHED 0x00\n" (#define) "#define" (identifier) "USB_STATE_DETACHED" (preproc_arg) "0x00" (preproc_def) "#define USB_STATE_ATTACHED 0x01\n" (#define) "#define" (identifier) "USB_STATE_ATTACHED" (preproc_arg) "0x01" (preproc_def) "#define USB_STATE_DEFAULT 0x11\n" (#define) "#define" (identifier) "USB_STATE_DEFAULT" (preproc_arg) "0x11" (preproc_def) "#define USB_STATE_ADDRESS 0x31\n" (#define) "#define" (identifier) "USB_STATE_ADDRESS" (preproc_arg) "0x31" (preproc_def) "#define USB_STATE_CONFIGURED 0x71\n" (#define) "#define" (identifier) "USB_STATE_CONFIGURED" (preproc_arg) "0x71" (preproc_def) "#define USB_STATE_FLAG_DEFAULT 0x10\n" (#define) "#define" (identifier) "USB_STATE_FLAG_DEFAULT" (preproc_arg) "0x10" (preproc_def) "#define USB_STATE_FLAG_ADDRESS 0x20\n" (#define) "#define" (identifier) "USB_STATE_FLAG_ADDRESS" (preproc_arg) "0x20" (preproc_def) "#define USB_STATE_FLAG_CONFIGURED 0x40\n" (#define) "#define" (identifier) "USB_STATE_FLAG_CONFIGURED" (preproc_arg) "0x40" (preproc_def) "#define USB_STATE_FLAG_SUSPENDED 0x80\n" (#define) "#define" (identifier) "USB_STATE_FLAG_SUSPENDED" (preproc_arg) "0x80" (comment) "// FLAG" (preproc_def) "#define FLAG_OUT_ACK 0x01\n" (#define) "#define" (identifier) "FLAG_OUT_ACK" (preproc_arg) "0x01" (preproc_def) "#define FLAG_SET_ADDRESS 0x02\n" (#define) "#define" (identifier) "FLAG_SET_ADDRESS" (preproc_arg) "0x02" (preproc_def) "#define FLAG_SET_CONFIG 0x04\n" (#define) "#define" (identifier) "FLAG_SET_CONFIG" (preproc_arg) "0x04" (preproc_def) "#define FLAG_SET_INTERFACE 0x08\n" (#define) "#define" (identifier) "FLAG_SET_INTERFACE" (preproc_arg) "0x08" (preproc_def) "#define FLAG_GET_MAX_LUN 0x10\n" (#define) "#define" (identifier) "FLAG_GET_MAX_LUN" (preproc_arg) "0x10" (comment) "// Max Packet Size" (preproc_def) "#define MAX_PACKET_SIZE0 64\n" (#define) "#define" (identifier) "MAX_PACKET_SIZE0" (preproc_arg) "64" (preproc_def) "#define MAX_PACKET_SIZE 64\n" (#define) "#define" (identifier) "MAX_PACKET_SIZE" (preproc_arg) "64" (comment) "// SRAM" (preproc_def) "#define BUF_SETUP 0xF8\n" (#define) "#define" (identifier) "BUF_SETUP" (preproc_arg) "0xF8" (preproc_def) "#define BUF_CTRL 0x00\n" (#define) "#define" (identifier) "BUF_CTRL" (preproc_arg) "0x00" (preproc_def) "#define BUF_BULK0 (BUF_CTRL+MAX_PACKET_SIZE0)\n" (#define) "#define" (identifier) "BUF_BULK0" (preproc_arg) "(BUF_CTRL+MAX_PACKET_SIZE0)" (preproc_def) "#define BUF_BULK1 (BUF_BULK0+MAX_PACKET_SIZE)\n" (#define) "#define" (identifier) "BUF_BULK1" (preproc_arg) "(BUF_BULK0+MAX_PACKET_SIZE)" (comment) "// CFG" (preproc_def) "#define CFG0_SETTING (CFG_CSTALL | CFG_EPT_IN | 0) /* EP address 0, control IN */\n" (#define) "#define" (identifier) "CFG0_SETTING" (preproc_arg) "(CFG_CSTALL | CFG_EPT_IN | 0) " (comment) "/* EP address 0, control IN */" (preproc_def) "#define CFG1_SETTING (CFG_CSTALL | CFG_EPT_OUT | 0) /* EP address 0, control OUT */\n" (#define) "#define" (identifier) "CFG1_SETTING" (preproc_arg) "(CFG_CSTALL | CFG_EPT_OUT | 0) " (comment) "/* EP address 0, control OUT */" (preproc_def) "#define CFG2_SETTING (CFG_EPT_IN | 2) /* EP address 2 */\n" (#define) "#define" (identifier) "CFG2_SETTING" (preproc_arg) "(CFG_EPT_IN | 2) " (comment) "/* EP address 2 */" (preproc_def) "#define CFG3_SETTING (CFG_EPT_OUT | 3) /* EP address 3 */\n" (#define) "#define" (identifier) "CFG3_SETTING" (preproc_arg) "(CFG_EPT_OUT | 3) " (comment) "/* EP address 3 */" (comment) "// BUF" (preproc_def) "#define BUF0_SETTING BUF_CTRL\n" (#define) "#define" (identifier) "BUF0_SETTING" (preproc_arg) "BUF_CTRL" (preproc_def) "#define BUF1_SETTING BUF_CTRL\n" (#define) "#define" (identifier) "BUF1_SETTING" (preproc_arg) "BUF_CTRL" (preproc_def) "#define BUF2_SETTING BUF_BULK1\n" (#define) "#define" (identifier) "BUF2_SETTING" (preproc_arg) "BUF_BULK1" (preproc_def) "#define BUF3_SETTING BUF_BULK0\n" (#define) "#define" (identifier) "BUF3_SETTING" (preproc_arg) "BUF_BULK0" (preproc_def) "#define g_au8UsbSetup ((uint8_t *)(USBD_BASE+0x100+BUF_SETUP))\n" (#define) "#define" (identifier) "g_au8UsbSetup" (preproc_arg) "((uint8_t *)(USBD_BASE+0x100+BUF_SETUP))" (preproc_def) "#define g_au8UsbCtrl ((uint8_t *)(USBD_BASE+0x100+BUF_CTRL))\n" (#define) "#define" (identifier) "g_au8UsbCtrl" (preproc_arg) "((uint8_t *)(USBD_BASE+0x100+BUF_CTRL))" (preproc_def) "#define g_au8UsbBulk1 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK1))\n" (#define) "#define" (identifier) "g_au8UsbBulk1" (preproc_arg) "((uint8_t *)(USBD_BASE+0x100+BUF_BULK1))" (preproc_def) "#define g_au8UsbBulk0 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK0))\n" (#define) "#define" (identifier) "g_au8UsbBulk0" (preproc_arg) "((uint8_t *)(USBD_BASE+0x100+BUF_BULK0))" (comment) "//======================================================" (preproc_def) "#define BULK_ONLY_MASS_STORAGE_RESET 0xFF\n" (#define) "#define" (identifier) "BULK_ONLY_MASS_STORAGE_RESET" (preproc_arg) "0xFF" (preproc_def) "#define GET_MAX_LUN 0xFE\n" (#define) "#define" (identifier) "GET_MAX_LUN" (preproc_arg) "0xFE" (comment) "//======================================================" (preproc_def) "#define BULK_CBW 0x00\n" (#define) "#define" (identifier) "BULK_CBW" (preproc_arg) "0x00" (preproc_def) "#define BULK_IN 0x01\n" (#define) "#define" (identifier) "BULK_IN" (preproc_arg) "0x01" (preproc_def) "#define BULK_OUT 0x02\n" (#define) "#define" (identifier) "BULK_OUT" (preproc_arg) "0x02" (preproc_def) "#define BULK_CSW 0x04\n" (#define) "#define" (identifier) "BULK_CSW" (preproc_arg) "0x04" (preproc_def) "#define BULK_NORMAL 0xFF\n" (#define) "#define" (identifier) "BULK_NORMAL" (preproc_arg) "0xFF" (comment) "//======================================================" (preproc_def) "#define UFI_TEST_UNIT_READY 0x00\n" (#define) "#define" (identifier) "UFI_TEST_UNIT_READY" (preproc_arg) "0x00" (preproc_def) "#define UFI_REQUEST_SENSE 0x03\n" (#define) "#define" (identifier) "UFI_REQUEST_SENSE" (preproc_arg) "0x03" (preproc_def) "#define UFI_INQUIRY 0x12\n" (#define) "#define" (identifier) "UFI_INQUIRY" (preproc_arg) "0x12" (preproc_def) "#define UFI_MODE_SELECT_6 0x15\n" (#define) "#define" (identifier) "UFI_MODE_SELECT_6" (preproc_arg) "0x15" (preproc_def) "#define UFI_MODE_SENSE_6 0x1A\n" (#define) "#define" (identifier) "UFI_MODE_SENSE_6" (preproc_arg) "0x1A" (preproc_def) "#define UFI_START_STOP 0x1B\n" (#define) "#define" (identifier) "UFI_START_STOP" (preproc_arg) "0x1B" (preproc_def) "#define UFI_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E\n" (#define) "#define" (identifier) "UFI_PREVENT_ALLOW_MEDIUM_REMOVAL" (preproc_arg) "0x1E" (preproc_def) "#define UFI_READ_FORMAT_CAPACITY 0x23\n" (#define) "#define" (identifier) "UFI_READ_FORMAT_CAPACITY" (preproc_arg) "0x23" (preproc_def) "#define UFI_READ_CAPACITY 0x25\n" (#define) "#define" (identifier) "UFI_READ_CAPACITY" (preproc_arg) "0x25" (preproc_def) "#define UFI_READ_10 0x28\n" (#define) "#define" (identifier) "UFI_READ_10" (preproc_arg) "0x28" (preproc_def) "#define UFI_WRITE_10 0x2A\n" (#define) "#define" (identifier) "UFI_WRITE_10" (preproc_arg) "0x2A" (preproc_def) "#define UFI_VERIFY_10 0x2F\n" (#define) "#define" (identifier) "UFI_VERIFY_10" (preproc_arg) "0x2F" (preproc_def) "#define UFI_MODE_SELECT_10 0x55\n" (#define) "#define" (identifier) "UFI_MODE_SELECT_10" (preproc_arg) "0x55" (preproc_def) "#define UFI_MODE_SENSE_10 0x5A\n" (#define) "#define" (identifier) "UFI_MODE_SENSE_10" (preproc_arg) "0x5A" (comment) "//======================================================" (comment) "/* for mass storage */" (struct_specifier) "struct CBW\n{\n uint32_t dCBWSignature;\n uint32_t dCBWTag;\n uint32_t dCBWDataTransferLength;\n uint8_t bmCBWFlags;\n uint8_t bCBWLUN;\n uint8_t bCBWCBLength;\n uint8_t u8OPCode;\n uint8_t u8LUN;\n uint8_t au8Data[14];\n}" (struct) "struct" (type_identifier) "CBW" (field_declaration_list) "{\n uint32_t dCBWSignature;\n uint32_t dCBWTag;\n uint32_t dCBWDataTransferLength;\n uint8_t bmCBWFlags;\n uint8_t bCBWLUN;\n uint8_t bCBWCBLength;\n uint8_t u8OPCode;\n uint8_t u8LUN;\n uint8_t au8Data[14];\n}" ({) "{" (field_declaration) "uint32_t dCBWSignature;" (primitive_type) "uint32_t" (field_identifier) "dCBWSignature" (;) ";" (field_declaration) "uint32_t dCBWTag;" (primitive_type) "uint32_t" (field_identifier) "dCBWTag" (;) ";" (field_declaration) "uint32_t dCBWDataTransferLength;" (primitive_type) "uint32_t" (field_identifier) "dCBWDataTransferLength" (;) ";" (field_declaration) "uint8_t bmCBWFlags;" (primitive_type) "uint8_t" (field_identifier) "bmCBWFlags" (;) ";" (field_declaration) "uint8_t bCBWLUN;" (primitive_type) "uint8_t" (field_identifier) "bCBWLUN" (;) ";" (field_declaration) "uint8_t bCBWCBLength;" (primitive_type) "uint8_t" (field_identifier) "bCBWCBLength" (;) ";" (field_declaration) "uint8_t u8OPCode;" (primitive_type) "uint8_t" (field_identifier) "u8OPCode" (;) ";" (field_declaration) "uint8_t u8LUN;" (primitive_type) "uint8_t" (field_identifier) "u8LUN" (;) ";" (field_declaration) "uint8_t au8Data[14];" (primitive_type) "uint8_t" (array_declarator) "au8Data[14]" (field_identifier) "au8Data" ([) "[" (number_literal) "14" (]) "]" (;) ";" (}) "}" (;) ";" (struct_specifier) "struct CSW\n{\n uint32_t dCSWSignature;\n uint32_t dCSWTag;\n uint32_t dCSWDataResidue;\n uint8_t bCSWStatus;\n}" (struct) "struct" (type_identifier) "CSW" (field_declaration_list) "{\n uint32_t dCSWSignature;\n uint32_t dCSWTag;\n uint32_t dCSWDataResidue;\n uint8_t bCSWStatus;\n}" ({) "{" (field_declaration) "uint32_t dCSWSignature;" (primitive_type) "uint32_t" (field_identifier) "dCSWSignature" (;) ";" (field_declaration) "uint32_t dCSWTag;" (primitive_type) "uint32_t" (field_identifier) "dCSWTag" (;) ";" (field_declaration) "uint32_t dCSWDataResidue;" (primitive_type) "uint32_t" (field_identifier) "dCSWDataResidue" (;) ";" (field_declaration) "uint8_t bCSWStatus;" (primitive_type) "uint8_t" (field_identifier) "bCSWStatus" (;) ";" (}) "}" (;) ";" (type_definition) "typedef struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n} Disk_Par_Info;" (typedef) "typedef" (struct_specifier) "struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n}" (struct) "struct" (type_identifier) "Disk_Par_Inf" (field_declaration_list) "{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n}" ({) "{" (field_declaration) "uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;" (primitive_type) "uint32_t" (field_identifier) "partition_size" (,) "," (field_identifier) "data_location" (,) "," (field_identifier) "bpb_location" (,) "," (field_identifier) "fat_location" (,) "," (field_identifier) "rootdir_location" (,) "," (field_identifier) "free_size" (;) ";" (field_declaration) "uint16_t rootdirentryno,\n totalcluster,\n NumCyl;" (primitive_type) "uint16_t" (field_identifier) "rootdirentryno" (,) "," (field_identifier) "totalcluster" (,) "," (field_identifier) "NumCyl" (;) ";" (field_declaration) "uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;" (primitive_type) "uint8_t" (field_identifier) "NumHead" (,) "," (field_identifier) "NumSector" (,) "," (field_identifier) "capacity" (,) "," (field_identifier) "fatcopyno" (,) "," (field_identifier) "fatsectorno" (,) "," (field_identifier) "fat16flg" (;) ";" (}) "}" (type_identifier) "Disk_Par_Info" (;) ";" (comment) "/* extern flags */" (declaration) "extern uint8_t g_u8BulkState;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint8_t" (identifier) "g_u8BulkState" (;) ";" (declaration) "extern int32_t udcOnLine;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int32_t" (identifier) "udcOnLine" (;) ";" (declaration) "extern int32_t g_bIsFirstRead;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int32_t" (identifier) "g_bIsFirstRead" (;) ";" (declaration) "extern uint32_t usbDataReady;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint32_t" (identifier) "usbDataReady" (;) ";" (declaration) "extern uint8_t g_u8UsbState;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "uint8_t" (identifier) "g_u8UsbState" (;) ";" (comment) "/* extern functions */" (declaration) "void ReqSenCommand(void);" (primitive_type) "void" (function_declarator) "ReqSenCommand(void)" (identifier) "ReqSenCommand" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void RdFmtCapCommand(void);" (primitive_type) "void" (function_declarator) "RdFmtCapCommand(void)" (identifier) "RdFmtCapCommand" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void RdCurCapCommand(void);" (primitive_type) "void" (function_declarator) "RdCurCapCommand(void)" (identifier) "RdCurCapCommand" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "uint8_t udcFlashInit(void);" (primitive_type) "uint8_t" (function_declarator) "udcFlashInit(void)" (identifier) "udcFlashInit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void udcInit(void);" (primitive_type) "void" (function_declarator) "udcInit(void)" (identifier) "udcInit" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "void udcMassBulk(void);" (primitive_type) "void" (function_declarator) "udcMassBulk(void)" (identifier) "udcMassBulk" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (#endif) "#endif"
811
0
{"language": "c", "success": true, "metadata": {"lines": 223, "avg_line_length": 36.98, "nodes": 695, "errors": 0, "source_hash": "88d120d72147824849353b89ae4295ddc2883a0782bcec57700c306796527eea", "categorized_nodes": 244}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _NUC100_UDC_H_\n#define _NUC100_UDC_H_\n\n#include \"NUC1xx.h\"\n#include \"Driver\\DrvUSB.h\"\n//======================================================\n\n#define IEF_wakeupEn 0x00000100 // R/W 1/0 Enable/Disable USB wakeup function\n#define IEF_INNAKen 0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt\n\n#define EVF_INT_BUS 0x00000001 // R/WC\n#define EVF_INT_USB 0x00000002 // R/WC\n#define EVF_INT_FLDET 0x00000004 // R/WC\n#define EVF_INT_WAKEUP 0x00000008 // R/WC\n#define EVF_INT_EPTF0 0x00010000 // R/WC\n#define EVF_INT_EPTF1 0x00020000 // R/WC\n#define EVF_INT_EPTF2 0x00040000 // R/WC\n#define EVF_INT_EPTF3 0x00080000 // R/WC\n#define EVF_INT_EPTF4 0x00100000 // R/WC\n#define EVF_INT_EPTF5 0x00200000 // R/WC\n#define EVF_INT_SETUP 0x80000000 // R/WC\n\n#define STS_EPT 0x0000000F // R&C USB Event Endpoint Number\n//#define STS_STS 0x00000070 // R&C USB Event (IN ACK/NAK, OUT 0/1 ACK, Setup ACK)\n\n#define USB_SETUP_ACK 0x30\n#define USB_IN_ACK 0x00\n#define USB_OUT_0_ACK 0x20\n#define USB_OUT_1_ACK 0x60\n#define USB_IN_NAK 0x10\n#define USB_ISO 0x70\n\n#define STS_Overrun 0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes\n#define STS0 0x00000700\n#define STS1 0x00003800\n#define STS2 0x0001C000\n#define STS3 0x000E0000\n#define STS4 0x00700000\n#define STS5 0x03800000\n\n#define ATTR_enUSB 0x00000080 // R/W 1/0 Enable/Disable USB\n#define ATTR_SPEED 0x00000040 // R/W 1/0 Full/Low Speed\n#define ATTR_RWakeUp 0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up\n#define ATTR_enPHY 0x00000010 // R/W 1/0 Enable/Disable PHY\n#define ATTR_Timeout 0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time\n#define ATTR_Resume 0x00000004 // R&C USB Resume\n#define ATTR_Suspend 0x00000002 // R USB Suspend\n#define ATTR_usbRST 0x00000001 // R&C USB Bus Reset\n\n#define RCVmode 0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP\n\n#define EPT_stall_ctl 0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage\n#define EPT_DSQ 0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK\n#define EPT_state 0x00000060\n#define EPT_DISABLE 0\n#define EPT_OUT 0x00000020\n#define EPT_IN 0x00000040\n#define EPT_ISOCH 0x00000010 // R/W Isochronous, No Handshake\n#define EPT_ISO 0x00000010\n#define EPT_EPT 0x0000000F\n#define EPT_stall 0x00000002 // R/W Force Device to Response Stall\n#define EPT_CFGP 0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD\n\n#define CBW_SIGNATURE 0x43425355\n#define CSW_SIGNATURE 0x53425355\n\n//======================================================\n#define DATA0(a) (a&0x7F)\n#define DATA1(a) (a|0x80)\n\n//======================================================\n// USB Request\n//======================================================\n// Request Type\n#define REQ_STANDARD 0x00\n#define REQ_CLASS 0x20\n#define REQ_VENDOR 0x40\n\n// Request\n#define GET_STATUS 0x00\n#define CLEAR_FEATURE 0x01\n//#define 0x02\n#define SET_FEATURE 0x03\n//#define 0x04\n#define SET_ADDRESS 0x05\n#define GET_DESCRIPTOR 0x06\n#define SET_DESCRIPTOR 0x07\n#define GET_CONFIGURATION 0x08\n#define SET_CONFIGURATION 0x09\n#define GET_INTERFACE 0x0A\n#define SET_INTERFACE 0x0B\n#define SYNC_FRAME 0x0C\n\n// USB Descriptor Type\n#define DESC_DEVICE 0x01\n#define DESC_CONFIG 0x02\n#define DESC_STRING 0x03\n#define DESC_INTERFACE 0x04\n#define DESC_ENDPOINT 0x05\n#define DESC_QUALIFIER 0x06\n#define DESC_OTHERSPEED 0x07\n\n// USB Descriptor Length\n#define LEN_DEVICE 18\n#define LEN_CONFIG 9\n#define LEN_INTERFACE 9\n#define LEN_ENDPOINT 7\n\n// USB Endpoint Type\n#define EP_ISO 0x01\n#define EP_BULK 0x02\n#define EP_INT 0x03\n\n// USB Feature Selector\n#define FEATURE_DEVICE_REMOTE_WAKEUP 0x01\n#define FEATURE_ENDPOINT_HALT 0x00\n\n//======================================================\n// USB Control\n//======================================================\n// USB STATE\n#define USB_STATE_DETACHED 0x00\n#define USB_STATE_ATTACHED 0x01\n#define USB_STATE_DEFAULT 0x11\n#define USB_STATE_ADDRESS 0x31\n#define USB_STATE_CONFIGURED 0x71\n\n#define USB_STATE_FLAG_DEFAULT 0x10\n#define USB_STATE_FLAG_ADDRESS 0x20\n#define USB_STATE_FLAG_CONFIGURED 0x40\n#define USB_STATE_FLAG_SUSPENDED 0x80\n\n// FLAG\n#define FLAG_OUT_ACK 0x01\n#define FLAG_SET_ADDRESS 0x02\n#define FLAG_SET_CONFIG 0x04\n#define FLAG_SET_INTERFACE 0x08\n#define FLAG_GET_MAX_LUN 0x10\n\n// Max Packet Size\n#define MAX_PACKET_SIZE0 64\n#define MAX_PACKET_SIZE 64\n\n// SRAM\n#define BUF_SETUP 0xF8\n#define BUF_CTRL 0x00\n#define BUF_BULK0 (BUF_CTRL+MAX_PACKET_SIZE0)\n#define BUF_BULK1 (BUF_BULK0+MAX_PACKET_SIZE)\n\n// CFG\n#define CFG0_SETTING (CFG_CSTALL | CFG_EPT_IN | 0) /* EP address 0, control IN */\n#define CFG1_SETTING (CFG_CSTALL | CFG_EPT_OUT | 0) /* EP address 0, control OUT */\n#define CFG2_SETTING (CFG_EPT_IN | 2) /* EP address 2 */\n#define CFG3_SETTING (CFG_EPT_OUT | 3) /* EP address 3 */\n\n// BUF\n#define BUF0_SETTING BUF_CTRL\n#define BUF1_SETTING BUF_CTRL\n#define BUF2_SETTING BUF_BULK1\n#define BUF3_SETTING BUF_BULK0\n \n#define g_au8UsbSetup ((uint8_t *)(USBD_BASE+0x100+BUF_SETUP))\n#define g_au8UsbCtrl ((uint8_t *)(USBD_BASE+0x100+BUF_CTRL))\n#define g_au8UsbBulk1 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK1))\n#define g_au8UsbBulk0 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK0))\n\n//======================================================\n#define BULK_ONLY_MASS_STORAGE_RESET 0xFF\n#define GET_MAX_LUN 0xFE\n\n//======================================================\n#define BULK_CBW 0x00\n#define BULK_IN 0x01\n#define BULK_OUT 0x02\n#define BULK_CSW 0x04\n#define BULK_NORMAL 0xFF\n\n//======================================================\n#define UFI_TEST_UNIT_READY 0x00\n#define UFI_REQUEST_SENSE 0x03\n#define UFI_INQUIRY 0x12\n#define UFI_MODE_SELECT_6 0x15\n#define UFI_MODE_SENSE_6 0x1A\n#define UFI_START_STOP 0x1B\n#define UFI_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E\n#define UFI_READ_FORMAT_CAPACITY 0x23\n#define UFI_READ_CAPACITY 0x25\n#define UFI_READ_10 0x28\n#define UFI_WRITE_10 0x2A\n#define UFI_VERIFY_10 0x2F\n#define UFI_MODE_SELECT_10 0x55\n#define UFI_MODE_SENSE_10 0x5A\n\n//======================================================\n/* for mass storage */\nstruct CBW\n{\n uint32_t dCBWSignature;\n uint32_t dCBWTag;\n uint32_t dCBWDataTransferLength;\n uint8_t bmCBWFlags;\n uint8_t bCBWLUN;\n uint8_t bCBWCBLength;\n uint8_t u8OPCode;\n uint8_t u8LUN;\n uint8_t au8Data[14];\n};\n\nstruct CSW\n{\n uint32_t dCSWSignature;\n uint32_t dCSWTag;\n uint32_t dCSWDataResidue;\n uint8_t bCSWStatus;\n};\n\ntypedef struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n} Disk_Par_Info;\n\n/* extern flags */\nextern uint8_t g_u8BulkState;\nextern int32_t udcOnLine;\nextern int32_t g_bIsFirstRead;\nextern uint32_t usbDataReady;\nextern uint8_t g_u8UsbState;\n\n/* extern functions */\nvoid ReqSenCommand(void);\nvoid RdFmtCapCommand(void);\nvoid RdCurCapCommand(void);\nuint8_t udcFlashInit(void);\n\nvoid udcInit(void); \nvoid udcMassBulk(void);\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57, 61, 65, 69, 73, 77, 81, 85, 89, 93, 97, 101, 105, 109, 113, 117, 121, 125, 129, 133, 137, 141, 145, 149, 153, 157, 161, 165, 169, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 215, 221, 225, 229, 233, 237, 241, 245, 249, 253, 257, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 313, 317, 321, 325, 329, 333, 337, 341, 345, 349, 353, 357, 361, 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 405, 409, 413, 417, 421, 425, 429, 433, 437, 441, 445, 449, 453, 457, 461, 465, 469, 473, 477, 481, 485, 489, 493, 497, 501, 505, 509, 513, 517, 521, 525, 529, 533, 537, 541, 545, 549, 553, 585, 600, 627, 632, 637, 642, 647, 652, 659, 666, 673, 680, 687, 694], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 257, "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": "_NUC100_UDC_H_", "parent": 0, "children": [], "start_point": {"row": 6, "column": 8}, "end_point": {"row": 6, "column": 22}}, {"id": 3, "type": "preproc_def", "text": "#define _NUC100_UDC_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": "_NUC100_UDC_H_", "parent": 3, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 22}}, {"id": 6, "type": "preproc_include", "text": "#include \"NUC1xx.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 10, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"NUC1xx.h\"", "parent": 6, "children": [], "start_point": {"row": 9, "column": 9}, "end_point": {"row": 9, "column": 19}}, {"id": 9, "type": "preproc_include", "text": "#include \"Driver\\DrvUSB.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"Driver\\DrvUSB.h\"", "parent": 9, "children": [12], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 26}}, {"id": 12, "type": "escape_sequence", "text": "\\D", "parent": 11, "children": [], "start_point": {"row": 10, "column": 16}, "end_point": {"row": 10, "column": 18}}, {"id": 13, "type": "preproc_def", "text": "#define IEF_wakeupEn 0x00000100 // R/W 1/0 Enable/Disable USB wakeup function\n", "parent": 0, "children": [14, 15, 16], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 14, "column": 0}}, {"id": 14, "type": "#define", "text": "#define", "parent": 13, "children": [], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 13, "column": 7}}, {"id": 15, "type": "identifier", "text": "IEF_wakeupEn", "parent": 13, "children": [], "start_point": {"row": 13, "column": 8}, "end_point": {"row": 13, "column": 20}}, {"id": 16, "type": "preproc_arg", "text": "0x00000100 // R/W 1/0 Enable/Disable USB wakeup function", "parent": 13, "children": [], "start_point": {"row": 13, "column": 24}, "end_point": {"row": 13, "column": 84}}, {"id": 17, "type": "preproc_def", "text": "#define IEF_INNAKen 0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt\n", "parent": 0, "children": [18, 19, 20], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 15, "column": 0}}, {"id": 18, "type": "#define", "text": "#define", "parent": 17, "children": [], "start_point": {"row": 14, "column": 0}, "end_point": {"row": 14, "column": 7}}, {"id": 19, "type": "identifier", "text": "IEF_INNAKen", "parent": 17, "children": [], "start_point": {"row": 14, "column": 8}, "end_point": {"row": 14, "column": 19}}, {"id": 20, "type": "preproc_arg", "text": "0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt", "parent": 17, "children": [], "start_point": {"row": 14, "column": 24}, "end_point": {"row": 14, "column": 79}}, {"id": 21, "type": "preproc_def", "text": "#define EVF_INT_BUS 0x00000001 // R/WC\n", "parent": 0, "children": [22, 23, 24], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 17, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 16, "column": 0}, "end_point": {"row": 16, "column": 7}}, {"id": 23, "type": "identifier", "text": "EVF_INT_BUS", "parent": 21, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 19}}, {"id": 24, "type": "preproc_arg", "text": "0x00000001 // R/WC", "parent": 21, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 45}}, {"id": 25, "type": "preproc_def", "text": "#define EVF_INT_USB 0x00000002 // R/WC\n", "parent": 0, "children": [26, 27, 28], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 18, "column": 0}}, {"id": 26, "type": "#define", "text": "#define", "parent": 25, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 7}}, {"id": 27, "type": "identifier", "text": "EVF_INT_USB", "parent": 25, "children": [], "start_point": {"row": 17, "column": 8}, "end_point": {"row": 17, "column": 19}}, {"id": 28, "type": "preproc_arg", "text": "0x00000002 // R/WC", "parent": 25, "children": [], "start_point": {"row": 17, "column": 24}, "end_point": {"row": 17, "column": 45}}, {"id": 29, "type": "preproc_def", "text": "#define EVF_INT_FLDET 0x00000004 // R/WC\n", "parent": 0, "children": [30, 31, 32], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 19, "column": 0}}, {"id": 30, "type": "#define", "text": "#define", "parent": 29, "children": [], "start_point": {"row": 18, "column": 0}, "end_point": {"row": 18, "column": 7}}, {"id": 31, "type": "identifier", "text": "EVF_INT_FLDET", "parent": 29, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 21}}, {"id": 32, "type": "preproc_arg", "text": "0x00000004 // R/WC", "parent": 29, "children": [], "start_point": {"row": 18, "column": 24}, "end_point": {"row": 18, "column": 45}}, {"id": 33, "type": "preproc_def", "text": "#define EVF_INT_WAKEUP 0x00000008 // R/WC\n", "parent": 0, "children": [34, 35, 36], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 20, "column": 0}}, {"id": 34, "type": "#define", "text": "#define", "parent": 33, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 7}}, {"id": 35, "type": "identifier", "text": "EVF_INT_WAKEUP", "parent": 33, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 22}}, {"id": 36, "type": "preproc_arg", "text": "0x00000008 // R/WC", "parent": 33, "children": [], "start_point": {"row": 19, "column": 24}, "end_point": {"row": 19, "column": 45}}, {"id": 37, "type": "preproc_def", "text": "#define EVF_INT_EPTF0 0x00010000 // R/WC\n", "parent": 0, "children": [38, 39, 40], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 38, "type": "#define", "text": "#define", "parent": 37, "children": [], "start_point": {"row": 20, "column": 0}, "end_point": {"row": 20, "column": 7}}, {"id": 39, "type": "identifier", "text": "EVF_INT_EPTF0", "parent": 37, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 21}}, {"id": 40, "type": "preproc_arg", "text": "0x00010000 // R/WC", "parent": 37, "children": [], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 45}}, {"id": 41, "type": "preproc_def", "text": "#define EVF_INT_EPTF1 0x00020000 // R/WC\n", "parent": 0, "children": [42, 43, 44], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 22, "column": 0}}, {"id": 42, "type": "#define", "text": "#define", "parent": 41, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 7}}, {"id": 43, "type": "identifier", "text": "EVF_INT_EPTF1", "parent": 41, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 21}}, {"id": 44, "type": "preproc_arg", "text": "0x00020000 // R/WC", "parent": 41, "children": [], "start_point": {"row": 21, "column": 24}, "end_point": {"row": 21, "column": 45}}, {"id": 45, "type": "preproc_def", "text": "#define EVF_INT_EPTF2 0x00040000 // R/WC\n", "parent": 0, "children": [46, 47, 48], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 23, "column": 0}}, {"id": 46, "type": "#define", "text": "#define", "parent": 45, "children": [], "start_point": {"row": 22, "column": 0}, "end_point": {"row": 22, "column": 7}}, {"id": 47, "type": "identifier", "text": "EVF_INT_EPTF2", "parent": 45, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 21}}, {"id": 48, "type": "preproc_arg", "text": "0x00040000 // R/WC", "parent": 45, "children": [], "start_point": {"row": 22, "column": 24}, "end_point": {"row": 22, "column": 45}}, {"id": 49, "type": "preproc_def", "text": "#define EVF_INT_EPTF3 0x00080000 // R/WC\n", "parent": 0, "children": [50, 51, 52], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 24, "column": 0}}, {"id": 50, "type": "#define", "text": "#define", "parent": 49, "children": [], "start_point": {"row": 23, "column": 0}, "end_point": {"row": 23, "column": 7}}, {"id": 51, "type": "identifier", "text": "EVF_INT_EPTF3", "parent": 49, "children": [], "start_point": {"row": 23, "column": 8}, "end_point": {"row": 23, "column": 21}}, {"id": 52, "type": "preproc_arg", "text": "0x00080000 // R/WC", "parent": 49, "children": [], "start_point": {"row": 23, "column": 24}, "end_point": {"row": 23, "column": 45}}, {"id": 53, "type": "preproc_def", "text": "#define EVF_INT_EPTF4 0x00100000 // R/WC\n", "parent": 0, "children": [54, 55, 56], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 25, "column": 0}}, {"id": 54, "type": "#define", "text": "#define", "parent": 53, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 55, "type": "identifier", "text": "EVF_INT_EPTF4", "parent": 53, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 21}}, {"id": 56, "type": "preproc_arg", "text": "0x00100000 // R/WC", "parent": 53, "children": [], "start_point": {"row": 24, "column": 24}, "end_point": {"row": 24, "column": 45}}, {"id": 57, "type": "preproc_def", "text": "#define EVF_INT_EPTF5 0x00200000 // R/WC\n", "parent": 0, "children": [58, 59, 60], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 58, "type": "#define", "text": "#define", "parent": 57, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 59, "type": "identifier", "text": "EVF_INT_EPTF5", "parent": 57, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 21}}, {"id": 60, "type": "preproc_arg", "text": "0x00200000 // R/WC", "parent": 57, "children": [], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 45}}, {"id": 61, "type": "preproc_def", "text": "#define EVF_INT_SETUP 0x80000000 // R/WC\n", "parent": 0, "children": [62, 63, 64], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 27, "column": 0}}, {"id": 62, "type": "#define", "text": "#define", "parent": 61, "children": [], "start_point": {"row": 26, "column": 0}, "end_point": {"row": 26, "column": 7}}, {"id": 63, "type": "identifier", "text": "EVF_INT_SETUP", "parent": 61, "children": [], "start_point": {"row": 26, "column": 8}, "end_point": {"row": 26, "column": 21}}, {"id": 64, "type": "preproc_arg", "text": "0x80000000 // R/WC", "parent": 61, "children": [], "start_point": {"row": 26, "column": 24}, "end_point": {"row": 26, "column": 45}}, {"id": 65, "type": "preproc_def", "text": "#define STS_EPT 0x0000000F // R&C USB Event Endpoint Number\n", "parent": 0, "children": [66, 67, 68], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 66, "type": "#define", "text": "#define", "parent": 65, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 67, "type": "identifier", "text": "STS_EPT", "parent": 65, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 15}}, {"id": 68, "type": "preproc_arg", "text": "0x0000000F // R&C USB Event Endpoint Number", "parent": 65, "children": [], "start_point": {"row": 28, "column": 22}, "end_point": {"row": 28, "column": 69}}, {"id": 69, "type": "preproc_def", "text": "#define USB_SETUP_ACK 0x30\n", "parent": 0, "children": [70, 71, 72], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 70, "type": "#define", "text": "#define", "parent": 69, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 71, "type": "identifier", "text": "USB_SETUP_ACK", "parent": 69, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 21}}, {"id": 72, "type": "preproc_arg", "text": "0x30", "parent": 69, "children": [], "start_point": {"row": 31, "column": 24}, "end_point": {"row": 31, "column": 28}}, {"id": 73, "type": "preproc_def", "text": "#define USB_IN_ACK 0x00\n", "parent": 0, "children": [74, 75, 76], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 74, "type": "#define", "text": "#define", "parent": 73, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 75, "type": "identifier", "text": "USB_IN_ACK", "parent": 73, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 18}}, {"id": 76, "type": "preproc_arg", "text": "0x00", "parent": 73, "children": [], "start_point": {"row": 32, "column": 24}, "end_point": {"row": 32, "column": 28}}, {"id": 77, "type": "preproc_def", "text": "#define USB_OUT_0_ACK 0x20\n", "parent": 0, "children": [78, 79, 80], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 78, "type": "#define", "text": "#define", "parent": 77, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 79, "type": "identifier", "text": "USB_OUT_0_ACK", "parent": 77, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 21}}, {"id": 80, "type": "preproc_arg", "text": "0x20", "parent": 77, "children": [], "start_point": {"row": 33, "column": 24}, "end_point": {"row": 33, "column": 28}}, {"id": 81, "type": "preproc_def", "text": "#define USB_OUT_1_ACK 0x60\n", "parent": 0, "children": [82, 83, 84], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 35, "column": 0}}, {"id": 82, "type": "#define", "text": "#define", "parent": 81, "children": [], "start_point": {"row": 34, "column": 0}, "end_point": {"row": 34, "column": 7}}, {"id": 83, "type": "identifier", "text": "USB_OUT_1_ACK", "parent": 81, "children": [], "start_point": {"row": 34, "column": 8}, "end_point": {"row": 34, "column": 21}}, {"id": 84, "type": "preproc_arg", "text": "0x60", "parent": 81, "children": [], "start_point": {"row": 34, "column": 24}, "end_point": {"row": 34, "column": 28}}, {"id": 85, "type": "preproc_def", "text": "#define USB_IN_NAK 0x10\n", "parent": 0, "children": [86, 87, 88], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 86, "type": "#define", "text": "#define", "parent": 85, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 87, "type": "identifier", "text": "USB_IN_NAK", "parent": 85, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 18}}, {"id": 88, "type": "preproc_arg", "text": "0x10", "parent": 85, "children": [], "start_point": {"row": 35, "column": 24}, "end_point": {"row": 35, "column": 28}}, {"id": 89, "type": "preproc_def", "text": "#define USB_ISO 0x70\n", "parent": 0, "children": [90, 91, 92], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 37, "column": 0}}, {"id": 90, "type": "#define", "text": "#define", "parent": 89, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 7}}, {"id": 91, "type": "identifier", "text": "USB_ISO", "parent": 89, "children": [], "start_point": {"row": 36, "column": 8}, "end_point": {"row": 36, "column": 15}}, {"id": 92, "type": "preproc_arg", "text": "0x70", "parent": 89, "children": [], "start_point": {"row": 36, "column": 24}, "end_point": {"row": 36, "column": 28}}, {"id": 93, "type": "preproc_def", "text": "#define STS_Overrun 0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes\n", "parent": 0, "children": [94, 95, 96], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 39, "column": 0}}, {"id": 94, "type": "#define", "text": "#define", "parent": 93, "children": [], "start_point": {"row": 38, "column": 0}, "end_point": {"row": 38, "column": 7}}, {"id": 95, "type": "identifier", "text": "STS_Overrun", "parent": 93, "children": [], "start_point": {"row": 38, "column": 8}, "end_point": {"row": 38, "column": 19}}, {"id": 96, "type": "preproc_arg", "text": "0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes", "parent": 93, "children": [], "start_point": {"row": 38, "column": 22}, "end_point": {"row": 38, "column": 106}}, {"id": 97, "type": "preproc_def", "text": "#define STS0 0x00000700\n", "parent": 0, "children": [98, 99, 100], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 40, "column": 0}}, {"id": 98, "type": "#define", "text": "#define", "parent": 97, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 7}}, {"id": 99, "type": "identifier", "text": "STS0", "parent": 97, "children": [], "start_point": {"row": 39, "column": 8}, "end_point": {"row": 39, "column": 12}}, {"id": 100, "type": "preproc_arg", "text": "0x00000700", "parent": 97, "children": [], "start_point": {"row": 39, "column": 22}, "end_point": {"row": 39, "column": 32}}, {"id": 101, "type": "preproc_def", "text": "#define STS1 0x00003800\n", "parent": 0, "children": [102, 103, 104], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 102, "type": "#define", "text": "#define", "parent": 101, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 103, "type": "identifier", "text": "STS1", "parent": 101, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 12}}, {"id": 104, "type": "preproc_arg", "text": "0x00003800", "parent": 101, "children": [], "start_point": {"row": 40, "column": 22}, "end_point": {"row": 40, "column": 32}}, {"id": 105, "type": "preproc_def", "text": "#define STS2 0x0001C000\n", "parent": 0, "children": [106, 107, 108], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 106, "type": "#define", "text": "#define", "parent": 105, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 107, "type": "identifier", "text": "STS2", "parent": 105, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 12}}, {"id": 108, "type": "preproc_arg", "text": "0x0001C000", "parent": 105, "children": [], "start_point": {"row": 41, "column": 22}, "end_point": {"row": 41, "column": 32}}, {"id": 109, "type": "preproc_def", "text": "#define STS3 0x000E0000\n", "parent": 0, "children": [110, 111, 112], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 110, "type": "#define", "text": "#define", "parent": 109, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 111, "type": "identifier", "text": "STS3", "parent": 109, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 12}}, {"id": 112, "type": "preproc_arg", "text": "0x000E0000", "parent": 109, "children": [], "start_point": {"row": 42, "column": 22}, "end_point": {"row": 42, "column": 32}}, {"id": 113, "type": "preproc_def", "text": "#define STS4 0x00700000\n", "parent": 0, "children": [114, 115, 116], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 44, "column": 0}}, {"id": 114, "type": "#define", "text": "#define", "parent": 113, "children": [], "start_point": {"row": 43, "column": 0}, "end_point": {"row": 43, "column": 7}}, {"id": 115, "type": "identifier", "text": "STS4", "parent": 113, "children": [], "start_point": {"row": 43, "column": 8}, "end_point": {"row": 43, "column": 12}}, {"id": 116, "type": "preproc_arg", "text": "0x00700000", "parent": 113, "children": [], "start_point": {"row": 43, "column": 22}, "end_point": {"row": 43, "column": 32}}, {"id": 117, "type": "preproc_def", "text": "#define STS5 0x03800000\n", "parent": 0, "children": [118, 119, 120], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 45, "column": 0}}, {"id": 118, "type": "#define", "text": "#define", "parent": 117, "children": [], "start_point": {"row": 44, "column": 0}, "end_point": {"row": 44, "column": 7}}, {"id": 119, "type": "identifier", "text": "STS5", "parent": 117, "children": [], "start_point": {"row": 44, "column": 8}, "end_point": {"row": 44, "column": 12}}, {"id": 120, "type": "preproc_arg", "text": "0x03800000", "parent": 117, "children": [], "start_point": {"row": 44, "column": 22}, "end_point": {"row": 44, "column": 32}}, {"id": 121, "type": "preproc_def", "text": "#define ATTR_enUSB 0x00000080 // R/W 1/0 Enable/Disable USB\n", "parent": 0, "children": [122, 123, 124], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 47, "column": 0}}, {"id": 122, "type": "#define", "text": "#define", "parent": 121, "children": [], "start_point": {"row": 46, "column": 0}, "end_point": {"row": 46, "column": 7}}, {"id": 123, "type": "identifier", "text": "ATTR_enUSB", "parent": 121, "children": [], "start_point": {"row": 46, "column": 8}, "end_point": {"row": 46, "column": 18}}, {"id": 124, "type": "preproc_arg", "text": "0x00000080 // R/W 1/0 Enable/Disable USB", "parent": 121, "children": [], "start_point": {"row": 46, "column": 22}, "end_point": {"row": 46, "column": 68}}, {"id": 125, "type": "preproc_def", "text": "#define ATTR_SPEED 0x00000040 // R/W 1/0 Full/Low Speed\n", "parent": 0, "children": [126, 127, 128], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 48, "column": 0}}, {"id": 126, "type": "#define", "text": "#define", "parent": 125, "children": [], "start_point": {"row": 47, "column": 0}, "end_point": {"row": 47, "column": 7}}, {"id": 127, "type": "identifier", "text": "ATTR_SPEED", "parent": 125, "children": [], "start_point": {"row": 47, "column": 8}, "end_point": {"row": 47, "column": 18}}, {"id": 128, "type": "preproc_arg", "text": "0x00000040 // R/W 1/0 Full/Low Speed", "parent": 125, "children": [], "start_point": {"row": 47, "column": 22}, "end_point": {"row": 47, "column": 64}}, {"id": 129, "type": "preproc_def", "text": "#define ATTR_RWakeUp 0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up\n", "parent": 0, "children": [130, 131, 132], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 130, "type": "#define", "text": "#define", "parent": 129, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 131, "type": "identifier", "text": "ATTR_RWakeUp", "parent": 129, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 20}}, {"id": 132, "type": "preproc_arg", "text": "0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up", "parent": 129, "children": [], "start_point": {"row": 48, "column": 22}, "end_point": {"row": 48, "column": 98}}, {"id": 133, "type": "preproc_def", "text": "#define ATTR_enPHY 0x00000010 // R/W 1/0 Enable/Disable PHY\n", "parent": 0, "children": [134, 135, 136], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 50, "column": 0}}, {"id": 134, "type": "#define", "text": "#define", "parent": 133, "children": [], "start_point": {"row": 49, "column": 0}, "end_point": {"row": 49, "column": 7}}, {"id": 135, "type": "identifier", "text": "ATTR_enPHY", "parent": 133, "children": [], "start_point": {"row": 49, "column": 8}, "end_point": {"row": 49, "column": 18}}, {"id": 136, "type": "preproc_arg", "text": "0x00000010 // R/W 1/0 Enable/Disable PHY", "parent": 133, "children": [], "start_point": {"row": 49, "column": 22}, "end_point": {"row": 49, "column": 68}}, {"id": 137, "type": "preproc_def", "text": "#define ATTR_Timeout 0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time\n", "parent": 0, "children": [138, 139, 140], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 51, "column": 0}}, {"id": 138, "type": "#define", "text": "#define", "parent": 137, "children": [], "start_point": {"row": 50, "column": 0}, "end_point": {"row": 50, "column": 7}}, {"id": 139, "type": "identifier", "text": "ATTR_Timeout", "parent": 137, "children": [], "start_point": {"row": 50, "column": 8}, "end_point": {"row": 50, "column": 20}}, {"id": 140, "type": "preproc_arg", "text": "0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time", "parent": 137, "children": [], "start_point": {"row": 50, "column": 22}, "end_point": {"row": 50, "column": 96}}, {"id": 141, "type": "preproc_def", "text": "#define ATTR_Resume 0x00000004 // R&C USB Resume\n", "parent": 0, "children": [142, 143, 144], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 142, "type": "#define", "text": "#define", "parent": 141, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 143, "type": "identifier", "text": "ATTR_Resume", "parent": 141, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 19}}, {"id": 144, "type": "preproc_arg", "text": "0x00000004 // R&C USB Resume", "parent": 141, "children": [], "start_point": {"row": 51, "column": 22}, "end_point": {"row": 51, "column": 56}}, {"id": 145, "type": "preproc_def", "text": "#define ATTR_Suspend 0x00000002 // R USB Suspend\n", "parent": 0, "children": [146, 147, 148], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 146, "type": "#define", "text": "#define", "parent": 145, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 147, "type": "identifier", "text": "ATTR_Suspend", "parent": 145, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 20}}, {"id": 148, "type": "preproc_arg", "text": "0x00000002 // R USB Suspend", "parent": 145, "children": [], "start_point": {"row": 52, "column": 22}, "end_point": {"row": 52, "column": 55}}, {"id": 149, "type": "preproc_def", "text": "#define ATTR_usbRST 0x00000001 // R&C USB Bus Reset\n", "parent": 0, "children": [150, 151, 152], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 150, "type": "#define", "text": "#define", "parent": 149, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 7}}, {"id": 151, "type": "identifier", "text": "ATTR_usbRST", "parent": 149, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 19}}, {"id": 152, "type": "preproc_arg", "text": "0x00000001 // R&C USB Bus Reset", "parent": 149, "children": [], "start_point": {"row": 53, "column": 22}, "end_point": {"row": 53, "column": 59}}, {"id": 153, "type": "preproc_def", "text": "#define RCVmode 0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP\n", "parent": 0, "children": [154, 155, 156], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 56, "column": 0}}, {"id": 154, "type": "#define", "text": "#define", "parent": 153, "children": [], "start_point": {"row": 55, "column": 0}, "end_point": {"row": 55, "column": 7}}, {"id": 155, "type": "identifier", "text": "RCVmode", "parent": 153, "children": [], "start_point": {"row": 55, "column": 8}, "end_point": {"row": 55, "column": 15}}, {"id": 156, "type": "preproc_arg", "text": "0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP", "parent": 153, "children": [], "start_point": {"row": 55, "column": 20}, "end_point": {"row": 55, "column": 77}}, {"id": 157, "type": "preproc_def", "text": "#define EPT_stall_ctl 0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage\n", "parent": 0, "children": [158, 159, 160], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 58, "column": 0}}, {"id": 158, "type": "#define", "text": "#define", "parent": 157, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 7}}, {"id": 159, "type": "identifier", "text": "EPT_stall_ctl", "parent": 157, "children": [], "start_point": {"row": 57, "column": 8}, "end_point": {"row": 57, "column": 21}}, {"id": 160, "type": "preproc_arg", "text": "0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage", "parent": 157, "children": [], "start_point": {"row": 57, "column": 22}, "end_point": {"row": 57, "column": 96}}, {"id": 161, "type": "preproc_def", "text": "#define EPT_DSQ 0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK\n", "parent": 0, "children": [162, 163, 164], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 162, "type": "#define", "text": "#define", "parent": 161, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 163, "type": "identifier", "text": "EPT_DSQ", "parent": 161, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 15}}, {"id": 164, "type": "preproc_arg", "text": "0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK", "parent": 161, "children": [], "start_point": {"row": 58, "column": 22}, "end_point": {"row": 58, "column": 116}}, {"id": 165, "type": "preproc_def", "text": "#define EPT_state 0x00000060\n", "parent": 0, "children": [166, 167, 168], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 60, "column": 0}}, {"id": 166, "type": "#define", "text": "#define", "parent": 165, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 7}}, {"id": 167, "type": "identifier", "text": "EPT_state", "parent": 165, "children": [], "start_point": {"row": 59, "column": 8}, "end_point": {"row": 59, "column": 17}}, {"id": 168, "type": "preproc_arg", "text": "0x00000060", "parent": 165, "children": [], "start_point": {"row": 59, "column": 22}, "end_point": {"row": 59, "column": 32}}, {"id": 169, "type": "preproc_def", "text": "#define EPT_DISABLE 0\n", "parent": 0, "children": [170, 171, 172], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 170, "type": "#define", "text": "#define", "parent": 169, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 171, "type": "identifier", "text": "EPT_DISABLE", "parent": 169, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 19}}, {"id": 172, "type": "preproc_arg", "text": "0", "parent": 169, "children": [], "start_point": {"row": 60, "column": 22}, "end_point": {"row": 60, "column": 23}}, {"id": 173, "type": "preproc_def", "text": "#define EPT_OUT 0x00000020\n", "parent": 0, "children": [174, 175, 176], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 62, "column": 0}}, {"id": 174, "type": "#define", "text": "#define", "parent": 173, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 7}}, {"id": 175, "type": "identifier", "text": "EPT_OUT", "parent": 173, "children": [], "start_point": {"row": 61, "column": 8}, "end_point": {"row": 61, "column": 15}}, {"id": 176, "type": "preproc_arg", "text": "0x00000020", "parent": 173, "children": [], "start_point": {"row": 61, "column": 22}, "end_point": {"row": 61, "column": 32}}, {"id": 177, "type": "preproc_def", "text": "#define EPT_IN 0x00000040\n", "parent": 0, "children": [178, 179, 180], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 63, "column": 0}}, {"id": 178, "type": "#define", "text": "#define", "parent": 177, "children": [], "start_point": {"row": 62, "column": 0}, "end_point": {"row": 62, "column": 7}}, {"id": 179, "type": "identifier", "text": "EPT_IN", "parent": 177, "children": [], "start_point": {"row": 62, "column": 8}, "end_point": {"row": 62, "column": 14}}, {"id": 180, "type": "preproc_arg", "text": "0x00000040", "parent": 177, "children": [], "start_point": {"row": 62, "column": 22}, "end_point": {"row": 62, "column": 32}}, {"id": 181, "type": "preproc_def", "text": "#define EPT_ISOCH 0x00000010 // R/W Isochronous, No Handshake\n", "parent": 0, "children": [182, 183, 184], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 182, "type": "#define", "text": "#define", "parent": 181, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 183, "type": "identifier", "text": "EPT_ISOCH", "parent": 181, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 17}}, {"id": 184, "type": "preproc_arg", "text": "0x00000010 // R/W Isochronous, No Handshake", "parent": 181, "children": [], "start_point": {"row": 63, "column": 22}, "end_point": {"row": 63, "column": 71}}, {"id": 185, "type": "preproc_def", "text": "#define EPT_ISO 0x00000010\n", "parent": 0, "children": [186, 187, 188], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 65, "column": 0}}, {"id": 186, "type": "#define", "text": "#define", "parent": 185, "children": [], "start_point": {"row": 64, "column": 0}, "end_point": {"row": 64, "column": 7}}, {"id": 187, "type": "identifier", "text": "EPT_ISO", "parent": 185, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 15}}, {"id": 188, "type": "preproc_arg", "text": "0x00000010", "parent": 185, "children": [], "start_point": {"row": 64, "column": 22}, "end_point": {"row": 64, "column": 32}}, {"id": 189, "type": "preproc_def", "text": "#define EPT_EPT 0x0000000F\n", "parent": 0, "children": [190, 191, 192], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 0}}, {"id": 190, "type": "#define", "text": "#define", "parent": 189, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 7}}, {"id": 191, "type": "identifier", "text": "EPT_EPT", "parent": 189, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 15}}, {"id": 192, "type": "preproc_arg", "text": "0x0000000F", "parent": 189, "children": [], "start_point": {"row": 65, "column": 22}, "end_point": {"row": 65, "column": 32}}, {"id": 193, "type": "preproc_def", "text": "#define EPT_stall 0x00000002 // R/W Force Device to Response Stall\n", "parent": 0, "children": [194, 195, 196], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 67, "column": 0}}, {"id": 194, "type": "#define", "text": "#define", "parent": 193, "children": [], "start_point": {"row": 66, "column": 0}, "end_point": {"row": 66, "column": 7}}, {"id": 195, "type": "identifier", "text": "EPT_stall", "parent": 193, "children": [], "start_point": {"row": 66, "column": 8}, "end_point": {"row": 66, "column": 17}}, {"id": 196, "type": "preproc_arg", "text": "0x00000002 // R/W Force Device to Response Stall", "parent": 193, "children": [], "start_point": {"row": 66, "column": 22}, "end_point": {"row": 66, "column": 76}}, {"id": 197, "type": "preproc_def", "text": "#define EPT_CFGP 0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD\n", "parent": 0, "children": [198, 199, 200], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 68, "column": 0}}, {"id": 198, "type": "#define", "text": "#define", "parent": 197, "children": [], "start_point": {"row": 67, "column": 0}, "end_point": {"row": 67, "column": 7}}, {"id": 199, "type": "identifier", "text": "EPT_CFGP", "parent": 197, "children": [], "start_point": {"row": 67, "column": 8}, "end_point": {"row": 67, "column": 16}}, {"id": 200, "type": "preproc_arg", "text": "0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD", "parent": 197, "children": [], "start_point": {"row": 67, "column": 22}, "end_point": {"row": 67, "column": 88}}, {"id": 201, "type": "preproc_def", "text": "#define CBW_SIGNATURE 0x43425355\n", "parent": 0, "children": [202, 203, 204], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 70, "column": 0}}, {"id": 202, "type": "#define", "text": "#define", "parent": 201, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 7}}, {"id": 203, "type": "identifier", "text": "CBW_SIGNATURE", "parent": 201, "children": [], "start_point": {"row": 69, "column": 8}, "end_point": {"row": 69, "column": 21}}, {"id": 204, "type": "preproc_arg", "text": "0x43425355", "parent": 201, "children": [], "start_point": {"row": 69, "column": 22}, "end_point": {"row": 69, "column": 32}}, {"id": 205, "type": "preproc_def", "text": "#define CSW_SIGNATURE 0x53425355\n", "parent": 0, "children": [206, 207, 208], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 71, "column": 0}}, {"id": 206, "type": "#define", "text": "#define", "parent": 205, "children": [], "start_point": {"row": 70, "column": 0}, "end_point": {"row": 70, "column": 7}}, {"id": 207, "type": "identifier", "text": "CSW_SIGNATURE", "parent": 205, "children": [], "start_point": {"row": 70, "column": 8}, "end_point": {"row": 70, "column": 21}}, {"id": 208, "type": "preproc_arg", "text": "0x53425355", "parent": 205, "children": [], "start_point": {"row": 70, "column": 22}, "end_point": {"row": 70, "column": 32}}, {"id": 209, "type": "preproc_function_def", "text": "#define DATA0(a) (a&0x7F)\n", "parent": 0, "children": [210, 211, 212, 214], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 74, "column": 0}}, {"id": 210, "type": "#define", "text": "#define", "parent": 209, "children": [], "start_point": {"row": 73, "column": 0}, "end_point": {"row": 73, "column": 7}}, {"id": 211, "type": "identifier", "text": "DATA0", "parent": 209, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 13}}, {"id": 212, "type": "preproc_params", "text": "(a)", "parent": 209, "children": [213], "start_point": {"row": 73, "column": 13}, "end_point": {"row": 73, "column": 16}}, {"id": 213, "type": "identifier", "text": "a", "parent": 212, "children": [], "start_point": {"row": 73, "column": 14}, "end_point": {"row": 73, "column": 15}}, {"id": 214, "type": "preproc_arg", "text": "(a&0x7F)", "parent": 209, "children": [], "start_point": {"row": 73, "column": 18}, "end_point": {"row": 73, "column": 26}}, {"id": 215, "type": "preproc_function_def", "text": "#define DATA1(a) (a|0x80)\n", "parent": 0, "children": [216, 217, 218, 220], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 75, "column": 0}}, {"id": 216, "type": "#define", "text": "#define", "parent": 215, "children": [], "start_point": {"row": 74, "column": 0}, "end_point": {"row": 74, "column": 7}}, {"id": 217, "type": "identifier", "text": "DATA1", "parent": 215, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 13}}, {"id": 218, "type": "preproc_params", "text": "(a)", "parent": 215, "children": [219], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 16}}, {"id": 219, "type": "identifier", "text": "a", "parent": 218, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 15}}, {"id": 220, "type": "preproc_arg", "text": "(a|0x80)", "parent": 215, "children": [], "start_point": {"row": 74, "column": 18}, "end_point": {"row": 74, "column": 26}}, {"id": 221, "type": "preproc_def", "text": "#define REQ_STANDARD 0x00\n", "parent": 0, "children": [222, 223, 224], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 81, "column": 0}}, {"id": 222, "type": "#define", "text": "#define", "parent": 221, "children": [], "start_point": {"row": 80, "column": 0}, "end_point": {"row": 80, "column": 7}}, {"id": 223, "type": "identifier", "text": "REQ_STANDARD", "parent": 221, "children": [], "start_point": {"row": 80, "column": 8}, "end_point": {"row": 80, "column": 20}}, {"id": 224, "type": "preproc_arg", "text": "0x00", "parent": 221, "children": [], "start_point": {"row": 80, "column": 24}, "end_point": {"row": 80, "column": 28}}, {"id": 225, "type": "preproc_def", "text": "#define REQ_CLASS 0x20\n", "parent": 0, "children": [226, 227, 228], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 82, "column": 0}}, {"id": 226, "type": "#define", "text": "#define", "parent": 225, "children": [], "start_point": {"row": 81, "column": 0}, "end_point": {"row": 81, "column": 7}}, {"id": 227, "type": "identifier", "text": "REQ_CLASS", "parent": 225, "children": [], "start_point": {"row": 81, "column": 8}, "end_point": {"row": 81, "column": 17}}, {"id": 228, "type": "preproc_arg", "text": "0x20", "parent": 225, "children": [], "start_point": {"row": 81, "column": 24}, "end_point": {"row": 81, "column": 28}}, {"id": 229, "type": "preproc_def", "text": "#define REQ_VENDOR 0x40\n", "parent": 0, "children": [230, 231, 232], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 83, "column": 0}}, {"id": 230, "type": "#define", "text": "#define", "parent": 229, "children": [], "start_point": {"row": 82, "column": 0}, "end_point": {"row": 82, "column": 7}}, {"id": 231, "type": "identifier", "text": "REQ_VENDOR", "parent": 229, "children": [], "start_point": {"row": 82, "column": 8}, "end_point": {"row": 82, "column": 18}}, {"id": 232, "type": "preproc_arg", "text": "0x40", "parent": 229, "children": [], "start_point": {"row": 82, "column": 24}, "end_point": {"row": 82, "column": 28}}, {"id": 233, "type": "preproc_def", "text": "#define GET_STATUS 0x00\n", "parent": 0, "children": [234, 235, 236], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 86, "column": 0}}, {"id": 234, "type": "#define", "text": "#define", "parent": 233, "children": [], "start_point": {"row": 85, "column": 0}, "end_point": {"row": 85, "column": 7}}, {"id": 235, "type": "identifier", "text": "GET_STATUS", "parent": 233, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 18}}, {"id": 236, "type": "preproc_arg", "text": "0x00", "parent": 233, "children": [], "start_point": {"row": 85, "column": 24}, "end_point": {"row": 85, "column": 28}}, {"id": 237, "type": "preproc_def", "text": "#define CLEAR_FEATURE 0x01\n", "parent": 0, "children": [238, 239, 240], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 87, "column": 0}}, {"id": 238, "type": "#define", "text": "#define", "parent": 237, "children": [], "start_point": {"row": 86, "column": 0}, "end_point": {"row": 86, "column": 7}}, {"id": 239, "type": "identifier", "text": "CLEAR_FEATURE", "parent": 237, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 21}}, {"id": 240, "type": "preproc_arg", "text": "0x01", "parent": 237, "children": [], "start_point": {"row": 86, "column": 24}, "end_point": {"row": 86, "column": 28}}, {"id": 241, "type": "preproc_def", "text": "#define SET_FEATURE 0x03\n", "parent": 0, "children": [242, 243, 244], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 89, "column": 0}}, {"id": 242, "type": "#define", "text": "#define", "parent": 241, "children": [], "start_point": {"row": 88, "column": 0}, "end_point": {"row": 88, "column": 7}}, {"id": 243, "type": "identifier", "text": "SET_FEATURE", "parent": 241, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 19}}, {"id": 244, "type": "preproc_arg", "text": "0x03", "parent": 241, "children": [], "start_point": {"row": 88, "column": 24}, "end_point": {"row": 88, "column": 28}}, {"id": 245, "type": "preproc_def", "text": "#define SET_ADDRESS 0x05\n", "parent": 0, "children": [246, 247, 248], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 91, "column": 0}}, {"id": 246, "type": "#define", "text": "#define", "parent": 245, "children": [], "start_point": {"row": 90, "column": 0}, "end_point": {"row": 90, "column": 7}}, {"id": 247, "type": "identifier", "text": "SET_ADDRESS", "parent": 245, "children": [], "start_point": {"row": 90, "column": 8}, "end_point": {"row": 90, "column": 19}}, {"id": 248, "type": "preproc_arg", "text": "0x05", "parent": 245, "children": [], "start_point": {"row": 90, "column": 26}, "end_point": {"row": 90, "column": 30}}, {"id": 249, "type": "preproc_def", "text": "#define GET_DESCRIPTOR 0x06\n", "parent": 0, "children": [250, 251, 252], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 92, "column": 0}}, {"id": 250, "type": "#define", "text": "#define", "parent": 249, "children": [], "start_point": {"row": 91, "column": 0}, "end_point": {"row": 91, "column": 7}}, {"id": 251, "type": "identifier", "text": "GET_DESCRIPTOR", "parent": 249, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 22}}, {"id": 252, "type": "preproc_arg", "text": "0x06", "parent": 249, "children": [], "start_point": {"row": 91, "column": 26}, "end_point": {"row": 91, "column": 30}}, {"id": 253, "type": "preproc_def", "text": "#define SET_DESCRIPTOR 0x07\n", "parent": 0, "children": [254, 255, 256], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 93, "column": 0}}, {"id": 254, "type": "#define", "text": "#define", "parent": 253, "children": [], "start_point": {"row": 92, "column": 0}, "end_point": {"row": 92, "column": 7}}, {"id": 255, "type": "identifier", "text": "SET_DESCRIPTOR", "parent": 253, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 22}}, {"id": 256, "type": "preproc_arg", "text": "0x07", "parent": 253, "children": [], "start_point": {"row": 92, "column": 26}, "end_point": {"row": 92, "column": 30}}, {"id": 257, "type": "preproc_def", "text": "#define GET_CONFIGURATION 0x08\n", "parent": 0, "children": [258, 259, 260], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 94, "column": 0}}, {"id": 258, "type": "#define", "text": "#define", "parent": 257, "children": [], "start_point": {"row": 93, "column": 0}, "end_point": {"row": 93, "column": 7}}, {"id": 259, "type": "identifier", "text": "GET_CONFIGURATION", "parent": 257, "children": [], "start_point": {"row": 93, "column": 8}, "end_point": {"row": 93, "column": 25}}, {"id": 260, "type": "preproc_arg", "text": "0x08", "parent": 257, "children": [], "start_point": {"row": 93, "column": 26}, "end_point": {"row": 93, "column": 30}}, {"id": 261, "type": "preproc_def", "text": "#define SET_CONFIGURATION 0x09\n", "parent": 0, "children": [262, 263, 264], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 95, "column": 0}}, {"id": 262, "type": "#define", "text": "#define", "parent": 261, "children": [], "start_point": {"row": 94, "column": 0}, "end_point": {"row": 94, "column": 7}}, {"id": 263, "type": "identifier", "text": "SET_CONFIGURATION", "parent": 261, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 25}}, {"id": 264, "type": "preproc_arg", "text": "0x09", "parent": 261, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 30}}, {"id": 265, "type": "preproc_def", "text": "#define GET_INTERFACE 0x0A\n", "parent": 0, "children": [266, 267, 268], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 96, "column": 0}}, {"id": 266, "type": "#define", "text": "#define", "parent": 265, "children": [], "start_point": {"row": 95, "column": 0}, "end_point": {"row": 95, "column": 7}}, {"id": 267, "type": "identifier", "text": "GET_INTERFACE", "parent": 265, "children": [], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 21}}, {"id": 268, "type": "preproc_arg", "text": "0x0A", "parent": 265, "children": [], "start_point": {"row": 95, "column": 24}, "end_point": {"row": 95, "column": 28}}, {"id": 269, "type": "preproc_def", "text": "#define SET_INTERFACE 0x0B\n", "parent": 0, "children": [270, 271, 272], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 97, "column": 0}}, {"id": 270, "type": "#define", "text": "#define", "parent": 269, "children": [], "start_point": {"row": 96, "column": 0}, "end_point": {"row": 96, "column": 7}}, {"id": 271, "type": "identifier", "text": "SET_INTERFACE", "parent": 269, "children": [], "start_point": {"row": 96, "column": 8}, "end_point": {"row": 96, "column": 21}}, {"id": 272, "type": "preproc_arg", "text": "0x0B", "parent": 269, "children": [], "start_point": {"row": 96, "column": 24}, "end_point": {"row": 96, "column": 28}}, {"id": 273, "type": "preproc_def", "text": "#define SYNC_FRAME 0x0C\n", "parent": 0, "children": [274, 275, 276], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 98, "column": 0}}, {"id": 274, "type": "#define", "text": "#define", "parent": 273, "children": [], "start_point": {"row": 97, "column": 0}, "end_point": {"row": 97, "column": 7}}, {"id": 275, "type": "identifier", "text": "SYNC_FRAME", "parent": 273, "children": [], "start_point": {"row": 97, "column": 8}, "end_point": {"row": 97, "column": 18}}, {"id": 276, "type": "preproc_arg", "text": "0x0C", "parent": 273, "children": [], "start_point": {"row": 97, "column": 24}, "end_point": {"row": 97, "column": 28}}, {"id": 277, "type": "preproc_def", "text": "#define DESC_DEVICE 0x01\n", "parent": 0, "children": [278, 279, 280], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 101, "column": 0}}, {"id": 278, "type": "#define", "text": "#define", "parent": 277, "children": [], "start_point": {"row": 100, "column": 0}, "end_point": {"row": 100, "column": 7}}, {"id": 279, "type": "identifier", "text": "DESC_DEVICE", "parent": 277, "children": [], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 19}}, {"id": 280, "type": "preproc_arg", "text": "0x01", "parent": 277, "children": [], "start_point": {"row": 100, "column": 24}, "end_point": {"row": 100, "column": 28}}, {"id": 281, "type": "preproc_def", "text": "#define DESC_CONFIG 0x02\n", "parent": 0, "children": [282, 283, 284], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 102, "column": 0}}, {"id": 282, "type": "#define", "text": "#define", "parent": 281, "children": [], "start_point": {"row": 101, "column": 0}, "end_point": {"row": 101, "column": 7}}, {"id": 283, "type": "identifier", "text": "DESC_CONFIG", "parent": 281, "children": [], "start_point": {"row": 101, "column": 8}, "end_point": {"row": 101, "column": 19}}, {"id": 284, "type": "preproc_arg", "text": "0x02", "parent": 281, "children": [], "start_point": {"row": 101, "column": 24}, "end_point": {"row": 101, "column": 28}}, {"id": 285, "type": "preproc_def", "text": "#define DESC_STRING 0x03\n", "parent": 0, "children": [286, 287, 288], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 103, "column": 0}}, {"id": 286, "type": "#define", "text": "#define", "parent": 285, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 287, "type": "identifier", "text": "DESC_STRING", "parent": 285, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 19}}, {"id": 288, "type": "preproc_arg", "text": "0x03", "parent": 285, "children": [], "start_point": {"row": 102, "column": 24}, "end_point": {"row": 102, "column": 28}}, {"id": 289, "type": "preproc_def", "text": "#define DESC_INTERFACE 0x04\n", "parent": 0, "children": [290, 291, 292], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 104, "column": 0}}, {"id": 290, "type": "#define", "text": "#define", "parent": 289, "children": [], "start_point": {"row": 103, "column": 0}, "end_point": {"row": 103, "column": 7}}, {"id": 291, "type": "identifier", "text": "DESC_INTERFACE", "parent": 289, "children": [], "start_point": {"row": 103, "column": 8}, "end_point": {"row": 103, "column": 22}}, {"id": 292, "type": "preproc_arg", "text": "0x04", "parent": 289, "children": [], "start_point": {"row": 103, "column": 24}, "end_point": {"row": 103, "column": 28}}, {"id": 293, "type": "preproc_def", "text": "#define DESC_ENDPOINT 0x05\n", "parent": 0, "children": [294, 295, 296], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 105, "column": 0}}, {"id": 294, "type": "#define", "text": "#define", "parent": 293, "children": [], "start_point": {"row": 104, "column": 0}, "end_point": {"row": 104, "column": 7}}, {"id": 295, "type": "identifier", "text": "DESC_ENDPOINT", "parent": 293, "children": [], "start_point": {"row": 104, "column": 8}, "end_point": {"row": 104, "column": 21}}, {"id": 296, "type": "preproc_arg", "text": "0x05", "parent": 293, "children": [], "start_point": {"row": 104, "column": 24}, "end_point": {"row": 104, "column": 28}}, {"id": 297, "type": "preproc_def", "text": "#define DESC_QUALIFIER 0x06\n", "parent": 0, "children": [298, 299, 300], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 106, "column": 0}}, {"id": 298, "type": "#define", "text": "#define", "parent": 297, "children": [], "start_point": {"row": 105, "column": 0}, "end_point": {"row": 105, "column": 7}}, {"id": 299, "type": "identifier", "text": "DESC_QUALIFIER", "parent": 297, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 22}}, {"id": 300, "type": "preproc_arg", "text": "0x06", "parent": 297, "children": [], "start_point": {"row": 105, "column": 24}, "end_point": {"row": 105, "column": 28}}, {"id": 301, "type": "preproc_def", "text": "#define DESC_OTHERSPEED 0x07\n", "parent": 0, "children": [302, 303, 304], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 107, "column": 0}}, {"id": 302, "type": "#define", "text": "#define", "parent": 301, "children": [], "start_point": {"row": 106, "column": 0}, "end_point": {"row": 106, "column": 7}}, {"id": 303, "type": "identifier", "text": "DESC_OTHERSPEED", "parent": 301, "children": [], "start_point": {"row": 106, "column": 8}, "end_point": {"row": 106, "column": 23}}, {"id": 304, "type": "preproc_arg", "text": "0x07", "parent": 301, "children": [], "start_point": {"row": 106, "column": 24}, "end_point": {"row": 106, "column": 28}}, {"id": 305, "type": "preproc_def", "text": "#define LEN_DEVICE 18\n", "parent": 0, "children": [306, 307, 308], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 110, "column": 0}}, {"id": 306, "type": "#define", "text": "#define", "parent": 305, "children": [], "start_point": {"row": 109, "column": 0}, "end_point": {"row": 109, "column": 7}}, {"id": 307, "type": "identifier", "text": "LEN_DEVICE", "parent": 305, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 18}}, {"id": 308, "type": "preproc_arg", "text": "18", "parent": 305, "children": [], "start_point": {"row": 109, "column": 24}, "end_point": {"row": 109, "column": 26}}, {"id": 309, "type": "preproc_def", "text": "#define LEN_CONFIG 9\n", "parent": 0, "children": [310, 311, 312], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 111, "column": 0}}, {"id": 310, "type": "#define", "text": "#define", "parent": 309, "children": [], "start_point": {"row": 110, "column": 0}, "end_point": {"row": 110, "column": 7}}, {"id": 311, "type": "identifier", "text": "LEN_CONFIG", "parent": 309, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 18}}, {"id": 312, "type": "preproc_arg", "text": "9", "parent": 309, "children": [], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 25}}, {"id": 313, "type": "preproc_def", "text": "#define LEN_INTERFACE 9\n", "parent": 0, "children": [314, 315, 316], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 112, "column": 0}}, {"id": 314, "type": "#define", "text": "#define", "parent": 313, "children": [], "start_point": {"row": 111, "column": 0}, "end_point": {"row": 111, "column": 7}}, {"id": 315, "type": "identifier", "text": "LEN_INTERFACE", "parent": 313, "children": [], "start_point": {"row": 111, "column": 8}, "end_point": {"row": 111, "column": 21}}, {"id": 316, "type": "preproc_arg", "text": "9", "parent": 313, "children": [], "start_point": {"row": 111, "column": 24}, "end_point": {"row": 111, "column": 25}}, {"id": 317, "type": "preproc_def", "text": "#define LEN_ENDPOINT 7\n", "parent": 0, "children": [318, 319, 320], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 113, "column": 0}}, {"id": 318, "type": "#define", "text": "#define", "parent": 317, "children": [], "start_point": {"row": 112, "column": 0}, "end_point": {"row": 112, "column": 7}}, {"id": 319, "type": "identifier", "text": "LEN_ENDPOINT", "parent": 317, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 20}}, {"id": 320, "type": "preproc_arg", "text": "7", "parent": 317, "children": [], "start_point": {"row": 112, "column": 24}, "end_point": {"row": 112, "column": 25}}, {"id": 321, "type": "preproc_def", "text": "#define EP_ISO 0x01\n", "parent": 0, "children": [322, 323, 324], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 116, "column": 0}}, {"id": 322, "type": "#define", "text": "#define", "parent": 321, "children": [], "start_point": {"row": 115, "column": 0}, "end_point": {"row": 115, "column": 7}}, {"id": 323, "type": "identifier", "text": "EP_ISO", "parent": 321, "children": [], "start_point": {"row": 115, "column": 8}, "end_point": {"row": 115, "column": 14}}, {"id": 324, "type": "preproc_arg", "text": "0x01", "parent": 321, "children": [], "start_point": {"row": 115, "column": 22}, "end_point": {"row": 115, "column": 26}}, {"id": 325, "type": "preproc_def", "text": "#define EP_BULK 0x02\n", "parent": 0, "children": [326, 327, 328], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 117, "column": 0}}, {"id": 326, "type": "#define", "text": "#define", "parent": 325, "children": [], "start_point": {"row": 116, "column": 0}, "end_point": {"row": 116, "column": 7}}, {"id": 327, "type": "identifier", "text": "EP_BULK", "parent": 325, "children": [], "start_point": {"row": 116, "column": 8}, "end_point": {"row": 116, "column": 15}}, {"id": 328, "type": "preproc_arg", "text": "0x02", "parent": 325, "children": [], "start_point": {"row": 116, "column": 22}, "end_point": {"row": 116, "column": 26}}, {"id": 329, "type": "preproc_def", "text": "#define EP_INT 0x03\n", "parent": 0, "children": [330, 331, 332], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 118, "column": 0}}, {"id": 330, "type": "#define", "text": "#define", "parent": 329, "children": [], "start_point": {"row": 117, "column": 0}, "end_point": {"row": 117, "column": 7}}, {"id": 331, "type": "identifier", "text": "EP_INT", "parent": 329, "children": [], "start_point": {"row": 117, "column": 8}, "end_point": {"row": 117, "column": 14}}, {"id": 332, "type": "preproc_arg", "text": "0x03", "parent": 329, "children": [], "start_point": {"row": 117, "column": 22}, "end_point": {"row": 117, "column": 26}}, {"id": 333, "type": "preproc_def", "text": "#define FEATURE_DEVICE_REMOTE_WAKEUP 0x01\n", "parent": 0, "children": [334, 335, 336], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 121, "column": 0}}, {"id": 334, "type": "#define", "text": "#define", "parent": 333, "children": [], "start_point": {"row": 120, "column": 0}, "end_point": {"row": 120, "column": 7}}, {"id": 335, "type": "identifier", "text": "FEATURE_DEVICE_REMOTE_WAKEUP", "parent": 333, "children": [], "start_point": {"row": 120, "column": 8}, "end_point": {"row": 120, "column": 36}}, {"id": 336, "type": "preproc_arg", "text": "0x01", "parent": 333, "children": [], "start_point": {"row": 120, "column": 38}, "end_point": {"row": 120, "column": 42}}, {"id": 337, "type": "preproc_def", "text": "#define FEATURE_ENDPOINT_HALT 0x00\n", "parent": 0, "children": [338, 339, 340], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 122, "column": 0}}, {"id": 338, "type": "#define", "text": "#define", "parent": 337, "children": [], "start_point": {"row": 121, "column": 0}, "end_point": {"row": 121, "column": 7}}, {"id": 339, "type": "identifier", "text": "FEATURE_ENDPOINT_HALT", "parent": 337, "children": [], "start_point": {"row": 121, "column": 8}, "end_point": {"row": 121, "column": 29}}, {"id": 340, "type": "preproc_arg", "text": "0x00", "parent": 337, "children": [], "start_point": {"row": 121, "column": 34}, "end_point": {"row": 121, "column": 38}}, {"id": 341, "type": "preproc_def", "text": "#define USB_STATE_DETACHED 0x00\n", "parent": 0, "children": [342, 343, 344], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 128, "column": 0}}, {"id": 342, "type": "#define", "text": "#define", "parent": 341, "children": [], "start_point": {"row": 127, "column": 0}, "end_point": {"row": 127, "column": 7}}, {"id": 343, "type": "identifier", "text": "USB_STATE_DETACHED", "parent": 341, "children": [], "start_point": {"row": 127, "column": 8}, "end_point": {"row": 127, "column": 26}}, {"id": 344, "type": "preproc_arg", "text": "0x00", "parent": 341, "children": [], "start_point": {"row": 127, "column": 32}, "end_point": {"row": 127, "column": 36}}, {"id": 345, "type": "preproc_def", "text": "#define USB_STATE_ATTACHED 0x01\n", "parent": 0, "children": [346, 347, 348], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 129, "column": 0}}, {"id": 346, "type": "#define", "text": "#define", "parent": 345, "children": [], "start_point": {"row": 128, "column": 0}, "end_point": {"row": 128, "column": 7}}, {"id": 347, "type": "identifier", "text": "USB_STATE_ATTACHED", "parent": 345, "children": [], "start_point": {"row": 128, "column": 8}, "end_point": {"row": 128, "column": 26}}, {"id": 348, "type": "preproc_arg", "text": "0x01", "parent": 345, "children": [], "start_point": {"row": 128, "column": 32}, "end_point": {"row": 128, "column": 36}}, {"id": 349, "type": "preproc_def", "text": "#define USB_STATE_DEFAULT 0x11\n", "parent": 0, "children": [350, 351, 352], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 130, "column": 0}}, {"id": 350, "type": "#define", "text": "#define", "parent": 349, "children": [], "start_point": {"row": 129, "column": 0}, "end_point": {"row": 129, "column": 7}}, {"id": 351, "type": "identifier", "text": "USB_STATE_DEFAULT", "parent": 349, "children": [], "start_point": {"row": 129, "column": 8}, "end_point": {"row": 129, "column": 25}}, {"id": 352, "type": "preproc_arg", "text": "0x11", "parent": 349, "children": [], "start_point": {"row": 129, "column": 30}, "end_point": {"row": 129, "column": 34}}, {"id": 353, "type": "preproc_def", "text": "#define USB_STATE_ADDRESS 0x31\n", "parent": 0, "children": [354, 355, 356], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 131, "column": 0}}, {"id": 354, "type": "#define", "text": "#define", "parent": 353, "children": [], "start_point": {"row": 130, "column": 0}, "end_point": {"row": 130, "column": 7}}, {"id": 355, "type": "identifier", "text": "USB_STATE_ADDRESS", "parent": 353, "children": [], "start_point": {"row": 130, "column": 8}, "end_point": {"row": 130, "column": 25}}, {"id": 356, "type": "preproc_arg", "text": "0x31", "parent": 353, "children": [], "start_point": {"row": 130, "column": 30}, "end_point": {"row": 130, "column": 34}}, {"id": 357, "type": "preproc_def", "text": "#define USB_STATE_CONFIGURED 0x71\n", "parent": 0, "children": [358, 359, 360], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 132, "column": 0}}, {"id": 358, "type": "#define", "text": "#define", "parent": 357, "children": [], "start_point": {"row": 131, "column": 0}, "end_point": {"row": 131, "column": 7}}, {"id": 359, "type": "identifier", "text": "USB_STATE_CONFIGURED", "parent": 357, "children": [], "start_point": {"row": 131, "column": 8}, "end_point": {"row": 131, "column": 28}}, {"id": 360, "type": "preproc_arg", "text": "0x71", "parent": 357, "children": [], "start_point": {"row": 131, "column": 32}, "end_point": {"row": 131, "column": 36}}, {"id": 361, "type": "preproc_def", "text": "#define USB_STATE_FLAG_DEFAULT 0x10\n", "parent": 0, "children": [362, 363, 364], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 134, "column": 0}}, {"id": 362, "type": "#define", "text": "#define", "parent": 361, "children": [], "start_point": {"row": 133, "column": 0}, "end_point": {"row": 133, "column": 7}}, {"id": 363, "type": "identifier", "text": "USB_STATE_FLAG_DEFAULT", "parent": 361, "children": [], "start_point": {"row": 133, "column": 8}, "end_point": {"row": 133, "column": 30}}, {"id": 364, "type": "preproc_arg", "text": "0x10", "parent": 361, "children": [], "start_point": {"row": 133, "column": 34}, "end_point": {"row": 133, "column": 38}}, {"id": 365, "type": "preproc_def", "text": "#define USB_STATE_FLAG_ADDRESS 0x20\n", "parent": 0, "children": [366, 367, 368], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 135, "column": 0}}, {"id": 366, "type": "#define", "text": "#define", "parent": 365, "children": [], "start_point": {"row": 134, "column": 0}, "end_point": {"row": 134, "column": 7}}, {"id": 367, "type": "identifier", "text": "USB_STATE_FLAG_ADDRESS", "parent": 365, "children": [], "start_point": {"row": 134, "column": 8}, "end_point": {"row": 134, "column": 30}}, {"id": 368, "type": "preproc_arg", "text": "0x20", "parent": 365, "children": [], "start_point": {"row": 134, "column": 34}, "end_point": {"row": 134, "column": 38}}, {"id": 369, "type": "preproc_def", "text": "#define USB_STATE_FLAG_CONFIGURED 0x40\n", "parent": 0, "children": [370, 371, 372], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 136, "column": 0}}, {"id": 370, "type": "#define", "text": "#define", "parent": 369, "children": [], "start_point": {"row": 135, "column": 0}, "end_point": {"row": 135, "column": 7}}, {"id": 371, "type": "identifier", "text": "USB_STATE_FLAG_CONFIGURED", "parent": 369, "children": [], "start_point": {"row": 135, "column": 8}, "end_point": {"row": 135, "column": 33}}, {"id": 372, "type": "preproc_arg", "text": "0x40", "parent": 369, "children": [], "start_point": {"row": 135, "column": 34}, "end_point": {"row": 135, "column": 38}}, {"id": 373, "type": "preproc_def", "text": "#define USB_STATE_FLAG_SUSPENDED 0x80\n", "parent": 0, "children": [374, 375, 376], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 137, "column": 0}}, {"id": 374, "type": "#define", "text": "#define", "parent": 373, "children": [], "start_point": {"row": 136, "column": 0}, "end_point": {"row": 136, "column": 7}}, {"id": 375, "type": "identifier", "text": "USB_STATE_FLAG_SUSPENDED", "parent": 373, "children": [], "start_point": {"row": 136, "column": 8}, "end_point": {"row": 136, "column": 32}}, {"id": 376, "type": "preproc_arg", "text": "0x80", "parent": 373, "children": [], "start_point": {"row": 136, "column": 34}, "end_point": {"row": 136, "column": 38}}, {"id": 377, "type": "preproc_def", "text": "#define FLAG_OUT_ACK 0x01\n", "parent": 0, "children": [378, 379, 380], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 140, "column": 0}}, {"id": 378, "type": "#define", "text": "#define", "parent": 377, "children": [], "start_point": {"row": 139, "column": 0}, "end_point": {"row": 139, "column": 7}}, {"id": 379, "type": "identifier", "text": "FLAG_OUT_ACK", "parent": 377, "children": [], "start_point": {"row": 139, "column": 8}, "end_point": {"row": 139, "column": 20}}, {"id": 380, "type": "preproc_arg", "text": "0x01", "parent": 377, "children": [], "start_point": {"row": 139, "column": 24}, "end_point": {"row": 139, "column": 28}}, {"id": 381, "type": "preproc_def", "text": "#define FLAG_SET_ADDRESS 0x02\n", "parent": 0, "children": [382, 383, 384], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 141, "column": 0}}, {"id": 382, "type": "#define", "text": "#define", "parent": 381, "children": [], "start_point": {"row": 140, "column": 0}, "end_point": {"row": 140, "column": 7}}, {"id": 383, "type": "identifier", "text": "FLAG_SET_ADDRESS", "parent": 381, "children": [], "start_point": {"row": 140, "column": 8}, "end_point": {"row": 140, "column": 24}}, {"id": 384, "type": "preproc_arg", "text": "0x02", "parent": 381, "children": [], "start_point": {"row": 140, "column": 26}, "end_point": {"row": 140, "column": 30}}, {"id": 385, "type": "preproc_def", "text": "#define FLAG_SET_CONFIG 0x04\n", "parent": 0, "children": [386, 387, 388], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 142, "column": 0}}, {"id": 386, "type": "#define", "text": "#define", "parent": 385, "children": [], "start_point": {"row": 141, "column": 0}, "end_point": {"row": 141, "column": 7}}, {"id": 387, "type": "identifier", "text": "FLAG_SET_CONFIG", "parent": 385, "children": [], "start_point": {"row": 141, "column": 8}, "end_point": {"row": 141, "column": 23}}, {"id": 388, "type": "preproc_arg", "text": "0x04", "parent": 385, "children": [], "start_point": {"row": 141, "column": 26}, "end_point": {"row": 141, "column": 30}}, {"id": 389, "type": "preproc_def", "text": "#define FLAG_SET_INTERFACE 0x08\n", "parent": 0, "children": [390, 391, 392], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 143, "column": 0}}, {"id": 390, "type": "#define", "text": "#define", "parent": 389, "children": [], "start_point": {"row": 142, "column": 0}, "end_point": {"row": 142, "column": 7}}, {"id": 391, "type": "identifier", "text": "FLAG_SET_INTERFACE", "parent": 389, "children": [], "start_point": {"row": 142, "column": 8}, "end_point": {"row": 142, "column": 26}}, {"id": 392, "type": "preproc_arg", "text": "0x08", "parent": 389, "children": [], "start_point": {"row": 142, "column": 28}, "end_point": {"row": 142, "column": 32}}, {"id": 393, "type": "preproc_def", "text": "#define FLAG_GET_MAX_LUN 0x10\n", "parent": 0, "children": [394, 395, 396], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 144, "column": 0}}, {"id": 394, "type": "#define", "text": "#define", "parent": 393, "children": [], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 7}}, {"id": 395, "type": "identifier", "text": "FLAG_GET_MAX_LUN", "parent": 393, "children": [], "start_point": {"row": 143, "column": 8}, "end_point": {"row": 143, "column": 24}}, {"id": 396, "type": "preproc_arg", "text": "0x10", "parent": 393, "children": [], "start_point": {"row": 143, "column": 26}, "end_point": {"row": 143, "column": 30}}, {"id": 397, "type": "preproc_def", "text": "#define MAX_PACKET_SIZE0 64\n", "parent": 0, "children": [398, 399, 400], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 147, "column": 0}}, {"id": 398, "type": "#define", "text": "#define", "parent": 397, "children": [], "start_point": {"row": 146, "column": 0}, "end_point": {"row": 146, "column": 7}}, {"id": 399, "type": "identifier", "text": "MAX_PACKET_SIZE0", "parent": 397, "children": [], "start_point": {"row": 146, "column": 8}, "end_point": {"row": 146, "column": 24}}, {"id": 400, "type": "preproc_arg", "text": "64", "parent": 397, "children": [], "start_point": {"row": 146, "column": 26}, "end_point": {"row": 146, "column": 28}}, {"id": 401, "type": "preproc_def", "text": "#define MAX_PACKET_SIZE 64\n", "parent": 0, "children": [402, 403, 404], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 148, "column": 0}}, {"id": 402, "type": "#define", "text": "#define", "parent": 401, "children": [], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 147, "column": 7}}, {"id": 403, "type": "identifier", "text": "MAX_PACKET_SIZE", "parent": 401, "children": [], "start_point": {"row": 147, "column": 8}, "end_point": {"row": 147, "column": 23}}, {"id": 404, "type": "preproc_arg", "text": "64", "parent": 401, "children": [], "start_point": {"row": 147, "column": 26}, "end_point": {"row": 147, "column": 28}}, {"id": 405, "type": "preproc_def", "text": "#define BUF_SETUP 0xF8\n", "parent": 0, "children": [406, 407, 408], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 151, "column": 0}}, {"id": 406, "type": "#define", "text": "#define", "parent": 405, "children": [], "start_point": {"row": 150, "column": 0}, "end_point": {"row": 150, "column": 7}}, {"id": 407, "type": "identifier", "text": "BUF_SETUP", "parent": 405, "children": [], "start_point": {"row": 150, "column": 8}, "end_point": {"row": 150, "column": 17}}, {"id": 408, "type": "preproc_arg", "text": "0xF8", "parent": 405, "children": [], "start_point": {"row": 150, "column": 20}, "end_point": {"row": 150, "column": 24}}, {"id": 409, "type": "preproc_def", "text": "#define BUF_CTRL 0x00\n", "parent": 0, "children": [410, 411, 412], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 152, "column": 0}}, {"id": 410, "type": "#define", "text": "#define", "parent": 409, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 7}}, {"id": 411, "type": "identifier", "text": "BUF_CTRL", "parent": 409, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 16}}, {"id": 412, "type": "preproc_arg", "text": "0x00", "parent": 409, "children": [], "start_point": {"row": 151, "column": 20}, "end_point": {"row": 151, "column": 24}}, {"id": 413, "type": "preproc_def", "text": "#define BUF_BULK0 (BUF_CTRL+MAX_PACKET_SIZE0)\n", "parent": 0, "children": [414, 415, 416], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 153, "column": 0}}, {"id": 414, "type": "#define", "text": "#define", "parent": 413, "children": [], "start_point": {"row": 152, "column": 0}, "end_point": {"row": 152, "column": 7}}, {"id": 415, "type": "identifier", "text": "BUF_BULK0", "parent": 413, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 17}}, {"id": 416, "type": "preproc_arg", "text": "(BUF_CTRL+MAX_PACKET_SIZE0)", "parent": 413, "children": [], "start_point": {"row": 152, "column": 20}, "end_point": {"row": 152, "column": 47}}, {"id": 417, "type": "preproc_def", "text": "#define BUF_BULK1 (BUF_BULK0+MAX_PACKET_SIZE)\n", "parent": 0, "children": [418, 419, 420], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 154, "column": 0}}, {"id": 418, "type": "#define", "text": "#define", "parent": 417, "children": [], "start_point": {"row": 153, "column": 0}, "end_point": {"row": 153, "column": 7}}, {"id": 419, "type": "identifier", "text": "BUF_BULK1", "parent": 417, "children": [], "start_point": {"row": 153, "column": 8}, "end_point": {"row": 153, "column": 17}}, {"id": 420, "type": "preproc_arg", "text": "(BUF_BULK0+MAX_PACKET_SIZE)", "parent": 417, "children": [], "start_point": {"row": 153, "column": 20}, "end_point": {"row": 153, "column": 47}}, {"id": 421, "type": "preproc_def", "text": "#define CFG0_SETTING (CFG_CSTALL | CFG_EPT_IN | 0) /* EP address 0, control IN */\n", "parent": 0, "children": [422, 423, 424], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 157, "column": 0}}, {"id": 422, "type": "#define", "text": "#define", "parent": 421, "children": [], "start_point": {"row": 156, "column": 0}, "end_point": {"row": 156, "column": 7}}, {"id": 423, "type": "identifier", "text": "CFG0_SETTING", "parent": 421, "children": [], "start_point": {"row": 156, "column": 8}, "end_point": {"row": 156, "column": 20}}, {"id": 424, "type": "preproc_arg", "text": "(CFG_CSTALL | CFG_EPT_IN | 0) ", "parent": 421, "children": [], "start_point": {"row": 156, "column": 22}, "end_point": {"row": 156, "column": 53}}, {"id": 425, "type": "preproc_def", "text": "#define CFG1_SETTING (CFG_CSTALL | CFG_EPT_OUT | 0) /* EP address 0, control OUT */\n", "parent": 0, "children": [426, 427, 428], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 158, "column": 0}}, {"id": 426, "type": "#define", "text": "#define", "parent": 425, "children": [], "start_point": {"row": 157, "column": 0}, "end_point": {"row": 157, "column": 7}}, {"id": 427, "type": "identifier", "text": "CFG1_SETTING", "parent": 425, "children": [], "start_point": {"row": 157, "column": 8}, "end_point": {"row": 157, "column": 20}}, {"id": 428, "type": "preproc_arg", "text": "(CFG_CSTALL | CFG_EPT_OUT | 0) ", "parent": 425, "children": [], "start_point": {"row": 157, "column": 22}, "end_point": {"row": 157, "column": 53}}, {"id": 429, "type": "preproc_def", "text": "#define CFG2_SETTING (CFG_EPT_IN | 2) /* EP address 2 */\n", "parent": 0, "children": [430, 431, 432], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 159, "column": 0}}, {"id": 430, "type": "#define", "text": "#define", "parent": 429, "children": [], "start_point": {"row": 158, "column": 0}, "end_point": {"row": 158, "column": 7}}, {"id": 431, "type": "identifier", "text": "CFG2_SETTING", "parent": 429, "children": [], "start_point": {"row": 158, "column": 8}, "end_point": {"row": 158, "column": 20}}, {"id": 432, "type": "preproc_arg", "text": "(CFG_EPT_IN | 2) ", "parent": 429, "children": [], "start_point": {"row": 158, "column": 22}, "end_point": {"row": 158, "column": 57}}, {"id": 433, "type": "preproc_def", "text": "#define CFG3_SETTING (CFG_EPT_OUT | 3) /* EP address 3 */\n", "parent": 0, "children": [434, 435, 436], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 160, "column": 0}}, {"id": 434, "type": "#define", "text": "#define", "parent": 433, "children": [], "start_point": {"row": 159, "column": 0}, "end_point": {"row": 159, "column": 7}}, {"id": 435, "type": "identifier", "text": "CFG3_SETTING", "parent": 433, "children": [], "start_point": {"row": 159, "column": 8}, "end_point": {"row": 159, "column": 20}}, {"id": 436, "type": "preproc_arg", "text": "(CFG_EPT_OUT | 3) ", "parent": 433, "children": [], "start_point": {"row": 159, "column": 22}, "end_point": {"row": 159, "column": 57}}, {"id": 437, "type": "preproc_def", "text": "#define BUF0_SETTING BUF_CTRL\n", "parent": 0, "children": [438, 439, 440], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 163, "column": 0}}, {"id": 438, "type": "#define", "text": "#define", "parent": 437, "children": [], "start_point": {"row": 162, "column": 0}, "end_point": {"row": 162, "column": 7}}, {"id": 439, "type": "identifier", "text": "BUF0_SETTING", "parent": 437, "children": [], "start_point": {"row": 162, "column": 8}, "end_point": {"row": 162, "column": 20}}, {"id": 440, "type": "preproc_arg", "text": "BUF_CTRL", "parent": 437, "children": [], "start_point": {"row": 162, "column": 22}, "end_point": {"row": 162, "column": 30}}, {"id": 441, "type": "preproc_def", "text": "#define BUF1_SETTING BUF_CTRL\n", "parent": 0, "children": [442, 443, 444], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 164, "column": 0}}, {"id": 442, "type": "#define", "text": "#define", "parent": 441, "children": [], "start_point": {"row": 163, "column": 0}, "end_point": {"row": 163, "column": 7}}, {"id": 443, "type": "identifier", "text": "BUF1_SETTING", "parent": 441, "children": [], "start_point": {"row": 163, "column": 8}, "end_point": {"row": 163, "column": 20}}, {"id": 444, "type": "preproc_arg", "text": "BUF_CTRL", "parent": 441, "children": [], "start_point": {"row": 163, "column": 22}, "end_point": {"row": 163, "column": 30}}, {"id": 445, "type": "preproc_def", "text": "#define BUF2_SETTING BUF_BULK1\n", "parent": 0, "children": [446, 447, 448], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 165, "column": 0}}, {"id": 446, "type": "#define", "text": "#define", "parent": 445, "children": [], "start_point": {"row": 164, "column": 0}, "end_point": {"row": 164, "column": 7}}, {"id": 447, "type": "identifier", "text": "BUF2_SETTING", "parent": 445, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 20}}, {"id": 448, "type": "preproc_arg", "text": "BUF_BULK1", "parent": 445, "children": [], "start_point": {"row": 164, "column": 22}, "end_point": {"row": 164, "column": 31}}, {"id": 449, "type": "preproc_def", "text": "#define BUF3_SETTING BUF_BULK0\n", "parent": 0, "children": [450, 451, 452], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 166, "column": 0}}, {"id": 450, "type": "#define", "text": "#define", "parent": 449, "children": [], "start_point": {"row": 165, "column": 0}, "end_point": {"row": 165, "column": 7}}, {"id": 451, "type": "identifier", "text": "BUF3_SETTING", "parent": 449, "children": [], "start_point": {"row": 165, "column": 8}, "end_point": {"row": 165, "column": 20}}, {"id": 452, "type": "preproc_arg", "text": "BUF_BULK0", "parent": 449, "children": [], "start_point": {"row": 165, "column": 22}, "end_point": {"row": 165, "column": 31}}, {"id": 453, "type": "preproc_def", "text": "#define g_au8UsbSetup ((uint8_t *)(USBD_BASE+0x100+BUF_SETUP))\n", "parent": 0, "children": [454, 455, 456], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 168, "column": 0}}, {"id": 454, "type": "#define", "text": "#define", "parent": 453, "children": [], "start_point": {"row": 167, "column": 0}, "end_point": {"row": 167, "column": 7}}, {"id": 455, "type": "identifier", "text": "g_au8UsbSetup", "parent": 453, "children": [], "start_point": {"row": 167, "column": 8}, "end_point": {"row": 167, "column": 21}}, {"id": 456, "type": "preproc_arg", "text": "((uint8_t *)(USBD_BASE+0x100+BUF_SETUP))", "parent": 453, "children": [], "start_point": {"row": 167, "column": 22}, "end_point": {"row": 167, "column": 62}}, {"id": 457, "type": "preproc_def", "text": "#define g_au8UsbCtrl ((uint8_t *)(USBD_BASE+0x100+BUF_CTRL))\n", "parent": 0, "children": [458, 459, 460], "start_point": {"row": 168, "column": 0}, "end_point": {"row": 169, "column": 0}}, {"id": 458, "type": "#define", "text": "#define", "parent": 457, "children": [], "start_point": {"row": 168, "column": 0}, "end_point": {"row": 168, "column": 7}}, {"id": 459, "type": "identifier", "text": "g_au8UsbCtrl", "parent": 457, "children": [], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 20}}, {"id": 460, "type": "preproc_arg", "text": "((uint8_t *)(USBD_BASE+0x100+BUF_CTRL))", "parent": 457, "children": [], "start_point": {"row": 168, "column": 22}, "end_point": {"row": 168, "column": 61}}, {"id": 461, "type": "preproc_def", "text": "#define g_au8UsbBulk1 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK1))\n", "parent": 0, "children": [462, 463, 464], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 170, "column": 0}}, {"id": 462, "type": "#define", "text": "#define", "parent": 461, "children": [], "start_point": {"row": 169, "column": 0}, "end_point": {"row": 169, "column": 7}}, {"id": 463, "type": "identifier", "text": "g_au8UsbBulk1", "parent": 461, "children": [], "start_point": {"row": 169, "column": 8}, "end_point": {"row": 169, "column": 21}}, {"id": 464, "type": "preproc_arg", "text": "((uint8_t *)(USBD_BASE+0x100+BUF_BULK1))", "parent": 461, "children": [], "start_point": {"row": 169, "column": 22}, "end_point": {"row": 169, "column": 62}}, {"id": 465, "type": "preproc_def", "text": "#define g_au8UsbBulk0 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK0))\n", "parent": 0, "children": [466, 467, 468], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 171, "column": 0}}, {"id": 466, "type": "#define", "text": "#define", "parent": 465, "children": [], "start_point": {"row": 170, "column": 0}, "end_point": {"row": 170, "column": 7}}, {"id": 467, "type": "identifier", "text": "g_au8UsbBulk0", "parent": 465, "children": [], "start_point": {"row": 170, "column": 8}, "end_point": {"row": 170, "column": 21}}, {"id": 468, "type": "preproc_arg", "text": "((uint8_t *)(USBD_BASE+0x100+BUF_BULK0))", "parent": 465, "children": [], "start_point": {"row": 170, "column": 22}, "end_point": {"row": 170, "column": 62}}, {"id": 469, "type": "preproc_def", "text": "#define BULK_ONLY_MASS_STORAGE_RESET 0xFF\n", "parent": 0, "children": [470, 471, 472], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 174, "column": 0}}, {"id": 470, "type": "#define", "text": "#define", "parent": 469, "children": [], "start_point": {"row": 173, "column": 0}, "end_point": {"row": 173, "column": 7}}, {"id": 471, "type": "identifier", "text": "BULK_ONLY_MASS_STORAGE_RESET", "parent": 469, "children": [], "start_point": {"row": 173, "column": 8}, "end_point": {"row": 173, "column": 36}}, {"id": 472, "type": "preproc_arg", "text": "0xFF", "parent": 469, "children": [], "start_point": {"row": 173, "column": 38}, "end_point": {"row": 173, "column": 42}}, {"id": 473, "type": "preproc_def", "text": "#define GET_MAX_LUN 0xFE\n", "parent": 0, "children": [474, 475, 476], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 175, "column": 0}}, {"id": 474, "type": "#define", "text": "#define", "parent": 473, "children": [], "start_point": {"row": 174, "column": 0}, "end_point": {"row": 174, "column": 7}}, {"id": 475, "type": "identifier", "text": "GET_MAX_LUN", "parent": 473, "children": [], "start_point": {"row": 174, "column": 8}, "end_point": {"row": 174, "column": 19}}, {"id": 476, "type": "preproc_arg", "text": "0xFE", "parent": 473, "children": [], "start_point": {"row": 174, "column": 30}, "end_point": {"row": 174, "column": 34}}, {"id": 477, "type": "preproc_def", "text": "#define BULK_CBW 0x00\n", "parent": 0, "children": [478, 479, 480], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 178, "column": 0}}, {"id": 478, "type": "#define", "text": "#define", "parent": 477, "children": [], "start_point": {"row": 177, "column": 0}, "end_point": {"row": 177, "column": 7}}, {"id": 479, "type": "identifier", "text": "BULK_CBW", "parent": 477, "children": [], "start_point": {"row": 177, "column": 8}, "end_point": {"row": 177, "column": 16}}, {"id": 480, "type": "preproc_arg", "text": "0x00", "parent": 477, "children": [], "start_point": {"row": 177, "column": 18}, "end_point": {"row": 177, "column": 22}}, {"id": 481, "type": "preproc_def", "text": "#define BULK_IN 0x01\n", "parent": 0, "children": [482, 483, 484], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 179, "column": 0}}, {"id": 482, "type": "#define", "text": "#define", "parent": 481, "children": [], "start_point": {"row": 178, "column": 0}, "end_point": {"row": 178, "column": 7}}, {"id": 483, "type": "identifier", "text": "BULK_IN", "parent": 481, "children": [], "start_point": {"row": 178, "column": 8}, "end_point": {"row": 178, "column": 15}}, {"id": 484, "type": "preproc_arg", "text": "0x01", "parent": 481, "children": [], "start_point": {"row": 178, "column": 18}, "end_point": {"row": 178, "column": 22}}, {"id": 485, "type": "preproc_def", "text": "#define BULK_OUT 0x02\n", "parent": 0, "children": [486, 487, 488], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 180, "column": 0}}, {"id": 486, "type": "#define", "text": "#define", "parent": 485, "children": [], "start_point": {"row": 179, "column": 0}, "end_point": {"row": 179, "column": 7}}, {"id": 487, "type": "identifier", "text": "BULK_OUT", "parent": 485, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 16}}, {"id": 488, "type": "preproc_arg", "text": "0x02", "parent": 485, "children": [], "start_point": {"row": 179, "column": 18}, "end_point": {"row": 179, "column": 22}}, {"id": 489, "type": "preproc_def", "text": "#define BULK_CSW 0x04\n", "parent": 0, "children": [490, 491, 492], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 181, "column": 0}}, {"id": 490, "type": "#define", "text": "#define", "parent": 489, "children": [], "start_point": {"row": 180, "column": 0}, "end_point": {"row": 180, "column": 7}}, {"id": 491, "type": "identifier", "text": "BULK_CSW", "parent": 489, "children": [], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 16}}, {"id": 492, "type": "preproc_arg", "text": "0x04", "parent": 489, "children": [], "start_point": {"row": 180, "column": 18}, "end_point": {"row": 180, "column": 22}}, {"id": 493, "type": "preproc_def", "text": "#define BULK_NORMAL 0xFF\n", "parent": 0, "children": [494, 495, 496], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 182, "column": 0}}, {"id": 494, "type": "#define", "text": "#define", "parent": 493, "children": [], "start_point": {"row": 181, "column": 0}, "end_point": {"row": 181, "column": 7}}, {"id": 495, "type": "identifier", "text": "BULK_NORMAL", "parent": 493, "children": [], "start_point": {"row": 181, "column": 8}, "end_point": {"row": 181, "column": 19}}, {"id": 496, "type": "preproc_arg", "text": "0xFF", "parent": 493, "children": [], "start_point": {"row": 181, "column": 20}, "end_point": {"row": 181, "column": 24}}, {"id": 497, "type": "preproc_def", "text": "#define UFI_TEST_UNIT_READY 0x00\n", "parent": 0, "children": [498, 499, 500], "start_point": {"row": 184, "column": 0}, "end_point": {"row": 185, "column": 0}}, {"id": 498, "type": "#define", "text": "#define", "parent": 497, "children": [], "start_point": {"row": 184, "column": 0}, "end_point": {"row": 184, "column": 7}}, {"id": 499, "type": "identifier", "text": "UFI_TEST_UNIT_READY", "parent": 497, "children": [], "start_point": {"row": 184, "column": 8}, "end_point": {"row": 184, "column": 27}}, {"id": 500, "type": "preproc_arg", "text": "0x00", "parent": 497, "children": [], "start_point": {"row": 184, "column": 44}, "end_point": {"row": 184, "column": 48}}, {"id": 501, "type": "preproc_def", "text": "#define UFI_REQUEST_SENSE 0x03\n", "parent": 0, "children": [502, 503, 504], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 186, "column": 0}}, {"id": 502, "type": "#define", "text": "#define", "parent": 501, "children": [], "start_point": {"row": 185, "column": 0}, "end_point": {"row": 185, "column": 7}}, {"id": 503, "type": "identifier", "text": "UFI_REQUEST_SENSE", "parent": 501, "children": [], "start_point": {"row": 185, "column": 8}, "end_point": {"row": 185, "column": 25}}, {"id": 504, "type": "preproc_arg", "text": "0x03", "parent": 501, "children": [], "start_point": {"row": 185, "column": 44}, "end_point": {"row": 185, "column": 48}}, {"id": 505, "type": "preproc_def", "text": "#define UFI_INQUIRY 0x12\n", "parent": 0, "children": [506, 507, 508], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 187, "column": 0}}, {"id": 506, "type": "#define", "text": "#define", "parent": 505, "children": [], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 7}}, {"id": 507, "type": "identifier", "text": "UFI_INQUIRY", "parent": 505, "children": [], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 186, "column": 19}}, {"id": 508, "type": "preproc_arg", "text": "0x12", "parent": 505, "children": [], "start_point": {"row": 186, "column": 44}, "end_point": {"row": 186, "column": 48}}, {"id": 509, "type": "preproc_def", "text": "#define UFI_MODE_SELECT_6 0x15\n", "parent": 0, "children": [510, 511, 512], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 188, "column": 0}}, {"id": 510, "type": "#define", "text": "#define", "parent": 509, "children": [], "start_point": {"row": 187, "column": 0}, "end_point": {"row": 187, "column": 7}}, {"id": 511, "type": "identifier", "text": "UFI_MODE_SELECT_6", "parent": 509, "children": [], "start_point": {"row": 187, "column": 8}, "end_point": {"row": 187, "column": 25}}, {"id": 512, "type": "preproc_arg", "text": "0x15", "parent": 509, "children": [], "start_point": {"row": 187, "column": 44}, "end_point": {"row": 187, "column": 48}}, {"id": 513, "type": "preproc_def", "text": "#define UFI_MODE_SENSE_6 0x1A\n", "parent": 0, "children": [514, 515, 516], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 189, "column": 0}}, {"id": 514, "type": "#define", "text": "#define", "parent": 513, "children": [], "start_point": {"row": 188, "column": 0}, "end_point": {"row": 188, "column": 7}}, {"id": 515, "type": "identifier", "text": "UFI_MODE_SENSE_6", "parent": 513, "children": [], "start_point": {"row": 188, "column": 8}, "end_point": {"row": 188, "column": 24}}, {"id": 516, "type": "preproc_arg", "text": "0x1A", "parent": 513, "children": [], "start_point": {"row": 188, "column": 44}, "end_point": {"row": 188, "column": 48}}, {"id": 517, "type": "preproc_def", "text": "#define UFI_START_STOP 0x1B\n", "parent": 0, "children": [518, 519, 520], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 190, "column": 0}}, {"id": 518, "type": "#define", "text": "#define", "parent": 517, "children": [], "start_point": {"row": 189, "column": 0}, "end_point": {"row": 189, "column": 7}}, {"id": 519, "type": "identifier", "text": "UFI_START_STOP", "parent": 517, "children": [], "start_point": {"row": 189, "column": 8}, "end_point": {"row": 189, "column": 22}}, {"id": 520, "type": "preproc_arg", "text": "0x1B", "parent": 517, "children": [], "start_point": {"row": 189, "column": 44}, "end_point": {"row": 189, "column": 48}}, {"id": 521, "type": "preproc_def", "text": "#define UFI_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E\n", "parent": 0, "children": [522, 523, 524], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 191, "column": 0}}, {"id": 522, "type": "#define", "text": "#define", "parent": 521, "children": [], "start_point": {"row": 190, "column": 0}, "end_point": {"row": 190, "column": 7}}, {"id": 523, "type": "identifier", "text": "UFI_PREVENT_ALLOW_MEDIUM_REMOVAL", "parent": 521, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 40}}, {"id": 524, "type": "preproc_arg", "text": "0x1E", "parent": 521, "children": [], "start_point": {"row": 190, "column": 44}, "end_point": {"row": 190, "column": 48}}, {"id": 525, "type": "preproc_def", "text": "#define UFI_READ_FORMAT_CAPACITY 0x23\n", "parent": 0, "children": [526, 527, 528], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 192, "column": 0}}, {"id": 526, "type": "#define", "text": "#define", "parent": 525, "children": [], "start_point": {"row": 191, "column": 0}, "end_point": {"row": 191, "column": 7}}, {"id": 527, "type": "identifier", "text": "UFI_READ_FORMAT_CAPACITY", "parent": 525, "children": [], "start_point": {"row": 191, "column": 8}, "end_point": {"row": 191, "column": 32}}, {"id": 528, "type": "preproc_arg", "text": "0x23", "parent": 525, "children": [], "start_point": {"row": 191, "column": 44}, "end_point": {"row": 191, "column": 48}}, {"id": 529, "type": "preproc_def", "text": "#define UFI_READ_CAPACITY 0x25\n", "parent": 0, "children": [530, 531, 532], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 193, "column": 0}}, {"id": 530, "type": "#define", "text": "#define", "parent": 529, "children": [], "start_point": {"row": 192, "column": 0}, "end_point": {"row": 192, "column": 7}}, {"id": 531, "type": "identifier", "text": "UFI_READ_CAPACITY", "parent": 529, "children": [], "start_point": {"row": 192, "column": 8}, "end_point": {"row": 192, "column": 25}}, {"id": 532, "type": "preproc_arg", "text": "0x25", "parent": 529, "children": [], "start_point": {"row": 192, "column": 44}, "end_point": {"row": 192, "column": 48}}, {"id": 533, "type": "preproc_def", "text": "#define UFI_READ_10 0x28\n", "parent": 0, "children": [534, 535, 536], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 194, "column": 0}}, {"id": 534, "type": "#define", "text": "#define", "parent": 533, "children": [], "start_point": {"row": 193, "column": 0}, "end_point": {"row": 193, "column": 7}}, {"id": 535, "type": "identifier", "text": "UFI_READ_10", "parent": 533, "children": [], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 19}}, {"id": 536, "type": "preproc_arg", "text": "0x28", "parent": 533, "children": [], "start_point": {"row": 193, "column": 44}, "end_point": {"row": 193, "column": 48}}, {"id": 537, "type": "preproc_def", "text": "#define UFI_WRITE_10 0x2A\n", "parent": 0, "children": [538, 539, 540], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 195, "column": 0}}, {"id": 538, "type": "#define", "text": "#define", "parent": 537, "children": [], "start_point": {"row": 194, "column": 0}, "end_point": {"row": 194, "column": 7}}, {"id": 539, "type": "identifier", "text": "UFI_WRITE_10", "parent": 537, "children": [], "start_point": {"row": 194, "column": 8}, "end_point": {"row": 194, "column": 20}}, {"id": 540, "type": "preproc_arg", "text": "0x2A", "parent": 537, "children": [], "start_point": {"row": 194, "column": 44}, "end_point": {"row": 194, "column": 48}}, {"id": 541, "type": "preproc_def", "text": "#define UFI_VERIFY_10 0x2F\n", "parent": 0, "children": [542, 543, 544], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 196, "column": 0}}, {"id": 542, "type": "#define", "text": "#define", "parent": 541, "children": [], "start_point": {"row": 195, "column": 0}, "end_point": {"row": 195, "column": 7}}, {"id": 543, "type": "identifier", "text": "UFI_VERIFY_10", "parent": 541, "children": [], "start_point": {"row": 195, "column": 8}, "end_point": {"row": 195, "column": 21}}, {"id": 544, "type": "preproc_arg", "text": "0x2F", "parent": 541, "children": [], "start_point": {"row": 195, "column": 44}, "end_point": {"row": 195, "column": 48}}, {"id": 545, "type": "preproc_def", "text": "#define UFI_MODE_SELECT_10 0x55\n", "parent": 0, "children": [546, 547, 548], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 197, "column": 0}}, {"id": 546, "type": "#define", "text": "#define", "parent": 545, "children": [], "start_point": {"row": 196, "column": 0}, "end_point": {"row": 196, "column": 7}}, {"id": 547, "type": "identifier", "text": "UFI_MODE_SELECT_10", "parent": 545, "children": [], "start_point": {"row": 196, "column": 8}, "end_point": {"row": 196, "column": 26}}, {"id": 548, "type": "preproc_arg", "text": "0x55", "parent": 545, "children": [], "start_point": {"row": 196, "column": 44}, "end_point": {"row": 196, "column": 48}}, {"id": 549, "type": "preproc_def", "text": "#define UFI_MODE_SENSE_10 0x5A\n", "parent": 0, "children": [550, 551, 552], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 198, "column": 0}}, {"id": 550, "type": "#define", "text": "#define", "parent": 549, "children": [], "start_point": {"row": 197, "column": 0}, "end_point": {"row": 197, "column": 7}}, {"id": 551, "type": "identifier", "text": "UFI_MODE_SENSE_10", "parent": 549, "children": [], "start_point": {"row": 197, "column": 8}, "end_point": {"row": 197, "column": 25}}, {"id": 552, "type": "preproc_arg", "text": "0x5A", "parent": 549, "children": [], "start_point": {"row": 197, "column": 44}, "end_point": {"row": 197, "column": 48}}, {"id": 553, "type": "struct_specifier", "text": "struct CBW\n{\n uint32_t dCBWSignature;\n uint32_t dCBWTag;\n uint32_t dCBWDataTransferLength;\n uint8_t bmCBWFlags;\n uint8_t bCBWLUN;\n uint8_t bCBWCBLength;\n uint8_t u8OPCode;\n uint8_t u8LUN;\n uint8_t au8Data[14];\n}", "parent": 0, "children": [554, 555], "start_point": {"row": 201, "column": 0}, "end_point": {"row": 212, "column": 1}}, {"id": 554, "type": "struct", "text": "struct", "parent": 553, "children": [], "start_point": {"row": 201, "column": 0}, "end_point": {"row": 201, "column": 6}}, {"id": 555, "type": "type_identifier", "text": "CBW", "parent": 553, "children": [], "start_point": {"row": 201, "column": 7}, "end_point": {"row": 201, "column": 10}}, {"id": 556, "type": "field_declaration", "text": "uint32_t dCBWSignature;", "parent": 553, "children": [557, 558], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 26}}, {"id": 557, "type": "primitive_type", "text": "uint32_t", "parent": 556, "children": [], "start_point": {"row": 203, "column": 2}, "end_point": {"row": 203, "column": 10}}, {"id": 558, "type": "field_identifier", "text": "dCBWSignature", "parent": 556, "children": [], "start_point": {"row": 203, "column": 12}, "end_point": {"row": 203, "column": 25}}, {"id": 559, "type": "field_declaration", "text": "uint32_t dCBWTag;", "parent": 553, "children": [560, 561], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 20}}, {"id": 560, "type": "primitive_type", "text": "uint32_t", "parent": 559, "children": [], "start_point": {"row": 204, "column": 2}, "end_point": {"row": 204, "column": 10}}, {"id": 561, "type": "field_identifier", "text": "dCBWTag", "parent": 559, "children": [], "start_point": {"row": 204, "column": 12}, "end_point": {"row": 204, "column": 19}}, {"id": 562, "type": "field_declaration", "text": "uint32_t dCBWDataTransferLength;", "parent": 553, "children": [563, 564], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 35}}, {"id": 563, "type": "primitive_type", "text": "uint32_t", "parent": 562, "children": [], "start_point": {"row": 205, "column": 2}, "end_point": {"row": 205, "column": 10}}, {"id": 564, "type": "field_identifier", "text": "dCBWDataTransferLength", "parent": 562, "children": [], "start_point": {"row": 205, "column": 12}, "end_point": {"row": 205, "column": 34}}, {"id": 565, "type": "field_declaration", "text": "uint8_t bmCBWFlags;", "parent": 553, "children": [566, 567], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 23}}, {"id": 566, "type": "primitive_type", "text": "uint8_t", "parent": 565, "children": [], "start_point": {"row": 206, "column": 2}, "end_point": {"row": 206, "column": 9}}, {"id": 567, "type": "field_identifier", "text": "bmCBWFlags", "parent": 565, "children": [], "start_point": {"row": 206, "column": 12}, "end_point": {"row": 206, "column": 22}}, {"id": 568, "type": "field_declaration", "text": "uint8_t bCBWLUN;", "parent": 553, "children": [569, 570], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 20}}, {"id": 569, "type": "primitive_type", "text": "uint8_t", "parent": 568, "children": [], "start_point": {"row": 207, "column": 2}, "end_point": {"row": 207, "column": 9}}, {"id": 570, "type": "field_identifier", "text": "bCBWLUN", "parent": 568, "children": [], "start_point": {"row": 207, "column": 12}, "end_point": {"row": 207, "column": 19}}, {"id": 571, "type": "field_declaration", "text": "uint8_t bCBWCBLength;", "parent": 553, "children": [572, 573], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 25}}, {"id": 572, "type": "primitive_type", "text": "uint8_t", "parent": 571, "children": [], "start_point": {"row": 208, "column": 2}, "end_point": {"row": 208, "column": 9}}, {"id": 573, "type": "field_identifier", "text": "bCBWCBLength", "parent": 571, "children": [], "start_point": {"row": 208, "column": 12}, "end_point": {"row": 208, "column": 24}}, {"id": 574, "type": "field_declaration", "text": "uint8_t u8OPCode;", "parent": 553, "children": [575, 576], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 209, "column": 21}}, {"id": 575, "type": "primitive_type", "text": "uint8_t", "parent": 574, "children": [], "start_point": {"row": 209, "column": 2}, "end_point": {"row": 209, "column": 9}}, {"id": 576, "type": "field_identifier", "text": "u8OPCode", "parent": 574, "children": [], "start_point": {"row": 209, "column": 12}, "end_point": {"row": 209, "column": 20}}, {"id": 577, "type": "field_declaration", "text": "uint8_t u8LUN;", "parent": 553, "children": [578, 579], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 18}}, {"id": 578, "type": "primitive_type", "text": "uint8_t", "parent": 577, "children": [], "start_point": {"row": 210, "column": 2}, "end_point": {"row": 210, "column": 9}}, {"id": 579, "type": "field_identifier", "text": "u8LUN", "parent": 577, "children": [], "start_point": {"row": 210, "column": 12}, "end_point": {"row": 210, "column": 17}}, {"id": 580, "type": "field_declaration", "text": "uint8_t au8Data[14];", "parent": 553, "children": [581, 582], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 211, "column": 24}}, {"id": 581, "type": "primitive_type", "text": "uint8_t", "parent": 580, "children": [], "start_point": {"row": 211, "column": 2}, "end_point": {"row": 211, "column": 9}}, {"id": 582, "type": "array_declarator", "text": "au8Data[14]", "parent": 580, "children": [583, 584], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 23}}, {"id": 583, "type": "field_identifier", "text": "au8Data", "parent": 582, "children": [], "start_point": {"row": 211, "column": 12}, "end_point": {"row": 211, "column": 19}}, {"id": 584, "type": "number_literal", "text": "14", "parent": 582, "children": [], "start_point": {"row": 211, "column": 20}, "end_point": {"row": 211, "column": 22}}, {"id": 585, "type": "struct_specifier", "text": "struct CSW\n{\n uint32_t dCSWSignature;\n uint32_t dCSWTag;\n uint32_t dCSWDataResidue;\n uint8_t bCSWStatus;\n}", "parent": 0, "children": [586, 587], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 220, "column": 1}}, {"id": 586, "type": "struct", "text": "struct", "parent": 585, "children": [], "start_point": {"row": 214, "column": 0}, "end_point": {"row": 214, "column": 6}}, {"id": 587, "type": "type_identifier", "text": "CSW", "parent": 585, "children": [], "start_point": {"row": 214, "column": 7}, "end_point": {"row": 214, "column": 10}}, {"id": 588, "type": "field_declaration", "text": "uint32_t dCSWSignature;", "parent": 585, "children": [589, 590], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 26}}, {"id": 589, "type": "primitive_type", "text": "uint32_t", "parent": 588, "children": [], "start_point": {"row": 216, "column": 2}, "end_point": {"row": 216, "column": 10}}, {"id": 590, "type": "field_identifier", "text": "dCSWSignature", "parent": 588, "children": [], "start_point": {"row": 216, "column": 12}, "end_point": {"row": 216, "column": 25}}, {"id": 591, "type": "field_declaration", "text": "uint32_t dCSWTag;", "parent": 585, "children": [592, 593], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 217, "column": 20}}, {"id": 592, "type": "primitive_type", "text": "uint32_t", "parent": 591, "children": [], "start_point": {"row": 217, "column": 2}, "end_point": {"row": 217, "column": 10}}, {"id": 593, "type": "field_identifier", "text": "dCSWTag", "parent": 591, "children": [], "start_point": {"row": 217, "column": 12}, "end_point": {"row": 217, "column": 19}}, {"id": 594, "type": "field_declaration", "text": "uint32_t dCSWDataResidue;", "parent": 585, "children": [595, 596], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 28}}, {"id": 595, "type": "primitive_type", "text": "uint32_t", "parent": 594, "children": [], "start_point": {"row": 218, "column": 2}, "end_point": {"row": 218, "column": 10}}, {"id": 596, "type": "field_identifier", "text": "dCSWDataResidue", "parent": 594, "children": [], "start_point": {"row": 218, "column": 12}, "end_point": {"row": 218, "column": 27}}, {"id": 597, "type": "field_declaration", "text": "uint8_t bCSWStatus;", "parent": 585, "children": [598, 599], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 23}}, {"id": 598, "type": "primitive_type", "text": "uint8_t", "parent": 597, "children": [], "start_point": {"row": 219, "column": 2}, "end_point": {"row": 219, "column": 9}}, {"id": 599, "type": "field_identifier", "text": "bCSWStatus", "parent": 597, "children": [], "start_point": {"row": 219, "column": 12}, "end_point": {"row": 219, "column": 22}}, {"id": 600, "type": "type_definition", "text": "typedef struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n} Disk_Par_Info;", "parent": 0, "children": [601, 602, 626], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 239, "column": 16}}, {"id": 601, "type": "typedef", "text": "typedef", "parent": 600, "children": [], "start_point": {"row": 222, "column": 0}, "end_point": {"row": 222, "column": 7}}, {"id": 602, "type": "struct_specifier", "text": "struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n}", "parent": 600, "children": [603, 604], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 239, "column": 1}}, {"id": 603, "type": "struct", "text": "struct", "parent": 602, "children": [], "start_point": {"row": 222, "column": 8}, "end_point": {"row": 222, "column": 14}}, {"id": 604, "type": "type_identifier", "text": "Disk_Par_Inf", "parent": 602, "children": [], "start_point": {"row": 222, "column": 15}, "end_point": {"row": 222, "column": 27}}, {"id": 605, "type": "field_declaration", "text": "uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;", "parent": 602, "children": [606, 607, 608, 609, 610, 611, 612], "start_point": {"row": 224, "column": 2}, "end_point": {"row": 229, "column": 18}}, {"id": 606, "type": "primitive_type", "text": "uint32_t", "parent": 605, "children": [], "start_point": {"row": 224, "column": 2}, "end_point": {"row": 224, "column": 10}}, {"id": 607, "type": "field_identifier", "text": "partition_size", "parent": 605, "children": [], "start_point": {"row": 224, "column": 12}, "end_point": {"row": 224, "column": 26}}, {"id": 608, "type": "field_identifier", "text": "data_location", "parent": 605, "children": [], "start_point": {"row": 225, "column": 8}, "end_point": {"row": 225, "column": 21}}, {"id": 609, "type": "field_identifier", "text": "bpb_location", "parent": 605, "children": [], "start_point": {"row": 226, "column": 8}, "end_point": {"row": 226, "column": 20}}, {"id": 610, "type": "field_identifier", "text": "fat_location", "parent": 605, "children": [], "start_point": {"row": 227, "column": 8}, "end_point": {"row": 227, "column": 20}}, {"id": 611, "type": "field_identifier", "text": "rootdir_location", "parent": 605, "children": [], "start_point": {"row": 228, "column": 8}, "end_point": {"row": 228, "column": 24}}, {"id": 612, "type": "field_identifier", "text": "free_size", "parent": 605, "children": [], "start_point": {"row": 229, "column": 8}, "end_point": {"row": 229, "column": 17}}, {"id": 613, "type": "field_declaration", "text": "uint16_t rootdirentryno,\n totalcluster,\n NumCyl;", "parent": 602, "children": [614, 615, 616, 617], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 232, "column": 15}}, {"id": 614, "type": "primitive_type", "text": "uint16_t", "parent": 613, "children": [], "start_point": {"row": 230, "column": 2}, "end_point": {"row": 230, "column": 10}}, {"id": 615, "type": "field_identifier", "text": "rootdirentryno", "parent": 613, "children": [], "start_point": {"row": 230, "column": 12}, "end_point": {"row": 230, "column": 26}}, {"id": 616, "type": "field_identifier", "text": "totalcluster", "parent": 613, "children": [], "start_point": {"row": 231, "column": 8}, "end_point": {"row": 231, "column": 20}}, {"id": 617, "type": "field_identifier", "text": "NumCyl", "parent": 613, "children": [], "start_point": {"row": 232, "column": 8}, "end_point": {"row": 232, "column": 14}}, {"id": 618, "type": "field_declaration", "text": "uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;", "parent": 602, "children": [619, 620, 621, 622, 623, 624, 625], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 238, "column": 17}}, {"id": 619, "type": "primitive_type", "text": "uint8_t", "parent": 618, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 9}}, {"id": 620, "type": "field_identifier", "text": "NumHead", "parent": 618, "children": [], "start_point": {"row": 233, "column": 12}, "end_point": {"row": 233, "column": 19}}, {"id": 621, "type": "field_identifier", "text": "NumSector", "parent": 618, "children": [], "start_point": {"row": 234, "column": 8}, "end_point": {"row": 234, "column": 17}}, {"id": 622, "type": "field_identifier", "text": "capacity", "parent": 618, "children": [], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 235, "column": 16}}, {"id": 623, "type": "field_identifier", "text": "fatcopyno", "parent": 618, "children": [], "start_point": {"row": 236, "column": 8}, "end_point": {"row": 236, "column": 17}}, {"id": 624, "type": "field_identifier", "text": "fatsectorno", "parent": 618, "children": [], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 237, "column": 19}}, {"id": 625, "type": "field_identifier", "text": "fat16flg", "parent": 618, "children": [], "start_point": {"row": 238, "column": 8}, "end_point": {"row": 238, "column": 16}}, {"id": 626, "type": "type_identifier", "text": "Disk_Par_Info", "parent": 600, "children": [], "start_point": {"row": 239, "column": 2}, "end_point": {"row": 239, "column": 15}}, {"id": 627, "type": "declaration", "text": "extern uint8_t g_u8BulkState;", "parent": 0, "children": [628, 630, 631], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 29}}, {"id": 628, "type": "storage_class_specifier", "text": "extern", "parent": 627, "children": [629], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 6}}, {"id": 629, "type": "extern", "text": "extern", "parent": 628, "children": [], "start_point": {"row": 242, "column": 0}, "end_point": {"row": 242, "column": 6}}, {"id": 630, "type": "primitive_type", "text": "uint8_t", "parent": 627, "children": [], "start_point": {"row": 242, "column": 7}, "end_point": {"row": 242, "column": 14}}, {"id": 631, "type": "identifier", "text": "g_u8BulkState", "parent": 627, "children": [], "start_point": {"row": 242, "column": 15}, "end_point": {"row": 242, "column": 28}}, {"id": 632, "type": "declaration", "text": "extern int32_t udcOnLine;", "parent": 0, "children": [633, 635, 636], "start_point": {"row": 243, "column": 0}, "end_point": {"row": 243, "column": 25}}, {"id": 633, "type": "storage_class_specifier", "text": "extern", "parent": 632, "children": [634], "start_point": {"row": 243, "column": 0}, "end_point": {"row": 243, "column": 6}}, {"id": 634, "type": "extern", "text": "extern", "parent": 633, "children": [], "start_point": {"row": 243, "column": 0}, "end_point": {"row": 243, "column": 6}}, {"id": 635, "type": "primitive_type", "text": "int32_t", "parent": 632, "children": [], "start_point": {"row": 243, "column": 7}, "end_point": {"row": 243, "column": 14}}, {"id": 636, "type": "identifier", "text": "udcOnLine", "parent": 632, "children": [], "start_point": {"row": 243, "column": 15}, "end_point": {"row": 243, "column": 24}}, {"id": 637, "type": "declaration", "text": "extern int32_t g_bIsFirstRead;", "parent": 0, "children": [638, 640, 641], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 244, "column": 30}}, {"id": 638, "type": "storage_class_specifier", "text": "extern", "parent": 637, "children": [639], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 244, "column": 6}}, {"id": 639, "type": "extern", "text": "extern", "parent": 638, "children": [], "start_point": {"row": 244, "column": 0}, "end_point": {"row": 244, "column": 6}}, {"id": 640, "type": "primitive_type", "text": "int32_t", "parent": 637, "children": [], "start_point": {"row": 244, "column": 7}, "end_point": {"row": 244, "column": 14}}, {"id": 641, "type": "identifier", "text": "g_bIsFirstRead", "parent": 637, "children": [], "start_point": {"row": 244, "column": 15}, "end_point": {"row": 244, "column": 29}}, {"id": 642, "type": "declaration", "text": "extern uint32_t usbDataReady;", "parent": 0, "children": [643, 645, 646], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 245, "column": 29}}, {"id": 643, "type": "storage_class_specifier", "text": "extern", "parent": 642, "children": [644], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 245, "column": 6}}, {"id": 644, "type": "extern", "text": "extern", "parent": 643, "children": [], "start_point": {"row": 245, "column": 0}, "end_point": {"row": 245, "column": 6}}, {"id": 645, "type": "primitive_type", "text": "uint32_t", "parent": 642, "children": [], "start_point": {"row": 245, "column": 7}, "end_point": {"row": 245, "column": 15}}, {"id": 646, "type": "identifier", "text": "usbDataReady", "parent": 642, "children": [], "start_point": {"row": 245, "column": 16}, "end_point": {"row": 245, "column": 28}}, {"id": 647, "type": "declaration", "text": "extern uint8_t g_u8UsbState;", "parent": 0, "children": [648, 650, 651], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 246, "column": 28}}, {"id": 648, "type": "storage_class_specifier", "text": "extern", "parent": 647, "children": [649], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 246, "column": 6}}, {"id": 649, "type": "extern", "text": "extern", "parent": 648, "children": [], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 246, "column": 6}}, {"id": 650, "type": "primitive_type", "text": "uint8_t", "parent": 647, "children": [], "start_point": {"row": 246, "column": 7}, "end_point": {"row": 246, "column": 14}}, {"id": 651, "type": "identifier", "text": "g_u8UsbState", "parent": 647, "children": [], "start_point": {"row": 246, "column": 15}, "end_point": {"row": 246, "column": 27}}, {"id": 652, "type": "declaration", "text": "void ReqSenCommand(void);", "parent": 0, "children": [653, 654], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 25}}, {"id": 653, "type": "primitive_type", "text": "void", "parent": 652, "children": [], "start_point": {"row": 249, "column": 0}, "end_point": {"row": 249, "column": 4}}, {"id": 654, "type": "function_declarator", "text": "ReqSenCommand(void)", "parent": 652, "children": [655, 656], "start_point": {"row": 249, "column": 5}, "end_point": {"row": 249, "column": 24}}, {"id": 655, "type": "identifier", "text": "ReqSenCommand", "parent": 654, "children": [], "start_point": {"row": 249, "column": 5}, "end_point": {"row": 249, "column": 18}}, {"id": 656, "type": "parameter_list", "text": "(void)", "parent": 654, "children": [657], "start_point": {"row": 249, "column": 18}, "end_point": {"row": 249, "column": 24}}, {"id": 657, "type": "parameter_declaration", "text": "void", "parent": 656, "children": [658], "start_point": {"row": 249, "column": 19}, "end_point": {"row": 249, "column": 23}}, {"id": 658, "type": "primitive_type", "text": "void", "parent": 657, "children": [], "start_point": {"row": 249, "column": 19}, "end_point": {"row": 249, "column": 23}}, {"id": 659, "type": "declaration", "text": "void RdFmtCapCommand(void);", "parent": 0, "children": [660, 661], "start_point": {"row": 250, "column": 0}, "end_point": {"row": 250, "column": 27}}, {"id": 660, "type": "primitive_type", "text": "void", "parent": 659, "children": [], "start_point": {"row": 250, "column": 0}, "end_point": {"row": 250, "column": 4}}, {"id": 661, "type": "function_declarator", "text": "RdFmtCapCommand(void)", "parent": 659, "children": [662, 663], "start_point": {"row": 250, "column": 5}, "end_point": {"row": 250, "column": 26}}, {"id": 662, "type": "identifier", "text": "RdFmtCapCommand", "parent": 661, "children": [], "start_point": {"row": 250, "column": 5}, "end_point": {"row": 250, "column": 20}}, {"id": 663, "type": "parameter_list", "text": "(void)", "parent": 661, "children": [664], "start_point": {"row": 250, "column": 20}, "end_point": {"row": 250, "column": 26}}, {"id": 664, "type": "parameter_declaration", "text": "void", "parent": 663, "children": [665], "start_point": {"row": 250, "column": 21}, "end_point": {"row": 250, "column": 25}}, {"id": 665, "type": "primitive_type", "text": "void", "parent": 664, "children": [], "start_point": {"row": 250, "column": 21}, "end_point": {"row": 250, "column": 25}}, {"id": 666, "type": "declaration", "text": "void RdCurCapCommand(void);", "parent": 0, "children": [667, 668], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 27}}, {"id": 667, "type": "primitive_type", "text": "void", "parent": 666, "children": [], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 4}}, {"id": 668, "type": "function_declarator", "text": "RdCurCapCommand(void)", "parent": 666, "children": [669, 670], "start_point": {"row": 251, "column": 5}, "end_point": {"row": 251, "column": 26}}, {"id": 669, "type": "identifier", "text": "RdCurCapCommand", "parent": 668, "children": [], "start_point": {"row": 251, "column": 5}, "end_point": {"row": 251, "column": 20}}, {"id": 670, "type": "parameter_list", "text": "(void)", "parent": 668, "children": [671], "start_point": {"row": 251, "column": 20}, "end_point": {"row": 251, "column": 26}}, {"id": 671, "type": "parameter_declaration", "text": "void", "parent": 670, "children": [672], "start_point": {"row": 251, "column": 21}, "end_point": {"row": 251, "column": 25}}, {"id": 672, "type": "primitive_type", "text": "void", "parent": 671, "children": [], "start_point": {"row": 251, "column": 21}, "end_point": {"row": 251, "column": 25}}, {"id": 673, "type": "declaration", "text": "uint8_t udcFlashInit(void);", "parent": 0, "children": [674, 675], "start_point": {"row": 252, "column": 0}, "end_point": {"row": 252, "column": 27}}, {"id": 674, "type": "primitive_type", "text": "uint8_t", "parent": 673, "children": [], "start_point": {"row": 252, "column": 0}, "end_point": {"row": 252, "column": 7}}, {"id": 675, "type": "function_declarator", "text": "udcFlashInit(void)", "parent": 673, "children": [676, 677], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 26}}, {"id": 676, "type": "identifier", "text": "udcFlashInit", "parent": 675, "children": [], "start_point": {"row": 252, "column": 8}, "end_point": {"row": 252, "column": 20}}, {"id": 677, "type": "parameter_list", "text": "(void)", "parent": 675, "children": [678], "start_point": {"row": 252, "column": 20}, "end_point": {"row": 252, "column": 26}}, {"id": 678, "type": "parameter_declaration", "text": "void", "parent": 677, "children": [679], "start_point": {"row": 252, "column": 21}, "end_point": {"row": 252, "column": 25}}, {"id": 679, "type": "primitive_type", "text": "void", "parent": 678, "children": [], "start_point": {"row": 252, "column": 21}, "end_point": {"row": 252, "column": 25}}, {"id": 680, "type": "declaration", "text": "void udcInit(void);", "parent": 0, "children": [681, 682], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 19}}, {"id": 681, "type": "primitive_type", "text": "void", "parent": 680, "children": [], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 4}}, {"id": 682, "type": "function_declarator", "text": "udcInit(void)", "parent": 680, "children": [683, 684], "start_point": {"row": 254, "column": 5}, "end_point": {"row": 254, "column": 18}}, {"id": 683, "type": "identifier", "text": "udcInit", "parent": 682, "children": [], "start_point": {"row": 254, "column": 5}, "end_point": {"row": 254, "column": 12}}, {"id": 684, "type": "parameter_list", "text": "(void)", "parent": 682, "children": [685], "start_point": {"row": 254, "column": 12}, "end_point": {"row": 254, "column": 18}}, {"id": 685, "type": "parameter_declaration", "text": "void", "parent": 684, "children": [686], "start_point": {"row": 254, "column": 13}, "end_point": {"row": 254, "column": 17}}, {"id": 686, "type": "primitive_type", "text": "void", "parent": 685, "children": [], "start_point": {"row": 254, "column": 13}, "end_point": {"row": 254, "column": 17}}, {"id": 687, "type": "declaration", "text": "void udcMassBulk(void);", "parent": 0, "children": [688, 689], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 23}}, {"id": 688, "type": "primitive_type", "text": "void", "parent": 687, "children": [], "start_point": {"row": 255, "column": 0}, "end_point": {"row": 255, "column": 4}}, {"id": 689, "type": "function_declarator", "text": "udcMassBulk(void)", "parent": 687, "children": [690, 691], "start_point": {"row": 255, "column": 5}, "end_point": {"row": 255, "column": 22}}, {"id": 690, "type": "identifier", "text": "udcMassBulk", "parent": 689, "children": [], "start_point": {"row": 255, "column": 5}, "end_point": {"row": 255, "column": 16}}, {"id": 691, "type": "parameter_list", "text": "(void)", "parent": 689, "children": [692], "start_point": {"row": 255, "column": 16}, "end_point": {"row": 255, "column": 22}}, {"id": 692, "type": "parameter_declaration", "text": "void", "parent": 691, "children": [693], "start_point": {"row": 255, "column": 17}, "end_point": {"row": 255, "column": 21}}, {"id": 693, "type": "primitive_type", "text": "void", "parent": 692, "children": [], "start_point": {"row": 255, "column": 17}, "end_point": {"row": 255, "column": 21}}, {"id": 694, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 257, "column": 0}, "end_point": {"row": 257, "column": 6}}]}, "node_categories": {"declarations": {"functions": [209, 215, 654, 661, 668, 675, 682, 689], "variables": [556, 559, 562, 565, 568, 571, 574, 577, 580, 588, 591, 594, 597, 600, 605, 613, 618, 627, 632, 637, 642, 647, 652, 657, 659, 664, 666, 671, 673, 678, 680, 685, 687, 692], "classes": [553, 554, 585, 586, 602, 603, 628, 633, 638, 643, 648], "imports": [6, 7, 9, 10], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 95, 99, 103, 107, 111, 115, 119, 123, 127, 131, 135, 139, 143, 147, 151, 155, 159, 163, 167, 171, 175, 179, 183, 187, 191, 195, 199, 203, 207, 211, 213, 217, 219, 223, 227, 231, 235, 239, 243, 247, 251, 255, 259, 263, 267, 271, 275, 279, 283, 287, 291, 295, 299, 303, 307, 311, 315, 319, 323, 327, 331, 335, 339, 343, 347, 351, 355, 359, 363, 367, 371, 375, 379, 383, 387, 391, 395, 399, 403, 407, 411, 415, 419, 423, 427, 431, 435, 439, 443, 447, 451, 455, 459, 463, 467, 471, 475, 479, 483, 487, 491, 495, 499, 503, 507, 511, 515, 519, 523, 527, 531, 535, 539, 543, 547, 551, 555, 558, 561, 564, 567, 570, 573, 576, 579, 583, 587, 590, 593, 596, 599, 604, 607, 608, 609, 610, 611, 612, 615, 616, 617, 620, 621, 622, 623, 624, 625, 626, 631, 636, 641, 646, 651, 655, 662, 669, 676, 683, 690, 694], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 584], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 209, "universal_type": "function", "name": "unknown", "text_snippet": "#define DATA0(a) (a&0x7F)\n"}, {"node_id": 215, "universal_type": "function", "name": "unknown", "text_snippet": "#define DATA1(a) (a|0x80)\n"}, {"node_id": 654, "universal_type": "function", "name": "unknown", "text_snippet": "ReqSenCommand(void)"}, {"node_id": 661, "universal_type": "function", "name": "unknown", "text_snippet": "RdFmtCapCommand(void)"}, {"node_id": 668, "universal_type": "function", "name": "unknown", "text_snippet": "RdCurCapCommand(void)"}, {"node_id": 675, "universal_type": "function", "name": "unknown", "text_snippet": "udcFlashInit(void)"}, {"node_id": 682, "universal_type": "function", "name": "unknown", "text_snippet": "udcInit(void)"}, {"node_id": 689, "universal_type": "function", "name": "unknown", "text_snippet": "udcMassBulk(void)"}], "class_declarations": [{"node_id": 553, "universal_type": "class", "name": "CBW", "text_snippet": "struct CBW\n{\n uint32_t dCBWSignature;\n uint32_t dCBWTag;\n uint32_t dCBWDataTransferLength;\n u"}, {"node_id": 554, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 585, "universal_type": "class", "name": "CSW", "text_snippet": "struct CSW\n{\n uint32_t dCSWSignature;\n uint32_t dCSWTag;\n uint32_t dCSWDataResidue;\n uint8_t "}, {"node_id": 586, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 602, "universal_type": "class", "name": "Disk_Par_Inf", "text_snippet": "struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n "}, {"node_id": 603, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 628, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 633, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 638, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 643, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 648, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}], "import_statements": [{"node_id": 6, "text": "#include \"NUC1xx.h\"\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"Driver\\DrvUSB.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*---------------------------------------------------------------------------------------------------------*/\n/* */\n/* Copyright (c) Nuvoton Technology Corp. All rights reserved. */\n/* */\n/*---------------------------------------------------------------------------------------------------------*/\n\n#ifndef _NUC100_UDC_H_\n#define _NUC100_UDC_H_\n\n#include \"NUC1xx.h\"\n#include \"Driver\\DrvUSB.h\"\n//======================================================\n\n#define IEF_wakeupEn 0x00000100 // R/W 1/0 Enable/Disable USB wakeup function\n#define IEF_INNAKen 0x00008000 // W 1/0 Enable/Disable IN NAK Interrupt\n\n#define EVF_INT_BUS 0x00000001 // R/WC\n#define EVF_INT_USB 0x00000002 // R/WC\n#define EVF_INT_FLDET 0x00000004 // R/WC\n#define EVF_INT_WAKEUP 0x00000008 // R/WC\n#define EVF_INT_EPTF0 0x00010000 // R/WC\n#define EVF_INT_EPTF1 0x00020000 // R/WC\n#define EVF_INT_EPTF2 0x00040000 // R/WC\n#define EVF_INT_EPTF3 0x00080000 // R/WC\n#define EVF_INT_EPTF4 0x00100000 // R/WC\n#define EVF_INT_EPTF5 0x00200000 // R/WC\n#define EVF_INT_SETUP 0x80000000 // R/WC\n\n#define STS_EPT 0x0000000F // R&C USB Event Endpoint Number\n//#define STS_STS 0x00000070 // R&C USB Event (IN ACK/NAK, OUT 0/1 ACK, Setup ACK)\n\n#define USB_SETUP_ACK 0x30\n#define USB_IN_ACK 0x00\n#define USB_OUT_0_ACK 0x20\n#define USB_OUT_1_ACK 0x60\n#define USB_IN_NAK 0x10\n#define USB_ISO 0x70\n\n#define STS_Overrun 0x00000080 // R&C Out Data more than Max Payload or Setup Data more than 8 Bytes\n#define STS0 0x00000700\n#define STS1 0x00003800\n#define STS2 0x0001C000\n#define STS3 0x000E0000\n#define STS4 0x00700000\n#define STS5 0x03800000\n\n#define ATTR_enUSB 0x00000080 // R/W 1/0 Enable/Disable USB\n#define ATTR_SPEED 0x00000040 // R/W 1/0 Full/Low Speed\n#define ATTR_RWakeUp 0x00000020 // R/W 1: Force USB Bus to K State, Used for Remote Wake-up\n#define ATTR_enPHY 0x00000010 // R/W 1/0 Enable/Disable PHY\n#define ATTR_Timeout 0x00000008 // R&C USB Timeout, No Response more than 2^18 clock time\n#define ATTR_Resume 0x00000004 // R&C USB Resume\n#define ATTR_Suspend 0x00000002 // R USB Suspend\n#define ATTR_usbRST 0x00000001 // R&C USB Bus Reset\n\n#define RCVmode 0x00000001 // R/W 1/0 RCV signal come from RXD/RXDP\n\n#define EPT_stall_ctl 0x00000200 // R/W 1/0 Enable/Disable Auto Clear Stall in Setup Stage\n#define EPT_DSQ 0x00000080 // R/W Specify Data 0 or 1 after IN Token toggle Automatically after Host ACK\n#define EPT_state 0x00000060\n#define EPT_DISABLE 0\n#define EPT_OUT 0x00000020\n#define EPT_IN 0x00000040\n#define EPT_ISOCH 0x00000010 // R/W Isochronous, No Handshake\n#define EPT_ISO 0x00000010\n#define EPT_EPT 0x0000000F\n#define EPT_stall 0x00000002 // R/W Force Device to Response Stall\n#define EPT_CFGP 0x00000001 // W&C Write 1 to Clear In/Out Ready set by MXPLD\n\n#define CBW_SIGNATURE 0x43425355\n#define CSW_SIGNATURE 0x53425355\n\n//======================================================\n#define DATA0(a) (a&0x7F)\n#define DATA1(a) (a|0x80)\n\n//======================================================\n// USB Request\n//======================================================\n// Request Type\n#define REQ_STANDARD 0x00\n#define REQ_CLASS 0x20\n#define REQ_VENDOR 0x40\n\n// Request\n#define GET_STATUS 0x00\n#define CLEAR_FEATURE 0x01\n//#define 0x02\n#define SET_FEATURE 0x03\n//#define 0x04\n#define SET_ADDRESS 0x05\n#define GET_DESCRIPTOR 0x06\n#define SET_DESCRIPTOR 0x07\n#define GET_CONFIGURATION 0x08\n#define SET_CONFIGURATION 0x09\n#define GET_INTERFACE 0x0A\n#define SET_INTERFACE 0x0B\n#define SYNC_FRAME 0x0C\n\n// USB Descriptor Type\n#define DESC_DEVICE 0x01\n#define DESC_CONFIG 0x02\n#define DESC_STRING 0x03\n#define DESC_INTERFACE 0x04\n#define DESC_ENDPOINT 0x05\n#define DESC_QUALIFIER 0x06\n#define DESC_OTHERSPEED 0x07\n\n// USB Descriptor Length\n#define LEN_DEVICE 18\n#define LEN_CONFIG 9\n#define LEN_INTERFACE 9\n#define LEN_ENDPOINT 7\n\n// USB Endpoint Type\n#define EP_ISO 0x01\n#define EP_BULK 0x02\n#define EP_INT 0x03\n\n// USB Feature Selector\n#define FEATURE_DEVICE_REMOTE_WAKEUP 0x01\n#define FEATURE_ENDPOINT_HALT 0x00\n\n//======================================================\n// USB Control\n//======================================================\n// USB STATE\n#define USB_STATE_DETACHED 0x00\n#define USB_STATE_ATTACHED 0x01\n#define USB_STATE_DEFAULT 0x11\n#define USB_STATE_ADDRESS 0x31\n#define USB_STATE_CONFIGURED 0x71\n\n#define USB_STATE_FLAG_DEFAULT 0x10\n#define USB_STATE_FLAG_ADDRESS 0x20\n#define USB_STATE_FLAG_CONFIGURED 0x40\n#define USB_STATE_FLAG_SUSPENDED 0x80\n\n// FLAG\n#define FLAG_OUT_ACK 0x01\n#define FLAG_SET_ADDRESS 0x02\n#define FLAG_SET_CONFIG 0x04\n#define FLAG_SET_INTERFACE 0x08\n#define FLAG_GET_MAX_LUN 0x10\n\n// Max Packet Size\n#define MAX_PACKET_SIZE0 64\n#define MAX_PACKET_SIZE 64\n\n// SRAM\n#define BUF_SETUP 0xF8\n#define BUF_CTRL 0x00\n#define BUF_BULK0 (BUF_CTRL+MAX_PACKET_SIZE0)\n#define BUF_BULK1 (BUF_BULK0+MAX_PACKET_SIZE)\n\n// CFG\n#define CFG0_SETTING (CFG_CSTALL | CFG_EPT_IN | 0) /* EP address 0, control IN */\n#define CFG1_SETTING (CFG_CSTALL | CFG_EPT_OUT | 0) /* EP address 0, control OUT */\n#define CFG2_SETTING (CFG_EPT_IN | 2) /* EP address 2 */\n#define CFG3_SETTING (CFG_EPT_OUT | 3) /* EP address 3 */\n\n// BUF\n#define BUF0_SETTING BUF_CTRL\n#define BUF1_SETTING BUF_CTRL\n#define BUF2_SETTING BUF_BULK1\n#define BUF3_SETTING BUF_BULK0\n \n#define g_au8UsbSetup ((uint8_t *)(USBD_BASE+0x100+BUF_SETUP))\n#define g_au8UsbCtrl ((uint8_t *)(USBD_BASE+0x100+BUF_CTRL))\n#define g_au8UsbBulk1 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK1))\n#define g_au8UsbBulk0 ((uint8_t *)(USBD_BASE+0x100+BUF_BULK0))\n\n//======================================================\n#define BULK_ONLY_MASS_STORAGE_RESET 0xFF\n#define GET_MAX_LUN 0xFE\n\n//======================================================\n#define BULK_CBW 0x00\n#define BULK_IN 0x01\n#define BULK_OUT 0x02\n#define BULK_CSW 0x04\n#define BULK_NORMAL 0xFF\n\n//======================================================\n#define UFI_TEST_UNIT_READY 0x00\n#define UFI_REQUEST_SENSE 0x03\n#define UFI_INQUIRY 0x12\n#define UFI_MODE_SELECT_6 0x15\n#define UFI_MODE_SENSE_6 0x1A\n#define UFI_START_STOP 0x1B\n#define UFI_PREVENT_ALLOW_MEDIUM_REMOVAL 0x1E\n#define UFI_READ_FORMAT_CAPACITY 0x23\n#define UFI_READ_CAPACITY 0x25\n#define UFI_READ_10 0x28\n#define UFI_WRITE_10 0x2A\n#define UFI_VERIFY_10 0x2F\n#define UFI_MODE_SELECT_10 0x55\n#define UFI_MODE_SENSE_10 0x5A\n\n//======================================================\n/* for mass storage */\nstruct CBW\n{\n uint32_t dCBWSignature;\n uint32_t dCBWTag;\n uint32_t dCBWDataTransferLength;\n uint8_t bmCBWFlags;\n uint8_t bCBWLUN;\n uint8_t bCBWCBLength;\n uint8_t u8OPCode;\n uint8_t u8LUN;\n uint8_t au8Data[14];\n};\n\nstruct CSW\n{\n uint32_t dCSWSignature;\n uint32_t dCSWTag;\n uint32_t dCSWDataResidue;\n uint8_t bCSWStatus;\n};\n\ntypedef struct Disk_Par_Inf \n{\n uint32_t partition_size,\n data_location,\n bpb_location,\n fat_location,\n rootdir_location,\n free_size;\n uint16_t rootdirentryno,\n totalcluster,\n NumCyl;\n uint8_t NumHead,\n NumSector,\n capacity,\n fatcopyno,\n fatsectorno,\n fat16flg;\n} Disk_Par_Info;\n\n/* extern flags */\nextern uint8_t g_u8BulkState;\nextern int32_t udcOnLine;\nextern int32_t g_bIsFirstRead;\nextern uint32_t usbDataReady;\nextern uint8_t g_u8UsbState;\n\n/* extern functions */\nvoid ReqSenCommand(void);\nvoid RdFmtCapCommand(void);\nvoid RdCurCapCommand(void);\nuint8_t udcFlashInit(void);\n\nvoid udcInit(void); \nvoid udcMassBulk(void);\n\n#endif\n"}
80,395
c
#ifndef _ASM_X86_SWIOTLB_H #define _ASM_X86_SWIOTLB_H #include <linux/swiotlb.h> #ifdef CONFIG_SWIOTLB extern int swiotlb; extern int __init pci_swiotlb_detect_override(void); extern int __init pci_swiotlb_detect_4gb(void); extern void __init pci_swiotlb_init(void); extern void __init pci_swiotlb_late_init(void); #else #define swiotlb 0 static inline int pci_swiotlb_detect_override(void) { return 0; } static inline int pci_swiotlb_detect_4gb(void) { return 0; } static inline void pci_swiotlb_init(void) { } static inline void pci_swiotlb_late_init(void) { } #endif static inline void dma_mark_clean(void *addr, size_t size) {} #endif /* _ASM_X86_SWIOTLB_H */
22.79
28
(translation_unit) "#ifndef _ASM_X86_SWIOTLB_H\n#define _ASM_X86_SWIOTLB_H\n\n#include <linux/swiotlb.h>\n\n#ifdef CONFIG_SWIOTLB\nextern int swiotlb;\nextern int __init pci_swiotlb_detect_override(void);\nextern int __init pci_swiotlb_detect_4gb(void);\nextern void __init pci_swiotlb_init(void);\nextern void __init pci_swiotlb_late_init(void);\n#else\n#define swiotlb 0\nstatic inline int pci_swiotlb_detect_override(void)\n{\n return 0;\n}\nstatic inline int pci_swiotlb_detect_4gb(void)\n{\n return 0;\n}\nstatic inline void pci_swiotlb_init(void)\n{\n}\nstatic inline void pci_swiotlb_late_init(void)\n{\n}\n#endif\n\nstatic inline void dma_mark_clean(void *addr, size_t size) {}\n\n#endif /* _ASM_X86_SWIOTLB_H */\n" (preproc_ifdef) "#ifndef _ASM_X86_SWIOTLB_H\n#define _ASM_X86_SWIOTLB_H\n\n#include <linux/swiotlb.h>\n\n#ifdef CONFIG_SWIOTLB\nextern int swiotlb;\nextern int __init pci_swiotlb_detect_override(void);\nextern int __init pci_swiotlb_detect_4gb(void);\nextern void __init pci_swiotlb_init(void);\nextern void __init pci_swiotlb_late_init(void);\n#else\n#define swiotlb 0\nstatic inline int pci_swiotlb_detect_override(void)\n{\n return 0;\n}\nstatic inline int pci_swiotlb_detect_4gb(void)\n{\n return 0;\n}\nstatic inline void pci_swiotlb_init(void)\n{\n}\nstatic inline void pci_swiotlb_late_init(void)\n{\n}\n#endif\n\nstatic inline void dma_mark_clean(void *addr, size_t size) {}\n\n#endif" (#ifndef) "#ifndef" (identifier) "_ASM_X86_SWIOTLB_H" (preproc_def) "#define _ASM_X86_SWIOTLB_H\n" (#define) "#define" (identifier) "_ASM_X86_SWIOTLB_H" (preproc_include) "#include <linux/swiotlb.h>\n" (#include) "#include" (system_lib_string) "<linux/swiotlb.h>" (preproc_ifdef) "#ifdef CONFIG_SWIOTLB\nextern int swiotlb;\nextern int __init pci_swiotlb_detect_override(void);\nextern int __init pci_swiotlb_detect_4gb(void);\nextern void __init pci_swiotlb_init(void);\nextern void __init pci_swiotlb_late_init(void);\n#else\n#define swiotlb 0\nstatic inline int pci_swiotlb_detect_override(void)\n{\n return 0;\n}\nstatic inline int pci_swiotlb_detect_4gb(void)\n{\n return 0;\n}\nstatic inline void pci_swiotlb_init(void)\n{\n}\nstatic inline void pci_swiotlb_late_init(void)\n{\n}\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_SWIOTLB" (declaration) "extern int swiotlb;" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (identifier) "swiotlb" (;) ";" (declaration) "extern int __init pci_swiotlb_detect_override(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (ERROR) "__init" (identifier) "__init" (function_declarator) "pci_swiotlb_detect_override(void)" (identifier) "pci_swiotlb_detect_override" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "extern int __init pci_swiotlb_detect_4gb(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "int" (ERROR) "__init" (identifier) "__init" (function_declarator) "pci_swiotlb_detect_4gb(void)" (identifier) "pci_swiotlb_detect_4gb" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "extern void __init pci_swiotlb_init(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (ERROR) "__init" (identifier) "__init" (function_declarator) "pci_swiotlb_init(void)" (identifier) "pci_swiotlb_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (declaration) "extern void __init pci_swiotlb_late_init(void);" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "void" (ERROR) "__init" (identifier) "__init" (function_declarator) "pci_swiotlb_late_init(void)" (identifier) "pci_swiotlb_late_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (;) ";" (preproc_else) "#else\n#define swiotlb 0\nstatic inline int pci_swiotlb_detect_override(void)\n{\n return 0;\n}\nstatic inline int pci_swiotlb_detect_4gb(void)\n{\n return 0;\n}\nstatic inline void pci_swiotlb_init(void)\n{\n}\nstatic inline void pci_swiotlb_late_init(void)\n{\n}" (#else) "#else" (preproc_def) "#define swiotlb 0\n" (#define) "#define" (identifier) "swiotlb" (preproc_arg) "0" (function_definition) "static inline int pci_swiotlb_detect_override(void)\n{\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "pci_swiotlb_detect_override(void)" (identifier) "pci_swiotlb_detect_override" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static inline int pci_swiotlb_detect_4gb(void)\n{\n return 0;\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "int" (function_declarator) "pci_swiotlb_detect_4gb(void)" (identifier) "pci_swiotlb_detect_4gb" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n return 0;\n}" ({) "{" (return_statement) "return 0;" (return) "return" (number_literal) "0" (;) ";" (}) "}" (function_definition) "static inline void pci_swiotlb_init(void)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "pci_swiotlb_init(void)" (identifier) "pci_swiotlb_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (function_definition) "static inline void pci_swiotlb_late_init(void)\n{\n}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "pci_swiotlb_late_init(void)" (identifier) "pci_swiotlb_late_init" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primitive_type) "void" ()) ")" (compound_statement) "{\n}" ({) "{" (}) "}" (#endif) "#endif" (function_definition) "static inline void dma_mark_clean(void *addr, size_t size) {}" (storage_class_specifier) "static" (static) "static" (storage_class_specifier) "inline" (inline) "inline" (primitive_type) "void" (function_declarator) "dma_mark_clean(void *addr, size_t size)" (identifier) "dma_mark_clean" (parameter_list) "(void *addr, size_t size)" (() "(" (parameter_declaration) "void *addr" (primitive_type) "void" (pointer_declarator) "*addr" (*) "*" (identifier) "addr" (,) "," (parameter_declaration) "size_t size" (primitive_type) "size_t" (identifier) "size" ()) ")" (compound_statement) "{}" ({) "{" (}) "}" (#endif) "#endif" (comment) "/* _ASM_X86_SWIOTLB_H */"
179
4
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 22.79, "nodes": 124, "errors": 0, "source_hash": "54edbb62860e373e0e75f1a855d5951123ab0b9f354d999a473b39b597ff8b41", "categorized_nodes": 72}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _ASM_X86_SWIOTLB_H\n#define _ASM_X86_SWIOTLB_H\n\n#include <linux/swiotlb.h>\n\n#ifdef CONFIG_SWIOTLB\nextern int swiotlb;\nextern int __init pci_swiotlb_detect_override(void);\nextern int __init pci_swiotlb_detect_4gb(void);\nextern void __init pci_swiotlb_init(void);\nextern void __init pci_swiotlb_late_init(void);\n#else\n#define swiotlb 0\nstatic inline int pci_swiotlb_detect_override(void)\n{\n\treturn 0;\n}\nstatic inline int pci_swiotlb_detect_4gb(void)\n{\n\treturn 0;\n}\nstatic inline void pci_swiotlb_init(void)\n{\n}\nstatic inline void pci_swiotlb_late_init(void)\n{\n}\n#endif\n\nstatic inline void dma_mark_clean(void *addr, size_t size) {}\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 108, 123], "start_point": {"row": 0, "column": 0}, "end_point": {"row": 31, "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": "_ASM_X86_SWIOTLB_H", "parent": 0, "children": [], "start_point": {"row": 0, "column": 8}, "end_point": {"row": 0, "column": 26}}, {"id": 3, "type": "preproc_def", "text": "#define _ASM_X86_SWIOTLB_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": "_ASM_X86_SWIOTLB_H", "parent": 3, "children": [], "start_point": {"row": 1, "column": 8}, "end_point": {"row": 1, "column": 26}}, {"id": 6, "type": "preproc_include", "text": "#include <linux/swiotlb.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 4, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 3, "column": 0}, "end_point": {"row": 3, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<linux/swiotlb.h>", "parent": 6, "children": [], "start_point": {"row": 3, "column": 9}, "end_point": {"row": 3, "column": 26}}, {"id": 9, "type": "preproc_ifdef", "text": "#ifdef CONFIG_SWIOTLB\nextern int swiotlb;\nextern int __init pci_swiotlb_detect_override(void);\nextern int __init pci_swiotlb_detect_4gb(void);\nextern void __init pci_swiotlb_init(void);\nextern void __init pci_swiotlb_late_init(void);\n#else\n#define swiotlb 0\nstatic inline int pci_swiotlb_detect_override(void)\n{\n\treturn 0;\n}\nstatic inline int pci_swiotlb_detect_4gb(void)\n{\n\treturn 0;\n}\nstatic inline void pci_swiotlb_init(void)\n{\n}\nstatic inline void pci_swiotlb_late_init(void)\n{\n}\n#endif", "parent": 0, "children": [10, 11, 12, 17, 28, 39, 50, 61, 107], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 10, "type": "#ifdef", "text": "#ifdef", "parent": 9, "children": [], "start_point": {"row": 5, "column": 0}, "end_point": {"row": 5, "column": 6}}, {"id": 11, "type": "identifier", "text": "CONFIG_SWIOTLB", "parent": 9, "children": [], "start_point": {"row": 5, "column": 7}, "end_point": {"row": 5, "column": 21}}, {"id": 12, "type": "declaration", "text": "extern int swiotlb;", "parent": 9, "children": [13, 15, 16], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 19}}, {"id": 13, "type": "storage_class_specifier", "text": "extern", "parent": 12, "children": [14], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 14, "type": "extern", "text": "extern", "parent": 13, "children": [], "start_point": {"row": 6, "column": 0}, "end_point": {"row": 6, "column": 6}}, {"id": 15, "type": "primitive_type", "text": "int", "parent": 12, "children": [], "start_point": {"row": 6, "column": 7}, "end_point": {"row": 6, "column": 10}}, {"id": 16, "type": "identifier", "text": "swiotlb", "parent": 12, "children": [], "start_point": {"row": 6, "column": 11}, "end_point": {"row": 6, "column": 18}}, {"id": 17, "type": "declaration", "text": "extern int __init pci_swiotlb_detect_override(void);", "parent": 9, "children": [18, 20, 21, 23], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 52}}, {"id": 18, "type": "storage_class_specifier", "text": "extern", "parent": 17, "children": [19], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 19, "type": "extern", "text": "extern", "parent": 18, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 6}}, {"id": 20, "type": "primitive_type", "text": "int", "parent": 17, "children": [], "start_point": {"row": 7, "column": 7}, "end_point": {"row": 7, "column": 10}}, {"id": 21, "type": "ERROR", "text": "__init", "parent": 17, "children": [22], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 17}}, {"id": 22, "type": "identifier", "text": "__init", "parent": 21, "children": [], "start_point": {"row": 7, "column": 11}, "end_point": {"row": 7, "column": 17}}, {"id": 23, "type": "function_declarator", "text": "pci_swiotlb_detect_override(void)", "parent": 17, "children": [24, 25], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 51}}, {"id": 24, "type": "identifier", "text": "pci_swiotlb_detect_override", "parent": 23, "children": [], "start_point": {"row": 7, "column": 18}, "end_point": {"row": 7, "column": 45}}, {"id": 25, "type": "parameter_list", "text": "(void)", "parent": 23, "children": [26], "start_point": {"row": 7, "column": 45}, "end_point": {"row": 7, "column": 51}}, {"id": 26, "type": "parameter_declaration", "text": "void", "parent": 25, "children": [27], "start_point": {"row": 7, "column": 46}, "end_point": {"row": 7, "column": 50}}, {"id": 27, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 7, "column": 46}, "end_point": {"row": 7, "column": 50}}, {"id": 28, "type": "declaration", "text": "extern int __init pci_swiotlb_detect_4gb(void);", "parent": 9, "children": [29, 31, 32, 34], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 47}}, {"id": 29, "type": "storage_class_specifier", "text": "extern", "parent": 28, "children": [30], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 30, "type": "extern", "text": "extern", "parent": 29, "children": [], "start_point": {"row": 8, "column": 0}, "end_point": {"row": 8, "column": 6}}, {"id": 31, "type": "primitive_type", "text": "int", "parent": 28, "children": [], "start_point": {"row": 8, "column": 7}, "end_point": {"row": 8, "column": 10}}, {"id": 32, "type": "ERROR", "text": "__init", "parent": 28, "children": [33], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 17}}, {"id": 33, "type": "identifier", "text": "__init", "parent": 32, "children": [], "start_point": {"row": 8, "column": 11}, "end_point": {"row": 8, "column": 17}}, {"id": 34, "type": "function_declarator", "text": "pci_swiotlb_detect_4gb(void)", "parent": 28, "children": [35, 36], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 46}}, {"id": 35, "type": "identifier", "text": "pci_swiotlb_detect_4gb", "parent": 34, "children": [], "start_point": {"row": 8, "column": 18}, "end_point": {"row": 8, "column": 40}}, {"id": 36, "type": "parameter_list", "text": "(void)", "parent": 34, "children": [37], "start_point": {"row": 8, "column": 40}, "end_point": {"row": 8, "column": 46}}, {"id": 37, "type": "parameter_declaration", "text": "void", "parent": 36, "children": [38], "start_point": {"row": 8, "column": 41}, "end_point": {"row": 8, "column": 45}}, {"id": 38, "type": "primitive_type", "text": "void", "parent": 37, "children": [], "start_point": {"row": 8, "column": 41}, "end_point": {"row": 8, "column": 45}}, {"id": 39, "type": "declaration", "text": "extern void __init pci_swiotlb_init(void);", "parent": 9, "children": [40, 42, 43, 45], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 42}}, {"id": 40, "type": "storage_class_specifier", "text": "extern", "parent": 39, "children": [41], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 41, "type": "extern", "text": "extern", "parent": 40, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 6}}, {"id": 42, "type": "primitive_type", "text": "void", "parent": 39, "children": [], "start_point": {"row": 9, "column": 7}, "end_point": {"row": 9, "column": 11}}, {"id": 43, "type": "ERROR", "text": "__init", "parent": 39, "children": [44], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 18}}, {"id": 44, "type": "identifier", "text": "__init", "parent": 43, "children": [], "start_point": {"row": 9, "column": 12}, "end_point": {"row": 9, "column": 18}}, {"id": 45, "type": "function_declarator", "text": "pci_swiotlb_init(void)", "parent": 39, "children": [46, 47], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 41}}, {"id": 46, "type": "identifier", "text": "pci_swiotlb_init", "parent": 45, "children": [], "start_point": {"row": 9, "column": 19}, "end_point": {"row": 9, "column": 35}}, {"id": 47, "type": "parameter_list", "text": "(void)", "parent": 45, "children": [48], "start_point": {"row": 9, "column": 35}, "end_point": {"row": 9, "column": 41}}, {"id": 48, "type": "parameter_declaration", "text": "void", "parent": 47, "children": [49], "start_point": {"row": 9, "column": 36}, "end_point": {"row": 9, "column": 40}}, {"id": 49, "type": "primitive_type", "text": "void", "parent": 48, "children": [], "start_point": {"row": 9, "column": 36}, "end_point": {"row": 9, "column": 40}}, {"id": 50, "type": "declaration", "text": "extern void __init pci_swiotlb_late_init(void);", "parent": 9, "children": [51, 53, 54, 56], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 47}}, {"id": 51, "type": "storage_class_specifier", "text": "extern", "parent": 50, "children": [52], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 52, "type": "extern", "text": "extern", "parent": 51, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 6}}, {"id": 53, "type": "primitive_type", "text": "void", "parent": 50, "children": [], "start_point": {"row": 10, "column": 7}, "end_point": {"row": 10, "column": 11}}, {"id": 54, "type": "ERROR", "text": "__init", "parent": 50, "children": [55], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 18}}, {"id": 55, "type": "identifier", "text": "__init", "parent": 54, "children": [], "start_point": {"row": 10, "column": 12}, "end_point": {"row": 10, "column": 18}}, {"id": 56, "type": "function_declarator", "text": "pci_swiotlb_late_init(void)", "parent": 50, "children": [57, 58], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 46}}, {"id": 57, "type": "identifier", "text": "pci_swiotlb_late_init", "parent": 56, "children": [], "start_point": {"row": 10, "column": 19}, "end_point": {"row": 10, "column": 40}}, {"id": 58, "type": "parameter_list", "text": "(void)", "parent": 56, "children": [59], "start_point": {"row": 10, "column": 40}, "end_point": {"row": 10, "column": 46}}, {"id": 59, "type": "parameter_declaration", "text": "void", "parent": 58, "children": [60], "start_point": {"row": 10, "column": 41}, "end_point": {"row": 10, "column": 45}}, {"id": 60, "type": "primitive_type", "text": "void", "parent": 59, "children": [], "start_point": {"row": 10, "column": 41}, "end_point": {"row": 10, "column": 45}}, {"id": 61, "type": "preproc_else", "text": "#else\n#define swiotlb 0\nstatic inline int pci_swiotlb_detect_override(void)\n{\n\treturn 0;\n}\nstatic inline int pci_swiotlb_detect_4gb(void)\n{\n\treturn 0;\n}\nstatic inline void pci_swiotlb_init(void)\n{\n}\nstatic inline void pci_swiotlb_late_init(void)\n{\n}", "parent": 9, "children": [62, 63, 67, 78, 89, 98], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 62, "type": "#else", "text": "#else", "parent": 61, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 5}}, {"id": 63, "type": "preproc_def", "text": "#define swiotlb 0\n", "parent": 61, "children": [64, 65, 66], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 13, "column": 0}}, {"id": 64, "type": "#define", "text": "#define", "parent": 63, "children": [], "start_point": {"row": 12, "column": 0}, "end_point": {"row": 12, "column": 7}}, {"id": 65, "type": "identifier", "text": "swiotlb", "parent": 63, "children": [], "start_point": {"row": 12, "column": 8}, "end_point": {"row": 12, "column": 15}}, {"id": 66, "type": "preproc_arg", "text": "0", "parent": 63, "children": [], "start_point": {"row": 12, "column": 16}, "end_point": {"row": 12, "column": 17}}, {"id": 67, "type": "function_definition", "text": "static inline int pci_swiotlb_detect_override(void)\n{\n\treturn 0;\n}", "parent": 61, "children": [68, 70, 71], "start_point": {"row": 13, "column": 0}, "end_point": {"row": 16, "column": 1}}, {"id": 68, "type": "storage_class_specifier", "text": "inline", "parent": 67, "children": [69], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 13}}, {"id": 69, "type": "inline", "text": "inline", "parent": 68, "children": [], "start_point": {"row": 13, "column": 7}, "end_point": {"row": 13, "column": 13}}, {"id": 70, "type": "primitive_type", "text": "int", "parent": 67, "children": [], "start_point": {"row": 13, "column": 14}, "end_point": {"row": 13, "column": 17}}, {"id": 71, "type": "function_declarator", "text": "pci_swiotlb_detect_override(void)", "parent": 67, "children": [72, 73], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 51}}, {"id": 72, "type": "identifier", "text": "pci_swiotlb_detect_override", "parent": 71, "children": [], "start_point": {"row": 13, "column": 18}, "end_point": {"row": 13, "column": 45}}, {"id": 73, "type": "parameter_list", "text": "(void)", "parent": 71, "children": [74], "start_point": {"row": 13, "column": 45}, "end_point": {"row": 13, "column": 51}}, {"id": 74, "type": "parameter_declaration", "text": "void", "parent": 73, "children": [75], "start_point": {"row": 13, "column": 46}, "end_point": {"row": 13, "column": 50}}, {"id": 75, "type": "primitive_type", "text": "void", "parent": 74, "children": [], "start_point": {"row": 13, "column": 46}, "end_point": {"row": 13, "column": 50}}, {"id": 76, "type": "return_statement", "text": "return 0;", "parent": 67, "children": [77], "start_point": {"row": 15, "column": 1}, "end_point": {"row": 15, "column": 10}}, {"id": 77, "type": "number_literal", "text": "0", "parent": 76, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 9}}, {"id": 78, "type": "function_definition", "text": "static inline int pci_swiotlb_detect_4gb(void)\n{\n\treturn 0;\n}", "parent": 61, "children": [79, 81, 82], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 20, "column": 1}}, {"id": 79, "type": "storage_class_specifier", "text": "inline", "parent": 78, "children": [80], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 13}}, {"id": 80, "type": "inline", "text": "inline", "parent": 79, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 13}}, {"id": 81, "type": "primitive_type", "text": "int", "parent": 78, "children": [], "start_point": {"row": 17, "column": 14}, "end_point": {"row": 17, "column": 17}}, {"id": 82, "type": "function_declarator", "text": "pci_swiotlb_detect_4gb(void)", "parent": 78, "children": [83, 84], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 46}}, {"id": 83, "type": "identifier", "text": "pci_swiotlb_detect_4gb", "parent": 82, "children": [], "start_point": {"row": 17, "column": 18}, "end_point": {"row": 17, "column": 40}}, {"id": 84, "type": "parameter_list", "text": "(void)", "parent": 82, "children": [85], "start_point": {"row": 17, "column": 40}, "end_point": {"row": 17, "column": 46}}, {"id": 85, "type": "parameter_declaration", "text": "void", "parent": 84, "children": [86], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 45}}, {"id": 86, "type": "primitive_type", "text": "void", "parent": 85, "children": [], "start_point": {"row": 17, "column": 41}, "end_point": {"row": 17, "column": 45}}, {"id": 87, "type": "return_statement", "text": "return 0;", "parent": 78, "children": [88], "start_point": {"row": 19, "column": 1}, "end_point": {"row": 19, "column": 10}}, {"id": 88, "type": "number_literal", "text": "0", "parent": 87, "children": [], "start_point": {"row": 19, "column": 8}, "end_point": {"row": 19, "column": 9}}, {"id": 89, "type": "function_definition", "text": "static inline void pci_swiotlb_init(void)\n{\n}", "parent": 61, "children": [90, 92, 93], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 23, "column": 1}}, {"id": 90, "type": "storage_class_specifier", "text": "inline", "parent": 89, "children": [91], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 13}}, {"id": 91, "type": "inline", "text": "inline", "parent": 90, "children": [], "start_point": {"row": 21, "column": 7}, "end_point": {"row": 21, "column": 13}}, {"id": 92, "type": "primitive_type", "text": "void", "parent": 89, "children": [], "start_point": {"row": 21, "column": 14}, "end_point": {"row": 21, "column": 18}}, {"id": 93, "type": "function_declarator", "text": "pci_swiotlb_init(void)", "parent": 89, "children": [94, 95], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 41}}, {"id": 94, "type": "identifier", "text": "pci_swiotlb_init", "parent": 93, "children": [], "start_point": {"row": 21, "column": 19}, "end_point": {"row": 21, "column": 35}}, {"id": 95, "type": "parameter_list", "text": "(void)", "parent": 93, "children": [96], "start_point": {"row": 21, "column": 35}, "end_point": {"row": 21, "column": 41}}, {"id": 96, "type": "parameter_declaration", "text": "void", "parent": 95, "children": [97], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 40}}, {"id": 97, "type": "primitive_type", "text": "void", "parent": 96, "children": [], "start_point": {"row": 21, "column": 36}, "end_point": {"row": 21, "column": 40}}, {"id": 98, "type": "function_definition", "text": "static inline void pci_swiotlb_late_init(void)\n{\n}", "parent": 61, "children": [99, 101, 102], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 26, "column": 1}}, {"id": 99, "type": "storage_class_specifier", "text": "inline", "parent": 98, "children": [100], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 100, "type": "inline", "text": "inline", "parent": 99, "children": [], "start_point": {"row": 24, "column": 7}, "end_point": {"row": 24, "column": 13}}, {"id": 101, "type": "primitive_type", "text": "void", "parent": 98, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 18}}, {"id": 102, "type": "function_declarator", "text": "pci_swiotlb_late_init(void)", "parent": 98, "children": [103, 104], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 46}}, {"id": 103, "type": "identifier", "text": "pci_swiotlb_late_init", "parent": 102, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 40}}, {"id": 104, "type": "parameter_list", "text": "(void)", "parent": 102, "children": [105], "start_point": {"row": 24, "column": 40}, "end_point": {"row": 24, "column": 46}}, {"id": 105, "type": "parameter_declaration", "text": "void", "parent": 104, "children": [106], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 45}}, {"id": 106, "type": "primitive_type", "text": "void", "parent": 105, "children": [], "start_point": {"row": 24, "column": 41}, "end_point": {"row": 24, "column": 45}}, {"id": 107, "type": "#endif", "text": "#endif", "parent": 9, "children": [], "start_point": {"row": 27, "column": 0}, "end_point": {"row": 27, "column": 6}}, {"id": 108, "type": "function_definition", "text": "static inline void dma_mark_clean(void *addr, size_t size) {}", "parent": 0, "children": [109, 111, 112], "start_point": {"row": 29, "column": 0}, "end_point": {"row": 29, "column": 61}}, {"id": 109, "type": "storage_class_specifier", "text": "inline", "parent": 108, "children": [110], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 13}}, {"id": 110, "type": "inline", "text": "inline", "parent": 109, "children": [], "start_point": {"row": 29, "column": 7}, "end_point": {"row": 29, "column": 13}}, {"id": 111, "type": "primitive_type", "text": "void", "parent": 108, "children": [], "start_point": {"row": 29, "column": 14}, "end_point": {"row": 29, "column": 18}}, {"id": 112, "type": "function_declarator", "text": "dma_mark_clean(void *addr, size_t size)", "parent": 108, "children": [113, 114], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 58}}, {"id": 113, "type": "identifier", "text": "dma_mark_clean", "parent": 112, "children": [], "start_point": {"row": 29, "column": 19}, "end_point": {"row": 29, "column": 33}}, {"id": 114, "type": "parameter_list", "text": "(void *addr, size_t size)", "parent": 112, "children": [115, 120], "start_point": {"row": 29, "column": 33}, "end_point": {"row": 29, "column": 58}}, {"id": 115, "type": "parameter_declaration", "text": "void *addr", "parent": 114, "children": [116, 117], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 44}}, {"id": 116, "type": "primitive_type", "text": "void", "parent": 115, "children": [], "start_point": {"row": 29, "column": 34}, "end_point": {"row": 29, "column": 38}}, {"id": 117, "type": "pointer_declarator", "text": "*addr", "parent": 115, "children": [118, 119], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 44}}, {"id": 118, "type": "*", "text": "*", "parent": 117, "children": [], "start_point": {"row": 29, "column": 39}, "end_point": {"row": 29, "column": 40}}, {"id": 119, "type": "identifier", "text": "addr", "parent": 117, "children": [], "start_point": {"row": 29, "column": 40}, "end_point": {"row": 29, "column": 44}}, {"id": 120, "type": "parameter_declaration", "text": "size_t size", "parent": 114, "children": [121, 122], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 57}}, {"id": 121, "type": "primitive_type", "text": "size_t", "parent": 120, "children": [], "start_point": {"row": 29, "column": 46}, "end_point": {"row": 29, "column": 52}}, {"id": 122, "type": "identifier", "text": "size", "parent": 120, "children": [], "start_point": {"row": 29, "column": 53}, "end_point": {"row": 29, "column": 57}}, {"id": 123, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 6}}]}, "node_categories": {"declarations": {"functions": [23, 34, 45, 56, 67, 71, 78, 82, 89, 93, 98, 102, 108, 112], "variables": [12, 17, 26, 28, 37, 39, 48, 50, 59, 74, 85, 96, 105, 115, 120], "classes": [13, 18, 29, 40, 51, 68, 79, 90, 99, 109], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 9, 10, 11, 16, 22, 24, 33, 35, 44, 46, 55, 57, 65, 72, 83, 94, 103, 107, 113, 119, 122, 123], "returns": [76, 87], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 77, 88], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 23, "universal_type": "function", "name": "unknown", "text_snippet": "pci_swiotlb_detect_override(void)"}, {"node_id": 34, "universal_type": "function", "name": "unknown", "text_snippet": "pci_swiotlb_detect_4gb(void)"}, {"node_id": 45, "universal_type": "function", "name": "unknown", "text_snippet": "pci_swiotlb_init(void)"}, {"node_id": 56, "universal_type": "function", "name": "unknown", "text_snippet": "pci_swiotlb_late_init(void)"}, {"node_id": 67, "universal_type": "function", "name": "pci_swiotlb_detect_override", "text_snippet": "static inline int pci_swiotlb_detect_override(void)\n{\n\treturn 0;\n}"}, {"node_id": 71, "universal_type": "function", "name": "unknown", "text_snippet": "pci_swiotlb_detect_override(void)"}, {"node_id": 78, "universal_type": "function", "name": "pci_swiotlb_detect_4gb", "text_snippet": "static inline int pci_swiotlb_detect_4gb(void)\n{\n\treturn 0;\n}"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "pci_swiotlb_detect_4gb(void)"}, {"node_id": 89, "universal_type": "function", "name": "pci_swiotlb_init", "text_snippet": "static inline void pci_swiotlb_init(void)\n{\n}"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "pci_swiotlb_init(void)"}, {"node_id": 98, "universal_type": "function", "name": "pci_swiotlb_late_init", "text_snippet": "static inline void pci_swiotlb_late_init(void)\n{\n}"}, {"node_id": 102, "universal_type": "function", "name": "unknown", "text_snippet": "pci_swiotlb_late_init(void)"}, {"node_id": 108, "universal_type": "function", "name": "dma_mark_clean", "text_snippet": "static inline void dma_mark_clean(void *addr, size_t size) {}"}, {"node_id": 112, "universal_type": "function", "name": "unknown", "text_snippet": "dma_mark_clean(void *addr, size_t size)"}], "class_declarations": [{"node_id": 13, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 18, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 29, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 40, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 51, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 68, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 79, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 90, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 99, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}, {"node_id": 109, "universal_type": "class", "name": "unknown", "text_snippet": "inline"}], "import_statements": [{"node_id": 6, "text": "#include <linux/swiotlb.h>\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "#ifndef _ASM_X86_SWIOTLB_H\n#define _ASM_X86_SWIOTLB_H\n\n#include <linux/swiotlb.h>\n\n#ifdef CONFIG_SWIOTLB\nextern int swiotlb;\nextern int __init pci_swiotlb_detect_override(void);\nextern int __init pci_swiotlb_detect_4gb(void);\nextern void __init pci_swiotlb_init(void);\nextern void __init pci_swiotlb_late_init(void);\n#else\n#define swiotlb 0\nstatic inline int pci_swiotlb_detect_override(void)\n{\n\treturn 0;\n}\nstatic inline int pci_swiotlb_detect_4gb(void)\n{\n\treturn 0;\n}\nstatic inline void pci_swiotlb_init(void)\n{\n}\nstatic inline void pci_swiotlb_late_init(void)\n{\n}\n#endif\n\nstatic inline void dma_mark_clean(void *addr, size_t size) {}\n\n#endif /* _ASM_X86_SWIOTLB_H */\n"}
80,396
c
/* * Copyright 2018 - 2019 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef __USB_DC_MCUX_H__ #define __USB_DC_MCUX_H__ #include <usb/usb_dc.h> #include "usb_spec.h" /****************************************************************************** * Definitions *****************************************************************************/ /* EHCI instance count */ #ifdef CONFIG_USB_DC_NXP_EHCI #define USB_DEVICE_CONFIG_EHCI (1U) #else #define USB_DEVICE_CONFIG_EHCI (0U) #endif /* Macro to define controller handle */ typedef void *usb_device_handle; #define usb_device_controller_handle usb_device_handle /* controller driver do the ZLP for controler transfer automatically or not */ #define USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP (0) /* endpoint related macros */ #define EP0_MAX_PACKET_SIZE 64 #define EP0_OUT 0 #define EP0_IN 0x80 /* USB endpoint mask */ #define USB_ENDPOINT_NUMBER_MASK (0x0FU) /* The setup packet size of USB control transfer. */ #define USB_SETUP_PACKET_SIZE (8U) /* enter critical macros */ #define USB_OSA_SR_ALLOC() int usbOsaCurrentSr #define USB_OSA_ENTER_CRITICAL() usbOsaCurrentSr = irq_lock() #define USB_OSA_EXIT_CRITICAL() irq_unlock(usbOsaCurrentSr) /* Control endpoint index */ #define USB_CONTROL_ENDPOINT (0U) /* Default invalid value or the endpoint callback length of cancelled transfer*/ #define USB_UNINITIALIZED_VAL_32 (0xFFFFFFFFU) /* NXP SDK USB controller driver configuration macros */ #define USB_BDT #define USB_GLOBAL #define USB_DATA_ALIGN_SIZE 4 #define USB_RAM_ADDRESS_ALIGNMENT(n) __aligned(n) /* EHCI */ #if defined(CONFIG_NOCACHE_MEMORY) #define USB_CONTROLLER_DATA __nocache #else #define USB_CONTROLLER_DATA #endif /* How many the DTD are supported. */ #define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U) /* Control endpoint maxPacketSize */ #define USB_CONTROL_MAX_PACKET_SIZE (64U) /* Whether device is self power. 1U supported, 0U not supported */ #define USB_DEVICE_CONFIG_SELF_POWER (1U) /* USB controller ID */ typedef enum _usb_controller_index { /* KHCI 0U */ kUSB_ControllerKhci0 = 0U, /* KHCI 1U, Currently, there are no platforms which have two KHCI IPs, * this is reserved to be used in the future. */ kUSB_ControllerKhci1 = 1U, /* EHCI 0U */ kUSB_ControllerEhci0 = 2U, /* EHCI 1U, Currently, there are no platforms which have two EHCI IPs, * this is reserved to be used in the future. */ kUSB_ControllerEhci1 = 3U, /* LPC USB IP3511 FS controller 0 */ kUSB_ControllerLpcIp3511Fs0 = 4U, /* LPC USB IP3511 FS controller 1, there are no platforms which have two * IP3511 IPs, this is reserved to be used in the future. */ kUSB_ControllerLpcIp3511Fs1 = 5U, /* LPC USB IP3511 HS controller 0 */ kUSB_ControllerLpcIp3511Hs0 = 6U, /* LPC USB IP3511 HS controller 1, there are no platforms which have two * IP3511 IPs, this is reserved to be used in the future. */ kUSB_ControllerLpcIp3511Hs1 = 7U, } usb_controller_index_t; /* Control type for controller */ typedef enum _usb_device_control_type { /* Enable the device functionality */ kUSB_DeviceControlRun = 0U, /* Disable the device functionality */ kUSB_DeviceControlStop, /* Initialize a specified endpoint */ kUSB_DeviceControlEndpointInit, /* De-initialize a specified endpoint */ kUSB_DeviceControlEndpointDeinit, /* Stall a specified endpoint */ kUSB_DeviceControlEndpointStall, /* Unstall a specified endpoint */ kUSB_DeviceControlEndpointUnstall, /* Get device status */ kUSB_DeviceControlGetDeviceStatus, /* Get endpoint status */ kUSB_DeviceControlGetEndpointStatus, /* Set device address */ kUSB_DeviceControlSetDeviceAddress, /* Get current frame */ kUSB_DeviceControlGetSynchFrame, /* Drive controller to generate a resume signal in USB bus */ kUSB_DeviceControlResume, /* Drive controller to generate a LPM resume signal in USB bus */ kUSB_DeviceControlSleepResume, /* Drive controller to enetr into suspend mode */ kUSB_DeviceControlSuspend, /* Drive controller to enetr into sleep mode */ kUSB_DeviceControlSleep, /* Set controller to default status */ kUSB_DeviceControlSetDefaultStatus, /* Get current speed */ kUSB_DeviceControlGetSpeed, /* Get OTG status */ kUSB_DeviceControlGetOtgStatus, /* Set OTG status */ kUSB_DeviceControlSetOtgStatus, /* Drive xCHI into test mode */ kUSB_DeviceControlSetTestMode, /* Get flag of LPM Remote Wake-up Enabled by USB host. */ kUSB_DeviceControlGetRemoteWakeUp, #if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \ (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)) kUSB_DeviceControlDcdInitModule, kUSB_DeviceControlDcdDeinitModule, #endif } usb_device_control_type_t; /* Available notify types for device notification */ typedef enum _usb_device_notification { /* Reset signal detected */ kUSB_DeviceNotifyBusReset = 0x10U, /* Suspend signal detected */ kUSB_DeviceNotifySuspend, /* Resume signal detected */ kUSB_DeviceNotifyResume, /* LPM signal detected */ kUSB_DeviceNotifyLPMSleep, /* Resume signal detected */ kUSB_DeviceNotifyLPMResume, /* Errors happened in bus */ kUSB_DeviceNotifyError, /* Device disconnected from a host */ kUSB_DeviceNotifyDetach, /* Device connected to a host */ kUSB_DeviceNotifyAttach, #if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \ (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)) /* Device charger detection timeout */ kUSB_DeviceNotifyDcdTimeOut, /* Device charger detection unknown port type */ kUSB_DeviceNotifyDcdUnknownPortType, /* The SDP facility is detected */ kUSB_DeviceNotifySDPDetected, /* The charging port is detected */ kUSB_DeviceNotifyChargingPortDetected, /* The CDP facility is detected */ kUSB_DeviceNotifyChargingHostDetected, /* The DCP facility is detected */ kUSB_DeviceNotifyDedicatedChargerDetected, #endif } usb_device_notification_t; /* USB error code */ typedef enum _usb_status { /* Success */ kStatus_USB_Success = 0x00U, /* Failed */ kStatus_USB_Error, /* Busy */ kStatus_USB_Busy, /* Invalid handle */ kStatus_USB_InvalidHandle, /* Invalid parameter */ kStatus_USB_InvalidParameter, /* Invalid request */ kStatus_USB_InvalidRequest, /* Controller cannot be found */ kStatus_USB_ControllerNotFound, /* Invalid controller interface */ kStatus_USB_InvalidControllerInterface, /* Configuration is not supported */ kStatus_USB_NotSupported, /* Enumeration get configuration retry */ kStatus_USB_Retry, /* Transfer stalled */ kStatus_USB_TransferStall, /* Transfer failed */ kStatus_USB_TransferFailed, /* Allocation failed */ kStatus_USB_AllocFail, /* Insufficient swap buffer for KHCI */ kStatus_USB_LackSwapBuffer, /* The transfer cancelled */ kStatus_USB_TransferCancel, /* Allocate bandwidth failed */ kStatus_USB_BandwidthFail, /* For MSD, the CSW status means fail */ kStatus_USB_MSDStatusFail, kStatus_USB_EHCIAttached, kStatus_USB_EHCIDetached, } usb_status_t; /* Device notification message structure */ typedef struct _usb_device_callback_message_struct { u8_t *buffer; /* Transferred buffer */ u32_t length; /* Transferred data length */ u8_t code; /* Notification code */ u8_t isSetup; /* Is in a setup phase */ } usb_device_callback_message_struct_t; typedef struct usb_ep_ctrl_data { usb_device_callback_message_struct_t transfer_message; struct k_mem_block block; usb_dc_ep_callback callback; u16_t ep_mps; u8_t ep_type; u8_t ep_enabled : 1; u8_t ep_occupied : 1; } usb_ep_ctrl_data_t; /* USB device controller initialization function typedef */ typedef usb_status_t (*usb_device_controller_init_t)(u8_t controllerId, usb_device_handle handle, usb_device_controller_handle *controllerHandle); /* USB device controller de-initialization function typedef */ typedef usb_status_t (*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle); /* USB device controller send data function typedef */ typedef usb_status_t (*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle, u8_t endpointAddress, u8_t *buffer, u32_t length); /* USB device controller receive data function typedef */ typedef usb_status_t (*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle, u8_t endpointAddress, u8_t *buffer, u32_t length); /* USB device controller cancel transfer function * in a specified endpoint typedef */ typedef usb_status_t (*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle, u8_t endpointAddress); /* USB device controller control function typedef */ typedef usb_status_t (*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle, usb_device_control_type_t command, void *param); /* USB device controller interface structure */ typedef struct _usb_device_controller_interface_struct { /* Controller initialization */ usb_device_controller_init_t deviceInit; /* Controller de-initialization */ usb_device_controller_deinit_t deviceDeinit; /* Controller send data */ usb_device_controller_send_t deviceSend; /* Controller receive data */ usb_device_controller_recv_t deviceRecv; /* Controller cancel transfer */ usb_device_controller_cancel_t deviceCancel; /* Controller control */ usb_device_controller_control_t deviceControl; } usb_device_controller_interface_struct_t; typedef struct _usb_device_struct { /* Controller handle */ usb_device_controller_handle controllerHandle; /* Controller interface handle */ const usb_device_controller_interface_struct_t *interface; usb_dc_status_callback status_callback; usb_ep_ctrl_data_t *eps; bool attached; /* Current device address */ u8_t address; /* Controller ID */ u8_t controllerId; /* Current device state */ u8_t state; /* Is doing device reset or not */ u8_t isResetting; u8_t setupDataStage; } usb_device_struct_t; /* Endpoint status structure */ typedef struct _usb_device_endpoint_status_struct { /* Endpoint address */ u8_t endpointAddress; /* Endpoint status : idle or stalled */ u16_t endpointStatus; } usb_device_endpoint_status_struct_t; /* Defines endpoint state */ typedef enum _usb_endpoint_status { /* Endpoint state, idle*/ kUSB_DeviceEndpointStateIdle = 0U, /* Endpoint state, stalled*/ kUSB_DeviceEndpointStateStalled, } usb_device_endpoint_status_t; /* Endpoint initialization structure */ typedef struct _usb_device_endpoint_init_struct { /* Endpoint maximum packet size */ u16_t maxPacketSize; /* Endpoint address*/ u8_t endpointAddress; /* Endpoint transfer type*/ u8_t transferType; /* ZLT flag*/ u8_t zlt; } usb_device_endpoint_init_struct_t; #endif /* __USB_DC_MCUX_H__ */
34.55
303
(translation_unit) "/*\n * Copyright 2018 - 2019 NXP\n * All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef __USB_DC_MCUX_H__\n#define __USB_DC_MCUX_H__\n\n#include <usb/usb_dc.h>\n#include "usb_spec.h"\n\n/******************************************************************************\n * Definitions\n *****************************************************************************/\n/* EHCI instance count */\n#ifdef CONFIG_USB_DC_NXP_EHCI\n #define USB_DEVICE_CONFIG_EHCI (1U)\n#else\n #define USB_DEVICE_CONFIG_EHCI (0U)\n#endif\n\n/* Macro to define controller handle */\ntypedef void *usb_device_handle;\n#define usb_device_controller_handle usb_device_handle\n\n/* controller driver do the ZLP for controler transfer automatically or not */\n#define USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP (0)\n\n/* endpoint related macros */\n#define EP0_MAX_PACKET_SIZE 64\n#define EP0_OUT 0\n#define EP0_IN 0x80\n/* USB endpoint mask */\n#define USB_ENDPOINT_NUMBER_MASK (0x0FU)\n/* The setup packet size of USB control transfer. */\n#define USB_SETUP_PACKET_SIZE (8U)\n\n/* enter critical macros */\n#define USB_OSA_SR_ALLOC() int usbOsaCurrentSr\n#define USB_OSA_ENTER_CRITICAL() usbOsaCurrentSr = irq_lock()\n#define USB_OSA_EXIT_CRITICAL() irq_unlock(usbOsaCurrentSr)\n\n/* Control endpoint index */\n#define USB_CONTROL_ENDPOINT (0U)\n\n/* Default invalid value or the endpoint callback length of cancelled transfer*/\n#define USB_UNINITIALIZED_VAL_32 (0xFFFFFFFFU)\n\n/* NXP SDK USB controller driver configuration macros */\n#define USB_BDT\n#define USB_GLOBAL\n#define USB_DATA_ALIGN_SIZE 4\n#define USB_RAM_ADDRESS_ALIGNMENT(n) __aligned(n)\n\n/* EHCI */\n#if defined(CONFIG_NOCACHE_MEMORY)\n#define USB_CONTROLLER_DATA __nocache\n#else\n#define USB_CONTROLLER_DATA\n#endif\n/* How many the DTD are supported. */\n#define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U)\n/* Control endpoint maxPacketSize */\n#define USB_CONTROL_MAX_PACKET_SIZE (64U)\n\n/* Whether device is self power. 1U supported, 0U not supported */\n#define USB_DEVICE_CONFIG_SELF_POWER (1U)\n\n/* USB controller ID */\ntypedef enum _usb_controller_index {\n /* KHCI 0U */\n kUSB_ControllerKhci0 = 0U,\n /* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerKhci1 = 1U,\n\n /* EHCI 0U */\n kUSB_ControllerEhci0 = 2U,\n /* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerEhci1 = 3U,\n\n /* LPC USB IP3511 FS controller 0 */\n kUSB_ControllerLpcIp3511Fs0 = 4U,\n /* LPC USB IP3511 FS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Fs1 = 5U,\n\n /* LPC USB IP3511 HS controller 0 */\n kUSB_ControllerLpcIp3511Hs0 = 6U,\n /* LPC USB IP3511 HS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Hs1 = 7U,\n} usb_controller_index_t;\n\n/* Control type for controller */\ntypedef enum _usb_device_control_type {\n /* Enable the device functionality */\n kUSB_DeviceControlRun = 0U,\n /* Disable the device functionality */\n kUSB_DeviceControlStop,\n /* Initialize a specified endpoint */\n kUSB_DeviceControlEndpointInit,\n /* De-initialize a specified endpoint */\n kUSB_DeviceControlEndpointDeinit,\n /* Stall a specified endpoint */\n kUSB_DeviceControlEndpointStall,\n /* Unstall a specified endpoint */\n kUSB_DeviceControlEndpointUnstall,\n /* Get device status */\n kUSB_DeviceControlGetDeviceStatus,\n /* Get endpoint status */\n kUSB_DeviceControlGetEndpointStatus,\n /* Set device address */\n kUSB_DeviceControlSetDeviceAddress,\n /* Get current frame */\n kUSB_DeviceControlGetSynchFrame,\n /* Drive controller to generate a resume signal in USB bus */\n kUSB_DeviceControlResume,\n /* Drive controller to generate a LPM resume signal in USB bus */\n kUSB_DeviceControlSleepResume,\n /* Drive controller to enetr into suspend mode */\n kUSB_DeviceControlSuspend,\n /* Drive controller to enetr into sleep mode */\n kUSB_DeviceControlSleep,\n /* Set controller to default status */\n kUSB_DeviceControlSetDefaultStatus,\n /* Get current speed */\n kUSB_DeviceControlGetSpeed,\n /* Get OTG status */\n kUSB_DeviceControlGetOtgStatus,\n /* Set OTG status */\n kUSB_DeviceControlSetOtgStatus,\n /* Drive xCHI into test mode */\n kUSB_DeviceControlSetTestMode,\n /* Get flag of LPM Remote Wake-up Enabled by USB host. */\n kUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n kUSB_DeviceControlDcdInitModule,\n kUSB_DeviceControlDcdDeinitModule,\n#endif\n} usb_device_control_type_t;\n\n/* Available notify types for device notification */\ntypedef enum _usb_device_notification {\n /* Reset signal detected */\n kUSB_DeviceNotifyBusReset = 0x10U,\n /* Suspend signal detected */\n kUSB_DeviceNotifySuspend,\n /* Resume signal detected */\n kUSB_DeviceNotifyResume,\n /* LPM signal detected */\n kUSB_DeviceNotifyLPMSleep,\n /* Resume signal detected */\n kUSB_DeviceNotifyLPMResume,\n /* Errors happened in bus */\n kUSB_DeviceNotifyError,\n /* Device disconnected from a host */\n kUSB_DeviceNotifyDetach,\n /* Device connected to a host */\n kUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n /* Device charger detection timeout */\n kUSB_DeviceNotifyDcdTimeOut,\n /* Device charger detection unknown port type */\n kUSB_DeviceNotifyDcdUnknownPortType,\n /* The SDP facility is detected */\n kUSB_DeviceNotifySDPDetected,\n /* The charging port is detected */\n kUSB_DeviceNotifyChargingPortDetected,\n /* The CDP facility is detected */\n kUSB_DeviceNotifyChargingHostDetected,\n /* The DCP facility is detected */\n kUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n} usb_device_notification_t;\n\n/* USB error code */\ntypedef enum _usb_status {\n /* Success */\n kStatus_USB_Success = 0x00U,\n /* Failed */\n kStatus_USB_Error,\n\n /* Busy */\n kStatus_USB_Busy,\n /* Invalid handle */\n kStatus_USB_InvalidHandle,\n /* Invalid parameter */\n kStatus_USB_InvalidParameter,\n /* Invalid request */\n kStatus_USB_InvalidRequest,\n /* Controller cannot be found */\n kStatus_USB_ControllerNotFound,\n /* Invalid controller interface */\n kStatus_USB_InvalidControllerInterface,\n\n /* Configuration is not supported */\n kStatus_USB_NotSupported,\n /* Enumeration get configuration retry */\n kStatus_USB_Retry,\n /* Transfer stalled */\n kStatus_USB_TransferStall,\n /* Transfer failed */\n kStatus_USB_TransferFailed,\n /* Allocation failed */\n kStatus_USB_AllocFail,\n /* Insufficient swap buffer for KHCI */\n kStatus_USB_LackSwapBuffer,\n /* The transfer cancelled */\n kStatus_USB_TransferCancel,\n /* Allocate bandwidth failed */\n kStatus_USB_BandwidthFail,\n /* For MSD, the CSW status means fail */\n kStatus_USB_MSDStatusFail,\n kStatus_USB_EHCIAttached,\n kStatus_USB_EHCIDetached,\n} usb_status_t;\n\n/* Device notification message structure */\ntypedef struct _usb_device_callback_message_struct {\n u8_t *buffer; /* Transferred buffer */\n u32_t length; /* Transferred data length */\n u8_t code; /* Notification code */\n u8_t isSetup; /* Is in a setup phase */\n} usb_device_callback_message_struct_t;\n\ntypedef struct usb_ep_ctrl_data {\n usb_device_callback_message_struct_t transfer_message;\n struct k_mem_block block;\n usb_dc_ep_callback callback;\n u16_t ep_mps;\n u8_t ep_type;\n u8_t ep_enabled : 1;\n u8_t ep_occupied : 1;\n} usb_ep_ctrl_data_t;\n\n/* USB device controller initialization function typedef */\ntypedef usb_status_t (*usb_device_controller_init_t)(u8_t controllerId,\n usb_device_handle handle,\n usb_device_controller_handle *controllerHandle);\n\n/* USB device controller de-initialization function typedef */\ntypedef usb_status_t (*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle);\n\n/* USB device controller send data function typedef */\ntypedef usb_status_t (*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length);\n\n/* USB device controller receive data function typedef */\ntypedef usb_status_t (*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length);\n\n/* USB device controller cancel transfer function\n * in a specified endpoint typedef\n */\ntypedef usb_status_t (*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress);\n\n/* USB device controller control function typedef */\ntypedef usb_status_t (*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n usb_device_control_type_t command,\n void *param);\n\n/* USB device controller interface structure */\ntypedef struct _usb_device_controller_interface_struct {\n /* Controller initialization */\n usb_device_controller_init_t deviceInit;\n /* Controller de-initialization */\n usb_device_controller_deinit_t deviceDeinit;\n /* Controller send data */\n usb_device_controller_send_t deviceSend;\n /* Controller receive data */\n usb_device_controller_recv_t deviceRecv;\n /* Controller cancel transfer */\n usb_device_controller_cancel_t deviceCancel;\n /* Controller control */\n usb_device_controller_control_t deviceControl;\n} usb_device_controller_interface_struct_t;\n\ntypedef struct _usb_device_struct {\n /* Controller handle */\n usb_device_controller_handle controllerHandle;\n /* Controller interface handle */\n const usb_device_controller_interface_struct_t *interface;\n usb_dc_status_callback status_callback;\n usb_ep_ctrl_data_t *eps;\n bool attached;\n /* Current device address */\n u8_t address;\n /* Controller ID */\n u8_t controllerId;\n /* Current device state */\n u8_t state;\n /* Is doing device reset or not */\n u8_t isResetting;\n u8_t setupDataStage;\n} usb_device_struct_t;\n\n/* Endpoint status structure */\ntypedef struct _usb_device_endpoint_status_struct {\n /* Endpoint address */\n u8_t endpointAddress;\n /* Endpoint status : idle or stalled */\n u16_t endpointStatus;\n} usb_device_endpoint_status_struct_t;\n\n/* Defines endpoint state */\ntypedef enum _usb_endpoint_status {\n /* Endpoint state, idle*/\n kUSB_DeviceEndpointStateIdle = 0U,\n /* Endpoint state, stalled*/\n kUSB_DeviceEndpointStateStalled,\n} usb_device_endpoint_status_t;\n\n/* Endpoint initialization structure */\ntypedef struct _usb_device_endpoint_init_struct {\n /* Endpoint maximum packet size */\n u16_t maxPacketSize;\n /* Endpoint address*/\n u8_t endpointAddress;\n /* Endpoint transfer type*/\n u8_t transferType;\n /* ZLT flag*/\n u8_t zlt;\n} usb_device_endpoint_init_struct_t;\n\n#endif /* __USB_DC_MCUX_H__ */\n" (comment) "/*\n * Copyright 2018 - 2019 NXP\n * All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */" (preproc_ifdef) "#ifndef __USB_DC_MCUX_H__\n#define __USB_DC_MCUX_H__\n\n#include <usb/usb_dc.h>\n#include "usb_spec.h"\n\n/******************************************************************************\n * Definitions\n *****************************************************************************/\n/* EHCI instance count */\n#ifdef CONFIG_USB_DC_NXP_EHCI\n #define USB_DEVICE_CONFIG_EHCI (1U)\n#else\n #define USB_DEVICE_CONFIG_EHCI (0U)\n#endif\n\n/* Macro to define controller handle */\ntypedef void *usb_device_handle;\n#define usb_device_controller_handle usb_device_handle\n\n/* controller driver do the ZLP for controler transfer automatically or not */\n#define USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP (0)\n\n/* endpoint related macros */\n#define EP0_MAX_PACKET_SIZE 64\n#define EP0_OUT 0\n#define EP0_IN 0x80\n/* USB endpoint mask */\n#define USB_ENDPOINT_NUMBER_MASK (0x0FU)\n/* The setup packet size of USB control transfer. */\n#define USB_SETUP_PACKET_SIZE (8U)\n\n/* enter critical macros */\n#define USB_OSA_SR_ALLOC() int usbOsaCurrentSr\n#define USB_OSA_ENTER_CRITICAL() usbOsaCurrentSr = irq_lock()\n#define USB_OSA_EXIT_CRITICAL() irq_unlock(usbOsaCurrentSr)\n\n/* Control endpoint index */\n#define USB_CONTROL_ENDPOINT (0U)\n\n/* Default invalid value or the endpoint callback length of cancelled transfer*/\n#define USB_UNINITIALIZED_VAL_32 (0xFFFFFFFFU)\n\n/* NXP SDK USB controller driver configuration macros */\n#define USB_BDT\n#define USB_GLOBAL\n#define USB_DATA_ALIGN_SIZE 4\n#define USB_RAM_ADDRESS_ALIGNMENT(n) __aligned(n)\n\n/* EHCI */\n#if defined(CONFIG_NOCACHE_MEMORY)\n#define USB_CONTROLLER_DATA __nocache\n#else\n#define USB_CONTROLLER_DATA\n#endif\n/* How many the DTD are supported. */\n#define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U)\n/* Control endpoint maxPacketSize */\n#define USB_CONTROL_MAX_PACKET_SIZE (64U)\n\n/* Whether device is self power. 1U supported, 0U not supported */\n#define USB_DEVICE_CONFIG_SELF_POWER (1U)\n\n/* USB controller ID */\ntypedef enum _usb_controller_index {\n /* KHCI 0U */\n kUSB_ControllerKhci0 = 0U,\n /* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerKhci1 = 1U,\n\n /* EHCI 0U */\n kUSB_ControllerEhci0 = 2U,\n /* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerEhci1 = 3U,\n\n /* LPC USB IP3511 FS controller 0 */\n kUSB_ControllerLpcIp3511Fs0 = 4U,\n /* LPC USB IP3511 FS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Fs1 = 5U,\n\n /* LPC USB IP3511 HS controller 0 */\n kUSB_ControllerLpcIp3511Hs0 = 6U,\n /* LPC USB IP3511 HS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Hs1 = 7U,\n} usb_controller_index_t;\n\n/* Control type for controller */\ntypedef enum _usb_device_control_type {\n /* Enable the device functionality */\n kUSB_DeviceControlRun = 0U,\n /* Disable the device functionality */\n kUSB_DeviceControlStop,\n /* Initialize a specified endpoint */\n kUSB_DeviceControlEndpointInit,\n /* De-initialize a specified endpoint */\n kUSB_DeviceControlEndpointDeinit,\n /* Stall a specified endpoint */\n kUSB_DeviceControlEndpointStall,\n /* Unstall a specified endpoint */\n kUSB_DeviceControlEndpointUnstall,\n /* Get device status */\n kUSB_DeviceControlGetDeviceStatus,\n /* Get endpoint status */\n kUSB_DeviceControlGetEndpointStatus,\n /* Set device address */\n kUSB_DeviceControlSetDeviceAddress,\n /* Get current frame */\n kUSB_DeviceControlGetSynchFrame,\n /* Drive controller to generate a resume signal in USB bus */\n kUSB_DeviceControlResume,\n /* Drive controller to generate a LPM resume signal in USB bus */\n kUSB_DeviceControlSleepResume,\n /* Drive controller to enetr into suspend mode */\n kUSB_DeviceControlSuspend,\n /* Drive controller to enetr into sleep mode */\n kUSB_DeviceControlSleep,\n /* Set controller to default status */\n kUSB_DeviceControlSetDefaultStatus,\n /* Get current speed */\n kUSB_DeviceControlGetSpeed,\n /* Get OTG status */\n kUSB_DeviceControlGetOtgStatus,\n /* Set OTG status */\n kUSB_DeviceControlSetOtgStatus,\n /* Drive xCHI into test mode */\n kUSB_DeviceControlSetTestMode,\n /* Get flag of LPM Remote Wake-up Enabled by USB host. */\n kUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n kUSB_DeviceControlDcdInitModule,\n kUSB_DeviceControlDcdDeinitModule,\n#endif\n} usb_device_control_type_t;\n\n/* Available notify types for device notification */\ntypedef enum _usb_device_notification {\n /* Reset signal detected */\n kUSB_DeviceNotifyBusReset = 0x10U,\n /* Suspend signal detected */\n kUSB_DeviceNotifySuspend,\n /* Resume signal detected */\n kUSB_DeviceNotifyResume,\n /* LPM signal detected */\n kUSB_DeviceNotifyLPMSleep,\n /* Resume signal detected */\n kUSB_DeviceNotifyLPMResume,\n /* Errors happened in bus */\n kUSB_DeviceNotifyError,\n /* Device disconnected from a host */\n kUSB_DeviceNotifyDetach,\n /* Device connected to a host */\n kUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n /* Device charger detection timeout */\n kUSB_DeviceNotifyDcdTimeOut,\n /* Device charger detection unknown port type */\n kUSB_DeviceNotifyDcdUnknownPortType,\n /* The SDP facility is detected */\n kUSB_DeviceNotifySDPDetected,\n /* The charging port is detected */\n kUSB_DeviceNotifyChargingPortDetected,\n /* The CDP facility is detected */\n kUSB_DeviceNotifyChargingHostDetected,\n /* The DCP facility is detected */\n kUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n} usb_device_notification_t;\n\n/* USB error code */\ntypedef enum _usb_status {\n /* Success */\n kStatus_USB_Success = 0x00U,\n /* Failed */\n kStatus_USB_Error,\n\n /* Busy */\n kStatus_USB_Busy,\n /* Invalid handle */\n kStatus_USB_InvalidHandle,\n /* Invalid parameter */\n kStatus_USB_InvalidParameter,\n /* Invalid request */\n kStatus_USB_InvalidRequest,\n /* Controller cannot be found */\n kStatus_USB_ControllerNotFound,\n /* Invalid controller interface */\n kStatus_USB_InvalidControllerInterface,\n\n /* Configuration is not supported */\n kStatus_USB_NotSupported,\n /* Enumeration get configuration retry */\n kStatus_USB_Retry,\n /* Transfer stalled */\n kStatus_USB_TransferStall,\n /* Transfer failed */\n kStatus_USB_TransferFailed,\n /* Allocation failed */\n kStatus_USB_AllocFail,\n /* Insufficient swap buffer for KHCI */\n kStatus_USB_LackSwapBuffer,\n /* The transfer cancelled */\n kStatus_USB_TransferCancel,\n /* Allocate bandwidth failed */\n kStatus_USB_BandwidthFail,\n /* For MSD, the CSW status means fail */\n kStatus_USB_MSDStatusFail,\n kStatus_USB_EHCIAttached,\n kStatus_USB_EHCIDetached,\n} usb_status_t;\n\n/* Device notification message structure */\ntypedef struct _usb_device_callback_message_struct {\n u8_t *buffer; /* Transferred buffer */\n u32_t length; /* Transferred data length */\n u8_t code; /* Notification code */\n u8_t isSetup; /* Is in a setup phase */\n} usb_device_callback_message_struct_t;\n\ntypedef struct usb_ep_ctrl_data {\n usb_device_callback_message_struct_t transfer_message;\n struct k_mem_block block;\n usb_dc_ep_callback callback;\n u16_t ep_mps;\n u8_t ep_type;\n u8_t ep_enabled : 1;\n u8_t ep_occupied : 1;\n} usb_ep_ctrl_data_t;\n\n/* USB device controller initialization function typedef */\ntypedef usb_status_t (*usb_device_controller_init_t)(u8_t controllerId,\n usb_device_handle handle,\n usb_device_controller_handle *controllerHandle);\n\n/* USB device controller de-initialization function typedef */\ntypedef usb_status_t (*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle);\n\n/* USB device controller send data function typedef */\ntypedef usb_status_t (*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length);\n\n/* USB device controller receive data function typedef */\ntypedef usb_status_t (*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length);\n\n/* USB device controller cancel transfer function\n * in a specified endpoint typedef\n */\ntypedef usb_status_t (*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress);\n\n/* USB device controller control function typedef */\ntypedef usb_status_t (*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n usb_device_control_type_t command,\n void *param);\n\n/* USB device controller interface structure */\ntypedef struct _usb_device_controller_interface_struct {\n /* Controller initialization */\n usb_device_controller_init_t deviceInit;\n /* Controller de-initialization */\n usb_device_controller_deinit_t deviceDeinit;\n /* Controller send data */\n usb_device_controller_send_t deviceSend;\n /* Controller receive data */\n usb_device_controller_recv_t deviceRecv;\n /* Controller cancel transfer */\n usb_device_controller_cancel_t deviceCancel;\n /* Controller control */\n usb_device_controller_control_t deviceControl;\n} usb_device_controller_interface_struct_t;\n\ntypedef struct _usb_device_struct {\n /* Controller handle */\n usb_device_controller_handle controllerHandle;\n /* Controller interface handle */\n const usb_device_controller_interface_struct_t *interface;\n usb_dc_status_callback status_callback;\n usb_ep_ctrl_data_t *eps;\n bool attached;\n /* Current device address */\n u8_t address;\n /* Controller ID */\n u8_t controllerId;\n /* Current device state */\n u8_t state;\n /* Is doing device reset or not */\n u8_t isResetting;\n u8_t setupDataStage;\n} usb_device_struct_t;\n\n/* Endpoint status structure */\ntypedef struct _usb_device_endpoint_status_struct {\n /* Endpoint address */\n u8_t endpointAddress;\n /* Endpoint status : idle or stalled */\n u16_t endpointStatus;\n} usb_device_endpoint_status_struct_t;\n\n/* Defines endpoint state */\ntypedef enum _usb_endpoint_status {\n /* Endpoint state, idle*/\n kUSB_DeviceEndpointStateIdle = 0U,\n /* Endpoint state, stalled*/\n kUSB_DeviceEndpointStateStalled,\n} usb_device_endpoint_status_t;\n\n/* Endpoint initialization structure */\ntypedef struct _usb_device_endpoint_init_struct {\n /* Endpoint maximum packet size */\n u16_t maxPacketSize;\n /* Endpoint address*/\n u8_t endpointAddress;\n /* Endpoint transfer type*/\n u8_t transferType;\n /* ZLT flag*/\n u8_t zlt;\n} usb_device_endpoint_init_struct_t;\n\n#endif" (#ifndef) "#ifndef" (identifier) "__USB_DC_MCUX_H__" (preproc_def) "#define __USB_DC_MCUX_H__\n" (#define) "#define" (identifier) "__USB_DC_MCUX_H__" (preproc_include) "#include <usb/usb_dc.h>\n" (#include) "#include" (system_lib_string) "<usb/usb_dc.h>" (preproc_include) "#include "usb_spec.h"\n" (#include) "#include" (string_literal) ""usb_spec.h"" (") """ (string_content) "usb_spec.h" (") """ (comment) "/******************************************************************************\n * Definitions\n *****************************************************************************/" (comment) "/* EHCI instance count */" (preproc_ifdef) "#ifdef CONFIG_USB_DC_NXP_EHCI\n #define USB_DEVICE_CONFIG_EHCI (1U)\n#else\n #define USB_DEVICE_CONFIG_EHCI (0U)\n#endif" (#ifdef) "#ifdef" (identifier) "CONFIG_USB_DC_NXP_EHCI" (preproc_def) "#define USB_DEVICE_CONFIG_EHCI (1U)\n" (#define) "#define" (identifier) "USB_DEVICE_CONFIG_EHCI" (preproc_arg) "(1U)" (preproc_else) "#else\n #define USB_DEVICE_CONFIG_EHCI (0U)\n" (#else) "#else" (preproc_def) "#define USB_DEVICE_CONFIG_EHCI (0U)\n" (#define) "#define" (identifier) "USB_DEVICE_CONFIG_EHCI" (preproc_arg) "(0U)" (#endif) "#endif" (comment) "/* Macro to define controller handle */" (type_definition) "typedef void *usb_device_handle;" (typedef) "typedef" (primitive_type) "void" (pointer_declarator) "*usb_device_handle" (*) "*" (type_identifier) "usb_device_handle" (;) ";" (preproc_def) "#define usb_device_controller_handle usb_device_handle\n" (#define) "#define" (identifier) "usb_device_controller_handle" (preproc_arg) "usb_device_handle" (comment) "/* controller driver do the ZLP for controler transfer automatically or not */" (preproc_def) "#define USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP (0)\n" (#define) "#define" (identifier) "USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP" (preproc_arg) "(0)" (comment) "/* endpoint related macros */" (preproc_def) "#define EP0_MAX_PACKET_SIZE 64\n" (#define) "#define" (identifier) "EP0_MAX_PACKET_SIZE" (preproc_arg) "64" (preproc_def) "#define EP0_OUT 0\n" (#define) "#define" (identifier) "EP0_OUT" (preproc_arg) "0" (preproc_def) "#define EP0_IN 0x80\n" (#define) "#define" (identifier) "EP0_IN" (preproc_arg) "0x80" (comment) "/* USB endpoint mask */" (preproc_def) "#define USB_ENDPOINT_NUMBER_MASK (0x0FU)\n" (#define) "#define" (identifier) "USB_ENDPOINT_NUMBER_MASK" (preproc_arg) "(0x0FU)" (comment) "/* The setup packet size of USB control transfer. */" (preproc_def) "#define USB_SETUP_PACKET_SIZE (8U)\n" (#define) "#define" (identifier) "USB_SETUP_PACKET_SIZE" (preproc_arg) "(8U)" (comment) "/* enter critical macros */" (preproc_function_def) "#define USB_OSA_SR_ALLOC() int usbOsaCurrentSr\n" (#define) "#define" (identifier) "USB_OSA_SR_ALLOC" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "int usbOsaCurrentSr" (preproc_function_def) "#define USB_OSA_ENTER_CRITICAL() usbOsaCurrentSr = irq_lock()\n" (#define) "#define" (identifier) "USB_OSA_ENTER_CRITICAL" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "usbOsaCurrentSr = irq_lock()" (preproc_function_def) "#define USB_OSA_EXIT_CRITICAL() irq_unlock(usbOsaCurrentSr)\n" (#define) "#define" (identifier) "USB_OSA_EXIT_CRITICAL" (preproc_params) "()" (() "(" ()) ")" (preproc_arg) "irq_unlock(usbOsaCurrentSr)" (comment) "/* Control endpoint index */" (preproc_def) "#define USB_CONTROL_ENDPOINT (0U)\n" (#define) "#define" (identifier) "USB_CONTROL_ENDPOINT" (preproc_arg) "(0U)" (comment) "/* Default invalid value or the endpoint callback length of cancelled transfer*/" (preproc_def) "#define USB_UNINITIALIZED_VAL_32 (0xFFFFFFFFU)\n" (#define) "#define" (identifier) "USB_UNINITIALIZED_VAL_32" (preproc_arg) "(0xFFFFFFFFU)" (comment) "/* NXP SDK USB controller driver configuration macros */" (preproc_def) "#define USB_BDT\n" (#define) "#define" (identifier) "USB_BDT" (preproc_def) "#define USB_GLOBAL\n" (#define) "#define" (identifier) "USB_GLOBAL" (preproc_def) "#define USB_DATA_ALIGN_SIZE 4\n" (#define) "#define" (identifier) "USB_DATA_ALIGN_SIZE" (preproc_arg) "4" (preproc_function_def) "#define USB_RAM_ADDRESS_ALIGNMENT(n) __aligned(n)\n" (#define) "#define" (identifier) "USB_RAM_ADDRESS_ALIGNMENT" (preproc_params) "(n)" (() "(" (identifier) "n" ()) ")" (preproc_arg) "__aligned(n)" (comment) "/* EHCI */" (preproc_if) "#if defined(CONFIG_NOCACHE_MEMORY)\n#define USB_CONTROLLER_DATA __nocache\n#else\n#define USB_CONTROLLER_DATA\n#endif" (#if) "#if" (preproc_defined) "defined(CONFIG_NOCACHE_MEMORY)" (defined) "defined" (() "(" (identifier) "CONFIG_NOCACHE_MEMORY" ()) ")" ( ) "\n" (preproc_def) "#define USB_CONTROLLER_DATA __nocache\n" (#define) "#define" (identifier) "USB_CONTROLLER_DATA" (preproc_arg) "__nocache" (preproc_else) "#else\n#define USB_CONTROLLER_DATA\n" (#else) "#else" (preproc_def) "#define USB_CONTROLLER_DATA\n" (#define) "#define" (identifier) "USB_CONTROLLER_DATA" (#endif) "#endif" (comment) "/* How many the DTD are supported. */" (preproc_def) "#define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U)\n" (#define) "#define" (identifier) "USB_DEVICE_CONFIG_EHCI_MAX_DTD" (preproc_arg) "(16U)" (comment) "/* Control endpoint maxPacketSize */" (preproc_def) "#define USB_CONTROL_MAX_PACKET_SIZE (64U)\n" (#define) "#define" (identifier) "USB_CONTROL_MAX_PACKET_SIZE" (preproc_arg) "(64U)" (comment) "/* Whether device is self power. 1U supported, 0U not supported */" (preproc_def) "#define USB_DEVICE_CONFIG_SELF_POWER (1U)\n" (#define) "#define" (identifier) "USB_DEVICE_CONFIG_SELF_POWER" (preproc_arg) "(1U)" (comment) "/* USB controller ID */" (type_definition) "typedef enum _usb_controller_index {\n /* KHCI 0U */\n kUSB_ControllerKhci0 = 0U,\n /* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerKhci1 = 1U,\n\n /* EHCI 0U */\n kUSB_ControllerEhci0 = 2U,\n /* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerEhci1 = 3U,\n\n /* LPC USB IP3511 FS controller 0 */\n kUSB_ControllerLpcIp3511Fs0 = 4U,\n /* LPC USB IP3511 FS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Fs1 = 5U,\n\n /* LPC USB IP3511 HS controller 0 */\n kUSB_ControllerLpcIp3511Hs0 = 6U,\n /* LPC USB IP3511 HS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Hs1 = 7U,\n} usb_controller_index_t;" (typedef) "typedef" (enum_specifier) "enum _usb_controller_index {\n /* KHCI 0U */\n kUSB_ControllerKhci0 = 0U,\n /* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerKhci1 = 1U,\n\n /* EHCI 0U */\n kUSB_ControllerEhci0 = 2U,\n /* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerEhci1 = 3U,\n\n /* LPC USB IP3511 FS controller 0 */\n kUSB_ControllerLpcIp3511Fs0 = 4U,\n /* LPC USB IP3511 FS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Fs1 = 5U,\n\n /* LPC USB IP3511 HS controller 0 */\n kUSB_ControllerLpcIp3511Hs0 = 6U,\n /* LPC USB IP3511 HS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Hs1 = 7U,\n}" (enum) "enum" (type_identifier) "_usb_controller_index" (enumerator_list) "{\n /* KHCI 0U */\n kUSB_ControllerKhci0 = 0U,\n /* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerKhci1 = 1U,\n\n /* EHCI 0U */\n kUSB_ControllerEhci0 = 2U,\n /* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n * this is reserved to be used in the future.\n */\n kUSB_ControllerEhci1 = 3U,\n\n /* LPC USB IP3511 FS controller 0 */\n kUSB_ControllerLpcIp3511Fs0 = 4U,\n /* LPC USB IP3511 FS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Fs1 = 5U,\n\n /* LPC USB IP3511 HS controller 0 */\n kUSB_ControllerLpcIp3511Hs0 = 6U,\n /* LPC USB IP3511 HS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */\n kUSB_ControllerLpcIp3511Hs1 = 7U,\n}" ({) "{" (comment) "/* KHCI 0U */" (enumerator) "kUSB_ControllerKhci0 = 0U" (identifier) "kUSB_ControllerKhci0" (=) "=" (number_literal) "0U" (,) "," (comment) "/* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n * this is reserved to be used in the future.\n */" (enumerator) "kUSB_ControllerKhci1 = 1U" (identifier) "kUSB_ControllerKhci1" (=) "=" (number_literal) "1U" (,) "," (comment) "/* EHCI 0U */" (enumerator) "kUSB_ControllerEhci0 = 2U" (identifier) "kUSB_ControllerEhci0" (=) "=" (number_literal) "2U" (,) "," (comment) "/* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n * this is reserved to be used in the future.\n */" (enumerator) "kUSB_ControllerEhci1 = 3U" (identifier) "kUSB_ControllerEhci1" (=) "=" (number_literal) "3U" (,) "," (comment) "/* LPC USB IP3511 FS controller 0 */" (enumerator) "kUSB_ControllerLpcIp3511Fs0 = 4U" (identifier) "kUSB_ControllerLpcIp3511Fs0" (=) "=" (number_literal) "4U" (,) "," (comment) "/* LPC USB IP3511 FS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */" (enumerator) "kUSB_ControllerLpcIp3511Fs1 = 5U" (identifier) "kUSB_ControllerLpcIp3511Fs1" (=) "=" (number_literal) "5U" (,) "," (comment) "/* LPC USB IP3511 HS controller 0 */" (enumerator) "kUSB_ControllerLpcIp3511Hs0 = 6U" (identifier) "kUSB_ControllerLpcIp3511Hs0" (=) "=" (number_literal) "6U" (,) "," (comment) "/* LPC USB IP3511 HS controller 1, there are no platforms which have two\n * IP3511 IPs, this is reserved to be used in the future.\n */" (enumerator) "kUSB_ControllerLpcIp3511Hs1 = 7U" (identifier) "kUSB_ControllerLpcIp3511Hs1" (=) "=" (number_literal) "7U" (,) "," (}) "}" (type_identifier) "usb_controller_index_t" (;) ";" (comment) "/* Control type for controller */" (type_definition) "typedef enum _usb_device_control_type {\n /* Enable the device functionality */\n kUSB_DeviceControlRun = 0U,\n /* Disable the device functionality */\n kUSB_DeviceControlStop,\n /* Initialize a specified endpoint */\n kUSB_DeviceControlEndpointInit,\n /* De-initialize a specified endpoint */\n kUSB_DeviceControlEndpointDeinit,\n /* Stall a specified endpoint */\n kUSB_DeviceControlEndpointStall,\n /* Unstall a specified endpoint */\n kUSB_DeviceControlEndpointUnstall,\n /* Get device status */\n kUSB_DeviceControlGetDeviceStatus,\n /* Get endpoint status */\n kUSB_DeviceControlGetEndpointStatus,\n /* Set device address */\n kUSB_DeviceControlSetDeviceAddress,\n /* Get current frame */\n kUSB_DeviceControlGetSynchFrame,\n /* Drive controller to generate a resume signal in USB bus */\n kUSB_DeviceControlResume,\n /* Drive controller to generate a LPM resume signal in USB bus */\n kUSB_DeviceControlSleepResume,\n /* Drive controller to enetr into suspend mode */\n kUSB_DeviceControlSuspend,\n /* Drive controller to enetr into sleep mode */\n kUSB_DeviceControlSleep,\n /* Set controller to default status */\n kUSB_DeviceControlSetDefaultStatus,\n /* Get current speed */\n kUSB_DeviceControlGetSpeed,\n /* Get OTG status */\n kUSB_DeviceControlGetOtgStatus,\n /* Set OTG status */\n kUSB_DeviceControlSetOtgStatus,\n /* Drive xCHI into test mode */\n kUSB_DeviceControlSetTestMode,\n /* Get flag of LPM Remote Wake-up Enabled by USB host. */\n kUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n kUSB_DeviceControlDcdInitModule,\n kUSB_DeviceControlDcdDeinitModule,\n#endif\n} usb_device_control_type_t;" (typedef) "typedef" (enum_specifier) "enum _usb_device_control_type {\n /* Enable the device functionality */\n kUSB_DeviceControlRun = 0U,\n /* Disable the device functionality */\n kUSB_DeviceControlStop,\n /* Initialize a specified endpoint */\n kUSB_DeviceControlEndpointInit,\n /* De-initialize a specified endpoint */\n kUSB_DeviceControlEndpointDeinit,\n /* Stall a specified endpoint */\n kUSB_DeviceControlEndpointStall,\n /* Unstall a specified endpoint */\n kUSB_DeviceControlEndpointUnstall,\n /* Get device status */\n kUSB_DeviceControlGetDeviceStatus,\n /* Get endpoint status */\n kUSB_DeviceControlGetEndpointStatus,\n /* Set device address */\n kUSB_DeviceControlSetDeviceAddress,\n /* Get current frame */\n kUSB_DeviceControlGetSynchFrame,\n /* Drive controller to generate a resume signal in USB bus */\n kUSB_DeviceControlResume,\n /* Drive controller to generate a LPM resume signal in USB bus */\n kUSB_DeviceControlSleepResume,\n /* Drive controller to enetr into suspend mode */\n kUSB_DeviceControlSuspend,\n /* Drive controller to enetr into sleep mode */\n kUSB_DeviceControlSleep,\n /* Set controller to default status */\n kUSB_DeviceControlSetDefaultStatus,\n /* Get current speed */\n kUSB_DeviceControlGetSpeed,\n /* Get OTG status */\n kUSB_DeviceControlGetOtgStatus,\n /* Set OTG status */\n kUSB_DeviceControlSetOtgStatus,\n /* Drive xCHI into test mode */\n kUSB_DeviceControlSetTestMode,\n /* Get flag of LPM Remote Wake-up Enabled by USB host. */\n kUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n kUSB_DeviceControlDcdInitModule,\n kUSB_DeviceControlDcdDeinitModule,\n#endif\n}" (enum) "enum" (type_identifier) "_usb_device_control_type" (enumerator_list) "{\n /* Enable the device functionality */\n kUSB_DeviceControlRun = 0U,\n /* Disable the device functionality */\n kUSB_DeviceControlStop,\n /* Initialize a specified endpoint */\n kUSB_DeviceControlEndpointInit,\n /* De-initialize a specified endpoint */\n kUSB_DeviceControlEndpointDeinit,\n /* Stall a specified endpoint */\n kUSB_DeviceControlEndpointStall,\n /* Unstall a specified endpoint */\n kUSB_DeviceControlEndpointUnstall,\n /* Get device status */\n kUSB_DeviceControlGetDeviceStatus,\n /* Get endpoint status */\n kUSB_DeviceControlGetEndpointStatus,\n /* Set device address */\n kUSB_DeviceControlSetDeviceAddress,\n /* Get current frame */\n kUSB_DeviceControlGetSynchFrame,\n /* Drive controller to generate a resume signal in USB bus */\n kUSB_DeviceControlResume,\n /* Drive controller to generate a LPM resume signal in USB bus */\n kUSB_DeviceControlSleepResume,\n /* Drive controller to enetr into suspend mode */\n kUSB_DeviceControlSuspend,\n /* Drive controller to enetr into sleep mode */\n kUSB_DeviceControlSleep,\n /* Set controller to default status */\n kUSB_DeviceControlSetDefaultStatus,\n /* Get current speed */\n kUSB_DeviceControlGetSpeed,\n /* Get OTG status */\n kUSB_DeviceControlGetOtgStatus,\n /* Set OTG status */\n kUSB_DeviceControlSetOtgStatus,\n /* Drive xCHI into test mode */\n kUSB_DeviceControlSetTestMode,\n /* Get flag of LPM Remote Wake-up Enabled by USB host. */\n kUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n kUSB_DeviceControlDcdInitModule,\n kUSB_DeviceControlDcdDeinitModule,\n#endif\n}" ({) "{" (comment) "/* Enable the device functionality */" (enumerator) "kUSB_DeviceControlRun = 0U" (identifier) "kUSB_DeviceControlRun" (=) "=" (number_literal) "0U" (,) "," (comment) "/* Disable the device functionality */" (enumerator) "kUSB_DeviceControlStop" (identifier) "kUSB_DeviceControlStop" (,) "," (comment) "/* Initialize a specified endpoint */" (enumerator) "kUSB_DeviceControlEndpointInit" (identifier) "kUSB_DeviceControlEndpointInit" (,) "," (comment) "/* De-initialize a specified endpoint */" (enumerator) "kUSB_DeviceControlEndpointDeinit" (identifier) "kUSB_DeviceControlEndpointDeinit" (,) "," (comment) "/* Stall a specified endpoint */" (enumerator) "kUSB_DeviceControlEndpointStall" (identifier) "kUSB_DeviceControlEndpointStall" (,) "," (comment) "/* Unstall a specified endpoint */" (enumerator) "kUSB_DeviceControlEndpointUnstall" (identifier) "kUSB_DeviceControlEndpointUnstall" (,) "," (comment) "/* Get device status */" (enumerator) "kUSB_DeviceControlGetDeviceStatus" (identifier) "kUSB_DeviceControlGetDeviceStatus" (,) "," (comment) "/* Get endpoint status */" (enumerator) "kUSB_DeviceControlGetEndpointStatus" (identifier) "kUSB_DeviceControlGetEndpointStatus" (,) "," (comment) "/* Set device address */" (enumerator) "kUSB_DeviceControlSetDeviceAddress" (identifier) "kUSB_DeviceControlSetDeviceAddress" (,) "," (comment) "/* Get current frame */" (enumerator) "kUSB_DeviceControlGetSynchFrame" (identifier) "kUSB_DeviceControlGetSynchFrame" (,) "," (comment) "/* Drive controller to generate a resume signal in USB bus */" (enumerator) "kUSB_DeviceControlResume" (identifier) "kUSB_DeviceControlResume" (,) "," (comment) "/* Drive controller to generate a LPM resume signal in USB bus */" (enumerator) "kUSB_DeviceControlSleepResume" (identifier) "kUSB_DeviceControlSleepResume" (,) "," (comment) "/* Drive controller to enetr into suspend mode */" (enumerator) "kUSB_DeviceControlSuspend" (identifier) "kUSB_DeviceControlSuspend" (,) "," (comment) "/* Drive controller to enetr into sleep mode */" (enumerator) "kUSB_DeviceControlSleep" (identifier) "kUSB_DeviceControlSleep" (,) "," (comment) "/* Set controller to default status */" (enumerator) "kUSB_DeviceControlSetDefaultStatus" (identifier) "kUSB_DeviceControlSetDefaultStatus" (,) "," (comment) "/* Get current speed */" (enumerator) "kUSB_DeviceControlGetSpeed" (identifier) "kUSB_DeviceControlGetSpeed" (,) "," (comment) "/* Get OTG status */" (enumerator) "kUSB_DeviceControlGetOtgStatus" (identifier) "kUSB_DeviceControlGetOtgStatus" (,) "," (comment) "/* Set OTG status */" (enumerator) "kUSB_DeviceControlSetOtgStatus" (identifier) "kUSB_DeviceControlSetOtgStatus" (,) "," (comment) "/* Drive xCHI into test mode */" (enumerator) "kUSB_DeviceControlSetTestMode" (identifier) "kUSB_DeviceControlSetTestMode" (,) "," (comment) "/* Get flag of LPM Remote Wake-up Enabled by USB host. */" (enumerator) "kUSB_DeviceControlGetRemoteWakeUp" (identifier) "kUSB_DeviceControlGetRemoteWakeUp" (,) "," (preproc_if) "#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n kUSB_DeviceControlDcdInitModule,\n kUSB_DeviceControlDcdDeinitModule,\n#endif" (#if) "#if" (parenthesized_expression) "(defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))" (() "(" (binary_expression) "defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)" (preproc_defined) "defined(USB_DEVICE_CHARGER_DETECT_ENABLE)" (defined) "defined" (() "(" (identifier) "USB_DEVICE_CHARGER_DETECT_ENABLE" ()) ")" (&&) "&&" (parenthesized_expression) "(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)" (() "(" (binary_expression) "USB_DEVICE_CHARGER_DETECT_ENABLE > 0U" (identifier) "USB_DEVICE_CHARGER_DETECT_ENABLE" (>) ">" (number_literal) "0U" ()) ")" ()) ")" ( ) "\n" (enumerator) "kUSB_DeviceControlDcdInitModule" (identifier) "kUSB_DeviceControlDcdInitModule" (,) "," (enumerator) "kUSB_DeviceControlDcdDeinitModule" (identifier) "kUSB_DeviceControlDcdDeinitModule" (,) "," (#endif) "#endif" (}) "}" (type_identifier) "usb_device_control_type_t" (;) ";" (comment) "/* Available notify types for device notification */" (type_definition) "typedef enum _usb_device_notification {\n /* Reset signal detected */\n kUSB_DeviceNotifyBusReset = 0x10U,\n /* Suspend signal detected */\n kUSB_DeviceNotifySuspend,\n /* Resume signal detected */\n kUSB_DeviceNotifyResume,\n /* LPM signal detected */\n kUSB_DeviceNotifyLPMSleep,\n /* Resume signal detected */\n kUSB_DeviceNotifyLPMResume,\n /* Errors happened in bus */\n kUSB_DeviceNotifyError,\n /* Device disconnected from a host */\n kUSB_DeviceNotifyDetach,\n /* Device connected to a host */\n kUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n /* Device charger detection timeout */\n kUSB_DeviceNotifyDcdTimeOut,\n /* Device charger detection unknown port type */\n kUSB_DeviceNotifyDcdUnknownPortType,\n /* The SDP facility is detected */\n kUSB_DeviceNotifySDPDetected,\n /* The charging port is detected */\n kUSB_DeviceNotifyChargingPortDetected,\n /* The CDP facility is detected */\n kUSB_DeviceNotifyChargingHostDetected,\n /* The DCP facility is detected */\n kUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n} usb_device_notification_t;" (typedef) "typedef" (enum_specifier) "enum _usb_device_notification {\n /* Reset signal detected */\n kUSB_DeviceNotifyBusReset = 0x10U,\n /* Suspend signal detected */\n kUSB_DeviceNotifySuspend,\n /* Resume signal detected */\n kUSB_DeviceNotifyResume,\n /* LPM signal detected */\n kUSB_DeviceNotifyLPMSleep,\n /* Resume signal detected */\n kUSB_DeviceNotifyLPMResume,\n /* Errors happened in bus */\n kUSB_DeviceNotifyError,\n /* Device disconnected from a host */\n kUSB_DeviceNotifyDetach,\n /* Device connected to a host */\n kUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n /* Device charger detection timeout */\n kUSB_DeviceNotifyDcdTimeOut,\n /* Device charger detection unknown port type */\n kUSB_DeviceNotifyDcdUnknownPortType,\n /* The SDP facility is detected */\n kUSB_DeviceNotifySDPDetected,\n /* The charging port is detected */\n kUSB_DeviceNotifyChargingPortDetected,\n /* The CDP facility is detected */\n kUSB_DeviceNotifyChargingHostDetected,\n /* The DCP facility is detected */\n kUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n}" (enum) "enum" (type_identifier) "_usb_device_notification" (enumerator_list) "{\n /* Reset signal detected */\n kUSB_DeviceNotifyBusReset = 0x10U,\n /* Suspend signal detected */\n kUSB_DeviceNotifySuspend,\n /* Resume signal detected */\n kUSB_DeviceNotifyResume,\n /* LPM signal detected */\n kUSB_DeviceNotifyLPMSleep,\n /* Resume signal detected */\n kUSB_DeviceNotifyLPMResume,\n /* Errors happened in bus */\n kUSB_DeviceNotifyError,\n /* Device disconnected from a host */\n kUSB_DeviceNotifyDetach,\n /* Device connected to a host */\n kUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n /* Device charger detection timeout */\n kUSB_DeviceNotifyDcdTimeOut,\n /* Device charger detection unknown port type */\n kUSB_DeviceNotifyDcdUnknownPortType,\n /* The SDP facility is detected */\n kUSB_DeviceNotifySDPDetected,\n /* The charging port is detected */\n kUSB_DeviceNotifyChargingPortDetected,\n /* The CDP facility is detected */\n kUSB_DeviceNotifyChargingHostDetected,\n /* The DCP facility is detected */\n kUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n}" ({) "{" (comment) "/* Reset signal detected */" (enumerator) "kUSB_DeviceNotifyBusReset = 0x10U" (identifier) "kUSB_DeviceNotifyBusReset" (=) "=" (number_literal) "0x10U" (,) "," (comment) "/* Suspend signal detected */" (enumerator) "kUSB_DeviceNotifySuspend" (identifier) "kUSB_DeviceNotifySuspend" (,) "," (comment) "/* Resume signal detected */" (enumerator) "kUSB_DeviceNotifyResume" (identifier) "kUSB_DeviceNotifyResume" (,) "," (comment) "/* LPM signal detected */" (enumerator) "kUSB_DeviceNotifyLPMSleep" (identifier) "kUSB_DeviceNotifyLPMSleep" (,) "," (comment) "/* Resume signal detected */" (enumerator) "kUSB_DeviceNotifyLPMResume" (identifier) "kUSB_DeviceNotifyLPMResume" (,) "," (comment) "/* Errors happened in bus */" (enumerator) "kUSB_DeviceNotifyError" (identifier) "kUSB_DeviceNotifyError" (,) "," (comment) "/* Device disconnected from a host */" (enumerator) "kUSB_DeviceNotifyDetach" (identifier) "kUSB_DeviceNotifyDetach" (,) "," (comment) "/* Device connected to a host */" (enumerator) "kUSB_DeviceNotifyAttach" (identifier) "kUSB_DeviceNotifyAttach" (,) "," (preproc_if) "#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n /* Device charger detection timeout */\n kUSB_DeviceNotifyDcdTimeOut,\n /* Device charger detection unknown port type */\n kUSB_DeviceNotifyDcdUnknownPortType,\n /* The SDP facility is detected */\n kUSB_DeviceNotifySDPDetected,\n /* The charging port is detected */\n kUSB_DeviceNotifyChargingPortDetected,\n /* The CDP facility is detected */\n kUSB_DeviceNotifyChargingHostDetected,\n /* The DCP facility is detected */\n kUSB_DeviceNotifyDedicatedChargerDetected,\n#endif" (#if) "#if" (parenthesized_expression) "(defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))" (() "(" (binary_expression) "defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\n (USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)" (preproc_defined) "defined(USB_DEVICE_CHARGER_DETECT_ENABLE)" (defined) "defined" (() "(" (identifier) "USB_DEVICE_CHARGER_DETECT_ENABLE" ()) ")" (&&) "&&" (parenthesized_expression) "(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)" (() "(" (binary_expression) "USB_DEVICE_CHARGER_DETECT_ENABLE > 0U" (identifier) "USB_DEVICE_CHARGER_DETECT_ENABLE" (>) ">" (number_literal) "0U" ()) ")" ()) ")" ( ) "\n" (comment) "/* Device charger detection timeout */" (enumerator) "kUSB_DeviceNotifyDcdTimeOut" (identifier) "kUSB_DeviceNotifyDcdTimeOut" (,) "," (comment) "/* Device charger detection unknown port type */" (enumerator) "kUSB_DeviceNotifyDcdUnknownPortType" (identifier) "kUSB_DeviceNotifyDcdUnknownPortType" (,) "," (comment) "/* The SDP facility is detected */" (enumerator) "kUSB_DeviceNotifySDPDetected" (identifier) "kUSB_DeviceNotifySDPDetected" (,) "," (comment) "/* The charging port is detected */" (enumerator) "kUSB_DeviceNotifyChargingPortDetected" (identifier) "kUSB_DeviceNotifyChargingPortDetected" (,) "," (comment) "/* The CDP facility is detected */" (enumerator) "kUSB_DeviceNotifyChargingHostDetected" (identifier) "kUSB_DeviceNotifyChargingHostDetected" (,) "," (comment) "/* The DCP facility is detected */" (enumerator) "kUSB_DeviceNotifyDedicatedChargerDetected" (identifier) "kUSB_DeviceNotifyDedicatedChargerDetected" (,) "," (#endif) "#endif" (}) "}" (type_identifier) "usb_device_notification_t" (;) ";" (comment) "/* USB error code */" (type_definition) "typedef enum _usb_status {\n /* Success */\n kStatus_USB_Success = 0x00U,\n /* Failed */\n kStatus_USB_Error,\n\n /* Busy */\n kStatus_USB_Busy,\n /* Invalid handle */\n kStatus_USB_InvalidHandle,\n /* Invalid parameter */\n kStatus_USB_InvalidParameter,\n /* Invalid request */\n kStatus_USB_InvalidRequest,\n /* Controller cannot be found */\n kStatus_USB_ControllerNotFound,\n /* Invalid controller interface */\n kStatus_USB_InvalidControllerInterface,\n\n /* Configuration is not supported */\n kStatus_USB_NotSupported,\n /* Enumeration get configuration retry */\n kStatus_USB_Retry,\n /* Transfer stalled */\n kStatus_USB_TransferStall,\n /* Transfer failed */\n kStatus_USB_TransferFailed,\n /* Allocation failed */\n kStatus_USB_AllocFail,\n /* Insufficient swap buffer for KHCI */\n kStatus_USB_LackSwapBuffer,\n /* The transfer cancelled */\n kStatus_USB_TransferCancel,\n /* Allocate bandwidth failed */\n kStatus_USB_BandwidthFail,\n /* For MSD, the CSW status means fail */\n kStatus_USB_MSDStatusFail,\n kStatus_USB_EHCIAttached,\n kStatus_USB_EHCIDetached,\n} usb_status_t;" (typedef) "typedef" (enum_specifier) "enum _usb_status {\n /* Success */\n kStatus_USB_Success = 0x00U,\n /* Failed */\n kStatus_USB_Error,\n\n /* Busy */\n kStatus_USB_Busy,\n /* Invalid handle */\n kStatus_USB_InvalidHandle,\n /* Invalid parameter */\n kStatus_USB_InvalidParameter,\n /* Invalid request */\n kStatus_USB_InvalidRequest,\n /* Controller cannot be found */\n kStatus_USB_ControllerNotFound,\n /* Invalid controller interface */\n kStatus_USB_InvalidControllerInterface,\n\n /* Configuration is not supported */\n kStatus_USB_NotSupported,\n /* Enumeration get configuration retry */\n kStatus_USB_Retry,\n /* Transfer stalled */\n kStatus_USB_TransferStall,\n /* Transfer failed */\n kStatus_USB_TransferFailed,\n /* Allocation failed */\n kStatus_USB_AllocFail,\n /* Insufficient swap buffer for KHCI */\n kStatus_USB_LackSwapBuffer,\n /* The transfer cancelled */\n kStatus_USB_TransferCancel,\n /* Allocate bandwidth failed */\n kStatus_USB_BandwidthFail,\n /* For MSD, the CSW status means fail */\n kStatus_USB_MSDStatusFail,\n kStatus_USB_EHCIAttached,\n kStatus_USB_EHCIDetached,\n}" (enum) "enum" (type_identifier) "_usb_status" (enumerator_list) "{\n /* Success */\n kStatus_USB_Success = 0x00U,\n /* Failed */\n kStatus_USB_Error,\n\n /* Busy */\n kStatus_USB_Busy,\n /* Invalid handle */\n kStatus_USB_InvalidHandle,\n /* Invalid parameter */\n kStatus_USB_InvalidParameter,\n /* Invalid request */\n kStatus_USB_InvalidRequest,\n /* Controller cannot be found */\n kStatus_USB_ControllerNotFound,\n /* Invalid controller interface */\n kStatus_USB_InvalidControllerInterface,\n\n /* Configuration is not supported */\n kStatus_USB_NotSupported,\n /* Enumeration get configuration retry */\n kStatus_USB_Retry,\n /* Transfer stalled */\n kStatus_USB_TransferStall,\n /* Transfer failed */\n kStatus_USB_TransferFailed,\n /* Allocation failed */\n kStatus_USB_AllocFail,\n /* Insufficient swap buffer for KHCI */\n kStatus_USB_LackSwapBuffer,\n /* The transfer cancelled */\n kStatus_USB_TransferCancel,\n /* Allocate bandwidth failed */\n kStatus_USB_BandwidthFail,\n /* For MSD, the CSW status means fail */\n kStatus_USB_MSDStatusFail,\n kStatus_USB_EHCIAttached,\n kStatus_USB_EHCIDetached,\n}" ({) "{" (comment) "/* Success */" (enumerator) "kStatus_USB_Success = 0x00U" (identifier) "kStatus_USB_Success" (=) "=" (number_literal) "0x00U" (,) "," (comment) "/* Failed */" (enumerator) "kStatus_USB_Error" (identifier) "kStatus_USB_Error" (,) "," (comment) "/* Busy */" (enumerator) "kStatus_USB_Busy" (identifier) "kStatus_USB_Busy" (,) "," (comment) "/* Invalid handle */" (enumerator) "kStatus_USB_InvalidHandle" (identifier) "kStatus_USB_InvalidHandle" (,) "," (comment) "/* Invalid parameter */" (enumerator) "kStatus_USB_InvalidParameter" (identifier) "kStatus_USB_InvalidParameter" (,) "," (comment) "/* Invalid request */" (enumerator) "kStatus_USB_InvalidRequest" (identifier) "kStatus_USB_InvalidRequest" (,) "," (comment) "/* Controller cannot be found */" (enumerator) "kStatus_USB_ControllerNotFound" (identifier) "kStatus_USB_ControllerNotFound" (,) "," (comment) "/* Invalid controller interface */" (enumerator) "kStatus_USB_InvalidControllerInterface" (identifier) "kStatus_USB_InvalidControllerInterface" (,) "," (comment) "/* Configuration is not supported */" (enumerator) "kStatus_USB_NotSupported" (identifier) "kStatus_USB_NotSupported" (,) "," (comment) "/* Enumeration get configuration retry */" (enumerator) "kStatus_USB_Retry" (identifier) "kStatus_USB_Retry" (,) "," (comment) "/* Transfer stalled */" (enumerator) "kStatus_USB_TransferStall" (identifier) "kStatus_USB_TransferStall" (,) "," (comment) "/* Transfer failed */" (enumerator) "kStatus_USB_TransferFailed" (identifier) "kStatus_USB_TransferFailed" (,) "," (comment) "/* Allocation failed */" (enumerator) "kStatus_USB_AllocFail" (identifier) "kStatus_USB_AllocFail" (,) "," (comment) "/* Insufficient swap buffer for KHCI */" (enumerator) "kStatus_USB_LackSwapBuffer" (identifier) "kStatus_USB_LackSwapBuffer" (,) "," (comment) "/* The transfer cancelled */" (enumerator) "kStatus_USB_TransferCancel" (identifier) "kStatus_USB_TransferCancel" (,) "," (comment) "/* Allocate bandwidth failed */" (enumerator) "kStatus_USB_BandwidthFail" (identifier) "kStatus_USB_BandwidthFail" (,) "," (comment) "/* For MSD, the CSW status means fail */" (enumerator) "kStatus_USB_MSDStatusFail" (identifier) "kStatus_USB_MSDStatusFail" (,) "," (enumerator) "kStatus_USB_EHCIAttached" (identifier) "kStatus_USB_EHCIAttached" (,) "," (enumerator) "kStatus_USB_EHCIDetached" (identifier) "kStatus_USB_EHCIDetached" (,) "," (}) "}" (type_identifier) "usb_status_t" (;) ";" (comment) "/* Device notification message structure */" (type_definition) "typedef struct _usb_device_callback_message_struct {\n u8_t *buffer; /* Transferred buffer */\n u32_t length; /* Transferred data length */\n u8_t code; /* Notification code */\n u8_t isSetup; /* Is in a setup phase */\n} usb_device_callback_message_struct_t;" (typedef) "typedef" (struct_specifier) "struct _usb_device_callback_message_struct {\n u8_t *buffer; /* Transferred buffer */\n u32_t length; /* Transferred data length */\n u8_t code; /* Notification code */\n u8_t isSetup; /* Is in a setup phase */\n}" (struct) "struct" (type_identifier) "_usb_device_callback_message_struct" (field_declaration_list) "{\n u8_t *buffer; /* Transferred buffer */\n u32_t length; /* Transferred data length */\n u8_t code; /* Notification code */\n u8_t isSetup; /* Is in a setup phase */\n}" ({) "{" (field_declaration) "u8_t *buffer;" (type_identifier) "u8_t" (pointer_declarator) "*buffer" (*) "*" (field_identifier) "buffer" (;) ";" (comment) "/* Transferred buffer */" (field_declaration) "u32_t length;" (type_identifier) "u32_t" (field_identifier) "length" (;) ";" (comment) "/* Transferred data length */" (field_declaration) "u8_t code;" (type_identifier) "u8_t" (field_identifier) "code" (;) ";" (comment) "/* Notification code */" (field_declaration) "u8_t isSetup;" (type_identifier) "u8_t" (field_identifier) "isSetup" (;) ";" (comment) "/* Is in a setup phase */" (}) "}" (type_identifier) "usb_device_callback_message_struct_t" (;) ";" (type_definition) "typedef struct usb_ep_ctrl_data {\n usb_device_callback_message_struct_t transfer_message;\n struct k_mem_block block;\n usb_dc_ep_callback callback;\n u16_t ep_mps;\n u8_t ep_type;\n u8_t ep_enabled : 1;\n u8_t ep_occupied : 1;\n} usb_ep_ctrl_data_t;" (typedef) "typedef" (struct_specifier) "struct usb_ep_ctrl_data {\n usb_device_callback_message_struct_t transfer_message;\n struct k_mem_block block;\n usb_dc_ep_callback callback;\n u16_t ep_mps;\n u8_t ep_type;\n u8_t ep_enabled : 1;\n u8_t ep_occupied : 1;\n}" (struct) "struct" (type_identifier) "usb_ep_ctrl_data" (field_declaration_list) "{\n usb_device_callback_message_struct_t transfer_message;\n struct k_mem_block block;\n usb_dc_ep_callback callback;\n u16_t ep_mps;\n u8_t ep_type;\n u8_t ep_enabled : 1;\n u8_t ep_occupied : 1;\n}" ({) "{" (field_declaration) "usb_device_callback_message_struct_t transfer_message;" (type_identifier) "usb_device_callback_message_struct_t" (field_identifier) "transfer_message" (;) ";" (field_declaration) "struct k_mem_block block;" (struct_specifier) "struct k_mem_block" (struct) "struct" (type_identifier) "k_mem_block" (field_identifier) "block" (;) ";" (field_declaration) "usb_dc_ep_callback callback;" (type_identifier) "usb_dc_ep_callback" (field_identifier) "callback" (;) ";" (field_declaration) "u16_t ep_mps;" (type_identifier) "u16_t" (field_identifier) "ep_mps" (;) ";" (field_declaration) "u8_t ep_type;" (type_identifier) "u8_t" (field_identifier) "ep_type" (;) ";" (field_declaration) "u8_t ep_enabled : 1;" (type_identifier) "u8_t" (field_identifier) "ep_enabled" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (field_declaration) "u8_t ep_occupied : 1;" (type_identifier) "u8_t" (field_identifier) "ep_occupied" (bitfield_clause) ": 1" (:) ":" (number_literal) "1" (;) ";" (}) "}" (type_identifier) "usb_ep_ctrl_data_t" (;) ";" (comment) "/* USB device controller initialization function typedef */" (type_definition) "typedef usb_status_t (*usb_device_controller_init_t)(u8_t controllerId,\n usb_device_handle handle,\n usb_device_controller_handle *controllerHandle);" (typedef) "typedef" (type_identifier) "usb_status_t" (function_declarator) "(*usb_device_controller_init_t)(u8_t controllerId,\n usb_device_handle handle,\n usb_device_controller_handle *controllerHandle)" (parenthesized_declarator) "(*usb_device_controller_init_t)" (() "(" (pointer_declarator) "*usb_device_controller_init_t" (*) "*" (type_identifier) "usb_device_controller_init_t" ()) ")" (parameter_list) "(u8_t controllerId,\n usb_device_handle handle,\n usb_device_controller_handle *controllerHandle)" (() "(" (parameter_declaration) "u8_t controllerId" (type_identifier) "u8_t" (identifier) "controllerId" (,) "," (parameter_declaration) "usb_device_handle handle" (type_identifier) "usb_device_handle" (identifier) "handle" (,) "," (parameter_declaration) "usb_device_controller_handle *controllerHandle" (type_identifier) "usb_device_controller_handle" (pointer_declarator) "*controllerHandle" (*) "*" (identifier) "controllerHandle" ()) ")" (;) ";" (comment) "/* USB device controller de-initialization function typedef */" (type_definition) "typedef usb_status_t (*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle);" (typedef) "typedef" (type_identifier) "usb_status_t" (function_declarator) "(*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle)" (parenthesized_declarator) "(*usb_device_controller_deinit_t)" (() "(" (pointer_declarator) "*usb_device_controller_deinit_t" (*) "*" (type_identifier) "usb_device_controller_deinit_t" ()) ")" (parameter_list) "(usb_device_controller_handle controllerHandle)" (() "(" (parameter_declaration) "usb_device_controller_handle controllerHandle" (type_identifier) "usb_device_controller_handle" (identifier) "controllerHandle" ()) ")" (;) ";" (comment) "/* USB device controller send data function typedef */" (type_definition) "typedef usb_status_t (*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length);" (typedef) "typedef" (type_identifier) "usb_status_t" (function_declarator) "(*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length)" (parenthesized_declarator) "(*usb_device_controller_send_t)" (() "(" (pointer_declarator) "*usb_device_controller_send_t" (*) "*" (type_identifier) "usb_device_controller_send_t" ()) ")" (parameter_list) "(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length)" (() "(" (parameter_declaration) "usb_device_controller_handle controllerHandle" (type_identifier) "usb_device_controller_handle" (identifier) "controllerHandle" (,) "," (parameter_declaration) "u8_t endpointAddress" (type_identifier) "u8_t" (identifier) "endpointAddress" (,) "," (parameter_declaration) "u8_t *buffer" (type_identifier) "u8_t" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" (,) "," (parameter_declaration) "u32_t length" (type_identifier) "u32_t" (identifier) "length" ()) ")" (;) ";" (comment) "/* USB device controller receive data function typedef */" (type_definition) "typedef usb_status_t (*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length);" (typedef) "typedef" (type_identifier) "usb_status_t" (function_declarator) "(*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length)" (parenthesized_declarator) "(*usb_device_controller_recv_t)" (() "(" (pointer_declarator) "*usb_device_controller_recv_t" (*) "*" (type_identifier) "usb_device_controller_recv_t" ()) ")" (parameter_list) "(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress,\n u8_t *buffer,\n u32_t length)" (() "(" (parameter_declaration) "usb_device_controller_handle controllerHandle" (type_identifier) "usb_device_controller_handle" (identifier) "controllerHandle" (,) "," (parameter_declaration) "u8_t endpointAddress" (type_identifier) "u8_t" (identifier) "endpointAddress" (,) "," (parameter_declaration) "u8_t *buffer" (type_identifier) "u8_t" (pointer_declarator) "*buffer" (*) "*" (identifier) "buffer" (,) "," (parameter_declaration) "u32_t length" (type_identifier) "u32_t" (identifier) "length" ()) ")" (;) ";" (comment) "/* USB device controller cancel transfer function\n * in a specified endpoint typedef\n */" (type_definition) "typedef usb_status_t (*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress);" (typedef) "typedef" (type_identifier) "usb_status_t" (function_declarator) "(*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress)" (parenthesized_declarator) "(*usb_device_controller_cancel_t)" (() "(" (pointer_declarator) "*usb_device_controller_cancel_t" (*) "*" (type_identifier) "usb_device_controller_cancel_t" ()) ")" (parameter_list) "(usb_device_controller_handle controllerHandle,\n u8_t endpointAddress)" (() "(" (parameter_declaration) "usb_device_controller_handle controllerHandle" (type_identifier) "usb_device_controller_handle" (identifier) "controllerHandle" (,) "," (parameter_declaration) "u8_t endpointAddress" (type_identifier) "u8_t" (identifier) "endpointAddress" ()) ")" (;) ";" (comment) "/* USB device controller control function typedef */" (type_definition) "typedef usb_status_t (*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n usb_device_control_type_t command,\n void *param);" (typedef) "typedef" (type_identifier) "usb_status_t" (function_declarator) "(*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n usb_device_control_type_t command,\n void *param)" (parenthesized_declarator) "(*usb_device_controller_control_t)" (() "(" (pointer_declarator) "*usb_device_controller_control_t" (*) "*" (type_identifier) "usb_device_controller_control_t" ()) ")" (parameter_list) "(usb_device_controller_handle controllerHandle,\n usb_device_control_type_t command,\n void *param)" (() "(" (parameter_declaration) "usb_device_controller_handle controllerHandle" (type_identifier) "usb_device_controller_handle" (identifier) "controllerHandle" (,) "," (parameter_declaration) "usb_device_control_type_t command" (type_identifier) "usb_device_control_type_t" (identifier) "command" (,) "," (parameter_declaration) "void *param" (primitive_type) "void" (pointer_declarator) "*param" (*) "*" (identifier) "param" ()) ")" (;) ";" (comment) "/* USB device controller interface structure */" (type_definition) "typedef struct _usb_device_controller_interface_struct {\n /* Controller initialization */\n usb_device_controller_init_t deviceInit;\n /* Controller de-initialization */\n usb_device_controller_deinit_t deviceDeinit;\n /* Controller send data */\n usb_device_controller_send_t deviceSend;\n /* Controller receive data */\n usb_device_controller_recv_t deviceRecv;\n /* Controller cancel transfer */\n usb_device_controller_cancel_t deviceCancel;\n /* Controller control */\n usb_device_controller_control_t deviceControl;\n} usb_device_controller_interface_struct_t;" (typedef) "typedef" (struct_specifier) "struct _usb_device_controller_interface_struct {\n /* Controller initialization */\n usb_device_controller_init_t deviceInit;\n /* Controller de-initialization */\n usb_device_controller_deinit_t deviceDeinit;\n /* Controller send data */\n usb_device_controller_send_t deviceSend;\n /* Controller receive data */\n usb_device_controller_recv_t deviceRecv;\n /* Controller cancel transfer */\n usb_device_controller_cancel_t deviceCancel;\n /* Controller control */\n usb_device_controller_control_t deviceControl;\n}" (struct) "struct" (type_identifier) "_usb_device_controller_interface_struct" (field_declaration_list) "{\n /* Controller initialization */\n usb_device_controller_init_t deviceInit;\n /* Controller de-initialization */\n usb_device_controller_deinit_t deviceDeinit;\n /* Controller send data */\n usb_device_controller_send_t deviceSend;\n /* Controller receive data */\n usb_device_controller_recv_t deviceRecv;\n /* Controller cancel transfer */\n usb_device_controller_cancel_t deviceCancel;\n /* Controller control */\n usb_device_controller_control_t deviceControl;\n}" ({) "{" (comment) "/* Controller initialization */" (field_declaration) "usb_device_controller_init_t deviceInit;" (type_identifier) "usb_device_controller_init_t" (field_identifier) "deviceInit" (;) ";" (comment) "/* Controller de-initialization */" (field_declaration) "usb_device_controller_deinit_t deviceDeinit;" (type_identifier) "usb_device_controller_deinit_t" (field_identifier) "deviceDeinit" (;) ";" (comment) "/* Controller send data */" (field_declaration) "usb_device_controller_send_t deviceSend;" (type_identifier) "usb_device_controller_send_t" (field_identifier) "deviceSend" (;) ";" (comment) "/* Controller receive data */" (field_declaration) "usb_device_controller_recv_t deviceRecv;" (type_identifier) "usb_device_controller_recv_t" (field_identifier) "deviceRecv" (;) ";" (comment) "/* Controller cancel transfer */" (field_declaration) "usb_device_controller_cancel_t deviceCancel;" (type_identifier) "usb_device_controller_cancel_t" (field_identifier) "deviceCancel" (;) ";" (comment) "/* Controller control */" (field_declaration) "usb_device_controller_control_t deviceControl;" (type_identifier) "usb_device_controller_control_t" (field_identifier) "deviceControl" (;) ";" (}) "}" (type_identifier) "usb_device_controller_interface_struct_t" (;) ";" (type_definition) "typedef struct _usb_device_struct {\n /* Controller handle */\n usb_device_controller_handle controllerHandle;\n /* Controller interface handle */\n const usb_device_controller_interface_struct_t *interface;\n usb_dc_status_callback status_callback;\n usb_ep_ctrl_data_t *eps;\n bool attached;\n /* Current device address */\n u8_t address;\n /* Controller ID */\n u8_t controllerId;\n /* Current device state */\n u8_t state;\n /* Is doing device reset or not */\n u8_t isResetting;\n u8_t setupDataStage;\n} usb_device_struct_t;" (typedef) "typedef" (struct_specifier) "struct _usb_device_struct {\n /* Controller handle */\n usb_device_controller_handle controllerHandle;\n /* Controller interface handle */\n const usb_device_controller_interface_struct_t *interface;\n usb_dc_status_callback status_callback;\n usb_ep_ctrl_data_t *eps;\n bool attached;\n /* Current device address */\n u8_t address;\n /* Controller ID */\n u8_t controllerId;\n /* Current device state */\n u8_t state;\n /* Is doing device reset or not */\n u8_t isResetting;\n u8_t setupDataStage;\n}" (struct) "struct" (type_identifier) "_usb_device_struct" (field_declaration_list) "{\n /* Controller handle */\n usb_device_controller_handle controllerHandle;\n /* Controller interface handle */\n const usb_device_controller_interface_struct_t *interface;\n usb_dc_status_callback status_callback;\n usb_ep_ctrl_data_t *eps;\n bool attached;\n /* Current device address */\n u8_t address;\n /* Controller ID */\n u8_t controllerId;\n /* Current device state */\n u8_t state;\n /* Is doing device reset or not */\n u8_t isResetting;\n u8_t setupDataStage;\n}" ({) "{" (comment) "/* Controller handle */" (field_declaration) "usb_device_controller_handle controllerHandle;" (type_identifier) "usb_device_controller_handle" (field_identifier) "controllerHandle" (;) ";" (comment) "/* Controller interface handle */" (field_declaration) "const usb_device_controller_interface_struct_t *interface;" (type_qualifier) "const" (const) "const" (type_identifier) "usb_device_controller_interface_struct_t" (pointer_declarator) "*interface" (*) "*" (field_identifier) "interface" (;) ";" (field_declaration) "usb_dc_status_callback status_callback;" (type_identifier) "usb_dc_status_callback" (field_identifier) "status_callback" (;) ";" (field_declaration) "usb_ep_ctrl_data_t *eps;" (type_identifier) "usb_ep_ctrl_data_t" (pointer_declarator) "*eps" (*) "*" (field_identifier) "eps" (;) ";" (field_declaration) "bool attached;" (primitive_type) "bool" (field_identifier) "attached" (;) ";" (comment) "/* Current device address */" (field_declaration) "u8_t address;" (type_identifier) "u8_t" (field_identifier) "address" (;) ";" (comment) "/* Controller ID */" (field_declaration) "u8_t controllerId;" (type_identifier) "u8_t" (field_identifier) "controllerId" (;) ";" (comment) "/* Current device state */" (field_declaration) "u8_t state;" (type_identifier) "u8_t" (field_identifier) "state" (;) ";" (comment) "/* Is doing device reset or not */" (field_declaration) "u8_t isResetting;" (type_identifier) "u8_t" (field_identifier) "isResetting" (;) ";" (field_declaration) "u8_t setupDataStage;" (type_identifier) "u8_t" (field_identifier) "setupDataStage" (;) ";" (}) "}" (type_identifier) "usb_device_struct_t" (;) ";" (comment) "/* Endpoint status structure */" (type_definition) "typedef struct _usb_device_endpoint_status_struct {\n /* Endpoint address */\n u8_t endpointAddress;\n /* Endpoint status : idle or stalled */\n u16_t endpointStatus;\n} usb_device_endpoint_status_struct_t;" (typedef) "typedef" (struct_specifier) "struct _usb_device_endpoint_status_struct {\n /* Endpoint address */\n u8_t endpointAddress;\n /* Endpoint status : idle or stalled */\n u16_t endpointStatus;\n}" (struct) "struct" (type_identifier) "_usb_device_endpoint_status_struct" (field_declaration_list) "{\n /* Endpoint address */\n u8_t endpointAddress;\n /* Endpoint status : idle or stalled */\n u16_t endpointStatus;\n}" ({) "{" (comment) "/* Endpoint address */" (field_declaration) "u8_t endpointAddress;" (type_identifier) "u8_t" (field_identifier) "endpointAddress" (;) ";" (comment) "/* Endpoint status : idle or stalled */" (field_declaration) "u16_t endpointStatus;" (type_identifier) "u16_t" (field_identifier) "endpointStatus" (;) ";" (}) "}" (type_identifier) "usb_device_endpoint_status_struct_t" (;) ";" (comment) "/* Defines endpoint state */" (type_definition) "typedef enum _usb_endpoint_status {\n /* Endpoint state, idle*/\n kUSB_DeviceEndpointStateIdle = 0U,\n /* Endpoint state, stalled*/\n kUSB_DeviceEndpointStateStalled,\n} usb_device_endpoint_status_t;" (typedef) "typedef" (enum_specifier) "enum _usb_endpoint_status {\n /* Endpoint state, idle*/\n kUSB_DeviceEndpointStateIdle = 0U,\n /* Endpoint state, stalled*/\n kUSB_DeviceEndpointStateStalled,\n}" (enum) "enum" (type_identifier) "_usb_endpoint_status" (enumerator_list) "{\n /* Endpoint state, idle*/\n kUSB_DeviceEndpointStateIdle = 0U,\n /* Endpoint state, stalled*/\n kUSB_DeviceEndpointStateStalled,\n}" ({) "{" (comment) "/* Endpoint state, idle*/" (enumerator) "kUSB_DeviceEndpointStateIdle = 0U" (identifier) "kUSB_DeviceEndpointStateIdle" (=) "=" (number_literal) "0U" (,) "," (comment) "/* Endpoint state, stalled*/" (enumerator) "kUSB_DeviceEndpointStateStalled" (identifier) "kUSB_DeviceEndpointStateStalled" (,) "," (}) "}" (type_identifier) "usb_device_endpoint_status_t" (;) ";" (comment) "/* Endpoint initialization structure */" (type_definition) "typedef struct _usb_device_endpoint_init_struct {\n /* Endpoint maximum packet size */\n u16_t maxPacketSize;\n /* Endpoint address*/\n u8_t endpointAddress;\n /* Endpoint transfer type*/\n u8_t transferType;\n /* ZLT flag*/\n u8_t zlt;\n} usb_device_endpoint_init_struct_t;" (typedef) "typedef" (struct_specifier) "struct _usb_device_endpoint_init_struct {\n /* Endpoint maximum packet size */\n u16_t maxPacketSize;\n /* Endpoint address*/\n u8_t endpointAddress;\n /* Endpoint transfer type*/\n u8_t transferType;\n /* ZLT flag*/\n u8_t zlt;\n}" (struct) "struct" (type_identifier) "_usb_device_endpoint_init_struct" (field_declaration_list) "{\n /* Endpoint maximum packet size */\n u16_t maxPacketSize;\n /* Endpoint address*/\n u8_t endpointAddress;\n /* Endpoint transfer type*/\n u8_t transferType;\n /* ZLT flag*/\n u8_t zlt;\n}" ({) "{" (comment) "/* Endpoint maximum packet size */" (field_declaration) "u16_t maxPacketSize;" (type_identifier) "u16_t" (field_identifier) "maxPacketSize" (;) ";" (comment) "/* Endpoint address*/" (field_declaration) "u8_t endpointAddress;" (type_identifier) "u8_t" (field_identifier) "endpointAddress" (;) ";" (comment) "/* Endpoint transfer type*/" (field_declaration) "u8_t transferType;" (type_identifier) "u8_t" (field_identifier) "transferType" (;) ";" (comment) "/* ZLT flag*/" (field_declaration) "u8_t zlt;" (type_identifier) "u8_t" (field_identifier) "zlt" (;) ";" (}) "}" (type_identifier) "usb_device_endpoint_init_struct_t" (;) ";" (#endif) "#endif" (comment) "/* __USB_DC_MCUX_H__ */"
931
0
{"language": "c", "success": true, "metadata": {"lines": 303, "avg_line_length": 34.55, "nodes": 607, "errors": 0, "source_hash": "31bef951de144842ad731d4d9502a208a99b10db94b7cd724cf1726ce457c964", "categorized_nodes": 449}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef __USB_DC_MCUX_H__\n#define __USB_DC_MCUX_H__\n\n#include <usb/usb_dc.h>\n#include \"usb_spec.h\"\n\n/******************************************************************************\n * Definitions\n *****************************************************************************/\n/* EHCI instance count */\n#ifdef CONFIG_USB_DC_NXP_EHCI\n #define USB_DEVICE_CONFIG_EHCI (1U)\n#else\n #define USB_DEVICE_CONFIG_EHCI (0U)\n#endif\n\n/* Macro to define controller handle */\ntypedef void *usb_device_handle;\n#define usb_device_controller_handle usb_device_handle\n\n/* controller driver do the ZLP for controler transfer automatically or not */\n#define USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP (0)\n\n/* endpoint related macros */\n#define EP0_MAX_PACKET_SIZE 64\n#define EP0_OUT 0\n#define EP0_IN 0x80\n/* USB endpoint mask */\n#define USB_ENDPOINT_NUMBER_MASK (0x0FU)\n/* The setup packet size of USB control transfer. */\n#define USB_SETUP_PACKET_SIZE (8U)\n\n/* enter critical macros */\n#define USB_OSA_SR_ALLOC() int usbOsaCurrentSr\n#define USB_OSA_ENTER_CRITICAL() usbOsaCurrentSr = irq_lock()\n#define USB_OSA_EXIT_CRITICAL() irq_unlock(usbOsaCurrentSr)\n\n/* Control endpoint index */\n#define USB_CONTROL_ENDPOINT (0U)\n\n/* Default invalid value or the endpoint callback length of cancelled transfer*/\n#define USB_UNINITIALIZED_VAL_32 (0xFFFFFFFFU)\n\n/* NXP SDK USB controller driver configuration macros */\n#define USB_BDT\n#define USB_GLOBAL\n#define USB_DATA_ALIGN_SIZE 4\n#define USB_RAM_ADDRESS_ALIGNMENT(n) __aligned(n)\n\n/* EHCI */\n#if defined(CONFIG_NOCACHE_MEMORY)\n#define USB_CONTROLLER_DATA __nocache\n#else\n#define USB_CONTROLLER_DATA\n#endif\n/* How many the DTD are supported. */\n#define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U)\n/* Control endpoint maxPacketSize */\n#define USB_CONTROL_MAX_PACKET_SIZE (64U)\n\n/* Whether device is self power. 1U supported, 0U not supported */\n#define USB_DEVICE_CONFIG_SELF_POWER (1U)\n\n/* USB controller ID */\ntypedef enum _usb_controller_index {\n\t/* KHCI 0U */\n\tkUSB_ControllerKhci0 = 0U,\n\t/* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerKhci1 = 1U,\n\n\t/* EHCI 0U */\n\tkUSB_ControllerEhci0 = 2U,\n\t/* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerEhci1 = 3U,\n\n\t/* LPC USB IP3511 FS controller 0 */\n\tkUSB_ControllerLpcIp3511Fs0 = 4U,\n\t/* LPC USB IP3511 FS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Fs1 = 5U,\n\n\t/* LPC USB IP3511 HS controller 0 */\n\tkUSB_ControllerLpcIp3511Hs0 = 6U,\n\t/* LPC USB IP3511 HS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Hs1 = 7U,\n} usb_controller_index_t;\n\n/* Control type for controller */\ntypedef enum _usb_device_control_type {\n\t/* Enable the device functionality */\n\tkUSB_DeviceControlRun = 0U,\n\t/* Disable the device functionality */\n\tkUSB_DeviceControlStop,\n\t/* Initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointInit,\n\t/* De-initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointDeinit,\n\t/* Stall a specified endpoint */\n\tkUSB_DeviceControlEndpointStall,\n\t/* Unstall a specified endpoint */\n\tkUSB_DeviceControlEndpointUnstall,\n\t/* Get device status */\n\tkUSB_DeviceControlGetDeviceStatus,\n\t/* Get endpoint status */\n\tkUSB_DeviceControlGetEndpointStatus,\n\t/* Set device address */\n\tkUSB_DeviceControlSetDeviceAddress,\n\t/* Get current frame */\n\tkUSB_DeviceControlGetSynchFrame,\n\t/* Drive controller to generate a resume signal in USB bus */\n\tkUSB_DeviceControlResume,\n\t/* Drive controller to generate a LPM resume signal in USB bus */\n\tkUSB_DeviceControlSleepResume,\n\t/* Drive controller to enetr into suspend mode */\n\tkUSB_DeviceControlSuspend,\n\t/* Drive controller to enetr into sleep mode */\n\tkUSB_DeviceControlSleep,\n\t/* Set controller to default status */\n\tkUSB_DeviceControlSetDefaultStatus,\n\t/* Get current speed */\n\tkUSB_DeviceControlGetSpeed,\n\t/* Get OTG status */\n\tkUSB_DeviceControlGetOtgStatus,\n\t/* Set OTG status */\n\tkUSB_DeviceControlSetOtgStatus,\n\t/* Drive xCHI into test mode */\n\tkUSB_DeviceControlSetTestMode,\n\t/* Get flag of LPM Remote Wake-up Enabled by USB host. */\n\tkUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\tkUSB_DeviceControlDcdInitModule,\n\tkUSB_DeviceControlDcdDeinitModule,\n#endif\n} usb_device_control_type_t;\n\n/* Available notify types for device notification */\ntypedef enum _usb_device_notification {\n\t/* Reset signal detected */\n\tkUSB_DeviceNotifyBusReset = 0x10U,\n\t/* Suspend signal detected */\n\tkUSB_DeviceNotifySuspend,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyResume,\n\t/* LPM signal detected */\n\tkUSB_DeviceNotifyLPMSleep,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyLPMResume,\n\t/* Errors happened in bus */\n\tkUSB_DeviceNotifyError,\n\t/* Device disconnected from a host */\n\tkUSB_DeviceNotifyDetach,\n\t/* Device connected to a host */\n\tkUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\t/* Device charger detection timeout */\n\tkUSB_DeviceNotifyDcdTimeOut,\n\t/* Device charger detection unknown port type */\n\tkUSB_DeviceNotifyDcdUnknownPortType,\n\t/* The SDP facility is detected */\n\tkUSB_DeviceNotifySDPDetected,\n\t/* The charging port is detected */\n\tkUSB_DeviceNotifyChargingPortDetected,\n\t/* The CDP facility is detected */\n\tkUSB_DeviceNotifyChargingHostDetected,\n\t/* The DCP facility is detected */\n\tkUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n} usb_device_notification_t;\n\n/* USB error code */\ntypedef enum _usb_status {\n\t/* Success */\n\tkStatus_USB_Success = 0x00U,\n\t/* Failed */\n\tkStatus_USB_Error,\n\n\t/* Busy */\n\tkStatus_USB_Busy,\n\t/* Invalid handle */\n\tkStatus_USB_InvalidHandle,\n\t/* Invalid parameter */\n\tkStatus_USB_InvalidParameter,\n\t/* Invalid request */\n\tkStatus_USB_InvalidRequest,\n\t/* Controller cannot be found */\n\tkStatus_USB_ControllerNotFound,\n\t/* Invalid controller interface */\n\tkStatus_USB_InvalidControllerInterface,\n\n\t/* Configuration is not supported */\n\tkStatus_USB_NotSupported,\n\t/* Enumeration get configuration retry */\n\tkStatus_USB_Retry,\n\t/* Transfer stalled */\n\tkStatus_USB_TransferStall,\n\t/* Transfer failed */\n\tkStatus_USB_TransferFailed,\n\t/* Allocation failed */\n\tkStatus_USB_AllocFail,\n\t/* Insufficient swap buffer for KHCI */\n\tkStatus_USB_LackSwapBuffer,\n\t/* The transfer cancelled */\n\tkStatus_USB_TransferCancel,\n\t/* Allocate bandwidth failed */\n\tkStatus_USB_BandwidthFail,\n\t/* For MSD, the CSW status means fail */\n\tkStatus_USB_MSDStatusFail,\n\tkStatus_USB_EHCIAttached,\n\tkStatus_USB_EHCIDetached,\n} usb_status_t;\n\n/* Device notification message structure */\ntypedef struct _usb_device_callback_message_struct {\n\tu8_t *buffer; /* Transferred buffer */\n\tu32_t length; /* Transferred data length */\n\tu8_t code; /* Notification code */\n\tu8_t isSetup; /* Is in a setup phase */\n} usb_device_callback_message_struct_t;\n\ntypedef struct usb_ep_ctrl_data {\n\tusb_device_callback_message_struct_t transfer_message;\n\tstruct k_mem_block block;\n\tusb_dc_ep_callback callback;\n\tu16_t ep_mps;\n\tu8_t ep_type;\n\tu8_t ep_enabled : 1;\n\tu8_t ep_occupied : 1;\n} usb_ep_ctrl_data_t;\n\n/* USB device controller initialization function typedef */\ntypedef usb_status_t (*usb_device_controller_init_t)(u8_t controllerId,\n\t\t\t\t\t\t usb_device_handle handle,\n\t\t\t\t\t\t usb_device_controller_handle *controllerHandle);\n\n/* USB device controller de-initialization function typedef */\ntypedef usb_status_t (*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle);\n\n/* USB device controller send data function typedef */\ntypedef usb_status_t (*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length);\n\n/* USB device controller receive data function typedef */\ntypedef usb_status_t (*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length);\n\n/* USB device controller cancel transfer function\n * in a specified endpoint typedef\n */\ntypedef usb_status_t (*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress);\n\n/* USB device controller control function typedef */\ntypedef usb_status_t (*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t\tusb_device_control_type_t command,\n\t\t\t\t\t\t\tvoid *param);\n\n/* USB device controller interface structure */\ntypedef struct _usb_device_controller_interface_struct {\n\t/* Controller initialization */\n\tusb_device_controller_init_t deviceInit;\n\t/* Controller de-initialization */\n\tusb_device_controller_deinit_t deviceDeinit;\n\t/* Controller send data */\n\tusb_device_controller_send_t deviceSend;\n\t/* Controller receive data */\n\tusb_device_controller_recv_t deviceRecv;\n\t/* Controller cancel transfer */\n\tusb_device_controller_cancel_t deviceCancel;\n\t/* Controller control */\n\tusb_device_controller_control_t deviceControl;\n} usb_device_controller_interface_struct_t;\n\ntypedef struct _usb_device_struct {\n\t/* Controller handle */\n\tusb_device_controller_handle controllerHandle;\n\t/* Controller interface handle */\n\tconst usb_device_controller_interface_struct_t *interface;\n\tusb_dc_status_callback status_callback;\n\tusb_ep_ctrl_data_t *eps;\n\tbool attached;\n\t/* Current device address */\n\tu8_t address;\n\t/* Controller ID */\n\tu8_t controllerId;\n\t/* Current device state */\n\tu8_t state;\n\t/* Is doing device reset or not */\n\tu8_t isResetting;\n\tu8_t setupDataStage;\n} usb_device_struct_t;\n\n/* Endpoint status structure */\ntypedef struct _usb_device_endpoint_status_struct {\n\t/* Endpoint address */\n\tu8_t endpointAddress;\n\t/* Endpoint status : idle or stalled */\n\tu16_t endpointStatus;\n} usb_device_endpoint_status_struct_t;\n\n/* Defines endpoint state */\ntypedef enum _usb_endpoint_status {\n\t/* Endpoint state, idle*/\n\tkUSB_DeviceEndpointStateIdle = 0U,\n\t/* Endpoint state, stalled*/\n\tkUSB_DeviceEndpointStateStalled,\n} usb_device_endpoint_status_t;\n\n/* Endpoint initialization structure */\ntypedef struct _usb_device_endpoint_init_struct {\n\t/* Endpoint maximum packet size */\n\tu16_t maxPacketSize;\n\t/* Endpoint address*/\n\tu8_t endpointAddress;\n\t/* Endpoint transfer type*/\n\tu8_t transferType;\n\t/* ZLT flag*/\n\tu8_t zlt;\n} usb_device_endpoint_init_struct_t;\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 12, 26, 32, 36, 40, 44, 48, 52, 56, 60, 65, 70, 75, 79, 83, 86, 89, 93, 99, 115, 119, 123, 127, 166, 234, 286, 333, 353, 386, 406, 418, 441, 464, 479, 499, 523, 563, 575, 588, 606], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 339, "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": "__USB_DC_MCUX_H__", "parent": 0, "children": [], "start_point": {"row": 7, "column": 8}, "end_point": {"row": 7, "column": 25}}, {"id": 3, "type": "preproc_def", "text": "#define __USB_DC_MCUX_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": "__USB_DC_MCUX_H__", "parent": 3, "children": [], "start_point": {"row": 8, "column": 8}, "end_point": {"row": 8, "column": 25}}, {"id": 6, "type": "preproc_include", "text": "#include <usb/usb_dc.h>\n", "parent": 0, "children": [7, 8], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 11, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 10, "column": 0}, "end_point": {"row": 10, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<usb/usb_dc.h>", "parent": 6, "children": [], "start_point": {"row": 10, "column": 9}, "end_point": {"row": 10, "column": 23}}, {"id": 9, "type": "preproc_include", "text": "#include \"usb_spec.h\"\n", "parent": 0, "children": [10, 11], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 12, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 11, "column": 0}, "end_point": {"row": 11, "column": 8}}, {"id": 11, "type": "string_literal", "text": "\"usb_spec.h\"", "parent": 9, "children": [], "start_point": {"row": 11, "column": 9}, "end_point": {"row": 11, "column": 21}}, {"id": 12, "type": "preproc_ifdef", "text": "#ifdef CONFIG_USB_DC_NXP_EHCI\n #define USB_DEVICE_CONFIG_EHCI (1U)\n#else\n #define USB_DEVICE_CONFIG_EHCI (0U)\n#endif", "parent": 0, "children": [13, 14, 15, 19, 25], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 13, "type": "#ifdef", "text": "#ifdef", "parent": 12, "children": [], "start_point": {"row": 17, "column": 0}, "end_point": {"row": 17, "column": 6}}, {"id": 14, "type": "identifier", "text": "CONFIG_USB_DC_NXP_EHCI", "parent": 12, "children": [], "start_point": {"row": 17, "column": 7}, "end_point": {"row": 17, "column": 29}}, {"id": 15, "type": "preproc_def", "text": "#define USB_DEVICE_CONFIG_EHCI (1U)\n", "parent": 12, "children": [16, 17, 18], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 19, "column": 0}}, {"id": 16, "type": "#define", "text": "#define", "parent": 15, "children": [], "start_point": {"row": 18, "column": 4}, "end_point": {"row": 18, "column": 11}}, {"id": 17, "type": "identifier", "text": "USB_DEVICE_CONFIG_EHCI", "parent": 15, "children": [], "start_point": {"row": 18, "column": 12}, "end_point": {"row": 18, "column": 34}}, {"id": 18, "type": "preproc_arg", "text": "(1U)", "parent": 15, "children": [], "start_point": {"row": 18, "column": 35}, "end_point": {"row": 18, "column": 39}}, {"id": 19, "type": "preproc_else", "text": "#else\n #define USB_DEVICE_CONFIG_EHCI (0U)\n", "parent": 12, "children": [20, 21], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 21, "column": 0}}, {"id": 20, "type": "#else", "text": "#else", "parent": 19, "children": [], "start_point": {"row": 19, "column": 0}, "end_point": {"row": 19, "column": 5}}, {"id": 21, "type": "preproc_def", "text": "#define USB_DEVICE_CONFIG_EHCI (0U)\n", "parent": 19, "children": [22, 23, 24], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 21, "column": 0}}, {"id": 22, "type": "#define", "text": "#define", "parent": 21, "children": [], "start_point": {"row": 20, "column": 4}, "end_point": {"row": 20, "column": 11}}, {"id": 23, "type": "identifier", "text": "USB_DEVICE_CONFIG_EHCI", "parent": 21, "children": [], "start_point": {"row": 20, "column": 12}, "end_point": {"row": 20, "column": 34}}, {"id": 24, "type": "preproc_arg", "text": "(0U)", "parent": 21, "children": [], "start_point": {"row": 20, "column": 35}, "end_point": {"row": 20, "column": 39}}, {"id": 25, "type": "#endif", "text": "#endif", "parent": 12, "children": [], "start_point": {"row": 21, "column": 0}, "end_point": {"row": 21, "column": 6}}, {"id": 26, "type": "type_definition", "text": "typedef void *usb_device_handle;", "parent": 0, "children": [27, 28, 29], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 32}}, {"id": 27, "type": "typedef", "text": "typedef", "parent": 26, "children": [], "start_point": {"row": 24, "column": 0}, "end_point": {"row": 24, "column": 7}}, {"id": 28, "type": "primitive_type", "text": "void", "parent": 26, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 12}}, {"id": 29, "type": "pointer_declarator", "text": "*usb_device_handle", "parent": 26, "children": [30, 31], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 31}}, {"id": 30, "type": "*", "text": "*", "parent": 29, "children": [], "start_point": {"row": 24, "column": 13}, "end_point": {"row": 24, "column": 14}}, {"id": 31, "type": "type_identifier", "text": "usb_device_handle", "parent": 29, "children": [], "start_point": {"row": 24, "column": 14}, "end_point": {"row": 24, "column": 31}}, {"id": 32, "type": "preproc_def", "text": "#define usb_device_controller_handle usb_device_handle\n", "parent": 0, "children": [33, 34, 35], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 26, "column": 0}}, {"id": 33, "type": "#define", "text": "#define", "parent": 32, "children": [], "start_point": {"row": 25, "column": 0}, "end_point": {"row": 25, "column": 7}}, {"id": 34, "type": "identifier", "text": "usb_device_controller_handle", "parent": 32, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 36}}, {"id": 35, "type": "preproc_arg", "text": "usb_device_handle", "parent": 32, "children": [], "start_point": {"row": 25, "column": 37}, "end_point": {"row": 25, "column": 54}}, {"id": 36, "type": "preproc_def", "text": "#define USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP (0)\n", "parent": 0, "children": [37, 38, 39], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 29, "column": 0}}, {"id": 37, "type": "#define", "text": "#define", "parent": 36, "children": [], "start_point": {"row": 28, "column": 0}, "end_point": {"row": 28, "column": 7}}, {"id": 38, "type": "identifier", "text": "USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP", "parent": 36, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 55}}, {"id": 39, "type": "preproc_arg", "text": "(0)", "parent": 36, "children": [], "start_point": {"row": 28, "column": 56}, "end_point": {"row": 28, "column": 59}}, {"id": 40, "type": "preproc_def", "text": "#define EP0_MAX_PACKET_SIZE 64\n", "parent": 0, "children": [41, 42, 43], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 41, "type": "#define", "text": "#define", "parent": 40, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 7}}, {"id": 42, "type": "identifier", "text": "EP0_MAX_PACKET_SIZE", "parent": 40, "children": [], "start_point": {"row": 31, "column": 8}, "end_point": {"row": 31, "column": 27}}, {"id": 43, "type": "preproc_arg", "text": "64", "parent": 40, "children": [], "start_point": {"row": 31, "column": 31}, "end_point": {"row": 31, "column": 33}}, {"id": 44, "type": "preproc_def", "text": "#define EP0_OUT 0\n", "parent": 0, "children": [45, 46, 47], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 45, "type": "#define", "text": "#define", "parent": 44, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 7}}, {"id": 46, "type": "identifier", "text": "EP0_OUT", "parent": 44, "children": [], "start_point": {"row": 32, "column": 8}, "end_point": {"row": 32, "column": 15}}, {"id": 47, "type": "preproc_arg", "text": "0", "parent": 44, "children": [], "start_point": {"row": 32, "column": 16}, "end_point": {"row": 32, "column": 17}}, {"id": 48, "type": "preproc_def", "text": "#define EP0_IN 0x80\n", "parent": 0, "children": [49, 50, 51], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 49, "type": "#define", "text": "#define", "parent": 48, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 7}}, {"id": 50, "type": "identifier", "text": "EP0_IN", "parent": 48, "children": [], "start_point": {"row": 33, "column": 8}, "end_point": {"row": 33, "column": 14}}, {"id": 51, "type": "preproc_arg", "text": "0x80", "parent": 48, "children": [], "start_point": {"row": 33, "column": 16}, "end_point": {"row": 33, "column": 20}}, {"id": 52, "type": "preproc_def", "text": "#define USB_ENDPOINT_NUMBER_MASK (0x0FU)\n", "parent": 0, "children": [53, 54, 55], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 36, "column": 0}}, {"id": 53, "type": "#define", "text": "#define", "parent": 52, "children": [], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 7}}, {"id": 54, "type": "identifier", "text": "USB_ENDPOINT_NUMBER_MASK", "parent": 52, "children": [], "start_point": {"row": 35, "column": 8}, "end_point": {"row": 35, "column": 32}}, {"id": 55, "type": "preproc_arg", "text": "(0x0FU)", "parent": 52, "children": [], "start_point": {"row": 35, "column": 33}, "end_point": {"row": 35, "column": 40}}, {"id": 56, "type": "preproc_def", "text": "#define USB_SETUP_PACKET_SIZE (8U)\n", "parent": 0, "children": [57, 58, 59], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 57, "type": "#define", "text": "#define", "parent": 56, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 7}}, {"id": 58, "type": "identifier", "text": "USB_SETUP_PACKET_SIZE", "parent": 56, "children": [], "start_point": {"row": 37, "column": 8}, "end_point": {"row": 37, "column": 29}}, {"id": 59, "type": "preproc_arg", "text": "(8U)", "parent": 56, "children": [], "start_point": {"row": 37, "column": 30}, "end_point": {"row": 37, "column": 34}}, {"id": 60, "type": "preproc_function_def", "text": "#define USB_OSA_SR_ALLOC() int usbOsaCurrentSr\n", "parent": 0, "children": [61, 62, 63, 64], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 41, "column": 0}}, {"id": 61, "type": "#define", "text": "#define", "parent": 60, "children": [], "start_point": {"row": 40, "column": 0}, "end_point": {"row": 40, "column": 7}}, {"id": 62, "type": "identifier", "text": "USB_OSA_SR_ALLOC", "parent": 60, "children": [], "start_point": {"row": 40, "column": 8}, "end_point": {"row": 40, "column": 24}}, {"id": 63, "type": "preproc_params", "text": "()", "parent": 60, "children": [], "start_point": {"row": 40, "column": 24}, "end_point": {"row": 40, "column": 26}}, {"id": 64, "type": "preproc_arg", "text": "int usbOsaCurrentSr", "parent": 60, "children": [], "start_point": {"row": 40, "column": 27}, "end_point": {"row": 40, "column": 46}}, {"id": 65, "type": "preproc_function_def", "text": "#define USB_OSA_ENTER_CRITICAL() usbOsaCurrentSr = irq_lock()\n", "parent": 0, "children": [66, 67, 68, 69], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 42, "column": 0}}, {"id": 66, "type": "#define", "text": "#define", "parent": 65, "children": [], "start_point": {"row": 41, "column": 0}, "end_point": {"row": 41, "column": 7}}, {"id": 67, "type": "identifier", "text": "USB_OSA_ENTER_CRITICAL", "parent": 65, "children": [], "start_point": {"row": 41, "column": 8}, "end_point": {"row": 41, "column": 30}}, {"id": 68, "type": "preproc_params", "text": "()", "parent": 65, "children": [], "start_point": {"row": 41, "column": 30}, "end_point": {"row": 41, "column": 32}}, {"id": 69, "type": "preproc_arg", "text": "usbOsaCurrentSr = irq_lock()", "parent": 65, "children": [], "start_point": {"row": 41, "column": 33}, "end_point": {"row": 41, "column": 61}}, {"id": 70, "type": "preproc_function_def", "text": "#define USB_OSA_EXIT_CRITICAL() irq_unlock(usbOsaCurrentSr)\n", "parent": 0, "children": [71, 72, 73, 74], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 43, "column": 0}}, {"id": 71, "type": "#define", "text": "#define", "parent": 70, "children": [], "start_point": {"row": 42, "column": 0}, "end_point": {"row": 42, "column": 7}}, {"id": 72, "type": "identifier", "text": "USB_OSA_EXIT_CRITICAL", "parent": 70, "children": [], "start_point": {"row": 42, "column": 8}, "end_point": {"row": 42, "column": 29}}, {"id": 73, "type": "preproc_params", "text": "()", "parent": 70, "children": [], "start_point": {"row": 42, "column": 29}, "end_point": {"row": 42, "column": 31}}, {"id": 74, "type": "preproc_arg", "text": "irq_unlock(usbOsaCurrentSr)", "parent": 70, "children": [], "start_point": {"row": 42, "column": 32}, "end_point": {"row": 42, "column": 59}}, {"id": 75, "type": "preproc_def", "text": "#define USB_CONTROL_ENDPOINT (0U)\n", "parent": 0, "children": [76, 77, 78], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 46, "column": 0}}, {"id": 76, "type": "#define", "text": "#define", "parent": 75, "children": [], "start_point": {"row": 45, "column": 0}, "end_point": {"row": 45, "column": 7}}, {"id": 77, "type": "identifier", "text": "USB_CONTROL_ENDPOINT", "parent": 75, "children": [], "start_point": {"row": 45, "column": 8}, "end_point": {"row": 45, "column": 28}}, {"id": 78, "type": "preproc_arg", "text": "(0U)", "parent": 75, "children": [], "start_point": {"row": 45, "column": 29}, "end_point": {"row": 45, "column": 33}}, {"id": 79, "type": "preproc_def", "text": "#define USB_UNINITIALIZED_VAL_32 (0xFFFFFFFFU)\n", "parent": 0, "children": [80, 81, 82], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 49, "column": 0}}, {"id": 80, "type": "#define", "text": "#define", "parent": 79, "children": [], "start_point": {"row": 48, "column": 0}, "end_point": {"row": 48, "column": 7}}, {"id": 81, "type": "identifier", "text": "USB_UNINITIALIZED_VAL_32", "parent": 79, "children": [], "start_point": {"row": 48, "column": 8}, "end_point": {"row": 48, "column": 32}}, {"id": 82, "type": "preproc_arg", "text": "(0xFFFFFFFFU)", "parent": 79, "children": [], "start_point": {"row": 48, "column": 33}, "end_point": {"row": 48, "column": 46}}, {"id": 83, "type": "preproc_def", "text": "#define USB_BDT\n", "parent": 0, "children": [84, 85], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 52, "column": 0}}, {"id": 84, "type": "#define", "text": "#define", "parent": 83, "children": [], "start_point": {"row": 51, "column": 0}, "end_point": {"row": 51, "column": 7}}, {"id": 85, "type": "identifier", "text": "USB_BDT", "parent": 83, "children": [], "start_point": {"row": 51, "column": 8}, "end_point": {"row": 51, "column": 15}}, {"id": 86, "type": "preproc_def", "text": "#define USB_GLOBAL\n", "parent": 0, "children": [87, 88], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 53, "column": 0}}, {"id": 87, "type": "#define", "text": "#define", "parent": 86, "children": [], "start_point": {"row": 52, "column": 0}, "end_point": {"row": 52, "column": 7}}, {"id": 88, "type": "identifier", "text": "USB_GLOBAL", "parent": 86, "children": [], "start_point": {"row": 52, "column": 8}, "end_point": {"row": 52, "column": 18}}, {"id": 89, "type": "preproc_def", "text": "#define USB_DATA_ALIGN_SIZE 4\n", "parent": 0, "children": [90, 91, 92], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 54, "column": 0}}, {"id": 90, "type": "#define", "text": "#define", "parent": 89, "children": [], "start_point": {"row": 53, "column": 0}, "end_point": {"row": 53, "column": 7}}, {"id": 91, "type": "identifier", "text": "USB_DATA_ALIGN_SIZE", "parent": 89, "children": [], "start_point": {"row": 53, "column": 8}, "end_point": {"row": 53, "column": 27}}, {"id": 92, "type": "preproc_arg", "text": "4", "parent": 89, "children": [], "start_point": {"row": 53, "column": 28}, "end_point": {"row": 53, "column": 29}}, {"id": 93, "type": "preproc_function_def", "text": "#define USB_RAM_ADDRESS_ALIGNMENT(n) __aligned(n)\n", "parent": 0, "children": [94, 95, 96, 98], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 55, "column": 0}}, {"id": 94, "type": "#define", "text": "#define", "parent": 93, "children": [], "start_point": {"row": 54, "column": 0}, "end_point": {"row": 54, "column": 7}}, {"id": 95, "type": "identifier", "text": "USB_RAM_ADDRESS_ALIGNMENT", "parent": 93, "children": [], "start_point": {"row": 54, "column": 8}, "end_point": {"row": 54, "column": 33}}, {"id": 96, "type": "preproc_params", "text": "(n)", "parent": 93, "children": [97], "start_point": {"row": 54, "column": 33}, "end_point": {"row": 54, "column": 36}}, {"id": 97, "type": "identifier", "text": "n", "parent": 96, "children": [], "start_point": {"row": 54, "column": 34}, "end_point": {"row": 54, "column": 35}}, {"id": 98, "type": "preproc_arg", "text": "__aligned(n)", "parent": 93, "children": [], "start_point": {"row": 54, "column": 37}, "end_point": {"row": 54, "column": 49}}, {"id": 99, "type": "preproc_if", "text": "#if defined(CONFIG_NOCACHE_MEMORY)\n#define USB_CONTROLLER_DATA __nocache\n#else\n#define USB_CONTROLLER_DATA\n#endif", "parent": 0, "children": [100, 101, 104, 105, 109, 114], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 61, "column": 6}}, {"id": 100, "type": "#if", "text": "#if", "parent": 99, "children": [], "start_point": {"row": 57, "column": 0}, "end_point": {"row": 57, "column": 3}}, {"id": 101, "type": "preproc_defined", "text": "defined(CONFIG_NOCACHE_MEMORY)", "parent": 99, "children": [102, 103], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 34}}, {"id": 102, "type": "defined", "text": "defined", "parent": 101, "children": [], "start_point": {"row": 57, "column": 4}, "end_point": {"row": 57, "column": 11}}, {"id": 103, "type": "identifier", "text": "CONFIG_NOCACHE_MEMORY", "parent": 101, "children": [], "start_point": {"row": 57, "column": 12}, "end_point": {"row": 57, "column": 33}}, {"id": 104, "type": "\n", "text": "\n", "parent": 99, "children": [], "start_point": {"row": 57, "column": 34}, "end_point": {"row": 58, "column": 0}}, {"id": 105, "type": "preproc_def", "text": "#define USB_CONTROLLER_DATA __nocache\n", "parent": 99, "children": [106, 107, 108], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 59, "column": 0}}, {"id": 106, "type": "#define", "text": "#define", "parent": 105, "children": [], "start_point": {"row": 58, "column": 0}, "end_point": {"row": 58, "column": 7}}, {"id": 107, "type": "identifier", "text": "USB_CONTROLLER_DATA", "parent": 105, "children": [], "start_point": {"row": 58, "column": 8}, "end_point": {"row": 58, "column": 27}}, {"id": 108, "type": "preproc_arg", "text": "__nocache", "parent": 105, "children": [], "start_point": {"row": 58, "column": 28}, "end_point": {"row": 58, "column": 37}}, {"id": 109, "type": "preproc_else", "text": "#else\n#define USB_CONTROLLER_DATA\n", "parent": 99, "children": [110, 111], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 110, "type": "#else", "text": "#else", "parent": 109, "children": [], "start_point": {"row": 59, "column": 0}, "end_point": {"row": 59, "column": 5}}, {"id": 111, "type": "preproc_def", "text": "#define USB_CONTROLLER_DATA\n", "parent": 109, "children": [112, 113], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 61, "column": 0}}, {"id": 112, "type": "#define", "text": "#define", "parent": 111, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 7}}, {"id": 113, "type": "identifier", "text": "USB_CONTROLLER_DATA", "parent": 111, "children": [], "start_point": {"row": 60, "column": 8}, "end_point": {"row": 60, "column": 27}}, {"id": 114, "type": "#endif", "text": "#endif", "parent": 99, "children": [], "start_point": {"row": 61, "column": 0}, "end_point": {"row": 61, "column": 6}}, {"id": 115, "type": "preproc_def", "text": "#define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U)\n", "parent": 0, "children": [116, 117, 118], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 64, "column": 0}}, {"id": 116, "type": "#define", "text": "#define", "parent": 115, "children": [], "start_point": {"row": 63, "column": 0}, "end_point": {"row": 63, "column": 7}}, {"id": 117, "type": "identifier", "text": "USB_DEVICE_CONFIG_EHCI_MAX_DTD", "parent": 115, "children": [], "start_point": {"row": 63, "column": 8}, "end_point": {"row": 63, "column": 38}}, {"id": 118, "type": "preproc_arg", "text": "(16U)", "parent": 115, "children": [], "start_point": {"row": 63, "column": 39}, "end_point": {"row": 63, "column": 44}}, {"id": 119, "type": "preproc_def", "text": "#define USB_CONTROL_MAX_PACKET_SIZE (64U)\n", "parent": 0, "children": [120, 121, 122], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 66, "column": 0}}, {"id": 120, "type": "#define", "text": "#define", "parent": 119, "children": [], "start_point": {"row": 65, "column": 0}, "end_point": {"row": 65, "column": 7}}, {"id": 121, "type": "identifier", "text": "USB_CONTROL_MAX_PACKET_SIZE", "parent": 119, "children": [], "start_point": {"row": 65, "column": 8}, "end_point": {"row": 65, "column": 35}}, {"id": 122, "type": "preproc_arg", "text": "(64U)", "parent": 119, "children": [], "start_point": {"row": 65, "column": 36}, "end_point": {"row": 65, "column": 41}}, {"id": 123, "type": "preproc_def", "text": "#define USB_DEVICE_CONFIG_SELF_POWER (1U)\n", "parent": 0, "children": [124, 125, 126], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 69, "column": 0}}, {"id": 124, "type": "#define", "text": "#define", "parent": 123, "children": [], "start_point": {"row": 68, "column": 0}, "end_point": {"row": 68, "column": 7}}, {"id": 125, "type": "identifier", "text": "USB_DEVICE_CONFIG_SELF_POWER", "parent": 123, "children": [], "start_point": {"row": 68, "column": 8}, "end_point": {"row": 68, "column": 36}}, {"id": 126, "type": "preproc_arg", "text": "(1U)", "parent": 123, "children": [], "start_point": {"row": 68, "column": 37}, "end_point": {"row": 68, "column": 41}}, {"id": 127, "type": "type_definition", "text": "typedef enum _usb_controller_index {\n\t/* KHCI 0U */\n\tkUSB_ControllerKhci0 = 0U,\n\t/* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerKhci1 = 1U,\n\n\t/* EHCI 0U */\n\tkUSB_ControllerEhci0 = 2U,\n\t/* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerEhci1 = 3U,\n\n\t/* LPC USB IP3511 FS controller 0 */\n\tkUSB_ControllerLpcIp3511Fs0 = 4U,\n\t/* LPC USB IP3511 FS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Fs1 = 5U,\n\n\t/* LPC USB IP3511 HS controller 0 */\n\tkUSB_ControllerLpcIp3511Hs0 = 6U,\n\t/* LPC USB IP3511 HS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Hs1 = 7U,\n} usb_controller_index_t;", "parent": 0, "children": [128, 129, 165], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 99, "column": 25}}, {"id": 128, "type": "typedef", "text": "typedef", "parent": 127, "children": [], "start_point": {"row": 71, "column": 0}, "end_point": {"row": 71, "column": 7}}, {"id": 129, "type": "enum_specifier", "text": "enum _usb_controller_index {\n\t/* KHCI 0U */\n\tkUSB_ControllerKhci0 = 0U,\n\t/* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerKhci1 = 1U,\n\n\t/* EHCI 0U */\n\tkUSB_ControllerEhci0 = 2U,\n\t/* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerEhci1 = 3U,\n\n\t/* LPC USB IP3511 FS controller 0 */\n\tkUSB_ControllerLpcIp3511Fs0 = 4U,\n\t/* LPC USB IP3511 FS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Fs1 = 5U,\n\n\t/* LPC USB IP3511 HS controller 0 */\n\tkUSB_ControllerLpcIp3511Hs0 = 6U,\n\t/* LPC USB IP3511 HS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Hs1 = 7U,\n}", "parent": 127, "children": [130, 131, 132], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 99, "column": 1}}, {"id": 130, "type": "enum", "text": "enum", "parent": 129, "children": [], "start_point": {"row": 71, "column": 8}, "end_point": {"row": 71, "column": 12}}, {"id": 131, "type": "type_identifier", "text": "_usb_controller_index", "parent": 129, "children": [], "start_point": {"row": 71, "column": 13}, "end_point": {"row": 71, "column": 34}}, {"id": 132, "type": "enumerator_list", "text": "{\n\t/* KHCI 0U */\n\tkUSB_ControllerKhci0 = 0U,\n\t/* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerKhci1 = 1U,\n\n\t/* EHCI 0U */\n\tkUSB_ControllerEhci0 = 2U,\n\t/* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerEhci1 = 3U,\n\n\t/* LPC USB IP3511 FS controller 0 */\n\tkUSB_ControllerLpcIp3511Fs0 = 4U,\n\t/* LPC USB IP3511 FS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Fs1 = 5U,\n\n\t/* LPC USB IP3511 HS controller 0 */\n\tkUSB_ControllerLpcIp3511Hs0 = 6U,\n\t/* LPC USB IP3511 HS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Hs1 = 7U,\n}", "parent": 129, "children": [133, 137, 141, 145, 149, 153, 157, 161], "start_point": {"row": 71, "column": 35}, "end_point": {"row": 99, "column": 1}}, {"id": 133, "type": "enumerator", "text": "kUSB_ControllerKhci0 = 0U", "parent": 132, "children": [134, 135, 136], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 37}}, {"id": 134, "type": "identifier", "text": "kUSB_ControllerKhci0", "parent": 133, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 21}}, {"id": 135, "type": "=", "text": "=", "parent": 133, "children": [], "start_point": {"row": 73, "column": 33}, "end_point": {"row": 73, "column": 34}}, {"id": 136, "type": "number_literal", "text": "0U", "parent": 133, "children": [], "start_point": {"row": 73, "column": 35}, "end_point": {"row": 73, "column": 37}}, {"id": 137, "type": "enumerator", "text": "kUSB_ControllerKhci1 = 1U", "parent": 132, "children": [138, 139, 140], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 37}}, {"id": 138, "type": "identifier", "text": "kUSB_ControllerKhci1", "parent": 137, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 21}}, {"id": 139, "type": "=", "text": "=", "parent": 137, "children": [], "start_point": {"row": 77, "column": 33}, "end_point": {"row": 77, "column": 34}}, {"id": 140, "type": "number_literal", "text": "1U", "parent": 137, "children": [], "start_point": {"row": 77, "column": 35}, "end_point": {"row": 77, "column": 37}}, {"id": 141, "type": "enumerator", "text": "kUSB_ControllerEhci0 = 2U", "parent": 132, "children": [142, 143, 144], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 37}}, {"id": 142, "type": "identifier", "text": "kUSB_ControllerEhci0", "parent": 141, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 21}}, {"id": 143, "type": "=", "text": "=", "parent": 141, "children": [], "start_point": {"row": 80, "column": 33}, "end_point": {"row": 80, "column": 34}}, {"id": 144, "type": "number_literal", "text": "2U", "parent": 141, "children": [], "start_point": {"row": 80, "column": 35}, "end_point": {"row": 80, "column": 37}}, {"id": 145, "type": "enumerator", "text": "kUSB_ControllerEhci1 = 3U", "parent": 132, "children": [146, 147, 148], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 37}}, {"id": 146, "type": "identifier", "text": "kUSB_ControllerEhci1", "parent": 145, "children": [], "start_point": {"row": 84, "column": 1}, "end_point": {"row": 84, "column": 21}}, {"id": 147, "type": "=", "text": "=", "parent": 145, "children": [], "start_point": {"row": 84, "column": 33}, "end_point": {"row": 84, "column": 34}}, {"id": 148, "type": "number_literal", "text": "3U", "parent": 145, "children": [], "start_point": {"row": 84, "column": 35}, "end_point": {"row": 84, "column": 37}}, {"id": 149, "type": "enumerator", "text": "kUSB_ControllerLpcIp3511Fs0 = 4U", "parent": 132, "children": [150, 151, 152], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 37}}, {"id": 150, "type": "identifier", "text": "kUSB_ControllerLpcIp3511Fs0", "parent": 149, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 28}}, {"id": 151, "type": "=", "text": "=", "parent": 149, "children": [], "start_point": {"row": 87, "column": 33}, "end_point": {"row": 87, "column": 34}}, {"id": 152, "type": "number_literal", "text": "4U", "parent": 149, "children": [], "start_point": {"row": 87, "column": 35}, "end_point": {"row": 87, "column": 37}}, {"id": 153, "type": "enumerator", "text": "kUSB_ControllerLpcIp3511Fs1 = 5U", "parent": 132, "children": [154, 155, 156], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 37}}, {"id": 154, "type": "identifier", "text": "kUSB_ControllerLpcIp3511Fs1", "parent": 153, "children": [], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 91, "column": 28}}, {"id": 155, "type": "=", "text": "=", "parent": 153, "children": [], "start_point": {"row": 91, "column": 33}, "end_point": {"row": 91, "column": 34}}, {"id": 156, "type": "number_literal", "text": "5U", "parent": 153, "children": [], "start_point": {"row": 91, "column": 35}, "end_point": {"row": 91, "column": 37}}, {"id": 157, "type": "enumerator", "text": "kUSB_ControllerLpcIp3511Hs0 = 6U", "parent": 132, "children": [158, 159, 160], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 37}}, {"id": 158, "type": "identifier", "text": "kUSB_ControllerLpcIp3511Hs0", "parent": 157, "children": [], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 94, "column": 28}}, {"id": 159, "type": "=", "text": "=", "parent": 157, "children": [], "start_point": {"row": 94, "column": 33}, "end_point": {"row": 94, "column": 34}}, {"id": 160, "type": "number_literal", "text": "6U", "parent": 157, "children": [], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 37}}, {"id": 161, "type": "enumerator", "text": "kUSB_ControllerLpcIp3511Hs1 = 7U", "parent": 132, "children": [162, 163, 164], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 37}}, {"id": 162, "type": "identifier", "text": "kUSB_ControllerLpcIp3511Hs1", "parent": 161, "children": [], "start_point": {"row": 98, "column": 1}, "end_point": {"row": 98, "column": 28}}, {"id": 163, "type": "=", "text": "=", "parent": 161, "children": [], "start_point": {"row": 98, "column": 33}, "end_point": {"row": 98, "column": 34}}, {"id": 164, "type": "number_literal", "text": "7U", "parent": 161, "children": [], "start_point": {"row": 98, "column": 35}, "end_point": {"row": 98, "column": 37}}, {"id": 165, "type": "type_identifier", "text": "usb_controller_index_t", "parent": 127, "children": [], "start_point": {"row": 99, "column": 2}, "end_point": {"row": 99, "column": 24}}, {"id": 166, "type": "type_definition", "text": "typedef enum _usb_device_control_type {\n\t/* Enable the device functionality */\n\tkUSB_DeviceControlRun = 0U,\n\t/* Disable the device functionality */\n\tkUSB_DeviceControlStop,\n\t/* Initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointInit,\n\t/* De-initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointDeinit,\n\t/* Stall a specified endpoint */\n\tkUSB_DeviceControlEndpointStall,\n\t/* Unstall a specified endpoint */\n\tkUSB_DeviceControlEndpointUnstall,\n\t/* Get device status */\n\tkUSB_DeviceControlGetDeviceStatus,\n\t/* Get endpoint status */\n\tkUSB_DeviceControlGetEndpointStatus,\n\t/* Set device address */\n\tkUSB_DeviceControlSetDeviceAddress,\n\t/* Get current frame */\n\tkUSB_DeviceControlGetSynchFrame,\n\t/* Drive controller to generate a resume signal in USB bus */\n\tkUSB_DeviceControlResume,\n\t/* Drive controller to generate a LPM resume signal in USB bus */\n\tkUSB_DeviceControlSleepResume,\n\t/* Drive controller to enetr into suspend mode */\n\tkUSB_DeviceControlSuspend,\n\t/* Drive controller to enetr into sleep mode */\n\tkUSB_DeviceControlSleep,\n\t/* Set controller to default status */\n\tkUSB_DeviceControlSetDefaultStatus,\n\t/* Get current speed */\n\tkUSB_DeviceControlGetSpeed,\n\t/* Get OTG status */\n\tkUSB_DeviceControlGetOtgStatus,\n\t/* Set OTG status */\n\tkUSB_DeviceControlSetOtgStatus,\n\t/* Drive xCHI into test mode */\n\tkUSB_DeviceControlSetTestMode,\n\t/* Get flag of LPM Remote Wake-up Enabled by USB host. */\n\tkUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\tkUSB_DeviceControlDcdInitModule,\n\tkUSB_DeviceControlDcdDeinitModule,\n#endif\n} usb_device_control_type_t;", "parent": 0, "children": [167, 168, 233], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 148, "column": 28}}, {"id": 167, "type": "typedef", "text": "typedef", "parent": 166, "children": [], "start_point": {"row": 102, "column": 0}, "end_point": {"row": 102, "column": 7}}, {"id": 168, "type": "enum_specifier", "text": "enum _usb_device_control_type {\n\t/* Enable the device functionality */\n\tkUSB_DeviceControlRun = 0U,\n\t/* Disable the device functionality */\n\tkUSB_DeviceControlStop,\n\t/* Initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointInit,\n\t/* De-initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointDeinit,\n\t/* Stall a specified endpoint */\n\tkUSB_DeviceControlEndpointStall,\n\t/* Unstall a specified endpoint */\n\tkUSB_DeviceControlEndpointUnstall,\n\t/* Get device status */\n\tkUSB_DeviceControlGetDeviceStatus,\n\t/* Get endpoint status */\n\tkUSB_DeviceControlGetEndpointStatus,\n\t/* Set device address */\n\tkUSB_DeviceControlSetDeviceAddress,\n\t/* Get current frame */\n\tkUSB_DeviceControlGetSynchFrame,\n\t/* Drive controller to generate a resume signal in USB bus */\n\tkUSB_DeviceControlResume,\n\t/* Drive controller to generate a LPM resume signal in USB bus */\n\tkUSB_DeviceControlSleepResume,\n\t/* Drive controller to enetr into suspend mode */\n\tkUSB_DeviceControlSuspend,\n\t/* Drive controller to enetr into sleep mode */\n\tkUSB_DeviceControlSleep,\n\t/* Set controller to default status */\n\tkUSB_DeviceControlSetDefaultStatus,\n\t/* Get current speed */\n\tkUSB_DeviceControlGetSpeed,\n\t/* Get OTG status */\n\tkUSB_DeviceControlGetOtgStatus,\n\t/* Set OTG status */\n\tkUSB_DeviceControlSetOtgStatus,\n\t/* Drive xCHI into test mode */\n\tkUSB_DeviceControlSetTestMode,\n\t/* Get flag of LPM Remote Wake-up Enabled by USB host. */\n\tkUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\tkUSB_DeviceControlDcdInitModule,\n\tkUSB_DeviceControlDcdDeinitModule,\n#endif\n}", "parent": 166, "children": [169, 170, 171], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 148, "column": 1}}, {"id": 169, "type": "enum", "text": "enum", "parent": 168, "children": [], "start_point": {"row": 102, "column": 8}, "end_point": {"row": 102, "column": 12}}, {"id": 170, "type": "type_identifier", "text": "_usb_device_control_type", "parent": 168, "children": [], "start_point": {"row": 102, "column": 13}, "end_point": {"row": 102, "column": 37}}, {"id": 171, "type": "enumerator_list", "text": "{\n\t/* Enable the device functionality */\n\tkUSB_DeviceControlRun = 0U,\n\t/* Disable the device functionality */\n\tkUSB_DeviceControlStop,\n\t/* Initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointInit,\n\t/* De-initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointDeinit,\n\t/* Stall a specified endpoint */\n\tkUSB_DeviceControlEndpointStall,\n\t/* Unstall a specified endpoint */\n\tkUSB_DeviceControlEndpointUnstall,\n\t/* Get device status */\n\tkUSB_DeviceControlGetDeviceStatus,\n\t/* Get endpoint status */\n\tkUSB_DeviceControlGetEndpointStatus,\n\t/* Set device address */\n\tkUSB_DeviceControlSetDeviceAddress,\n\t/* Get current frame */\n\tkUSB_DeviceControlGetSynchFrame,\n\t/* Drive controller to generate a resume signal in USB bus */\n\tkUSB_DeviceControlResume,\n\t/* Drive controller to generate a LPM resume signal in USB bus */\n\tkUSB_DeviceControlSleepResume,\n\t/* Drive controller to enetr into suspend mode */\n\tkUSB_DeviceControlSuspend,\n\t/* Drive controller to enetr into sleep mode */\n\tkUSB_DeviceControlSleep,\n\t/* Set controller to default status */\n\tkUSB_DeviceControlSetDefaultStatus,\n\t/* Get current speed */\n\tkUSB_DeviceControlGetSpeed,\n\t/* Get OTG status */\n\tkUSB_DeviceControlGetOtgStatus,\n\t/* Set OTG status */\n\tkUSB_DeviceControlSetOtgStatus,\n\t/* Drive xCHI into test mode */\n\tkUSB_DeviceControlSetTestMode,\n\t/* Get flag of LPM Remote Wake-up Enabled by USB host. */\n\tkUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\tkUSB_DeviceControlDcdInitModule,\n\tkUSB_DeviceControlDcdDeinitModule,\n#endif\n}", "parent": 168, "children": [172, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214], "start_point": {"row": 102, "column": 38}, "end_point": {"row": 148, "column": 1}}, {"id": 172, "type": "enumerator", "text": "kUSB_DeviceControlRun = 0U", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 27}}, {"id": 173, "type": "identifier", "text": "kUSB_DeviceControlRun", "parent": 172, "children": [], "start_point": {"row": 104, "column": 1}, "end_point": {"row": 104, "column": 22}}, {"id": 174, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 104, "column": 23}, "end_point": {"row": 104, "column": 24}}, {"id": 175, "type": "number_literal", "text": "0U", "parent": 172, "children": [], "start_point": {"row": 104, "column": 25}, "end_point": {"row": 104, "column": 27}}, {"id": 176, "type": "enumerator", "text": "kUSB_DeviceControlStop", "parent": 171, "children": [177], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 23}}, {"id": 177, "type": "identifier", "text": "kUSB_DeviceControlStop", "parent": 176, "children": [], "start_point": {"row": 106, "column": 1}, "end_point": {"row": 106, "column": 23}}, {"id": 178, "type": "enumerator", "text": "kUSB_DeviceControlEndpointInit", "parent": 171, "children": [179], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 31}}, {"id": 179, "type": "identifier", "text": "kUSB_DeviceControlEndpointInit", "parent": 178, "children": [], "start_point": {"row": 108, "column": 1}, "end_point": {"row": 108, "column": 31}}, {"id": 180, "type": "enumerator", "text": "kUSB_DeviceControlEndpointDeinit", "parent": 171, "children": [181], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 33}}, {"id": 181, "type": "identifier", "text": "kUSB_DeviceControlEndpointDeinit", "parent": 180, "children": [], "start_point": {"row": 110, "column": 1}, "end_point": {"row": 110, "column": 33}}, {"id": 182, "type": "enumerator", "text": "kUSB_DeviceControlEndpointStall", "parent": 171, "children": [183], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 32}}, {"id": 183, "type": "identifier", "text": "kUSB_DeviceControlEndpointStall", "parent": 182, "children": [], "start_point": {"row": 112, "column": 1}, "end_point": {"row": 112, "column": 32}}, {"id": 184, "type": "enumerator", "text": "kUSB_DeviceControlEndpointUnstall", "parent": 171, "children": [185], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 34}}, {"id": 185, "type": "identifier", "text": "kUSB_DeviceControlEndpointUnstall", "parent": 184, "children": [], "start_point": {"row": 114, "column": 1}, "end_point": {"row": 114, "column": 34}}, {"id": 186, "type": "enumerator", "text": "kUSB_DeviceControlGetDeviceStatus", "parent": 171, "children": [187], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 34}}, {"id": 187, "type": "identifier", "text": "kUSB_DeviceControlGetDeviceStatus", "parent": 186, "children": [], "start_point": {"row": 116, "column": 1}, "end_point": {"row": 116, "column": 34}}, {"id": 188, "type": "enumerator", "text": "kUSB_DeviceControlGetEndpointStatus", "parent": 171, "children": [189], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 36}}, {"id": 189, "type": "identifier", "text": "kUSB_DeviceControlGetEndpointStatus", "parent": 188, "children": [], "start_point": {"row": 118, "column": 1}, "end_point": {"row": 118, "column": 36}}, {"id": 190, "type": "enumerator", "text": "kUSB_DeviceControlSetDeviceAddress", "parent": 171, "children": [191], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 35}}, {"id": 191, "type": "identifier", "text": "kUSB_DeviceControlSetDeviceAddress", "parent": 190, "children": [], "start_point": {"row": 120, "column": 1}, "end_point": {"row": 120, "column": 35}}, {"id": 192, "type": "enumerator", "text": "kUSB_DeviceControlGetSynchFrame", "parent": 171, "children": [193], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 32}}, {"id": 193, "type": "identifier", "text": "kUSB_DeviceControlGetSynchFrame", "parent": 192, "children": [], "start_point": {"row": 122, "column": 1}, "end_point": {"row": 122, "column": 32}}, {"id": 194, "type": "enumerator", "text": "kUSB_DeviceControlResume", "parent": 171, "children": [195], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 25}}, {"id": 195, "type": "identifier", "text": "kUSB_DeviceControlResume", "parent": 194, "children": [], "start_point": {"row": 124, "column": 1}, "end_point": {"row": 124, "column": 25}}, {"id": 196, "type": "enumerator", "text": "kUSB_DeviceControlSleepResume", "parent": 171, "children": [197], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 30}}, {"id": 197, "type": "identifier", "text": "kUSB_DeviceControlSleepResume", "parent": 196, "children": [], "start_point": {"row": 126, "column": 1}, "end_point": {"row": 126, "column": 30}}, {"id": 198, "type": "enumerator", "text": "kUSB_DeviceControlSuspend", "parent": 171, "children": [199], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 26}}, {"id": 199, "type": "identifier", "text": "kUSB_DeviceControlSuspend", "parent": 198, "children": [], "start_point": {"row": 128, "column": 1}, "end_point": {"row": 128, "column": 26}}, {"id": 200, "type": "enumerator", "text": "kUSB_DeviceControlSleep", "parent": 171, "children": [201], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 24}}, {"id": 201, "type": "identifier", "text": "kUSB_DeviceControlSleep", "parent": 200, "children": [], "start_point": {"row": 130, "column": 1}, "end_point": {"row": 130, "column": 24}}, {"id": 202, "type": "enumerator", "text": "kUSB_DeviceControlSetDefaultStatus", "parent": 171, "children": [203], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 35}}, {"id": 203, "type": "identifier", "text": "kUSB_DeviceControlSetDefaultStatus", "parent": 202, "children": [], "start_point": {"row": 132, "column": 1}, "end_point": {"row": 132, "column": 35}}, {"id": 204, "type": "enumerator", "text": "kUSB_DeviceControlGetSpeed", "parent": 171, "children": [205], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 27}}, {"id": 205, "type": "identifier", "text": "kUSB_DeviceControlGetSpeed", "parent": 204, "children": [], "start_point": {"row": 134, "column": 1}, "end_point": {"row": 134, "column": 27}}, {"id": 206, "type": "enumerator", "text": "kUSB_DeviceControlGetOtgStatus", "parent": 171, "children": [207], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 31}}, {"id": 207, "type": "identifier", "text": "kUSB_DeviceControlGetOtgStatus", "parent": 206, "children": [], "start_point": {"row": 136, "column": 1}, "end_point": {"row": 136, "column": 31}}, {"id": 208, "type": "enumerator", "text": "kUSB_DeviceControlSetOtgStatus", "parent": 171, "children": [209], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 31}}, {"id": 209, "type": "identifier", "text": "kUSB_DeviceControlSetOtgStatus", "parent": 208, "children": [], "start_point": {"row": 138, "column": 1}, "end_point": {"row": 138, "column": 31}}, {"id": 210, "type": "enumerator", "text": "kUSB_DeviceControlSetTestMode", "parent": 171, "children": [211], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 30}}, {"id": 211, "type": "identifier", "text": "kUSB_DeviceControlSetTestMode", "parent": 210, "children": [], "start_point": {"row": 140, "column": 1}, "end_point": {"row": 140, "column": 30}}, {"id": 212, "type": "enumerator", "text": "kUSB_DeviceControlGetRemoteWakeUp", "parent": 171, "children": [213], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 34}}, {"id": 213, "type": "identifier", "text": "kUSB_DeviceControlGetRemoteWakeUp", "parent": 212, "children": [], "start_point": {"row": 142, "column": 1}, "end_point": {"row": 142, "column": 34}}, {"id": 214, "type": "preproc_if", "text": "#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\tkUSB_DeviceControlDcdInitModule,\n\tkUSB_DeviceControlDcdDeinitModule,\n#endif", "parent": 171, "children": [215, 216, 227, 228, 230, 232], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 147, "column": 6}}, {"id": 215, "type": "#if", "text": "#if", "parent": 214, "children": [], "start_point": {"row": 143, "column": 0}, "end_point": {"row": 143, "column": 3}}, {"id": 216, "type": "parenthesized_expression", "text": "(defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))", "parent": 214, "children": [217], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 144, "column": 41}}, {"id": 217, "type": "binary_expression", "text": "defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)", "parent": 216, "children": [218, 221, 222], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 144, "column": 40}}, {"id": 218, "type": "preproc_defined", "text": "defined(USB_DEVICE_CHARGER_DETECT_ENABLE)", "parent": 217, "children": [219, 220], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 46}}, {"id": 219, "type": "defined", "text": "defined", "parent": 218, "children": [], "start_point": {"row": 143, "column": 5}, "end_point": {"row": 143, "column": 12}}, {"id": 220, "type": "identifier", "text": "USB_DEVICE_CHARGER_DETECT_ENABLE", "parent": 218, "children": [], "start_point": {"row": 143, "column": 13}, "end_point": {"row": 143, "column": 45}}, {"id": 221, "type": "&&", "text": "&&", "parent": 217, "children": [], "start_point": {"row": 143, "column": 47}, "end_point": {"row": 143, "column": 49}}, {"id": 222, "type": "parenthesized_expression", "text": "(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)", "parent": 217, "children": [223], "start_point": {"row": 144, "column": 1}, "end_point": {"row": 144, "column": 40}}, {"id": 223, "type": "binary_expression", "text": "USB_DEVICE_CHARGER_DETECT_ENABLE > 0U", "parent": 222, "children": [224, 225, 226], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 39}}, {"id": 224, "type": "identifier", "text": "USB_DEVICE_CHARGER_DETECT_ENABLE", "parent": 223, "children": [], "start_point": {"row": 144, "column": 2}, "end_point": {"row": 144, "column": 34}}, {"id": 225, "type": ">", "text": ">", "parent": 223, "children": [], "start_point": {"row": 144, "column": 35}, "end_point": {"row": 144, "column": 36}}, {"id": 226, "type": "number_literal", "text": "0U", "parent": 223, "children": [], "start_point": {"row": 144, "column": 37}, "end_point": {"row": 144, "column": 39}}, {"id": 227, "type": "\n", "text": "\n", "parent": 214, "children": [], "start_point": {"row": 144, "column": 41}, "end_point": {"row": 145, "column": 0}}, {"id": 228, "type": "enumerator", "text": "kUSB_DeviceControlDcdInitModule", "parent": 214, "children": [229], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 32}}, {"id": 229, "type": "identifier", "text": "kUSB_DeviceControlDcdInitModule", "parent": 228, "children": [], "start_point": {"row": 145, "column": 1}, "end_point": {"row": 145, "column": 32}}, {"id": 230, "type": "enumerator", "text": "kUSB_DeviceControlDcdDeinitModule", "parent": 214, "children": [231], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 34}}, {"id": 231, "type": "identifier", "text": "kUSB_DeviceControlDcdDeinitModule", "parent": 230, "children": [], "start_point": {"row": 146, "column": 1}, "end_point": {"row": 146, "column": 34}}, {"id": 232, "type": "#endif", "text": "#endif", "parent": 214, "children": [], "start_point": {"row": 147, "column": 0}, "end_point": {"row": 147, "column": 6}}, {"id": 233, "type": "type_identifier", "text": "usb_device_control_type_t", "parent": 166, "children": [], "start_point": {"row": 148, "column": 2}, "end_point": {"row": 148, "column": 27}}, {"id": 234, "type": "type_definition", "text": "typedef enum _usb_device_notification {\n\t/* Reset signal detected */\n\tkUSB_DeviceNotifyBusReset = 0x10U,\n\t/* Suspend signal detected */\n\tkUSB_DeviceNotifySuspend,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyResume,\n\t/* LPM signal detected */\n\tkUSB_DeviceNotifyLPMSleep,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyLPMResume,\n\t/* Errors happened in bus */\n\tkUSB_DeviceNotifyError,\n\t/* Device disconnected from a host */\n\tkUSB_DeviceNotifyDetach,\n\t/* Device connected to a host */\n\tkUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\t/* Device charger detection timeout */\n\tkUSB_DeviceNotifyDcdTimeOut,\n\t/* Device charger detection unknown port type */\n\tkUSB_DeviceNotifyDcdUnknownPortType,\n\t/* The SDP facility is detected */\n\tkUSB_DeviceNotifySDPDetected,\n\t/* The charging port is detected */\n\tkUSB_DeviceNotifyChargingPortDetected,\n\t/* The CDP facility is detected */\n\tkUSB_DeviceNotifyChargingHostDetected,\n\t/* The DCP facility is detected */\n\tkUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n} usb_device_notification_t;", "parent": 0, "children": [235, 236, 285], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 183, "column": 28}}, {"id": 235, "type": "typedef", "text": "typedef", "parent": 234, "children": [], "start_point": {"row": 151, "column": 0}, "end_point": {"row": 151, "column": 7}}, {"id": 236, "type": "enum_specifier", "text": "enum _usb_device_notification {\n\t/* Reset signal detected */\n\tkUSB_DeviceNotifyBusReset = 0x10U,\n\t/* Suspend signal detected */\n\tkUSB_DeviceNotifySuspend,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyResume,\n\t/* LPM signal detected */\n\tkUSB_DeviceNotifyLPMSleep,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyLPMResume,\n\t/* Errors happened in bus */\n\tkUSB_DeviceNotifyError,\n\t/* Device disconnected from a host */\n\tkUSB_DeviceNotifyDetach,\n\t/* Device connected to a host */\n\tkUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\t/* Device charger detection timeout */\n\tkUSB_DeviceNotifyDcdTimeOut,\n\t/* Device charger detection unknown port type */\n\tkUSB_DeviceNotifyDcdUnknownPortType,\n\t/* The SDP facility is detected */\n\tkUSB_DeviceNotifySDPDetected,\n\t/* The charging port is detected */\n\tkUSB_DeviceNotifyChargingPortDetected,\n\t/* The CDP facility is detected */\n\tkUSB_DeviceNotifyChargingHostDetected,\n\t/* The DCP facility is detected */\n\tkUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n}", "parent": 234, "children": [237, 238, 239], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 183, "column": 1}}, {"id": 237, "type": "enum", "text": "enum", "parent": 236, "children": [], "start_point": {"row": 151, "column": 8}, "end_point": {"row": 151, "column": 12}}, {"id": 238, "type": "type_identifier", "text": "_usb_device_notification", "parent": 236, "children": [], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 37}}, {"id": 239, "type": "enumerator_list", "text": "{\n\t/* Reset signal detected */\n\tkUSB_DeviceNotifyBusReset = 0x10U,\n\t/* Suspend signal detected */\n\tkUSB_DeviceNotifySuspend,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyResume,\n\t/* LPM signal detected */\n\tkUSB_DeviceNotifyLPMSleep,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyLPMResume,\n\t/* Errors happened in bus */\n\tkUSB_DeviceNotifyError,\n\t/* Device disconnected from a host */\n\tkUSB_DeviceNotifyDetach,\n\t/* Device connected to a host */\n\tkUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\t/* Device charger detection timeout */\n\tkUSB_DeviceNotifyDcdTimeOut,\n\t/* Device charger detection unknown port type */\n\tkUSB_DeviceNotifyDcdUnknownPortType,\n\t/* The SDP facility is detected */\n\tkUSB_DeviceNotifySDPDetected,\n\t/* The charging port is detected */\n\tkUSB_DeviceNotifyChargingPortDetected,\n\t/* The CDP facility is detected */\n\tkUSB_DeviceNotifyChargingHostDetected,\n\t/* The DCP facility is detected */\n\tkUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n}", "parent": 236, "children": [240, 244, 246, 248, 250, 252, 254, 256, 258], "start_point": {"row": 151, "column": 38}, "end_point": {"row": 183, "column": 1}}, {"id": 240, "type": "enumerator", "text": "kUSB_DeviceNotifyBusReset = 0x10U", "parent": 239, "children": [241, 242, 243], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 34}}, {"id": 241, "type": "identifier", "text": "kUSB_DeviceNotifyBusReset", "parent": 240, "children": [], "start_point": {"row": 153, "column": 1}, "end_point": {"row": 153, "column": 26}}, {"id": 242, "type": "=", "text": "=", "parent": 240, "children": [], "start_point": {"row": 153, "column": 27}, "end_point": {"row": 153, "column": 28}}, {"id": 243, "type": "number_literal", "text": "0x10U", "parent": 240, "children": [], "start_point": {"row": 153, "column": 29}, "end_point": {"row": 153, "column": 34}}, {"id": 244, "type": "enumerator", "text": "kUSB_DeviceNotifySuspend", "parent": 239, "children": [245], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 25}}, {"id": 245, "type": "identifier", "text": "kUSB_DeviceNotifySuspend", "parent": 244, "children": [], "start_point": {"row": 155, "column": 1}, "end_point": {"row": 155, "column": 25}}, {"id": 246, "type": "enumerator", "text": "kUSB_DeviceNotifyResume", "parent": 239, "children": [247], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 24}}, {"id": 247, "type": "identifier", "text": "kUSB_DeviceNotifyResume", "parent": 246, "children": [], "start_point": {"row": 157, "column": 1}, "end_point": {"row": 157, "column": 24}}, {"id": 248, "type": "enumerator", "text": "kUSB_DeviceNotifyLPMSleep", "parent": 239, "children": [249], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 26}}, {"id": 249, "type": "identifier", "text": "kUSB_DeviceNotifyLPMSleep", "parent": 248, "children": [], "start_point": {"row": 159, "column": 1}, "end_point": {"row": 159, "column": 26}}, {"id": 250, "type": "enumerator", "text": "kUSB_DeviceNotifyLPMResume", "parent": 239, "children": [251], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 27}}, {"id": 251, "type": "identifier", "text": "kUSB_DeviceNotifyLPMResume", "parent": 250, "children": [], "start_point": {"row": 161, "column": 1}, "end_point": {"row": 161, "column": 27}}, {"id": 252, "type": "enumerator", "text": "kUSB_DeviceNotifyError", "parent": 239, "children": [253], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 23}}, {"id": 253, "type": "identifier", "text": "kUSB_DeviceNotifyError", "parent": 252, "children": [], "start_point": {"row": 163, "column": 1}, "end_point": {"row": 163, "column": 23}}, {"id": 254, "type": "enumerator", "text": "kUSB_DeviceNotifyDetach", "parent": 239, "children": [255], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 24}}, {"id": 255, "type": "identifier", "text": "kUSB_DeviceNotifyDetach", "parent": 254, "children": [], "start_point": {"row": 165, "column": 1}, "end_point": {"row": 165, "column": 24}}, {"id": 256, "type": "enumerator", "text": "kUSB_DeviceNotifyAttach", "parent": 239, "children": [257], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 24}}, {"id": 257, "type": "identifier", "text": "kUSB_DeviceNotifyAttach", "parent": 256, "children": [], "start_point": {"row": 167, "column": 1}, "end_point": {"row": 167, "column": 24}}, {"id": 258, "type": "preproc_if", "text": "#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\t/* Device charger detection timeout */\n\tkUSB_DeviceNotifyDcdTimeOut,\n\t/* Device charger detection unknown port type */\n\tkUSB_DeviceNotifyDcdUnknownPortType,\n\t/* The SDP facility is detected */\n\tkUSB_DeviceNotifySDPDetected,\n\t/* The charging port is detected */\n\tkUSB_DeviceNotifyChargingPortDetected,\n\t/* The CDP facility is detected */\n\tkUSB_DeviceNotifyChargingHostDetected,\n\t/* The DCP facility is detected */\n\tkUSB_DeviceNotifyDedicatedChargerDetected,\n#endif", "parent": 239, "children": [259, 260, 271, 272, 274, 276, 278, 280, 282, 284], "start_point": {"row": 168, "column": 0}, "end_point": {"row": 182, "column": 6}}, {"id": 259, "type": "#if", "text": "#if", "parent": 258, "children": [], "start_point": {"row": 168, "column": 0}, "end_point": {"row": 168, "column": 3}}, {"id": 260, "type": "parenthesized_expression", "text": "(defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))", "parent": 258, "children": [261], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 169, "column": 41}}, {"id": 261, "type": "binary_expression", "text": "defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)", "parent": 260, "children": [262, 265, 266], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 169, "column": 40}}, {"id": 262, "type": "preproc_defined", "text": "defined(USB_DEVICE_CHARGER_DETECT_ENABLE)", "parent": 261, "children": [263, 264], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 46}}, {"id": 263, "type": "defined", "text": "defined", "parent": 262, "children": [], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 12}}, {"id": 264, "type": "identifier", "text": "USB_DEVICE_CHARGER_DETECT_ENABLE", "parent": 262, "children": [], "start_point": {"row": 168, "column": 13}, "end_point": {"row": 168, "column": 45}}, {"id": 265, "type": "&&", "text": "&&", "parent": 261, "children": [], "start_point": {"row": 168, "column": 47}, "end_point": {"row": 168, "column": 49}}, {"id": 266, "type": "parenthesized_expression", "text": "(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U)", "parent": 261, "children": [267], "start_point": {"row": 169, "column": 1}, "end_point": {"row": 169, "column": 40}}, {"id": 267, "type": "binary_expression", "text": "USB_DEVICE_CHARGER_DETECT_ENABLE > 0U", "parent": 266, "children": [268, 269, 270], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 39}}, {"id": 268, "type": "identifier", "text": "USB_DEVICE_CHARGER_DETECT_ENABLE", "parent": 267, "children": [], "start_point": {"row": 169, "column": 2}, "end_point": {"row": 169, "column": 34}}, {"id": 269, "type": ">", "text": ">", "parent": 267, "children": [], "start_point": {"row": 169, "column": 35}, "end_point": {"row": 169, "column": 36}}, {"id": 270, "type": "number_literal", "text": "0U", "parent": 267, "children": [], "start_point": {"row": 169, "column": 37}, "end_point": {"row": 169, "column": 39}}, {"id": 271, "type": "\n", "text": "\n", "parent": 258, "children": [], "start_point": {"row": 169, "column": 41}, "end_point": {"row": 170, "column": 0}}, {"id": 272, "type": "enumerator", "text": "kUSB_DeviceNotifyDcdTimeOut", "parent": 258, "children": [273], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 28}}, {"id": 273, "type": "identifier", "text": "kUSB_DeviceNotifyDcdTimeOut", "parent": 272, "children": [], "start_point": {"row": 171, "column": 1}, "end_point": {"row": 171, "column": 28}}, {"id": 274, "type": "enumerator", "text": "kUSB_DeviceNotifyDcdUnknownPortType", "parent": 258, "children": [275], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 36}}, {"id": 275, "type": "identifier", "text": "kUSB_DeviceNotifyDcdUnknownPortType", "parent": 274, "children": [], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 36}}, {"id": 276, "type": "enumerator", "text": "kUSB_DeviceNotifySDPDetected", "parent": 258, "children": [277], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 29}}, {"id": 277, "type": "identifier", "text": "kUSB_DeviceNotifySDPDetected", "parent": 276, "children": [], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 175, "column": 29}}, {"id": 278, "type": "enumerator", "text": "kUSB_DeviceNotifyChargingPortDetected", "parent": 258, "children": [279], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 38}}, {"id": 279, "type": "identifier", "text": "kUSB_DeviceNotifyChargingPortDetected", "parent": 278, "children": [], "start_point": {"row": 177, "column": 1}, "end_point": {"row": 177, "column": 38}}, {"id": 280, "type": "enumerator", "text": "kUSB_DeviceNotifyChargingHostDetected", "parent": 258, "children": [281], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 38}}, {"id": 281, "type": "identifier", "text": "kUSB_DeviceNotifyChargingHostDetected", "parent": 280, "children": [], "start_point": {"row": 179, "column": 1}, "end_point": {"row": 179, "column": 38}}, {"id": 282, "type": "enumerator", "text": "kUSB_DeviceNotifyDedicatedChargerDetected", "parent": 258, "children": [283], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 42}}, {"id": 283, "type": "identifier", "text": "kUSB_DeviceNotifyDedicatedChargerDetected", "parent": 282, "children": [], "start_point": {"row": 181, "column": 1}, "end_point": {"row": 181, "column": 42}}, {"id": 284, "type": "#endif", "text": "#endif", "parent": 258, "children": [], "start_point": {"row": 182, "column": 0}, "end_point": {"row": 182, "column": 6}}, {"id": 285, "type": "type_identifier", "text": "usb_device_notification_t", "parent": 234, "children": [], "start_point": {"row": 183, "column": 2}, "end_point": {"row": 183, "column": 27}}, {"id": 286, "type": "type_definition", "text": "typedef enum _usb_status {\n\t/* Success */\n\tkStatus_USB_Success = 0x00U,\n\t/* Failed */\n\tkStatus_USB_Error,\n\n\t/* Busy */\n\tkStatus_USB_Busy,\n\t/* Invalid handle */\n\tkStatus_USB_InvalidHandle,\n\t/* Invalid parameter */\n\tkStatus_USB_InvalidParameter,\n\t/* Invalid request */\n\tkStatus_USB_InvalidRequest,\n\t/* Controller cannot be found */\n\tkStatus_USB_ControllerNotFound,\n\t/* Invalid controller interface */\n\tkStatus_USB_InvalidControllerInterface,\n\n\t/* Configuration is not supported */\n\tkStatus_USB_NotSupported,\n\t/* Enumeration get configuration retry */\n\tkStatus_USB_Retry,\n\t/* Transfer stalled */\n\tkStatus_USB_TransferStall,\n\t/* Transfer failed */\n\tkStatus_USB_TransferFailed,\n\t/* Allocation failed */\n\tkStatus_USB_AllocFail,\n\t/* Insufficient swap buffer for KHCI */\n\tkStatus_USB_LackSwapBuffer,\n\t/* The transfer cancelled */\n\tkStatus_USB_TransferCancel,\n\t/* Allocate bandwidth failed */\n\tkStatus_USB_BandwidthFail,\n\t/* For MSD, the CSW status means fail */\n\tkStatus_USB_MSDStatusFail,\n\tkStatus_USB_EHCIAttached,\n\tkStatus_USB_EHCIDetached,\n} usb_status_t;", "parent": 0, "children": [287, 288, 332], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 225, "column": 15}}, {"id": 287, "type": "typedef", "text": "typedef", "parent": 286, "children": [], "start_point": {"row": 186, "column": 0}, "end_point": {"row": 186, "column": 7}}, {"id": 288, "type": "enum_specifier", "text": "enum _usb_status {\n\t/* Success */\n\tkStatus_USB_Success = 0x00U,\n\t/* Failed */\n\tkStatus_USB_Error,\n\n\t/* Busy */\n\tkStatus_USB_Busy,\n\t/* Invalid handle */\n\tkStatus_USB_InvalidHandle,\n\t/* Invalid parameter */\n\tkStatus_USB_InvalidParameter,\n\t/* Invalid request */\n\tkStatus_USB_InvalidRequest,\n\t/* Controller cannot be found */\n\tkStatus_USB_ControllerNotFound,\n\t/* Invalid controller interface */\n\tkStatus_USB_InvalidControllerInterface,\n\n\t/* Configuration is not supported */\n\tkStatus_USB_NotSupported,\n\t/* Enumeration get configuration retry */\n\tkStatus_USB_Retry,\n\t/* Transfer stalled */\n\tkStatus_USB_TransferStall,\n\t/* Transfer failed */\n\tkStatus_USB_TransferFailed,\n\t/* Allocation failed */\n\tkStatus_USB_AllocFail,\n\t/* Insufficient swap buffer for KHCI */\n\tkStatus_USB_LackSwapBuffer,\n\t/* The transfer cancelled */\n\tkStatus_USB_TransferCancel,\n\t/* Allocate bandwidth failed */\n\tkStatus_USB_BandwidthFail,\n\t/* For MSD, the CSW status means fail */\n\tkStatus_USB_MSDStatusFail,\n\tkStatus_USB_EHCIAttached,\n\tkStatus_USB_EHCIDetached,\n}", "parent": 286, "children": [289, 290, 291], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 225, "column": 1}}, {"id": 289, "type": "enum", "text": "enum", "parent": 288, "children": [], "start_point": {"row": 186, "column": 8}, "end_point": {"row": 186, "column": 12}}, {"id": 290, "type": "type_identifier", "text": "_usb_status", "parent": 288, "children": [], "start_point": {"row": 186, "column": 13}, "end_point": {"row": 186, "column": 24}}, {"id": 291, "type": "enumerator_list", "text": "{\n\t/* Success */\n\tkStatus_USB_Success = 0x00U,\n\t/* Failed */\n\tkStatus_USB_Error,\n\n\t/* Busy */\n\tkStatus_USB_Busy,\n\t/* Invalid handle */\n\tkStatus_USB_InvalidHandle,\n\t/* Invalid parameter */\n\tkStatus_USB_InvalidParameter,\n\t/* Invalid request */\n\tkStatus_USB_InvalidRequest,\n\t/* Controller cannot be found */\n\tkStatus_USB_ControllerNotFound,\n\t/* Invalid controller interface */\n\tkStatus_USB_InvalidControllerInterface,\n\n\t/* Configuration is not supported */\n\tkStatus_USB_NotSupported,\n\t/* Enumeration get configuration retry */\n\tkStatus_USB_Retry,\n\t/* Transfer stalled */\n\tkStatus_USB_TransferStall,\n\t/* Transfer failed */\n\tkStatus_USB_TransferFailed,\n\t/* Allocation failed */\n\tkStatus_USB_AllocFail,\n\t/* Insufficient swap buffer for KHCI */\n\tkStatus_USB_LackSwapBuffer,\n\t/* The transfer cancelled */\n\tkStatus_USB_TransferCancel,\n\t/* Allocate bandwidth failed */\n\tkStatus_USB_BandwidthFail,\n\t/* For MSD, the CSW status means fail */\n\tkStatus_USB_MSDStatusFail,\n\tkStatus_USB_EHCIAttached,\n\tkStatus_USB_EHCIDetached,\n}", "parent": 288, "children": [292, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330], "start_point": {"row": 186, "column": 25}, "end_point": {"row": 225, "column": 1}}, {"id": 292, "type": "enumerator", "text": "kStatus_USB_Success = 0x00U", "parent": 291, "children": [293, 294, 295], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 28}}, {"id": 293, "type": "identifier", "text": "kStatus_USB_Success", "parent": 292, "children": [], "start_point": {"row": 188, "column": 1}, "end_point": {"row": 188, "column": 20}}, {"id": 294, "type": "=", "text": "=", "parent": 292, "children": [], "start_point": {"row": 188, "column": 21}, "end_point": {"row": 188, "column": 22}}, {"id": 295, "type": "number_literal", "text": "0x00U", "parent": 292, "children": [], "start_point": {"row": 188, "column": 23}, "end_point": {"row": 188, "column": 28}}, {"id": 296, "type": "enumerator", "text": "kStatus_USB_Error", "parent": 291, "children": [297], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 18}}, {"id": 297, "type": "identifier", "text": "kStatus_USB_Error", "parent": 296, "children": [], "start_point": {"row": 190, "column": 1}, "end_point": {"row": 190, "column": 18}}, {"id": 298, "type": "enumerator", "text": "kStatus_USB_Busy", "parent": 291, "children": [299], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 17}}, {"id": 299, "type": "identifier", "text": "kStatus_USB_Busy", "parent": 298, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 17}}, {"id": 300, "type": "enumerator", "text": "kStatus_USB_InvalidHandle", "parent": 291, "children": [301], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 26}}, {"id": 301, "type": "identifier", "text": "kStatus_USB_InvalidHandle", "parent": 300, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 26}}, {"id": 302, "type": "enumerator", "text": "kStatus_USB_InvalidParameter", "parent": 291, "children": [303], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 29}}, {"id": 303, "type": "identifier", "text": "kStatus_USB_InvalidParameter", "parent": 302, "children": [], "start_point": {"row": 197, "column": 1}, "end_point": {"row": 197, "column": 29}}, {"id": 304, "type": "enumerator", "text": "kStatus_USB_InvalidRequest", "parent": 291, "children": [305], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 27}}, {"id": 305, "type": "identifier", "text": "kStatus_USB_InvalidRequest", "parent": 304, "children": [], "start_point": {"row": 199, "column": 1}, "end_point": {"row": 199, "column": 27}}, {"id": 306, "type": "enumerator", "text": "kStatus_USB_ControllerNotFound", "parent": 291, "children": [307], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 31}}, {"id": 307, "type": "identifier", "text": "kStatus_USB_ControllerNotFound", "parent": 306, "children": [], "start_point": {"row": 201, "column": 1}, "end_point": {"row": 201, "column": 31}}, {"id": 308, "type": "enumerator", "text": "kStatus_USB_InvalidControllerInterface", "parent": 291, "children": [309], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 39}}, {"id": 309, "type": "identifier", "text": "kStatus_USB_InvalidControllerInterface", "parent": 308, "children": [], "start_point": {"row": 203, "column": 1}, "end_point": {"row": 203, "column": 39}}, {"id": 310, "type": "enumerator", "text": "kStatus_USB_NotSupported", "parent": 291, "children": [311], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 25}}, {"id": 311, "type": "identifier", "text": "kStatus_USB_NotSupported", "parent": 310, "children": [], "start_point": {"row": 206, "column": 1}, "end_point": {"row": 206, "column": 25}}, {"id": 312, "type": "enumerator", "text": "kStatus_USB_Retry", "parent": 291, "children": [313], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 18}}, {"id": 313, "type": "identifier", "text": "kStatus_USB_Retry", "parent": 312, "children": [], "start_point": {"row": 208, "column": 1}, "end_point": {"row": 208, "column": 18}}, {"id": 314, "type": "enumerator", "text": "kStatus_USB_TransferStall", "parent": 291, "children": [315], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 210, "column": 26}}, {"id": 315, "type": "identifier", "text": "kStatus_USB_TransferStall", "parent": 314, "children": [], "start_point": {"row": 210, "column": 1}, "end_point": {"row": 210, "column": 26}}, {"id": 316, "type": "enumerator", "text": "kStatus_USB_TransferFailed", "parent": 291, "children": [317], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 27}}, {"id": 317, "type": "identifier", "text": "kStatus_USB_TransferFailed", "parent": 316, "children": [], "start_point": {"row": 212, "column": 1}, "end_point": {"row": 212, "column": 27}}, {"id": 318, "type": "enumerator", "text": "kStatus_USB_AllocFail", "parent": 291, "children": [319], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 22}}, {"id": 319, "type": "identifier", "text": "kStatus_USB_AllocFail", "parent": 318, "children": [], "start_point": {"row": 214, "column": 1}, "end_point": {"row": 214, "column": 22}}, {"id": 320, "type": "enumerator", "text": "kStatus_USB_LackSwapBuffer", "parent": 291, "children": [321], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 27}}, {"id": 321, "type": "identifier", "text": "kStatus_USB_LackSwapBuffer", "parent": 320, "children": [], "start_point": {"row": 216, "column": 1}, "end_point": {"row": 216, "column": 27}}, {"id": 322, "type": "enumerator", "text": "kStatus_USB_TransferCancel", "parent": 291, "children": [323], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 27}}, {"id": 323, "type": "identifier", "text": "kStatus_USB_TransferCancel", "parent": 322, "children": [], "start_point": {"row": 218, "column": 1}, "end_point": {"row": 218, "column": 27}}, {"id": 324, "type": "enumerator", "text": "kStatus_USB_BandwidthFail", "parent": 291, "children": [325], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 26}}, {"id": 325, "type": "identifier", "text": "kStatus_USB_BandwidthFail", "parent": 324, "children": [], "start_point": {"row": 220, "column": 1}, "end_point": {"row": 220, "column": 26}}, {"id": 326, "type": "enumerator", "text": "kStatus_USB_MSDStatusFail", "parent": 291, "children": [327], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 26}}, {"id": 327, "type": "identifier", "text": "kStatus_USB_MSDStatusFail", "parent": 326, "children": [], "start_point": {"row": 222, "column": 1}, "end_point": {"row": 222, "column": 26}}, {"id": 328, "type": "enumerator", "text": "kStatus_USB_EHCIAttached", "parent": 291, "children": [329], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 25}}, {"id": 329, "type": "identifier", "text": "kStatus_USB_EHCIAttached", "parent": 328, "children": [], "start_point": {"row": 223, "column": 1}, "end_point": {"row": 223, "column": 25}}, {"id": 330, "type": "enumerator", "text": "kStatus_USB_EHCIDetached", "parent": 291, "children": [331], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 25}}, {"id": 331, "type": "identifier", "text": "kStatus_USB_EHCIDetached", "parent": 330, "children": [], "start_point": {"row": 224, "column": 1}, "end_point": {"row": 224, "column": 25}}, {"id": 332, "type": "type_identifier", "text": "usb_status_t", "parent": 286, "children": [], "start_point": {"row": 225, "column": 2}, "end_point": {"row": 225, "column": 14}}, {"id": 333, "type": "type_definition", "text": "typedef struct _usb_device_callback_message_struct {\n\tu8_t *buffer; /* Transferred buffer */\n\tu32_t length; /* Transferred data length */\n\tu8_t code; /* Notification code */\n\tu8_t isSetup; /* Is in a setup phase */\n} usb_device_callback_message_struct_t;", "parent": 0, "children": [334, 335, 352], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 233, "column": 39}}, {"id": 334, "type": "typedef", "text": "typedef", "parent": 333, "children": [], "start_point": {"row": 228, "column": 0}, "end_point": {"row": 228, "column": 7}}, {"id": 335, "type": "struct_specifier", "text": "struct _usb_device_callback_message_struct {\n\tu8_t *buffer; /* Transferred buffer */\n\tu32_t length; /* Transferred data length */\n\tu8_t code; /* Notification code */\n\tu8_t isSetup; /* Is in a setup phase */\n}", "parent": 333, "children": [336, 337], "start_point": {"row": 228, "column": 8}, "end_point": {"row": 233, "column": 1}}, {"id": 336, "type": "struct", "text": "struct", "parent": 335, "children": [], "start_point": {"row": 228, "column": 8}, "end_point": {"row": 228, "column": 14}}, {"id": 337, "type": "type_identifier", "text": "_usb_device_callback_message_struct", "parent": 335, "children": [], "start_point": {"row": 228, "column": 15}, "end_point": {"row": 228, "column": 50}}, {"id": 338, "type": "field_declaration", "text": "u8_t *buffer;", "parent": 335, "children": [339, 340], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 14}}, {"id": 339, "type": "type_identifier", "text": "u8_t", "parent": 338, "children": [], "start_point": {"row": 229, "column": 1}, "end_point": {"row": 229, "column": 5}}, {"id": 340, "type": "pointer_declarator", "text": "*buffer", "parent": 338, "children": [341, 342], "start_point": {"row": 229, "column": 6}, "end_point": {"row": 229, "column": 13}}, {"id": 341, "type": "*", "text": "*", "parent": 340, "children": [], "start_point": {"row": 229, "column": 6}, "end_point": {"row": 229, "column": 7}}, {"id": 342, "type": "field_identifier", "text": "buffer", "parent": 340, "children": [], "start_point": {"row": 229, "column": 7}, "end_point": {"row": 229, "column": 13}}, {"id": 343, "type": "field_declaration", "text": "u32_t length;", "parent": 335, "children": [344, 345], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 14}}, {"id": 344, "type": "type_identifier", "text": "u32_t", "parent": 343, "children": [], "start_point": {"row": 230, "column": 1}, "end_point": {"row": 230, "column": 6}}, {"id": 345, "type": "field_identifier", "text": "length", "parent": 343, "children": [], "start_point": {"row": 230, "column": 7}, "end_point": {"row": 230, "column": 13}}, {"id": 346, "type": "field_declaration", "text": "u8_t code;", "parent": 335, "children": [347, 348], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 11}}, {"id": 347, "type": "type_identifier", "text": "u8_t", "parent": 346, "children": [], "start_point": {"row": 231, "column": 1}, "end_point": {"row": 231, "column": 5}}, {"id": 348, "type": "field_identifier", "text": "code", "parent": 346, "children": [], "start_point": {"row": 231, "column": 6}, "end_point": {"row": 231, "column": 10}}, {"id": 349, "type": "field_declaration", "text": "u8_t isSetup;", "parent": 335, "children": [350, 351], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 14}}, {"id": 350, "type": "type_identifier", "text": "u8_t", "parent": 349, "children": [], "start_point": {"row": 232, "column": 1}, "end_point": {"row": 232, "column": 5}}, {"id": 351, "type": "field_identifier", "text": "isSetup", "parent": 349, "children": [], "start_point": {"row": 232, "column": 6}, "end_point": {"row": 232, "column": 13}}, {"id": 352, "type": "type_identifier", "text": "usb_device_callback_message_struct_t", "parent": 333, "children": [], "start_point": {"row": 233, "column": 2}, "end_point": {"row": 233, "column": 38}}, {"id": 353, "type": "type_definition", "text": "typedef struct usb_ep_ctrl_data {\n\tusb_device_callback_message_struct_t transfer_message;\n\tstruct k_mem_block block;\n\tusb_dc_ep_callback callback;\n\tu16_t ep_mps;\n\tu8_t ep_type;\n\tu8_t ep_enabled : 1;\n\tu8_t ep_occupied : 1;\n} usb_ep_ctrl_data_t;", "parent": 0, "children": [354, 355, 385], "start_point": {"row": 235, "column": 0}, "end_point": {"row": 243, "column": 21}}, {"id": 354, "type": "typedef", "text": "typedef", "parent": 353, "children": [], "start_point": {"row": 235, "column": 0}, "end_point": {"row": 235, "column": 7}}, {"id": 355, "type": "struct_specifier", "text": "struct usb_ep_ctrl_data {\n\tusb_device_callback_message_struct_t transfer_message;\n\tstruct k_mem_block block;\n\tusb_dc_ep_callback callback;\n\tu16_t ep_mps;\n\tu8_t ep_type;\n\tu8_t ep_enabled : 1;\n\tu8_t ep_occupied : 1;\n}", "parent": 353, "children": [356, 357], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 243, "column": 1}}, {"id": 356, "type": "struct", "text": "struct", "parent": 355, "children": [], "start_point": {"row": 235, "column": 8}, "end_point": {"row": 235, "column": 14}}, {"id": 357, "type": "type_identifier", "text": "usb_ep_ctrl_data", "parent": 355, "children": [], "start_point": {"row": 235, "column": 15}, "end_point": {"row": 235, "column": 31}}, {"id": 358, "type": "field_declaration", "text": "usb_device_callback_message_struct_t transfer_message;", "parent": 355, "children": [359, 360], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 55}}, {"id": 359, "type": "type_identifier", "text": "usb_device_callback_message_struct_t", "parent": 358, "children": [], "start_point": {"row": 236, "column": 1}, "end_point": {"row": 236, "column": 37}}, {"id": 360, "type": "field_identifier", "text": "transfer_message", "parent": 358, "children": [], "start_point": {"row": 236, "column": 38}, "end_point": {"row": 236, "column": 54}}, {"id": 361, "type": "field_declaration", "text": "struct k_mem_block block;", "parent": 355, "children": [362, 365], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 26}}, {"id": 362, "type": "struct_specifier", "text": "struct k_mem_block", "parent": 361, "children": [363, 364], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 19}}, {"id": 363, "type": "struct", "text": "struct", "parent": 362, "children": [], "start_point": {"row": 237, "column": 1}, "end_point": {"row": 237, "column": 7}}, {"id": 364, "type": "type_identifier", "text": "k_mem_block", "parent": 362, "children": [], "start_point": {"row": 237, "column": 8}, "end_point": {"row": 237, "column": 19}}, {"id": 365, "type": "field_identifier", "text": "block", "parent": 361, "children": [], "start_point": {"row": 237, "column": 20}, "end_point": {"row": 237, "column": 25}}, {"id": 366, "type": "field_declaration", "text": "usb_dc_ep_callback callback;", "parent": 355, "children": [367, 368], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 29}}, {"id": 367, "type": "type_identifier", "text": "usb_dc_ep_callback", "parent": 366, "children": [], "start_point": {"row": 238, "column": 1}, "end_point": {"row": 238, "column": 19}}, {"id": 368, "type": "field_identifier", "text": "callback", "parent": 366, "children": [], "start_point": {"row": 238, "column": 20}, "end_point": {"row": 238, "column": 28}}, {"id": 369, "type": "field_declaration", "text": "u16_t ep_mps;", "parent": 355, "children": [370, 371], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 14}}, {"id": 370, "type": "type_identifier", "text": "u16_t", "parent": 369, "children": [], "start_point": {"row": 239, "column": 1}, "end_point": {"row": 239, "column": 6}}, {"id": 371, "type": "field_identifier", "text": "ep_mps", "parent": 369, "children": [], "start_point": {"row": 239, "column": 7}, "end_point": {"row": 239, "column": 13}}, {"id": 372, "type": "field_declaration", "text": "u8_t ep_type;", "parent": 355, "children": [373, 374], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 240, "column": 14}}, {"id": 373, "type": "type_identifier", "text": "u8_t", "parent": 372, "children": [], "start_point": {"row": 240, "column": 1}, "end_point": {"row": 240, "column": 5}}, {"id": 374, "type": "field_identifier", "text": "ep_type", "parent": 372, "children": [], "start_point": {"row": 240, "column": 6}, "end_point": {"row": 240, "column": 13}}, {"id": 375, "type": "field_declaration", "text": "u8_t ep_enabled : 1;", "parent": 355, "children": [376, 377, 378], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 21}}, {"id": 376, "type": "type_identifier", "text": "u8_t", "parent": 375, "children": [], "start_point": {"row": 241, "column": 1}, "end_point": {"row": 241, "column": 5}}, {"id": 377, "type": "field_identifier", "text": "ep_enabled", "parent": 375, "children": [], "start_point": {"row": 241, "column": 6}, "end_point": {"row": 241, "column": 16}}, {"id": 378, "type": "bitfield_clause", "text": ": 1", "parent": 375, "children": [379], "start_point": {"row": 241, "column": 17}, "end_point": {"row": 241, "column": 20}}, {"id": 379, "type": "number_literal", "text": "1", "parent": 378, "children": [], "start_point": {"row": 241, "column": 19}, "end_point": {"row": 241, "column": 20}}, {"id": 380, "type": "field_declaration", "text": "u8_t ep_occupied : 1;", "parent": 355, "children": [381, 382, 383], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 242, "column": 22}}, {"id": 381, "type": "type_identifier", "text": "u8_t", "parent": 380, "children": [], "start_point": {"row": 242, "column": 1}, "end_point": {"row": 242, "column": 5}}, {"id": 382, "type": "field_identifier", "text": "ep_occupied", "parent": 380, "children": [], "start_point": {"row": 242, "column": 6}, "end_point": {"row": 242, "column": 17}}, {"id": 383, "type": "bitfield_clause", "text": ": 1", "parent": 380, "children": [384], "start_point": {"row": 242, "column": 18}, "end_point": {"row": 242, "column": 21}}, {"id": 384, "type": "number_literal", "text": "1", "parent": 383, "children": [], "start_point": {"row": 242, "column": 20}, "end_point": {"row": 242, "column": 21}}, {"id": 385, "type": "type_identifier", "text": "usb_ep_ctrl_data_t", "parent": 353, "children": [], "start_point": {"row": 243, "column": 2}, "end_point": {"row": 243, "column": 20}}, {"id": 386, "type": "type_definition", "text": "typedef usb_status_t (*usb_device_controller_init_t)(u8_t controllerId,\n\t\t\t\t\t\t usb_device_handle handle,\n\t\t\t\t\t\t usb_device_controller_handle *controllerHandle);", "parent": 0, "children": [387, 388, 389], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 248, "column": 59}}, {"id": 387, "type": "typedef", "text": "typedef", "parent": 386, "children": [], "start_point": {"row": 246, "column": 0}, "end_point": {"row": 246, "column": 7}}, {"id": 388, "type": "type_identifier", "text": "usb_status_t", "parent": 386, "children": [], "start_point": {"row": 246, "column": 8}, "end_point": {"row": 246, "column": 20}}, {"id": 389, "type": "function_declarator", "text": "(*usb_device_controller_init_t)(u8_t controllerId,\n\t\t\t\t\t\t usb_device_handle handle,\n\t\t\t\t\t\t usb_device_controller_handle *controllerHandle)", "parent": 386, "children": [390, 394], "start_point": {"row": 246, "column": 21}, "end_point": {"row": 248, "column": 58}}, {"id": 390, "type": "parenthesized_declarator", "text": "(*usb_device_controller_init_t)", "parent": 389, "children": [391], "start_point": {"row": 246, "column": 21}, "end_point": {"row": 246, "column": 52}}, {"id": 391, "type": "pointer_declarator", "text": "*usb_device_controller_init_t", "parent": 390, "children": [392, 393], "start_point": {"row": 246, "column": 22}, "end_point": {"row": 246, "column": 51}}, {"id": 392, "type": "*", "text": "*", "parent": 391, "children": [], "start_point": {"row": 246, "column": 22}, "end_point": {"row": 246, "column": 23}}, {"id": 393, "type": "type_identifier", "text": "usb_device_controller_init_t", "parent": 391, "children": [], "start_point": {"row": 246, "column": 23}, "end_point": {"row": 246, "column": 51}}, {"id": 394, "type": "parameter_list", "text": "(u8_t controllerId,\n\t\t\t\t\t\t usb_device_handle handle,\n\t\t\t\t\t\t usb_device_controller_handle *controllerHandle)", "parent": 389, "children": [395, 398, 401], "start_point": {"row": 246, "column": 52}, "end_point": {"row": 248, "column": 58}}, {"id": 395, "type": "parameter_declaration", "text": "u8_t controllerId", "parent": 394, "children": [396, 397], "start_point": {"row": 246, "column": 53}, "end_point": {"row": 246, "column": 70}}, {"id": 396, "type": "type_identifier", "text": "u8_t", "parent": 395, "children": [], "start_point": {"row": 246, "column": 53}, "end_point": {"row": 246, "column": 57}}, {"id": 397, "type": "identifier", "text": "controllerId", "parent": 395, "children": [], "start_point": {"row": 246, "column": 58}, "end_point": {"row": 246, "column": 70}}, {"id": 398, "type": "parameter_declaration", "text": "usb_device_handle handle", "parent": 394, "children": [399, 400], "start_point": {"row": 247, "column": 11}, "end_point": {"row": 247, "column": 35}}, {"id": 399, "type": "type_identifier", "text": "usb_device_handle", "parent": 398, "children": [], "start_point": {"row": 247, "column": 11}, "end_point": {"row": 247, "column": 28}}, {"id": 400, "type": "identifier", "text": "handle", "parent": 398, "children": [], "start_point": {"row": 247, "column": 29}, "end_point": {"row": 247, "column": 35}}, {"id": 401, "type": "parameter_declaration", "text": "usb_device_controller_handle *controllerHandle", "parent": 394, "children": [402, 403], "start_point": {"row": 248, "column": 11}, "end_point": {"row": 248, "column": 57}}, {"id": 402, "type": "type_identifier", "text": "usb_device_controller_handle", "parent": 401, "children": [], "start_point": {"row": 248, "column": 11}, "end_point": {"row": 248, "column": 39}}, {"id": 403, "type": "pointer_declarator", "text": "*controllerHandle", "parent": 401, "children": [404, 405], "start_point": {"row": 248, "column": 40}, "end_point": {"row": 248, "column": 57}}, {"id": 404, "type": "*", "text": "*", "parent": 403, "children": [], "start_point": {"row": 248, "column": 40}, "end_point": {"row": 248, "column": 41}}, {"id": 405, "type": "identifier", "text": "controllerHandle", "parent": 403, "children": [], "start_point": {"row": 248, "column": 41}, "end_point": {"row": 248, "column": 57}}, {"id": 406, "type": "type_definition", "text": "typedef usb_status_t (*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle);", "parent": 0, "children": [407, 408, 409], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 102}}, {"id": 407, "type": "typedef", "text": "typedef", "parent": 406, "children": [], "start_point": {"row": 251, "column": 0}, "end_point": {"row": 251, "column": 7}}, {"id": 408, "type": "type_identifier", "text": "usb_status_t", "parent": 406, "children": [], "start_point": {"row": 251, "column": 8}, "end_point": {"row": 251, "column": 20}}, {"id": 409, "type": "function_declarator", "text": "(*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle)", "parent": 406, "children": [410, 414], "start_point": {"row": 251, "column": 21}, "end_point": {"row": 251, "column": 101}}, {"id": 410, "type": "parenthesized_declarator", "text": "(*usb_device_controller_deinit_t)", "parent": 409, "children": [411], "start_point": {"row": 251, "column": 21}, "end_point": {"row": 251, "column": 54}}, {"id": 411, "type": "pointer_declarator", "text": "*usb_device_controller_deinit_t", "parent": 410, "children": [412, 413], "start_point": {"row": 251, "column": 22}, "end_point": {"row": 251, "column": 53}}, {"id": 412, "type": "*", "text": "*", "parent": 411, "children": [], "start_point": {"row": 251, "column": 22}, "end_point": {"row": 251, "column": 23}}, {"id": 413, "type": "type_identifier", "text": "usb_device_controller_deinit_t", "parent": 411, "children": [], "start_point": {"row": 251, "column": 23}, "end_point": {"row": 251, "column": 53}}, {"id": 414, "type": "parameter_list", "text": "(usb_device_controller_handle controllerHandle)", "parent": 409, "children": [415], "start_point": {"row": 251, "column": 54}, "end_point": {"row": 251, "column": 101}}, {"id": 415, "type": "parameter_declaration", "text": "usb_device_controller_handle controllerHandle", "parent": 414, "children": [416, 417], "start_point": {"row": 251, "column": 55}, "end_point": {"row": 251, "column": 100}}, {"id": 416, "type": "type_identifier", "text": "usb_device_controller_handle", "parent": 415, "children": [], "start_point": {"row": 251, "column": 55}, "end_point": {"row": 251, "column": 83}}, {"id": 417, "type": "identifier", "text": "controllerHandle", "parent": 415, "children": [], "start_point": {"row": 251, "column": 84}, "end_point": {"row": 251, "column": 100}}, {"id": 418, "type": "type_definition", "text": "typedef usb_status_t (*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length);", "parent": 0, "children": [419, 420, 421], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 257, "column": 25}}, {"id": 419, "type": "typedef", "text": "typedef", "parent": 418, "children": [], "start_point": {"row": 254, "column": 0}, "end_point": {"row": 254, "column": 7}}, {"id": 420, "type": "type_identifier", "text": "usb_status_t", "parent": 418, "children": [], "start_point": {"row": 254, "column": 8}, "end_point": {"row": 254, "column": 20}}, {"id": 421, "type": "function_declarator", "text": "(*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length)", "parent": 418, "children": [422, 426], "start_point": {"row": 254, "column": 21}, "end_point": {"row": 257, "column": 24}}, {"id": 422, "type": "parenthesized_declarator", "text": "(*usb_device_controller_send_t)", "parent": 421, "children": [423], "start_point": {"row": 254, "column": 21}, "end_point": {"row": 254, "column": 52}}, {"id": 423, "type": "pointer_declarator", "text": "*usb_device_controller_send_t", "parent": 422, "children": [424, 425], "start_point": {"row": 254, "column": 22}, "end_point": {"row": 254, "column": 51}}, {"id": 424, "type": "*", "text": "*", "parent": 423, "children": [], "start_point": {"row": 254, "column": 22}, "end_point": {"row": 254, "column": 23}}, {"id": 425, "type": "type_identifier", "text": "usb_device_controller_send_t", "parent": 423, "children": [], "start_point": {"row": 254, "column": 23}, "end_point": {"row": 254, "column": 51}}, {"id": 426, "type": "parameter_list", "text": "(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length)", "parent": 421, "children": [427, 430, 433, 438], "start_point": {"row": 254, "column": 52}, "end_point": {"row": 257, "column": 24}}, {"id": 427, "type": "parameter_declaration", "text": "usb_device_controller_handle controllerHandle", "parent": 426, "children": [428, 429], "start_point": {"row": 254, "column": 53}, "end_point": {"row": 254, "column": 98}}, {"id": 428, "type": "type_identifier", "text": "usb_device_controller_handle", "parent": 427, "children": [], "start_point": {"row": 254, "column": 53}, "end_point": {"row": 254, "column": 81}}, {"id": 429, "type": "identifier", "text": "controllerHandle", "parent": 427, "children": [], "start_point": {"row": 254, "column": 82}, "end_point": {"row": 254, "column": 98}}, {"id": 430, "type": "parameter_declaration", "text": "u8_t endpointAddress", "parent": 426, "children": [431, 432], "start_point": {"row": 255, "column": 11}, "end_point": {"row": 255, "column": 31}}, {"id": 431, "type": "type_identifier", "text": "u8_t", "parent": 430, "children": [], "start_point": {"row": 255, "column": 11}, "end_point": {"row": 255, "column": 15}}, {"id": 432, "type": "identifier", "text": "endpointAddress", "parent": 430, "children": [], "start_point": {"row": 255, "column": 16}, "end_point": {"row": 255, "column": 31}}, {"id": 433, "type": "parameter_declaration", "text": "u8_t *buffer", "parent": 426, "children": [434, 435], "start_point": {"row": 256, "column": 11}, "end_point": {"row": 256, "column": 23}}, {"id": 434, "type": "type_identifier", "text": "u8_t", "parent": 433, "children": [], "start_point": {"row": 256, "column": 11}, "end_point": {"row": 256, "column": 15}}, {"id": 435, "type": "pointer_declarator", "text": "*buffer", "parent": 433, "children": [436, 437], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 23}}, {"id": 436, "type": "*", "text": "*", "parent": 435, "children": [], "start_point": {"row": 256, "column": 16}, "end_point": {"row": 256, "column": 17}}, {"id": 437, "type": "identifier", "text": "buffer", "parent": 435, "children": [], "start_point": {"row": 256, "column": 17}, "end_point": {"row": 256, "column": 23}}, {"id": 438, "type": "parameter_declaration", "text": "u32_t length", "parent": 426, "children": [439, 440], "start_point": {"row": 257, "column": 11}, "end_point": {"row": 257, "column": 23}}, {"id": 439, "type": "type_identifier", "text": "u32_t", "parent": 438, "children": [], "start_point": {"row": 257, "column": 11}, "end_point": {"row": 257, "column": 16}}, {"id": 440, "type": "identifier", "text": "length", "parent": 438, "children": [], "start_point": {"row": 257, "column": 17}, "end_point": {"row": 257, "column": 23}}, {"id": 441, "type": "type_definition", "text": "typedef usb_status_t (*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length);", "parent": 0, "children": [442, 443, 444], "start_point": {"row": 260, "column": 0}, "end_point": {"row": 263, "column": 25}}, {"id": 442, "type": "typedef", "text": "typedef", "parent": 441, "children": [], "start_point": {"row": 260, "column": 0}, "end_point": {"row": 260, "column": 7}}, {"id": 443, "type": "type_identifier", "text": "usb_status_t", "parent": 441, "children": [], "start_point": {"row": 260, "column": 8}, "end_point": {"row": 260, "column": 20}}, {"id": 444, "type": "function_declarator", "text": "(*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length)", "parent": 441, "children": [445, 449], "start_point": {"row": 260, "column": 21}, "end_point": {"row": 263, "column": 24}}, {"id": 445, "type": "parenthesized_declarator", "text": "(*usb_device_controller_recv_t)", "parent": 444, "children": [446], "start_point": {"row": 260, "column": 21}, "end_point": {"row": 260, "column": 52}}, {"id": 446, "type": "pointer_declarator", "text": "*usb_device_controller_recv_t", "parent": 445, "children": [447, 448], "start_point": {"row": 260, "column": 22}, "end_point": {"row": 260, "column": 51}}, {"id": 447, "type": "*", "text": "*", "parent": 446, "children": [], "start_point": {"row": 260, "column": 22}, "end_point": {"row": 260, "column": 23}}, {"id": 448, "type": "type_identifier", "text": "usb_device_controller_recv_t", "parent": 446, "children": [], "start_point": {"row": 260, "column": 23}, "end_point": {"row": 260, "column": 51}}, {"id": 449, "type": "parameter_list", "text": "(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length)", "parent": 444, "children": [450, 453, 456, 461], "start_point": {"row": 260, "column": 52}, "end_point": {"row": 263, "column": 24}}, {"id": 450, "type": "parameter_declaration", "text": "usb_device_controller_handle controllerHandle", "parent": 449, "children": [451, 452], "start_point": {"row": 260, "column": 53}, "end_point": {"row": 260, "column": 98}}, {"id": 451, "type": "type_identifier", "text": "usb_device_controller_handle", "parent": 450, "children": [], "start_point": {"row": 260, "column": 53}, "end_point": {"row": 260, "column": 81}}, {"id": 452, "type": "identifier", "text": "controllerHandle", "parent": 450, "children": [], "start_point": {"row": 260, "column": 82}, "end_point": {"row": 260, "column": 98}}, {"id": 453, "type": "parameter_declaration", "text": "u8_t endpointAddress", "parent": 449, "children": [454, 455], "start_point": {"row": 261, "column": 11}, "end_point": {"row": 261, "column": 31}}, {"id": 454, "type": "type_identifier", "text": "u8_t", "parent": 453, "children": [], "start_point": {"row": 261, "column": 11}, "end_point": {"row": 261, "column": 15}}, {"id": 455, "type": "identifier", "text": "endpointAddress", "parent": 453, "children": [], "start_point": {"row": 261, "column": 16}, "end_point": {"row": 261, "column": 31}}, {"id": 456, "type": "parameter_declaration", "text": "u8_t *buffer", "parent": 449, "children": [457, 458], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 23}}, {"id": 457, "type": "type_identifier", "text": "u8_t", "parent": 456, "children": [], "start_point": {"row": 262, "column": 11}, "end_point": {"row": 262, "column": 15}}, {"id": 458, "type": "pointer_declarator", "text": "*buffer", "parent": 456, "children": [459, 460], "start_point": {"row": 262, "column": 16}, "end_point": {"row": 262, "column": 23}}, {"id": 459, "type": "*", "text": "*", "parent": 458, "children": [], "start_point": {"row": 262, "column": 16}, "end_point": {"row": 262, "column": 17}}, {"id": 460, "type": "identifier", "text": "buffer", "parent": 458, "children": [], "start_point": {"row": 262, "column": 17}, "end_point": {"row": 262, "column": 23}}, {"id": 461, "type": "parameter_declaration", "text": "u32_t length", "parent": 449, "children": [462, 463], "start_point": {"row": 263, "column": 11}, "end_point": {"row": 263, "column": 23}}, {"id": 462, "type": "type_identifier", "text": "u32_t", "parent": 461, "children": [], "start_point": {"row": 263, "column": 11}, "end_point": {"row": 263, "column": 16}}, {"id": 463, "type": "identifier", "text": "length", "parent": 461, "children": [], "start_point": {"row": 263, "column": 17}, "end_point": {"row": 263, "column": 23}}, {"id": 464, "type": "type_definition", "text": "typedef usb_status_t (*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress);", "parent": 0, "children": [465, 466, 467], "start_point": {"row": 268, "column": 0}, "end_point": {"row": 269, "column": 35}}, {"id": 465, "type": "typedef", "text": "typedef", "parent": 464, "children": [], "start_point": {"row": 268, "column": 0}, "end_point": {"row": 268, "column": 7}}, {"id": 466, "type": "type_identifier", "text": "usb_status_t", "parent": 464, "children": [], "start_point": {"row": 268, "column": 8}, "end_point": {"row": 268, "column": 20}}, {"id": 467, "type": "function_declarator", "text": "(*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress)", "parent": 464, "children": [468, 472], "start_point": {"row": 268, "column": 21}, "end_point": {"row": 269, "column": 34}}, {"id": 468, "type": "parenthesized_declarator", "text": "(*usb_device_controller_cancel_t)", "parent": 467, "children": [469], "start_point": {"row": 268, "column": 21}, "end_point": {"row": 268, "column": 54}}, {"id": 469, "type": "pointer_declarator", "text": "*usb_device_controller_cancel_t", "parent": 468, "children": [470, 471], "start_point": {"row": 268, "column": 22}, "end_point": {"row": 268, "column": 53}}, {"id": 470, "type": "*", "text": "*", "parent": 469, "children": [], "start_point": {"row": 268, "column": 22}, "end_point": {"row": 268, "column": 23}}, {"id": 471, "type": "type_identifier", "text": "usb_device_controller_cancel_t", "parent": 469, "children": [], "start_point": {"row": 268, "column": 23}, "end_point": {"row": 268, "column": 53}}, {"id": 472, "type": "parameter_list", "text": "(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress)", "parent": 467, "children": [473, 476], "start_point": {"row": 268, "column": 54}, "end_point": {"row": 269, "column": 34}}, {"id": 473, "type": "parameter_declaration", "text": "usb_device_controller_handle controllerHandle", "parent": 472, "children": [474, 475], "start_point": {"row": 268, "column": 55}, "end_point": {"row": 268, "column": 100}}, {"id": 474, "type": "type_identifier", "text": "usb_device_controller_handle", "parent": 473, "children": [], "start_point": {"row": 268, "column": 55}, "end_point": {"row": 268, "column": 83}}, {"id": 475, "type": "identifier", "text": "controllerHandle", "parent": 473, "children": [], "start_point": {"row": 268, "column": 84}, "end_point": {"row": 268, "column": 100}}, {"id": 476, "type": "parameter_declaration", "text": "u8_t endpointAddress", "parent": 472, "children": [477, 478], "start_point": {"row": 269, "column": 13}, "end_point": {"row": 269, "column": 33}}, {"id": 477, "type": "type_identifier", "text": "u8_t", "parent": 476, "children": [], "start_point": {"row": 269, "column": 13}, "end_point": {"row": 269, "column": 17}}, {"id": 478, "type": "identifier", "text": "endpointAddress", "parent": 476, "children": [], "start_point": {"row": 269, "column": 18}, "end_point": {"row": 269, "column": 33}}, {"id": 479, "type": "type_definition", "text": "typedef usb_status_t (*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t\tusb_device_control_type_t command,\n\t\t\t\t\t\t\tvoid *param);", "parent": 0, "children": [480, 481, 482], "start_point": {"row": 272, "column": 0}, "end_point": {"row": 274, "column": 20}}, {"id": 480, "type": "typedef", "text": "typedef", "parent": 479, "children": [], "start_point": {"row": 272, "column": 0}, "end_point": {"row": 272, "column": 7}}, {"id": 481, "type": "type_identifier", "text": "usb_status_t", "parent": 479, "children": [], "start_point": {"row": 272, "column": 8}, "end_point": {"row": 272, "column": 20}}, {"id": 482, "type": "function_declarator", "text": "(*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t\tusb_device_control_type_t command,\n\t\t\t\t\t\t\tvoid *param)", "parent": 479, "children": [483, 487], "start_point": {"row": 272, "column": 21}, "end_point": {"row": 274, "column": 19}}, {"id": 483, "type": "parenthesized_declarator", "text": "(*usb_device_controller_control_t)", "parent": 482, "children": [484], "start_point": {"row": 272, "column": 21}, "end_point": {"row": 272, "column": 55}}, {"id": 484, "type": "pointer_declarator", "text": "*usb_device_controller_control_t", "parent": 483, "children": [485, 486], "start_point": {"row": 272, "column": 22}, "end_point": {"row": 272, "column": 54}}, {"id": 485, "type": "*", "text": "*", "parent": 484, "children": [], "start_point": {"row": 272, "column": 22}, "end_point": {"row": 272, "column": 23}}, {"id": 486, "type": "type_identifier", "text": "usb_device_controller_control_t", "parent": 484, "children": [], "start_point": {"row": 272, "column": 23}, "end_point": {"row": 272, "column": 54}}, {"id": 487, "type": "parameter_list", "text": "(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t\tusb_device_control_type_t command,\n\t\t\t\t\t\t\tvoid *param)", "parent": 482, "children": [488, 491, 494], "start_point": {"row": 272, "column": 55}, "end_point": {"row": 274, "column": 19}}, {"id": 488, "type": "parameter_declaration", "text": "usb_device_controller_handle controllerHandle", "parent": 487, "children": [489, 490], "start_point": {"row": 272, "column": 56}, "end_point": {"row": 272, "column": 101}}, {"id": 489, "type": "type_identifier", "text": "usb_device_controller_handle", "parent": 488, "children": [], "start_point": {"row": 272, "column": 56}, "end_point": {"row": 272, "column": 84}}, {"id": 490, "type": "identifier", "text": "controllerHandle", "parent": 488, "children": [], "start_point": {"row": 272, "column": 85}, "end_point": {"row": 272, "column": 101}}, {"id": 491, "type": "parameter_declaration", "text": "usb_device_control_type_t command", "parent": 487, "children": [492, 493], "start_point": {"row": 273, "column": 7}, "end_point": {"row": 273, "column": 40}}, {"id": 492, "type": "type_identifier", "text": "usb_device_control_type_t", "parent": 491, "children": [], "start_point": {"row": 273, "column": 7}, "end_point": {"row": 273, "column": 32}}, {"id": 493, "type": "identifier", "text": "command", "parent": 491, "children": [], "start_point": {"row": 273, "column": 33}, "end_point": {"row": 273, "column": 40}}, {"id": 494, "type": "parameter_declaration", "text": "void *param", "parent": 487, "children": [495, 496], "start_point": {"row": 274, "column": 7}, "end_point": {"row": 274, "column": 18}}, {"id": 495, "type": "primitive_type", "text": "void", "parent": 494, "children": [], "start_point": {"row": 274, "column": 7}, "end_point": {"row": 274, "column": 11}}, {"id": 496, "type": "pointer_declarator", "text": "*param", "parent": 494, "children": [497, 498], "start_point": {"row": 274, "column": 12}, "end_point": {"row": 274, "column": 18}}, {"id": 497, "type": "*", "text": "*", "parent": 496, "children": [], "start_point": {"row": 274, "column": 12}, "end_point": {"row": 274, "column": 13}}, {"id": 498, "type": "identifier", "text": "param", "parent": 496, "children": [], "start_point": {"row": 274, "column": 13}, "end_point": {"row": 274, "column": 18}}, {"id": 499, "type": "type_definition", "text": "typedef struct _usb_device_controller_interface_struct {\n\t/* Controller initialization */\n\tusb_device_controller_init_t deviceInit;\n\t/* Controller de-initialization */\n\tusb_device_controller_deinit_t deviceDeinit;\n\t/* Controller send data */\n\tusb_device_controller_send_t deviceSend;\n\t/* Controller receive data */\n\tusb_device_controller_recv_t deviceRecv;\n\t/* Controller cancel transfer */\n\tusb_device_controller_cancel_t deviceCancel;\n\t/* Controller control */\n\tusb_device_controller_control_t deviceControl;\n} usb_device_controller_interface_struct_t;", "parent": 0, "children": [500, 501, 522], "start_point": {"row": 277, "column": 0}, "end_point": {"row": 290, "column": 43}}, {"id": 500, "type": "typedef", "text": "typedef", "parent": 499, "children": [], "start_point": {"row": 277, "column": 0}, "end_point": {"row": 277, "column": 7}}, {"id": 501, "type": "struct_specifier", "text": "struct _usb_device_controller_interface_struct {\n\t/* Controller initialization */\n\tusb_device_controller_init_t deviceInit;\n\t/* Controller de-initialization */\n\tusb_device_controller_deinit_t deviceDeinit;\n\t/* Controller send data */\n\tusb_device_controller_send_t deviceSend;\n\t/* Controller receive data */\n\tusb_device_controller_recv_t deviceRecv;\n\t/* Controller cancel transfer */\n\tusb_device_controller_cancel_t deviceCancel;\n\t/* Controller control */\n\tusb_device_controller_control_t deviceControl;\n}", "parent": 499, "children": [502, 503], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 290, "column": 1}}, {"id": 502, "type": "struct", "text": "struct", "parent": 501, "children": [], "start_point": {"row": 277, "column": 8}, "end_point": {"row": 277, "column": 14}}, {"id": 503, "type": "type_identifier", "text": "_usb_device_controller_interface_struct", "parent": 501, "children": [], "start_point": {"row": 277, "column": 15}, "end_point": {"row": 277, "column": 54}}, {"id": 504, "type": "field_declaration", "text": "usb_device_controller_init_t deviceInit;", "parent": 501, "children": [505, 506], "start_point": {"row": 279, "column": 1}, "end_point": {"row": 279, "column": 41}}, {"id": 505, "type": "type_identifier", "text": "usb_device_controller_init_t", "parent": 504, "children": [], "start_point": {"row": 279, "column": 1}, "end_point": {"row": 279, "column": 29}}, {"id": 506, "type": "field_identifier", "text": "deviceInit", "parent": 504, "children": [], "start_point": {"row": 279, "column": 30}, "end_point": {"row": 279, "column": 40}}, {"id": 507, "type": "field_declaration", "text": "usb_device_controller_deinit_t deviceDeinit;", "parent": 501, "children": [508, 509], "start_point": {"row": 281, "column": 1}, "end_point": {"row": 281, "column": 45}}, {"id": 508, "type": "type_identifier", "text": "usb_device_controller_deinit_t", "parent": 507, "children": [], "start_point": {"row": 281, "column": 1}, "end_point": {"row": 281, "column": 31}}, {"id": 509, "type": "field_identifier", "text": "deviceDeinit", "parent": 507, "children": [], "start_point": {"row": 281, "column": 32}, "end_point": {"row": 281, "column": 44}}, {"id": 510, "type": "field_declaration", "text": "usb_device_controller_send_t deviceSend;", "parent": 501, "children": [511, 512], "start_point": {"row": 283, "column": 1}, "end_point": {"row": 283, "column": 41}}, {"id": 511, "type": "type_identifier", "text": "usb_device_controller_send_t", "parent": 510, "children": [], "start_point": {"row": 283, "column": 1}, "end_point": {"row": 283, "column": 29}}, {"id": 512, "type": "field_identifier", "text": "deviceSend", "parent": 510, "children": [], "start_point": {"row": 283, "column": 30}, "end_point": {"row": 283, "column": 40}}, {"id": 513, "type": "field_declaration", "text": "usb_device_controller_recv_t deviceRecv;", "parent": 501, "children": [514, 515], "start_point": {"row": 285, "column": 1}, "end_point": {"row": 285, "column": 41}}, {"id": 514, "type": "type_identifier", "text": "usb_device_controller_recv_t", "parent": 513, "children": [], "start_point": {"row": 285, "column": 1}, "end_point": {"row": 285, "column": 29}}, {"id": 515, "type": "field_identifier", "text": "deviceRecv", "parent": 513, "children": [], "start_point": {"row": 285, "column": 30}, "end_point": {"row": 285, "column": 40}}, {"id": 516, "type": "field_declaration", "text": "usb_device_controller_cancel_t deviceCancel;", "parent": 501, "children": [517, 518], "start_point": {"row": 287, "column": 1}, "end_point": {"row": 287, "column": 45}}, {"id": 517, "type": "type_identifier", "text": "usb_device_controller_cancel_t", "parent": 516, "children": [], "start_point": {"row": 287, "column": 1}, "end_point": {"row": 287, "column": 31}}, {"id": 518, "type": "field_identifier", "text": "deviceCancel", "parent": 516, "children": [], "start_point": {"row": 287, "column": 32}, "end_point": {"row": 287, "column": 44}}, {"id": 519, "type": "field_declaration", "text": "usb_device_controller_control_t deviceControl;", "parent": 501, "children": [520, 521], "start_point": {"row": 289, "column": 1}, "end_point": {"row": 289, "column": 47}}, {"id": 520, "type": "type_identifier", "text": "usb_device_controller_control_t", "parent": 519, "children": [], "start_point": {"row": 289, "column": 1}, "end_point": {"row": 289, "column": 32}}, {"id": 521, "type": "field_identifier", "text": "deviceControl", "parent": 519, "children": [], "start_point": {"row": 289, "column": 33}, "end_point": {"row": 289, "column": 46}}, {"id": 522, "type": "type_identifier", "text": "usb_device_controller_interface_struct_t", "parent": 499, "children": [], "start_point": {"row": 290, "column": 2}, "end_point": {"row": 290, "column": 42}}, {"id": 523, "type": "type_definition", "text": "typedef struct _usb_device_struct {\n\t/* Controller handle */\n\tusb_device_controller_handle controllerHandle;\n\t/* Controller interface handle */\n\tconst usb_device_controller_interface_struct_t *interface;\n\tusb_dc_status_callback status_callback;\n\tusb_ep_ctrl_data_t *eps;\n\tbool attached;\n\t/* Current device address */\n\tu8_t address;\n\t/* Controller ID */\n\tu8_t controllerId;\n\t/* Current device state */\n\tu8_t state;\n\t/* Is doing device reset or not */\n\tu8_t isResetting;\n\tu8_t setupDataStage;\n} usb_device_struct_t;", "parent": 0, "children": [524, 525, 562], "start_point": {"row": 292, "column": 0}, "end_point": {"row": 309, "column": 22}}, {"id": 524, "type": "typedef", "text": "typedef", "parent": 523, "children": [], "start_point": {"row": 292, "column": 0}, "end_point": {"row": 292, "column": 7}}, {"id": 525, "type": "struct_specifier", "text": "struct _usb_device_struct {\n\t/* Controller handle */\n\tusb_device_controller_handle controllerHandle;\n\t/* Controller interface handle */\n\tconst usb_device_controller_interface_struct_t *interface;\n\tusb_dc_status_callback status_callback;\n\tusb_ep_ctrl_data_t *eps;\n\tbool attached;\n\t/* Current device address */\n\tu8_t address;\n\t/* Controller ID */\n\tu8_t controllerId;\n\t/* Current device state */\n\tu8_t state;\n\t/* Is doing device reset or not */\n\tu8_t isResetting;\n\tu8_t setupDataStage;\n}", "parent": 523, "children": [526, 527], "start_point": {"row": 292, "column": 8}, "end_point": {"row": 309, "column": 1}}, {"id": 526, "type": "struct", "text": "struct", "parent": 525, "children": [], "start_point": {"row": 292, "column": 8}, "end_point": {"row": 292, "column": 14}}, {"id": 527, "type": "type_identifier", "text": "_usb_device_struct", "parent": 525, "children": [], "start_point": {"row": 292, "column": 15}, "end_point": {"row": 292, "column": 33}}, {"id": 528, "type": "field_declaration", "text": "usb_device_controller_handle controllerHandle;", "parent": 525, "children": [529, 530], "start_point": {"row": 294, "column": 1}, "end_point": {"row": 294, "column": 47}}, {"id": 529, "type": "type_identifier", "text": "usb_device_controller_handle", "parent": 528, "children": [], "start_point": {"row": 294, "column": 1}, "end_point": {"row": 294, "column": 29}}, {"id": 530, "type": "field_identifier", "text": "controllerHandle", "parent": 528, "children": [], "start_point": {"row": 294, "column": 30}, "end_point": {"row": 294, "column": 46}}, {"id": 531, "type": "field_declaration", "text": "const usb_device_controller_interface_struct_t *interface;", "parent": 525, "children": [532, 533], "start_point": {"row": 296, "column": 1}, "end_point": {"row": 296, "column": 59}}, {"id": 532, "type": "type_identifier", "text": "usb_device_controller_interface_struct_t", "parent": 531, "children": [], "start_point": {"row": 296, "column": 7}, "end_point": {"row": 296, "column": 47}}, {"id": 533, "type": "pointer_declarator", "text": "*interface", "parent": 531, "children": [534, 535], "start_point": {"row": 296, "column": 48}, "end_point": {"row": 296, "column": 58}}, {"id": 534, "type": "*", "text": "*", "parent": 533, "children": [], "start_point": {"row": 296, "column": 48}, "end_point": {"row": 296, "column": 49}}, {"id": 535, "type": "field_identifier", "text": "interface", "parent": 533, "children": [], "start_point": {"row": 296, "column": 49}, "end_point": {"row": 296, "column": 58}}, {"id": 536, "type": "field_declaration", "text": "usb_dc_status_callback status_callback;", "parent": 525, "children": [537, 538], "start_point": {"row": 297, "column": 1}, "end_point": {"row": 297, "column": 40}}, {"id": 537, "type": "type_identifier", "text": "usb_dc_status_callback", "parent": 536, "children": [], "start_point": {"row": 297, "column": 1}, "end_point": {"row": 297, "column": 23}}, {"id": 538, "type": "field_identifier", "text": "status_callback", "parent": 536, "children": [], "start_point": {"row": 297, "column": 24}, "end_point": {"row": 297, "column": 39}}, {"id": 539, "type": "field_declaration", "text": "usb_ep_ctrl_data_t *eps;", "parent": 525, "children": [540, 541], "start_point": {"row": 298, "column": 1}, "end_point": {"row": 298, "column": 25}}, {"id": 540, "type": "type_identifier", "text": "usb_ep_ctrl_data_t", "parent": 539, "children": [], "start_point": {"row": 298, "column": 1}, "end_point": {"row": 298, "column": 19}}, {"id": 541, "type": "pointer_declarator", "text": "*eps", "parent": 539, "children": [542, 543], "start_point": {"row": 298, "column": 20}, "end_point": {"row": 298, "column": 24}}, {"id": 542, "type": "*", "text": "*", "parent": 541, "children": [], "start_point": {"row": 298, "column": 20}, "end_point": {"row": 298, "column": 21}}, {"id": 543, "type": "field_identifier", "text": "eps", "parent": 541, "children": [], "start_point": {"row": 298, "column": 21}, "end_point": {"row": 298, "column": 24}}, {"id": 544, "type": "field_declaration", "text": "bool attached;", "parent": 525, "children": [545, 546], "start_point": {"row": 299, "column": 1}, "end_point": {"row": 299, "column": 15}}, {"id": 545, "type": "primitive_type", "text": "bool", "parent": 544, "children": [], "start_point": {"row": 299, "column": 1}, "end_point": {"row": 299, "column": 5}}, {"id": 546, "type": "field_identifier", "text": "attached", "parent": 544, "children": [], "start_point": {"row": 299, "column": 6}, "end_point": {"row": 299, "column": 14}}, {"id": 547, "type": "field_declaration", "text": "u8_t address;", "parent": 525, "children": [548, 549], "start_point": {"row": 301, "column": 1}, "end_point": {"row": 301, "column": 14}}, {"id": 548, "type": "type_identifier", "text": "u8_t", "parent": 547, "children": [], "start_point": {"row": 301, "column": 1}, "end_point": {"row": 301, "column": 5}}, {"id": 549, "type": "field_identifier", "text": "address", "parent": 547, "children": [], "start_point": {"row": 301, "column": 6}, "end_point": {"row": 301, "column": 13}}, {"id": 550, "type": "field_declaration", "text": "u8_t controllerId;", "parent": 525, "children": [551, 552], "start_point": {"row": 303, "column": 1}, "end_point": {"row": 303, "column": 19}}, {"id": 551, "type": "type_identifier", "text": "u8_t", "parent": 550, "children": [], "start_point": {"row": 303, "column": 1}, "end_point": {"row": 303, "column": 5}}, {"id": 552, "type": "field_identifier", "text": "controllerId", "parent": 550, "children": [], "start_point": {"row": 303, "column": 6}, "end_point": {"row": 303, "column": 18}}, {"id": 553, "type": "field_declaration", "text": "u8_t state;", "parent": 525, "children": [554, 555], "start_point": {"row": 305, "column": 1}, "end_point": {"row": 305, "column": 12}}, {"id": 554, "type": "type_identifier", "text": "u8_t", "parent": 553, "children": [], "start_point": {"row": 305, "column": 1}, "end_point": {"row": 305, "column": 5}}, {"id": 555, "type": "field_identifier", "text": "state", "parent": 553, "children": [], "start_point": {"row": 305, "column": 6}, "end_point": {"row": 305, "column": 11}}, {"id": 556, "type": "field_declaration", "text": "u8_t isResetting;", "parent": 525, "children": [557, 558], "start_point": {"row": 307, "column": 1}, "end_point": {"row": 307, "column": 18}}, {"id": 557, "type": "type_identifier", "text": "u8_t", "parent": 556, "children": [], "start_point": {"row": 307, "column": 1}, "end_point": {"row": 307, "column": 5}}, {"id": 558, "type": "field_identifier", "text": "isResetting", "parent": 556, "children": [], "start_point": {"row": 307, "column": 6}, "end_point": {"row": 307, "column": 17}}, {"id": 559, "type": "field_declaration", "text": "u8_t setupDataStage;", "parent": 525, "children": [560, 561], "start_point": {"row": 308, "column": 1}, "end_point": {"row": 308, "column": 21}}, {"id": 560, "type": "type_identifier", "text": "u8_t", "parent": 559, "children": [], "start_point": {"row": 308, "column": 1}, "end_point": {"row": 308, "column": 5}}, {"id": 561, "type": "field_identifier", "text": "setupDataStage", "parent": 559, "children": [], "start_point": {"row": 308, "column": 6}, "end_point": {"row": 308, "column": 20}}, {"id": 562, "type": "type_identifier", "text": "usb_device_struct_t", "parent": 523, "children": [], "start_point": {"row": 309, "column": 2}, "end_point": {"row": 309, "column": 21}}, {"id": 563, "type": "type_definition", "text": "typedef struct _usb_device_endpoint_status_struct {\n\t/* Endpoint address */\n\tu8_t endpointAddress;\n\t/* Endpoint status : idle or stalled */\n\tu16_t endpointStatus;\n} usb_device_endpoint_status_struct_t;", "parent": 0, "children": [564, 565, 574], "start_point": {"row": 312, "column": 0}, "end_point": {"row": 317, "column": 38}}, {"id": 564, "type": "typedef", "text": "typedef", "parent": 563, "children": [], "start_point": {"row": 312, "column": 0}, "end_point": {"row": 312, "column": 7}}, {"id": 565, "type": "struct_specifier", "text": "struct _usb_device_endpoint_status_struct {\n\t/* Endpoint address */\n\tu8_t endpointAddress;\n\t/* Endpoint status : idle or stalled */\n\tu16_t endpointStatus;\n}", "parent": 563, "children": [566, 567], "start_point": {"row": 312, "column": 8}, "end_point": {"row": 317, "column": 1}}, {"id": 566, "type": "struct", "text": "struct", "parent": 565, "children": [], "start_point": {"row": 312, "column": 8}, "end_point": {"row": 312, "column": 14}}, {"id": 567, "type": "type_identifier", "text": "_usb_device_endpoint_status_struct", "parent": 565, "children": [], "start_point": {"row": 312, "column": 15}, "end_point": {"row": 312, "column": 49}}, {"id": 568, "type": "field_declaration", "text": "u8_t endpointAddress;", "parent": 565, "children": [569, 570], "start_point": {"row": 314, "column": 1}, "end_point": {"row": 314, "column": 22}}, {"id": 569, "type": "type_identifier", "text": "u8_t", "parent": 568, "children": [], "start_point": {"row": 314, "column": 1}, "end_point": {"row": 314, "column": 5}}, {"id": 570, "type": "field_identifier", "text": "endpointAddress", "parent": 568, "children": [], "start_point": {"row": 314, "column": 6}, "end_point": {"row": 314, "column": 21}}, {"id": 571, "type": "field_declaration", "text": "u16_t endpointStatus;", "parent": 565, "children": [572, 573], "start_point": {"row": 316, "column": 1}, "end_point": {"row": 316, "column": 22}}, {"id": 572, "type": "type_identifier", "text": "u16_t", "parent": 571, "children": [], "start_point": {"row": 316, "column": 1}, "end_point": {"row": 316, "column": 6}}, {"id": 573, "type": "field_identifier", "text": "endpointStatus", "parent": 571, "children": [], "start_point": {"row": 316, "column": 7}, "end_point": {"row": 316, "column": 21}}, {"id": 574, "type": "type_identifier", "text": "usb_device_endpoint_status_struct_t", "parent": 563, "children": [], "start_point": {"row": 317, "column": 2}, "end_point": {"row": 317, "column": 37}}, {"id": 575, "type": "type_definition", "text": "typedef enum _usb_endpoint_status {\n\t/* Endpoint state, idle*/\n\tkUSB_DeviceEndpointStateIdle = 0U,\n\t/* Endpoint state, stalled*/\n\tkUSB_DeviceEndpointStateStalled,\n} usb_device_endpoint_status_t;", "parent": 0, "children": [576, 577, 587], "start_point": {"row": 320, "column": 0}, "end_point": {"row": 325, "column": 31}}, {"id": 576, "type": "typedef", "text": "typedef", "parent": 575, "children": [], "start_point": {"row": 320, "column": 0}, "end_point": {"row": 320, "column": 7}}, {"id": 577, "type": "enum_specifier", "text": "enum _usb_endpoint_status {\n\t/* Endpoint state, idle*/\n\tkUSB_DeviceEndpointStateIdle = 0U,\n\t/* Endpoint state, stalled*/\n\tkUSB_DeviceEndpointStateStalled,\n}", "parent": 575, "children": [578, 579, 580], "start_point": {"row": 320, "column": 8}, "end_point": {"row": 325, "column": 1}}, {"id": 578, "type": "enum", "text": "enum", "parent": 577, "children": [], "start_point": {"row": 320, "column": 8}, "end_point": {"row": 320, "column": 12}}, {"id": 579, "type": "type_identifier", "text": "_usb_endpoint_status", "parent": 577, "children": [], "start_point": {"row": 320, "column": 13}, "end_point": {"row": 320, "column": 33}}, {"id": 580, "type": "enumerator_list", "text": "{\n\t/* Endpoint state, idle*/\n\tkUSB_DeviceEndpointStateIdle = 0U,\n\t/* Endpoint state, stalled*/\n\tkUSB_DeviceEndpointStateStalled,\n}", "parent": 577, "children": [581, 585], "start_point": {"row": 320, "column": 34}, "end_point": {"row": 325, "column": 1}}, {"id": 581, "type": "enumerator", "text": "kUSB_DeviceEndpointStateIdle = 0U", "parent": 580, "children": [582, 583, 584], "start_point": {"row": 322, "column": 1}, "end_point": {"row": 322, "column": 34}}, {"id": 582, "type": "identifier", "text": "kUSB_DeviceEndpointStateIdle", "parent": 581, "children": [], "start_point": {"row": 322, "column": 1}, "end_point": {"row": 322, "column": 29}}, {"id": 583, "type": "=", "text": "=", "parent": 581, "children": [], "start_point": {"row": 322, "column": 30}, "end_point": {"row": 322, "column": 31}}, {"id": 584, "type": "number_literal", "text": "0U", "parent": 581, "children": [], "start_point": {"row": 322, "column": 32}, "end_point": {"row": 322, "column": 34}}, {"id": 585, "type": "enumerator", "text": "kUSB_DeviceEndpointStateStalled", "parent": 580, "children": [586], "start_point": {"row": 324, "column": 1}, "end_point": {"row": 324, "column": 32}}, {"id": 586, "type": "identifier", "text": "kUSB_DeviceEndpointStateStalled", "parent": 585, "children": [], "start_point": {"row": 324, "column": 1}, "end_point": {"row": 324, "column": 32}}, {"id": 587, "type": "type_identifier", "text": "usb_device_endpoint_status_t", "parent": 575, "children": [], "start_point": {"row": 325, "column": 2}, "end_point": {"row": 325, "column": 30}}, {"id": 588, "type": "type_definition", "text": "typedef struct _usb_device_endpoint_init_struct {\n\t/* Endpoint maximum packet size */\n\tu16_t maxPacketSize;\n\t/* Endpoint address*/\n\tu8_t endpointAddress;\n\t/* Endpoint transfer type*/\n\tu8_t transferType;\n\t/* ZLT flag*/\n\tu8_t zlt;\n} usb_device_endpoint_init_struct_t;", "parent": 0, "children": [589, 590, 605], "start_point": {"row": 328, "column": 0}, "end_point": {"row": 337, "column": 36}}, {"id": 589, "type": "typedef", "text": "typedef", "parent": 588, "children": [], "start_point": {"row": 328, "column": 0}, "end_point": {"row": 328, "column": 7}}, {"id": 590, "type": "struct_specifier", "text": "struct _usb_device_endpoint_init_struct {\n\t/* Endpoint maximum packet size */\n\tu16_t maxPacketSize;\n\t/* Endpoint address*/\n\tu8_t endpointAddress;\n\t/* Endpoint transfer type*/\n\tu8_t transferType;\n\t/* ZLT flag*/\n\tu8_t zlt;\n}", "parent": 588, "children": [591, 592], "start_point": {"row": 328, "column": 8}, "end_point": {"row": 337, "column": 1}}, {"id": 591, "type": "struct", "text": "struct", "parent": 590, "children": [], "start_point": {"row": 328, "column": 8}, "end_point": {"row": 328, "column": 14}}, {"id": 592, "type": "type_identifier", "text": "_usb_device_endpoint_init_struct", "parent": 590, "children": [], "start_point": {"row": 328, "column": 15}, "end_point": {"row": 328, "column": 47}}, {"id": 593, "type": "field_declaration", "text": "u16_t maxPacketSize;", "parent": 590, "children": [594, 595], "start_point": {"row": 330, "column": 1}, "end_point": {"row": 330, "column": 21}}, {"id": 594, "type": "type_identifier", "text": "u16_t", "parent": 593, "children": [], "start_point": {"row": 330, "column": 1}, "end_point": {"row": 330, "column": 6}}, {"id": 595, "type": "field_identifier", "text": "maxPacketSize", "parent": 593, "children": [], "start_point": {"row": 330, "column": 7}, "end_point": {"row": 330, "column": 20}}, {"id": 596, "type": "field_declaration", "text": "u8_t endpointAddress;", "parent": 590, "children": [597, 598], "start_point": {"row": 332, "column": 1}, "end_point": {"row": 332, "column": 22}}, {"id": 597, "type": "type_identifier", "text": "u8_t", "parent": 596, "children": [], "start_point": {"row": 332, "column": 1}, "end_point": {"row": 332, "column": 5}}, {"id": 598, "type": "field_identifier", "text": "endpointAddress", "parent": 596, "children": [], "start_point": {"row": 332, "column": 6}, "end_point": {"row": 332, "column": 21}}, {"id": 599, "type": "field_declaration", "text": "u8_t transferType;", "parent": 590, "children": [600, 601], "start_point": {"row": 334, "column": 1}, "end_point": {"row": 334, "column": 19}}, {"id": 600, "type": "type_identifier", "text": "u8_t", "parent": 599, "children": [], "start_point": {"row": 334, "column": 1}, "end_point": {"row": 334, "column": 5}}, {"id": 601, "type": "field_identifier", "text": "transferType", "parent": 599, "children": [], "start_point": {"row": 334, "column": 6}, "end_point": {"row": 334, "column": 18}}, {"id": 602, "type": "field_declaration", "text": "u8_t zlt;", "parent": 590, "children": [603, 604], "start_point": {"row": 336, "column": 1}, "end_point": {"row": 336, "column": 10}}, {"id": 603, "type": "type_identifier", "text": "u8_t", "parent": 602, "children": [], "start_point": {"row": 336, "column": 1}, "end_point": {"row": 336, "column": 5}}, {"id": 604, "type": "field_identifier", "text": "zlt", "parent": 602, "children": [], "start_point": {"row": 336, "column": 6}, "end_point": {"row": 336, "column": 9}}, {"id": 605, "type": "type_identifier", "text": "usb_device_endpoint_init_struct_t", "parent": 588, "children": [], "start_point": {"row": 337, "column": 2}, "end_point": {"row": 337, "column": 35}}, {"id": 606, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 339, "column": 0}, "end_point": {"row": 339, "column": 6}}]}, "node_categories": {"declarations": {"functions": [60, 65, 70, 93, 389, 409, 421, 444, 467, 482], "variables": [26, 127, 166, 234, 286, 333, 338, 343, 346, 349, 353, 358, 361, 366, 369, 372, 375, 380, 386, 395, 398, 401, 406, 415, 418, 427, 430, 433, 438, 441, 450, 453, 456, 461, 464, 473, 476, 479, 488, 491, 494, 499, 504, 507, 510, 513, 516, 519, 523, 528, 531, 536, 539, 544, 547, 550, 553, 556, 559, 563, 568, 571, 575, 588, 593, 596, 599, 602], "classes": [335, 336, 355, 356, 362, 363, 501, 502, 525, 526, 565, 566, 590, 591], "imports": [6, 7, 9, 10], "modules": [], "enums": [129, 130, 132, 133, 137, 141, 145, 149, 153, 157, 161, 168, 169, 171, 172, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 228, 230, 236, 237, 239, 240, 244, 246, 248, 250, 252, 254, 256, 272, 274, 276, 278, 280, 282, 288, 289, 291, 292, 296, 298, 300, 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, 322, 324, 326, 328, 330, 577, 578, 580, 581, 585]}, "statements": {"expressions": [216, 217, 222, 223, 260, 261, 266, 267], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 12, 13, 14, 17, 23, 25, 31, 34, 38, 42, 46, 50, 54, 58, 62, 67, 72, 77, 81, 85, 88, 91, 95, 97, 99, 100, 103, 107, 113, 114, 117, 121, 125, 131, 134, 138, 142, 146, 150, 154, 158, 162, 165, 170, 173, 177, 179, 181, 183, 185, 187, 189, 191, 193, 195, 197, 199, 201, 203, 205, 207, 209, 211, 213, 214, 215, 220, 224, 229, 231, 232, 233, 238, 241, 245, 247, 249, 251, 253, 255, 257, 258, 259, 264, 268, 273, 275, 277, 279, 281, 283, 284, 285, 290, 293, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317, 319, 321, 323, 325, 327, 329, 331, 332, 337, 339, 342, 344, 345, 347, 348, 350, 351, 352, 357, 359, 360, 364, 365, 367, 368, 370, 371, 373, 374, 376, 377, 381, 382, 385, 388, 393, 396, 397, 399, 400, 402, 405, 408, 413, 416, 417, 420, 425, 428, 429, 431, 432, 434, 437, 439, 440, 443, 448, 451, 452, 454, 455, 457, 460, 462, 463, 466, 471, 474, 475, 477, 478, 481, 486, 489, 490, 492, 493, 498, 503, 505, 506, 508, 509, 511, 512, 514, 515, 517, 518, 520, 521, 522, 527, 529, 530, 532, 535, 537, 538, 540, 543, 546, 548, 549, 551, 552, 554, 555, 557, 558, 560, 561, 562, 567, 569, 570, 572, 573, 574, 579, 582, 586, 587, 592, 594, 595, 597, 598, 600, 601, 603, 604, 605, 606], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8, 11, 136, 140, 144, 148, 152, 156, 160, 164, 175, 226, 243, 270, 295, 379, 384, 584], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": [378, 383]}}, "cross_language_map": {"function_declarations": [{"node_id": 60, "universal_type": "function", "name": "usbOsaCurrentSr", "text_snippet": "#define USB_OSA_SR_ALLOC() int usbOsaCurrentSr\n"}, {"node_id": 65, "universal_type": "function", "name": "unknown", "text_snippet": "#define USB_OSA_ENTER_CRITICAL() usbOsaCurrentSr = irq_lock()\n"}, {"node_id": 70, "universal_type": "function", "name": "unknown", "text_snippet": "#define USB_OSA_EXIT_CRITICAL() irq_unlock(usbOsaCurrentSr)\n"}, {"node_id": 93, "universal_type": "function", "name": "unknown", "text_snippet": "#define USB_RAM_ADDRESS_ALIGNMENT(n) __aligned(n)\n"}, {"node_id": 389, "universal_type": "function", "name": "unknown", "text_snippet": "(*usb_device_controller_init_t)(u8_t controllerId,\n\t\t\t\t\t\t usb_device_handle handle,\n\t\t\t\t\t\t u"}, {"node_id": 409, "universal_type": "function", "name": "unknown", "text_snippet": "(*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle)"}, {"node_id": 421, "universal_type": "function", "name": "unknown", "text_snippet": "(*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpo"}, {"node_id": 444, "universal_type": "function", "name": "unknown", "text_snippet": "(*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpo"}, {"node_id": 467, "universal_type": "function", "name": "unknown", "text_snippet": "(*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t e"}, {"node_id": 482, "universal_type": "function", "name": "*param)", "text_snippet": "(*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t\tusb_device_"}], "class_declarations": [{"node_id": 335, "universal_type": "class", "name": "_usb_device_callback_message_struct", "text_snippet": "struct _usb_device_callback_message_struct {\n\tu8_t *buffer; /* Transferred buffer */\n\tu32_t length"}, {"node_id": 336, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 355, "universal_type": "class", "name": "usb_ep_ctrl_data", "text_snippet": "struct usb_ep_ctrl_data {\n\tusb_device_callback_message_struct_t transfer_message;\n\tstruct k_mem_bloc"}, {"node_id": 356, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 362, "universal_type": "class", "name": "k_mem_block", "text_snippet": "struct k_mem_block"}, {"node_id": 363, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 501, "universal_type": "class", "name": "_usb_device_controller_interface_struct", "text_snippet": "struct _usb_device_controller_interface_struct {\n\t/* Controller initialization */\n\tusb_device_contro"}, {"node_id": 502, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 525, "universal_type": "class", "name": "_usb_device_struct", "text_snippet": "struct _usb_device_struct {\n\t/* Controller handle */\n\tusb_device_controller_handle controllerHandle;"}, {"node_id": 526, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 565, "universal_type": "class", "name": "_usb_device_endpoint_status_struct", "text_snippet": "struct _usb_device_endpoint_status_struct {\n\t/* Endpoint address */\n\tu8_t endpointAddress;\n\t/* Endpo"}, {"node_id": 566, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 590, "universal_type": "class", "name": "_usb_device_endpoint_init_struct", "text_snippet": "struct _usb_device_endpoint_init_struct {\n\t/* Endpoint maximum packet size */\n\tu16_t maxPacketSize;\n"}, {"node_id": 591, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 6, "text": "#include <usb/usb_dc.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include \"usb_spec.h\"\n"}, {"node_id": 10, "text": "#include"}]}, "original_source_code": "/*\n * Copyright 2018 - 2019 NXP\n * All rights reserved.\n *\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n#ifndef __USB_DC_MCUX_H__\n#define __USB_DC_MCUX_H__\n\n#include <usb/usb_dc.h>\n#include \"usb_spec.h\"\n\n/******************************************************************************\n * Definitions\n *****************************************************************************/\n/* EHCI instance count */\n#ifdef CONFIG_USB_DC_NXP_EHCI\n #define USB_DEVICE_CONFIG_EHCI (1U)\n#else\n #define USB_DEVICE_CONFIG_EHCI (0U)\n#endif\n\n/* Macro to define controller handle */\ntypedef void *usb_device_handle;\n#define usb_device_controller_handle usb_device_handle\n\n/* controller driver do the ZLP for controler transfer automatically or not */\n#define USB_DEVICE_CONTROLLER_AUTO_CONTROL_TRANSFER_ZLP (0)\n\n/* endpoint related macros */\n#define EP0_MAX_PACKET_SIZE 64\n#define EP0_OUT 0\n#define EP0_IN 0x80\n/* USB endpoint mask */\n#define USB_ENDPOINT_NUMBER_MASK (0x0FU)\n/* The setup packet size of USB control transfer. */\n#define USB_SETUP_PACKET_SIZE (8U)\n\n/* enter critical macros */\n#define USB_OSA_SR_ALLOC() int usbOsaCurrentSr\n#define USB_OSA_ENTER_CRITICAL() usbOsaCurrentSr = irq_lock()\n#define USB_OSA_EXIT_CRITICAL() irq_unlock(usbOsaCurrentSr)\n\n/* Control endpoint index */\n#define USB_CONTROL_ENDPOINT (0U)\n\n/* Default invalid value or the endpoint callback length of cancelled transfer*/\n#define USB_UNINITIALIZED_VAL_32 (0xFFFFFFFFU)\n\n/* NXP SDK USB controller driver configuration macros */\n#define USB_BDT\n#define USB_GLOBAL\n#define USB_DATA_ALIGN_SIZE 4\n#define USB_RAM_ADDRESS_ALIGNMENT(n) __aligned(n)\n\n/* EHCI */\n#if defined(CONFIG_NOCACHE_MEMORY)\n#define USB_CONTROLLER_DATA __nocache\n#else\n#define USB_CONTROLLER_DATA\n#endif\n/* How many the DTD are supported. */\n#define USB_DEVICE_CONFIG_EHCI_MAX_DTD (16U)\n/* Control endpoint maxPacketSize */\n#define USB_CONTROL_MAX_PACKET_SIZE (64U)\n\n/* Whether device is self power. 1U supported, 0U not supported */\n#define USB_DEVICE_CONFIG_SELF_POWER (1U)\n\n/* USB controller ID */\ntypedef enum _usb_controller_index {\n\t/* KHCI 0U */\n\tkUSB_ControllerKhci0 = 0U,\n\t/* KHCI 1U, Currently, there are no platforms which have two KHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerKhci1 = 1U,\n\n\t/* EHCI 0U */\n\tkUSB_ControllerEhci0 = 2U,\n\t/* EHCI 1U, Currently, there are no platforms which have two EHCI IPs,\n\t * this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerEhci1 = 3U,\n\n\t/* LPC USB IP3511 FS controller 0 */\n\tkUSB_ControllerLpcIp3511Fs0 = 4U,\n\t/* LPC USB IP3511 FS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Fs1 = 5U,\n\n\t/* LPC USB IP3511 HS controller 0 */\n\tkUSB_ControllerLpcIp3511Hs0 = 6U,\n\t/* LPC USB IP3511 HS controller 1, there are no platforms which have two\n\t * IP3511 IPs, this is reserved to be used in the future.\n\t */\n\tkUSB_ControllerLpcIp3511Hs1 = 7U,\n} usb_controller_index_t;\n\n/* Control type for controller */\ntypedef enum _usb_device_control_type {\n\t/* Enable the device functionality */\n\tkUSB_DeviceControlRun = 0U,\n\t/* Disable the device functionality */\n\tkUSB_DeviceControlStop,\n\t/* Initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointInit,\n\t/* De-initialize a specified endpoint */\n\tkUSB_DeviceControlEndpointDeinit,\n\t/* Stall a specified endpoint */\n\tkUSB_DeviceControlEndpointStall,\n\t/* Unstall a specified endpoint */\n\tkUSB_DeviceControlEndpointUnstall,\n\t/* Get device status */\n\tkUSB_DeviceControlGetDeviceStatus,\n\t/* Get endpoint status */\n\tkUSB_DeviceControlGetEndpointStatus,\n\t/* Set device address */\n\tkUSB_DeviceControlSetDeviceAddress,\n\t/* Get current frame */\n\tkUSB_DeviceControlGetSynchFrame,\n\t/* Drive controller to generate a resume signal in USB bus */\n\tkUSB_DeviceControlResume,\n\t/* Drive controller to generate a LPM resume signal in USB bus */\n\tkUSB_DeviceControlSleepResume,\n\t/* Drive controller to enetr into suspend mode */\n\tkUSB_DeviceControlSuspend,\n\t/* Drive controller to enetr into sleep mode */\n\tkUSB_DeviceControlSleep,\n\t/* Set controller to default status */\n\tkUSB_DeviceControlSetDefaultStatus,\n\t/* Get current speed */\n\tkUSB_DeviceControlGetSpeed,\n\t/* Get OTG status */\n\tkUSB_DeviceControlGetOtgStatus,\n\t/* Set OTG status */\n\tkUSB_DeviceControlSetOtgStatus,\n\t/* Drive xCHI into test mode */\n\tkUSB_DeviceControlSetTestMode,\n\t/* Get flag of LPM Remote Wake-up Enabled by USB host. */\n\tkUSB_DeviceControlGetRemoteWakeUp,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\tkUSB_DeviceControlDcdInitModule,\n\tkUSB_DeviceControlDcdDeinitModule,\n#endif\n} usb_device_control_type_t;\n\n/* Available notify types for device notification */\ntypedef enum _usb_device_notification {\n\t/* Reset signal detected */\n\tkUSB_DeviceNotifyBusReset = 0x10U,\n\t/* Suspend signal detected */\n\tkUSB_DeviceNotifySuspend,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyResume,\n\t/* LPM signal detected */\n\tkUSB_DeviceNotifyLPMSleep,\n\t/* Resume signal detected */\n\tkUSB_DeviceNotifyLPMResume,\n\t/* Errors happened in bus */\n\tkUSB_DeviceNotifyError,\n\t/* Device disconnected from a host */\n\tkUSB_DeviceNotifyDetach,\n\t/* Device connected to a host */\n\tkUSB_DeviceNotifyAttach,\n#if (defined(USB_DEVICE_CHARGER_DETECT_ENABLE) && \\\n\t(USB_DEVICE_CHARGER_DETECT_ENABLE > 0U))\n\t/* Device charger detection timeout */\n\tkUSB_DeviceNotifyDcdTimeOut,\n\t/* Device charger detection unknown port type */\n\tkUSB_DeviceNotifyDcdUnknownPortType,\n\t/* The SDP facility is detected */\n\tkUSB_DeviceNotifySDPDetected,\n\t/* The charging port is detected */\n\tkUSB_DeviceNotifyChargingPortDetected,\n\t/* The CDP facility is detected */\n\tkUSB_DeviceNotifyChargingHostDetected,\n\t/* The DCP facility is detected */\n\tkUSB_DeviceNotifyDedicatedChargerDetected,\n#endif\n} usb_device_notification_t;\n\n/* USB error code */\ntypedef enum _usb_status {\n\t/* Success */\n\tkStatus_USB_Success = 0x00U,\n\t/* Failed */\n\tkStatus_USB_Error,\n\n\t/* Busy */\n\tkStatus_USB_Busy,\n\t/* Invalid handle */\n\tkStatus_USB_InvalidHandle,\n\t/* Invalid parameter */\n\tkStatus_USB_InvalidParameter,\n\t/* Invalid request */\n\tkStatus_USB_InvalidRequest,\n\t/* Controller cannot be found */\n\tkStatus_USB_ControllerNotFound,\n\t/* Invalid controller interface */\n\tkStatus_USB_InvalidControllerInterface,\n\n\t/* Configuration is not supported */\n\tkStatus_USB_NotSupported,\n\t/* Enumeration get configuration retry */\n\tkStatus_USB_Retry,\n\t/* Transfer stalled */\n\tkStatus_USB_TransferStall,\n\t/* Transfer failed */\n\tkStatus_USB_TransferFailed,\n\t/* Allocation failed */\n\tkStatus_USB_AllocFail,\n\t/* Insufficient swap buffer for KHCI */\n\tkStatus_USB_LackSwapBuffer,\n\t/* The transfer cancelled */\n\tkStatus_USB_TransferCancel,\n\t/* Allocate bandwidth failed */\n\tkStatus_USB_BandwidthFail,\n\t/* For MSD, the CSW status means fail */\n\tkStatus_USB_MSDStatusFail,\n\tkStatus_USB_EHCIAttached,\n\tkStatus_USB_EHCIDetached,\n} usb_status_t;\n\n/* Device notification message structure */\ntypedef struct _usb_device_callback_message_struct {\n\tu8_t *buffer; /* Transferred buffer */\n\tu32_t length; /* Transferred data length */\n\tu8_t code; /* Notification code */\n\tu8_t isSetup; /* Is in a setup phase */\n} usb_device_callback_message_struct_t;\n\ntypedef struct usb_ep_ctrl_data {\n\tusb_device_callback_message_struct_t transfer_message;\n\tstruct k_mem_block block;\n\tusb_dc_ep_callback callback;\n\tu16_t ep_mps;\n\tu8_t ep_type;\n\tu8_t ep_enabled : 1;\n\tu8_t ep_occupied : 1;\n} usb_ep_ctrl_data_t;\n\n/* USB device controller initialization function typedef */\ntypedef usb_status_t (*usb_device_controller_init_t)(u8_t controllerId,\n\t\t\t\t\t\t usb_device_handle handle,\n\t\t\t\t\t\t usb_device_controller_handle *controllerHandle);\n\n/* USB device controller de-initialization function typedef */\ntypedef usb_status_t (*usb_device_controller_deinit_t)(usb_device_controller_handle controllerHandle);\n\n/* USB device controller send data function typedef */\ntypedef usb_status_t (*usb_device_controller_send_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length);\n\n/* USB device controller receive data function typedef */\ntypedef usb_status_t (*usb_device_controller_recv_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress,\n\t\t\t\t\t\t u8_t *buffer,\n\t\t\t\t\t\t u32_t length);\n\n/* USB device controller cancel transfer function\n * in a specified endpoint typedef\n */\ntypedef usb_status_t (*usb_device_controller_cancel_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t u8_t endpointAddress);\n\n/* USB device controller control function typedef */\ntypedef usb_status_t (*usb_device_controller_control_t)(usb_device_controller_handle controllerHandle,\n\t\t\t\t\t\t\tusb_device_control_type_t command,\n\t\t\t\t\t\t\tvoid *param);\n\n/* USB device controller interface structure */\ntypedef struct _usb_device_controller_interface_struct {\n\t/* Controller initialization */\n\tusb_device_controller_init_t deviceInit;\n\t/* Controller de-initialization */\n\tusb_device_controller_deinit_t deviceDeinit;\n\t/* Controller send data */\n\tusb_device_controller_send_t deviceSend;\n\t/* Controller receive data */\n\tusb_device_controller_recv_t deviceRecv;\n\t/* Controller cancel transfer */\n\tusb_device_controller_cancel_t deviceCancel;\n\t/* Controller control */\n\tusb_device_controller_control_t deviceControl;\n} usb_device_controller_interface_struct_t;\n\ntypedef struct _usb_device_struct {\n\t/* Controller handle */\n\tusb_device_controller_handle controllerHandle;\n\t/* Controller interface handle */\n\tconst usb_device_controller_interface_struct_t *interface;\n\tusb_dc_status_callback status_callback;\n\tusb_ep_ctrl_data_t *eps;\n\tbool attached;\n\t/* Current device address */\n\tu8_t address;\n\t/* Controller ID */\n\tu8_t controllerId;\n\t/* Current device state */\n\tu8_t state;\n\t/* Is doing device reset or not */\n\tu8_t isResetting;\n\tu8_t setupDataStage;\n} usb_device_struct_t;\n\n/* Endpoint status structure */\ntypedef struct _usb_device_endpoint_status_struct {\n\t/* Endpoint address */\n\tu8_t endpointAddress;\n\t/* Endpoint status : idle or stalled */\n\tu16_t endpointStatus;\n} usb_device_endpoint_status_struct_t;\n\n/* Defines endpoint state */\ntypedef enum _usb_endpoint_status {\n\t/* Endpoint state, idle*/\n\tkUSB_DeviceEndpointStateIdle = 0U,\n\t/* Endpoint state, stalled*/\n\tkUSB_DeviceEndpointStateStalled,\n} usb_device_endpoint_status_t;\n\n/* Endpoint initialization structure */\ntypedef struct _usb_device_endpoint_init_struct {\n\t/* Endpoint maximum packet size */\n\tu16_t maxPacketSize;\n\t/* Endpoint address*/\n\tu8_t endpointAddress;\n\t/* Endpoint transfer type*/\n\tu8_t transferType;\n\t/* ZLT flag*/\n\tu8_t zlt;\n} usb_device_endpoint_init_struct_t;\n\n#endif /* __USB_DC_MCUX_H__ */\n"}
80,397
c
// Copyright (c) 2018-2021 Pocketnet developers // Distributed under the Apache 2.0 software license, see the accompanying // https://www.apache.org/licenses/LICENSE-2.0 #ifndef POCKETTX_SUBSCRIBE_H #define POCKETTX_SUBSCRIBE_H #include "pocketdb/models/base/Transaction.h" namespace PocketTx { class Subscribe : public Transaction { public: Subscribe(); Subscribe(const std::shared_ptr<const CTransaction>& tx); shared_ptr<UniValue> Serialize() const override; void Deserialize(const UniValue& src) override; void DeserializeRpc(const UniValue& src) override; void DeserializePayload(const UniValue& src) override; shared_ptr <string> GetAddress() const; void SetAddress(const string& value) override; shared_ptr <string> GetAddressTo() const; void SetAddressTo(const string& value); string BuildHash() override; }; } // namespace PocketTx #endif //POCKETTX_SUBSCRIBE_H
38
25
(translation_unit) "// Copyright (c) 2018-2021 Pocketnet developers\n// Distributed under the Apache 2.0 software license, see the accompanying\n// https://www.apache.org/licenses/LICENSE-2.0\n\n#ifndef POCKETTX_SUBSCRIBE_H\n#define POCKETTX_SUBSCRIBE_H\n\n#include "pocketdb/models/base/Transaction.h"\n\nnamespace PocketTx\n{\n class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n };\n\n} // namespace PocketTx\n\n#endif //POCKETTX_SUBSCRIBE_H\n" (comment) "// Copyright (c) 2018-2021 Pocketnet developers" (comment) "// Distributed under the Apache 2.0 software license, see the accompanying" (comment) "// https://www.apache.org/licenses/LICENSE-2.0" (preproc_ifdef) "#ifndef POCKETTX_SUBSCRIBE_H\n#define POCKETTX_SUBSCRIBE_H\n\n#include "pocketdb/models/base/Transaction.h"\n\nnamespace PocketTx\n{\n class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n };\n\n} // namespace PocketTx\n\n#endif" (#ifndef) "#ifndef" (identifier) "POCKETTX_SUBSCRIBE_H" (preproc_def) "#define POCKETTX_SUBSCRIBE_H\n" (#define) "#define" (identifier) "POCKETTX_SUBSCRIBE_H" (preproc_include) "#include "pocketdb/models/base/Transaction.h"\n" (#include) "#include" (string_literal) ""pocketdb/models/base/Transaction.h"" (") """ (string_content) "pocketdb/models/base/Transaction.h" (") """ (function_definition) "namespace PocketTx\n{\n class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n };\n\n}" (type_identifier) "namespace" (identifier) "PocketTx" (compound_statement) "{\n class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n };\n\n}" ({) "{" (function_definition) "class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n }" (type_identifier) "class" (ERROR) "Subscribe : public" (identifier) "Subscribe" (:) ":" (identifier) "public" (identifier) "Transaction" (compound_statement) "{\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n }" ({) "{" (labeled_statement) "public:\n\n Subscribe();" (statement_identifier) "public" (:) ":" (expression_statement) "Subscribe();" (call_expression) "Subscribe()" (identifier) "Subscribe" (argument_list) "()" (() "(" ()) ")" (;) ";" (labeled_statement) "Subscribe(const std::shared_ptr<const CTransaction>& tx);" (statement_identifier) "Subscribe" (ERROR) "(const std:" (() "(" (type_descriptor) "const std" (type_qualifier) "const" (const) "const" (type_identifier) "std" (:) ":" (:) ":" (expression_statement) "shared_ptr<const CTransaction>& tx);" (binary_expression) "shared_ptr<const CTransaction>& tx" (binary_expression) "shared_ptr<const CTransaction" (identifier) "shared_ptr" (<) "<" (ERROR) "const" (identifier) "const" (identifier) "CTransaction" (>) ">" (pointer_expression) "& tx" (&) "&" (identifier) "tx" (ERROR) ")" ()) ")" (;) ";" (expression_statement) "shared_ptr<UniValue> Serialize() const override;" (binary_expression) "shared_ptr<UniValue> Serialize() const override" (binary_expression) "shared_ptr<UniValue" (identifier) "shared_ptr" (<) "<" (identifier) "UniValue" (>) ">" (ERROR) "Serialize() const" (call_expression) "Serialize()" (identifier) "Serialize" (argument_list) "()" (() "(" ()) ")" (identifier) "const" (identifier) "override" (;) ";" (ERROR) "void Deserialize(const UniValue& src) override" (primitive_type) "void" (function_declarator) "Deserialize(const UniValue& src) override" (identifier) "Deserialize" (parameter_list) "(const UniValue& src)" (() "(" (parameter_declaration) "const UniValue& src" (type_qualifier) "const" (const) "const" (type_identifier) "UniValue" (ERROR) "&" (&) "&" (identifier) "src" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void DeserializeRpc(const UniValue& src) override" (primitive_type) "void" (function_declarator) "DeserializeRpc(const UniValue& src) override" (identifier) "DeserializeRpc" (parameter_list) "(const UniValue& src)" (() "(" (parameter_declaration) "const UniValue& src" (type_qualifier) "const" (const) "const" (type_identifier) "UniValue" (ERROR) "&" (&) "&" (identifier) "src" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (ERROR) "void DeserializePayload(const UniValue& src) override" (primitive_type) "void" (function_declarator) "DeserializePayload(const UniValue& src) override" (identifier) "DeserializePayload" (parameter_list) "(const UniValue& src)" (() "(" (parameter_declaration) "const UniValue& src" (type_qualifier) "const" (const) "const" (type_identifier) "UniValue" (ERROR) "&" (&) "&" (identifier) "src" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (expression_statement) "shared_ptr <string> GetAddress() const;" (binary_expression) "shared_ptr <string> GetAddress()" (binary_expression) "shared_ptr <string" (identifier) "shared_ptr" (<) "<" (identifier) "string" (>) ">" (call_expression) "GetAddress()" (identifier) "GetAddress" (argument_list) "()" (() "(" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (ERROR) "void SetAddress(const string& value) override" (primitive_type) "void" (function_declarator) "SetAddress(const string& value) override" (identifier) "SetAddress" (parameter_list) "(const string& value)" (() "(" (parameter_declaration) "const string& value" (type_qualifier) "const" (const) "const" (type_identifier) "string" (ERROR) "&" (&) "&" (identifier) "value" ()) ")" (identifier) "override" (expression_statement) ";" (;) ";" (expression_statement) "shared_ptr <string> GetAddressTo() const;" (binary_expression) "shared_ptr <string> GetAddressTo()" (binary_expression) "shared_ptr <string" (identifier) "shared_ptr" (<) "<" (identifier) "string" (>) ">" (call_expression) "GetAddressTo()" (identifier) "GetAddressTo" (argument_list) "()" (() "(" ()) ")" (ERROR) "const" (identifier) "const" (;) ";" (declaration) "void SetAddressTo(const string& value);" (primitive_type) "void" (function_declarator) "SetAddressTo(const string& value)" (identifier) "SetAddressTo" (parameter_list) "(const string& value)" (() "(" (parameter_declaration) "const string& value" (type_qualifier) "const" (const) "const" (type_identifier) "string" (ERROR) "&" (&) "&" (identifier) "value" ()) ")" (;) ";" (ERROR) "string BuildHash() override" (type_identifier) "string" (function_declarator) "BuildHash()" (identifier) "BuildHash" (parameter_list) "()" (() "(" ()) ")" (type_identifier) "override" (expression_statement) ";" (;) ";" (}) "}" (expression_statement) ";" (;) ";" (}) "}" (comment) "// namespace PocketTx" (#endif) "#endif" (comment) "//POCKETTX_SUBSCRIBE_H"
211
17
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 38.0, "nodes": 113, "errors": 0, "source_hash": "a43da12410e27042f7df1c31598ccd3076bed43e9614dc7ad3de26df8738484f", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef POCKETTX_SUBSCRIBE_H\n#define POCKETTX_SUBSCRIBE_H\n\n#include \"pocketdb/models/base/Transaction.h\"\n\nnamespace PocketTx\n{\n class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n };\n\n} // namespace PocketTx\n\n#endif", "parent": null, "children": [1, 2, 3, 6, 9, 112], "start_point": {"row": 4, "column": 0}, "end_point": {"row": 36, "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": "POCKETTX_SUBSCRIBE_H", "parent": 0, "children": [], "start_point": {"row": 4, "column": 8}, "end_point": {"row": 4, "column": 28}}, {"id": 3, "type": "preproc_def", "text": "#define POCKETTX_SUBSCRIBE_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": "POCKETTX_SUBSCRIBE_H", "parent": 3, "children": [], "start_point": {"row": 5, "column": 8}, "end_point": {"row": 5, "column": 28}}, {"id": 6, "type": "preproc_include", "text": "#include \"pocketdb/models/base/Transaction.h\"\n", "parent": 0, "children": [7, 8], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 8, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 7, "column": 0}, "end_point": {"row": 7, "column": 8}}, {"id": 8, "type": "string_literal", "text": "\"pocketdb/models/base/Transaction.h\"", "parent": 6, "children": [], "start_point": {"row": 7, "column": 9}, "end_point": {"row": 7, "column": 45}}, {"id": 9, "type": "function_definition", "text": "namespace PocketTx\n{\n class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n };\n\n}", "parent": 0, "children": [10, 11], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 34, "column": 1}}, {"id": 10, "type": "type_identifier", "text": "namespace", "parent": 9, "children": [], "start_point": {"row": 9, "column": 0}, "end_point": {"row": 9, "column": 9}}, {"id": 11, "type": "identifier", "text": "PocketTx", "parent": 9, "children": [], "start_point": {"row": 9, "column": 10}, "end_point": {"row": 9, "column": 18}}, {"id": 12, "type": "function_definition", "text": "class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n }", "parent": 9, "children": [13, 15], "start_point": {"row": 11, "column": 4}, "end_point": {"row": 32, "column": 5}}, {"id": 13, "type": "ERROR", "text": "Subscribe : public", "parent": 12, "children": [14], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 28}}, {"id": 14, "type": "identifier", "text": "Subscribe", "parent": 13, "children": [], "start_point": {"row": 11, "column": 10}, "end_point": {"row": 11, "column": 19}}, {"id": 15, "type": "identifier", "text": "Transaction", "parent": 12, "children": [], "start_point": {"row": 11, "column": 29}, "end_point": {"row": 11, "column": 40}}, {"id": 16, "type": "labeled_statement", "text": "public:\n\n Subscribe();", "parent": 12, "children": [], "start_point": {"row": 13, "column": 4}, "end_point": {"row": 15, "column": 20}}, {"id": 17, "type": "call_expression", "text": "Subscribe()", "parent": 16, "children": [18, 19], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 19}}, {"id": 18, "type": "identifier", "text": "Subscribe", "parent": 17, "children": [], "start_point": {"row": 15, "column": 8}, "end_point": {"row": 15, "column": 17}}, {"id": 19, "type": "argument_list", "text": "()", "parent": 17, "children": [], "start_point": {"row": 15, "column": 17}, "end_point": {"row": 15, "column": 19}}, {"id": 20, "type": "labeled_statement", "text": "Subscribe(const std::shared_ptr<const CTransaction>& tx);", "parent": 12, "children": [21, 22], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 65}}, {"id": 21, "type": "statement_identifier", "text": "Subscribe", "parent": 20, "children": [], "start_point": {"row": 16, "column": 8}, "end_point": {"row": 16, "column": 17}}, {"id": 22, "type": "ERROR", "text": "(const std:", "parent": 20, "children": [23], "start_point": {"row": 16, "column": 17}, "end_point": {"row": 16, "column": 28}}, {"id": 23, "type": "type_descriptor", "text": "const std", "parent": 22, "children": [24], "start_point": {"row": 16, "column": 18}, "end_point": {"row": 16, "column": 27}}, {"id": 24, "type": "type_identifier", "text": "std", "parent": 23, "children": [], "start_point": {"row": 16, "column": 24}, "end_point": {"row": 16, "column": 27}}, {"id": 25, "type": "binary_expression", "text": "shared_ptr<const CTransaction>& tx", "parent": 20, "children": [26, 30, 31], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 63}}, {"id": 26, "type": "binary_expression", "text": "shared_ptr<const CTransaction", "parent": 25, "children": [27, 28, 29], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 58}}, {"id": 27, "type": "identifier", "text": "shared_ptr", "parent": 26, "children": [], "start_point": {"row": 16, "column": 29}, "end_point": {"row": 16, "column": 39}}, {"id": 28, "type": "<", "text": "<", "parent": 26, "children": [], "start_point": {"row": 16, "column": 39}, "end_point": {"row": 16, "column": 40}}, {"id": 29, "type": "identifier", "text": "CTransaction", "parent": 26, "children": [], "start_point": {"row": 16, "column": 46}, "end_point": {"row": 16, "column": 58}}, {"id": 30, "type": ">", "text": ">", "parent": 25, "children": [], "start_point": {"row": 16, "column": 58}, "end_point": {"row": 16, "column": 59}}, {"id": 31, "type": "pointer_expression", "text": "& tx", "parent": 25, "children": [32], "start_point": {"row": 16, "column": 59}, "end_point": {"row": 16, "column": 63}}, {"id": 32, "type": "identifier", "text": "tx", "parent": 31, "children": [], "start_point": {"row": 16, "column": 61}, "end_point": {"row": 16, "column": 63}}, {"id": 33, "type": "binary_expression", "text": "shared_ptr<UniValue> Serialize() const override", "parent": 12, "children": [34, 38, 39, 43], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 55}}, {"id": 34, "type": "binary_expression", "text": "shared_ptr<UniValue", "parent": 33, "children": [35, 36, 37], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 27}}, {"id": 35, "type": "identifier", "text": "shared_ptr", "parent": 34, "children": [], "start_point": {"row": 18, "column": 8}, "end_point": {"row": 18, "column": 18}}, {"id": 36, "type": "<", "text": "<", "parent": 34, "children": [], "start_point": {"row": 18, "column": 18}, "end_point": {"row": 18, "column": 19}}, {"id": 37, "type": "identifier", "text": "UniValue", "parent": 34, "children": [], "start_point": {"row": 18, "column": 19}, "end_point": {"row": 18, "column": 27}}, {"id": 38, "type": ">", "text": ">", "parent": 33, "children": [], "start_point": {"row": 18, "column": 27}, "end_point": {"row": 18, "column": 28}}, {"id": 39, "type": "ERROR", "text": "Serialize() const", "parent": 33, "children": [40], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 46}}, {"id": 40, "type": "call_expression", "text": "Serialize()", "parent": 39, "children": [41, 42], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 40}}, {"id": 41, "type": "identifier", "text": "Serialize", "parent": 40, "children": [], "start_point": {"row": 18, "column": 29}, "end_point": {"row": 18, "column": 38}}, {"id": 42, "type": "argument_list", "text": "()", "parent": 40, "children": [], "start_point": {"row": 18, "column": 38}, "end_point": {"row": 18, "column": 40}}, {"id": 43, "type": "identifier", "text": "override", "parent": 33, "children": [], "start_point": {"row": 18, "column": 47}, "end_point": {"row": 18, "column": 55}}, {"id": 44, "type": "ERROR", "text": "void Deserialize(const UniValue& src) override", "parent": 12, "children": [45, 46], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 54}}, {"id": 45, "type": "primitive_type", "text": "void", "parent": 44, "children": [], "start_point": {"row": 20, "column": 8}, "end_point": {"row": 20, "column": 12}}, {"id": 46, "type": "function_declarator", "text": "Deserialize(const UniValue& src) override", "parent": 44, "children": [47, 48, 52], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 54}}, {"id": 47, "type": "identifier", "text": "Deserialize", "parent": 46, "children": [], "start_point": {"row": 20, "column": 13}, "end_point": {"row": 20, "column": 24}}, {"id": 48, "type": "parameter_list", "text": "(const UniValue& src)", "parent": 46, "children": [49], "start_point": {"row": 20, "column": 24}, "end_point": {"row": 20, "column": 45}}, {"id": 49, "type": "parameter_declaration", "text": "const UniValue& src", "parent": 48, "children": [50, 51], "start_point": {"row": 20, "column": 25}, "end_point": {"row": 20, "column": 44}}, {"id": 50, "type": "type_identifier", "text": "UniValue", "parent": 49, "children": [], "start_point": {"row": 20, "column": 31}, "end_point": {"row": 20, "column": 39}}, {"id": 51, "type": "identifier", "text": "src", "parent": 49, "children": [], "start_point": {"row": 20, "column": 41}, "end_point": {"row": 20, "column": 44}}, {"id": 52, "type": "identifier", "text": "override", "parent": 46, "children": [], "start_point": {"row": 20, "column": 46}, "end_point": {"row": 20, "column": 54}}, {"id": 53, "type": "ERROR", "text": "void DeserializeRpc(const UniValue& src) override", "parent": 12, "children": [54, 55], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 57}}, {"id": 54, "type": "primitive_type", "text": "void", "parent": 53, "children": [], "start_point": {"row": 21, "column": 8}, "end_point": {"row": 21, "column": 12}}, {"id": 55, "type": "function_declarator", "text": "DeserializeRpc(const UniValue& src) override", "parent": 53, "children": [56, 57, 61], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 57}}, {"id": 56, "type": "identifier", "text": "DeserializeRpc", "parent": 55, "children": [], "start_point": {"row": 21, "column": 13}, "end_point": {"row": 21, "column": 27}}, {"id": 57, "type": "parameter_list", "text": "(const UniValue& src)", "parent": 55, "children": [58], "start_point": {"row": 21, "column": 27}, "end_point": {"row": 21, "column": 48}}, {"id": 58, "type": "parameter_declaration", "text": "const UniValue& src", "parent": 57, "children": [59, 60], "start_point": {"row": 21, "column": 28}, "end_point": {"row": 21, "column": 47}}, {"id": 59, "type": "type_identifier", "text": "UniValue", "parent": 58, "children": [], "start_point": {"row": 21, "column": 34}, "end_point": {"row": 21, "column": 42}}, {"id": 60, "type": "identifier", "text": "src", "parent": 58, "children": [], "start_point": {"row": 21, "column": 44}, "end_point": {"row": 21, "column": 47}}, {"id": 61, "type": "identifier", "text": "override", "parent": 55, "children": [], "start_point": {"row": 21, "column": 49}, "end_point": {"row": 21, "column": 57}}, {"id": 62, "type": "ERROR", "text": "void DeserializePayload(const UniValue& src) override", "parent": 12, "children": [63, 64], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 61}}, {"id": 63, "type": "primitive_type", "text": "void", "parent": 62, "children": [], "start_point": {"row": 22, "column": 8}, "end_point": {"row": 22, "column": 12}}, {"id": 64, "type": "function_declarator", "text": "DeserializePayload(const UniValue& src) override", "parent": 62, "children": [65, 66, 70], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 61}}, {"id": 65, "type": "identifier", "text": "DeserializePayload", "parent": 64, "children": [], "start_point": {"row": 22, "column": 13}, "end_point": {"row": 22, "column": 31}}, {"id": 66, "type": "parameter_list", "text": "(const UniValue& src)", "parent": 64, "children": [67], "start_point": {"row": 22, "column": 31}, "end_point": {"row": 22, "column": 52}}, {"id": 67, "type": "parameter_declaration", "text": "const UniValue& src", "parent": 66, "children": [68, 69], "start_point": {"row": 22, "column": 32}, "end_point": {"row": 22, "column": 51}}, {"id": 68, "type": "type_identifier", "text": "UniValue", "parent": 67, "children": [], "start_point": {"row": 22, "column": 38}, "end_point": {"row": 22, "column": 46}}, {"id": 69, "type": "identifier", "text": "src", "parent": 67, "children": [], "start_point": {"row": 22, "column": 48}, "end_point": {"row": 22, "column": 51}}, {"id": 70, "type": "identifier", "text": "override", "parent": 64, "children": [], "start_point": {"row": 22, "column": 53}, "end_point": {"row": 22, "column": 61}}, {"id": 71, "type": "binary_expression", "text": "shared_ptr <string> GetAddress()", "parent": 12, "children": [72, 76, 77], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 40}}, {"id": 72, "type": "binary_expression", "text": "shared_ptr <string", "parent": 71, "children": [73, 74, 75], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 26}}, {"id": 73, "type": "identifier", "text": "shared_ptr", "parent": 72, "children": [], "start_point": {"row": 24, "column": 8}, "end_point": {"row": 24, "column": 18}}, {"id": 74, "type": "<", "text": "<", "parent": 72, "children": [], "start_point": {"row": 24, "column": 19}, "end_point": {"row": 24, "column": 20}}, {"id": 75, "type": "identifier", "text": "string", "parent": 72, "children": [], "start_point": {"row": 24, "column": 20}, "end_point": {"row": 24, "column": 26}}, {"id": 76, "type": ">", "text": ">", "parent": 71, "children": [], "start_point": {"row": 24, "column": 26}, "end_point": {"row": 24, "column": 27}}, {"id": 77, "type": "call_expression", "text": "GetAddress()", "parent": 71, "children": [78, 79], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 40}}, {"id": 78, "type": "identifier", "text": "GetAddress", "parent": 77, "children": [], "start_point": {"row": 24, "column": 28}, "end_point": {"row": 24, "column": 38}}, {"id": 79, "type": "argument_list", "text": "()", "parent": 77, "children": [], "start_point": {"row": 24, "column": 38}, "end_point": {"row": 24, "column": 40}}, {"id": 80, "type": "ERROR", "text": "void SetAddress(const string& value) override", "parent": 12, "children": [81, 82], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 53}}, {"id": 81, "type": "primitive_type", "text": "void", "parent": 80, "children": [], "start_point": {"row": 25, "column": 8}, "end_point": {"row": 25, "column": 12}}, {"id": 82, "type": "function_declarator", "text": "SetAddress(const string& value) override", "parent": 80, "children": [83, 84, 88], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 53}}, {"id": 83, "type": "identifier", "text": "SetAddress", "parent": 82, "children": [], "start_point": {"row": 25, "column": 13}, "end_point": {"row": 25, "column": 23}}, {"id": 84, "type": "parameter_list", "text": "(const string& value)", "parent": 82, "children": [85], "start_point": {"row": 25, "column": 23}, "end_point": {"row": 25, "column": 44}}, {"id": 85, "type": "parameter_declaration", "text": "const string& value", "parent": 84, "children": [86, 87], "start_point": {"row": 25, "column": 24}, "end_point": {"row": 25, "column": 43}}, {"id": 86, "type": "type_identifier", "text": "string", "parent": 85, "children": [], "start_point": {"row": 25, "column": 30}, "end_point": {"row": 25, "column": 36}}, {"id": 87, "type": "identifier", "text": "value", "parent": 85, "children": [], "start_point": {"row": 25, "column": 38}, "end_point": {"row": 25, "column": 43}}, {"id": 88, "type": "identifier", "text": "override", "parent": 82, "children": [], "start_point": {"row": 25, "column": 45}, "end_point": {"row": 25, "column": 53}}, {"id": 89, "type": "binary_expression", "text": "shared_ptr <string> GetAddressTo()", "parent": 12, "children": [90, 94, 95], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 42}}, {"id": 90, "type": "binary_expression", "text": "shared_ptr <string", "parent": 89, "children": [91, 92, 93], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 26}}, {"id": 91, "type": "identifier", "text": "shared_ptr", "parent": 90, "children": [], "start_point": {"row": 27, "column": 8}, "end_point": {"row": 27, "column": 18}}, {"id": 92, "type": "<", "text": "<", "parent": 90, "children": [], "start_point": {"row": 27, "column": 19}, "end_point": {"row": 27, "column": 20}}, {"id": 93, "type": "identifier", "text": "string", "parent": 90, "children": [], "start_point": {"row": 27, "column": 20}, "end_point": {"row": 27, "column": 26}}, {"id": 94, "type": ">", "text": ">", "parent": 89, "children": [], "start_point": {"row": 27, "column": 26}, "end_point": {"row": 27, "column": 27}}, {"id": 95, "type": "call_expression", "text": "GetAddressTo()", "parent": 89, "children": [96, 97], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 42}}, {"id": 96, "type": "identifier", "text": "GetAddressTo", "parent": 95, "children": [], "start_point": {"row": 27, "column": 28}, "end_point": {"row": 27, "column": 40}}, {"id": 97, "type": "argument_list", "text": "()", "parent": 95, "children": [], "start_point": {"row": 27, "column": 40}, "end_point": {"row": 27, "column": 42}}, {"id": 98, "type": "declaration", "text": "void SetAddressTo(const string& value);", "parent": 12, "children": [99, 100], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 47}}, {"id": 99, "type": "primitive_type", "text": "void", "parent": 98, "children": [], "start_point": {"row": 28, "column": 8}, "end_point": {"row": 28, "column": 12}}, {"id": 100, "type": "function_declarator", "text": "SetAddressTo(const string& value)", "parent": 98, "children": [101, 102], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 46}}, {"id": 101, "type": "identifier", "text": "SetAddressTo", "parent": 100, "children": [], "start_point": {"row": 28, "column": 13}, "end_point": {"row": 28, "column": 25}}, {"id": 102, "type": "parameter_list", "text": "(const string& value)", "parent": 100, "children": [103], "start_point": {"row": 28, "column": 25}, "end_point": {"row": 28, "column": 46}}, {"id": 103, "type": "parameter_declaration", "text": "const string& value", "parent": 102, "children": [104, 105], "start_point": {"row": 28, "column": 26}, "end_point": {"row": 28, "column": 45}}, {"id": 104, "type": "type_identifier", "text": "string", "parent": 103, "children": [], "start_point": {"row": 28, "column": 32}, "end_point": {"row": 28, "column": 38}}, {"id": 105, "type": "identifier", "text": "value", "parent": 103, "children": [], "start_point": {"row": 28, "column": 40}, "end_point": {"row": 28, "column": 45}}, {"id": 106, "type": "ERROR", "text": "string BuildHash() override", "parent": 12, "children": [107, 108, 111], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 35}}, {"id": 107, "type": "type_identifier", "text": "string", "parent": 106, "children": [], "start_point": {"row": 30, "column": 8}, "end_point": {"row": 30, "column": 14}}, {"id": 108, "type": "function_declarator", "text": "BuildHash()", "parent": 106, "children": [109, 110], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 26}}, {"id": 109, "type": "identifier", "text": "BuildHash", "parent": 108, "children": [], "start_point": {"row": 30, "column": 15}, "end_point": {"row": 30, "column": 24}}, {"id": 110, "type": "parameter_list", "text": "()", "parent": 108, "children": [], "start_point": {"row": 30, "column": 24}, "end_point": {"row": 30, "column": 26}}, {"id": 111, "type": "type_identifier", "text": "override", "parent": 106, "children": [], "start_point": {"row": 30, "column": 27}, "end_point": {"row": 30, "column": 35}}, {"id": 112, "type": "#endif", "text": "#endif", "parent": 0, "children": [], "start_point": {"row": 36, "column": 0}, "end_point": {"row": 36, "column": 6}}]}, "node_categories": {"declarations": {"functions": [9, 12, 46, 55, 64, 82, 100, 108], "variables": [49, 58, 67, 85, 98, 103], "classes": [], "imports": [6, 7], "modules": [], "enums": []}, "statements": {"expressions": [17, 25, 26, 31, 33, 34, 40, 71, 72, 77, 89, 90, 95], "assignments": [], "loops": [], "conditionals": [0, 1, 2, 5, 10, 11, 14, 15, 18, 21, 24, 27, 29, 32, 35, 37, 41, 43, 47, 50, 51, 52, 56, 59, 60, 61, 65, 68, 69, 70, 73, 75, 78, 83, 86, 87, 88, 91, 93, 96, 101, 104, 105, 107, 109, 111, 112], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [8], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 9, "universal_type": "function", "name": "Subscribe", "text_snippet": "namespace PocketTx\n{\n class Subscribe : public Transaction\n {\n public:\n\n Subscribe()"}, {"node_id": 12, "universal_type": "function", "name": "Subscribe", "text_snippet": "class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const"}, {"node_id": 46, "universal_type": "function", "name": "unknown", "text_snippet": "Deserialize(const UniValue& src) override"}, {"node_id": 55, "universal_type": "function", "name": "unknown", "text_snippet": "DeserializeRpc(const UniValue& src) override"}, {"node_id": 64, "universal_type": "function", "name": "unknown", "text_snippet": "DeserializePayload(const UniValue& src) override"}, {"node_id": 82, "universal_type": "function", "name": "unknown", "text_snippet": "SetAddress(const string& value) override"}, {"node_id": 100, "universal_type": "function", "name": "unknown", "text_snippet": "SetAddressTo(const string& value)"}, {"node_id": 108, "universal_type": "function", "name": "unknown", "text_snippet": "BuildHash()"}], "class_declarations": [], "import_statements": [{"node_id": 6, "text": "#include \"pocketdb/models/base/Transaction.h\"\n"}, {"node_id": 7, "text": "#include"}]}, "original_source_code": "// Copyright (c) 2018-2021 Pocketnet developers\n// Distributed under the Apache 2.0 software license, see the accompanying\n// https://www.apache.org/licenses/LICENSE-2.0\n\n#ifndef POCKETTX_SUBSCRIBE_H\n#define POCKETTX_SUBSCRIBE_H\n\n#include \"pocketdb/models/base/Transaction.h\"\n\nnamespace PocketTx\n{\n class Subscribe : public Transaction\n {\n public:\n\n Subscribe();\n Subscribe(const std::shared_ptr<const CTransaction>& tx);\n\n shared_ptr<UniValue> Serialize() const override;\n\n void Deserialize(const UniValue& src) override;\n void DeserializeRpc(const UniValue& src) override;\n void DeserializePayload(const UniValue& src) override;\n\n shared_ptr <string> GetAddress() const;\n void SetAddress(const string& value) override;\n\n shared_ptr <string> GetAddressTo() const;\n void SetAddressTo(const string& value);\n\n string BuildHash() override;\n\n };\n\n} // namespace PocketTx\n\n#endif //POCKETTX_SUBSCRIBE_H\n"}
80,398
c
/************************************************************************ * * * Copyright (c) 1985 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * * Redistribution and use in source and binary forms are permitted * * provided that the above copyright notice and this paragraph are * * duplicated in all such forms and that any documentation, * * advertising materials, and other materials related to such * * distribution and use acknowledge that the software was developed * * by Digital Equipment Corporation. The name of Digital Equipment * * Corporation may not be used to endorse or promote products derived * * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.* * Do not take internally. In case of accidental ingestion, contact * * your physician immediately. * * * ************************************************************************/ /* DO NOT INCLUDE "mnemosyne.h" !!! */ #include <stdio.h> #include <ctype.h> #include <sys/types.h> #include <sys/file.h> static char rcsid[] = "/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp"; #include "mnemconf.h" extern char *index(); /* post-processor to interpret memory allocation maps and search for pointers that were allocated but never freed. <NAME>, 1990. (<EMAIL>) */ /* simple and braindead, read in the ".lines" file, and store it in a table by number. then read the pointer map, and crossref any unfreed pointers. simple as dereferencing NULL... this could use some cleaning and buffing, but it's damn effective as it is. again, fancier symbol table routines would make this faster, but who gives a damn? it only has to be faster than finding memory leaks by hand... */ struct xsym { char *dat; int lnum; int map; struct xsym *nxt; }; main() { register struct xsym *sp; register struct xsym *zp; struct ptr p; struct xsym *shash[HASHSIZ]; char inbuf[BUFSIZ]; FILE *lp; int fd; /* statistics */ int ptrcnt = 0; int ptrbad = 0; int ptrlos = 0; /* to chop up lines */ char *cpmap; char *cpcalls; char *cpave; char *cplnum; char *cpfnam; for(fd = 0; fd < HASHSIZ; fd++) shash[fd] = (struct xsym *)0; if((lp = fopen(LINESFILE,"r")) == (FILE *)0) { perror(LINESFILE); exit(1); } if((fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0) { perror(PTRFILE); exit(1); } /* this is ugly, but I refuse to trust !@(#&U!@#&! sscanf() */ while((cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0) { if(inbuf[0] == '#') continue; sp = (struct xsym *)malloc(sizeof(struct xsym)); if(sp == (struct xsym *)0) { perror("malloc"); exit(1); } sp->lnum = sp->map = 0; if((cpcalls = index(cpmap,'\t')) != (char *)0) *cpcalls++ = '\0'; if((cpave = index(cpcalls,'\t')) != (char *)0) *cpave++ = '\0'; if((cplnum = index(cpave,'\t')) != (char *)0) *cplnum++ = '\0'; if((cpfnam = index(cplnum,'\t')) != (char *)0) *cpfnam++ = '\0'; /* setup symbol */ sp->map = atoi(cpmap); if(cplnum == (char *)0) sp->lnum = -1; else sp->lnum = atoi(cplnum); if(cpfnam != (char *)0) { char *x; if((x = index(cpfnam,'\n')) != (char *)0) *x = '\0'; sp->dat = malloc((unsigned)(strlen(cpfnam) + 1)); if(sp->dat == (char *)0) { perror("malloc"); exit(1); } (void)strcpy(sp->dat,cpfnam); } else sp->dat = "unknown"; /* check to make sure it is not already in table */ zp = shash[sp->map % HASHSIZ]; while(zp != (struct xsym *)0) { if(zp->map == sp->map) { (void)fprintf(stderr, "mnemalyse: duplicate map entry ignored"); (void)fprintf(stderr, " (point at both %s and %s)\n",sp->dat,zp->dat); (void)free(sp); /* can't free dat - may not be malloced! */ sp = (struct xsym *)0; break; } zp = zp->nxt; } /* shrug, link it in */ if(sp != (struct xsym *)0) { sp->nxt = shash[sp->map % HASHSIZ]; shash[sp->map % HASHSIZ] = sp; } } (void)fclose(lp); while(read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk)) { /* if the pointer was not deallocated, note it */ if(p.dsk.siz != 0) { zp = shash[p.dsk.smap % HASHSIZ]; while(zp != (struct xsym *)0) { if(zp->map == p.dsk.smap) { printf("%d bytes missing %s line:%d\n", p.dsk.siz,zp->dat,zp->lnum); } zp = zp->nxt; } ptrbad++; ptrlos += p.dsk.siz; } ptrcnt++; } printf("%d pointers, %d lost totalling %d bytes\n", ptrcnt,ptrbad,ptrlos); exit(0); }
29.67
165
(translation_unit) "/************************************************************************\n * *\n * Copyright (c) 1985 by *\n * Digital Equipment Corporation, Maynard, MA *\n * All rights reserved. *\n * *\n * The information in this software is subject to change without *\n * notice and should not be construed as a commitment by Digital *\n * Equipment Corporation. *\n * *\n * Digital assumes no responsibility for the use or reliability *\n * of its software on equipment which is not supplied by Digital. *\n * *\n * Redistribution and use in source and binary forms are permitted *\n * provided that the above copyright notice and this paragraph are *\n * duplicated in all such forms and that any documentation, *\n * advertising materials, and other materials related to such *\n * distribution and use acknowledge that the software was developed *\n * by Digital Equipment Corporation. The name of Digital Equipment *\n * Corporation may not be used to endorse or promote products derived *\n * from this software without specific prior written permission. *\n * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *\n * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED *\n * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.*\n * Do not take internally. In case of accidental ingestion, contact *\n * your physician immediately. *\n * *\n ************************************************************************/\n\n/* DO NOT INCLUDE "mnemosyne.h" !!! */\n#include <stdio.h>\n#include <ctype.h>\n#include <sys/types.h>\n#include <sys/file.h>\n\nstatic char rcsid[] = "/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp";\n\n#include "mnemconf.h"\n\nextern char *index();\n\n/*\npost-processor to interpret memory allocation maps and search for\npointers that were allocated but never freed.\n\n <NAME>, 1990. (<EMAIL>)\n*/\n\n\n/*\nsimple and braindead, read in the ".lines" file, and store it in a\ntable by number. then read the pointer map, and crossref any unfreed\npointers. simple as dereferencing NULL...\n\nthis could use some cleaning and buffing, but it's damn effective as\nit is. again, fancier symbol table routines would make this faster,\nbut who gives a damn? it only has to be faster than finding memory\nleaks by hand...\n*/\n\nstruct xsym {\n char *dat;\n int lnum;\n int map;\n struct xsym *nxt;\n};\n\n\n\nmain()\n{\n register struct xsym *sp;\n register struct xsym *zp;\n struct ptr p;\n struct xsym *shash[HASHSIZ];\n char inbuf[BUFSIZ];\n FILE *lp;\n int fd;\n\n /* statistics */\n int ptrcnt = 0;\n int ptrbad = 0;\n int ptrlos = 0;\n\n /* to chop up lines */\n char *cpmap;\n char *cpcalls;\n char *cpave;\n char *cplnum;\n char *cpfnam;\n\n for(fd = 0; fd < HASHSIZ; fd++)\n shash[fd] = (struct xsym *)0;\n\n if((lp = fopen(LINESFILE,"r")) == (FILE *)0) {\n perror(LINESFILE);\n exit(1);\n }\n\n if((fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0) {\n perror(PTRFILE);\n exit(1);\n }\n\n /* this is ugly, but I refuse to trust !@(#&U!@#&! sscanf() */\n while((cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0) {\n if(inbuf[0] == '#')\n continue;\n\n sp = (struct xsym *)malloc(sizeof(struct xsym));\n if(sp == (struct xsym *)0) {\n perror("malloc");\n exit(1);\n }\n sp->lnum = sp->map = 0;\n\n if((cpcalls = index(cpmap,'\t')) != (char *)0)\n *cpcalls++ = '\0';\n\n if((cpave = index(cpcalls,'\t')) != (char *)0)\n *cpave++ = '\0';\n\n if((cplnum = index(cpave,'\t')) != (char *)0)\n *cplnum++ = '\0';\n\n if((cpfnam = index(cplnum,'\t')) != (char *)0)\n *cpfnam++ = '\0';\n\n /* setup symbol */\n sp->map = atoi(cpmap);\n\n if(cplnum == (char *)0)\n sp->lnum = -1;\n else\n sp->lnum = atoi(cplnum);\n\n if(cpfnam != (char *)0) {\n char *x;\n if((x = index(cpfnam,'\n')) != (char *)0)\n *x = '\0';\n\n sp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n if(sp->dat == (char *)0) {\n perror("malloc");\n exit(1);\n }\n (void)strcpy(sp->dat,cpfnam);\n } else\n sp->dat = "unknown";\n\n /* check to make sure it is not already in table */\n zp = shash[sp->map % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == sp->map) {\n (void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");\n (void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);\n (void)free(sp);\n\n /* can't free dat - may not be malloced! */\n sp = (struct xsym *)0;\n break;\n }\n zp = zp->nxt;\n }\n\n /* shrug, link it in */\n if(sp != (struct xsym *)0) {\n sp->nxt = shash[sp->map % HASHSIZ];\n shash[sp->map % HASHSIZ] = sp;\n }\n }\n (void)fclose(lp);\n\n while(read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk)) {\n\n /* if the pointer was not deallocated, note it */\n if(p.dsk.siz != 0) {\n zp = shash[p.dsk.smap % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }\n zp = zp->nxt;\n }\n ptrbad++;\n ptrlos += p.dsk.siz;\n }\n ptrcnt++;\n }\n\n printf("%d pointers, %d lost totalling %d bytes\n",\n ptrcnt,ptrbad,ptrlos);\n exit(0);\n}\n" (comment) "/************************************************************************\n * *\n * Copyright (c) 1985 by *\n * Digital Equipment Corporation, Maynard, MA *\n * All rights reserved. *\n * *\n * The information in this software is subject to change without *\n * notice and should not be construed as a commitment by Digital *\n * Equipment Corporation. *\n * *\n * Digital assumes no responsibility for the use or reliability *\n * of its software on equipment which is not supplied by Digital. *\n * *\n * Redistribution and use in source and binary forms are permitted *\n * provided that the above copyright notice and this paragraph are *\n * duplicated in all such forms and that any documentation, *\n * advertising materials, and other materials related to such *\n * distribution and use acknowledge that the software was developed *\n * by Digital Equipment Corporation. The name of Digital Equipment *\n * Corporation may not be used to endorse or promote products derived *\n * from this software without specific prior written permission. *\n * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *\n * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED *\n * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.*\n * Do not take internally. In case of accidental ingestion, contact *\n * your physician immediately. *\n * *\n ************************************************************************/" (comment) "/* DO NOT INCLUDE "mnemosyne.h" !!! */" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include <ctype.h>\n" (#include) "#include" (system_lib_string) "<ctype.h>" (preproc_include) "#include <sys/types.h>\n" (#include) "#include" (system_lib_string) "<sys/types.h>" (preproc_include) "#include <sys/file.h>\n" (#include) "#include" (system_lib_string) "<sys/file.h>" (declaration) "static char rcsid[] = "/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp";" (storage_class_specifier) "static" (static) "static" (primitive_type) "char" (init_declarator) "rcsid[] = "/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp"" (array_declarator) "rcsid[]" (identifier) "rcsid" ([) "[" (]) "]" (=) "=" (string_literal) ""/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp"" (") """ (string_content) "/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp" (") """ (;) ";" (preproc_include) "#include "mnemconf.h"\n" (#include) "#include" (string_literal) ""mnemconf.h"" (") """ (string_content) "mnemconf.h" (") """ (declaration) "extern char *index();" (storage_class_specifier) "extern" (extern) "extern" (primitive_type) "char" (pointer_declarator) "*index()" (*) "*" (function_declarator) "index()" (identifier) "index" (parameter_list) "()" (() "(" ()) ")" (;) ";" (comment) "/*\npost-processor to interpret memory allocation maps and search for\npointers that were allocated but never freed.\n\n <NAME>, 1990. (<EMAIL>)\n*/" (comment) "/*\nsimple and braindead, read in the ".lines" file, and store it in a\ntable by number. then read the pointer map, and crossref any unfreed\npointers. simple as dereferencing NULL...\n\nthis could use some cleaning and buffing, but it's damn effective as\nit is. again, fancier symbol table routines would make this faster,\nbut who gives a damn? it only has to be faster than finding memory\nleaks by hand...\n*/" (struct_specifier) "struct xsym {\n char *dat;\n int lnum;\n int map;\n struct xsym *nxt;\n}" (struct) "struct" (type_identifier) "xsym" (field_declaration_list) "{\n char *dat;\n int lnum;\n int map;\n struct xsym *nxt;\n}" ({) "{" (field_declaration) "char *dat;" (primitive_type) "char" (pointer_declarator) "*dat" (*) "*" (field_identifier) "dat" (;) ";" (field_declaration) "int lnum;" (primitive_type) "int" (field_identifier) "lnum" (;) ";" (field_declaration) "int map;" (primitive_type) "int" (field_identifier) "map" (;) ";" (field_declaration) "struct xsym *nxt;" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (pointer_declarator) "*nxt" (*) "*" (field_identifier) "nxt" (;) ";" (}) "}" (;) ";" (expression_statement) "main()" (call_expression) "main()" (identifier) "main" (argument_list) "()" (() "(" ()) ")" (;) "" (compound_statement) "{\n register struct xsym *sp;\n register struct xsym *zp;\n struct ptr p;\n struct xsym *shash[HASHSIZ];\n char inbuf[BUFSIZ];\n FILE *lp;\n int fd;\n\n /* statistics */\n int ptrcnt = 0;\n int ptrbad = 0;\n int ptrlos = 0;\n\n /* to chop up lines */\n char *cpmap;\n char *cpcalls;\n char *cpave;\n char *cplnum;\n char *cpfnam;\n\n for(fd = 0; fd < HASHSIZ; fd++)\n shash[fd] = (struct xsym *)0;\n\n if((lp = fopen(LINESFILE,"r")) == (FILE *)0) {\n perror(LINESFILE);\n exit(1);\n }\n\n if((fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0) {\n perror(PTRFILE);\n exit(1);\n }\n\n /* this is ugly, but I refuse to trust !@(#&U!@#&! sscanf() */\n while((cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0) {\n if(inbuf[0] == '#')\n continue;\n\n sp = (struct xsym *)malloc(sizeof(struct xsym));\n if(sp == (struct xsym *)0) {\n perror("malloc");\n exit(1);\n }\n sp->lnum = sp->map = 0;\n\n if((cpcalls = index(cpmap,'\t')) != (char *)0)\n *cpcalls++ = '\0';\n\n if((cpave = index(cpcalls,'\t')) != (char *)0)\n *cpave++ = '\0';\n\n if((cplnum = index(cpave,'\t')) != (char *)0)\n *cplnum++ = '\0';\n\n if((cpfnam = index(cplnum,'\t')) != (char *)0)\n *cpfnam++ = '\0';\n\n /* setup symbol */\n sp->map = atoi(cpmap);\n\n if(cplnum == (char *)0)\n sp->lnum = -1;\n else\n sp->lnum = atoi(cplnum);\n\n if(cpfnam != (char *)0) {\n char *x;\n if((x = index(cpfnam,'\n')) != (char *)0)\n *x = '\0';\n\n sp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n if(sp->dat == (char *)0) {\n perror("malloc");\n exit(1);\n }\n (void)strcpy(sp->dat,cpfnam);\n } else\n sp->dat = "unknown";\n\n /* check to make sure it is not already in table */\n zp = shash[sp->map % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == sp->map) {\n (void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");\n (void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);\n (void)free(sp);\n\n /* can't free dat - may not be malloced! */\n sp = (struct xsym *)0;\n break;\n }\n zp = zp->nxt;\n }\n\n /* shrug, link it in */\n if(sp != (struct xsym *)0) {\n sp->nxt = shash[sp->map % HASHSIZ];\n shash[sp->map % HASHSIZ] = sp;\n }\n }\n (void)fclose(lp);\n\n while(read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk)) {\n\n /* if the pointer was not deallocated, note it */\n if(p.dsk.siz != 0) {\n zp = shash[p.dsk.smap % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }\n zp = zp->nxt;\n }\n ptrbad++;\n ptrlos += p.dsk.siz;\n }\n ptrcnt++;\n }\n\n printf("%d pointers, %d lost totalling %d bytes\n",\n ptrcnt,ptrbad,ptrlos);\n exit(0);\n}" ({) "{" (declaration) "register struct xsym *sp;" (storage_class_specifier) "register" (register) "register" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (pointer_declarator) "*sp" (*) "*" (identifier) "sp" (;) ";" (declaration) "register struct xsym *zp;" (storage_class_specifier) "register" (register) "register" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (pointer_declarator) "*zp" (*) "*" (identifier) "zp" (;) ";" (declaration) "struct ptr p;" (struct_specifier) "struct ptr" (struct) "struct" (type_identifier) "ptr" (identifier) "p" (;) ";" (declaration) "struct xsym *shash[HASHSIZ];" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (pointer_declarator) "*shash[HASHSIZ]" (*) "*" (array_declarator) "shash[HASHSIZ]" (identifier) "shash" ([) "[" (identifier) "HASHSIZ" (]) "]" (;) ";" (declaration) "char inbuf[BUFSIZ];" (primitive_type) "char" (array_declarator) "inbuf[BUFSIZ]" (identifier) "inbuf" ([) "[" (identifier) "BUFSIZ" (]) "]" (;) ";" (declaration) "FILE *lp;" (type_identifier) "FILE" (pointer_declarator) "*lp" (*) "*" (identifier) "lp" (;) ";" (declaration) "int fd;" (primitive_type) "int" (identifier) "fd" (;) ";" (comment) "/* statistics */" (declaration) "int ptrcnt = 0;" (primitive_type) "int" (init_declarator) "ptrcnt = 0" (identifier) "ptrcnt" (=) "=" (number_literal) "0" (;) ";" (declaration) "int ptrbad = 0;" (primitive_type) "int" (init_declarator) "ptrbad = 0" (identifier) "ptrbad" (=) "=" (number_literal) "0" (;) ";" (declaration) "int ptrlos = 0;" (primitive_type) "int" (init_declarator) "ptrlos = 0" (identifier) "ptrlos" (=) "=" (number_literal) "0" (;) ";" (comment) "/* to chop up lines */" (declaration) "char *cpmap;" (primitive_type) "char" (pointer_declarator) "*cpmap" (*) "*" (identifier) "cpmap" (;) ";" (declaration) "char *cpcalls;" (primitive_type) "char" (pointer_declarator) "*cpcalls" (*) "*" (identifier) "cpcalls" (;) ";" (declaration) "char *cpave;" (primitive_type) "char" (pointer_declarator) "*cpave" (*) "*" (identifier) "cpave" (;) ";" (declaration) "char *cplnum;" (primitive_type) "char" (pointer_declarator) "*cplnum" (*) "*" (identifier) "cplnum" (;) ";" (declaration) "char *cpfnam;" (primitive_type) "char" (pointer_declarator) "*cpfnam" (*) "*" (identifier) "cpfnam" (;) ";" (for_statement) "for(fd = 0; fd < HASHSIZ; fd++)\n shash[fd] = (struct xsym *)0;" (for) "for" (() "(" (assignment_expression) "fd = 0" (identifier) "fd" (=) "=" (number_literal) "0" (;) ";" (binary_expression) "fd < HASHSIZ" (identifier) "fd" (<) "<" (identifier) "HASHSIZ" (;) ";" (update_expression) "fd++" (identifier) "fd" (++) "++" ()) ")" (expression_statement) "shash[fd] = (struct xsym *)0;" (assignment_expression) "shash[fd] = (struct xsym *)0" (subscript_expression) "shash[fd]" (identifier) "shash" ([) "[" (identifier) "fd" (]) "]" (=) "=" (cast_expression) "(struct xsym *)0" (() "(" (type_descriptor) "struct xsym *" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" (;) ";" (if_statement) "if((lp = fopen(LINESFILE,"r")) == (FILE *)0) {\n perror(LINESFILE);\n exit(1);\n }" (if) "if" (parenthesized_expression) "((lp = fopen(LINESFILE,"r")) == (FILE *)0)" (() "(" (binary_expression) "(lp = fopen(LINESFILE,"r")) == (FILE *)0" (parenthesized_expression) "(lp = fopen(LINESFILE,"r"))" (() "(" (assignment_expression) "lp = fopen(LINESFILE,"r")" (identifier) "lp" (=) "=" (call_expression) "fopen(LINESFILE,"r")" (identifier) "fopen" (argument_list) "(LINESFILE,"r")" (() "(" (identifier) "LINESFILE" (,) "," (string_literal) ""r"" (") """ (string_content) "r" (") """ ()) ")" ()) ")" (==) "==" (cast_expression) "(FILE *)0" (() "(" (type_descriptor) "FILE *" (type_identifier) "FILE" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (compound_statement) "{\n perror(LINESFILE);\n exit(1);\n }" ({) "{" (expression_statement) "perror(LINESFILE);" (call_expression) "perror(LINESFILE)" (identifier) "perror" (argument_list) "(LINESFILE)" (() "(" (identifier) "LINESFILE" ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (if_statement) "if((fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0) {\n perror(PTRFILE);\n exit(1);\n }" (if) "if" (parenthesized_expression) "((fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0)" (() "(" (binary_expression) "(fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0" (parenthesized_expression) "(fd = open(PTRFILE,O_RDONLY|O_RDWR))" (() "(" (assignment_expression) "fd = open(PTRFILE,O_RDONLY|O_RDWR)" (identifier) "fd" (=) "=" (call_expression) "open(PTRFILE,O_RDONLY|O_RDWR)" (identifier) "open" (argument_list) "(PTRFILE,O_RDONLY|O_RDWR)" (() "(" (identifier) "PTRFILE" (,) "," (binary_expression) "O_RDONLY|O_RDWR" (identifier) "O_RDONLY" (|) "|" (identifier) "O_RDWR" ()) ")" ()) ")" (<) "<" (number_literal) "0" ()) ")" (compound_statement) "{\n perror(PTRFILE);\n exit(1);\n }" ({) "{" (expression_statement) "perror(PTRFILE);" (call_expression) "perror(PTRFILE)" (identifier) "perror" (argument_list) "(PTRFILE)" (() "(" (identifier) "PTRFILE" ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (comment) "/* this is ugly, but I refuse to trust !@(#&U!@#&! sscanf() */" (while_statement) "while((cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0) {\n if(inbuf[0] == '#')\n continue;\n\n sp = (struct xsym *)malloc(sizeof(struct xsym));\n if(sp == (struct xsym *)0) {\n perror("malloc");\n exit(1);\n }\n sp->lnum = sp->map = 0;\n\n if((cpcalls = index(cpmap,'\t')) != (char *)0)\n *cpcalls++ = '\0';\n\n if((cpave = index(cpcalls,'\t')) != (char *)0)\n *cpave++ = '\0';\n\n if((cplnum = index(cpave,'\t')) != (char *)0)\n *cplnum++ = '\0';\n\n if((cpfnam = index(cplnum,'\t')) != (char *)0)\n *cpfnam++ = '\0';\n\n /* setup symbol */\n sp->map = atoi(cpmap);\n\n if(cplnum == (char *)0)\n sp->lnum = -1;\n else\n sp->lnum = atoi(cplnum);\n\n if(cpfnam != (char *)0) {\n char *x;\n if((x = index(cpfnam,'\n')) != (char *)0)\n *x = '\0';\n\n sp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n if(sp->dat == (char *)0) {\n perror("malloc");\n exit(1);\n }\n (void)strcpy(sp->dat,cpfnam);\n } else\n sp->dat = "unknown";\n\n /* check to make sure it is not already in table */\n zp = shash[sp->map % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == sp->map) {\n (void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");\n (void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);\n (void)free(sp);\n\n /* can't free dat - may not be malloced! */\n sp = (struct xsym *)0;\n break;\n }\n zp = zp->nxt;\n }\n\n /* shrug, link it in */\n if(sp != (struct xsym *)0) {\n sp->nxt = shash[sp->map % HASHSIZ];\n shash[sp->map % HASHSIZ] = sp;\n }\n }" (while) "while" (parenthesized_expression) "((cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0)" (() "(" (binary_expression) "(cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0" (parenthesized_expression) "(cpmap = fgets(inbuf,sizeof(inbuf),lp))" (() "(" (assignment_expression) "cpmap = fgets(inbuf,sizeof(inbuf),lp)" (identifier) "cpmap" (=) "=" (call_expression) "fgets(inbuf,sizeof(inbuf),lp)" (identifier) "fgets" (argument_list) "(inbuf,sizeof(inbuf),lp)" (() "(" (identifier) "inbuf" (,) "," (sizeof_expression) "sizeof(inbuf)" (sizeof) "sizeof" (parenthesized_expression) "(inbuf)" (() "(" (identifier) "inbuf" ()) ")" (,) "," (identifier) "lp" ()) ")" ()) ")" (!=) "!=" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (compound_statement) "{\n if(inbuf[0] == '#')\n continue;\n\n sp = (struct xsym *)malloc(sizeof(struct xsym));\n if(sp == (struct xsym *)0) {\n perror("malloc");\n exit(1);\n }\n sp->lnum = sp->map = 0;\n\n if((cpcalls = index(cpmap,'\t')) != (char *)0)\n *cpcalls++ = '\0';\n\n if((cpave = index(cpcalls,'\t')) != (char *)0)\n *cpave++ = '\0';\n\n if((cplnum = index(cpave,'\t')) != (char *)0)\n *cplnum++ = '\0';\n\n if((cpfnam = index(cplnum,'\t')) != (char *)0)\n *cpfnam++ = '\0';\n\n /* setup symbol */\n sp->map = atoi(cpmap);\n\n if(cplnum == (char *)0)\n sp->lnum = -1;\n else\n sp->lnum = atoi(cplnum);\n\n if(cpfnam != (char *)0) {\n char *x;\n if((x = index(cpfnam,'\n')) != (char *)0)\n *x = '\0';\n\n sp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n if(sp->dat == (char *)0) {\n perror("malloc");\n exit(1);\n }\n (void)strcpy(sp->dat,cpfnam);\n } else\n sp->dat = "unknown";\n\n /* check to make sure it is not already in table */\n zp = shash[sp->map % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == sp->map) {\n (void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");\n (void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);\n (void)free(sp);\n\n /* can't free dat - may not be malloced! */\n sp = (struct xsym *)0;\n break;\n }\n zp = zp->nxt;\n }\n\n /* shrug, link it in */\n if(sp != (struct xsym *)0) {\n sp->nxt = shash[sp->map % HASHSIZ];\n shash[sp->map % HASHSIZ] = sp;\n }\n }" ({) "{" (if_statement) "if(inbuf[0] == '#')\n continue;" (if) "if" (parenthesized_expression) "(inbuf[0] == '#')" (() "(" (binary_expression) "inbuf[0] == '#'" (subscript_expression) "inbuf[0]" (identifier) "inbuf" ([) "[" (number_literal) "0" (]) "]" (==) "==" (char_literal) "'#'" (') "'" (character) "#" (') "'" ()) ")" (continue_statement) "continue;" (continue) "continue" (;) ";" (expression_statement) "sp = (struct xsym *)malloc(sizeof(struct xsym));" (assignment_expression) "sp = (struct xsym *)malloc(sizeof(struct xsym))" (identifier) "sp" (=) "=" (cast_expression) "(struct xsym *)malloc(sizeof(struct xsym))" (() "(" (type_descriptor) "struct xsym *" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (call_expression) "malloc(sizeof(struct xsym))" (identifier) "malloc" (argument_list) "(sizeof(struct xsym))" (() "(" (sizeof_expression) "sizeof(struct xsym)" (sizeof) "sizeof" (() "(" (type_descriptor) "struct xsym" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" ()) ")" ()) ")" (;) ";" (if_statement) "if(sp == (struct xsym *)0) {\n perror("malloc");\n exit(1);\n }" (if) "if" (parenthesized_expression) "(sp == (struct xsym *)0)" (() "(" (binary_expression) "sp == (struct xsym *)0" (identifier) "sp" (==) "==" (cast_expression) "(struct xsym *)0" (() "(" (type_descriptor) "struct xsym *" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (compound_statement) "{\n perror("malloc");\n exit(1);\n }" ({) "{" (expression_statement) "perror("malloc");" (call_expression) "perror("malloc")" (identifier) "perror" (argument_list) "("malloc")" (() "(" (string_literal) ""malloc"" (") """ (string_content) "malloc" (") """ ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (expression_statement) "sp->lnum = sp->map = 0;" (assignment_expression) "sp->lnum = sp->map = 0" (field_expression) "sp->lnum" (identifier) "sp" (->) "->" (field_identifier) "lnum" (=) "=" (assignment_expression) "sp->map = 0" (field_expression) "sp->map" (identifier) "sp" (->) "->" (field_identifier) "map" (=) "=" (number_literal) "0" (;) ";" (if_statement) "if((cpcalls = index(cpmap,'\t')) != (char *)0)\n *cpcalls++ = '\0';" (if) "if" (parenthesized_expression) "((cpcalls = index(cpmap,'\t')) != (char *)0)" (() "(" (binary_expression) "(cpcalls = index(cpmap,'\t')) != (char *)0" (parenthesized_expression) "(cpcalls = index(cpmap,'\t'))" (() "(" (assignment_expression) "cpcalls = index(cpmap,'\t')" (identifier) "cpcalls" (=) "=" (call_expression) "index(cpmap,'\t')" (identifier) "index" (argument_list) "(cpmap,'\t')" (() "(" (identifier) "cpmap" (,) "," (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" ()) ")" (!=) "!=" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (expression_statement) "*cpcalls++ = '\0';" (assignment_expression) "*cpcalls++ = '\0'" (pointer_expression) "*cpcalls++" (*) "*" (update_expression) "cpcalls++" (identifier) "cpcalls" (++) "++" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (if_statement) "if((cpave = index(cpcalls,'\t')) != (char *)0)\n *cpave++ = '\0';" (if) "if" (parenthesized_expression) "((cpave = index(cpcalls,'\t')) != (char *)0)" (() "(" (binary_expression) "(cpave = index(cpcalls,'\t')) != (char *)0" (parenthesized_expression) "(cpave = index(cpcalls,'\t'))" (() "(" (assignment_expression) "cpave = index(cpcalls,'\t')" (identifier) "cpave" (=) "=" (call_expression) "index(cpcalls,'\t')" (identifier) "index" (argument_list) "(cpcalls,'\t')" (() "(" (identifier) "cpcalls" (,) "," (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" ()) ")" (!=) "!=" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (expression_statement) "*cpave++ = '\0';" (assignment_expression) "*cpave++ = '\0'" (pointer_expression) "*cpave++" (*) "*" (update_expression) "cpave++" (identifier) "cpave" (++) "++" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (if_statement) "if((cplnum = index(cpave,'\t')) != (char *)0)\n *cplnum++ = '\0';" (if) "if" (parenthesized_expression) "((cplnum = index(cpave,'\t')) != (char *)0)" (() "(" (binary_expression) "(cplnum = index(cpave,'\t')) != (char *)0" (parenthesized_expression) "(cplnum = index(cpave,'\t'))" (() "(" (assignment_expression) "cplnum = index(cpave,'\t')" (identifier) "cplnum" (=) "=" (call_expression) "index(cpave,'\t')" (identifier) "index" (argument_list) "(cpave,'\t')" (() "(" (identifier) "cpave" (,) "," (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" ()) ")" (!=) "!=" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (expression_statement) "*cplnum++ = '\0';" (assignment_expression) "*cplnum++ = '\0'" (pointer_expression) "*cplnum++" (*) "*" (update_expression) "cplnum++" (identifier) "cplnum" (++) "++" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (if_statement) "if((cpfnam = index(cplnum,'\t')) != (char *)0)\n *cpfnam++ = '\0';" (if) "if" (parenthesized_expression) "((cpfnam = index(cplnum,'\t')) != (char *)0)" (() "(" (binary_expression) "(cpfnam = index(cplnum,'\t')) != (char *)0" (parenthesized_expression) "(cpfnam = index(cplnum,'\t'))" (() "(" (assignment_expression) "cpfnam = index(cplnum,'\t')" (identifier) "cpfnam" (=) "=" (call_expression) "index(cplnum,'\t')" (identifier) "index" (argument_list) "(cplnum,'\t')" (() "(" (identifier) "cplnum" (,) "," (char_literal) "'\t'" (') "'" (escape_sequence) "\t" (') "'" ()) ")" ()) ")" (!=) "!=" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (expression_statement) "*cpfnam++ = '\0';" (assignment_expression) "*cpfnam++ = '\0'" (pointer_expression) "*cpfnam++" (*) "*" (update_expression) "cpfnam++" (identifier) "cpfnam" (++) "++" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (comment) "/* setup symbol */" (expression_statement) "sp->map = atoi(cpmap);" (assignment_expression) "sp->map = atoi(cpmap)" (field_expression) "sp->map" (identifier) "sp" (->) "->" (field_identifier) "map" (=) "=" (call_expression) "atoi(cpmap)" (identifier) "atoi" (argument_list) "(cpmap)" (() "(" (identifier) "cpmap" ()) ")" (;) ";" (if_statement) "if(cplnum == (char *)0)\n sp->lnum = -1;\n else\n sp->lnum = atoi(cplnum);" (if) "if" (parenthesized_expression) "(cplnum == (char *)0)" (() "(" (binary_expression) "cplnum == (char *)0" (identifier) "cplnum" (==) "==" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (expression_statement) "sp->lnum = -1;" (assignment_expression) "sp->lnum = -1" (field_expression) "sp->lnum" (identifier) "sp" (->) "->" (field_identifier) "lnum" (=) "=" (number_literal) "-1" (;) ";" (else_clause) "else\n sp->lnum = atoi(cplnum);" (else) "else" (expression_statement) "sp->lnum = atoi(cplnum);" (assignment_expression) "sp->lnum = atoi(cplnum)" (field_expression) "sp->lnum" (identifier) "sp" (->) "->" (field_identifier) "lnum" (=) "=" (call_expression) "atoi(cplnum)" (identifier) "atoi" (argument_list) "(cplnum)" (() "(" (identifier) "cplnum" ()) ")" (;) ";" (if_statement) "if(cpfnam != (char *)0) {\n char *x;\n if((x = index(cpfnam,'\n')) != (char *)0)\n *x = '\0';\n\n sp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n if(sp->dat == (char *)0) {\n perror("malloc");\n exit(1);\n }\n (void)strcpy(sp->dat,cpfnam);\n } else\n sp->dat = "unknown";" (if) "if" (parenthesized_expression) "(cpfnam != (char *)0)" (() "(" (binary_expression) "cpfnam != (char *)0" (identifier) "cpfnam" (!=) "!=" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (compound_statement) "{\n char *x;\n if((x = index(cpfnam,'\n')) != (char *)0)\n *x = '\0';\n\n sp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n if(sp->dat == (char *)0) {\n perror("malloc");\n exit(1);\n }\n (void)strcpy(sp->dat,cpfnam);\n }" ({) "{" (declaration) "char *x;" (primitive_type) "char" (pointer_declarator) "*x" (*) "*" (identifier) "x" (;) ";" (if_statement) "if((x = index(cpfnam,'\n')) != (char *)0)\n *x = '\0';" (if) "if" (parenthesized_expression) "((x = index(cpfnam,'\n')) != (char *)0)" (() "(" (binary_expression) "(x = index(cpfnam,'\n')) != (char *)0" (parenthesized_expression) "(x = index(cpfnam,'\n'))" (() "(" (assignment_expression) "x = index(cpfnam,'\n')" (identifier) "x" (=) "=" (call_expression) "index(cpfnam,'\n')" (identifier) "index" (argument_list) "(cpfnam,'\n')" (() "(" (identifier) "cpfnam" (,) "," (char_literal) "'\n'" (') "'" (escape_sequence) "\n" (') "'" ()) ")" ()) ")" (!=) "!=" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (expression_statement) "*x = '\0';" (assignment_expression) "*x = '\0'" (pointer_expression) "*x" (*) "*" (identifier) "x" (=) "=" (char_literal) "'\0'" (') "'" (escape_sequence) "\0" (') "'" (;) ";" (expression_statement) "sp->dat = malloc((unsigned)(strlen(cpfnam) + 1));" (assignment_expression) "sp->dat = malloc((unsigned)(strlen(cpfnam) + 1))" (field_expression) "sp->dat" (identifier) "sp" (->) "->" (field_identifier) "dat" (=) "=" (call_expression) "malloc((unsigned)(strlen(cpfnam) + 1))" (identifier) "malloc" (argument_list) "((unsigned)(strlen(cpfnam) + 1))" (() "(" (cast_expression) "(unsigned)(strlen(cpfnam) + 1)" (() "(" (type_descriptor) "unsigned" (sized_type_specifier) "unsigned" (unsigned) "unsigned" ()) ")" (parenthesized_expression) "(strlen(cpfnam) + 1)" (() "(" (binary_expression) "strlen(cpfnam) + 1" (call_expression) "strlen(cpfnam)" (identifier) "strlen" (argument_list) "(cpfnam)" (() "(" (identifier) "cpfnam" ()) ")" (+) "+" (number_literal) "1" ()) ")" ()) ")" (;) ";" (if_statement) "if(sp->dat == (char *)0) {\n perror("malloc");\n exit(1);\n }" (if) "if" (parenthesized_expression) "(sp->dat == (char *)0)" (() "(" (binary_expression) "sp->dat == (char *)0" (field_expression) "sp->dat" (identifier) "sp" (->) "->" (field_identifier) "dat" (==) "==" (cast_expression) "(char *)0" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (compound_statement) "{\n perror("malloc");\n exit(1);\n }" ({) "{" (expression_statement) "perror("malloc");" (call_expression) "perror("malloc")" (identifier) "perror" (argument_list) "("malloc")" (() "(" (string_literal) ""malloc"" (") """ (string_content) "malloc" (") """ ()) ")" (;) ";" (expression_statement) "exit(1);" (call_expression) "exit(1)" (identifier) "exit" (argument_list) "(1)" (() "(" (number_literal) "1" ()) ")" (;) ";" (}) "}" (expression_statement) "(void)strcpy(sp->dat,cpfnam);" (cast_expression) "(void)strcpy(sp->dat,cpfnam)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "strcpy(sp->dat,cpfnam)" (identifier) "strcpy" (argument_list) "(sp->dat,cpfnam)" (() "(" (field_expression) "sp->dat" (identifier) "sp" (->) "->" (field_identifier) "dat" (,) "," (identifier) "cpfnam" ()) ")" (;) ";" (}) "}" (else_clause) "else\n sp->dat = "unknown";" (else) "else" (expression_statement) "sp->dat = "unknown";" (assignment_expression) "sp->dat = "unknown"" (field_expression) "sp->dat" (identifier) "sp" (->) "->" (field_identifier) "dat" (=) "=" (string_literal) ""unknown"" (") """ (string_content) "unknown" (") """ (;) ";" (comment) "/* check to make sure it is not already in table */" (expression_statement) "zp = shash[sp->map % HASHSIZ];" (assignment_expression) "zp = shash[sp->map % HASHSIZ]" (identifier) "zp" (=) "=" (subscript_expression) "shash[sp->map % HASHSIZ]" (identifier) "shash" ([) "[" (binary_expression) "sp->map % HASHSIZ" (field_expression) "sp->map" (identifier) "sp" (->) "->" (field_identifier) "map" (%) "%" (identifier) "HASHSIZ" (]) "]" (;) ";" (while_statement) "while(zp != (struct xsym *)0) {\n if(zp->map == sp->map) {\n (void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");\n (void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);\n (void)free(sp);\n\n /* can't free dat - may not be malloced! */\n sp = (struct xsym *)0;\n break;\n }\n zp = zp->nxt;\n }" (while) "while" (parenthesized_expression) "(zp != (struct xsym *)0)" (() "(" (binary_expression) "zp != (struct xsym *)0" (identifier) "zp" (!=) "!=" (cast_expression) "(struct xsym *)0" (() "(" (type_descriptor) "struct xsym *" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (compound_statement) "{\n if(zp->map == sp->map) {\n (void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");\n (void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);\n (void)free(sp);\n\n /* can't free dat - may not be malloced! */\n sp = (struct xsym *)0;\n break;\n }\n zp = zp->nxt;\n }" ({) "{" (if_statement) "if(zp->map == sp->map) {\n (void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");\n (void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);\n (void)free(sp);\n\n /* can't free dat - may not be malloced! */\n sp = (struct xsym *)0;\n break;\n }" (if) "if" (parenthesized_expression) "(zp->map == sp->map)" (() "(" (binary_expression) "zp->map == sp->map" (field_expression) "zp->map" (identifier) "zp" (->) "->" (field_identifier) "map" (==) "==" (field_expression) "sp->map" (identifier) "sp" (->) "->" (field_identifier) "map" ()) ")" (compound_statement) "{\n (void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");\n (void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);\n (void)free(sp);\n\n /* can't free dat - may not be malloced! */\n sp = (struct xsym *)0;\n break;\n }" ({) "{" (expression_statement) "(void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored");" (cast_expression) "(void)fprintf(stderr,\n "mnemalyse: duplicate map entry ignored")" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "fprintf(stderr,\n "mnemalyse: duplicate map entry ignored")" (identifier) "fprintf" (argument_list) "(stderr,\n "mnemalyse: duplicate map entry ignored")" (() "(" (identifier) "stderr" (,) "," (string_literal) ""mnemalyse: duplicate map entry ignored"" (") """ (string_content) "mnemalyse: duplicate map entry ignored" (") """ ()) ")" (;) ";" (expression_statement) "(void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat);" (cast_expression) "(void)fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "fprintf(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat)" (identifier) "fprintf" (argument_list) "(stderr,\n " (point at both %s and %s)\n",sp->dat,zp->dat)" (() "(" (identifier) "stderr" (,) "," (string_literal) "" (point at both %s and %s)\n"" (") """ (string_content) " (point at both %s and %s)" (escape_sequence) "\n" (") """ (,) "," (field_expression) "sp->dat" (identifier) "sp" (->) "->" (field_identifier) "dat" (,) "," (field_expression) "zp->dat" (identifier) "zp" (->) "->" (field_identifier) "dat" ()) ")" (;) ";" (expression_statement) "(void)free(sp);" (cast_expression) "(void)free(sp)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "free(sp)" (identifier) "free" (argument_list) "(sp)" (() "(" (identifier) "sp" ()) ")" (;) ";" (comment) "/* can't free dat - may not be malloced! */" (expression_statement) "sp = (struct xsym *)0;" (assignment_expression) "sp = (struct xsym *)0" (identifier) "sp" (=) "=" (cast_expression) "(struct xsym *)0" (() "(" (type_descriptor) "struct xsym *" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" (;) ";" (break_statement) "break;" (break) "break" (;) ";" (}) "}" (expression_statement) "zp = zp->nxt;" (assignment_expression) "zp = zp->nxt" (identifier) "zp" (=) "=" (field_expression) "zp->nxt" (identifier) "zp" (->) "->" (field_identifier) "nxt" (;) ";" (}) "}" (comment) "/* shrug, link it in */" (if_statement) "if(sp != (struct xsym *)0) {\n sp->nxt = shash[sp->map % HASHSIZ];\n shash[sp->map % HASHSIZ] = sp;\n }" (if) "if" (parenthesized_expression) "(sp != (struct xsym *)0)" (() "(" (binary_expression) "sp != (struct xsym *)0" (identifier) "sp" (!=) "!=" (cast_expression) "(struct xsym *)0" (() "(" (type_descriptor) "struct xsym *" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (compound_statement) "{\n sp->nxt = shash[sp->map % HASHSIZ];\n shash[sp->map % HASHSIZ] = sp;\n }" ({) "{" (expression_statement) "sp->nxt = shash[sp->map % HASHSIZ];" (assignment_expression) "sp->nxt = shash[sp->map % HASHSIZ]" (field_expression) "sp->nxt" (identifier) "sp" (->) "->" (field_identifier) "nxt" (=) "=" (subscript_expression) "shash[sp->map % HASHSIZ]" (identifier) "shash" ([) "[" (binary_expression) "sp->map % HASHSIZ" (field_expression) "sp->map" (identifier) "sp" (->) "->" (field_identifier) "map" (%) "%" (identifier) "HASHSIZ" (]) "]" (;) ";" (expression_statement) "shash[sp->map % HASHSIZ] = sp;" (assignment_expression) "shash[sp->map % HASHSIZ] = sp" (subscript_expression) "shash[sp->map % HASHSIZ]" (identifier) "shash" ([) "[" (binary_expression) "sp->map % HASHSIZ" (field_expression) "sp->map" (identifier) "sp" (->) "->" (field_identifier) "map" (%) "%" (identifier) "HASHSIZ" (]) "]" (=) "=" (identifier) "sp" (;) ";" (}) "}" (}) "}" (expression_statement) "(void)fclose(lp);" (cast_expression) "(void)fclose(lp)" (() "(" (type_descriptor) "void" (primitive_type) "void" ()) ")" (call_expression) "fclose(lp)" (identifier) "fclose" (argument_list) "(lp)" (() "(" (identifier) "lp" ()) ")" (;) ";" (while_statement) "while(read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk)) {\n\n /* if the pointer was not deallocated, note it */\n if(p.dsk.siz != 0) {\n zp = shash[p.dsk.smap % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }\n zp = zp->nxt;\n }\n ptrbad++;\n ptrlos += p.dsk.siz;\n }\n ptrcnt++;\n }" (while) "while" (parenthesized_expression) "(read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk))" (() "(" (binary_expression) "read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk)" (call_expression) "read(fd,(char *)&(p.dsk),sizeof(p.dsk))" (identifier) "read" (argument_list) "(fd,(char *)&(p.dsk),sizeof(p.dsk))" (() "(" (identifier) "fd" (,) "," (cast_expression) "(char *)&(p.dsk)" (() "(" (type_descriptor) "char *" (primitive_type) "char" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (pointer_expression) "&(p.dsk)" (&) "&" (parenthesized_expression) "(p.dsk)" (() "(" (field_expression) "p.dsk" (identifier) "p" (.) "." (field_identifier) "dsk" ()) ")" (,) "," (sizeof_expression) "sizeof(p.dsk)" (sizeof) "sizeof" (parenthesized_expression) "(p.dsk)" (() "(" (field_expression) "p.dsk" (identifier) "p" (.) "." (field_identifier) "dsk" ()) ")" ()) ")" (==) "==" (sizeof_expression) "sizeof(p.dsk)" (sizeof) "sizeof" (parenthesized_expression) "(p.dsk)" (() "(" (field_expression) "p.dsk" (identifier) "p" (.) "." (field_identifier) "dsk" ()) ")" ()) ")" (compound_statement) "{\n\n /* if the pointer was not deallocated, note it */\n if(p.dsk.siz != 0) {\n zp = shash[p.dsk.smap % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }\n zp = zp->nxt;\n }\n ptrbad++;\n ptrlos += p.dsk.siz;\n }\n ptrcnt++;\n }" ({) "{" (comment) "/* if the pointer was not deallocated, note it */" (if_statement) "if(p.dsk.siz != 0) {\n zp = shash[p.dsk.smap % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }\n zp = zp->nxt;\n }\n ptrbad++;\n ptrlos += p.dsk.siz;\n }" (if) "if" (parenthesized_expression) "(p.dsk.siz != 0)" (() "(" (binary_expression) "p.dsk.siz != 0" (field_expression) "p.dsk.siz" (field_expression) "p.dsk" (identifier) "p" (.) "." (field_identifier) "dsk" (.) "." (field_identifier) "siz" (!=) "!=" (number_literal) "0" ()) ")" (compound_statement) "{\n zp = shash[p.dsk.smap % HASHSIZ];\n while(zp != (struct xsym *)0) {\n if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }\n zp = zp->nxt;\n }\n ptrbad++;\n ptrlos += p.dsk.siz;\n }" ({) "{" (expression_statement) "zp = shash[p.dsk.smap % HASHSIZ];" (assignment_expression) "zp = shash[p.dsk.smap % HASHSIZ]" (identifier) "zp" (=) "=" (subscript_expression) "shash[p.dsk.smap % HASHSIZ]" (identifier) "shash" ([) "[" (binary_expression) "p.dsk.smap % HASHSIZ" (field_expression) "p.dsk.smap" (field_expression) "p.dsk" (identifier) "p" (.) "." (field_identifier) "dsk" (.) "." (field_identifier) "smap" (%) "%" (identifier) "HASHSIZ" (]) "]" (;) ";" (while_statement) "while(zp != (struct xsym *)0) {\n if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }\n zp = zp->nxt;\n }" (while) "while" (parenthesized_expression) "(zp != (struct xsym *)0)" (() "(" (binary_expression) "zp != (struct xsym *)0" (identifier) "zp" (!=) "!=" (cast_expression) "(struct xsym *)0" (() "(" (type_descriptor) "struct xsym *" (struct_specifier) "struct xsym" (struct) "struct" (type_identifier) "xsym" (abstract_pointer_declarator) "*" (*) "*" ()) ")" (number_literal) "0" ()) ")" (compound_statement) "{\n if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }\n zp = zp->nxt;\n }" ({) "{" (if_statement) "if(zp->map == p.dsk.smap) {\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }" (if) "if" (parenthesized_expression) "(zp->map == p.dsk.smap)" (() "(" (binary_expression) "zp->map == p.dsk.smap" (field_expression) "zp->map" (identifier) "zp" (->) "->" (field_identifier) "map" (==) "==" (field_expression) "p.dsk.smap" (field_expression) "p.dsk" (identifier) "p" (.) "." (field_identifier) "dsk" (.) "." (field_identifier) "smap" ()) ")" (compound_statement) "{\n printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);\n }" ({) "{" (expression_statement) "printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum);" (call_expression) "printf("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum)" (identifier) "printf" (argument_list) "("%d bytes missing %s line:%d\n",\n p.dsk.siz,zp->dat,zp->lnum)" (() "(" (string_literal) ""%d bytes missing %s line:%d\n"" (") """ (string_content) "%d bytes missing %s line:%d" (escape_sequence) "\n" (") """ (,) "," (field_expression) "p.dsk.siz" (field_expression) "p.dsk" (identifier) "p" (.) "." (field_identifier) "dsk" (.) "." (field_identifier) "siz" (,) "," (field_expression) "zp->dat" (identifier) "zp" (->) "->" (field_identifier) "dat" (,) "," (field_expression) "zp->lnum" (identifier) "zp" (->) "->" (field_identifier) "lnum" ()) ")" (;) ";" (}) "}" (expression_statement) "zp = zp->nxt;" (assignment_expression) "zp = zp->nxt" (identifier) "zp" (=) "=" (field_expression) "zp->nxt" (identifier) "zp" (->) "->" (field_identifier) "nxt" (;) ";" (}) "}" (expression_statement) "ptrbad++;" (update_expression) "ptrbad++" (identifier) "ptrbad" (++) "++" (;) ";" (expression_statement) "ptrlos += p.dsk.siz;" (assignment_expression) "ptrlos += p.dsk.siz" (identifier) "ptrlos" (+=) "+=" (field_expression) "p.dsk.siz" (field_expression) "p.dsk" (identifier) "p" (.) "." (field_identifier) "dsk" (.) "." (field_identifier) "siz" (;) ";" (}) "}" (expression_statement) "ptrcnt++;" (update_expression) "ptrcnt++" (identifier) "ptrcnt" (++) "++" (;) ";" (}) "}" (expression_statement) "printf("%d pointers, %d lost totalling %d bytes\n",\n ptrcnt,ptrbad,ptrlos);" (call_expression) "printf("%d pointers, %d lost totalling %d bytes\n",\n ptrcnt,ptrbad,ptrlos)" (identifier) "printf" (argument_list) "("%d pointers, %d lost totalling %d bytes\n",\n ptrcnt,ptrbad,ptrlos)" (() "(" (string_literal) ""%d pointers, %d lost totalling %d bytes\n"" (") """ (string_content) "%d pointers, %d lost totalling %d bytes" (escape_sequence) "\n" (") """ (,) "," (identifier) "ptrcnt" (,) "," (identifier) "ptrbad" (,) "," (identifier) "ptrlos" ()) ")" (;) ";" (expression_statement) "exit(0);" (call_expression) "exit(0)" (identifier) "exit" (argument_list) "(0)" (() "(" (number_literal) "0" ()) ")" (;) ";" (}) "}"
1,311
0
{"language": "c", "success": true, "metadata": {"lines": 165, "avg_line_length": 29.67, "nodes": 828, "errors": 0, "source_hash": "569ca876c16239a59d8fad7da357b0ce6009fbc599a8071dce7ea073c00104ff", "categorized_nodes": 552}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include\t<stdio.h>\n", "parent": null, "children": [1, 2], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 31, "column": 0}}, {"id": 1, "type": "#include", "text": "#include", "parent": 0, "children": [], "start_point": {"row": 30, "column": 0}, "end_point": {"row": 30, "column": 8}}, {"id": 2, "type": "system_lib_string", "text": "<stdio.h>", "parent": 0, "children": [], "start_point": {"row": 30, "column": 9}, "end_point": {"row": 30, "column": 18}}, {"id": 3, "type": "preproc_include", "text": "#include\t<ctype.h>\n", "parent": null, "children": [4, 5], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 32, "column": 0}}, {"id": 4, "type": "#include", "text": "#include", "parent": 3, "children": [], "start_point": {"row": 31, "column": 0}, "end_point": {"row": 31, "column": 8}}, {"id": 5, "type": "system_lib_string", "text": "<ctype.h>", "parent": 3, "children": [], "start_point": {"row": 31, "column": 9}, "end_point": {"row": 31, "column": 18}}, {"id": 6, "type": "preproc_include", "text": "#include\t<sys/types.h>\n", "parent": null, "children": [7, 8], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 33, "column": 0}}, {"id": 7, "type": "#include", "text": "#include", "parent": 6, "children": [], "start_point": {"row": 32, "column": 0}, "end_point": {"row": 32, "column": 8}}, {"id": 8, "type": "system_lib_string", "text": "<sys/types.h>", "parent": 6, "children": [], "start_point": {"row": 32, "column": 9}, "end_point": {"row": 32, "column": 22}}, {"id": 9, "type": "preproc_include", "text": "#include\t<sys/file.h>\n", "parent": null, "children": [10, 11], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 34, "column": 0}}, {"id": 10, "type": "#include", "text": "#include", "parent": 9, "children": [], "start_point": {"row": 33, "column": 0}, "end_point": {"row": 33, "column": 8}}, {"id": 11, "type": "system_lib_string", "text": "<sys/file.h>", "parent": 9, "children": [], "start_point": {"row": 33, "column": 9}, "end_point": {"row": 33, "column": 21}}, {"id": 12, "type": "declaration", "text": "static\tchar\trcsid[] = \"/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp\";", "parent": null, "children": [13, 14], "start_point": {"row": 35, "column": 0}, "end_point": {"row": 35, "column": 102}}, {"id": 13, "type": "primitive_type", "text": "char", "parent": 12, "children": [], "start_point": {"row": 35, "column": 7}, "end_point": {"row": 35, "column": 11}}, {"id": 14, "type": "init_declarator", "text": "rcsid[] = \"/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp\"", "parent": 12, "children": [15, 17, 18], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 101}}, {"id": 15, "type": "array_declarator", "text": "rcsid[]", "parent": 14, "children": [16], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 19}}, {"id": 16, "type": "identifier", "text": "rcsid", "parent": 15, "children": [], "start_point": {"row": 35, "column": 12}, "end_point": {"row": 35, "column": 17}}, {"id": 17, "type": "=", "text": "=", "parent": 14, "children": [], "start_point": {"row": 35, "column": 20}, "end_point": {"row": 35, "column": 21}}, {"id": 18, "type": "string_literal", "text": "\"/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp\"", "parent": 14, "children": [], "start_point": {"row": 35, "column": 22}, "end_point": {"row": 35, "column": 101}}, {"id": 19, "type": "preproc_include", "text": "#include\t\"mnemconf.h\"\n", "parent": null, "children": [20, 21], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 38, "column": 0}}, {"id": 20, "type": "#include", "text": "#include", "parent": 19, "children": [], "start_point": {"row": 37, "column": 0}, "end_point": {"row": 37, "column": 8}}, {"id": 21, "type": "string_literal", "text": "\"mnemconf.h\"", "parent": 19, "children": [], "start_point": {"row": 37, "column": 9}, "end_point": {"row": 37, "column": 21}}, {"id": 22, "type": "declaration", "text": "extern\tchar\t*index();", "parent": null, "children": [23, 25, 26], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 21}}, {"id": 23, "type": "storage_class_specifier", "text": "extern", "parent": 22, "children": [24], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 24, "type": "extern", "text": "extern", "parent": 23, "children": [], "start_point": {"row": 39, "column": 0}, "end_point": {"row": 39, "column": 6}}, {"id": 25, "type": "primitive_type", "text": "char", "parent": 22, "children": [], "start_point": {"row": 39, "column": 7}, "end_point": {"row": 39, "column": 11}}, {"id": 26, "type": "pointer_declarator", "text": "*index()", "parent": 22, "children": [27, 28], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 20}}, {"id": 27, "type": "*", "text": "*", "parent": 26, "children": [], "start_point": {"row": 39, "column": 12}, "end_point": {"row": 39, "column": 13}}, {"id": 28, "type": "function_declarator", "text": "index()", "parent": 26, "children": [29, 30], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 20}}, {"id": 29, "type": "identifier", "text": "index", "parent": 28, "children": [], "start_point": {"row": 39, "column": 13}, "end_point": {"row": 39, "column": 18}}, {"id": 30, "type": "parameter_list", "text": "()", "parent": 28, "children": [], "start_point": {"row": 39, "column": 18}, "end_point": {"row": 39, "column": 20}}, {"id": 31, "type": "struct_specifier", "text": "struct\txsym\t{\n\tchar\t*dat;\n\tint\tlnum;\n\tint\tmap;\n\tstruct\txsym\t*nxt;\n}", "parent": null, "children": [32, 33], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 65, "column": 1}}, {"id": 32, "type": "struct", "text": "struct", "parent": 31, "children": [], "start_point": {"row": 60, "column": 0}, "end_point": {"row": 60, "column": 6}}, {"id": 33, "type": "type_identifier", "text": "xsym", "parent": 31, "children": [], "start_point": {"row": 60, "column": 7}, "end_point": {"row": 60, "column": 11}}, {"id": 34, "type": "field_declaration", "text": "char\t*dat;", "parent": 31, "children": [35, 36], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 11}}, {"id": 35, "type": "primitive_type", "text": "char", "parent": 34, "children": [], "start_point": {"row": 61, "column": 1}, "end_point": {"row": 61, "column": 5}}, {"id": 36, "type": "pointer_declarator", "text": "*dat", "parent": 34, "children": [37, 38], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 10}}, {"id": 37, "type": "*", "text": "*", "parent": 36, "children": [], "start_point": {"row": 61, "column": 6}, "end_point": {"row": 61, "column": 7}}, {"id": 38, "type": "field_identifier", "text": "dat", "parent": 36, "children": [], "start_point": {"row": 61, "column": 7}, "end_point": {"row": 61, "column": 10}}, {"id": 39, "type": "field_declaration", "text": "int\tlnum;", "parent": 31, "children": [40, 41], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 10}}, {"id": 40, "type": "primitive_type", "text": "int", "parent": 39, "children": [], "start_point": {"row": 62, "column": 1}, "end_point": {"row": 62, "column": 4}}, {"id": 41, "type": "field_identifier", "text": "lnum", "parent": 39, "children": [], "start_point": {"row": 62, "column": 5}, "end_point": {"row": 62, "column": 9}}, {"id": 42, "type": "field_declaration", "text": "int\tmap;", "parent": 31, "children": [43, 44], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 9}}, {"id": 43, "type": "primitive_type", "text": "int", "parent": 42, "children": [], "start_point": {"row": 63, "column": 1}, "end_point": {"row": 63, "column": 4}}, {"id": 44, "type": "field_identifier", "text": "map", "parent": 42, "children": [], "start_point": {"row": 63, "column": 5}, "end_point": {"row": 63, "column": 8}}, {"id": 45, "type": "field_declaration", "text": "struct\txsym\t*nxt;", "parent": 31, "children": [46, 49], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 18}}, {"id": 46, "type": "struct_specifier", "text": "struct\txsym", "parent": 45, "children": [47, 48], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 12}}, {"id": 47, "type": "struct", "text": "struct", "parent": 46, "children": [], "start_point": {"row": 64, "column": 1}, "end_point": {"row": 64, "column": 7}}, {"id": 48, "type": "type_identifier", "text": "xsym", "parent": 46, "children": [], "start_point": {"row": 64, "column": 8}, "end_point": {"row": 64, "column": 12}}, {"id": 49, "type": "pointer_declarator", "text": "*nxt", "parent": 45, "children": [50, 51], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 17}}, {"id": 50, "type": "*", "text": "*", "parent": 49, "children": [], "start_point": {"row": 64, "column": 13}, "end_point": {"row": 64, "column": 14}}, {"id": 51, "type": "field_identifier", "text": "nxt", "parent": 49, "children": [], "start_point": {"row": 64, "column": 14}, "end_point": {"row": 64, "column": 17}}, {"id": 52, "type": "call_expression", "text": "main()", "parent": null, "children": [53, 54], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 6}}, {"id": 53, "type": "identifier", "text": "main", "parent": 52, "children": [], "start_point": {"row": 69, "column": 0}, "end_point": {"row": 69, "column": 4}}, {"id": 54, "type": "argument_list", "text": "()", "parent": 52, "children": [], "start_point": {"row": 69, "column": 4}, "end_point": {"row": 69, "column": 6}}, {"id": 55, "type": "declaration", "text": "register struct xsym\t*sp;", "parent": null, "children": [56, 58, 61], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 26}}, {"id": 56, "type": "storage_class_specifier", "text": "register", "parent": 55, "children": [57], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 9}}, {"id": 57, "type": "register", "text": "register", "parent": 56, "children": [], "start_point": {"row": 71, "column": 1}, "end_point": {"row": 71, "column": 9}}, {"id": 58, "type": "struct_specifier", "text": "struct xsym", "parent": 55, "children": [59, 60], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 21}}, {"id": 59, "type": "struct", "text": "struct", "parent": 58, "children": [], "start_point": {"row": 71, "column": 10}, "end_point": {"row": 71, "column": 16}}, {"id": 60, "type": "type_identifier", "text": "xsym", "parent": 58, "children": [], "start_point": {"row": 71, "column": 17}, "end_point": {"row": 71, "column": 21}}, {"id": 61, "type": "pointer_declarator", "text": "*sp", "parent": 55, "children": [62, 63], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 25}}, {"id": 62, "type": "*", "text": "*", "parent": 61, "children": [], "start_point": {"row": 71, "column": 22}, "end_point": {"row": 71, "column": 23}}, {"id": 63, "type": "identifier", "text": "sp", "parent": 61, "children": [], "start_point": {"row": 71, "column": 23}, "end_point": {"row": 71, "column": 25}}, {"id": 64, "type": "declaration", "text": "register struct xsym\t*zp;", "parent": null, "children": [65, 67, 70], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 26}}, {"id": 65, "type": "storage_class_specifier", "text": "register", "parent": 64, "children": [66], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 9}}, {"id": 66, "type": "register", "text": "register", "parent": 65, "children": [], "start_point": {"row": 72, "column": 1}, "end_point": {"row": 72, "column": 9}}, {"id": 67, "type": "struct_specifier", "text": "struct xsym", "parent": 64, "children": [68, 69], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 21}}, {"id": 68, "type": "struct", "text": "struct", "parent": 67, "children": [], "start_point": {"row": 72, "column": 10}, "end_point": {"row": 72, "column": 16}}, {"id": 69, "type": "type_identifier", "text": "xsym", "parent": 67, "children": [], "start_point": {"row": 72, "column": 17}, "end_point": {"row": 72, "column": 21}}, {"id": 70, "type": "pointer_declarator", "text": "*zp", "parent": 64, "children": [71, 72], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 25}}, {"id": 71, "type": "*", "text": "*", "parent": 70, "children": [], "start_point": {"row": 72, "column": 22}, "end_point": {"row": 72, "column": 23}}, {"id": 72, "type": "identifier", "text": "zp", "parent": 70, "children": [], "start_point": {"row": 72, "column": 23}, "end_point": {"row": 72, "column": 25}}, {"id": 73, "type": "declaration", "text": "struct\tptr\tp;", "parent": null, "children": [74, 77], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 14}}, {"id": 74, "type": "struct_specifier", "text": "struct\tptr", "parent": 73, "children": [75, 76], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 11}}, {"id": 75, "type": "struct", "text": "struct", "parent": 74, "children": [], "start_point": {"row": 73, "column": 1}, "end_point": {"row": 73, "column": 7}}, {"id": 76, "type": "type_identifier", "text": "ptr", "parent": 74, "children": [], "start_point": {"row": 73, "column": 8}, "end_point": {"row": 73, "column": 11}}, {"id": 77, "type": "identifier", "text": "p", "parent": 73, "children": [], "start_point": {"row": 73, "column": 12}, "end_point": {"row": 73, "column": 13}}, {"id": 78, "type": "declaration", "text": "struct\txsym\t*shash[HASHSIZ];", "parent": null, "children": [79, 82], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 29}}, {"id": 79, "type": "struct_specifier", "text": "struct\txsym", "parent": 78, "children": [80, 81], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 12}}, {"id": 80, "type": "struct", "text": "struct", "parent": 79, "children": [], "start_point": {"row": 74, "column": 1}, "end_point": {"row": 74, "column": 7}}, {"id": 81, "type": "type_identifier", "text": "xsym", "parent": 79, "children": [], "start_point": {"row": 74, "column": 8}, "end_point": {"row": 74, "column": 12}}, {"id": 82, "type": "pointer_declarator", "text": "*shash[HASHSIZ]", "parent": 78, "children": [83, 84], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 28}}, {"id": 83, "type": "*", "text": "*", "parent": 82, "children": [], "start_point": {"row": 74, "column": 13}, "end_point": {"row": 74, "column": 14}}, {"id": 84, "type": "array_declarator", "text": "shash[HASHSIZ]", "parent": 82, "children": [85, 86], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 28}}, {"id": 85, "type": "identifier", "text": "shash", "parent": 84, "children": [], "start_point": {"row": 74, "column": 14}, "end_point": {"row": 74, "column": 19}}, {"id": 86, "type": "identifier", "text": "HASHSIZ", "parent": 84, "children": [], "start_point": {"row": 74, "column": 20}, "end_point": {"row": 74, "column": 27}}, {"id": 87, "type": "declaration", "text": "char\t\tinbuf[BUFSIZ];", "parent": null, "children": [88, 89], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 21}}, {"id": 88, "type": "primitive_type", "text": "char", "parent": 87, "children": [], "start_point": {"row": 75, "column": 1}, "end_point": {"row": 75, "column": 5}}, {"id": 89, "type": "array_declarator", "text": "inbuf[BUFSIZ]", "parent": 87, "children": [90, 91], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 20}}, {"id": 90, "type": "identifier", "text": "inbuf", "parent": 89, "children": [], "start_point": {"row": 75, "column": 7}, "end_point": {"row": 75, "column": 12}}, {"id": 91, "type": "identifier", "text": "BUFSIZ", "parent": 89, "children": [], "start_point": {"row": 75, "column": 13}, "end_point": {"row": 75, "column": 19}}, {"id": 92, "type": "declaration", "text": "FILE\t\t*lp;", "parent": null, "children": [93, 94], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 11}}, {"id": 93, "type": "type_identifier", "text": "FILE", "parent": 92, "children": [], "start_point": {"row": 76, "column": 1}, "end_point": {"row": 76, "column": 5}}, {"id": 94, "type": "pointer_declarator", "text": "*lp", "parent": 92, "children": [95, 96], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 10}}, {"id": 95, "type": "*", "text": "*", "parent": 94, "children": [], "start_point": {"row": 76, "column": 7}, "end_point": {"row": 76, "column": 8}}, {"id": 96, "type": "identifier", "text": "lp", "parent": 94, "children": [], "start_point": {"row": 76, "column": 8}, "end_point": {"row": 76, "column": 10}}, {"id": 97, "type": "declaration", "text": "int\t\tfd;", "parent": null, "children": [98, 99], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 9}}, {"id": 98, "type": "primitive_type", "text": "int", "parent": 97, "children": [], "start_point": {"row": 77, "column": 1}, "end_point": {"row": 77, "column": 4}}, {"id": 99, "type": "identifier", "text": "fd", "parent": 97, "children": [], "start_point": {"row": 77, "column": 6}, "end_point": {"row": 77, "column": 8}}, {"id": 100, "type": "declaration", "text": "int\t\tptrcnt = 0;", "parent": null, "children": [101, 102], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 17}}, {"id": 101, "type": "primitive_type", "text": "int", "parent": 100, "children": [], "start_point": {"row": 80, "column": 1}, "end_point": {"row": 80, "column": 4}}, {"id": 102, "type": "init_declarator", "text": "ptrcnt = 0", "parent": 100, "children": [103, 104, 105], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 16}}, {"id": 103, "type": "identifier", "text": "ptrcnt", "parent": 102, "children": [], "start_point": {"row": 80, "column": 6}, "end_point": {"row": 80, "column": 12}}, {"id": 104, "type": "=", "text": "=", "parent": 102, "children": [], "start_point": {"row": 80, "column": 13}, "end_point": {"row": 80, "column": 14}}, {"id": 105, "type": "number_literal", "text": "0", "parent": 102, "children": [], "start_point": {"row": 80, "column": 15}, "end_point": {"row": 80, "column": 16}}, {"id": 106, "type": "declaration", "text": "int\t\tptrbad = 0;", "parent": null, "children": [107, 108], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 17}}, {"id": 107, "type": "primitive_type", "text": "int", "parent": 106, "children": [], "start_point": {"row": 81, "column": 1}, "end_point": {"row": 81, "column": 4}}, {"id": 108, "type": "init_declarator", "text": "ptrbad = 0", "parent": 106, "children": [109, 110, 111], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 16}}, {"id": 109, "type": "identifier", "text": "ptrbad", "parent": 108, "children": [], "start_point": {"row": 81, "column": 6}, "end_point": {"row": 81, "column": 12}}, {"id": 110, "type": "=", "text": "=", "parent": 108, "children": [], "start_point": {"row": 81, "column": 13}, "end_point": {"row": 81, "column": 14}}, {"id": 111, "type": "number_literal", "text": "0", "parent": 108, "children": [], "start_point": {"row": 81, "column": 15}, "end_point": {"row": 81, "column": 16}}, {"id": 112, "type": "declaration", "text": "int\t\tptrlos = 0;", "parent": null, "children": [113, 114], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 17}}, {"id": 113, "type": "primitive_type", "text": "int", "parent": 112, "children": [], "start_point": {"row": 82, "column": 1}, "end_point": {"row": 82, "column": 4}}, {"id": 114, "type": "init_declarator", "text": "ptrlos = 0", "parent": 112, "children": [115, 116, 117], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 16}}, {"id": 115, "type": "identifier", "text": "ptrlos", "parent": 114, "children": [], "start_point": {"row": 82, "column": 6}, "end_point": {"row": 82, "column": 12}}, {"id": 116, "type": "=", "text": "=", "parent": 114, "children": [], "start_point": {"row": 82, "column": 13}, "end_point": {"row": 82, "column": 14}}, {"id": 117, "type": "number_literal", "text": "0", "parent": 114, "children": [], "start_point": {"row": 82, "column": 15}, "end_point": {"row": 82, "column": 16}}, {"id": 118, "type": "declaration", "text": "char\t\t*cpmap;", "parent": null, "children": [119, 120], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 14}}, {"id": 119, "type": "primitive_type", "text": "char", "parent": 118, "children": [], "start_point": {"row": 85, "column": 1}, "end_point": {"row": 85, "column": 5}}, {"id": 120, "type": "pointer_declarator", "text": "*cpmap", "parent": 118, "children": [121, 122], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 13}}, {"id": 121, "type": "*", "text": "*", "parent": 120, "children": [], "start_point": {"row": 85, "column": 7}, "end_point": {"row": 85, "column": 8}}, {"id": 122, "type": "identifier", "text": "cpmap", "parent": 120, "children": [], "start_point": {"row": 85, "column": 8}, "end_point": {"row": 85, "column": 13}}, {"id": 123, "type": "declaration", "text": "char\t\t*cpcalls;", "parent": null, "children": [124, 125], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 16}}, {"id": 124, "type": "primitive_type", "text": "char", "parent": 123, "children": [], "start_point": {"row": 86, "column": 1}, "end_point": {"row": 86, "column": 5}}, {"id": 125, "type": "pointer_declarator", "text": "*cpcalls", "parent": 123, "children": [126, 127], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 15}}, {"id": 126, "type": "*", "text": "*", "parent": 125, "children": [], "start_point": {"row": 86, "column": 7}, "end_point": {"row": 86, "column": 8}}, {"id": 127, "type": "identifier", "text": "cpcalls", "parent": 125, "children": [], "start_point": {"row": 86, "column": 8}, "end_point": {"row": 86, "column": 15}}, {"id": 128, "type": "declaration", "text": "char\t\t*cpave;", "parent": null, "children": [129, 130], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 14}}, {"id": 129, "type": "primitive_type", "text": "char", "parent": 128, "children": [], "start_point": {"row": 87, "column": 1}, "end_point": {"row": 87, "column": 5}}, {"id": 130, "type": "pointer_declarator", "text": "*cpave", "parent": 128, "children": [131, 132], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 13}}, {"id": 131, "type": "*", "text": "*", "parent": 130, "children": [], "start_point": {"row": 87, "column": 7}, "end_point": {"row": 87, "column": 8}}, {"id": 132, "type": "identifier", "text": "cpave", "parent": 130, "children": [], "start_point": {"row": 87, "column": 8}, "end_point": {"row": 87, "column": 13}}, {"id": 133, "type": "declaration", "text": "char\t\t*cplnum;", "parent": null, "children": [134, 135], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 15}}, {"id": 134, "type": "primitive_type", "text": "char", "parent": 133, "children": [], "start_point": {"row": 88, "column": 1}, "end_point": {"row": 88, "column": 5}}, {"id": 135, "type": "pointer_declarator", "text": "*cplnum", "parent": 133, "children": [136, 137], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 14}}, {"id": 136, "type": "*", "text": "*", "parent": 135, "children": [], "start_point": {"row": 88, "column": 7}, "end_point": {"row": 88, "column": 8}}, {"id": 137, "type": "identifier", "text": "cplnum", "parent": 135, "children": [], "start_point": {"row": 88, "column": 8}, "end_point": {"row": 88, "column": 14}}, {"id": 138, "type": "declaration", "text": "char\t\t*cpfnam;", "parent": null, "children": [139, 140], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 15}}, {"id": 139, "type": "primitive_type", "text": "char", "parent": 138, "children": [], "start_point": {"row": 89, "column": 1}, "end_point": {"row": 89, "column": 5}}, {"id": 140, "type": "pointer_declarator", "text": "*cpfnam", "parent": 138, "children": [141, 142], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 14}}, {"id": 141, "type": "*", "text": "*", "parent": 140, "children": [], "start_point": {"row": 89, "column": 7}, "end_point": {"row": 89, "column": 8}}, {"id": 142, "type": "identifier", "text": "cpfnam", "parent": 140, "children": [], "start_point": {"row": 89, "column": 8}, "end_point": {"row": 89, "column": 14}}, {"id": 143, "type": "for_statement", "text": "for(fd = 0; fd < HASHSIZ; fd++)\n\t\tshash[fd] = (struct xsym *)0;", "parent": null, "children": [144, 148, 152], "start_point": {"row": 91, "column": 1}, "end_point": {"row": 92, "column": 31}}, {"id": 144, "type": "assignment_expression", "text": "fd = 0", "parent": 143, "children": [145, 146, 147], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 11}}, {"id": 145, "type": "identifier", "text": "fd", "parent": 144, "children": [], "start_point": {"row": 91, "column": 5}, "end_point": {"row": 91, "column": 7}}, {"id": 146, "type": "=", "text": "=", "parent": 144, "children": [], "start_point": {"row": 91, "column": 8}, "end_point": {"row": 91, "column": 9}}, {"id": 147, "type": "number_literal", "text": "0", "parent": 144, "children": [], "start_point": {"row": 91, "column": 10}, "end_point": {"row": 91, "column": 11}}, {"id": 148, "type": "binary_expression", "text": "fd < HASHSIZ", "parent": 143, "children": [149, 150, 151], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 25}}, {"id": 149, "type": "identifier", "text": "fd", "parent": 148, "children": [], "start_point": {"row": 91, "column": 13}, "end_point": {"row": 91, "column": 15}}, {"id": 150, "type": "<", "text": "<", "parent": 148, "children": [], "start_point": {"row": 91, "column": 16}, "end_point": {"row": 91, "column": 17}}, {"id": 151, "type": "identifier", "text": "HASHSIZ", "parent": 148, "children": [], "start_point": {"row": 91, "column": 18}, "end_point": {"row": 91, "column": 25}}, {"id": 152, "type": "update_expression", "text": "fd++", "parent": 143, "children": [153, 154], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 31}}, {"id": 153, "type": "identifier", "text": "fd", "parent": 152, "children": [], "start_point": {"row": 91, "column": 27}, "end_point": {"row": 91, "column": 29}}, {"id": 154, "type": "++", "text": "++", "parent": 152, "children": [], "start_point": {"row": 91, "column": 29}, "end_point": {"row": 91, "column": 31}}, {"id": 155, "type": "assignment_expression", "text": "shash[fd] = (struct xsym *)0", "parent": 143, "children": [156, 159, 160], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 30}}, {"id": 156, "type": "subscript_expression", "text": "shash[fd]", "parent": 155, "children": [157, 158], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 11}}, {"id": 157, "type": "identifier", "text": "shash", "parent": 156, "children": [], "start_point": {"row": 92, "column": 2}, "end_point": {"row": 92, "column": 7}}, {"id": 158, "type": "identifier", "text": "fd", "parent": 156, "children": [], "start_point": {"row": 92, "column": 8}, "end_point": {"row": 92, "column": 10}}, {"id": 159, "type": "=", "text": "=", "parent": 155, "children": [], "start_point": {"row": 92, "column": 12}, "end_point": {"row": 92, "column": 13}}, {"id": 160, "type": "cast_expression", "text": "(struct xsym *)0", "parent": 155, "children": [161, 167], "start_point": {"row": 92, "column": 14}, "end_point": {"row": 92, "column": 30}}, {"id": 161, "type": "type_descriptor", "text": "struct xsym *", "parent": 160, "children": [162, 165], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 28}}, {"id": 162, "type": "struct_specifier", "text": "struct xsym", "parent": 161, "children": [163, 164], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 26}}, {"id": 163, "type": "struct", "text": "struct", "parent": 162, "children": [], "start_point": {"row": 92, "column": 15}, "end_point": {"row": 92, "column": 21}}, {"id": 164, "type": "type_identifier", "text": "xsym", "parent": 162, "children": [], "start_point": {"row": 92, "column": 22}, "end_point": {"row": 92, "column": 26}}, {"id": 165, "type": "abstract_pointer_declarator", "text": "*", "parent": 161, "children": [166], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 28}}, {"id": 166, "type": "*", "text": "*", "parent": 165, "children": [], "start_point": {"row": 92, "column": 27}, "end_point": {"row": 92, "column": 28}}, {"id": 167, "type": "number_literal", "text": "0", "parent": 160, "children": [], "start_point": {"row": 92, "column": 29}, "end_point": {"row": 92, "column": 30}}, {"id": 168, "type": "if_statement", "text": "if((lp = fopen(LINESFILE,\"r\")) == (FILE *)0) {\n\t\tperror(LINESFILE);\n\t\texit(1);\n\t}", "parent": null, "children": [169], "start_point": {"row": 94, "column": 1}, "end_point": {"row": 97, "column": 2}}, {"id": 169, "type": "parenthesized_expression", "text": "((lp = fopen(LINESFILE,\"r\")) == (FILE *)0)", "parent": 168, "children": [170], "start_point": {"row": 94, "column": 3}, "end_point": {"row": 94, "column": 45}}, {"id": 170, "type": "binary_expression", "text": "(lp = fopen(LINESFILE,\"r\")) == (FILE *)0", "parent": 169, "children": [171, 180, 181], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 44}}, {"id": 171, "type": "parenthesized_expression", "text": "(lp = fopen(LINESFILE,\"r\"))", "parent": 170, "children": [172], "start_point": {"row": 94, "column": 4}, "end_point": {"row": 94, "column": 31}}, {"id": 172, "type": "assignment_expression", "text": "lp = fopen(LINESFILE,\"r\")", "parent": 171, "children": [173, 174, 175], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 30}}, {"id": 173, "type": "identifier", "text": "lp", "parent": 172, "children": [], "start_point": {"row": 94, "column": 5}, "end_point": {"row": 94, "column": 7}}, {"id": 174, "type": "=", "text": "=", "parent": 172, "children": [], "start_point": {"row": 94, "column": 8}, "end_point": {"row": 94, "column": 9}}, {"id": 175, "type": "call_expression", "text": "fopen(LINESFILE,\"r\")", "parent": 172, "children": [176, 177], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 30}}, {"id": 176, "type": "identifier", "text": "fopen", "parent": 175, "children": [], "start_point": {"row": 94, "column": 10}, "end_point": {"row": 94, "column": 15}}, {"id": 177, "type": "argument_list", "text": "(LINESFILE,\"r\")", "parent": 175, "children": [178, 179], "start_point": {"row": 94, "column": 15}, "end_point": {"row": 94, "column": 30}}, {"id": 178, "type": "identifier", "text": "LINESFILE", "parent": 177, "children": [], "start_point": {"row": 94, "column": 16}, "end_point": {"row": 94, "column": 25}}, {"id": 179, "type": "string_literal", "text": "\"r\"", "parent": 177, "children": [], "start_point": {"row": 94, "column": 26}, "end_point": {"row": 94, "column": 29}}, {"id": 180, "type": "==", "text": "==", "parent": 170, "children": [], "start_point": {"row": 94, "column": 32}, "end_point": {"row": 94, "column": 34}}, {"id": 181, "type": "cast_expression", "text": "(FILE *)0", "parent": 170, "children": [182, 186], "start_point": {"row": 94, "column": 35}, "end_point": {"row": 94, "column": 44}}, {"id": 182, "type": "type_descriptor", "text": "FILE *", "parent": 181, "children": [183, 184], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 42}}, {"id": 183, "type": "type_identifier", "text": "FILE", "parent": 182, "children": [], "start_point": {"row": 94, "column": 36}, "end_point": {"row": 94, "column": 40}}, {"id": 184, "type": "abstract_pointer_declarator", "text": "*", "parent": 182, "children": [185], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 42}}, {"id": 185, "type": "*", "text": "*", "parent": 184, "children": [], "start_point": {"row": 94, "column": 41}, "end_point": {"row": 94, "column": 42}}, {"id": 186, "type": "number_literal", "text": "0", "parent": 181, "children": [], "start_point": {"row": 94, "column": 43}, "end_point": {"row": 94, "column": 44}}, {"id": 187, "type": "call_expression", "text": "perror(LINESFILE)", "parent": 168, "children": [188, 189], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 19}}, {"id": 188, "type": "identifier", "text": "perror", "parent": 187, "children": [], "start_point": {"row": 95, "column": 2}, "end_point": {"row": 95, "column": 8}}, {"id": 189, "type": "argument_list", "text": "(LINESFILE)", "parent": 187, "children": [190], "start_point": {"row": 95, "column": 8}, "end_point": {"row": 95, "column": 19}}, {"id": 190, "type": "identifier", "text": "LINESFILE", "parent": 189, "children": [], "start_point": {"row": 95, "column": 9}, "end_point": {"row": 95, "column": 18}}, {"id": 191, "type": "call_expression", "text": "exit(1)", "parent": 168, "children": [192, 193], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 9}}, {"id": 192, "type": "identifier", "text": "exit", "parent": 191, "children": [], "start_point": {"row": 96, "column": 2}, "end_point": {"row": 96, "column": 6}}, {"id": 193, "type": "argument_list", "text": "(1)", "parent": 191, "children": [194], "start_point": {"row": 96, "column": 6}, "end_point": {"row": 96, "column": 9}}, {"id": 194, "type": "number_literal", "text": "1", "parent": 193, "children": [], "start_point": {"row": 96, "column": 7}, "end_point": {"row": 96, "column": 8}}, {"id": 195, "type": "if_statement", "text": "if((fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0) {\n\t\tperror(PTRFILE);\n\t\texit(1);\n\t}", "parent": null, "children": [196], "start_point": {"row": 99, "column": 1}, "end_point": {"row": 102, "column": 2}}, {"id": 196, "type": "parenthesized_expression", "text": "((fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0)", "parent": 195, "children": [197], "start_point": {"row": 99, "column": 3}, "end_point": {"row": 99, "column": 45}}, {"id": 197, "type": "binary_expression", "text": "(fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0", "parent": 196, "children": [198, 209, 210], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 44}}, {"id": 198, "type": "parenthesized_expression", "text": "(fd = open(PTRFILE,O_RDONLY|O_RDWR))", "parent": 197, "children": [199], "start_point": {"row": 99, "column": 4}, "end_point": {"row": 99, "column": 40}}, {"id": 199, "type": "assignment_expression", "text": "fd = open(PTRFILE,O_RDONLY|O_RDWR)", "parent": 198, "children": [200, 201, 202], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 39}}, {"id": 200, "type": "identifier", "text": "fd", "parent": 199, "children": [], "start_point": {"row": 99, "column": 5}, "end_point": {"row": 99, "column": 7}}, {"id": 201, "type": "=", "text": "=", "parent": 199, "children": [], "start_point": {"row": 99, "column": 8}, "end_point": {"row": 99, "column": 9}}, {"id": 202, "type": "call_expression", "text": "open(PTRFILE,O_RDONLY|O_RDWR)", "parent": 199, "children": [203, 204], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 39}}, {"id": 203, "type": "identifier", "text": "open", "parent": 202, "children": [], "start_point": {"row": 99, "column": 10}, "end_point": {"row": 99, "column": 14}}, {"id": 204, "type": "argument_list", "text": "(PTRFILE,O_RDONLY|O_RDWR)", "parent": 202, "children": [205, 206], "start_point": {"row": 99, "column": 14}, "end_point": {"row": 99, "column": 39}}, {"id": 205, "type": "identifier", "text": "PTRFILE", "parent": 204, "children": [], "start_point": {"row": 99, "column": 15}, "end_point": {"row": 99, "column": 22}}, {"id": 206, "type": "binary_expression", "text": "O_RDONLY|O_RDWR", "parent": 204, "children": [207, 208], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 38}}, {"id": 207, "type": "identifier", "text": "O_RDONLY", "parent": 206, "children": [], "start_point": {"row": 99, "column": 23}, "end_point": {"row": 99, "column": 31}}, {"id": 208, "type": "identifier", "text": "O_RDWR", "parent": 206, "children": [], "start_point": {"row": 99, "column": 32}, "end_point": {"row": 99, "column": 38}}, {"id": 209, "type": "<", "text": "<", "parent": 197, "children": [], "start_point": {"row": 99, "column": 41}, "end_point": {"row": 99, "column": 42}}, {"id": 210, "type": "number_literal", "text": "0", "parent": 197, "children": [], "start_point": {"row": 99, "column": 43}, "end_point": {"row": 99, "column": 44}}, {"id": 211, "type": "call_expression", "text": "perror(PTRFILE)", "parent": 195, "children": [212, 213], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 17}}, {"id": 212, "type": "identifier", "text": "perror", "parent": 211, "children": [], "start_point": {"row": 100, "column": 2}, "end_point": {"row": 100, "column": 8}}, {"id": 213, "type": "argument_list", "text": "(PTRFILE)", "parent": 211, "children": [214], "start_point": {"row": 100, "column": 8}, "end_point": {"row": 100, "column": 17}}, {"id": 214, "type": "identifier", "text": "PTRFILE", "parent": 213, "children": [], "start_point": {"row": 100, "column": 9}, "end_point": {"row": 100, "column": 16}}, {"id": 215, "type": "call_expression", "text": "exit(1)", "parent": 195, "children": [216, 217], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 9}}, {"id": 216, "type": "identifier", "text": "exit", "parent": 215, "children": [], "start_point": {"row": 101, "column": 2}, "end_point": {"row": 101, "column": 6}}, {"id": 217, "type": "argument_list", "text": "(1)", "parent": 215, "children": [218], "start_point": {"row": 101, "column": 6}, "end_point": {"row": 101, "column": 9}}, {"id": 218, "type": "number_literal", "text": "1", "parent": 217, "children": [], "start_point": {"row": 101, "column": 7}, "end_point": {"row": 101, "column": 8}}, {"id": 219, "type": "while_statement", "text": "while((cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0) {\n\t\tif(inbuf[0] == '#')\n\t\t\tcontinue;\n\n\t\tsp = (struct xsym *)malloc(sizeof(struct xsym));\n\t\tif(sp == (struct xsym *)0) {\n\t\t\tperror(\"malloc\");\n\t\t\texit(1);\n\t\t}\n\t\tsp->lnum = sp->map = 0;\n\n\t\tif((cpcalls = index(cpmap,'\\t')) != (char *)0)\n\t\t\t*cpcalls++ = '\\0';\n\n\t\tif((cpave = index(cpcalls,'\\t')) != (char *)0)\n\t\t\t*cpave++ = '\\0';\n\n\t\tif((cplnum = index(cpave,'\\t')) != (char *)0)\n\t\t\t*cplnum++ = '\\0';\n\n\t\tif((cpfnam = index(cplnum,'\\t')) != (char *)0)\n\t\t\t*cpfnam++ = '\\0';\n\n\t\t/* setup symbol */\n\t\tsp->map = atoi(cpmap);\n\n\t\tif(cplnum == (char *)0)\n\t\t\tsp->lnum = -1;\n\t\telse\n\t\t\tsp->lnum = atoi(cplnum);\n\n\t\tif(cpfnam != (char *)0) {\n\t\t\tchar\t*x;\n\t\t\tif((x = index(cpfnam,'\\n')) != (char *)0)\n\t\t\t\t*x = '\\0';\n\n\t\t\tsp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n\t\t\tif(sp->dat == (char *)0) {\n\t\t\t\tperror(\"malloc\");\n\t\t\t\texit(1);\n\t\t\t}\n\t\t\t(void)strcpy(sp->dat,cpfnam);\n\t\t} else\n\t\t\tsp->dat = \"unknown\";\n\n\t\t/* check to make sure it is not already in table */\n\t\tzp = shash[sp->map % HASHSIZ];\n\t\twhile(zp != (struct xsym *)0) {\n\t\t\tif(zp->map == sp->map) {\n\t\t\t\t(void)fprintf(stderr,\n\t\t\t\t\"mnemalyse: duplicate map entry ignored\");\n\t\t\t\t(void)fprintf(stderr,\n\t\t\t\t\" (point at both %s and %s)\\n\",sp->dat,zp->dat);\n\t\t\t\t(void)free(sp);\n\n\t\t\t\t/* can't free dat - may not be malloced! */\n\t\t\t\tsp = (struct xsym *)0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tzp = zp->nxt;\n\t\t}\n\n\t\t/* shrug, link it in */\n\t\tif(sp != (struct xsym *)0) {\n\t\t\tsp->nxt = shash[sp->map % HASHSIZ];\n\t\t\tshash[sp->map % HASHSIZ] = sp;\n\t\t}\n\t}", "parent": null, "children": [220], "start_point": {"row": 105, "column": 1}, "end_point": {"row": 172, "column": 2}}, {"id": 220, "type": "parenthesized_expression", "text": "((cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0)", "parent": 219, "children": [221], "start_point": {"row": 105, "column": 6}, "end_point": {"row": 105, "column": 60}}, {"id": 221, "type": "binary_expression", "text": "(cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0", "parent": 220, "children": [222, 234, 235], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 59}}, {"id": 222, "type": "parenthesized_expression", "text": "(cpmap = fgets(inbuf,sizeof(inbuf),lp))", "parent": 221, "children": [223], "start_point": {"row": 105, "column": 7}, "end_point": {"row": 105, "column": 46}}, {"id": 223, "type": "assignment_expression", "text": "cpmap = fgets(inbuf,sizeof(inbuf),lp)", "parent": 222, "children": [224, 225, 226], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 45}}, {"id": 224, "type": "identifier", "text": "cpmap", "parent": 223, "children": [], "start_point": {"row": 105, "column": 8}, "end_point": {"row": 105, "column": 13}}, {"id": 225, "type": "=", "text": "=", "parent": 223, "children": [], "start_point": {"row": 105, "column": 14}, "end_point": {"row": 105, "column": 15}}, {"id": 226, "type": "call_expression", "text": "fgets(inbuf,sizeof(inbuf),lp)", "parent": 223, "children": [227, 228], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 45}}, {"id": 227, "type": "identifier", "text": "fgets", "parent": 226, "children": [], "start_point": {"row": 105, "column": 16}, "end_point": {"row": 105, "column": 21}}, {"id": 228, "type": "argument_list", "text": "(inbuf,sizeof(inbuf),lp)", "parent": 226, "children": [229, 230, 233], "start_point": {"row": 105, "column": 21}, "end_point": {"row": 105, "column": 45}}, {"id": 229, "type": "identifier", "text": "inbuf", "parent": 228, "children": [], "start_point": {"row": 105, "column": 22}, "end_point": {"row": 105, "column": 27}}, {"id": 230, "type": "sizeof_expression", "text": "sizeof(inbuf)", "parent": 228, "children": [231], "start_point": {"row": 105, "column": 28}, "end_point": {"row": 105, "column": 41}}, {"id": 231, "type": "parenthesized_expression", "text": "(inbuf)", "parent": 230, "children": [232], "start_point": {"row": 105, "column": 34}, "end_point": {"row": 105, "column": 41}}, {"id": 232, "type": "identifier", "text": "inbuf", "parent": 231, "children": [], "start_point": {"row": 105, "column": 35}, "end_point": {"row": 105, "column": 40}}, {"id": 233, "type": "identifier", "text": "lp", "parent": 228, "children": [], "start_point": {"row": 105, "column": 42}, "end_point": {"row": 105, "column": 44}}, {"id": 234, "type": "!=", "text": "!=", "parent": 221, "children": [], "start_point": {"row": 105, "column": 47}, "end_point": {"row": 105, "column": 49}}, {"id": 235, "type": "cast_expression", "text": "(char *)0", "parent": 221, "children": [236, 240], "start_point": {"row": 105, "column": 50}, "end_point": {"row": 105, "column": 59}}, {"id": 236, "type": "type_descriptor", "text": "char *", "parent": 235, "children": [237, 238], "start_point": {"row": 105, "column": 51}, "end_point": {"row": 105, "column": 57}}, {"id": 237, "type": "primitive_type", "text": "char", "parent": 236, "children": [], "start_point": {"row": 105, "column": 51}, "end_point": {"row": 105, "column": 55}}, {"id": 238, "type": "abstract_pointer_declarator", "text": "*", "parent": 236, "children": [239], "start_point": {"row": 105, "column": 56}, "end_point": {"row": 105, "column": 57}}, {"id": 239, "type": "*", "text": "*", "parent": 238, "children": [], "start_point": {"row": 105, "column": 56}, "end_point": {"row": 105, "column": 57}}, {"id": 240, "type": "number_literal", "text": "0", "parent": 235, "children": [], "start_point": {"row": 105, "column": 58}, "end_point": {"row": 105, "column": 59}}, {"id": 241, "type": "if_statement", "text": "if(inbuf[0] == '#')\n\t\t\tcontinue;", "parent": 219, "children": [242, 252], "start_point": {"row": 106, "column": 2}, "end_point": {"row": 107, "column": 12}}, {"id": 242, "type": "parenthesized_expression", "text": "(inbuf[0] == '#')", "parent": 241, "children": [243], "start_point": {"row": 106, "column": 4}, "end_point": {"row": 106, "column": 21}}, {"id": 243, "type": "binary_expression", "text": "inbuf[0] == '#'", "parent": 242, "children": [244, 247, 248], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 20}}, {"id": 244, "type": "subscript_expression", "text": "inbuf[0]", "parent": 243, "children": [245, 246], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 13}}, {"id": 245, "type": "identifier", "text": "inbuf", "parent": 244, "children": [], "start_point": {"row": 106, "column": 5}, "end_point": {"row": 106, "column": 10}}, {"id": 246, "type": "number_literal", "text": "0", "parent": 244, "children": [], "start_point": {"row": 106, "column": 11}, "end_point": {"row": 106, "column": 12}}, {"id": 247, "type": "==", "text": "==", "parent": 243, "children": [], "start_point": {"row": 106, "column": 14}, "end_point": {"row": 106, "column": 16}}, {"id": 248, "type": "char_literal", "text": "'#'", "parent": 243, "children": [249, 250, 251], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 20}}, {"id": 249, "type": "'", "text": "'", "parent": 248, "children": [], "start_point": {"row": 106, "column": 17}, "end_point": {"row": 106, "column": 18}}, {"id": 250, "type": "character", "text": "#", "parent": 248, "children": [], "start_point": {"row": 106, "column": 18}, "end_point": {"row": 106, "column": 19}}, {"id": 251, "type": "'", "text": "'", "parent": 248, "children": [], "start_point": {"row": 106, "column": 19}, "end_point": {"row": 106, "column": 20}}, {"id": 252, "type": "continue_statement", "text": "continue;", "parent": 241, "children": [253], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 12}}, {"id": 253, "type": "continue", "text": "continue", "parent": 252, "children": [], "start_point": {"row": 107, "column": 3}, "end_point": {"row": 107, "column": 11}}, {"id": 254, "type": "assignment_expression", "text": "sp = (struct xsym *)malloc(sizeof(struct xsym))", "parent": 219, "children": [255, 256, 257], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 49}}, {"id": 255, "type": "identifier", "text": "sp", "parent": 254, "children": [], "start_point": {"row": 109, "column": 2}, "end_point": {"row": 109, "column": 4}}, {"id": 256, "type": "=", "text": "=", "parent": 254, "children": [], "start_point": {"row": 109, "column": 5}, "end_point": {"row": 109, "column": 6}}, {"id": 257, "type": "cast_expression", "text": "(struct xsym *)malloc(sizeof(struct xsym))", "parent": 254, "children": [258, 264], "start_point": {"row": 109, "column": 7}, "end_point": {"row": 109, "column": 49}}, {"id": 258, "type": "type_descriptor", "text": "struct xsym *", "parent": 257, "children": [259, 262], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 21}}, {"id": 259, "type": "struct_specifier", "text": "struct xsym", "parent": 258, "children": [260, 261], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 19}}, {"id": 260, "type": "struct", "text": "struct", "parent": 259, "children": [], "start_point": {"row": 109, "column": 8}, "end_point": {"row": 109, "column": 14}}, {"id": 261, "type": "type_identifier", "text": "xsym", "parent": 259, "children": [], "start_point": {"row": 109, "column": 15}, "end_point": {"row": 109, "column": 19}}, {"id": 262, "type": "abstract_pointer_declarator", "text": "*", "parent": 258, "children": [263], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 21}}, {"id": 263, "type": "*", "text": "*", "parent": 262, "children": [], "start_point": {"row": 109, "column": 20}, "end_point": {"row": 109, "column": 21}}, {"id": 264, "type": "call_expression", "text": "malloc(sizeof(struct xsym))", "parent": 257, "children": [265, 266], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 49}}, {"id": 265, "type": "identifier", "text": "malloc", "parent": 264, "children": [], "start_point": {"row": 109, "column": 22}, "end_point": {"row": 109, "column": 28}}, {"id": 266, "type": "argument_list", "text": "(sizeof(struct xsym))", "parent": 264, "children": [267], "start_point": {"row": 109, "column": 28}, "end_point": {"row": 109, "column": 49}}, {"id": 267, "type": "sizeof_expression", "text": "sizeof(struct xsym)", "parent": 266, "children": [268], "start_point": {"row": 109, "column": 29}, "end_point": {"row": 109, "column": 48}}, {"id": 268, "type": "type_descriptor", "text": "struct xsym", "parent": 267, "children": [269], "start_point": {"row": 109, "column": 36}, "end_point": {"row": 109, "column": 47}}, {"id": 269, "type": "struct_specifier", "text": "struct xsym", "parent": 268, "children": [270, 271], "start_point": {"row": 109, "column": 36}, "end_point": {"row": 109, "column": 47}}, {"id": 270, "type": "struct", "text": "struct", "parent": 269, "children": [], "start_point": {"row": 109, "column": 36}, "end_point": {"row": 109, "column": 42}}, {"id": 271, "type": "type_identifier", "text": "xsym", "parent": 269, "children": [], "start_point": {"row": 109, "column": 43}, "end_point": {"row": 109, "column": 47}}, {"id": 272, "type": "if_statement", "text": "if(sp == (struct xsym *)0) {\n\t\t\tperror(\"malloc\");\n\t\t\texit(1);\n\t\t}", "parent": 219, "children": [273], "start_point": {"row": 110, "column": 2}, "end_point": {"row": 113, "column": 3}}, {"id": 273, "type": "parenthesized_expression", "text": "(sp == (struct xsym *)0)", "parent": 272, "children": [274], "start_point": {"row": 110, "column": 4}, "end_point": {"row": 110, "column": 28}}, {"id": 274, "type": "binary_expression", "text": "sp == (struct xsym *)0", "parent": 273, "children": [275, 276, 277], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 27}}, {"id": 275, "type": "identifier", "text": "sp", "parent": 274, "children": [], "start_point": {"row": 110, "column": 5}, "end_point": {"row": 110, "column": 7}}, {"id": 276, "type": "==", "text": "==", "parent": 274, "children": [], "start_point": {"row": 110, "column": 8}, "end_point": {"row": 110, "column": 10}}, {"id": 277, "type": "cast_expression", "text": "(struct xsym *)0", "parent": 274, "children": [278, 284], "start_point": {"row": 110, "column": 11}, "end_point": {"row": 110, "column": 27}}, {"id": 278, "type": "type_descriptor", "text": "struct xsym *", "parent": 277, "children": [279, 282], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 25}}, {"id": 279, "type": "struct_specifier", "text": "struct xsym", "parent": 278, "children": [280, 281], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 23}}, {"id": 280, "type": "struct", "text": "struct", "parent": 279, "children": [], "start_point": {"row": 110, "column": 12}, "end_point": {"row": 110, "column": 18}}, {"id": 281, "type": "type_identifier", "text": "xsym", "parent": 279, "children": [], "start_point": {"row": 110, "column": 19}, "end_point": {"row": 110, "column": 23}}, {"id": 282, "type": "abstract_pointer_declarator", "text": "*", "parent": 278, "children": [283], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 25}}, {"id": 283, "type": "*", "text": "*", "parent": 282, "children": [], "start_point": {"row": 110, "column": 24}, "end_point": {"row": 110, "column": 25}}, {"id": 284, "type": "number_literal", "text": "0", "parent": 277, "children": [], "start_point": {"row": 110, "column": 26}, "end_point": {"row": 110, "column": 27}}, {"id": 285, "type": "call_expression", "text": "perror(\"malloc\")", "parent": 272, "children": [286, 287], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 19}}, {"id": 286, "type": "identifier", "text": "perror", "parent": 285, "children": [], "start_point": {"row": 111, "column": 3}, "end_point": {"row": 111, "column": 9}}, {"id": 287, "type": "argument_list", "text": "(\"malloc\")", "parent": 285, "children": [288], "start_point": {"row": 111, "column": 9}, "end_point": {"row": 111, "column": 19}}, {"id": 288, "type": "string_literal", "text": "\"malloc\"", "parent": 287, "children": [], "start_point": {"row": 111, "column": 10}, "end_point": {"row": 111, "column": 18}}, {"id": 289, "type": "call_expression", "text": "exit(1)", "parent": 272, "children": [290, 291], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 10}}, {"id": 290, "type": "identifier", "text": "exit", "parent": 289, "children": [], "start_point": {"row": 112, "column": 3}, "end_point": {"row": 112, "column": 7}}, {"id": 291, "type": "argument_list", "text": "(1)", "parent": 289, "children": [292], "start_point": {"row": 112, "column": 7}, "end_point": {"row": 112, "column": 10}}, {"id": 292, "type": "number_literal", "text": "1", "parent": 291, "children": [], "start_point": {"row": 112, "column": 8}, "end_point": {"row": 112, "column": 9}}, {"id": 293, "type": "assignment_expression", "text": "sp->lnum = sp->map = 0", "parent": 219, "children": [294, 297, 298], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 24}}, {"id": 294, "type": "field_expression", "text": "sp->lnum", "parent": 293, "children": [295, 296], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 10}}, {"id": 295, "type": "identifier", "text": "sp", "parent": 294, "children": [], "start_point": {"row": 114, "column": 2}, "end_point": {"row": 114, "column": 4}}, {"id": 296, "type": "field_identifier", "text": "lnum", "parent": 294, "children": [], "start_point": {"row": 114, "column": 6}, "end_point": {"row": 114, "column": 10}}, {"id": 297, "type": "=", "text": "=", "parent": 293, "children": [], "start_point": {"row": 114, "column": 11}, "end_point": {"row": 114, "column": 12}}, {"id": 298, "type": "assignment_expression", "text": "sp->map = 0", "parent": 293, "children": [299, 302, 303], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 24}}, {"id": 299, "type": "field_expression", "text": "sp->map", "parent": 298, "children": [300, 301], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 20}}, {"id": 300, "type": "identifier", "text": "sp", "parent": 299, "children": [], "start_point": {"row": 114, "column": 13}, "end_point": {"row": 114, "column": 15}}, {"id": 301, "type": "field_identifier", "text": "map", "parent": 299, "children": [], "start_point": {"row": 114, "column": 17}, "end_point": {"row": 114, "column": 20}}, {"id": 302, "type": "=", "text": "=", "parent": 298, "children": [], "start_point": {"row": 114, "column": 21}, "end_point": {"row": 114, "column": 22}}, {"id": 303, "type": "number_literal", "text": "0", "parent": 298, "children": [], "start_point": {"row": 114, "column": 23}, "end_point": {"row": 114, "column": 24}}, {"id": 304, "type": "if_statement", "text": "if((cpcalls = index(cpmap,'\\t')) != (char *)0)\n\t\t\t*cpcalls++ = '\\0';", "parent": 219, "children": [305], "start_point": {"row": 116, "column": 2}, "end_point": {"row": 117, "column": 21}}, {"id": 305, "type": "parenthesized_expression", "text": "((cpcalls = index(cpmap,'\\t')) != (char *)0)", "parent": 304, "children": [306], "start_point": {"row": 116, "column": 4}, "end_point": {"row": 116, "column": 48}}, {"id": 306, "type": "binary_expression", "text": "(cpcalls = index(cpmap,'\\t')) != (char *)0", "parent": 305, "children": [307, 319, 320], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 47}}, {"id": 307, "type": "parenthesized_expression", "text": "(cpcalls = index(cpmap,'\\t'))", "parent": 306, "children": [308], "start_point": {"row": 116, "column": 5}, "end_point": {"row": 116, "column": 34}}, {"id": 308, "type": "assignment_expression", "text": "cpcalls = index(cpmap,'\\t')", "parent": 307, "children": [309, 310, 311], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 33}}, {"id": 309, "type": "identifier", "text": "cpcalls", "parent": 308, "children": [], "start_point": {"row": 116, "column": 6}, "end_point": {"row": 116, "column": 13}}, {"id": 310, "type": "=", "text": "=", "parent": 308, "children": [], "start_point": {"row": 116, "column": 14}, "end_point": {"row": 116, "column": 15}}, {"id": 311, "type": "call_expression", "text": "index(cpmap,'\\t')", "parent": 308, "children": [312, 313], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 33}}, {"id": 312, "type": "identifier", "text": "index", "parent": 311, "children": [], "start_point": {"row": 116, "column": 16}, "end_point": {"row": 116, "column": 21}}, {"id": 313, "type": "argument_list", "text": "(cpmap,'\\t')", "parent": 311, "children": [314, 315], "start_point": {"row": 116, "column": 21}, "end_point": {"row": 116, "column": 33}}, {"id": 314, "type": "identifier", "text": "cpmap", "parent": 313, "children": [], "start_point": {"row": 116, "column": 22}, "end_point": {"row": 116, "column": 27}}, {"id": 315, "type": "char_literal", "text": "'\\t'", "parent": 313, "children": [316, 317, 318], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 32}}, {"id": 316, "type": "'", "text": "'", "parent": 315, "children": [], "start_point": {"row": 116, "column": 28}, "end_point": {"row": 116, "column": 29}}, {"id": 317, "type": "escape_sequence", "text": "\\t", "parent": 315, "children": [], "start_point": {"row": 116, "column": 29}, "end_point": {"row": 116, "column": 31}}, {"id": 318, "type": "'", "text": "'", "parent": 315, "children": [], "start_point": {"row": 116, "column": 31}, "end_point": {"row": 116, "column": 32}}, {"id": 319, "type": "!=", "text": "!=", "parent": 306, "children": [], "start_point": {"row": 116, "column": 35}, "end_point": {"row": 116, "column": 37}}, {"id": 320, "type": "cast_expression", "text": "(char *)0", "parent": 306, "children": [321, 325], "start_point": {"row": 116, "column": 38}, "end_point": {"row": 116, "column": 47}}, {"id": 321, "type": "type_descriptor", "text": "char *", "parent": 320, "children": [322, 323], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 45}}, {"id": 322, "type": "primitive_type", "text": "char", "parent": 321, "children": [], "start_point": {"row": 116, "column": 39}, "end_point": {"row": 116, "column": 43}}, {"id": 323, "type": "abstract_pointer_declarator", "text": "*", "parent": 321, "children": [324], "start_point": {"row": 116, "column": 44}, "end_point": {"row": 116, "column": 45}}, {"id": 324, "type": "*", "text": "*", "parent": 323, "children": [], "start_point": {"row": 116, "column": 44}, "end_point": {"row": 116, "column": 45}}, {"id": 325, "type": "number_literal", "text": "0", "parent": 320, "children": [], "start_point": {"row": 116, "column": 46}, "end_point": {"row": 116, "column": 47}}, {"id": 326, "type": "assignment_expression", "text": "*cpcalls++ = '\\0'", "parent": 304, "children": [327, 332, 333], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 20}}, {"id": 327, "type": "pointer_expression", "text": "*cpcalls++", "parent": 326, "children": [328, 329], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 13}}, {"id": 328, "type": "*", "text": "*", "parent": 327, "children": [], "start_point": {"row": 117, "column": 3}, "end_point": {"row": 117, "column": 4}}, {"id": 329, "type": "update_expression", "text": "cpcalls++", "parent": 327, "children": [330, 331], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 13}}, {"id": 330, "type": "identifier", "text": "cpcalls", "parent": 329, "children": [], "start_point": {"row": 117, "column": 4}, "end_point": {"row": 117, "column": 11}}, {"id": 331, "type": "++", "text": "++", "parent": 329, "children": [], "start_point": {"row": 117, "column": 11}, "end_point": {"row": 117, "column": 13}}, {"id": 332, "type": "=", "text": "=", "parent": 326, "children": [], "start_point": {"row": 117, "column": 14}, "end_point": {"row": 117, "column": 15}}, {"id": 333, "type": "char_literal", "text": "'\\0'", "parent": 326, "children": [334, 335, 336], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 20}}, {"id": 334, "type": "'", "text": "'", "parent": 333, "children": [], "start_point": {"row": 117, "column": 16}, "end_point": {"row": 117, "column": 17}}, {"id": 335, "type": "escape_sequence", "text": "\\0", "parent": 333, "children": [], "start_point": {"row": 117, "column": 17}, "end_point": {"row": 117, "column": 19}}, {"id": 336, "type": "'", "text": "'", "parent": 333, "children": [], "start_point": {"row": 117, "column": 19}, "end_point": {"row": 117, "column": 20}}, {"id": 337, "type": "if_statement", "text": "if((cpave = index(cpcalls,'\\t')) != (char *)0)\n\t\t\t*cpave++ = '\\0';", "parent": 219, "children": [338], "start_point": {"row": 119, "column": 2}, "end_point": {"row": 120, "column": 19}}, {"id": 338, "type": "parenthesized_expression", "text": "((cpave = index(cpcalls,'\\t')) != (char *)0)", "parent": 337, "children": [339], "start_point": {"row": 119, "column": 4}, "end_point": {"row": 119, "column": 48}}, {"id": 339, "type": "binary_expression", "text": "(cpave = index(cpcalls,'\\t')) != (char *)0", "parent": 338, "children": [340, 352, 353], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 47}}, {"id": 340, "type": "parenthesized_expression", "text": "(cpave = index(cpcalls,'\\t'))", "parent": 339, "children": [341], "start_point": {"row": 119, "column": 5}, "end_point": {"row": 119, "column": 34}}, {"id": 341, "type": "assignment_expression", "text": "cpave = index(cpcalls,'\\t')", "parent": 340, "children": [342, 343, 344], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 33}}, {"id": 342, "type": "identifier", "text": "cpave", "parent": 341, "children": [], "start_point": {"row": 119, "column": 6}, "end_point": {"row": 119, "column": 11}}, {"id": 343, "type": "=", "text": "=", "parent": 341, "children": [], "start_point": {"row": 119, "column": 12}, "end_point": {"row": 119, "column": 13}}, {"id": 344, "type": "call_expression", "text": "index(cpcalls,'\\t')", "parent": 341, "children": [345, 346], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 33}}, {"id": 345, "type": "identifier", "text": "index", "parent": 344, "children": [], "start_point": {"row": 119, "column": 14}, "end_point": {"row": 119, "column": 19}}, {"id": 346, "type": "argument_list", "text": "(cpcalls,'\\t')", "parent": 344, "children": [347, 348], "start_point": {"row": 119, "column": 19}, "end_point": {"row": 119, "column": 33}}, {"id": 347, "type": "identifier", "text": "cpcalls", "parent": 346, "children": [], "start_point": {"row": 119, "column": 20}, "end_point": {"row": 119, "column": 27}}, {"id": 348, "type": "char_literal", "text": "'\\t'", "parent": 346, "children": [349, 350, 351], "start_point": {"row": 119, "column": 28}, "end_point": {"row": 119, "column": 32}}, {"id": 349, "type": "'", "text": "'", "parent": 348, "children": [], "start_point": {"row": 119, "column": 28}, "end_point": {"row": 119, "column": 29}}, {"id": 350, "type": "escape_sequence", "text": "\\t", "parent": 348, "children": [], "start_point": {"row": 119, "column": 29}, "end_point": {"row": 119, "column": 31}}, {"id": 351, "type": "'", "text": "'", "parent": 348, "children": [], "start_point": {"row": 119, "column": 31}, "end_point": {"row": 119, "column": 32}}, {"id": 352, "type": "!=", "text": "!=", "parent": 339, "children": [], "start_point": {"row": 119, "column": 35}, "end_point": {"row": 119, "column": 37}}, {"id": 353, "type": "cast_expression", "text": "(char *)0", "parent": 339, "children": [354, 358], "start_point": {"row": 119, "column": 38}, "end_point": {"row": 119, "column": 47}}, {"id": 354, "type": "type_descriptor", "text": "char *", "parent": 353, "children": [355, 356], "start_point": {"row": 119, "column": 39}, "end_point": {"row": 119, "column": 45}}, {"id": 355, "type": "primitive_type", "text": "char", "parent": 354, "children": [], "start_point": {"row": 119, "column": 39}, "end_point": {"row": 119, "column": 43}}, {"id": 356, "type": "abstract_pointer_declarator", "text": "*", "parent": 354, "children": [357], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 45}}, {"id": 357, "type": "*", "text": "*", "parent": 356, "children": [], "start_point": {"row": 119, "column": 44}, "end_point": {"row": 119, "column": 45}}, {"id": 358, "type": "number_literal", "text": "0", "parent": 353, "children": [], "start_point": {"row": 119, "column": 46}, "end_point": {"row": 119, "column": 47}}, {"id": 359, "type": "assignment_expression", "text": "*cpave++ = '\\0'", "parent": 337, "children": [360, 365, 366], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 18}}, {"id": 360, "type": "pointer_expression", "text": "*cpave++", "parent": 359, "children": [361, 362], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 11}}, {"id": 361, "type": "*", "text": "*", "parent": 360, "children": [], "start_point": {"row": 120, "column": 3}, "end_point": {"row": 120, "column": 4}}, {"id": 362, "type": "update_expression", "text": "cpave++", "parent": 360, "children": [363, 364], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 11}}, {"id": 363, "type": "identifier", "text": "cpave", "parent": 362, "children": [], "start_point": {"row": 120, "column": 4}, "end_point": {"row": 120, "column": 9}}, {"id": 364, "type": "++", "text": "++", "parent": 362, "children": [], "start_point": {"row": 120, "column": 9}, "end_point": {"row": 120, "column": 11}}, {"id": 365, "type": "=", "text": "=", "parent": 359, "children": [], "start_point": {"row": 120, "column": 12}, "end_point": {"row": 120, "column": 13}}, {"id": 366, "type": "char_literal", "text": "'\\0'", "parent": 359, "children": [367, 368, 369], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 18}}, {"id": 367, "type": "'", "text": "'", "parent": 366, "children": [], "start_point": {"row": 120, "column": 14}, "end_point": {"row": 120, "column": 15}}, {"id": 368, "type": "escape_sequence", "text": "\\0", "parent": 366, "children": [], "start_point": {"row": 120, "column": 15}, "end_point": {"row": 120, "column": 17}}, {"id": 369, "type": "'", "text": "'", "parent": 366, "children": [], "start_point": {"row": 120, "column": 17}, "end_point": {"row": 120, "column": 18}}, {"id": 370, "type": "if_statement", "text": "if((cplnum = index(cpave,'\\t')) != (char *)0)\n\t\t\t*cplnum++ = '\\0';", "parent": 219, "children": [371], "start_point": {"row": 122, "column": 2}, "end_point": {"row": 123, "column": 20}}, {"id": 371, "type": "parenthesized_expression", "text": "((cplnum = index(cpave,'\\t')) != (char *)0)", "parent": 370, "children": [372], "start_point": {"row": 122, "column": 4}, "end_point": {"row": 122, "column": 47}}, {"id": 372, "type": "binary_expression", "text": "(cplnum = index(cpave,'\\t')) != (char *)0", "parent": 371, "children": [373, 385, 386], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 46}}, {"id": 373, "type": "parenthesized_expression", "text": "(cplnum = index(cpave,'\\t'))", "parent": 372, "children": [374], "start_point": {"row": 122, "column": 5}, "end_point": {"row": 122, "column": 33}}, {"id": 374, "type": "assignment_expression", "text": "cplnum = index(cpave,'\\t')", "parent": 373, "children": [375, 376, 377], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 32}}, {"id": 375, "type": "identifier", "text": "cplnum", "parent": 374, "children": [], "start_point": {"row": 122, "column": 6}, "end_point": {"row": 122, "column": 12}}, {"id": 376, "type": "=", "text": "=", "parent": 374, "children": [], "start_point": {"row": 122, "column": 13}, "end_point": {"row": 122, "column": 14}}, {"id": 377, "type": "call_expression", "text": "index(cpave,'\\t')", "parent": 374, "children": [378, 379], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 32}}, {"id": 378, "type": "identifier", "text": "index", "parent": 377, "children": [], "start_point": {"row": 122, "column": 15}, "end_point": {"row": 122, "column": 20}}, {"id": 379, "type": "argument_list", "text": "(cpave,'\\t')", "parent": 377, "children": [380, 381], "start_point": {"row": 122, "column": 20}, "end_point": {"row": 122, "column": 32}}, {"id": 380, "type": "identifier", "text": "cpave", "parent": 379, "children": [], "start_point": {"row": 122, "column": 21}, "end_point": {"row": 122, "column": 26}}, {"id": 381, "type": "char_literal", "text": "'\\t'", "parent": 379, "children": [382, 383, 384], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 31}}, {"id": 382, "type": "'", "text": "'", "parent": 381, "children": [], "start_point": {"row": 122, "column": 27}, "end_point": {"row": 122, "column": 28}}, {"id": 383, "type": "escape_sequence", "text": "\\t", "parent": 381, "children": [], "start_point": {"row": 122, "column": 28}, "end_point": {"row": 122, "column": 30}}, {"id": 384, "type": "'", "text": "'", "parent": 381, "children": [], "start_point": {"row": 122, "column": 30}, "end_point": {"row": 122, "column": 31}}, {"id": 385, "type": "!=", "text": "!=", "parent": 372, "children": [], "start_point": {"row": 122, "column": 34}, "end_point": {"row": 122, "column": 36}}, {"id": 386, "type": "cast_expression", "text": "(char *)0", "parent": 372, "children": [387, 391], "start_point": {"row": 122, "column": 37}, "end_point": {"row": 122, "column": 46}}, {"id": 387, "type": "type_descriptor", "text": "char *", "parent": 386, "children": [388, 389], "start_point": {"row": 122, "column": 38}, "end_point": {"row": 122, "column": 44}}, {"id": 388, "type": "primitive_type", "text": "char", "parent": 387, "children": [], "start_point": {"row": 122, "column": 38}, "end_point": {"row": 122, "column": 42}}, {"id": 389, "type": "abstract_pointer_declarator", "text": "*", "parent": 387, "children": [390], "start_point": {"row": 122, "column": 43}, "end_point": {"row": 122, "column": 44}}, {"id": 390, "type": "*", "text": "*", "parent": 389, "children": [], "start_point": {"row": 122, "column": 43}, "end_point": {"row": 122, "column": 44}}, {"id": 391, "type": "number_literal", "text": "0", "parent": 386, "children": [], "start_point": {"row": 122, "column": 45}, "end_point": {"row": 122, "column": 46}}, {"id": 392, "type": "assignment_expression", "text": "*cplnum++ = '\\0'", "parent": 370, "children": [393, 398, 399], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 19}}, {"id": 393, "type": "pointer_expression", "text": "*cplnum++", "parent": 392, "children": [394, 395], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 12}}, {"id": 394, "type": "*", "text": "*", "parent": 393, "children": [], "start_point": {"row": 123, "column": 3}, "end_point": {"row": 123, "column": 4}}, {"id": 395, "type": "update_expression", "text": "cplnum++", "parent": 393, "children": [396, 397], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 12}}, {"id": 396, "type": "identifier", "text": "cplnum", "parent": 395, "children": [], "start_point": {"row": 123, "column": 4}, "end_point": {"row": 123, "column": 10}}, {"id": 397, "type": "++", "text": "++", "parent": 395, "children": [], "start_point": {"row": 123, "column": 10}, "end_point": {"row": 123, "column": 12}}, {"id": 398, "type": "=", "text": "=", "parent": 392, "children": [], "start_point": {"row": 123, "column": 13}, "end_point": {"row": 123, "column": 14}}, {"id": 399, "type": "char_literal", "text": "'\\0'", "parent": 392, "children": [400, 401, 402], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 19}}, {"id": 400, "type": "'", "text": "'", "parent": 399, "children": [], "start_point": {"row": 123, "column": 15}, "end_point": {"row": 123, "column": 16}}, {"id": 401, "type": "escape_sequence", "text": "\\0", "parent": 399, "children": [], "start_point": {"row": 123, "column": 16}, "end_point": {"row": 123, "column": 18}}, {"id": 402, "type": "'", "text": "'", "parent": 399, "children": [], "start_point": {"row": 123, "column": 18}, "end_point": {"row": 123, "column": 19}}, {"id": 403, "type": "if_statement", "text": "if((cpfnam = index(cplnum,'\\t')) != (char *)0)\n\t\t\t*cpfnam++ = '\\0';", "parent": 219, "children": [404], "start_point": {"row": 125, "column": 2}, "end_point": {"row": 126, "column": 20}}, {"id": 404, "type": "parenthesized_expression", "text": "((cpfnam = index(cplnum,'\\t')) != (char *)0)", "parent": 403, "children": [405], "start_point": {"row": 125, "column": 4}, "end_point": {"row": 125, "column": 48}}, {"id": 405, "type": "binary_expression", "text": "(cpfnam = index(cplnum,'\\t')) != (char *)0", "parent": 404, "children": [406, 418, 419], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 47}}, {"id": 406, "type": "parenthesized_expression", "text": "(cpfnam = index(cplnum,'\\t'))", "parent": 405, "children": [407], "start_point": {"row": 125, "column": 5}, "end_point": {"row": 125, "column": 34}}, {"id": 407, "type": "assignment_expression", "text": "cpfnam = index(cplnum,'\\t')", "parent": 406, "children": [408, 409, 410], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 33}}, {"id": 408, "type": "identifier", "text": "cpfnam", "parent": 407, "children": [], "start_point": {"row": 125, "column": 6}, "end_point": {"row": 125, "column": 12}}, {"id": 409, "type": "=", "text": "=", "parent": 407, "children": [], "start_point": {"row": 125, "column": 13}, "end_point": {"row": 125, "column": 14}}, {"id": 410, "type": "call_expression", "text": "index(cplnum,'\\t')", "parent": 407, "children": [411, 412], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 33}}, {"id": 411, "type": "identifier", "text": "index", "parent": 410, "children": [], "start_point": {"row": 125, "column": 15}, "end_point": {"row": 125, "column": 20}}, {"id": 412, "type": "argument_list", "text": "(cplnum,'\\t')", "parent": 410, "children": [413, 414], "start_point": {"row": 125, "column": 20}, "end_point": {"row": 125, "column": 33}}, {"id": 413, "type": "identifier", "text": "cplnum", "parent": 412, "children": [], "start_point": {"row": 125, "column": 21}, "end_point": {"row": 125, "column": 27}}, {"id": 414, "type": "char_literal", "text": "'\\t'", "parent": 412, "children": [415, 416, 417], "start_point": {"row": 125, "column": 28}, "end_point": {"row": 125, "column": 32}}, {"id": 415, "type": "'", "text": "'", "parent": 414, "children": [], "start_point": {"row": 125, "column": 28}, "end_point": {"row": 125, "column": 29}}, {"id": 416, "type": "escape_sequence", "text": "\\t", "parent": 414, "children": [], "start_point": {"row": 125, "column": 29}, "end_point": {"row": 125, "column": 31}}, {"id": 417, "type": "'", "text": "'", "parent": 414, "children": [], "start_point": {"row": 125, "column": 31}, "end_point": {"row": 125, "column": 32}}, {"id": 418, "type": "!=", "text": "!=", "parent": 405, "children": [], "start_point": {"row": 125, "column": 35}, "end_point": {"row": 125, "column": 37}}, {"id": 419, "type": "cast_expression", "text": "(char *)0", "parent": 405, "children": [420, 424], "start_point": {"row": 125, "column": 38}, "end_point": {"row": 125, "column": 47}}, {"id": 420, "type": "type_descriptor", "text": "char *", "parent": 419, "children": [421, 422], "start_point": {"row": 125, "column": 39}, "end_point": {"row": 125, "column": 45}}, {"id": 421, "type": "primitive_type", "text": "char", "parent": 420, "children": [], "start_point": {"row": 125, "column": 39}, "end_point": {"row": 125, "column": 43}}, {"id": 422, "type": "abstract_pointer_declarator", "text": "*", "parent": 420, "children": [423], "start_point": {"row": 125, "column": 44}, "end_point": {"row": 125, "column": 45}}, {"id": 423, "type": "*", "text": "*", "parent": 422, "children": [], "start_point": {"row": 125, "column": 44}, "end_point": {"row": 125, "column": 45}}, {"id": 424, "type": "number_literal", "text": "0", "parent": 419, "children": [], "start_point": {"row": 125, "column": 46}, "end_point": {"row": 125, "column": 47}}, {"id": 425, "type": "assignment_expression", "text": "*cpfnam++ = '\\0'", "parent": 403, "children": [426, 431, 432], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 19}}, {"id": 426, "type": "pointer_expression", "text": "*cpfnam++", "parent": 425, "children": [427, 428], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 12}}, {"id": 427, "type": "*", "text": "*", "parent": 426, "children": [], "start_point": {"row": 126, "column": 3}, "end_point": {"row": 126, "column": 4}}, {"id": 428, "type": "update_expression", "text": "cpfnam++", "parent": 426, "children": [429, 430], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 12}}, {"id": 429, "type": "identifier", "text": "cpfnam", "parent": 428, "children": [], "start_point": {"row": 126, "column": 4}, "end_point": {"row": 126, "column": 10}}, {"id": 430, "type": "++", "text": "++", "parent": 428, "children": [], "start_point": {"row": 126, "column": 10}, "end_point": {"row": 126, "column": 12}}, {"id": 431, "type": "=", "text": "=", "parent": 425, "children": [], "start_point": {"row": 126, "column": 13}, "end_point": {"row": 126, "column": 14}}, {"id": 432, "type": "char_literal", "text": "'\\0'", "parent": 425, "children": [433, 434, 435], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 19}}, {"id": 433, "type": "'", "text": "'", "parent": 432, "children": [], "start_point": {"row": 126, "column": 15}, "end_point": {"row": 126, "column": 16}}, {"id": 434, "type": "escape_sequence", "text": "\\0", "parent": 432, "children": [], "start_point": {"row": 126, "column": 16}, "end_point": {"row": 126, "column": 18}}, {"id": 435, "type": "'", "text": "'", "parent": 432, "children": [], "start_point": {"row": 126, "column": 18}, "end_point": {"row": 126, "column": 19}}, {"id": 436, "type": "assignment_expression", "text": "sp->map = atoi(cpmap)", "parent": 219, "children": [437, 440, 441], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 23}}, {"id": 437, "type": "field_expression", "text": "sp->map", "parent": 436, "children": [438, 439], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 9}}, {"id": 438, "type": "identifier", "text": "sp", "parent": 437, "children": [], "start_point": {"row": 129, "column": 2}, "end_point": {"row": 129, "column": 4}}, {"id": 439, "type": "field_identifier", "text": "map", "parent": 437, "children": [], "start_point": {"row": 129, "column": 6}, "end_point": {"row": 129, "column": 9}}, {"id": 440, "type": "=", "text": "=", "parent": 436, "children": [], "start_point": {"row": 129, "column": 10}, "end_point": {"row": 129, "column": 11}}, {"id": 441, "type": "call_expression", "text": "atoi(cpmap)", "parent": 436, "children": [442, 443], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 23}}, {"id": 442, "type": "identifier", "text": "atoi", "parent": 441, "children": [], "start_point": {"row": 129, "column": 12}, "end_point": {"row": 129, "column": 16}}, {"id": 443, "type": "argument_list", "text": "(cpmap)", "parent": 441, "children": [444], "start_point": {"row": 129, "column": 16}, "end_point": {"row": 129, "column": 23}}, {"id": 444, "type": "identifier", "text": "cpmap", "parent": 443, "children": [], "start_point": {"row": 129, "column": 17}, "end_point": {"row": 129, "column": 22}}, {"id": 445, "type": "if_statement", "text": "if(cplnum == (char *)0)\n\t\t\tsp->lnum = -1;\n\t\telse\n\t\t\tsp->lnum = atoi(cplnum);", "parent": 219, "children": [446, 462], "start_point": {"row": 131, "column": 2}, "end_point": {"row": 134, "column": 27}}, {"id": 446, "type": "parenthesized_expression", "text": "(cplnum == (char *)0)", "parent": 445, "children": [447], "start_point": {"row": 131, "column": 4}, "end_point": {"row": 131, "column": 25}}, {"id": 447, "type": "binary_expression", "text": "cplnum == (char *)0", "parent": 446, "children": [448, 449, 450], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 24}}, {"id": 448, "type": "identifier", "text": "cplnum", "parent": 447, "children": [], "start_point": {"row": 131, "column": 5}, "end_point": {"row": 131, "column": 11}}, {"id": 449, "type": "==", "text": "==", "parent": 447, "children": [], "start_point": {"row": 131, "column": 12}, "end_point": {"row": 131, "column": 14}}, {"id": 450, "type": "cast_expression", "text": "(char *)0", "parent": 447, "children": [451, 455], "start_point": {"row": 131, "column": 15}, "end_point": {"row": 131, "column": 24}}, {"id": 451, "type": "type_descriptor", "text": "char *", "parent": 450, "children": [452, 453], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 22}}, {"id": 452, "type": "primitive_type", "text": "char", "parent": 451, "children": [], "start_point": {"row": 131, "column": 16}, "end_point": {"row": 131, "column": 20}}, {"id": 453, "type": "abstract_pointer_declarator", "text": "*", "parent": 451, "children": [454], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 22}}, {"id": 454, "type": "*", "text": "*", "parent": 453, "children": [], "start_point": {"row": 131, "column": 21}, "end_point": {"row": 131, "column": 22}}, {"id": 455, "type": "number_literal", "text": "0", "parent": 450, "children": [], "start_point": {"row": 131, "column": 23}, "end_point": {"row": 131, "column": 24}}, {"id": 456, "type": "assignment_expression", "text": "sp->lnum = -1", "parent": 445, "children": [457, 460, 461], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 16}}, {"id": 457, "type": "field_expression", "text": "sp->lnum", "parent": 456, "children": [458, 459], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 11}}, {"id": 458, "type": "identifier", "text": "sp", "parent": 457, "children": [], "start_point": {"row": 132, "column": 3}, "end_point": {"row": 132, "column": 5}}, {"id": 459, "type": "field_identifier", "text": "lnum", "parent": 457, "children": [], "start_point": {"row": 132, "column": 7}, "end_point": {"row": 132, "column": 11}}, {"id": 460, "type": "=", "text": "=", "parent": 456, "children": [], "start_point": {"row": 132, "column": 12}, "end_point": {"row": 132, "column": 13}}, {"id": 461, "type": "number_literal", "text": "-1", "parent": 456, "children": [], "start_point": {"row": 132, "column": 14}, "end_point": {"row": 132, "column": 16}}, {"id": 462, "type": "else_clause", "text": "else\n\t\t\tsp->lnum = atoi(cplnum);", "parent": 445, "children": [], "start_point": {"row": 133, "column": 2}, "end_point": {"row": 134, "column": 27}}, {"id": 463, "type": "assignment_expression", "text": "sp->lnum = atoi(cplnum)", "parent": 462, "children": [464, 467, 468], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 134, "column": 26}}, {"id": 464, "type": "field_expression", "text": "sp->lnum", "parent": 463, "children": [465, 466], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 134, "column": 11}}, {"id": 465, "type": "identifier", "text": "sp", "parent": 464, "children": [], "start_point": {"row": 134, "column": 3}, "end_point": {"row": 134, "column": 5}}, {"id": 466, "type": "field_identifier", "text": "lnum", "parent": 464, "children": [], "start_point": {"row": 134, "column": 7}, "end_point": {"row": 134, "column": 11}}, {"id": 467, "type": "=", "text": "=", "parent": 463, "children": [], "start_point": {"row": 134, "column": 12}, "end_point": {"row": 134, "column": 13}}, {"id": 468, "type": "call_expression", "text": "atoi(cplnum)", "parent": 463, "children": [469, 470], "start_point": {"row": 134, "column": 14}, "end_point": {"row": 134, "column": 26}}, {"id": 469, "type": "identifier", "text": "atoi", "parent": 468, "children": [], "start_point": {"row": 134, "column": 14}, "end_point": {"row": 134, "column": 18}}, {"id": 470, "type": "argument_list", "text": "(cplnum)", "parent": 468, "children": [471], "start_point": {"row": 134, "column": 18}, "end_point": {"row": 134, "column": 26}}, {"id": 471, "type": "identifier", "text": "cplnum", "parent": 470, "children": [], "start_point": {"row": 134, "column": 19}, "end_point": {"row": 134, "column": 25}}, {"id": 472, "type": "if_statement", "text": "if(cpfnam != (char *)0) {\n\t\t\tchar\t*x;\n\t\t\tif((x = index(cpfnam,'\\n')) != (char *)0)\n\t\t\t\t*x = '\\0';\n\n\t\t\tsp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n\t\t\tif(sp->dat == (char *)0) {\n\t\t\t\tperror(\"malloc\");\n\t\t\t\texit(1);\n\t\t\t}\n\t\t\t(void)strcpy(sp->dat,cpfnam);\n\t\t} else\n\t\t\tsp->dat = \"unknown\";", "parent": 219, "children": [473, 570], "start_point": {"row": 136, "column": 2}, "end_point": {"row": 148, "column": 23}}, {"id": 473, "type": "parenthesized_expression", "text": "(cpfnam != (char *)0)", "parent": 472, "children": [474], "start_point": {"row": 136, "column": 4}, "end_point": {"row": 136, "column": 25}}, {"id": 474, "type": "binary_expression", "text": "cpfnam != (char *)0", "parent": 473, "children": [475, 476, 477], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 24}}, {"id": 475, "type": "identifier", "text": "cpfnam", "parent": 474, "children": [], "start_point": {"row": 136, "column": 5}, "end_point": {"row": 136, "column": 11}}, {"id": 476, "type": "!=", "text": "!=", "parent": 474, "children": [], "start_point": {"row": 136, "column": 12}, "end_point": {"row": 136, "column": 14}}, {"id": 477, "type": "cast_expression", "text": "(char *)0", "parent": 474, "children": [478, 482], "start_point": {"row": 136, "column": 15}, "end_point": {"row": 136, "column": 24}}, {"id": 478, "type": "type_descriptor", "text": "char *", "parent": 477, "children": [479, 480], "start_point": {"row": 136, "column": 16}, "end_point": {"row": 136, "column": 22}}, {"id": 479, "type": "primitive_type", "text": "char", "parent": 478, "children": [], "start_point": {"row": 136, "column": 16}, "end_point": {"row": 136, "column": 20}}, {"id": 480, "type": "abstract_pointer_declarator", "text": "*", "parent": 478, "children": [481], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 22}}, {"id": 481, "type": "*", "text": "*", "parent": 480, "children": [], "start_point": {"row": 136, "column": 21}, "end_point": {"row": 136, "column": 22}}, {"id": 482, "type": "number_literal", "text": "0", "parent": 477, "children": [], "start_point": {"row": 136, "column": 23}, "end_point": {"row": 136, "column": 24}}, {"id": 483, "type": "declaration", "text": "char\t*x;", "parent": 472, "children": [484, 485], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 11}}, {"id": 484, "type": "primitive_type", "text": "char", "parent": 483, "children": [], "start_point": {"row": 137, "column": 3}, "end_point": {"row": 137, "column": 7}}, {"id": 485, "type": "pointer_declarator", "text": "*x", "parent": 483, "children": [486, 487], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 10}}, {"id": 486, "type": "*", "text": "*", "parent": 485, "children": [], "start_point": {"row": 137, "column": 8}, "end_point": {"row": 137, "column": 9}}, {"id": 487, "type": "identifier", "text": "x", "parent": 485, "children": [], "start_point": {"row": 137, "column": 9}, "end_point": {"row": 137, "column": 10}}, {"id": 488, "type": "if_statement", "text": "if((x = index(cpfnam,'\\n')) != (char *)0)\n\t\t\t\t*x = '\\0';", "parent": 472, "children": [489], "start_point": {"row": 138, "column": 3}, "end_point": {"row": 139, "column": 14}}, {"id": 489, "type": "parenthesized_expression", "text": "((x = index(cpfnam,'\\n')) != (char *)0)", "parent": 488, "children": [490], "start_point": {"row": 138, "column": 5}, "end_point": {"row": 138, "column": 44}}, {"id": 490, "type": "binary_expression", "text": "(x = index(cpfnam,'\\n')) != (char *)0", "parent": 489, "children": [491, 503, 504], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 43}}, {"id": 491, "type": "parenthesized_expression", "text": "(x = index(cpfnam,'\\n'))", "parent": 490, "children": [492], "start_point": {"row": 138, "column": 6}, "end_point": {"row": 138, "column": 30}}, {"id": 492, "type": "assignment_expression", "text": "x = index(cpfnam,'\\n')", "parent": 491, "children": [493, 494, 495], "start_point": {"row": 138, "column": 7}, "end_point": {"row": 138, "column": 29}}, {"id": 493, "type": "identifier", "text": "x", "parent": 492, "children": [], "start_point": {"row": 138, "column": 7}, "end_point": {"row": 138, "column": 8}}, {"id": 494, "type": "=", "text": "=", "parent": 492, "children": [], "start_point": {"row": 138, "column": 9}, "end_point": {"row": 138, "column": 10}}, {"id": 495, "type": "call_expression", "text": "index(cpfnam,'\\n')", "parent": 492, "children": [496, 497], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 29}}, {"id": 496, "type": "identifier", "text": "index", "parent": 495, "children": [], "start_point": {"row": 138, "column": 11}, "end_point": {"row": 138, "column": 16}}, {"id": 497, "type": "argument_list", "text": "(cpfnam,'\\n')", "parent": 495, "children": [498, 499], "start_point": {"row": 138, "column": 16}, "end_point": {"row": 138, "column": 29}}, {"id": 498, "type": "identifier", "text": "cpfnam", "parent": 497, "children": [], "start_point": {"row": 138, "column": 17}, "end_point": {"row": 138, "column": 23}}, {"id": 499, "type": "char_literal", "text": "'\\n'", "parent": 497, "children": [500, 501, 502], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 28}}, {"id": 500, "type": "'", "text": "'", "parent": 499, "children": [], "start_point": {"row": 138, "column": 24}, "end_point": {"row": 138, "column": 25}}, {"id": 501, "type": "escape_sequence", "text": "\\n", "parent": 499, "children": [], "start_point": {"row": 138, "column": 25}, "end_point": {"row": 138, "column": 27}}, {"id": 502, "type": "'", "text": "'", "parent": 499, "children": [], "start_point": {"row": 138, "column": 27}, "end_point": {"row": 138, "column": 28}}, {"id": 503, "type": "!=", "text": "!=", "parent": 490, "children": [], "start_point": {"row": 138, "column": 31}, "end_point": {"row": 138, "column": 33}}, {"id": 504, "type": "cast_expression", "text": "(char *)0", "parent": 490, "children": [505, 509], "start_point": {"row": 138, "column": 34}, "end_point": {"row": 138, "column": 43}}, {"id": 505, "type": "type_descriptor", "text": "char *", "parent": 504, "children": [506, 507], "start_point": {"row": 138, "column": 35}, "end_point": {"row": 138, "column": 41}}, {"id": 506, "type": "primitive_type", "text": "char", "parent": 505, "children": [], "start_point": {"row": 138, "column": 35}, "end_point": {"row": 138, "column": 39}}, {"id": 507, "type": "abstract_pointer_declarator", "text": "*", "parent": 505, "children": [508], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 41}}, {"id": 508, "type": "*", "text": "*", "parent": 507, "children": [], "start_point": {"row": 138, "column": 40}, "end_point": {"row": 138, "column": 41}}, {"id": 509, "type": "number_literal", "text": "0", "parent": 504, "children": [], "start_point": {"row": 138, "column": 42}, "end_point": {"row": 138, "column": 43}}, {"id": 510, "type": "assignment_expression", "text": "*x = '\\0'", "parent": 488, "children": [511, 514, 515], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 13}}, {"id": 511, "type": "pointer_expression", "text": "*x", "parent": 510, "children": [512, 513], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 6}}, {"id": 512, "type": "*", "text": "*", "parent": 511, "children": [], "start_point": {"row": 139, "column": 4}, "end_point": {"row": 139, "column": 5}}, {"id": 513, "type": "identifier", "text": "x", "parent": 511, "children": [], "start_point": {"row": 139, "column": 5}, "end_point": {"row": 139, "column": 6}}, {"id": 514, "type": "=", "text": "=", "parent": 510, "children": [], "start_point": {"row": 139, "column": 7}, "end_point": {"row": 139, "column": 8}}, {"id": 515, "type": "char_literal", "text": "'\\0'", "parent": 510, "children": [516, 517, 518], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 139, "column": 13}}, {"id": 516, "type": "'", "text": "'", "parent": 515, "children": [], "start_point": {"row": 139, "column": 9}, "end_point": {"row": 139, "column": 10}}, {"id": 517, "type": "escape_sequence", "text": "\\0", "parent": 515, "children": [], "start_point": {"row": 139, "column": 10}, "end_point": {"row": 139, "column": 12}}, {"id": 518, "type": "'", "text": "'", "parent": 515, "children": [], "start_point": {"row": 139, "column": 12}, "end_point": {"row": 139, "column": 13}}, {"id": 519, "type": "assignment_expression", "text": "sp->dat = malloc((unsigned)(strlen(cpfnam) + 1))", "parent": 472, "children": [520, 523, 524], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 51}}, {"id": 520, "type": "field_expression", "text": "sp->dat", "parent": 519, "children": [521, 522], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 10}}, {"id": 521, "type": "identifier", "text": "sp", "parent": 520, "children": [], "start_point": {"row": 141, "column": 3}, "end_point": {"row": 141, "column": 5}}, {"id": 522, "type": "field_identifier", "text": "dat", "parent": 520, "children": [], "start_point": {"row": 141, "column": 7}, "end_point": {"row": 141, "column": 10}}, {"id": 523, "type": "=", "text": "=", "parent": 519, "children": [], "start_point": {"row": 141, "column": 11}, "end_point": {"row": 141, "column": 12}}, {"id": 524, "type": "call_expression", "text": "malloc((unsigned)(strlen(cpfnam) + 1))", "parent": 519, "children": [525, 526], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 51}}, {"id": 525, "type": "identifier", "text": "malloc", "parent": 524, "children": [], "start_point": {"row": 141, "column": 13}, "end_point": {"row": 141, "column": 19}}, {"id": 526, "type": "argument_list", "text": "((unsigned)(strlen(cpfnam) + 1))", "parent": 524, "children": [527], "start_point": {"row": 141, "column": 19}, "end_point": {"row": 141, "column": 51}}, {"id": 527, "type": "cast_expression", "text": "(unsigned)(strlen(cpfnam) + 1)", "parent": 526, "children": [528, 531], "start_point": {"row": 141, "column": 20}, "end_point": {"row": 141, "column": 50}}, {"id": 528, "type": "type_descriptor", "text": "unsigned", "parent": 527, "children": [529], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 29}}, {"id": 529, "type": "sized_type_specifier", "text": "unsigned", "parent": 528, "children": [530], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 29}}, {"id": 530, "type": "unsigned", "text": "unsigned", "parent": 529, "children": [], "start_point": {"row": 141, "column": 21}, "end_point": {"row": 141, "column": 29}}, {"id": 531, "type": "parenthesized_expression", "text": "(strlen(cpfnam) + 1)", "parent": 527, "children": [532], "start_point": {"row": 141, "column": 30}, "end_point": {"row": 141, "column": 50}}, {"id": 532, "type": "binary_expression", "text": "strlen(cpfnam) + 1", "parent": 531, "children": [533, 537, 538], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 49}}, {"id": 533, "type": "call_expression", "text": "strlen(cpfnam)", "parent": 532, "children": [534, 535], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 45}}, {"id": 534, "type": "identifier", "text": "strlen", "parent": 533, "children": [], "start_point": {"row": 141, "column": 31}, "end_point": {"row": 141, "column": 37}}, {"id": 535, "type": "argument_list", "text": "(cpfnam)", "parent": 533, "children": [536], "start_point": {"row": 141, "column": 37}, "end_point": {"row": 141, "column": 45}}, {"id": 536, "type": "identifier", "text": "cpfnam", "parent": 535, "children": [], "start_point": {"row": 141, "column": 38}, "end_point": {"row": 141, "column": 44}}, {"id": 537, "type": "+", "text": "+", "parent": 532, "children": [], "start_point": {"row": 141, "column": 46}, "end_point": {"row": 141, "column": 47}}, {"id": 538, "type": "number_literal", "text": "1", "parent": 532, "children": [], "start_point": {"row": 141, "column": 48}, "end_point": {"row": 141, "column": 49}}, {"id": 539, "type": "if_statement", "text": "if(sp->dat == (char *)0) {\n\t\t\t\tperror(\"malloc\");\n\t\t\t\texit(1);\n\t\t\t}", "parent": 472, "children": [540], "start_point": {"row": 142, "column": 3}, "end_point": {"row": 145, "column": 4}}, {"id": 540, "type": "parenthesized_expression", "text": "(sp->dat == (char *)0)", "parent": 539, "children": [541], "start_point": {"row": 142, "column": 5}, "end_point": {"row": 142, "column": 27}}, {"id": 541, "type": "binary_expression", "text": "sp->dat == (char *)0", "parent": 540, "children": [542, 545, 546], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 26}}, {"id": 542, "type": "field_expression", "text": "sp->dat", "parent": 541, "children": [543, 544], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 13}}, {"id": 543, "type": "identifier", "text": "sp", "parent": 542, "children": [], "start_point": {"row": 142, "column": 6}, "end_point": {"row": 142, "column": 8}}, {"id": 544, "type": "field_identifier", "text": "dat", "parent": 542, "children": [], "start_point": {"row": 142, "column": 10}, "end_point": {"row": 142, "column": 13}}, {"id": 545, "type": "==", "text": "==", "parent": 541, "children": [], "start_point": {"row": 142, "column": 14}, "end_point": {"row": 142, "column": 16}}, {"id": 546, "type": "cast_expression", "text": "(char *)0", "parent": 541, "children": [547, 551], "start_point": {"row": 142, "column": 17}, "end_point": {"row": 142, "column": 26}}, {"id": 547, "type": "type_descriptor", "text": "char *", "parent": 546, "children": [548, 549], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 24}}, {"id": 548, "type": "primitive_type", "text": "char", "parent": 547, "children": [], "start_point": {"row": 142, "column": 18}, "end_point": {"row": 142, "column": 22}}, {"id": 549, "type": "abstract_pointer_declarator", "text": "*", "parent": 547, "children": [550], "start_point": {"row": 142, "column": 23}, "end_point": {"row": 142, "column": 24}}, {"id": 550, "type": "*", "text": "*", "parent": 549, "children": [], "start_point": {"row": 142, "column": 23}, "end_point": {"row": 142, "column": 24}}, {"id": 551, "type": "number_literal", "text": "0", "parent": 546, "children": [], "start_point": {"row": 142, "column": 25}, "end_point": {"row": 142, "column": 26}}, {"id": 552, "type": "call_expression", "text": "perror(\"malloc\")", "parent": 539, "children": [553, 554], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 20}}, {"id": 553, "type": "identifier", "text": "perror", "parent": 552, "children": [], "start_point": {"row": 143, "column": 4}, "end_point": {"row": 143, "column": 10}}, {"id": 554, "type": "argument_list", "text": "(\"malloc\")", "parent": 552, "children": [555], "start_point": {"row": 143, "column": 10}, "end_point": {"row": 143, "column": 20}}, {"id": 555, "type": "string_literal", "text": "\"malloc\"", "parent": 554, "children": [], "start_point": {"row": 143, "column": 11}, "end_point": {"row": 143, "column": 19}}, {"id": 556, "type": "call_expression", "text": "exit(1)", "parent": 539, "children": [557, 558], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 11}}, {"id": 557, "type": "identifier", "text": "exit", "parent": 556, "children": [], "start_point": {"row": 144, "column": 4}, "end_point": {"row": 144, "column": 8}}, {"id": 558, "type": "argument_list", "text": "(1)", "parent": 556, "children": [559], "start_point": {"row": 144, "column": 8}, "end_point": {"row": 144, "column": 11}}, {"id": 559, "type": "number_literal", "text": "1", "parent": 558, "children": [], "start_point": {"row": 144, "column": 9}, "end_point": {"row": 144, "column": 10}}, {"id": 560, "type": "cast_expression", "text": "(void)strcpy(sp->dat,cpfnam)", "parent": 472, "children": [561, 563], "start_point": {"row": 146, "column": 3}, "end_point": {"row": 146, "column": 31}}, {"id": 561, "type": "type_descriptor", "text": "void", "parent": 560, "children": [562], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 8}}, {"id": 562, "type": "primitive_type", "text": "void", "parent": 561, "children": [], "start_point": {"row": 146, "column": 4}, "end_point": {"row": 146, "column": 8}}, {"id": 563, "type": "call_expression", "text": "strcpy(sp->dat,cpfnam)", "parent": 560, "children": [564, 565], "start_point": {"row": 146, "column": 9}, "end_point": {"row": 146, "column": 31}}, {"id": 564, "type": "identifier", "text": "strcpy", "parent": 563, "children": [], "start_point": {"row": 146, "column": 9}, "end_point": {"row": 146, "column": 15}}, {"id": 565, "type": "argument_list", "text": "(sp->dat,cpfnam)", "parent": 563, "children": [566, 569], "start_point": {"row": 146, "column": 15}, "end_point": {"row": 146, "column": 31}}, {"id": 566, "type": "field_expression", "text": "sp->dat", "parent": 565, "children": [567, 568], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 23}}, {"id": 567, "type": "identifier", "text": "sp", "parent": 566, "children": [], "start_point": {"row": 146, "column": 16}, "end_point": {"row": 146, "column": 18}}, {"id": 568, "type": "field_identifier", "text": "dat", "parent": 566, "children": [], "start_point": {"row": 146, "column": 20}, "end_point": {"row": 146, "column": 23}}, {"id": 569, "type": "identifier", "text": "cpfnam", "parent": 565, "children": [], "start_point": {"row": 146, "column": 24}, "end_point": {"row": 146, "column": 30}}, {"id": 570, "type": "else_clause", "text": "else\n\t\t\tsp->dat = \"unknown\";", "parent": 472, "children": [], "start_point": {"row": 147, "column": 4}, "end_point": {"row": 148, "column": 23}}, {"id": 571, "type": "assignment_expression", "text": "sp->dat = \"unknown\"", "parent": 570, "children": [572, 575, 576], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 22}}, {"id": 572, "type": "field_expression", "text": "sp->dat", "parent": 571, "children": [573, 574], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 10}}, {"id": 573, "type": "identifier", "text": "sp", "parent": 572, "children": [], "start_point": {"row": 148, "column": 3}, "end_point": {"row": 148, "column": 5}}, {"id": 574, "type": "field_identifier", "text": "dat", "parent": 572, "children": [], "start_point": {"row": 148, "column": 7}, "end_point": {"row": 148, "column": 10}}, {"id": 575, "type": "=", "text": "=", "parent": 571, "children": [], "start_point": {"row": 148, "column": 11}, "end_point": {"row": 148, "column": 12}}, {"id": 576, "type": "string_literal", "text": "\"unknown\"", "parent": 571, "children": [], "start_point": {"row": 148, "column": 13}, "end_point": {"row": 148, "column": 22}}, {"id": 577, "type": "assignment_expression", "text": "zp = shash[sp->map % HASHSIZ]", "parent": 219, "children": [578, 579, 580], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 31}}, {"id": 578, "type": "identifier", "text": "zp", "parent": 577, "children": [], "start_point": {"row": 151, "column": 2}, "end_point": {"row": 151, "column": 4}}, {"id": 579, "type": "=", "text": "=", "parent": 577, "children": [], "start_point": {"row": 151, "column": 5}, "end_point": {"row": 151, "column": 6}}, {"id": 580, "type": "subscript_expression", "text": "shash[sp->map % HASHSIZ]", "parent": 577, "children": [581, 582], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 31}}, {"id": 581, "type": "identifier", "text": "shash", "parent": 580, "children": [], "start_point": {"row": 151, "column": 7}, "end_point": {"row": 151, "column": 12}}, {"id": 582, "type": "binary_expression", "text": "sp->map % HASHSIZ", "parent": 580, "children": [583, 586, 587], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 30}}, {"id": 583, "type": "field_expression", "text": "sp->map", "parent": 582, "children": [584, 585], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 20}}, {"id": 584, "type": "identifier", "text": "sp", "parent": 583, "children": [], "start_point": {"row": 151, "column": 13}, "end_point": {"row": 151, "column": 15}}, {"id": 585, "type": "field_identifier", "text": "map", "parent": 583, "children": [], "start_point": {"row": 151, "column": 17}, "end_point": {"row": 151, "column": 20}}, {"id": 586, "type": "%", "text": "%", "parent": 582, "children": [], "start_point": {"row": 151, "column": 21}, "end_point": {"row": 151, "column": 22}}, {"id": 587, "type": "identifier", "text": "HASHSIZ", "parent": 582, "children": [], "start_point": {"row": 151, "column": 23}, "end_point": {"row": 151, "column": 30}}, {"id": 588, "type": "while_statement", "text": "while(zp != (struct xsym *)0) {\n\t\t\tif(zp->map == sp->map) {\n\t\t\t\t(void)fprintf(stderr,\n\t\t\t\t\"mnemalyse: duplicate map entry ignored\");\n\t\t\t\t(void)fprintf(stderr,\n\t\t\t\t\" (point at both %s and %s)\\n\",sp->dat,zp->dat);\n\t\t\t\t(void)free(sp);\n\n\t\t\t\t/* can't free dat - may not be malloced! */\n\t\t\t\tsp = (struct xsym *)0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tzp = zp->nxt;\n\t\t}", "parent": 219, "children": [589], "start_point": {"row": 152, "column": 2}, "end_point": {"row": 165, "column": 3}}, {"id": 589, "type": "parenthesized_expression", "text": "(zp != (struct xsym *)0)", "parent": 588, "children": [590], "start_point": {"row": 152, "column": 7}, "end_point": {"row": 152, "column": 31}}, {"id": 590, "type": "binary_expression", "text": "zp != (struct xsym *)0", "parent": 589, "children": [591, 592, 593], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 30}}, {"id": 591, "type": "identifier", "text": "zp", "parent": 590, "children": [], "start_point": {"row": 152, "column": 8}, "end_point": {"row": 152, "column": 10}}, {"id": 592, "type": "!=", "text": "!=", "parent": 590, "children": [], "start_point": {"row": 152, "column": 11}, "end_point": {"row": 152, "column": 13}}, {"id": 593, "type": "cast_expression", "text": "(struct xsym *)0", "parent": 590, "children": [594, 600], "start_point": {"row": 152, "column": 14}, "end_point": {"row": 152, "column": 30}}, {"id": 594, "type": "type_descriptor", "text": "struct xsym *", "parent": 593, "children": [595, 598], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 28}}, {"id": 595, "type": "struct_specifier", "text": "struct xsym", "parent": 594, "children": [596, 597], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 26}}, {"id": 596, "type": "struct", "text": "struct", "parent": 595, "children": [], "start_point": {"row": 152, "column": 15}, "end_point": {"row": 152, "column": 21}}, {"id": 597, "type": "type_identifier", "text": "xsym", "parent": 595, "children": [], "start_point": {"row": 152, "column": 22}, "end_point": {"row": 152, "column": 26}}, {"id": 598, "type": "abstract_pointer_declarator", "text": "*", "parent": 594, "children": [599], "start_point": {"row": 152, "column": 27}, "end_point": {"row": 152, "column": 28}}, {"id": 599, "type": "*", "text": "*", "parent": 598, "children": [], "start_point": {"row": 152, "column": 27}, "end_point": {"row": 152, "column": 28}}, {"id": 600, "type": "number_literal", "text": "0", "parent": 593, "children": [], "start_point": {"row": 152, "column": 29}, "end_point": {"row": 152, "column": 30}}, {"id": 601, "type": "if_statement", "text": "if(zp->map == sp->map) {\n\t\t\t\t(void)fprintf(stderr,\n\t\t\t\t\"mnemalyse: duplicate map entry ignored\");\n\t\t\t\t(void)fprintf(stderr,\n\t\t\t\t\" (point at both %s and %s)\\n\",sp->dat,zp->dat);\n\t\t\t\t(void)free(sp);\n\n\t\t\t\t/* can't free dat - may not be malloced! */\n\t\t\t\tsp = (struct xsym *)0;\n\t\t\t\tbreak;\n\t\t\t}", "parent": 588, "children": [602], "start_point": {"row": 153, "column": 3}, "end_point": {"row": 163, "column": 4}}, {"id": 602, "type": "parenthesized_expression", "text": "(zp->map == sp->map)", "parent": 601, "children": [603], "start_point": {"row": 153, "column": 5}, "end_point": {"row": 153, "column": 25}}, {"id": 603, "type": "binary_expression", "text": "zp->map == sp->map", "parent": 602, "children": [604, 607, 608], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 24}}, {"id": 604, "type": "field_expression", "text": "zp->map", "parent": 603, "children": [605, 606], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 13}}, {"id": 605, "type": "identifier", "text": "zp", "parent": 604, "children": [], "start_point": {"row": 153, "column": 6}, "end_point": {"row": 153, "column": 8}}, {"id": 606, "type": "field_identifier", "text": "map", "parent": 604, "children": [], "start_point": {"row": 153, "column": 10}, "end_point": {"row": 153, "column": 13}}, {"id": 607, "type": "==", "text": "==", "parent": 603, "children": [], "start_point": {"row": 153, "column": 14}, "end_point": {"row": 153, "column": 16}}, {"id": 608, "type": "field_expression", "text": "sp->map", "parent": 603, "children": [609, 610], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 24}}, {"id": 609, "type": "identifier", "text": "sp", "parent": 608, "children": [], "start_point": {"row": 153, "column": 17}, "end_point": {"row": 153, "column": 19}}, {"id": 610, "type": "field_identifier", "text": "map", "parent": 608, "children": [], "start_point": {"row": 153, "column": 21}, "end_point": {"row": 153, "column": 24}}, {"id": 611, "type": "cast_expression", "text": "(void)fprintf(stderr,\n\t\t\t\t\"mnemalyse: duplicate map entry ignored\")", "parent": 601, "children": [612, 614], "start_point": {"row": 154, "column": 4}, "end_point": {"row": 155, "column": 45}}, {"id": 612, "type": "type_descriptor", "text": "void", "parent": 611, "children": [613], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 9}}, {"id": 613, "type": "primitive_type", "text": "void", "parent": 612, "children": [], "start_point": {"row": 154, "column": 5}, "end_point": {"row": 154, "column": 9}}, {"id": 614, "type": "call_expression", "text": "fprintf(stderr,\n\t\t\t\t\"mnemalyse: duplicate map entry ignored\")", "parent": 611, "children": [615, 616], "start_point": {"row": 154, "column": 10}, "end_point": {"row": 155, "column": 45}}, {"id": 615, "type": "identifier", "text": "fprintf", "parent": 614, "children": [], "start_point": {"row": 154, "column": 10}, "end_point": {"row": 154, "column": 17}}, {"id": 616, "type": "argument_list", "text": "(stderr,\n\t\t\t\t\"mnemalyse: duplicate map entry ignored\")", "parent": 614, "children": [617, 618], "start_point": {"row": 154, "column": 17}, "end_point": {"row": 155, "column": 45}}, {"id": 617, "type": "identifier", "text": "stderr", "parent": 616, "children": [], "start_point": {"row": 154, "column": 18}, "end_point": {"row": 154, "column": 24}}, {"id": 618, "type": "string_literal", "text": "\"mnemalyse: duplicate map entry ignored\"", "parent": 616, "children": [], "start_point": {"row": 155, "column": 4}, "end_point": {"row": 155, "column": 44}}, {"id": 619, "type": "cast_expression", "text": "(void)fprintf(stderr,\n\t\t\t\t\" (point at both %s and %s)\\n\",sp->dat,zp->dat)", "parent": 601, "children": [620, 622], "start_point": {"row": 156, "column": 4}, "end_point": {"row": 157, "column": 51}}, {"id": 620, "type": "type_descriptor", "text": "void", "parent": 619, "children": [621], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 9}}, {"id": 621, "type": "primitive_type", "text": "void", "parent": 620, "children": [], "start_point": {"row": 156, "column": 5}, "end_point": {"row": 156, "column": 9}}, {"id": 622, "type": "call_expression", "text": "fprintf(stderr,\n\t\t\t\t\" (point at both %s and %s)\\n\",sp->dat,zp->dat)", "parent": 619, "children": [623, 624], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 157, "column": 51}}, {"id": 623, "type": "identifier", "text": "fprintf", "parent": 622, "children": [], "start_point": {"row": 156, "column": 10}, "end_point": {"row": 156, "column": 17}}, {"id": 624, "type": "argument_list", "text": "(stderr,\n\t\t\t\t\" (point at both %s and %s)\\n\",sp->dat,zp->dat)", "parent": 622, "children": [625, 626, 628, 631], "start_point": {"row": 156, "column": 17}, "end_point": {"row": 157, "column": 51}}, {"id": 625, "type": "identifier", "text": "stderr", "parent": 624, "children": [], "start_point": {"row": 156, "column": 18}, "end_point": {"row": 156, "column": 24}}, {"id": 626, "type": "string_literal", "text": "\" (point at both %s and %s)\\n\"", "parent": 624, "children": [627], "start_point": {"row": 157, "column": 4}, "end_point": {"row": 157, "column": 34}}, {"id": 627, "type": "escape_sequence", "text": "\\n", "parent": 626, "children": [], "start_point": {"row": 157, "column": 31}, "end_point": {"row": 157, "column": 33}}, {"id": 628, "type": "field_expression", "text": "sp->dat", "parent": 624, "children": [629, 630], "start_point": {"row": 157, "column": 35}, "end_point": {"row": 157, "column": 42}}, {"id": 629, "type": "identifier", "text": "sp", "parent": 628, "children": [], "start_point": {"row": 157, "column": 35}, "end_point": {"row": 157, "column": 37}}, {"id": 630, "type": "field_identifier", "text": "dat", "parent": 628, "children": [], "start_point": {"row": 157, "column": 39}, "end_point": {"row": 157, "column": 42}}, {"id": 631, "type": "field_expression", "text": "zp->dat", "parent": 624, "children": [632, 633], "start_point": {"row": 157, "column": 43}, "end_point": {"row": 157, "column": 50}}, {"id": 632, "type": "identifier", "text": "zp", "parent": 631, "children": [], "start_point": {"row": 157, "column": 43}, "end_point": {"row": 157, "column": 45}}, {"id": 633, "type": "field_identifier", "text": "dat", "parent": 631, "children": [], "start_point": {"row": 157, "column": 47}, "end_point": {"row": 157, "column": 50}}, {"id": 634, "type": "cast_expression", "text": "(void)free(sp)", "parent": 601, "children": [635, 637], "start_point": {"row": 158, "column": 4}, "end_point": {"row": 158, "column": 18}}, {"id": 635, "type": "type_descriptor", "text": "void", "parent": 634, "children": [636], "start_point": {"row": 158, "column": 5}, "end_point": {"row": 158, "column": 9}}, {"id": 636, "type": "primitive_type", "text": "void", "parent": 635, "children": [], "start_point": {"row": 158, "column": 5}, "end_point": {"row": 158, "column": 9}}, {"id": 637, "type": "call_expression", "text": "free(sp)", "parent": 634, "children": [638, 639], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 158, "column": 18}}, {"id": 638, "type": "identifier", "text": "free", "parent": 637, "children": [], "start_point": {"row": 158, "column": 10}, "end_point": {"row": 158, "column": 14}}, {"id": 639, "type": "argument_list", "text": "(sp)", "parent": 637, "children": [640], "start_point": {"row": 158, "column": 14}, "end_point": {"row": 158, "column": 18}}, {"id": 640, "type": "identifier", "text": "sp", "parent": 639, "children": [], "start_point": {"row": 158, "column": 15}, "end_point": {"row": 158, "column": 17}}, {"id": 641, "type": "assignment_expression", "text": "sp = (struct xsym *)0", "parent": 601, "children": [642, 643, 644], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 25}}, {"id": 642, "type": "identifier", "text": "sp", "parent": 641, "children": [], "start_point": {"row": 161, "column": 4}, "end_point": {"row": 161, "column": 6}}, {"id": 643, "type": "=", "text": "=", "parent": 641, "children": [], "start_point": {"row": 161, "column": 7}, "end_point": {"row": 161, "column": 8}}, {"id": 644, "type": "cast_expression", "text": "(struct xsym *)0", "parent": 641, "children": [645, 651], "start_point": {"row": 161, "column": 9}, "end_point": {"row": 161, "column": 25}}, {"id": 645, "type": "type_descriptor", "text": "struct xsym *", "parent": 644, "children": [646, 649], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 23}}, {"id": 646, "type": "struct_specifier", "text": "struct xsym", "parent": 645, "children": [647, 648], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 21}}, {"id": 647, "type": "struct", "text": "struct", "parent": 646, "children": [], "start_point": {"row": 161, "column": 10}, "end_point": {"row": 161, "column": 16}}, {"id": 648, "type": "type_identifier", "text": "xsym", "parent": 646, "children": [], "start_point": {"row": 161, "column": 17}, "end_point": {"row": 161, "column": 21}}, {"id": 649, "type": "abstract_pointer_declarator", "text": "*", "parent": 645, "children": [650], "start_point": {"row": 161, "column": 22}, "end_point": {"row": 161, "column": 23}}, {"id": 650, "type": "*", "text": "*", "parent": 649, "children": [], "start_point": {"row": 161, "column": 22}, "end_point": {"row": 161, "column": 23}}, {"id": 651, "type": "number_literal", "text": "0", "parent": 644, "children": [], "start_point": {"row": 161, "column": 24}, "end_point": {"row": 161, "column": 25}}, {"id": 652, "type": "break_statement", "text": "break;", "parent": 601, "children": [653], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 10}}, {"id": 653, "type": "break", "text": "break", "parent": 652, "children": [], "start_point": {"row": 162, "column": 4}, "end_point": {"row": 162, "column": 9}}, {"id": 654, "type": "assignment_expression", "text": "zp = zp->nxt", "parent": 588, "children": [655, 656, 657], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 15}}, {"id": 655, "type": "identifier", "text": "zp", "parent": 654, "children": [], "start_point": {"row": 164, "column": 3}, "end_point": {"row": 164, "column": 5}}, {"id": 656, "type": "=", "text": "=", "parent": 654, "children": [], "start_point": {"row": 164, "column": 6}, "end_point": {"row": 164, "column": 7}}, {"id": 657, "type": "field_expression", "text": "zp->nxt", "parent": 654, "children": [658, 659], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 15}}, {"id": 658, "type": "identifier", "text": "zp", "parent": 657, "children": [], "start_point": {"row": 164, "column": 8}, "end_point": {"row": 164, "column": 10}}, {"id": 659, "type": "field_identifier", "text": "nxt", "parent": 657, "children": [], "start_point": {"row": 164, "column": 12}, "end_point": {"row": 164, "column": 15}}, {"id": 660, "type": "if_statement", "text": "if(sp != (struct xsym *)0) {\n\t\t\tsp->nxt = shash[sp->map % HASHSIZ];\n\t\t\tshash[sp->map % HASHSIZ] = sp;\n\t\t}", "parent": 219, "children": [661], "start_point": {"row": 168, "column": 2}, "end_point": {"row": 171, "column": 3}}, {"id": 661, "type": "parenthesized_expression", "text": "(sp != (struct xsym *)0)", "parent": 660, "children": [662], "start_point": {"row": 168, "column": 4}, "end_point": {"row": 168, "column": 28}}, {"id": 662, "type": "binary_expression", "text": "sp != (struct xsym *)0", "parent": 661, "children": [663, 664, 665], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 27}}, {"id": 663, "type": "identifier", "text": "sp", "parent": 662, "children": [], "start_point": {"row": 168, "column": 5}, "end_point": {"row": 168, "column": 7}}, {"id": 664, "type": "!=", "text": "!=", "parent": 662, "children": [], "start_point": {"row": 168, "column": 8}, "end_point": {"row": 168, "column": 10}}, {"id": 665, "type": "cast_expression", "text": "(struct xsym *)0", "parent": 662, "children": [666, 672], "start_point": {"row": 168, "column": 11}, "end_point": {"row": 168, "column": 27}}, {"id": 666, "type": "type_descriptor", "text": "struct xsym *", "parent": 665, "children": [667, 670], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 25}}, {"id": 667, "type": "struct_specifier", "text": "struct xsym", "parent": 666, "children": [668, 669], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 23}}, {"id": 668, "type": "struct", "text": "struct", "parent": 667, "children": [], "start_point": {"row": 168, "column": 12}, "end_point": {"row": 168, "column": 18}}, {"id": 669, "type": "type_identifier", "text": "xsym", "parent": 667, "children": [], "start_point": {"row": 168, "column": 19}, "end_point": {"row": 168, "column": 23}}, {"id": 670, "type": "abstract_pointer_declarator", "text": "*", "parent": 666, "children": [671], "start_point": {"row": 168, "column": 24}, "end_point": {"row": 168, "column": 25}}, {"id": 671, "type": "*", "text": "*", "parent": 670, "children": [], "start_point": {"row": 168, "column": 24}, "end_point": {"row": 168, "column": 25}}, {"id": 672, "type": "number_literal", "text": "0", "parent": 665, "children": [], "start_point": {"row": 168, "column": 26}, "end_point": {"row": 168, "column": 27}}, {"id": 673, "type": "assignment_expression", "text": "sp->nxt = shash[sp->map % HASHSIZ]", "parent": 660, "children": [674, 677, 678], "start_point": {"row": 169, "column": 3}, "end_point": {"row": 169, "column": 37}}, {"id": 674, "type": "field_expression", "text": "sp->nxt", "parent": 673, "children": [675, 676], "start_point": {"row": 169, "column": 3}, "end_point": {"row": 169, "column": 10}}, {"id": 675, "type": "identifier", "text": "sp", "parent": 674, "children": [], "start_point": {"row": 169, "column": 3}, "end_point": {"row": 169, "column": 5}}, {"id": 676, "type": "field_identifier", "text": "nxt", "parent": 674, "children": [], "start_point": {"row": 169, "column": 7}, "end_point": {"row": 169, "column": 10}}, {"id": 677, "type": "=", "text": "=", "parent": 673, "children": [], "start_point": {"row": 169, "column": 11}, "end_point": {"row": 169, "column": 12}}, {"id": 678, "type": "subscript_expression", "text": "shash[sp->map % HASHSIZ]", "parent": 673, "children": [679, 680], "start_point": {"row": 169, "column": 13}, "end_point": {"row": 169, "column": 37}}, {"id": 679, "type": "identifier", "text": "shash", "parent": 678, "children": [], "start_point": {"row": 169, "column": 13}, "end_point": {"row": 169, "column": 18}}, {"id": 680, "type": "binary_expression", "text": "sp->map % HASHSIZ", "parent": 678, "children": [681, 684, 685], "start_point": {"row": 169, "column": 19}, "end_point": {"row": 169, "column": 36}}, {"id": 681, "type": "field_expression", "text": "sp->map", "parent": 680, "children": [682, 683], "start_point": {"row": 169, "column": 19}, "end_point": {"row": 169, "column": 26}}, {"id": 682, "type": "identifier", "text": "sp", "parent": 681, "children": [], "start_point": {"row": 169, "column": 19}, "end_point": {"row": 169, "column": 21}}, {"id": 683, "type": "field_identifier", "text": "map", "parent": 681, "children": [], "start_point": {"row": 169, "column": 23}, "end_point": {"row": 169, "column": 26}}, {"id": 684, "type": "%", "text": "%", "parent": 680, "children": [], "start_point": {"row": 169, "column": 27}, "end_point": {"row": 169, "column": 28}}, {"id": 685, "type": "identifier", "text": "HASHSIZ", "parent": 680, "children": [], "start_point": {"row": 169, "column": 29}, "end_point": {"row": 169, "column": 36}}, {"id": 686, "type": "assignment_expression", "text": "shash[sp->map % HASHSIZ] = sp", "parent": 660, "children": [687, 695, 696], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 32}}, {"id": 687, "type": "subscript_expression", "text": "shash[sp->map % HASHSIZ]", "parent": 686, "children": [688, 689], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 27}}, {"id": 688, "type": "identifier", "text": "shash", "parent": 687, "children": [], "start_point": {"row": 170, "column": 3}, "end_point": {"row": 170, "column": 8}}, {"id": 689, "type": "binary_expression", "text": "sp->map % HASHSIZ", "parent": 687, "children": [690, 693, 694], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 26}}, {"id": 690, "type": "field_expression", "text": "sp->map", "parent": 689, "children": [691, 692], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 16}}, {"id": 691, "type": "identifier", "text": "sp", "parent": 690, "children": [], "start_point": {"row": 170, "column": 9}, "end_point": {"row": 170, "column": 11}}, {"id": 692, "type": "field_identifier", "text": "map", "parent": 690, "children": [], "start_point": {"row": 170, "column": 13}, "end_point": {"row": 170, "column": 16}}, {"id": 693, "type": "%", "text": "%", "parent": 689, "children": [], "start_point": {"row": 170, "column": 17}, "end_point": {"row": 170, "column": 18}}, {"id": 694, "type": "identifier", "text": "HASHSIZ", "parent": 689, "children": [], "start_point": {"row": 170, "column": 19}, "end_point": {"row": 170, "column": 26}}, {"id": 695, "type": "=", "text": "=", "parent": 686, "children": [], "start_point": {"row": 170, "column": 28}, "end_point": {"row": 170, "column": 29}}, {"id": 696, "type": "identifier", "text": "sp", "parent": 686, "children": [], "start_point": {"row": 170, "column": 30}, "end_point": {"row": 170, "column": 32}}, {"id": 697, "type": "cast_expression", "text": "(void)fclose(lp)", "parent": null, "children": [698, 700], "start_point": {"row": 173, "column": 1}, "end_point": {"row": 173, "column": 17}}, {"id": 698, "type": "type_descriptor", "text": "void", "parent": 697, "children": [699], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 6}}, {"id": 699, "type": "primitive_type", "text": "void", "parent": 698, "children": [], "start_point": {"row": 173, "column": 2}, "end_point": {"row": 173, "column": 6}}, {"id": 700, "type": "call_expression", "text": "fclose(lp)", "parent": 697, "children": [701, 702], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 17}}, {"id": 701, "type": "identifier", "text": "fclose", "parent": 700, "children": [], "start_point": {"row": 173, "column": 7}, "end_point": {"row": 173, "column": 13}}, {"id": 702, "type": "argument_list", "text": "(lp)", "parent": 700, "children": [703], "start_point": {"row": 173, "column": 13}, "end_point": {"row": 173, "column": 17}}, {"id": 703, "type": "identifier", "text": "lp", "parent": 702, "children": [], "start_point": {"row": 173, "column": 14}, "end_point": {"row": 173, "column": 16}}, {"id": 704, "type": "while_statement", "text": "while(read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk)) {\n\n\t\t/* if the pointer was not deallocated, note it */\n\t\tif(p.dsk.siz != 0) {\n\t\t\tzp = shash[p.dsk.smap % HASHSIZ];\n\t\t\twhile(zp != (struct xsym *)0) {\n\t\t\t\tif(zp->map == p.dsk.smap) {\n\t\t\t\t\tprintf(\"%d bytes missing %s line:%d\\n\",\n\t\t\t\t\tp.dsk.siz,zp->dat,zp->lnum);\n\t\t\t\t}\n\t\t\t\tzp = zp->nxt;\n\t\t\t}\n\t\t\tptrbad++;\n\t\t\tptrlos += p.dsk.siz;\n\t\t}\n\t\tptrcnt++;\n\t}", "parent": null, "children": [705], "start_point": {"row": 175, "column": 1}, "end_point": {"row": 191, "column": 2}}, {"id": 705, "type": "parenthesized_expression", "text": "(read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk))", "parent": 704, "children": [706], "start_point": {"row": 175, "column": 6}, "end_point": {"row": 175, "column": 64}}, {"id": 706, "type": "binary_expression", "text": "read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk)", "parent": 705, "children": [707, 726, 727], "start_point": {"row": 175, "column": 7}, "end_point": {"row": 175, "column": 63}}, {"id": 707, "type": "call_expression", "text": "read(fd,(char *)&(p.dsk),sizeof(p.dsk))", "parent": 706, "children": [708, 709], "start_point": {"row": 175, "column": 7}, "end_point": {"row": 175, "column": 46}}, {"id": 708, "type": "identifier", "text": "read", "parent": 707, "children": [], "start_point": {"row": 175, "column": 7}, "end_point": {"row": 175, "column": 11}}, {"id": 709, "type": "argument_list", "text": "(fd,(char *)&(p.dsk),sizeof(p.dsk))", "parent": 707, "children": [710, 711, 721], "start_point": {"row": 175, "column": 11}, "end_point": {"row": 175, "column": 46}}, {"id": 710, "type": "identifier", "text": "fd", "parent": 709, "children": [], "start_point": {"row": 175, "column": 12}, "end_point": {"row": 175, "column": 14}}, {"id": 711, "type": "cast_expression", "text": "(char *)&(p.dsk)", "parent": 709, "children": [712, 716], "start_point": {"row": 175, "column": 15}, "end_point": {"row": 175, "column": 31}}, {"id": 712, "type": "type_descriptor", "text": "char *", "parent": 711, "children": [713, 714], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 22}}, {"id": 713, "type": "primitive_type", "text": "char", "parent": 712, "children": [], "start_point": {"row": 175, "column": 16}, "end_point": {"row": 175, "column": 20}}, {"id": 714, "type": "abstract_pointer_declarator", "text": "*", "parent": 712, "children": [715], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 22}}, {"id": 715, "type": "*", "text": "*", "parent": 714, "children": [], "start_point": {"row": 175, "column": 21}, "end_point": {"row": 175, "column": 22}}, {"id": 716, "type": "pointer_expression", "text": "&(p.dsk)", "parent": 711, "children": [717], "start_point": {"row": 175, "column": 23}, "end_point": {"row": 175, "column": 31}}, {"id": 717, "type": "parenthesized_expression", "text": "(p.dsk)", "parent": 716, "children": [718], "start_point": {"row": 175, "column": 24}, "end_point": {"row": 175, "column": 31}}, {"id": 718, "type": "field_expression", "text": "p.dsk", "parent": 717, "children": [719, 720], "start_point": {"row": 175, "column": 25}, "end_point": {"row": 175, "column": 30}}, {"id": 719, "type": "identifier", "text": "p", "parent": 718, "children": [], "start_point": {"row": 175, "column": 25}, "end_point": {"row": 175, "column": 26}}, {"id": 720, "type": "field_identifier", "text": "dsk", "parent": 718, "children": [], "start_point": {"row": 175, "column": 27}, "end_point": {"row": 175, "column": 30}}, {"id": 721, "type": "sizeof_expression", "text": "sizeof(p.dsk)", "parent": 709, "children": [722], "start_point": {"row": 175, "column": 32}, "end_point": {"row": 175, "column": 45}}, {"id": 722, "type": "parenthesized_expression", "text": "(p.dsk)", "parent": 721, "children": [723], "start_point": {"row": 175, "column": 38}, "end_point": {"row": 175, "column": 45}}, {"id": 723, "type": "field_expression", "text": "p.dsk", "parent": 722, "children": [724, 725], "start_point": {"row": 175, "column": 39}, "end_point": {"row": 175, "column": 44}}, {"id": 724, "type": "identifier", "text": "p", "parent": 723, "children": [], "start_point": {"row": 175, "column": 39}, "end_point": {"row": 175, "column": 40}}, {"id": 725, "type": "field_identifier", "text": "dsk", "parent": 723, "children": [], "start_point": {"row": 175, "column": 41}, "end_point": {"row": 175, "column": 44}}, {"id": 726, "type": "==", "text": "==", "parent": 706, "children": [], "start_point": {"row": 175, "column": 47}, "end_point": {"row": 175, "column": 49}}, {"id": 727, "type": "sizeof_expression", "text": "sizeof(p.dsk)", "parent": 706, "children": [728], "start_point": {"row": 175, "column": 50}, "end_point": {"row": 175, "column": 63}}, {"id": 728, "type": "parenthesized_expression", "text": "(p.dsk)", "parent": 727, "children": [729], "start_point": {"row": 175, "column": 56}, "end_point": {"row": 175, "column": 63}}, {"id": 729, "type": "field_expression", "text": "p.dsk", "parent": 728, "children": [730, 731], "start_point": {"row": 175, "column": 57}, "end_point": {"row": 175, "column": 62}}, {"id": 730, "type": "identifier", "text": "p", "parent": 729, "children": [], "start_point": {"row": 175, "column": 57}, "end_point": {"row": 175, "column": 58}}, {"id": 731, "type": "field_identifier", "text": "dsk", "parent": 729, "children": [], "start_point": {"row": 175, "column": 59}, "end_point": {"row": 175, "column": 62}}, {"id": 732, "type": "if_statement", "text": "if(p.dsk.siz != 0) {\n\t\t\tzp = shash[p.dsk.smap % HASHSIZ];\n\t\t\twhile(zp != (struct xsym *)0) {\n\t\t\t\tif(zp->map == p.dsk.smap) {\n\t\t\t\t\tprintf(\"%d bytes missing %s line:%d\\n\",\n\t\t\t\t\tp.dsk.siz,zp->dat,zp->lnum);\n\t\t\t\t}\n\t\t\t\tzp = zp->nxt;\n\t\t\t}\n\t\t\tptrbad++;\n\t\t\tptrlos += p.dsk.siz;\n\t\t}", "parent": 704, "children": [733], "start_point": {"row": 178, "column": 2}, "end_point": {"row": 189, "column": 3}}, {"id": 733, "type": "parenthesized_expression", "text": "(p.dsk.siz != 0)", "parent": 732, "children": [734], "start_point": {"row": 178, "column": 4}, "end_point": {"row": 178, "column": 20}}, {"id": 734, "type": "binary_expression", "text": "p.dsk.siz != 0", "parent": 733, "children": [735, 740, 741], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 19}}, {"id": 735, "type": "field_expression", "text": "p.dsk.siz", "parent": 734, "children": [736, 739], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 14}}, {"id": 736, "type": "field_expression", "text": "p.dsk", "parent": 735, "children": [737, 738], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 10}}, {"id": 737, "type": "identifier", "text": "p", "parent": 736, "children": [], "start_point": {"row": 178, "column": 5}, "end_point": {"row": 178, "column": 6}}, {"id": 738, "type": "field_identifier", "text": "dsk", "parent": 736, "children": [], "start_point": {"row": 178, "column": 7}, "end_point": {"row": 178, "column": 10}}, {"id": 739, "type": "field_identifier", "text": "siz", "parent": 735, "children": [], "start_point": {"row": 178, "column": 11}, "end_point": {"row": 178, "column": 14}}, {"id": 740, "type": "!=", "text": "!=", "parent": 734, "children": [], "start_point": {"row": 178, "column": 15}, "end_point": {"row": 178, "column": 17}}, {"id": 741, "type": "number_literal", "text": "0", "parent": 734, "children": [], "start_point": {"row": 178, "column": 18}, "end_point": {"row": 178, "column": 19}}, {"id": 742, "type": "assignment_expression", "text": "zp = shash[p.dsk.smap % HASHSIZ]", "parent": 732, "children": [743, 744, 745], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 35}}, {"id": 743, "type": "identifier", "text": "zp", "parent": 742, "children": [], "start_point": {"row": 179, "column": 3}, "end_point": {"row": 179, "column": 5}}, {"id": 744, "type": "=", "text": "=", "parent": 742, "children": [], "start_point": {"row": 179, "column": 6}, "end_point": {"row": 179, "column": 7}}, {"id": 745, "type": "subscript_expression", "text": "shash[p.dsk.smap % HASHSIZ]", "parent": 742, "children": [746, 747], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 35}}, {"id": 746, "type": "identifier", "text": "shash", "parent": 745, "children": [], "start_point": {"row": 179, "column": 8}, "end_point": {"row": 179, "column": 13}}, {"id": 747, "type": "binary_expression", "text": "p.dsk.smap % HASHSIZ", "parent": 745, "children": [748, 753, 754], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 34}}, {"id": 748, "type": "field_expression", "text": "p.dsk.smap", "parent": 747, "children": [749, 752], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 24}}, {"id": 749, "type": "field_expression", "text": "p.dsk", "parent": 748, "children": [750, 751], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 19}}, {"id": 750, "type": "identifier", "text": "p", "parent": 749, "children": [], "start_point": {"row": 179, "column": 14}, "end_point": {"row": 179, "column": 15}}, {"id": 751, "type": "field_identifier", "text": "dsk", "parent": 749, "children": [], "start_point": {"row": 179, "column": 16}, "end_point": {"row": 179, "column": 19}}, {"id": 752, "type": "field_identifier", "text": "smap", "parent": 748, "children": [], "start_point": {"row": 179, "column": 20}, "end_point": {"row": 179, "column": 24}}, {"id": 753, "type": "%", "text": "%", "parent": 747, "children": [], "start_point": {"row": 179, "column": 25}, "end_point": {"row": 179, "column": 26}}, {"id": 754, "type": "identifier", "text": "HASHSIZ", "parent": 747, "children": [], "start_point": {"row": 179, "column": 27}, "end_point": {"row": 179, "column": 34}}, {"id": 755, "type": "while_statement", "text": "while(zp != (struct xsym *)0) {\n\t\t\t\tif(zp->map == p.dsk.smap) {\n\t\t\t\t\tprintf(\"%d bytes missing %s line:%d\\n\",\n\t\t\t\t\tp.dsk.siz,zp->dat,zp->lnum);\n\t\t\t\t}\n\t\t\t\tzp = zp->nxt;\n\t\t\t}", "parent": 732, "children": [756], "start_point": {"row": 180, "column": 3}, "end_point": {"row": 186, "column": 4}}, {"id": 756, "type": "parenthesized_expression", "text": "(zp != (struct xsym *)0)", "parent": 755, "children": [757], "start_point": {"row": 180, "column": 8}, "end_point": {"row": 180, "column": 32}}, {"id": 757, "type": "binary_expression", "text": "zp != (struct xsym *)0", "parent": 756, "children": [758, 759, 760], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 31}}, {"id": 758, "type": "identifier", "text": "zp", "parent": 757, "children": [], "start_point": {"row": 180, "column": 9}, "end_point": {"row": 180, "column": 11}}, {"id": 759, "type": "!=", "text": "!=", "parent": 757, "children": [], "start_point": {"row": 180, "column": 12}, "end_point": {"row": 180, "column": 14}}, {"id": 760, "type": "cast_expression", "text": "(struct xsym *)0", "parent": 757, "children": [761, 767], "start_point": {"row": 180, "column": 15}, "end_point": {"row": 180, "column": 31}}, {"id": 761, "type": "type_descriptor", "text": "struct xsym *", "parent": 760, "children": [762, 765], "start_point": {"row": 180, "column": 16}, "end_point": {"row": 180, "column": 29}}, {"id": 762, "type": "struct_specifier", "text": "struct xsym", "parent": 761, "children": [763, 764], "start_point": {"row": 180, "column": 16}, "end_point": {"row": 180, "column": 27}}, {"id": 763, "type": "struct", "text": "struct", "parent": 762, "children": [], "start_point": {"row": 180, "column": 16}, "end_point": {"row": 180, "column": 22}}, {"id": 764, "type": "type_identifier", "text": "xsym", "parent": 762, "children": [], "start_point": {"row": 180, "column": 23}, "end_point": {"row": 180, "column": 27}}, {"id": 765, "type": "abstract_pointer_declarator", "text": "*", "parent": 761, "children": [766], "start_point": {"row": 180, "column": 28}, "end_point": {"row": 180, "column": 29}}, {"id": 766, "type": "*", "text": "*", "parent": 765, "children": [], "start_point": {"row": 180, "column": 28}, "end_point": {"row": 180, "column": 29}}, {"id": 767, "type": "number_literal", "text": "0", "parent": 760, "children": [], "start_point": {"row": 180, "column": 30}, "end_point": {"row": 180, "column": 31}}, {"id": 768, "type": "if_statement", "text": "if(zp->map == p.dsk.smap) {\n\t\t\t\t\tprintf(\"%d bytes missing %s line:%d\\n\",\n\t\t\t\t\tp.dsk.siz,zp->dat,zp->lnum);\n\t\t\t\t}", "parent": 755, "children": [769], "start_point": {"row": 181, "column": 4}, "end_point": {"row": 184, "column": 5}}, {"id": 769, "type": "parenthesized_expression", "text": "(zp->map == p.dsk.smap)", "parent": 768, "children": [770], "start_point": {"row": 181, "column": 6}, "end_point": {"row": 181, "column": 29}}, {"id": 770, "type": "binary_expression", "text": "zp->map == p.dsk.smap", "parent": 769, "children": [771, 774, 775], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 28}}, {"id": 771, "type": "field_expression", "text": "zp->map", "parent": 770, "children": [772, 773], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 14}}, {"id": 772, "type": "identifier", "text": "zp", "parent": 771, "children": [], "start_point": {"row": 181, "column": 7}, "end_point": {"row": 181, "column": 9}}, {"id": 773, "type": "field_identifier", "text": "map", "parent": 771, "children": [], "start_point": {"row": 181, "column": 11}, "end_point": {"row": 181, "column": 14}}, {"id": 774, "type": "==", "text": "==", "parent": 770, "children": [], "start_point": {"row": 181, "column": 15}, "end_point": {"row": 181, "column": 17}}, {"id": 775, "type": "field_expression", "text": "p.dsk.smap", "parent": 770, "children": [776, 779], "start_point": {"row": 181, "column": 18}, "end_point": {"row": 181, "column": 28}}, {"id": 776, "type": "field_expression", "text": "p.dsk", "parent": 775, "children": [777, 778], "start_point": {"row": 181, "column": 18}, "end_point": {"row": 181, "column": 23}}, {"id": 777, "type": "identifier", "text": "p", "parent": 776, "children": [], "start_point": {"row": 181, "column": 18}, "end_point": {"row": 181, "column": 19}}, {"id": 778, "type": "field_identifier", "text": "dsk", "parent": 776, "children": [], "start_point": {"row": 181, "column": 20}, "end_point": {"row": 181, "column": 23}}, {"id": 779, "type": "field_identifier", "text": "smap", "parent": 775, "children": [], "start_point": {"row": 181, "column": 24}, "end_point": {"row": 181, "column": 28}}, {"id": 780, "type": "call_expression", "text": "printf(\"%d bytes missing %s line:%d\\n\",\n\t\t\t\t\tp.dsk.siz,zp->dat,zp->lnum)", "parent": 768, "children": [781, 782], "start_point": {"row": 182, "column": 5}, "end_point": {"row": 183, "column": 32}}, {"id": 781, "type": "identifier", "text": "printf", "parent": 780, "children": [], "start_point": {"row": 182, "column": 5}, "end_point": {"row": 182, "column": 11}}, {"id": 782, "type": "argument_list", "text": "(\"%d bytes missing %s line:%d\\n\",\n\t\t\t\t\tp.dsk.siz,zp->dat,zp->lnum)", "parent": 780, "children": [783, 785, 790, 793], "start_point": {"row": 182, "column": 11}, "end_point": {"row": 183, "column": 32}}, {"id": 783, "type": "string_literal", "text": "\"%d bytes missing %s line:%d\\n\"", "parent": 782, "children": [784], "start_point": {"row": 182, "column": 12}, "end_point": {"row": 182, "column": 43}}, {"id": 784, "type": "escape_sequence", "text": "\\n", "parent": 783, "children": [], "start_point": {"row": 182, "column": 40}, "end_point": {"row": 182, "column": 42}}, {"id": 785, "type": "field_expression", "text": "p.dsk.siz", "parent": 782, "children": [786, 789], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 14}}, {"id": 786, "type": "field_expression", "text": "p.dsk", "parent": 785, "children": [787, 788], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 10}}, {"id": 787, "type": "identifier", "text": "p", "parent": 786, "children": [], "start_point": {"row": 183, "column": 5}, "end_point": {"row": 183, "column": 6}}, {"id": 788, "type": "field_identifier", "text": "dsk", "parent": 786, "children": [], "start_point": {"row": 183, "column": 7}, "end_point": {"row": 183, "column": 10}}, {"id": 789, "type": "field_identifier", "text": "siz", "parent": 785, "children": [], "start_point": {"row": 183, "column": 11}, "end_point": {"row": 183, "column": 14}}, {"id": 790, "type": "field_expression", "text": "zp->dat", "parent": 782, "children": [791, 792], "start_point": {"row": 183, "column": 15}, "end_point": {"row": 183, "column": 22}}, {"id": 791, "type": "identifier", "text": "zp", "parent": 790, "children": [], "start_point": {"row": 183, "column": 15}, "end_point": {"row": 183, "column": 17}}, {"id": 792, "type": "field_identifier", "text": "dat", "parent": 790, "children": [], "start_point": {"row": 183, "column": 19}, "end_point": {"row": 183, "column": 22}}, {"id": 793, "type": "field_expression", "text": "zp->lnum", "parent": 782, "children": [794, 795], "start_point": {"row": 183, "column": 23}, "end_point": {"row": 183, "column": 31}}, {"id": 794, "type": "identifier", "text": "zp", "parent": 793, "children": [], "start_point": {"row": 183, "column": 23}, "end_point": {"row": 183, "column": 25}}, {"id": 795, "type": "field_identifier", "text": "lnum", "parent": 793, "children": [], "start_point": {"row": 183, "column": 27}, "end_point": {"row": 183, "column": 31}}, {"id": 796, "type": "assignment_expression", "text": "zp = zp->nxt", "parent": 755, "children": [797, 798, 799], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 16}}, {"id": 797, "type": "identifier", "text": "zp", "parent": 796, "children": [], "start_point": {"row": 185, "column": 4}, "end_point": {"row": 185, "column": 6}}, {"id": 798, "type": "=", "text": "=", "parent": 796, "children": [], "start_point": {"row": 185, "column": 7}, "end_point": {"row": 185, "column": 8}}, {"id": 799, "type": "field_expression", "text": "zp->nxt", "parent": 796, "children": [800, 801], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 16}}, {"id": 800, "type": "identifier", "text": "zp", "parent": 799, "children": [], "start_point": {"row": 185, "column": 9}, "end_point": {"row": 185, "column": 11}}, {"id": 801, "type": "field_identifier", "text": "nxt", "parent": 799, "children": [], "start_point": {"row": 185, "column": 13}, "end_point": {"row": 185, "column": 16}}, {"id": 802, "type": "update_expression", "text": "ptrbad++", "parent": 732, "children": [803, 804], "start_point": {"row": 187, "column": 3}, "end_point": {"row": 187, "column": 11}}, {"id": 803, "type": "identifier", "text": "ptrbad", "parent": 802, "children": [], "start_point": {"row": 187, "column": 3}, "end_point": {"row": 187, "column": 9}}, {"id": 804, "type": "++", "text": "++", "parent": 802, "children": [], "start_point": {"row": 187, "column": 9}, "end_point": {"row": 187, "column": 11}}, {"id": 805, "type": "assignment_expression", "text": "ptrlos += p.dsk.siz", "parent": 732, "children": [806, 807, 808], "start_point": {"row": 188, "column": 3}, "end_point": {"row": 188, "column": 22}}, {"id": 806, "type": "identifier", "text": "ptrlos", "parent": 805, "children": [], "start_point": {"row": 188, "column": 3}, "end_point": {"row": 188, "column": 9}}, {"id": 807, "type": "+=", "text": "+=", "parent": 805, "children": [], "start_point": {"row": 188, "column": 10}, "end_point": {"row": 188, "column": 12}}, {"id": 808, "type": "field_expression", "text": "p.dsk.siz", "parent": 805, "children": [809, 812], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 22}}, {"id": 809, "type": "field_expression", "text": "p.dsk", "parent": 808, "children": [810, 811], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 18}}, {"id": 810, "type": "identifier", "text": "p", "parent": 809, "children": [], "start_point": {"row": 188, "column": 13}, "end_point": {"row": 188, "column": 14}}, {"id": 811, "type": "field_identifier", "text": "dsk", "parent": 809, "children": [], "start_point": {"row": 188, "column": 15}, "end_point": {"row": 188, "column": 18}}, {"id": 812, "type": "field_identifier", "text": "siz", "parent": 808, "children": [], "start_point": {"row": 188, "column": 19}, "end_point": {"row": 188, "column": 22}}, {"id": 813, "type": "update_expression", "text": "ptrcnt++", "parent": 704, "children": [814, 815], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 10}}, {"id": 814, "type": "identifier", "text": "ptrcnt", "parent": 813, "children": [], "start_point": {"row": 190, "column": 2}, "end_point": {"row": 190, "column": 8}}, {"id": 815, "type": "++", "text": "++", "parent": 813, "children": [], "start_point": {"row": 190, "column": 8}, "end_point": {"row": 190, "column": 10}}, {"id": 816, "type": "call_expression", "text": "printf(\"%d pointers, %d lost totalling %d bytes\\n\",\n\t\tptrcnt,ptrbad,ptrlos)", "parent": null, "children": [817, 818], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 194, "column": 23}}, {"id": 817, "type": "identifier", "text": "printf", "parent": 816, "children": [], "start_point": {"row": 193, "column": 1}, "end_point": {"row": 193, "column": 7}}, {"id": 818, "type": "argument_list", "text": "(\"%d pointers, %d lost totalling %d bytes\\n\",\n\t\tptrcnt,ptrbad,ptrlos)", "parent": 816, "children": [819, 821, 822, 823], "start_point": {"row": 193, "column": 7}, "end_point": {"row": 194, "column": 23}}, {"id": 819, "type": "string_literal", "text": "\"%d pointers, %d lost totalling %d bytes\\n\"", "parent": 818, "children": [820], "start_point": {"row": 193, "column": 8}, "end_point": {"row": 193, "column": 51}}, {"id": 820, "type": "escape_sequence", "text": "\\n", "parent": 819, "children": [], "start_point": {"row": 193, "column": 48}, "end_point": {"row": 193, "column": 50}}, {"id": 821, "type": "identifier", "text": "ptrcnt", "parent": 818, "children": [], "start_point": {"row": 194, "column": 2}, "end_point": {"row": 194, "column": 8}}, {"id": 822, "type": "identifier", "text": "ptrbad", "parent": 818, "children": [], "start_point": {"row": 194, "column": 9}, "end_point": {"row": 194, "column": 15}}, {"id": 823, "type": "identifier", "text": "ptrlos", "parent": 818, "children": [], "start_point": {"row": 194, "column": 16}, "end_point": {"row": 194, "column": 22}}, {"id": 824, "type": "call_expression", "text": "exit(0)", "parent": null, "children": [825, 826], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 8}}, {"id": 825, "type": "identifier", "text": "exit", "parent": 824, "children": [], "start_point": {"row": 195, "column": 1}, "end_point": {"row": 195, "column": 5}}, {"id": 826, "type": "argument_list", "text": "(0)", "parent": 824, "children": [827], "start_point": {"row": 195, "column": 5}, "end_point": {"row": 195, "column": 8}}, {"id": 827, "type": "number_literal", "text": "0", "parent": 826, "children": [], "start_point": {"row": 195, "column": 6}, "end_point": {"row": 195, "column": 7}}]}, "node_categories": {"declarations": {"functions": [28], "variables": [12, 22, 34, 39, 42, 45, 55, 64, 73, 78, 87, 92, 97, 100, 106, 112, 118, 123, 128, 133, 138, 483], "classes": [23, 31, 32, 46, 47, 56, 58, 59, 65, 67, 68, 74, 75, 79, 80, 162, 163, 259, 260, 269, 270, 279, 280, 595, 596, 646, 647, 667, 668, 762, 763], "imports": [0, 1, 3, 4, 6, 7, 9, 10, 19, 20], "modules": [], "enums": []}, "statements": {"expressions": [52, 148, 152, 156, 160, 169, 170, 171, 175, 181, 187, 191, 196, 197, 198, 202, 206, 211, 215, 220, 221, 222, 226, 230, 231, 235, 242, 243, 244, 257, 264, 267, 273, 274, 277, 285, 289, 294, 299, 305, 306, 307, 311, 320, 327, 329, 338, 339, 340, 344, 353, 360, 362, 371, 372, 373, 377, 386, 393, 395, 404, 405, 406, 410, 419, 426, 428, 437, 441, 446, 447, 450, 457, 464, 468, 473, 474, 477, 489, 490, 491, 495, 504, 511, 520, 524, 527, 531, 532, 533, 540, 541, 542, 546, 552, 556, 560, 563, 566, 572, 580, 582, 583, 589, 590, 593, 602, 603, 604, 608, 611, 614, 619, 622, 628, 631, 634, 637, 644, 657, 661, 662, 665, 674, 678, 680, 681, 687, 689, 690, 697, 700, 705, 706, 707, 711, 716, 717, 718, 721, 722, 723, 727, 728, 729, 733, 734, 735, 736, 745, 747, 748, 749, 756, 757, 760, 769, 770, 771, 775, 776, 780, 785, 786, 790, 793, 799, 802, 808, 809, 813, 816, 824], "assignments": [144, 155, 172, 199, 223, 254, 293, 298, 308, 326, 341, 359, 374, 392, 407, 425, 436, 456, 463, 492, 510, 519, 571, 577, 641, 654, 673, 686, 742, 796, 805], "loops": [143, 219, 588, 704, 755], "conditionals": [16, 29, 33, 38, 41, 44, 48, 51, 53, 60, 63, 69, 72, 76, 77, 81, 85, 86, 90, 91, 93, 96, 99, 103, 109, 115, 122, 127, 132, 137, 142, 145, 149, 151, 153, 157, 158, 164, 168, 173, 176, 178, 183, 188, 190, 192, 195, 200, 203, 205, 207, 208, 212, 214, 216, 224, 227, 229, 232, 233, 241, 245, 255, 261, 265, 271, 272, 275, 281, 286, 290, 295, 296, 300, 301, 304, 309, 312, 314, 330, 337, 342, 345, 347, 363, 370, 375, 378, 380, 396, 403, 408, 411, 413, 429, 438, 439, 442, 444, 445, 448, 458, 459, 465, 466, 469, 471, 472, 475, 487, 488, 493, 496, 498, 513, 521, 522, 525, 529, 534, 536, 539, 543, 544, 553, 557, 564, 567, 568, 569, 573, 574, 578, 581, 584, 585, 587, 591, 597, 601, 605, 606, 609, 610, 615, 617, 623, 625, 629, 630, 632, 633, 638, 640, 642, 648, 655, 658, 659, 660, 663, 669, 675, 676, 679, 682, 683, 685, 688, 691, 692, 694, 696, 701, 703, 708, 710, 719, 720, 724, 725, 730, 731, 732, 737, 738, 739, 743, 746, 750, 751, 752, 754, 758, 764, 768, 772, 773, 777, 778, 779, 781, 787, 788, 789, 791, 792, 794, 795, 797, 800, 801, 803, 806, 810, 811, 812, 814, 817, 821, 822, 823, 825], "returns": [], "exceptions": []}, "expressions": {"calls": [], "literals": [2, 5, 8, 11, 18, 21, 105, 111, 117, 147, 167, 179, 186, 194, 210, 218, 240, 246, 248, 284, 288, 292, 303, 315, 325, 333, 348, 358, 366, 381, 391, 399, 414, 424, 432, 455, 461, 482, 499, 509, 515, 538, 551, 555, 559, 576, 600, 618, 626, 651, 672, 741, 767, 783, 819, 827], "identifiers": [], "binary_operations": [], "unary_operations": [], "member_access": []}}, "cross_language_map": {"function_declarations": [{"node_id": 28, "universal_type": "function", "name": "unknown", "text_snippet": "index()"}], "class_declarations": [{"node_id": 23, "universal_type": "class", "name": "unknown", "text_snippet": "extern"}, {"node_id": 31, "universal_type": "class", "name": "xsym", "text_snippet": "struct\txsym\t{\n\tchar\t*dat;\n\tint\tlnum;\n\tint\tmap;\n\tstruct\txsym\t*nxt;\n}"}, {"node_id": 32, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 46, "universal_type": "class", "name": "xsym", "text_snippet": "struct\txsym"}, {"node_id": 47, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 56, "universal_type": "class", "name": "unknown", "text_snippet": "register"}, {"node_id": 58, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 59, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 65, "universal_type": "class", "name": "unknown", "text_snippet": "register"}, {"node_id": 67, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 68, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 74, "universal_type": "class", "name": "ptr", "text_snippet": "struct\tptr"}, {"node_id": 75, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 79, "universal_type": "class", "name": "xsym", "text_snippet": "struct\txsym"}, {"node_id": 80, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 162, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 163, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 259, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 260, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 269, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 270, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 279, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 280, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 595, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 596, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 646, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 647, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 667, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 668, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}, {"node_id": 762, "universal_type": "class", "name": "xsym", "text_snippet": "struct xsym"}, {"node_id": 763, "universal_type": "class", "name": "unknown", "text_snippet": "struct"}], "import_statements": [{"node_id": 0, "text": "#include\t<stdio.h>\n"}, {"node_id": 1, "text": "#include"}, {"node_id": 3, "text": "#include\t<ctype.h>\n"}, {"node_id": 4, "text": "#include"}, {"node_id": 6, "text": "#include\t<sys/types.h>\n"}, {"node_id": 7, "text": "#include"}, {"node_id": 9, "text": "#include\t<sys/file.h>\n"}, {"node_id": 10, "text": "#include"}, {"node_id": 19, "text": "#include\t\"mnemconf.h\"\n"}, {"node_id": 20, "text": "#include"}]}, "original_source_code": "/************************************************************************\n *\t\t\t\t\t\t\t\t\t*\n *\t\t\tCopyright (c) 1985 by\t\t\t\t*\n *\t\tDigital Equipment Corporation, Maynard, MA\t\t*\n *\t\t\tAll rights reserved.\t\t\t\t*\n *\t\t\t\t\t\t\t\t\t*\n * The information in this software is subject to change without\t*\n * notice and should not be construed as a commitment by Digital\t*\n * Equipment Corporation.\t\t\t\t\t\t*\n *\t\t\t\t\t\t\t\t\t*\n * Digital assumes no responsibility for the use or reliability\t*\n * of its software on equipment which is not supplied by Digital.\t*\n *\t\t\t\t\t\t\t\t\t*\n * Redistribution and use in source and binary forms are permitted\t*\n * provided that the above copyright notice and this paragraph are\t*\n * duplicated in all such forms and that any documentation,\t\t*\n * advertising materials, and other materials related to such\t\t*\n * distribution and use acknowledge that the software was developed\t*\n * by Digital Equipment Corporation. The name of Digital Equipment\t*\n * Corporation may not be used to endorse or promote products derived\t*\n * from this software without specific prior written permission.\t*\n * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR\t*\n * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED\t*\n * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.*\n * Do not take internally. In case of accidental ingestion, contact\t*\n * your physician immediately.\t\t\t\t\t*\n *\t\t\t\t\t\t\t\t\t*\n ************************************************************************/\n\n/* DO NOT INCLUDE \"mnemosyne.h\" !!! */\n#include\t<stdio.h>\n#include\t<ctype.h>\n#include\t<sys/types.h>\n#include\t<sys/file.h>\n\nstatic\tchar\trcsid[] = \"/fats/tools/hsv/mnemosyne/mnemalyse.c,v 1.1.1.1 1995/06/06 18:18:28 fabio Exp\";\n\n#include\t\"mnemconf.h\"\n\nextern\tchar\t*index();\n\n/*\npost-processor to interpret memory allocation maps and search for\npointers that were allocated but never freed.\n\n\t<NAME>, 1990. (<EMAIL>)\n*/\n\n\n/*\nsimple and braindead, read in the \".lines\" file, and store it in a\ntable by number. then read the pointer map, and crossref any unfreed\npointers. simple as dereferencing NULL...\n\nthis could use some cleaning and buffing, but it's damn effective as\nit is. again, fancier symbol table routines would make this faster,\nbut who gives a damn? it only has to be faster than finding memory\nleaks by hand...\n*/\n\nstruct\txsym\t{\n\tchar\t*dat;\n\tint\tlnum;\n\tint\tmap;\n\tstruct\txsym\t*nxt;\n};\n\n\n\nmain()\n{\n\tregister struct xsym\t*sp;\n\tregister struct xsym\t*zp;\n\tstruct\tptr\tp;\n\tstruct\txsym\t*shash[HASHSIZ];\n\tchar\t\tinbuf[BUFSIZ];\n\tFILE\t\t*lp;\n\tint\t\tfd;\n\n\t/* statistics */\n\tint\t\tptrcnt = 0;\n\tint\t\tptrbad = 0;\n\tint\t\tptrlos = 0;\n\n\t/* to chop up lines */\n\tchar\t\t*cpmap;\n\tchar\t\t*cpcalls;\n\tchar\t\t*cpave;\n\tchar\t\t*cplnum;\n\tchar\t\t*cpfnam;\n\n\tfor(fd = 0; fd < HASHSIZ; fd++)\n\t\tshash[fd] = (struct xsym *)0;\n\n\tif((lp = fopen(LINESFILE,\"r\")) == (FILE *)0) {\n\t\tperror(LINESFILE);\n\t\texit(1);\n\t}\n\n\tif((fd = open(PTRFILE,O_RDONLY|O_RDWR)) < 0) {\n\t\tperror(PTRFILE);\n\t\texit(1);\n\t}\n\n\t/* this is ugly, but I refuse to trust !@(#&U!@#&! sscanf() */\n\twhile((cpmap = fgets(inbuf,sizeof(inbuf),lp)) != (char *)0) {\n\t\tif(inbuf[0] == '#')\n\t\t\tcontinue;\n\n\t\tsp = (struct xsym *)malloc(sizeof(struct xsym));\n\t\tif(sp == (struct xsym *)0) {\n\t\t\tperror(\"malloc\");\n\t\t\texit(1);\n\t\t}\n\t\tsp->lnum = sp->map = 0;\n\n\t\tif((cpcalls = index(cpmap,'\\t')) != (char *)0)\n\t\t\t*cpcalls++ = '\\0';\n\n\t\tif((cpave = index(cpcalls,'\\t')) != (char *)0)\n\t\t\t*cpave++ = '\\0';\n\n\t\tif((cplnum = index(cpave,'\\t')) != (char *)0)\n\t\t\t*cplnum++ = '\\0';\n\n\t\tif((cpfnam = index(cplnum,'\\t')) != (char *)0)\n\t\t\t*cpfnam++ = '\\0';\n\n\t\t/* setup symbol */\n\t\tsp->map = atoi(cpmap);\n\n\t\tif(cplnum == (char *)0)\n\t\t\tsp->lnum = -1;\n\t\telse\n\t\t\tsp->lnum = atoi(cplnum);\n\n\t\tif(cpfnam != (char *)0) {\n\t\t\tchar\t*x;\n\t\t\tif((x = index(cpfnam,'\\n')) != (char *)0)\n\t\t\t\t*x = '\\0';\n\n\t\t\tsp->dat = malloc((unsigned)(strlen(cpfnam) + 1));\n\t\t\tif(sp->dat == (char *)0) {\n\t\t\t\tperror(\"malloc\");\n\t\t\t\texit(1);\n\t\t\t}\n\t\t\t(void)strcpy(sp->dat,cpfnam);\n\t\t} else\n\t\t\tsp->dat = \"unknown\";\n\n\t\t/* check to make sure it is not already in table */\n\t\tzp = shash[sp->map % HASHSIZ];\n\t\twhile(zp != (struct xsym *)0) {\n\t\t\tif(zp->map == sp->map) {\n\t\t\t\t(void)fprintf(stderr,\n\t\t\t\t\"mnemalyse: duplicate map entry ignored\");\n\t\t\t\t(void)fprintf(stderr,\n\t\t\t\t\" (point at both %s and %s)\\n\",sp->dat,zp->dat);\n\t\t\t\t(void)free(sp);\n\n\t\t\t\t/* can't free dat - may not be malloced! */\n\t\t\t\tsp = (struct xsym *)0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tzp = zp->nxt;\n\t\t}\n\n\t\t/* shrug, link it in */\n\t\tif(sp != (struct xsym *)0) {\n\t\t\tsp->nxt = shash[sp->map % HASHSIZ];\n\t\t\tshash[sp->map % HASHSIZ] = sp;\n\t\t}\n\t}\n\t(void)fclose(lp);\n\n\twhile(read(fd,(char *)&(p.dsk),sizeof(p.dsk)) == sizeof(p.dsk)) {\n\n\t\t/* if the pointer was not deallocated, note it */\n\t\tif(p.dsk.siz != 0) {\n\t\t\tzp = shash[p.dsk.smap % HASHSIZ];\n\t\t\twhile(zp != (struct xsym *)0) {\n\t\t\t\tif(zp->map == p.dsk.smap) {\n\t\t\t\t\tprintf(\"%d bytes missing %s line:%d\\n\",\n\t\t\t\t\tp.dsk.siz,zp->dat,zp->lnum);\n\t\t\t\t}\n\t\t\t\tzp = zp->nxt;\n\t\t\t}\n\t\t\tptrbad++;\n\t\t\tptrlos += p.dsk.siz;\n\t\t}\n\t\tptrcnt++;\n\t}\n\n\tprintf(\"%d pointers, %d lost totalling %d bytes\\n\",\n\t\tptrcnt,ptrbad,ptrlos);\n\texit(0);\n}\n"}
80,399